log1p: Provide replacement for Minix and MSVC.
[gnulib.git] / ChangeLog
1 2012-03-10  Bruno Haible  <bruno@clisp.org>
2
3         log1p: Provide replacement for Minix and MSVC.
4         * lib/math.in.h (log1p): New declaration.
5         * lib/log1p.c: New file.
6         * m4/log1p.m4: New file.
7         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
8         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
9         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
10         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
11         (Depends-on): Add math, isnand, log, round.
12         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
13         HAVE_LOG1P is 0.
14         * tests/test-math-c++.cc: Check the declaration of log1p.
15         * doc/posix-functions/log1p.texi: Mention the replacement.
16
17 2012-03-10  Bruno Haible  <bruno@clisp.org>
18
19         math tests: Small simplification.
20         * tests/test-exp.h (test_function): Use the same err_bound for
21         'double' on platforms with sizeof (long double) == sizeof (double)
22         than on platforms with sizeof (long double) > sizeof (double).
23         * tests/test-exp2.h (test_function): Likewise.
24         * tests/test-expm1.h (test_function): Likewise.
25         * tests/test-log.h (test_function): Likewise.
26
27 2012-03-10  Bruno Haible  <bruno@clisp.org>
28
29         Fix some comments.
30         * lib/expl.c: Fix an ambiguous comment.
31         * lib/expm1.c: Likewise.
32         * lib/expm1l.c: Likewise.
33         * lib/exp2.c: Likewise.
34         * lib/exp2l.c: Likewise.
35
36 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
37
38         regex: allow inclusion of <regex.h> before <limits.h>
39         Without this patch, portable programs had to include <limits.h> before
40         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
41         I ran into this problem with a test version of GNU grep on Solaris 8.
42         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
43         This is done conditionally so that this change can be merged
44         back to glibc.
45         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
46         using the included regex.
47
48         fts: depend on fdopendir
49         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
50         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
51         problem was introduced when fdopendir was split out.
52
53 2012-03-10  Bruno Haible  <bruno@clisp.org>
54
55         Remove unused variables.
56         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
57         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
58
59 2012-03-10  Bruno Haible  <bruno@clisp.org>
60
61         isnanf-nolibm: Fix last commit.
62         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
63
64         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
65         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
66
67 2012-03-10  Bruno Haible  <bruno@clisp.org>
68
69         logf-ieee: Work around test failure on NetBSD 5.1.
70         * m4/logf-ieee.m4: New file.
71         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
72         whether logf works with a negative argument. Replace it if not.
73         * lib/logf.c (logf): For negative arguments, return NaN.
74         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
75         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
76         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
77
78         logf-ieee: Work around test failure on Solaris 9.
79         * modules/logf-ieee (Depends-on): Add log-ieee.
80         (configure.ac): Require gl_FUNC_LOGF.
81
82         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
83         * m4/log-ieee.m4: New file.
84         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
85         log works with a negative argument. Replace it if not.
86         * lib/log.c (log): For negative arguments, return NaN.
87         * modules/log-ieee (Files): Add m4/log-ieee.m4.
88         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
89         * doc/posix-functions/log.texi: Mention the log-ieee module.
90
91         Tests for module 'logl-ieee'.
92         * modules/logl-ieee-tests: New file.
93         * tests/test-logl-ieee.c: New file.
94
95         New module 'logl-ieee'.
96         * modules/logl-ieee: New file.
97
98         Tests for module 'log-ieee'.
99         * modules/log-ieee-tests: New file.
100         * tests/test-log-ieee.c: New file.
101
102         New module 'log-ieee'.
103         * modules/log-ieee: New file.
104
105         Tests for module 'logf-ieee'.
106         * modules/logf-ieee-tests: New file.
107         * tests/test-logf-ieee.c: New file.
108         * tests/test-log-ieee.h: New file.
109
110         New module 'logf-ieee'.
111         * modules/logf-ieee: New file.
112
113 2012-03-10  Bruno Haible  <bruno@clisp.org>
114
115         log: Fix bug introduced on 2012-03-09.
116         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
117
118 2012-03-10  Pádraig Brady  <P@draigBrady.com>
119
120         timer-time: link explicitly with pthreads on glibc
121         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
122         to support static linking, when newer glibc is
123         detected, as that contains pthread emulation of
124         POSIX timer functions where required.
125         * modules/timer-time: Depend on threadlib to
126         pull in the appropriate library to link.
127
128 2012-03-10  Bruno Haible  <bruno@clisp.org>
129
130         log* tests: More tests.
131         * tests/test-log.h: New file.
132         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
133         (main): Invoke test_function.
134         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
135         (main): Invoke test_function.
136         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
137         (main): Invoke test_function.
138         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
139         tests/randomd.c.
140         (Makefile.am): Add randomd.c to test_log_SOURCES.
141         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
142         tests/randomf.c.
143         (Makefile.am): Add randomf.c to test_logf_SOURCES.
144         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
145         tests/randoml.c.
146         (Depends-on): Add 'float'.
147         (Makefile.am): Add randoml.c to test_logl_SOURCES.
148
149 2012-03-09  Bruno Haible  <bruno@clisp.org>
150
151         logl: Work around OSF/1 5.1 bug.
152         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
153         * lib/logl.c (logl): If logf exists, use it and provide just the
154         workaround.
155         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
156         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
157         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
158         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
159         * modules/logl (configure.ac): Consider REPLACE_LOGL.
160         (Depends-on): Update conditions.
161         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
162
163 2012-03-09  Bruno Haible  <bruno@clisp.org>
164
165         logf: Work around OSF/1 5.1 bug.
166         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
167         * lib/logf.c (logf): If logf exists, use it and provide just the
168         workaround.
169         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
170         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
171         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
172         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
173         * modules/logf (configure.ac): Consider REPLACE_LOGF.
174         (Depends-on): Update conditions.
175         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
176
177 2012-03-09  Bruno Haible  <bruno@clisp.org>
178
179         log: Work around OSF/1 5.1 bug.
180         * lib/math.in.h (log): New declaration.
181         * lib/log.c: New file.
182         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
183         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
184         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
185         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
186         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
187         * modules/log (Files): Add lib/log.c.
188         (Depends-on): Add math.
189         (configure.ac): If REPLACE_LOG is 1, compile an override.
190         * tests/test-math-c++.cc: Check the declaration of log.
191         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
192
193 2012-03-09  Jim Meyering  <meyering@redhat.com>
194
195         readtokens.c: adjust wording in a comment
196         * lib/readtokens.c: Insert omitted "that" in a comment.
197
198 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
199
200         modechange: add notations +40, 00440, etc.
201         * lib/modechange.c (mode_compile): Support new notations
202         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
203
204 2012-03-08  Bruno Haible  <bruno@clisp.org>
205
206         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
207         * m4/exp2l-ieee.m4: New file.
208         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
209         test whether exp2l works with a NaN argument and with a negative
210         infinity argument. Replace it if not.
211         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
212         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
213         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
214         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
215         (Depends-on): Update conditions.
216         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
217         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
218         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
219
220         Tests for module 'exp2l-ieee'.
221         * modules/exp2l-ieee-tests: New file.
222         * tests/test-exp2l-ieee.c: New file.
223
224         New module 'exp2l-ieee'.
225         * modules/exp2l-ieee: New file.
226
227         Tests for module 'exp2-ieee'.
228         * modules/exp2-ieee-tests: New file.
229         * tests/test-exp2-ieee.c: New file.
230
231         New module 'exp2-ieee'.
232         * modules/exp2-ieee: New file.
233
234         Tests for module 'exp2f-ieee'.
235         * modules/exp2f-ieee-tests: New file.
236         * tests/test-exp2f-ieee.c: New file.
237         * tests/test-exp2-ieee.h: New file.
238
239         New module 'exp2f-ieee'.
240         * modules/exp2f-ieee: New file.
241
242 2012-03-08  Bruno Haible  <bruno@clisp.org>
243
244         Tests for module 'exp2l'.
245         * modules/exp2l-tests: New file.
246         * tests/test-exp2l.c: New file.
247
248         New module 'exp2l'.
249         * lib/math.in.h (exp2l): New declaration.
250         * lib/exp2l.c: New file.
251         * lib/expl-table.c: New file, extracted from lib/expl.c.
252         * lib/expl.c (gl_expl_table): New declaration.
253         (expl): Remove expl_table. Update reference.
254         * m4/exp2l.m4: New file.
255         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
256         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
257         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
258         * modules/exp2l: New file.
259         * modules/expl (Files): Add lib/expl-table.c.
260         (configure.ac): Compile also expl-table.c.
261         * tests/test-math-c++.cc: Check the declaration of exp2l.
262         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
263         problem.
264
265 2012-03-08  Bruno Haible  <bruno@clisp.org>
266
267         Tests for module 'exp2f'.
268         * modules/exp2f-tests: New file.
269         * tests/test-exp2f.c: New file.
270
271         New module 'exp2f'.
272         * lib/math.in.h (exp2f): New declaration.
273         * lib/exp2f.c: New file.
274         * m4/exp2f.m4: New file.
275         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
276         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
277         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
278         * modules/exp2f: New file.
279         * tests/test-math-c++.cc: Check the declaration of exp2f.
280         * doc/posix-functions/exp2f.texi: Mention the new module and the
281         IRIX problem.
282
283 2012-03-08  Bruno Haible  <bruno@clisp.org>
284
285         Tests for module 'exp2'.
286         * modules/exp2-tests: New file.
287         * tests/test-exp2.c: New file.
288         * tests/test-exp2.h: New file.
289
290         New module 'exp2'.
291         * lib/math.in.h (exp2): New declaration.
292         * lib/exp2.c: New file.
293         * m4/exp2.m4: New file.
294         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
296         REPLACE_EXP2.
297         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
298         REPLACE_EXP2.
299         * modules/exp2: New file.
300         * tests/test-math-c++.cc: Check the declaration of exp2.
301         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
302         and OpenBSD problems.
303
304 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
305
306         savedir: fix comment typo
307         * lib/savedir.c (savedirstream): Fix typo in comment.
308
309 2012-03-08  Bruno Haible  <bruno@clisp.org>
310
311         test-readtokens.c: use const; remove unwarranted cast
312         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
313
314 2012-03-08  Bruno Haible  <bruno@clisp.org>
315
316         fmal: Avoid compilation error on AIX.
317         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
318         AIX 5.2..7.1.
319
320 2012-03-08  Bruno Haible  <bruno@clisp.org>
321
322         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
323         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
324         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
325         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
326         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
327         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
328         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
329
330 2012-03-08  Bruno Haible  <bruno@clisp.org>
331
332         remainderf: Override buggy system function on IRIX 6.5.
333         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
334         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
335         when it exists.
336         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
337
338 2012-03-08  Jim Meyering  <meyering@redhat.com>
339
340         test-readtokens.c: avoid const-related compilation warnings
341         * tests/test-readtokens.c: Avoid const-related compilation warnings.
342
343 2012-03-07  Jim Meyering  <meyering@redhat.com>
344             Bruno Haible  <bruno@clisp.org>
345
346         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
347         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
348         tests/randomd.c.
349         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
350         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
351         tests/randoml.c.
352         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
353
354 2012-03-07  Bruno Haible  <bruno@clisp.org>
355
356         expm1l: Avoid compilation error on AIX.
357         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
358         AIX 5.2..7.1.
359
360 2012-03-07  Bruno Haible  <bruno@clisp.org>
361
362         expm1l: Don't override undeclared system function on IRIX 6.5.
363         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
364         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
365         it exists. Set HAVE_DECL_EXPM1L.
366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
367         HAVE_EXPM1L.
368         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
369         HAVE_EXPM1L.
370         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
371
372 2012-03-07  Bruno Haible  <bruno@clisp.org>
373
374         remainderl: Don't override undeclared system function on IRIX 6.5.
375         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
376         HAVE_REMAINDERL.
377         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
378         declared when it exists. Set HAVE_DECL_REMAINDERL.
379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
380         not HAVE_REMAINDERL.
381         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
382         HAVE_REMAINDERL.
383         * doc/posix-functions/remainderl.texi: Mention missing declaration
384         problem.
385
386 2012-03-07  Bruno Haible  <bruno@clisp.org>
387
388         rintf: Don't override undeclared system function on IRIX 6.5.
389         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
390         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
391         exists. Set HAVE_DECL_RINTF.
392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
393         HAVE_RINTF.
394         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
395         HAVE_RINTF.
396         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
397
398 2012-03-07  Bruno Haible  <bruno@clisp.org>
399
400         roundl: Avoid compilation error on AIX.
401         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
402         AIX 5.2..7.1.
403
404 2012-03-07  Bruno Haible  <bruno@clisp.org>
405
406         roundl: Don't override undeclared system function on IRIX 6.5.
407         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
408         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
409         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
410         * modules/roundl (configure.ac): For replacement code, test
411         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
412         (Depends-on): Update conditions.
413         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
414
415 2012-03-07  Bruno Haible  <bruno@clisp.org>
416
417         roundf: Don't override undeclared system function on IRIX 6.5.
418         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
419         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
420         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
421         * modules/roundf (configure.ac): For replacement code, test
422         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
423         (Depends-on): Update conditions.
424         * modules/roundf-ieee (Depends-on): Update conditions.
425         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
426
427 2012-03-07  Bruno Haible  <bruno@clisp.org>
428
429         round: Don't override undeclared system function on IRIX 6.5.
430         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
431         argument.
432         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
433         also when it is not declared. Set HAVE_ROUND. For replacement code,
434         test HAVE_ROUND, not HAVE_DECL_ROUND.
435         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
436         not HAVE_DECL_ROUND.
437         (Depends-on): Update conditions.
438         * modules/round-ieee (Depends-on): Update conditions.
439         * doc/posix-functions/round.texi: Mention the IRIX problem.
440
441 2012-03-07  Bruno Haible  <bruno@clisp.org>
442
443         copysignf: Don't override undeclared system function on IRIX 6.5.
444         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
445         HAVE_COPYSIGNF.
446         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
447         declared when it exists. Set HAVE_DECL_COPYSIGNF.
448         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
449         not HAVE_COPYSIGNF.
450         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
451         HAVE_COPYSIGNF.
452         * doc/posix-functions/copysignf.texi: Mention missing declaration
453         problem.
454
455 2012-03-07  Jim Meyering  <meyering@redhat.com>
456
457         readtokens: add tests
458         * modules/readtokens-tests: New file.
459         * tests/test-readtokens.c: New file.
460
461 2012-03-07  Jim Meyering  <meyering@redhat.com>
462
463         quotearg: the module must now include quote.h
464         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
465         So must the module.
466         * modules/quotearg (Files): Add quote.h.
467
468 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
469
470         readtokens: avoid core dumps with unusual calling patterns
471         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
472         * lib/readtokens.c: Include limits.h.
473         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
474         (readtoken): Don't cache the delimiters; the cache code was buggy
475         if !delim && saved_delim, or if the new n_delim differs from the old.
476         Also, it wasn't thread-safe.
477
478 2012-03-07  Bruno Haible  <bruno@clisp.org>
479
480         quote: Adhere to common module description layout.
481         * modules/quote (Makefile.am): Add back empty section.
482
483 2012-03-06  Akim Demaille  <demaille@gostai.com>
484
485         quote: fuse into quotearg
486         This patch is made for the benefit of Bison.
487         quote does not leave the choice of the quoting style to the user.
488         quoting_style provides poor customizability, yet quoting_options,
489         which is very rich, is hidden inside quotearg.c.  So in order to
490         allow quote customization, move its implementation to quotearg.c.
491         * lib/quote.c: Remove.
492         * modules/quote: Adjust.
493         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
494         warning: provide all the members of literal structs.
495         (quote_quoting_options): New.
496         (quote, quote_n): Import implementation from quote.c.
497         * lib/quote.h: Import the comments from quote.c.
498         (quote_quoting_options): New.
499
500 2012-03-06  Bruno Haible  <bruno@clisp.org>
501
502         Tests for module 'expm1l-ieee'.
503         * modules/expm1l-ieee-tests: New file.
504         * tests/test-expm1l-ieee.c: New file.
505
506         New module 'expm1l-ieee'.
507         * modules/expm1l-ieee: New file.
508
509         Tests for module 'expm1f-ieee'.
510         * modules/expm1f-ieee-tests: New file.
511         * tests/test-expm1f-ieee.c: New file.
512
513         New module 'expm1f-ieee'.
514         * modules/expm1f-ieee: New file.
515
516         Tests for module 'expm1-ieee'.
517         * modules/expm1-ieee-tests: New file.
518         * tests/test-expm1-ieee.c: New file.
519         * tests/test-expm1-ieee.h: New file.
520
521         New module 'expm1-ieee'.
522         * modules/expm1-ieee: New file.
523         * m4/expm1-ieee.m4: New file.
524         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
525         whether expm1 works with a minus zero argument. Replace it if not.
526         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
528         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
529         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
530         (Depends-on): Update conditions.
531         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
532         AIX problem.
533
534 2012-03-06  Bruno Haible  <bruno@clisp.org>
535
536         Work around expm1f bug on IRIX 6.5.
537         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
538         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
539         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
540         not work.
541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
542         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
543         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
544         (Depends-on): Update conditions.
545         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
546
547 2012-03-06  Bruno Haible  <bruno@clisp.org>
548
549         Tests for module 'expm1l'.
550         * modules/expm1l-tests: New file.
551         * tests/test-expm1l.c: New file.
552
553         New module 'expm1l'.
554         * lib/math.in.h (expm1l): New declaration.
555         * lib/expm1l.c: New file.
556         * m4/expm1l.m4: New file.
557         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
558         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
559         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
560         * modules/expm1l: New file.
561         * tests/test-math-c++.cc: Check the declaration of expm1l.
562         * doc/posix-functions/expm1l.texi: Mention the new module.
563
564 2012-03-06  Bruno Haible  <bruno@clisp.org>
565
566         Tests for module 'expm1f'.
567         * modules/expm1f-tests: New file.
568         * tests/test-expm1f.c: New file.
569
570         New module 'expm1f'.
571         * lib/math.in.h (expm1f): New declaration.
572         * lib/expm1f.c: New file.
573         * m4/expm1f.m4: New file.
574         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
575         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
576         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
577         * modules/expm1f: New file.
578         * tests/test-math-c++.cc: Check the declaration of expm1f.
579         * doc/posix-functions/expm1f.texi: Mention the new module.
580
581 2012-03-06  Bruno Haible  <bruno@clisp.org>
582
583         Tests for module 'expm1'.
584         * modules/expm1-tests: New file.
585         * tests/test-expm1.c: New file.
586         * tests/test-expm1.h: New file.
587
588         New module 'expm1'.
589         * lib/math.in.h (expm1): New declaration.
590         * lib/expm1.c: New file.
591         * m4/expm1.m4: New file.
592         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
593         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
594         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
595         * modules/expm1: New file.
596         * tests/test-math-c++.cc: Check the declaration of expm1.
597         * doc/posix-functions/expm1.texi: Mention the new module.
598
599 2012-03-06  Bruno Haible  <bruno@clisp.org>
600
601         math: Ensure declarations of math functions.
602         * modules/acosf (Depends-on): Add 'extensions'.
603         * modules/asinf (Depends-on): Likewise.
604         * modules/atan2f (Depends-on): Likewise.
605         * modules/atanf (Depends-on): Likewise.
606         * modules/cbrt (Depends-on): Likewise.
607         * modules/cbrtf (Depends-on): Likewise.
608         * modules/cbrtl (Depends-on): Likewise.
609         * modules/copysignf (Depends-on): Likewise.
610         * modules/copysignl (Depends-on): Likewise.
611         * modules/cosf (Depends-on): Likewise.
612         * modules/coshf (Depends-on): Likewise.
613         * modules/expf (Depends-on): Likewise.
614         * modules/fabsf (Depends-on): Likewise.
615         * modules/fabsl (Depends-on): Likewise.
616         * modules/fmaf (Depends-on): Likewise.
617         * modules/fmal (Depends-on): Likewise.
618         * modules/fmodf (Depends-on): Likewise.
619         * modules/fmodl (Depends-on): Likewise.
620         * modules/frexpf (Depends-on): Likewise.
621         * modules/frexpl (Depends-on): Likewise.
622         * modules/hypot (Depends-on): Likewise.
623         * modules/hypotf (Depends-on): Likewise.
624         * modules/hypotl (Depends-on): Likewise.
625         * modules/ldexpf (Depends-on): Likewise.
626         * modules/ldexpl (Depends-on): Likewise.
627         * modules/log10f (Depends-on): Likewise.
628         * modules/log10l (Depends-on): Likewise.
629         * modules/log1p (Depends-on): Likewise.
630         * modules/logb (Depends-on): Likewise.
631         * modules/logf (Depends-on): Likewise.
632         * modules/modff (Depends-on): Likewise.
633         * modules/modfl (Depends-on): Likewise.
634         * modules/powf (Depends-on): Likewise.
635         * modules/remainderf (Depends-on): Likewise.
636         * modules/remainderl (Depends-on): Likewise.
637         * modules/rintf (Depends-on): Likewise.
638         * modules/rintl (Depends-on): Likewise.
639         * modules/sinf (Depends-on): Likewise.
640         * modules/sinhf (Depends-on): Likewise.
641         * modules/sqrtf (Depends-on): Likewise.
642         * modules/tanf (Depends-on): Likewise.
643         * modules/tanhf (Depends-on): Likewise.
644         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
645         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
646         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
647         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
648         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
649         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
650         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
651         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
652         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
653         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
654         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
655         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
656         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
657         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
658         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
659         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
660         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
661         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
662         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
663         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
664         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
665         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
666         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
667         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
668         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
669         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
670         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
671         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
672         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
673         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
674         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
675         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
676         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
677         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
678         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
679         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
680         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
681         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
682         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
683         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
684         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
685
686 2012-03-06  Bruno Haible  <bruno@clisp.org>
687
688         math: Update module names in warnings.
689         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
690         tanl): Use specific module name in warn-on-use warning.
691
692 2012-03-06  Bruno Haible  <bruno@clisp.org>
693
694         expl: Simplify computation.
695         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
696
697 2012-03-05  Bruno Haible  <bruno@clisp.org>
698
699         exp* tests: More tests.
700         * tests/test-exp.h: New file.
701         * tests/test-exp.c: Include <float.h> and test-exp.h.
702         (main): Invoke test_function.
703         * tests/test-expf.c: Include <float.h> and test-exp.h.
704         (main): Invoke test_function.
705         * tests/test-expl.c: Include <float.h> and test-exp.h.
706         (main): Invoke test_function.
707         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
708         (Makefile.am): Add randomd.c to test_exp_SOURCES.
709         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
710         (Makefile.am): Add randomf.c to test_expf_SOURCES.
711         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
712         (Depends-on): Add 'float'.
713         (Makefile.am): Add randoml.c to test_expl_SOURCES.
714
715         expl: Fix precision of computed result.
716         * lib/expl.c: Completely rewritten.
717         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
718         (Maintainer): Add me.
719         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
720
721 2012-03-05  Bruno Haible  <bruno@clisp.org>
722
723         cbrt* tests: More tests.
724         * tests/test-cbrt.h: New file.
725         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
726         (main): Invoke test_function.
727         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
728         (main): Invoke test_function.
729         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
730         (main): Invoke test_function.
731         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
732         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
733         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
734         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
735         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
736         (Depends-on): Add 'float'.
737         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
738
739 2012-03-05  Bruno Haible  <bruno@clisp.org>
740
741         hypot* tests: More tests.
742         * tests/test-hypot.h: New file, partially extracted from
743         tests/test-hypotl.c.
744         * tests/test-hypot.c: Include test-hypot.h.
745         (main): Invoke test_function.
746         * tests/test-hypotf.c: Include test-hypot.h.
747         (main): Invoke test_function.
748         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
749         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
750         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
751         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
752         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
753         tests/randomf.c.
754         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
755         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
756         tests/randoml.c.
757         (Depends-on): Add 'fpucw', 'float'.
758         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
759
760 2012-03-05  Bruno Haible  <bruno@clisp.org>
761
762         fpucw: Doc about FreeBSD.
763         * lib/fpucw.h: Mention FreeBSD in comments.
764
765 2012-03-04  Bruno Haible  <bruno@clisp.org>
766
767         sqrt* tests: More tests.
768         * tests/test-sqrt.h: New file.
769         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
770         (main): Invoke test_function.
771         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
772         (main): Invoke test_function.
773         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
774         (main): Invoke test_function.
775         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
776         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
777         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
778         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
779         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
780         (Depends-on): Add 'float'.
781         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
782
783 2012-03-04  Bruno Haible  <bruno@clisp.org>
784
785         remainder* tests: More tests.
786         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
787         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
788         (main): Invoke test_function.
789         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
790         (main): Invoke test_function.
791         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
792         (main): Invoke test_function.
793         * modules/remainder-tests (Files): Add tests/test-remainder.h,
794         tests/randomd.c.
795         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
796         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
797         tests/randomf.c.
798         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
799         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
800         tests/randoml.c.
801         (Depends-on): Add 'float'.
802         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
803
804 2012-03-04  Bruno Haible  <bruno@clisp.org>
805
806         remainder, remainderf, remainderl: Fix computation for large quotients.
807         * lib/remainder.c: Completely rewritten.
808         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
809         USE_FLOAT.
810         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
811         USE_LONG_DOUBLE.
812         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
813         isnand, isinf. Remove round, fma.
814         * modules/remainderf (Files): Add lib/remainder.c.
815         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
816         Remove roundf, fmaf.
817         * modules/remainderl (Files): Add lib/remainder.c.
818         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
819         isinf. Remove roundl, fmal.
820         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
821         REMAINDER_LIBM.
822         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
823         REMAINDERF_LIBM.
824         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
825         REMAINDERL_LIBM.
826
827 2012-03-04  Bruno Haible  <bruno@clisp.org>
828
829         fmod* tests: More tests.
830         * tests/test-fmod.h (my_ldexp): New function.
831         (test_function): Reduce amount of random numbers to test. Add tests
832         of very large quotients x / y.
833         * tests/test-fmod.c (MAX_EXP): New macro.
834         * tests/test-fmodf.c (MAX_EXP): Likewise.
835         * tests/test-fmodl.c (MAX_EXP): Likewise.
836
837 2012-03-04  Bruno Haible  <bruno@clisp.org>
838
839         fmod, fmodl: Fix computation for large quotients x / y.
840         * lib/fmod.c: Completely rewritten.
841         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
842         USE_LONG_DOUBLE.
843         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
844         isnand. Remove fma.
845         * modules/fmodl (Files): Add lib/fmod.c.
846         (Depends-on): Add float, isfinite, signbit, fabsl,
847         frexpl, ldexpl, isnanl. Remove fma.
848         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
849         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
850
851 2012-03-03  Bruno Haible  <bruno@clisp.org>
852
853         fmod* tests: More tests.
854         * tests/test-fmod.h: New file.
855         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
856         (main): Invoke test_function.
857         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
858         (main): Invoke test_function.
859         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
860         (main): Invoke test_function.
861         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
862         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
863         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
864         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
865         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
866         (Depends-on): Add 'float'.
867         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
868
869 2012-03-03  Bruno Haible  <bruno@clisp.org>
870
871         rint* tests: More tests.
872         * tests/test-rint.h: New file, partially extracted from
873         tests/test-rintl.c.
874         * tests/test-rint.c: Include test-rint.h.
875         (main): Invoke test_function.
876         * tests/test-rintf.c: Include test-rint.h.
877         (main): Invoke test_function.
878         * tests/test-rintl.c: Include test-rint.h.
879         (main): Invoke test_function.
880         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
881         (Makefile.am): Add randomd.c to test_rint_SOURCES.
882         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
883         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
884         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
885         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
886
887 2012-03-03  Bruno Haible  <bruno@clisp.org>
888
889         modf* tests: More tests.
890         * tests/test-modf.h: New file.
891         * tests/test-modf.c: Include <float.h> and test-modf.h.
892         (main): Invoke test_function.
893         * tests/test-modff.c: Include <float.h> and test-modf.h.
894         (main): Invoke test_function.
895         * tests/test-modfl.c: Include <float.h> and test-modf.h.
896         (main): Invoke test_function.
897         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
898         (Makefile.am): Add randomd.c to test_modf_SOURCES.
899         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
900         (Makefile.am): Add randomf.c to test_modff_SOURCES.
901         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
902         (Depends-on): Add 'float'.
903         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
904
905 2012-03-03  Bruno Haible  <bruno@clisp.org>
906
907         fabs* tests: More tests.
908         * tests/test-fabs.h: New file, partially extracted from
909         tests/test-fabsl.c.
910         * tests/test-fabs.c (RANDOM): New macro.
911         * tests/test-fabsf.c (RANDOM): New macro.
912         * tests/test-fabsl.c (RANDOM): New macro.
913         * modules/fabs-tests (Files): Add tests/randomd.c.
914         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
915         * modules/fabsf-tests (Files): Add tests/randomf.c.
916         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
917         * modules/fabsl-tests (Files): Add tests/randoml.c.
918         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
919
920 2012-03-03  Bruno Haible  <bruno@clisp.org>
921
922         ldexp* tests: More tests.
923         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
924         * tests/test-ldexp.c (RANDOM): New macro.
925         * tests/test-ldexpf.c (RANDOM): New macro.
926         * tests/test-ldexpl.c (RANDOM): New macro.
927         * modules/ldexp-tests (Files): Add tests/randomd.c.
928         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
929         * modules/ldexpf-tests (Files): Add tests/randomf.c.
930         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
931         * modules/ldexpl-tests (Files): Add tests/randoml.c.
932         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
933
934 2012-03-03  Bruno Haible  <bruno@clisp.org>
935
936         frexp* tests: More tests.
937         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
938         * tests/test-frexp.c (RANDOM): New macro.
939         * tests/test-frexpf.c (RANDOM): New macro.
940         * tests/test-frexpl.c (RANDOM): New macro.
941         * modules/frexp-tests (Files): Add tests/randomd.c.
942         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
943         * modules/frexpf-tests (Files): Add tests/randomf.c.
944         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
945         * modules/frexpl-tests (Files): Add tests/randoml.c.
946         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
947
948 2012-03-03  Bruno Haible  <bruno@clisp.org>
949
950         Support for pseudo-random numbers in tests.
951         * tests/randomf.c: New file.
952         * tests/randomd.c: New file.
953         * tests/randoml.c: New file.
954         * tests/macros.h (randomf, randomd, randoml): New declarations.
955
956 2012-03-03  Bruno Haible  <bruno@clisp.org>
957
958         frexp* tests: Refactor.
959         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
960         * tests/test-frexp.c: Include and use it.
961         * tests/test-frexpf.c: Likewise.
962         * tests/test-frexpl.c: Likewise.
963         * modules/frexp-tests (Files): Add tests/test-frexp.h.
964         * modules/frexpf-tests (Files): Likewise.
965         * modules/frexpl-tests (Files): Likewise.
966
967 2012-03-02  Jim Meyering  <meyering@redhat.com>
968
969         maint: don't specify XZ_OPT=-9ev in dist-related rule
970         Using xz's -9 option is warranted only if you have a very large
971         tarball (see xz's documentation for the sizes vs. presets), and
972         requires 64MiB of memory at decompression time.
973         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
974         Automake's default of just "-e" is fine.  Override on a
975         per-package basis by setting XZ_OPT e.g., in cfg.mk.
976
977 2012-03-01  Eric Blake  <eblake@redhat.com>
978
979         maint.mk: allow announcement for non-gnulib project
980         * maint.mk (announcement): Skip gnulib version if not used.
981
982 2012-03-01  Jim Meyering  <meyering@redhat.com>
983
984         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
985         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
986         envvar settings cannot interfere.  Otherwise, setting envvars like
987         prohibit=foo require=bar, etc. would cause spurious test failures.
988
989 2012-03-01  Eric Blake  <eblake@redhat.com>
990
991         maint.mk: add per-line exclusions to prohibitions
992         * maint.mk (_sc_search_regexp): Add $exclude parameter.
993         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
994         (sc_const_long_option): Use it.
995
996 2012-03-01  Bruno Haible  <bruno@clisp.org>
997
998         Tests for module 'expl-ieee'.
999         * modules/expl-ieee-tests: New file.
1000         * tests/test-expl-ieee.c: New file.
1001
1002         New module 'expl-ieee'.
1003         * modules/expl-ieee: New file.
1004
1005         Tests for module 'exp-ieee'.
1006         * modules/exp-ieee-tests: New file.
1007         * tests/test-exp-ieee.c: New file.
1008
1009         New module 'exp-ieee'.
1010         * modules/exp-ieee: New file.
1011
1012         Tests for module 'expf-ieee'.
1013         * modules/expf-ieee-tests: New file.
1014         * tests/test-expf-ieee.c: New file.
1015         * tests/test-exp-ieee.h: New file.
1016
1017         New module 'expf-ieee'.
1018         * modules/expf-ieee: New file.
1019
1020 2012-02-29  Bruno Haible  <bruno@clisp.org>
1021
1022         cbrtl-ieee: Work around test failure on IRIX 6.5.
1023         * m4/cbrtl-ieee.m4: New file.
1024         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1025         test whether cbrtl works with a minus zero argument. Replace it if not.
1026         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1027         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1028         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1029         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1030         (Depends-on): Update conditions.
1031         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1032         m4/signbit.m4.
1033         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1034         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1035         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1036
1037         Tests for module 'cbrtl-ieee'.
1038         * modules/cbrtl-ieee-tests: New file.
1039         * tests/test-cbrtl-ieee.c: New file.
1040
1041         New module 'cbrtl-ieee'.
1042         * modules/cbrtl-ieee: New file.
1043
1044         Tests for module 'cbrt-ieee'.
1045         * modules/cbrt-ieee-tests: New file.
1046         * tests/test-cbrt-ieee.c: New file.
1047
1048         New module 'cbrt-ieee'.
1049         * modules/cbrt-ieee: New file.
1050
1051         Tests for module 'cbrtf-ieee'.
1052         * modules/cbrtf-ieee-tests: New file.
1053         * tests/test-cbrtf-ieee.c: New file.
1054         * tests/test-cbrt-ieee.h: New file.
1055
1056         New module 'cbrtf-ieee'.
1057         * modules/cbrtf-ieee: New file.
1058
1059 2012-02-29  Bruno Haible  <bruno@clisp.org>
1060
1061         cbrtf: Work around bug in IRIX 6.5 system function.
1062         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1063         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1064         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1065         work.
1066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1067         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1068         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1069         (Depends-on): Update conditions.
1070         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1071
1072 2012-02-29  Bruno Haible  <bruno@clisp.org>
1073
1074         Tests for module 'cbrtl'.
1075         * modules/cbrtl-tests: New file.
1076         * tests/test-cbrtl.c: New file.
1077
1078         New module 'cbrtl'.
1079         * lib/math.in.h (cbrtl): New declaration.
1080         * lib/cbrtl.c: New file.
1081         * m4/cbrtl.m4: New file.
1082         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1084         HAVE_DECL_CBRTL.
1085         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1086         HAVE_DECL_CBRTL.
1087         * modules/cbrtl: New file.
1088         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1089         * doc/posix-functions/cbrtl.texi: Mention the new module.
1090
1091 2012-02-29  Bruno Haible  <bruno@clisp.org>
1092
1093         Tests for module 'cbrtf'.
1094         * modules/cbrtf-tests: New file.
1095         * tests/test-cbrtf.c: New file.
1096
1097         New module 'cbrtf'.
1098         * lib/math.in.h (cbrtf): New declaration.
1099         * lib/cbrtf.c: New file.
1100         * m4/cbrtf.m4: New file.
1101         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1102         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1103         HAVE_DECL_CBRTF.
1104         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1105         HAVE_DECL_CBRTF.
1106         * modules/cbrtf: New file.
1107         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1108         * doc/posix-functions/cbrtf.texi: Mention the new module.
1109
1110 2012-02-29  Bruno Haible  <bruno@clisp.org>
1111
1112         cbrt: Provide replacement on MSVC and Minix.
1113         * lib/math.in.h (cbrt): New declaration.
1114         * lib/cbrt.c: New file.
1115         * m4/cbrt.m4: New file.
1116         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1118         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1119         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1120         (Depends-on): Add dependencies.
1121         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1122         * tests/test-math-c++.cc: Check the declaration of cbrt.
1123         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1124         replacement.
1125
1126 2012-02-29  Bruno Haible  <bruno@clisp.org>
1127
1128         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1129         * m4/hypotl-ieee.m4: New file.
1130         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1131         test whether hypotl works with mixed NaN and Infinity arguments.
1132         Replace it if not.
1133         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1134         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1135         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1136         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1137         (Depends-on): Update conditions.
1138         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1139         (Depends-on): Add hypot-ieee.
1140         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1141         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1142
1143         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1144         * m4/hypotf-ieee.m4: New file.
1145         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1146         test whether hypotf works with mixed NaN and Infinity arguments.
1147         Replace it if not.
1148         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1149         (Depends-on): Add hypot-ieee.
1150         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1151         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1152
1153         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1154         * lib/math.in.h (hypot): New declaration.
1155         * lib/hypot.c: New file.
1156         * m4/hypot-ieee.m4: New file.
1157         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1158         whether hypot works with mixed NaN and Infinity arguments. Replace it
1159         if not.
1160         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1161         REPLACE_HYPOT.
1162         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1163         * modules/hypot (Files): Add lib/hypot.c.
1164         (Depends-on): Add dependencies.
1165         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1166         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1167         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1168         * tests/test-math-c++.cc: Check the declaration of hypot.
1169         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1170
1171         Tests for module 'hypotl-ieee'.
1172         * modules/hypotl-ieee-tests: New file.
1173         * tests/test-hypotl-ieee.c: New file.
1174
1175         New module 'hypotl-ieee'.
1176         * modules/hypotl-ieee: New file.
1177
1178         Tests for module 'hypot-ieee'.
1179         * modules/hypot-ieee-tests: New file.
1180         * tests/test-hypot-ieee.c: New file.
1181
1182         New module 'hypot-ieee'.
1183         * modules/hypot-ieee: New file.
1184
1185         Tests for module 'hypotf-ieee'.
1186         * modules/hypotf-ieee-tests: New file.
1187         * tests/test-hypotf-ieee.c: New file.
1188         * tests/test-hypot-ieee.h: New file.
1189
1190         New module 'hypotf-ieee'.
1191         * modules/hypotf-ieee: New file.
1192
1193 2012-02-29  Bruno Haible  <bruno@clisp.org>
1194
1195         Remove unused variables.
1196         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1197         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1198         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1199         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1200
1201 2012-02-29  Eric Blake  <eblake@redhat.com>
1202
1203         termios: fix pid_t always, not just for tcgetsid
1204         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1205         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1206         just when building tcgetsid.
1207
1208 2012-02-29  Bruno Haible  <bruno@clisp.org>
1209
1210         Tests for module 'hypotl'.
1211         * modules/hypotl-tests: New file.
1212         * tests/test-hypotl.c: New file.
1213
1214         New module 'hypotl'.
1215         * lib/math.in.h (hypotl): New declaration.
1216         * lib/hypotl.c: New file.
1217         * m4/hypotl.m4: New file.
1218         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1219         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1220         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1221         * modules/hypotl: New file.
1222         * tests/test-math-c++.cc: Check the hypotl declaration.
1223         * doc/posix-functions/hypotl.texi: Mention the new module.
1224
1225 2012-02-29  Eric Blake  <eblake@redhat.com>
1226
1227         tcgetsid: fix cygwin header bug
1228         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1229
1230         docs: update cygwin progress
1231         * doc/posix-functions/llround.texi (llround): Added in cygwin
1232         1.7.8.
1233         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1234         * doc/glibc-functions/program_invocation_name.texi
1235         (program_invocation_name): Likewise.
1236         * doc/glibc-functions/program_invocation_short_name.texi
1237         (program_invocation_short_name): Likewise.
1238         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1239         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1240         Likewise.
1241         * doc/posix-functions/pthread_spin_destroy.texi
1242         (pthread_spin_destroy): Added in cygwin 1.7.10.
1243         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1244         Likewise.
1245         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1246         Likewise.
1247         * doc/posix-functions/pthread_spin_trylock.texi
1248         (pthread_spin_trylock): Likewise.
1249         * doc/posix-functions/pthread_spin_unlock.texi
1250         (pthread_spin_unlock): Likewise.
1251         * doc/posix-functions/pthread_setschedprio.texi
1252         (pthread_setschedprio): Likewise.
1253         * doc/posix-functions/pthread_attr_getstack.texi
1254         (pthread_attr_getstack): Likewise.
1255         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1256         (pthread_attr_getstackaddr): Likewise.
1257         * doc/glibc-functions/pthread_getattr_np.texi
1258         (pthread_getattr_np): Likewise.
1259         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1260         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1261         * doc/posix-functions/clock_settime.texi (clock_settime):
1262         Likewise.
1263         * doc/posix-functions/pthread_attr_getguardsize.texi
1264         (pthread_attr_getguardsize): Likewise.
1265         * doc/posix-functions/pthread_attr_setguardsize.texi
1266         (pthread_attr_setguardsize): Likewise.
1267         * doc/posix-functions/pthread_attr_setstack.texi
1268         (pthread_attr_setstack): Likewise.
1269         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1270         (pthread_attr_setstackaddr): Likewise.
1271         * doc/posix-functions/clock_getcpuclockid.texi
1272         (clock_getcpuclockid): Likewise.
1273         * doc/posix-functions/pthread_getcpuclockid.texi
1274         (pthread_getcpuclockid): Likewise.
1275         * doc/glibc-functions/error.texi (error): Likewise.
1276         * doc/glibc-functions/error_at_line.texi (error_at_line):
1277         Likewise.
1278         * doc/glibc-functions/error_message_count.texi
1279         (error_message_count): Likewise.
1280         * doc/glibc-functions/error_one_per_line.texi
1281         (error_one_per_line): Likewise.
1282         * doc/glibc-functions/error_print_progname.texi
1283         (error_print_progname): Likewise.
1284         * doc/posix-functions/pthread_condattr_getclock.texi
1285         (pthread_condattr_getclock): Likewise.
1286         * doc/posix-functions/pthread_condattr_setclock.texi
1287         (pthread_condattr_setclock): Likewise.
1288         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1289         Likewise.
1290         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1291         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1292         * doc/glibc-functions/get_current_dir_name.texi
1293         (get_current_dir_name): Likewise.
1294         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1295         Likewise.
1296         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1297         wrong return type.
1298         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1299         1.7.11.
1300
1301 2012-02-29  Bruno Haible  <bruno@clisp.org>
1302
1303         Tests for module 'hypotf'.
1304         * modules/hypotf-tests: New file.
1305         * tests/test-hypotf.c: New file.
1306
1307         New module 'hypotf'.
1308         * lib/math.in.h (hypotf): New declaration.
1309         * lib/hypotf.c: New file.
1310         * m4/hypotf.m4: New file.
1311         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1312         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1313         REPLACE_HYPOTF.
1314         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1315         REPLACE_HYPOTF.
1316         * modules/hypotf: New file.
1317         * tests/test-math-c++.cc: Check the hypotf declaration.
1318         * doc/posix-functions/hypotf.texi: Mention the new module.
1319
1320         hypot: Prepare for hypotf module.
1321         * m4/hypot.m4: New file.
1322         * modules/hypot (Files): Add m4/hypot.m4.
1323         (configure.ac): Invoke gl_FUNC_HYPOT.
1324
1325 2012-02-29  Bruno Haible  <bruno@clisp.org>
1326
1327         hypot tests: More tests.
1328         * tests/test-hypot.c: Include <float.h>.
1329         (main): Add tests about overflow and underflow.
1330
1331 2012-02-29  Bruno Haible  <bruno@clisp.org>
1332
1333         math code: Add comments.
1334         * lib/acosl.c: Add comment about related glibc source files.
1335         * lib/asinl.c: Likewise.
1336         * lib/atanl.c: Likewise.
1337         * lib/expl.c: Likewise.
1338         * lib/logl.c: Likewise.
1339         * lib/sincosl.c: Likewise.
1340         * lib/sinl.c: Likewise.
1341         * lib/tanl.c: Likewise.
1342         * lib/trigl.c: Likewise.
1343         * lib/cosl.c: Likewise. Fix comments.
1344
1345 2012-02-28  Bruno Haible  <bruno@clisp.org>
1346
1347         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1348         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1349         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1350         HUGE_VALL are defined.
1351         (numeric_equald): Renamed from numeric_equal.
1352         (numeric_equalf, numeric_equall): New functions.
1353         (main): Check also HUGE_VALF, HUGE_VALL.
1354         * modules/math-tests (Files): Add tests/macros.h.
1355         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1356         HUGE_VALL.
1357
1358 2012-02-28  Bruno Haible  <bruno@clisp.org>
1359
1360         doc: Move ISO C11 feature notes into POSIX chapters.
1361         * doc/posix-functions/aligned_alloc.texi: Renamed from
1362         doc/glibc-functions/aligned_alloc.texi.
1363         * doc/posix-functions/quick_exit.texi: Renamed from
1364         doc/glibc-functions/quick_exit.texi.
1365         * doc/posix-headers/uchar.texi: Renamed from
1366         doc/glibc-headers/uchar.texi.
1367         * doc/posix-functions/c16rtomb.texi: Renamed from
1368         doc/glibc-functions/c16rtomb.texi.
1369         * doc/posix-functions/c32rtomb.texi: Renamed from
1370         doc/glibc-functions/c32rtomb.texi.
1371         * doc/posix-functions/mbrtoc16.texi: Renamed from
1372         doc/glibc-functions/mbrtoc16.texi.
1373         * doc/posix-functions/mbrtoc32.texi: Renamed from
1374         doc/glibc-functions/mbrtoc32.texi.
1375         * doc/gnulib.texi: Update.
1376         (Glibc uchar.h): Remove section.
1377         Suggested by Eric Blake.
1378
1379 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         stdnoreturn: port to MSVC better
1382         MSVC standard headers use __declspec(noreturn), so #define noreturn
1383         to empty on that platform.  Reported by Bruno Haible in
1384         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1385         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1386         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1387
1388 2012-02-28  Bruno Haible  <bruno@clisp.org>
1389
1390         doc: Mention new glibc headers and functions.
1391         * doc/glibc-headers/uchar.texi: New file.
1392         * doc/glibc-functions/aligned_alloc.texi: New file.
1393         * doc/glibc-functions/c16rtomb.texi: New file.
1394         * doc/glibc-functions/c32rtomb.texi: New file.
1395         * doc/glibc-functions/clock_adjtime.texi: New file.
1396         * doc/glibc-functions/fanotify_init.texi: New file.
1397         * doc/glibc-functions/fanotify_mark.texi: New file.
1398         * doc/glibc-functions/inet6_opt_append.texi: New file.
1399         * doc/glibc-functions/inet6_opt_find.texi: New file.
1400         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1401         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1402         * doc/glibc-functions/inet6_opt_init.texi: New file.
1403         * doc/glibc-functions/inet6_opt_next.texi: New file.
1404         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1405         * doc/glibc-functions/inet6_rth_add.texi: New file.
1406         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1407         * doc/glibc-functions/inet6_rth_init.texi: New file.
1408         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1409         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1410         * doc/glibc-functions/inet6_rth_space.texi: New file.
1411         * doc/glibc-functions/login.texi: New file.
1412         * doc/glibc-functions/mbrtoc16.texi: New file.
1413         * doc/glibc-functions/mbrtoc32.texi: New file.
1414         * doc/glibc-functions/name_to_handle_at.texi: New file.
1415         * doc/glibc-functions/ntp_gettimex.texi: New file.
1416         * doc/glibc-functions/open_by_handle_at.texi: New file.
1417         * doc/glibc-functions/prlimit.texi: New file.
1418         * doc/glibc-functions/process_vm_readv.texi: New file.
1419         * doc/glibc-functions/process_vm_writev.texi: New file.
1420         * doc/glibc-functions/recvmmsg.texi: New file.
1421         * doc/glibc-functions/scandirat.texi: New file.
1422         * doc/glibc-functions/sendmmsg.texi: New file.
1423         * doc/glibc-functions/setns.texi: New file.
1424         * doc/glibc-functions/timespec_get.texi: New file.
1425         * doc/gnulib.texi: Include them.
1426         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1427         sections.
1428         Reported by Eric Blake.
1429
1430 2012-02-28  Bruno Haible  <bruno@clisp.org>
1431
1432         Avoid compilation errors with MSVC option -fp:strict.
1433         * lib/floor.c: Use MSVC specific pragma fenv_access.
1434         * lib/ceil.c: Likewise.
1435         * lib/trunc.c: Likewise.
1436         * lib/round.c: Likewise.
1437         * lib/rint.c: Likewise.
1438         * lib/fma.c: Likewise.
1439         * lib/integer_length.c: Likewise.
1440         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1441         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1442         * tests/test-floor2.c: Likewise.
1443         * tests/test-floorf2.c: Likewise.
1444         * tests/test-ceil2.c: Likewise.
1445         * tests/test-ceilf2.c: Likewise.
1446         * tests/test-trunc2.c: Likewise.
1447         * tests/test-truncf2.c: Likewise.
1448         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1449
1450 2012-02-27  Bruno Haible  <bruno@clisp.org>
1451
1452         Tests for module 'sqrtl-ieee'.
1453         * modules/sqrtl-ieee-tests: New file.
1454         * tests/test-sqrtl-ieee.c: New file.
1455
1456         New module 'sqrtl-ieee'.
1457         * modules/sqrtl-ieee: New file.
1458
1459         Tests for module 'sqrt-ieee'.
1460         * modules/sqrt-ieee-tests: New file.
1461         * tests/test-sqrt-ieee.c: New file.
1462
1463         New module 'sqrt-ieee'.
1464         * modules/sqrt-ieee: New file.
1465
1466         Tests for module 'sqrtf-ieee'.
1467         * modules/sqrtf-ieee-tests: New file.
1468         * tests/test-sqrtf-ieee.c: New file.
1469         * tests/test-sqrt-ieee.h: New file.
1470
1471         New module 'sqrtf-ieee'.
1472         * modules/sqrtf-ieee: New file.
1473
1474 2012-02-27  Bruno Haible  <bruno@clisp.org>
1475
1476         remainderl-ieee: Work around test failure on OSF/1.
1477         * m4/remainderl-ieee.m4: New file.
1478         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1479         present, test whether remainderl works with a zero second argument.
1480         Replace it if not.
1481         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1483         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1484         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1485         (Depends-on): Update conditions.
1486         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1487         (Depends-on): Add remainder-ieee.
1488         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1489         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1490         module.
1491
1492         remainderf-ieee: Work around test failure on OSF/1.
1493         * m4/remainderf-ieee.m4: New file.
1494         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1495         present, test whether remainderf works with a zero second argument.
1496         Replace it if not.
1497         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1499         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1500         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1501         (Depends-on): Update conditions.
1502         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1503         (Depends-on): Add remainder-ieee.
1504         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1505         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1506         module.
1507
1508         remainder-ieee: Work around test failure on OSF/1.
1509         * m4/remainder-ieee.m4: New file.
1510         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1511         present, test whether remainder works with a zero second argument.
1512         Replace it if not.
1513         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1515         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1516         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1517         (Depends-on): Update dependencies.
1518         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1519         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1520         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1521
1522         Tests for module 'remainderl-ieee'.
1523         * modules/remainderl-ieee-tests: New file.
1524         * tests/test-remainderl-ieee.c: New file.
1525
1526         New module 'remainderl-ieee'.
1527         * modules/remainderl-ieee: New file.
1528
1529         Tests for module 'remainder-ieee'.
1530         * modules/remainder-ieee-tests: New file.
1531         * tests/test-remainder-ieee.c: New file.
1532
1533         New module 'remainder-ieee'.
1534         * modules/remainder-ieee: New file.
1535
1536         Tests for module 'remainderf-ieee'.
1537         * modules/remainderf-ieee-tests: New file.
1538         * tests/test-remainderf-ieee.c: New file.
1539         * tests/test-remainder-ieee.h: New file.
1540
1541         New module 'remainderf-ieee'.
1542         * modules/remainderf-ieee: New file.
1543
1544 2012-02-27  Bruno Haible  <bruno@clisp.org>
1545
1546         modff, modfl: Fix configure syntax error.
1547         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1548         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1549
1550 2012-02-27  Bruno Haible  <bruno@clisp.org>
1551
1552         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1553         * m4/fmodl-ieee.m4: New file.
1554         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1555         whether fmodl works with zero arguments. Replace it if not.
1556         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1557         (Depends-on): Add fmod-ieee.
1558         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1559         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1560
1561         fmodf-ieee: Work around test failure on OSF/1.
1562         * m4/fmodf-ieee.m4: New file.
1563         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1564         whether fmodf works with zero arguments. Replace it if not.
1565         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1566         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1567         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1568         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1569         (Depends-on): Update dependencies.
1570         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1571         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1572         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1573
1574         fmodf-ieee: Work around test failure on MSVC 9.
1575         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1576         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1577
1578         fmod-ieee: Work around test failures on OSF/1, mingw.
1579         * m4/fmod-ieee.m4: New file.
1580         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1581         whether fmod works with zero arguments. Replace it if not.
1582         * lib/math.in.h (fmod): New declaration.
1583         * lib/fmod.c: New file.
1584         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1585         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1586         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1587         * modules/fmod (Files): Add lib/fmod.c.
1588         (Depends-on): Add math, isinf, trunc, fma.
1589         (configure.ac): Arrange to compile lib/fmod.c if needed.
1590         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1591         m4/signbit.m4.
1592         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1593         * tests/test-math-c++.cc: Check the declaration of fmod.
1594         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1595
1596         fmodl-ieee: Fix test failures.
1597         * lib/fmodl.c (fmodl): Treat Inf specially.
1598         * modules/fmodl (Depends-on): Add isinf.
1599
1600         Tests for module 'fmodl-ieee'.
1601         * modules/fmodl-ieee-tests: New file.
1602         * tests/test-fmodl-ieee.c: New file.
1603
1604         New module 'fmodl-ieee'.
1605         * modules/fmodl-ieee: New file.
1606
1607         Tests for module 'fmod-ieee'.
1608         * modules/fmod-ieee-tests: New file.
1609         * tests/test-fmod-ieee.c: New file.
1610
1611         New module 'fmod-ieee'.
1612         * modules/fmod-ieee: New file.
1613
1614         Tests for module 'fmodf-ieee'.
1615         * modules/fmodf-ieee-tests: New file.
1616         * tests/test-fmodf-ieee.c: New file.
1617         * tests/test-fmod-ieee.h: New file.
1618
1619         New module 'fmodf-ieee'.
1620         * modules/fmodf-ieee: New file.
1621
1622 2012-02-27  Bruno Haible  <bruno@clisp.org>
1623
1624         Tests for module 'rintl-ieee'.
1625         * modules/rintl-ieee-tests: New file.
1626         * tests/test-rintl-ieee.c: New file.
1627
1628         New module 'rintl-ieee'.
1629         * modules/rintl-ieee: New file.
1630
1631         Tests for module 'rint-ieee'.
1632         * modules/rint-ieee-tests: New file.
1633         * tests/test-rint-ieee.c: New file.
1634
1635         New module 'rint-ieee'.
1636         * modules/rint-ieee: New file.
1637
1638         Tests for module 'rintf-ieee'.
1639         * modules/rintf-ieee-tests: New file.
1640         * tests/test-rintf-ieee.c: New file.
1641         * tests/test-rint-ieee.h: New file.
1642
1643         New module 'rintf-ieee'.
1644         * modules/rintf-ieee: New file.
1645
1646 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1647
1648         regex: re_search etc. should return -2 when memory exhausted
1649         This bug was uncovered when testing 'grep'.  Without the fix,
1650         re_search and friends return -1 when memory is exhausted, but -1
1651         means no match, and this causes grep to falsely report no-match
1652         instead of memory-exhaustion.  See
1653         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
1654         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
1655         trouble; this can occur if re_search_internal ran out of memory.
1656
1657 2012-02-26  Bruno Haible  <bruno@clisp.org>
1658
1659         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
1660         * m4/modfl-ieee.m4: New file.
1661         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
1662         whether modfl works with Inf. Replace it if not.
1663         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
1664         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
1665         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
1666         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
1667         (Depends-on): Update dependencies.
1668         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
1669         m4/signbit.m4.
1670         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
1671         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
1672
1673         modfl-ieee: Fix dependencies.
1674         * modules/modfl-ieee (Depends-on): Add modf-ieee.
1675
1676         modfl-ieee: Fix test failures.
1677         * lib/modfl.c (modfl): Treat NaN and Inf specially.
1678         * modules/modfl (Depends-on): Add isfinite, isinf.
1679
1680         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
1681         * m4/modff-ieee.m4: New file.
1682         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
1683         whether modff works with NaN and Inf. Replace it if not.
1684         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
1685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
1686         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
1687         * modules/modff (configure.ac): Consider REPLACE_MODFF.
1688         (Depends-on): Update dependencies.
1689         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
1690         m4/signbit.m4.
1691         (Depends-on): Add modf-ieee.
1692         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
1693         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
1694
1695         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
1696         * m4/modf-ieee.m4: New file.
1697         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
1698         whether modf works with NaN and Inf. Replace it if not.
1699         * lib/math.in.h (modf): New declaration.
1700         * lib/modf.c: New file.
1701         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
1702         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
1703         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
1704         * modules/modf (Files): Add lib/modf.c.
1705         (Depends-on): Add math, isfinite, trunc, isinf.
1706         (configure.ac): Addrange to compile lib/modf.c if needed.
1707         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
1708         m4/signbit.m4.
1709         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
1710         * tests/test-math-c++.cc: Check the declaration of modf.
1711         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
1712
1713         Tests for module 'modfl-ieee'.
1714         * modules/modfl-ieee-tests: New file.
1715         * tests/test-modfl-ieee.c: New file.
1716
1717         New module 'modfl-ieee'.
1718         * modules/modfl-ieee: New file.
1719
1720         Tests for module 'modf-ieee'.
1721         * modules/modf-ieee-tests: New file.
1722         * tests/test-modf-ieee.c: New file.
1723
1724         New module 'modf-ieee'.
1725         * modules/modf-ieee: New file.
1726
1727         Tests for module 'modff-ieee'.
1728         * modules/modff-ieee-tests: New file.
1729         * tests/test-modff-ieee.c: New file.
1730         * tests/test-modf-ieee.h: New file.
1731
1732         New module 'modff-ieee'.
1733         * modules/modff-ieee: New file.
1734
1735 2012-02-26  Bruno Haible  <bruno@clisp.org>
1736
1737         Tests for module 'fabsl-ieee'.
1738         * modules/fabsl-ieee-tests: New file.
1739         * tests/test-fabsl-ieee.c: New file.
1740
1741         New module 'fabsl-ieee'.
1742         * modules/fabsl-ieee: New file.
1743
1744         Tests for module 'fabs-ieee'.
1745         * modules/fabs-ieee-tests: New file.
1746         * tests/test-fabs-ieee.c: New file.
1747
1748         New module 'fabs-ieee'.
1749         * modules/fabs-ieee: New file.
1750
1751         Tests for module 'fabsf-ieee'.
1752         * modules/fabsf-ieee-tests: New file.
1753         * tests/test-fabsf-ieee.c: New file.
1754         * tests/test-fabs-ieee.h: New file.
1755
1756         New module 'fabsf-ieee'.
1757         * modules/fabsf-ieee: New file.
1758
1759 2012-02-26  Bruno Haible  <bruno@clisp.org>
1760
1761         Tests for module 'fmal-ieee'.
1762         * modules/fmal-ieee-tests: New file.
1763         * tests/test-fmal-ieee.c: New file.
1764
1765         New module 'fmal-ieee'.
1766         * modules/fmal-ieee: New file.
1767
1768         Tests for module 'fma-ieee'.
1769         * modules/fma-ieee-tests: New file.
1770         * tests/test-fma-ieee.c: New file.
1771
1772         New module 'fma-ieee'.
1773         * modules/fma-ieee: New file.
1774
1775         Tests for module 'fmaf-ieee'.
1776         * modules/fmaf-ieee-tests: New file.
1777         * tests/test-fmaf-ieee.c: New file.
1778         * tests/test-fma-ieee.h: New file.
1779
1780         New module 'fmaf-ieee'.
1781         * modules/fmaf-ieee: New file.
1782
1783 2012-02-26  Bruno Haible  <bruno@clisp.org>
1784
1785         Tests for module 'ldexpl-ieee'.
1786         * modules/ldexpl-ieee-tests: New file.
1787         * tests/test-ldexpl-ieee.c: New file.
1788
1789         New module 'ldexpl-ieee'.
1790         * modules/ldexpl-ieee: New file.
1791
1792         Tests for module 'ldexp-ieee'.
1793         * modules/ldexp-ieee-tests: New file.
1794         * tests/test-ldexp-ieee.c: New file.
1795
1796         New module 'ldexp-ieee'.
1797         * modules/ldexp-ieee: New file.
1798
1799         Tests for module 'ldexpf-ieee'.
1800         * modules/ldexpf-ieee-tests: New file.
1801         * tests/test-ldexpf-ieee.c: New file.
1802         * tests/test-ldexp-ieee.h: New file.
1803
1804         New module 'ldexpf-ieee'.
1805         * modules/ldexpf-ieee: New file.
1806
1807 2012-02-26  Bruno Haible  <bruno@clisp.org>
1808
1809         Refactor frexp*-ieee tests.
1810         * tests/test-frexp-ieee.h: New file.
1811         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
1812         (main): Just call test_function.
1813         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
1814         (main): Just call test_function.
1815         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
1816         (main): Just call test_function.
1817         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
1818         * modules/frexp-ieee-tests (Files): Likewise.
1819         * modules/frexpl-ieee-tests (Files): Likewise.
1820
1821         Tests for module 'frexpl-ieee'.
1822         * modules/frexpl-ieee-tests: New file.
1823         * tests/test-frexpl-ieee.c: New file.
1824
1825         New module 'frexpl-ieee'.
1826         * modules/frexpl-ieee: New file.
1827
1828         Tests for module 'frexp-ieee'.
1829         * modules/frexp-ieee-tests: New file.
1830         * tests/test-frexp-ieee.c: New file.
1831
1832         New module 'frexp-ieee'.
1833         * modules/frexp-ieee: New file.
1834
1835         Tests for module 'frexpf-ieee'.
1836         * modules/frexpf-ieee-tests: New file.
1837         * tests/test-frexpf-ieee.c: New file.
1838
1839         New module 'frexpf-ieee'.
1840         * modules/frexpf-ieee: New file.
1841
1842 2012-02-26  Bruno Haible  <bruno@clisp.org>
1843
1844         roundl-ieee tests: More tests.
1845         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1846         (main): Add tests for [MX] shaded specification in POSIX.
1847         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1848         (Depends-on): Add isnanl-nolibm.
1849
1850         round-ieee tests: More tests.
1851         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1852         (main): Add tests for [MX] shaded specification in POSIX.
1853         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1854         (Depends-on): Add isnand-nolibm.
1855
1856         roundf-ieee tests: More tests.
1857         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1858         (main): Add tests for [MX] shaded specification in POSIX.
1859         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1860         (Depends-on): Add isnanf-nolibm.
1861
1862         truncl-ieee tests: More tests.
1863         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1864         (main): Add tests for [MX] shaded specification in POSIX.
1865         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1866         (Depends-on): Add isnanl-nolibm.
1867
1868         trunc-ieee tests: More tests.
1869         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1870         (main): Add tests for [MX] shaded specification in POSIX.
1871         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1872         (Depends-on): Add isnand-nolibm.
1873
1874         truncf-ieee tests: More tests.
1875         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1876         (main): Add tests for [MX] shaded specification in POSIX.
1877         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1878         (Depends-on): Add isnanf-nolibm.
1879
1880         ceill-ieee tests: More tests.
1881         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1882         (main): Add tests for [MX] shaded specification in POSIX.
1883         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1884         (Depends-on): Add isnanl-nolibm.
1885
1886         ceil-ieee tests: More tests.
1887         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1888         (main): Add tests for [MX] shaded specification in POSIX.
1889         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1890         (Depends-on): Add isnand-nolibm.
1891
1892         ceilf-ieee tests: More tests.
1893         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1894         (main): Add tests for [MX] shaded specification in POSIX.
1895         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1896         (Depends-on): Add isnanf-nolibm.
1897
1898         floorl-ieee tests: More tests.
1899         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1900         (main): Add tests for [MX] shaded specification in POSIX.
1901         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1902         (Depends-on): Add isnanl-nolibm.
1903
1904         floor-ieee tests: More tests.
1905         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1906         (main): Add tests for [MX] shaded specification in POSIX.
1907         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1908         (Depends-on): Add isnand-nolibm.
1909
1910         floorf-ieee tests: More tests.
1911         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1912         (main): Add tests for [MX] shaded specification in POSIX.
1913         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1914         (Depends-on): Add isnanf-nolibm.
1915
1916 2012-02-26  Bruno Haible  <bruno@clisp.org>
1917
1918         fpieee: More comments.
1919         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
1920
1921 2012-02-25  Bruno Haible  <bruno@clisp.org>
1922
1923         Tests for module 'log10l'.
1924         * modules/log10l-tests: New file.
1925         * tests/test-log10l.c: New file.
1926         * tests/test-math-c++.cc: Check the declaration of log10l.
1927
1928         New module 'log10l'.
1929         * lib/math.in.h (log10l): New declaration.
1930         * lib/log10l.c: New file.
1931         * m4/log10l.m4: New file.
1932         * modules/log10l: New file.
1933         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
1934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
1935         HAVE_DECL_LOG10L.
1936         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
1937         HAVE_DECL_LOG10L.
1938         * doc/posix-functions/log10l.texi: Mention the new module.
1939
1940 2012-02-25  Bruno Haible  <bruno@clisp.org>
1941
1942         fmodl, remainder*: Avoid wrong results due to rounding errors.
1943         * lib/fmodl.c (fmodl): Correct the result if it is not within the
1944         expected bounds.
1945         * lib/remainderf.c (remainderf): Likewise.
1946         * lib/remainder.c (remainder): Likewise.
1947         * lib/remainderl.c (remainderl): Likewise.
1948
1949 2012-02-25  Bruno Haible  <bruno@clisp.org>
1950
1951         Tests for module 'remainderl'.
1952         * modules/remainderl-tests: New file.
1953         * tests/test-remainderl.c: New file.
1954         * tests/test-math-c++.cc: Check the declaration of remainderl.
1955
1956         New module 'remainderl'.
1957         * lib/math.in.h (remainderl): New declaration.
1958         * lib/remainderl.c: New file.
1959         * m4/remainderl.m4: New file.
1960         * modules/remainderl: New file.
1961         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1962         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1963         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1964         HAVE_REMAINDERL.
1965         * doc/posix-functions/remainderl.texi: Mention the new module.
1966
1967 2012-02-25  Bruno Haible  <bruno@clisp.org>
1968
1969         Tests for module 'remainderf'.
1970         * modules/remainderf-tests: New file.
1971         * tests/test-remainderf.c: New file.
1972         * tests/test-math-c++.cc: Check the declaration of remainderf.
1973
1974         New module 'remainderf'.
1975         * lib/math.in.h (remainderf): New declaration.
1976         * lib/remainderf.c: New file.
1977         * m4/remainderf.m4: New file.
1978         * modules/remainderf: New file.
1979         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1980         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1981         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1982         HAVE_REMAINDERF.
1983         * doc/posix-functions/remainderf.texi: Mention the new module.
1984
1985 2012-02-25  Bruno Haible  <bruno@clisp.org>
1986
1987         remainder: Support for MSVC.
1988         * lib/math.in.h (remainder): New declaration.
1989         * lib/remainder.c: New file.
1990         * m4/remainder.m4: New file.
1991         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1992         (Depends-on): Add math, round, fma.
1993         (configure.ac): Use results of gl_FUNC_REMAINDER.
1994         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1995         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1996         HAVE_DECL_REMAINDER.
1997         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1998         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1999         * tests/test-math-c++.cc: Check the declaration of remainder.
2000         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2001         problems are fixed.
2002
2003 2012-02-25  Bruno Haible  <bruno@clisp.org>
2004
2005         Tests for module 'fmodl'.
2006         * modules/fmodl-tests: New file.
2007         * tests/test-fmodl.c: New file.
2008         * tests/test-math-c++.cc: Check the declaration of fmodl.
2009
2010         New module 'fmodl'.
2011         * lib/math.in.h (fmodl): New declaration.
2012         * lib/fmodl.c: New file.
2013         * m4/fmodl.m4: New file.
2014         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2015         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2016         REPLACE_FMODL.
2017         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2018         REPLACE_FMODL.
2019         * modules/fmodl: New file.
2020         * doc/posix-functions/fmodl.texi: Mention the new module.
2021
2022 2012-02-25  Bruno Haible  <bruno@clisp.org>
2023
2024         Tests for module 'modfl'.
2025         * modules/modfl-tests: New file.
2026         * tests/test-modfl.c: New file.
2027         * tests/test-math-c++.cc: Check the declaration of modfl.
2028
2029         New module 'modfl'.
2030         * lib/math.in.h (modfl): New declaration.
2031         * lib/modfl.c: New file.
2032         * m4/modfl.m4: New file.
2033         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2034         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2035         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2036         * modules/modfl: New file.
2037         * doc/posix-functions/modfl.texi: Mention the new module.
2038
2039 2012-02-25  Bruno Haible  <bruno@clisp.org>
2040
2041         Tests for module 'fabsl'.
2042         * modules/fabsl-tests: New file.
2043         * tests/test-fabsl.c: New file.
2044         * tests/test-math-c++.cc: Check the declaration of fabsl.
2045
2046         New module 'fabsl'.
2047         * lib/math.in.h (fabsl): New declaration.
2048         * lib/fabsl.c: New file.
2049         * m4/fabsl.m4: New file.
2050         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2052         REPLACE_FABSL.
2053         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2054         REPLACE_FABSL.
2055         * modules/fabsl: New file.
2056         * doc/posix-functions/fabsl.texi: Mention the new module.
2057
2058 2012-02-25  Bruno Haible  <bruno@clisp.org>
2059
2060         fabs tests: More tests.
2061         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2062         (zero): New variable.
2063         (main): Add tests for signed zero.
2064         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2065
2066         fabsf tests: More tests.
2067         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2068         (zero): New variable.
2069         (main): Add tests for signed zero.
2070         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2071
2072 2012-02-24  Bruno Haible  <bruno@clisp.org>
2073
2074         atanl: Provide function definition on MSVC.
2075         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2076         function pointer.
2077         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2078
2079 2012-02-24  Bruno Haible  <bruno@clisp.org>
2080
2081         acosl: Provide function definition on MSVC.
2082         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2083         function pointer.
2084         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2085
2086 2012-02-24  Bruno Haible  <bruno@clisp.org>
2087
2088         asinl: Provide function definition on MSVC.
2089         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2090         function pointer.
2091         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2092
2093 2012-02-24  Bruno Haible  <bruno@clisp.org>
2094
2095         tanl: Provide function definition on MSVC.
2096         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2097         function pointer.
2098         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2099
2100 2012-02-24  Bruno Haible  <bruno@clisp.org>
2101
2102         cosl: Provide function definition on MSVC.
2103         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2104         function pointer.
2105         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2106
2107 2012-02-24  Bruno Haible  <bruno@clisp.org>
2108
2109         sinl: Provide function definition on MSVC.
2110         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2111         function pointer.
2112         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2113
2114 2012-02-24  Bruno Haible  <bruno@clisp.org>
2115
2116         logl: Provide function definition on MSVC.
2117         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2118         function pointer.
2119         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2120
2121 2012-02-24  Bruno Haible  <bruno@clisp.org>
2122
2123         expl: Provide function definition on MSVC.
2124         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2125         function pointer.
2126         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2127
2128 2012-02-24  Bruno Haible  <bruno@clisp.org>
2129
2130         sqrtl: Provide function definition on MSVC.
2131         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2132         a function pointer.
2133         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2134
2135 2012-02-24  Bruno Haible  <bruno@clisp.org>
2136
2137         ceill: Provide function definition on MSVC.
2138         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2139         used as a function pointer.
2140         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2141
2142 2012-02-24  Bruno Haible  <bruno@clisp.org>
2143
2144         floorl: Provide function definition on MSVC.
2145         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2146         used as a function pointer.
2147         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2148
2149 2012-02-24  Bruno Haible  <bruno@clisp.org>
2150
2151         ceilf: Provide function definition on MSVC.
2152         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2153         used as a function pointer.
2154         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2155
2156 2012-02-24  Bruno Haible  <bruno@clisp.org>
2157
2158         floorf: Provide function definition on MSVC.
2159         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2160         used as a function pointer.
2161         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2162
2163 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2164
2165         stdnoreturn: new module
2166         This implements a replacement for C11's <stdnoreturn.h>.
2167         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2168         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2169         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2170         * tests/test-stdnoreturn.c: New files.
2171
2172 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2173
2174         regex: fix false multibyte matches in some regular expressions
2175         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2176         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2177         * lib/regex_internal.c (re_string_skip_chars):
2178         Fix miscomputation of remain_len that may cause incomplete
2179         multi-byte character and false match.
2180
2181 2012-02-24  Jim Meyering  <meyering@redhat.com>
2182
2183         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2184         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2185         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2186         Remove now-unnecessary str''cmp obfuscation.
2187         Suggested by Akim Demaille.
2188
2189 2012-02-24  Bruno Haible  <bruno@clisp.org>
2190
2191         streq: Rename macro.
2192         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2193         * NEWS: Mention the change.
2194         * lib/mbrtowc.c (mbrtowc): Update.
2195         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2196         * lib/wcwidth.c (wcwidth): Update.
2197         Suggested by Akim Demaille and Jim Meyering.
2198
2199 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2200
2201         regex: fix typo in definition of MIN
2202         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2203         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2204
2205 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2206             Bruno Haible  <bruno@clisp.org>
2207
2208         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2209         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2210         entries into a stack-allocated buffer directly.
2211         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2212
2213 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2214             Bruno Haible  <bruno@clisp.org>
2215
2216         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2217
2218          - There were several instances of this pattern:
2219
2220              for (;;) {
2221                n = acl (f, GETACLCNT, 0, NULL);
2222                [ allocate an array A of size N ]
2223                if (acl (f, GETACL, n, a) == n)
2224                  break;
2225              }
2226
2227            This loop might never terminate if some other process is constantly
2228            manipulating the file's ACL.  The loop should be rewritten to
2229            terminate.
2230
2231          - The acl (... GETACLNT ...) call is merely an optimization; its value
2232            is merely a hint as to how big to make the array.  A better
2233            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2234            and just guess a reasonably-big size, growing the size and trying
2235            again if it's not large enough.  This guarantees termination, and
2236            saves a system call.
2237
2238         * lib/acl-internal.h: Include <limits.h>.
2239         (MIN, SIZE_MAX): New macros.
2240         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2241         a stack-allocated buffer, and use malloc if it does not fit. Don't
2242         use GETACLCNT.
2243         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2244
2245 2012-02-19  Bruno Haible  <bruno@clisp.org>
2246
2247         acl: Fix endless loop on Solaris with vxfs.
2248         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2249         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2250         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2251         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2252         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2253         Reported by Bill Jones in
2254         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2255
2256 2012-02-19  Bruno Haible  <bruno@clisp.org>
2257
2258         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2259         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2260         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2261         that this function returns 0 in some more cases.
2262
2263 2012-02-19  Bruno Haible  <bruno@clisp.org>
2264
2265         acl: Update doc references.
2266         * doc/acl-resources.txt: Update links to Solaris documentation.
2267
2268 2012-02-19  Bruno Haible  <bruno@clisp.org>
2269
2270         Fix test failure in many locales on Solaris 11.
2271         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2272         'tr' arguments.
2273         * tests/test-pipe-filter-ii1.c (main): Likewise.
2274         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2275         expressions in the C locale.
2276         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2277         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2278
2279 2012-02-19  Bruno Haible  <bruno@clisp.org>
2280
2281         gnulib-tool: Improve usage message.
2282         * gnulib-tool (func_usage): Move doc of --help and --version to the
2283         section "Operation modes".
2284
2285 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2286
2287         README-release: make it easier to execute commands
2288         * top/README-release: break commands out on to separate lines.
2289
2290 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2291
2292         GNUmakefile: simplify detection of unconfigured trees
2293         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2294         whether the tree make is being run from is already configured or
2295         not.  Related simplifications.
2296
2297 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2298
2299         * gnulib-tool (func_usage): Document --help and --version.
2300
2301 2012-02-11  Jim Meyering  <meyering@redhat.com>
2302
2303         bootstrap: don't exit 0 upon gnulib-tool failure
2304         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2305         its exit status, not 0.
2306
2307 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2308
2309         README-release: various improvements
2310         * top/README-release: Give a command to push changes for the
2311         release.  Add "distcheck" to list of other pre-release checks.
2312         Fix instance of "make stable" which should be "make TYPE".
2313
2314 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2315
2316         maint: replace FSF snail-mail addresses with URLs
2317         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2318         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2319         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2320         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2321         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2322         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2323         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2324         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2325         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2326         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2327         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2328         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2329         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2330         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2331         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2332         * lib/glthread/thread.c, lib/glthread/thread.h:
2333         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2334         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2335         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2336         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2337         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2338         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2339         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2340         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2341         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2342         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2343         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2344         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2345         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2346         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2347         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2348         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2349         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2350         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2351         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2352         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2353         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2354         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2355         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2356         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2357         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2358         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2359         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2360         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2361         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2362         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2363         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2364         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2365         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2366         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2367         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2368         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2369         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2370         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2371         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2372         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2373         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2374         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2375         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2376         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2377         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2378         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2379         * tests/test-poll.c, tests/test-quotearg-simple.c:
2380         * tests/test-quotearg.c, tests/test-quotearg.h:
2381         * tests/test-round-ieee.c, tests/test-round1.c:
2382         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2383         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2384         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2385         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2386         * tests/test-strerror.c, tests/test-strerror_r.c:
2387         * tests/test-strsignal.c, tests/test-strverscmp.c:
2388         * tests/test-xmemdup0.c:
2389         Replace FSF snail mail addresses with URLs, as per GNU coding
2390         standards.  See glibc bug
2391         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2392
2393 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2394
2395         README-release: capitalize a word and split a line
2396         * top/README-release: Fix punctuation and spacing.
2397
2398 2012-02-08  Akim Demaille  <demaille@gostai.com>
2399
2400         fatal-signal: use C prototypes (with explicit void).
2401         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2402         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2403
2404 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2405
2406         regex: spelling fix
2407         * lib/regexec.c: spelling fix
2408
2409         regex: rely on stdint.h for SIZE_MAX
2410         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2411
2412 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2413
2414         regex: merge glibc changes
2415
2416         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2417         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2418         (init_word_char): Work even if bitset words are not exactly 32 or
2419         64 bits wide.  Don't assume there are no padding bits.
2420         * lib/regex.c [_LIBC]: Do not include <config.h>.
2421         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2422         and -Wtype-limits.
2423         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2424         needless disagreement with glibc.  All uses changed.  Define it to
2425         1 only if _GNU_SOURCE, to match glibc.
2426         (_REG_RM_NAME): Remove; no longer needed, since the names in
2427         question are now all protected by __USE_GNU.
2428         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2429         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2430         * lib/regex_internal.h (MIN): New macro.
2431
2432         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2433         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2434
2435         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2436         * lib/regex_internal.c (re_string_fetch_byte_case):
2437         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2438         is miscompiled, and it turns out it is because of an incorrect
2439         attribute on re_string_fetch_byte_case.  Unlike
2440         re_string_peek_byte_case, this one is really not pure, it modifies
2441         memory (increments pstr->cur_idx), and with the pure attribute GCC
2442         assumed it doesn't and it cached the presumed value of
2443         regexp->cur_idx in a variable across the
2444          for (;; ++i)
2445            {
2446              if (i >= BRACKET_NAME_BUF_SIZE)
2447                return REG_EBRACK;
2448              if (token->type == OP_OPEN_CHAR_CLASS)
2449                ch = re_string_fetch_byte_case (regexp);
2450              else
2451                ch = re_string_fetch_byte (regexp);
2452              if (re_string_eoi(regexp))
2453                return REG_EBRACK;
2454              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2455                break;
2456              elem->opr.name[i] = ch;
2457            }
2458
2459         2011-11-29 Andreas Schwab <schwab@redhat.com>
2460         * lib/regcomp.c (build_equiv_class):
2461         Fix access after end of search string in regex matcher.
2462
2463         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2464         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2465
2466         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2467         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2468
2469         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2470         * lib/regcomp.c (parse_branch, parse_sub_exp):
2471         More regex memory leak fixes and tests.
2472         (parse_sub_exp, parse_bracket_exp):
2473         Fix memory leak for some invalid regular expressions.
2474
2475         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2476         * lib/regex_internal.c, lib/regexec.c:
2477         Fix unnecessary overallocation due to incomplete character.  When
2478         incomplete characters are found at the end of a string the code
2479         ran amok and allocated lots of memory.  Stricter limits are now in
2480         place.
2481
2482         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2483         * lib/regex.h: Update documentation.
2484
2485         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2486         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2487
2488         2010-05-05 Andreas Schwab <schwab@redhat.com>
2489         * lib/regexec.c (find_collation_sequence_value):
2490         Fix lookup of collation sequence value during regexp matching.
2491
2492         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2493         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2494
2495         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2496         * lib/regex.h: Cleanup namespace.
2497
2498         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2499         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2500
2501         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2502         * lib/regex_internal.h: Prevent some declarations and definitions
2503         to be seen when used in tests.
2504
2505         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2506         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2507         __libc_lock_* macros if not _LIBC.
2508         (struct re_dfa_t): Add lock.
2509
2510 2012-02-07  Eric Blake  <eblake@redhat.com>
2511
2512         maint.mk: also prohibit lower-case @var@
2513         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2514         lower case, like @top_srcdir@.
2515
2516 2012-02-04  Eric Blake  <eblake@redhat.com>
2517
2518         canonicalize: avoid uninitialized memory use
2519         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2520         random '/' left in dest.
2521         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2522
2523 2012-02-04  Bruno Haible  <bruno@clisp.org>
2524
2525         isatty: Fix test failure of ptsname_r on native Windows.
2526         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2527         and don't set errno.
2528         (isatty): Test first whether fd is valid. Set errno when returning 0.
2529
2530 2012-02-04  Bruno Haible  <bruno@clisp.org>
2531
2532         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2533         * tests/test-spawn-pipe-main.c: Include progname.h.
2534         (main): Invoke set_program_name.
2535         * modules/spawn-pipe-tests (Depends-on): Add progname.
2536
2537         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2538         * tests/test-nonblocking-socket-main.c: Include progname.h.
2539         (main): Invoke set_program_name.
2540         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2541
2542         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2543         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2544         (main): Invoke set_program_name.
2545         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2546
2547 2012-02-04  Eric Blake  <eblake@redhat.com>
2548
2549         canonicalize-lgpl: fix // handling
2550         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2551
2552         canonicalize: fix // handling
2553         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2554         /// to //, since only // is special.
2555
2556 2012-02-04  Bruno Haible  <bruno@clisp.org>
2557
2558         ioctl: Fix test failure on native Windows.
2559         * lib/ioctl.c: Include msvc-nothrow.h.
2560         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2561
2562 2012-02-04  Bruno Haible  <bruno@clisp.org>
2563
2564         fsync: Avoid test failure on native Windows.
2565         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2566         read-only.
2567
2568 2012-02-04  Bruno Haible  <bruno@clisp.org>
2569
2570         sys_select: Avoid syntax error on OpenBSD 5.0.
2571         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2572         currently being included, just include the system's <sys/select.h>.
2573
2574 2012-02-04  Bruno Haible  <bruno@clisp.org>
2575
2576         sys_select: Avoid syntax error on OpenBSD 5.0.
2577         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2578         <sys/select.h>, not before.
2579         Reported by Jiri B <jirib@devio.us>.
2580
2581 2012-02-04  Bruno Haible  <bruno@clisp.org>
2582
2583         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2584         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2585         global variables.
2586         * tests/test-get-rusage-data.c (main): Likewise.
2587         Reported by Jim Meyering.
2588
2589 2012-02-04  Bruno Haible  <bruno@clisp.org>
2590
2591         stdioext: Fix last commit.
2592         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2593
2594 2012-02-03  Bruno Haible  <bruno@clisp.org>
2595
2596         stdioext: Add tentative support for Plan9.
2597         * lib/stdio-impl.h: Include <errno.h>.
2598         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2599         * lib/freadable.c (freadable): Likewise.
2600         * lib/fwritable.c (fwritable): Likewise.
2601         * lib/fbufmode.c (fbufmode): Likewise.
2602         * lib/freading.c (freading): Likewise.
2603         * lib/fwriting.c (fwriting): Likewise.
2604         * lib/freadptr.c (freadptr): Likewise.
2605         * lib/freadseek.c (freadptrinc): Likewise.
2606         * lib/freadahead.c (freadahead): Likewise.
2607         * lib/fpurge.c (fpurge): Likewise.
2608         * lib/fseeko.c (rpl_fseeko): Likewise.
2609         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
2610         Reported by Jens Staal <staal1978@gmail.com>.
2611
2612 2012-02-02  Jim Meyering  <meyering@redhat.com>
2613
2614         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
2615         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
2616         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
2617         not even to try to add the attribute.  Instead, add a pragma to suppress
2618         the suggestion/warning.
2619
2620 2012-01-31  Karl Berry  <karl@gnu.org>
2621
2622         setstate doc: typo.
2623         * doc/posix-functions/setstate.texi (setstate): { not (.
2624
2625 2012-01-31  Bruno Haible  <bruno@clisp.org>
2626
2627         popen: Make more robust on Windows.
2628         * lib/popen.c: On native Windows, use the _popen based code even if
2629         HAVE_POPEN is set.
2630         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
2631         environment variable on native Windows.
2632
2633 2012-01-30  Bruno Haible  <bruno@clisp.org>
2634
2635         pclose: Fix typo.
2636         * lib/stdio.in.h (pclose): Fix typo in warning message.
2637
2638 2012-01-30  Bruno Haible  <bruno@clisp.org>
2639
2640         doc about getlogin_r, setstate.
2641         * doc/posix-functions/getlogin_r.texi: List the incompatible
2642         declaration problem under "not fixed by gnulib".
2643         * doc/posix-functions/setstate.texi: Mention incompatible declaration
2644         problem on Solaris 11 and other platforms.
2645
2646 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
2647             Bruno Haible  <bruno@clisp.org>
2648
2649         poll tests: Make test more robust.
2650         * tests/test-poll.c: Include macros.h.
2651         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
2652         return value of various I/O operations.
2653         * modules/poll-tests (Files): Add tests/macros.h.
2654
2655 2012-01-30  Bruno Haible  <bruno@clisp.org>
2656
2657         sys_stat: Fix support for mingw64 and MSVC.
2658         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
2659         header files already do it.
2660         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
2661         stat itself.
2662         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2663
2664 2012-01-30  Bruno Haible  <bruno@clisp.org>
2665
2666         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
2667         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
2668         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
2669
2670 2012-01-29  Bruno Haible  <bruno@clisp.org>
2671
2672         quotearg: Fix test failure on MacOS X 10.5.
2673         * tests/test-quotearg-simple.c: Include localcharset.h.
2674         (main): If the locale encoding is not ASCII, bypass the tests of
2675         locale_quoting_style and clocale_quoting_style.
2676         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
2677
2678 2012-01-29  Jim Meyering  <meyering@redhat.com>
2679
2680         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
2681         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
2682         detect uses of canonicalize_file_name.
2683
2684 2012-01-28  Bruno Haible  <bruno@clisp.org>
2685
2686         test-framework-sh: Fix test failure with AIX 7.1 diff.
2687         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
2688         in column 1, like 'diff -c' does.
2689         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
2690         whether 'diff -u' is used. Instead, test whether the output contains
2691         some '@' character.
2692
2693 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2694
2695         strtoimax: eliminate need for stdint.h, inttypes.h checks
2696         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
2697         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
2698         the prerequisites for a recently-introduced strtoimax test.
2699         I guess this might cause strtoimax to be replaced when not
2700         strictly necessary on older hosts, but this shouldn't introduce
2701         any bugs and it should make Emacs 'configure' faster on typical
2702         modern hosts.  Problem discovered when importing the latest gnulib
2703         to an Emacs test version.
2704         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
2705
2706 2012-01-28  Bruno Haible  <bruno@clisp.org>
2707
2708         sys_time: Override 'struct timeval' on some native Windows platforms.
2709         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
2710         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
2711         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
2712         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
2713         needs to be overridden.
2714         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
2715         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
2716         * tests/test-sys_select.c: Check that the tv_sec member has the same
2717         size as a 'time_t'.
2718         * tests/test-sys_time.c: Likewise.
2719         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
2720         is set, set also REPLACE_GETTIMEOFDAY.
2721         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
2722         convert the resulting 'struct timeval' before returning.
2723         * lib/select.c: Include <sys/time.h>.
2724         (select, timeval): Undefine at the right place.
2725         * modules/select (Depends-on): Add sys_time.
2726         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
2727         some Windows platforms.
2728         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2729
2730 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2731
2732         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
2733         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
2734         an integer.
2735         * lib/fcntl.c (dupfd): Likewise.
2736         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
2737
2738 2012-01-28  Bruno Haible  <bruno@clisp.org>
2739
2740         fcntl: Avoid compilation error on native Windows.
2741         * modules/fcntl (Depends-on): Add 'close'.
2742
2743 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2744
2745         select, poll, isatty: Avoid warnings on x86_64 mingw64.
2746         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
2747         pointer to an integer.
2748         * lib/poll.c (IsConsoleHandle): Likewise.
2749         * lib/isatty.c (IsConsoleHandle): Likewise.
2750
2751 2012-01-28  Jim Meyering  <meyering@redhat.com>
2752
2753         doc: clarify README-release
2754         * top/README-release: Clarify: you should make a point to have
2755         the latest stable versions of build tools in your PATH, and the
2756         reference to buildreq is solely for its list of tool names, not
2757         for its minimal-functional version numbers.
2758         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
2759
2760         maint.mk: use more readable (yet functionally equivalent) quoting
2761         It is common to quote a single quote in a single quoted string like
2762         this:  '...'\''...'.  Unless you know the idiom, that looks like
2763         gibberish, so prefer to double-quote the string when possible.
2764         Then you can use a more readable, lone single quote: "...'..."
2765         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
2766         "don't" is more readable than the equivalent 'don'\''t'.
2767         (sc_cast_of_x_alloc_return_value): Likewise.
2768         (sc_cast_of_alloca_return_value): Likewise.
2769         (sc_makefile_path_separator_check): Similar: use ":" in '...',
2770         rather than '\'':'\''.
2771
2772 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2773
2774         stdalign: relax _Alignof and tighten _Alignas test
2775         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
2776         as it was too strict: alignof must divide offsetof, but it need
2777         not equal offsetof.  Inspired by Joseph S. Myers's comment
2778         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
2779         Conversely, tighten the _Alignas test a bit, as the resulting
2780         alignment must be exactly 8.
2781
2782 2012-01-27  Bruno Haible  <bruno@clisp.org>
2783
2784         stdalign: Document the last change.
2785         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
2786
2787 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2788
2789         stdalign: check that alignof and offsetof are consistent
2790         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
2791         Problem reported for gnulib by Richard W.M. Jones in
2792         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
2793
2794 2012-01-27  Jim Meyering  <meyering@redhat.com>
2795
2796         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
2797         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
2798         convert a sequence with gaps to the minimal containing range.
2799         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
2800         * tests/test-update-copyright.sh: Test for this.
2801         The FSF confirmed it is ok to do this, assuming there is at
2802         least one significant change per year in the affected range:
2803         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
2804
2805 2012-01-26  Bruno Haible  <bruno@clisp.org>
2806
2807         pipe2: refine doc about thread-safety
2808         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
2809         multithread-safety problem.
2810         * doc/glibc-functions/accept4.texi: Likewise.
2811
2812 2012-01-26  Bruno Haible  <bruno@clisp.org>
2813
2814         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
2815         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
2816         In the test program, include <fcntl.h>, for O_RDONLY.
2817
2818 2012-01-26  Eric Blake  <eblake@redhat.com>
2819
2820         pipe2: document lack of thread-safety in replacement
2821         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
2822         issue in replacement.
2823         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2824         Based on a report by Eric Wong.
2825
2826 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2827             Bruno Haible  <bruno@clisp.org>
2828
2829         malloca: Avoid warnings on x86_64 mingw64.
2830         * lib/malloca.c: Include <stdint.h>.
2831         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
2832         * modules/malloca (Depends-on): Add stdint.
2833         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
2834
2835 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2836
2837         obstack: remove __STDC__ conditionals
2838         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
2839         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
2840         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
2841         m4/include_next.m4 as the only gnulib-maintained places that still
2842         refer to __STDC__.
2843
2844 2012-01-24  Bruno Haible  <bruno@clisp.org>
2845
2846         havelib: Modern quoting.
2847         * build-aux/config.rpath: Quote 'like this', not `like this', as per
2848         the recent change to the GNU coding standards.
2849
2850 2012-01-24  Bruno Haible  <bruno@clisp.org>
2851
2852         stdint: Improve support for Android.
2853         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
2854         Reported by Simon Josefsson <simon@josefsson.org>.
2855
2856 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2857
2858         doc: omit trailing empty lines from INSTALL etc.
2859         * doc/Makefile (INSTALL): Omit trailing empty lines.
2860         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
2861         omit trailing empty lines.  This simplifies the build procedure.
2862
2863 2012-01-23  Jim Meyering  <meyering@redhat.com>
2864
2865         tests: avoid spurious warnings about gl_sockets_startup
2866         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
2867         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
2868         reporting a "statement with no effect".
2869         * tests/test-accept.c (main): Mark as "(void)".
2870         * tests/test-accept4.c (main): Likewise.
2871         * tests/test-bind.c (main): Likewise.
2872         * tests/test-connect.c (main): Likewise.
2873         * tests/test-getpeername.c (main): Likewise.
2874         * tests/test-getsockname.c (main): Likewise.
2875         * tests/test-getsockopt.c (main): Likewise.
2876         * tests/test-listen.c (main): Likewise.
2877         * tests/test-recv.c (main): Likewise.
2878         * tests/test-recvfrom.c (main): Likewise.
2879         * tests/test-send.c (main): Likewise.
2880         * tests/test-sendto.c (main): Likewise.
2881         * tests/test-setsockopt.c (main): Likewise.
2882         * tests/test-shutdown.c (main): Likewise.
2883
2884 2012-01-21  Bruno Haible  <bruno@clisp.org>
2885
2886         locale-fr.m4: Fix for Android.
2887         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
2888         failure of the test program on Bionic libc.
2889
2890 2012-01-21  Jim Meyering  <meyering@redhat.com>
2891
2892         bootstrap: fail when bootstrap_post_import_hook fails
2893         Otherwise, it's far too easy to miss diagnostics emitted
2894         between gnulib-tool's output and that of running configure.
2895         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
2896
2897 2012-01-17  Jim Meyering  <meyering@redhat.com>
2898
2899         maint: enable sc_trailing_blank
2900         * build-aux/pmccabe.css: Remove trailing blanks.
2901         * doc/acl-cygwin.txt: Likewise.
2902         * doc/gnu-oids.texi: Likewise
2903         * cfg.mk: Enable sc_trailing_blank.
2904         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2905
2906 2012-01-17  Jim Meyering  <meyering@redhat.com>
2907
2908         maint: enable sc_prohibit_openat_without_use
2909         * cfg.mk: Enable sc_prohibit_openat_without_use.
2910         Exempt lib/selinux-at.c.
2911
2912 2012-01-17  Jim Meyering  <meyering@redhat.com>
2913
2914         maint: enable sc_prohibit_cloexec_without_use
2915         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
2916         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2917
2918 2012-01-17  Jim Meyering  <meyering@redhat.com>
2919
2920         maint: enable sc_prohibit_intprops_without_use
2921         * cfg.mk: Enable sc_prohibit_intprops_without_use
2922         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
2923
2924 2012-01-17  Jim Meyering  <meyering@redhat.com>
2925
2926         maint: enable sc_prohibit_hash_pjw_without_use
2927         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
2928         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
2929         to match any use of \<hash_pjw\>, i.e., not necessarily with a
2930         following " (".
2931
2932 2012-01-17  Jim Meyering  <meyering@redhat.com>
2933
2934         maint: enable double-word-prohibiting rule
2935         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
2936         Exempt three files.
2937
2938 2012-01-17  Jim Meyering  <meyering@redhat.com>
2939
2940         maint: remove empty lines at EOF, but excluding modules/*
2941         Apply syntax rules at home as well as abroad.  Most changes
2942         were induced by running this:
2943           make srcdir=. _build-aux=build-aux -f top/maint.mk \
2944             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
2945             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
2946         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2947         Exempt modules/* and two binary files.
2948         Also exempt doc/INSTALL*, per request from Bruno Haible.
2949         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2950         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2951         * doc/Copyright/request-assign.future: Likewise.
2952         * doc/Copyright/request-disclaim.changes: Likewise.
2953         * doc/INSTALL: Likewise.
2954         * doc/INSTALL.ISO: Likewise.
2955         * doc/INSTALL.UTF-8: Likewise.
2956         * doc/acl-cygwin.txt: Likewise.
2957         * doc/acl-resources.txt: Likewise.
2958         * doc/fdl-1.2.texi: Likewise.
2959         * doc/fdl-1.3.texi: Likewise.
2960         * doc/fdl.texi: Likewise.
2961         * lib/argp-pin.c: Likewise.
2962         * lib/round.c: Likewise.
2963         * lib/unicase/u16-totitle.c: Likewise.
2964         * lib/unictype/block_test.c: Likewise.
2965         * lib/uninorm/canonical-decomposition.c: Likewise.
2966         * m4/README: Likewise.
2967         * m4/relocatable-lib.m4: Likewise.
2968         * tests/test-isnand-nolibm.c: Likewise.
2969         * tests/test-isnand.c: Likewise.
2970         * tests/uninorm/NormalizationTest.txt: Likewise.
2971
2972 2012-01-17  Jim Meyering  <meyering@redhat.com>
2973
2974         maint: add framework to run syntax-check rules against gnulib sources
2975         * cfg.mk: New file, to disable all currently-failing tests.
2976         We'll enable them one by one, as they are made to pass.
2977         * Makefile (sc_maint): New rule.
2978
2979 2012-01-21  Bruno Haible  <bruno@clisp.org>
2980
2981         stdint: Add support for Android.
2982         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2983         include the system's <stdint.h>.
2984         Reported by Simon Josefsson <simon@josefsson.org>.
2985
2986 2012-01-19  Jim Meyering  <meyering@redhat.com>
2987
2988         bootstrap: add bootstrap_post_import_hook
2989         Bison does still need something like the gnulib_mk_hook whose
2990         invocation I had to remove along with slurp in commit 767ccd40.
2991         Technically, we could get along without it, but doing so would
2992         have required living with a warning and a mandatory post-bootstrap
2993         automake rerun.
2994         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2995         (bootstrap_post_import_hook): New function.
2996         Invoke it after gnulib-tool --import and before autoreconf.
2997
2998 2012-01-18  Jim Meyering  <meyering@redhat.com>
2999
3000         gitlog-to-changelog: don't use "no_"-prefixed variable name
3001         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3002         to enable both --cluster and --no-cluster.  Change variable name,
3003         s/\$no_cluster/$cluster/, and reverse usage to match.
3004
3005         gitlog-to-changelog: use "||", not "or" in expressions
3006         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3007         expressions.
3008
3009 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3010
3011         gitlog-to-changelog: new option --no-cluster
3012         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3013         clustering of adjacent commit messages.
3014
3015 2012-01-17  Jim Meyering  <meyering@redhat.com>
3016
3017         maint: spell file systems with two words, not one
3018         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3019         two words, not one.
3020
3021 2012-01-16  Jim Meyering  <meyering@redhat.com>
3022
3023         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3024         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3025
3026 2012-01-16  Eric Blake  <eblake@redhat.com>
3027
3028         bootstrap: cater to autoconf 2.59
3029         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3030         is not available.
3031
3032         bootstrap: properly check for libtool
3033         * build-aux/bootstrap (libtoolize): Also run libtool when older
3034         usage is detected.
3035
3036 2012-01-15  Bruno Haible  <bruno@clisp.org>
3037
3038         Improve support for MSVC 9.
3039         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3040         clashes on MSVC.
3041         * lib/fcntl.in.h: Likewise.
3042         * lib/stdlib.in.h: Likewise.
3043         * lib/sys_stat.in.h: Likewise.
3044
3045 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3046
3047         gnupload: we hold the master copy of this script now
3048         For motivation and more information, see:
3049         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3050         * build-aux/gnupload: Make it clear in the heading comments that the
3051         master copy of this file is maintained by gnulib.  Since we are at
3052         it, bump its copyright year and ...
3053         ($scriptversion): ... the date in its version.
3054         ($usage): Patches and bug reports should be sent to the gnulib list,
3055         not the automake one.
3056         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3057         anymore.
3058
3059 2012-01-15  Bruno Haible  <bruno@clisp.org>
3060
3061         Fix module 'random'.
3062         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3063         initstate, setstate are declared.
3064
3065 2012-01-14  Bruno Haible  <bruno@clisp.org>
3066
3067         Tests for module 'random'.
3068         * modules/random-tests: New file.
3069         * tests/test-random.c: New file, based on tests/test-random_r.c.
3070
3071         New module 'random'.
3072         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3073         declarations.
3074         * lib/random.c: New file, based on glibc/stdlib/random.c.
3075         * m4/random.m4: New file.
3076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3077         HAVE_RANDOM.
3078         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3079         * modules/random: New file.
3080         * config/srclist.txt: Add an entry for random.c.
3081         * doc/posix-functions/random.texi: Mention the 'random' module.
3082         * doc/posix-functions/initstate.texi: Likewise.
3083         * doc/posix-functions/setstate.texi: Likewise.
3084         * doc/posix-functions/srandom.texi: Likewise.
3085
3086 2012-01-12  Bruno Haible  <bruno@clisp.org>
3087
3088         random_r: Use common idioms.
3089         * lib/random_r.c: Include <stdlib.h> first.
3090
3091         random_r: Override incompatible API on AIX, OSF/1.
3092         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3093         Override the system function if REPLACE_RANDOM_R is 1.
3094         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3095         and OSF/1, set REPLACE_RANDOM_R.
3096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3097         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3098         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3099         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3100         * doc/glibc-functions/random_r.texi: Likewise.
3101         * doc/glibc-functions/setstate_r.texi: Likewise.
3102
3103         random_r: Support for MSVC 9.
3104         * lib/random_r.c: Include stdint.h, not inttypes.h.
3105
3106 2012-01-12  Eric Blake  <eblake@redhat.com>
3107
3108         inet_ntop: guard extra work by IF_LINT
3109         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3110         better code generation when not checking for warnings.
3111         Suggested by Paul Eggert and Jim Meyering.
3112
3113         strptime: fix regression on mingw
3114         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3115         Fix regression.  Reported by Bruno Haible.
3116
3117 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3118             Bruno Haible  <bruno@clisp.org>
3119
3120         copy-file: add error-code-returning variant.
3121         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3122         (qcopy_file_preserving): New declaration.
3123         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3124         copy_file_preserving. Change return type to 'int'. Don't emit an error
3125         message here.
3126         (copy_file_preserving): New function.
3127         * tests/test-copy-file.c: Include <stdlib.h>.
3128         (main): Test qcopy_file_preserving if the environment variable
3129         NO_STDERR_OUTPUT is set.
3130         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3131         with NO_STDERR_OUTPUT
3132         * tests/test-copy-file-2.sh: Likewise.
3133
3134 2012-01-10  Bruno Haible  <bruno@clisp.org>
3135
3136         copy-file: Use 'quote' module consistently.
3137         * lib/copy-file.c (copy_file_preserving): Use quote().
3138
3139         copy-file: Refactor.
3140         * lib/copy-file.c: Include quote.h.
3141         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3142         message here.
3143         * modules/copy-file (Depends-on): Add quote.
3144
3145         acl: Export qcopy_acl.
3146         * lib/acl.h (qcopy_acl): New declaration.
3147         * lib/copy-acl.c (qcopy_acl): Make non-static.
3148
3149         acl: Rename a local variable.
3150         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3151
3152         acl: Align return values of copy_acl and qcopy_acl.
3153         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3154         maybe < -1.
3155
3156 2012-01-11  Eric Blake  <eblake@redhat.com>
3157
3158         strptime: silence gcc warnings
3159         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3160         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3161         Reported by Daniel P. Berrange.
3162
3163         inet_ntop: silence gcc warning
3164         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3165         Reported by Daniel P. Berrange.
3166
3167 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3168
3169         getloadavg test: skip the test on GNU/Linux without /proc mounted
3170         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3171         file.  When /proc is not mounted, it always fails with ENOENT.
3172         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3173         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3174
3175 2012-01-10  Bruno Haible  <bruno@clisp.org>
3176
3177         regex: Avoid link error on MSVC 9.
3178         * modules/regex (Depends-on): Add wctype.
3179
3180 2012-01-10  Bruno Haible  <bruno@clisp.org>
3181
3182         doc: Mention --with-tests option.
3183         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3184         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3185         --with-tests.
3186         Reported by Reuben Thomas.
3187
3188 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3189
3190         users.txt: order package names lexicographically.
3191         * users.txt: Order package names lexicographically.
3192
3193 2012-01-10  Jim Meyering  <meyering@redhat.com>
3194
3195         maint.mk: fix description in comment
3196         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3197
3198         ignore-value: remove deprecated ignore_ptr function
3199         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3200         * NEWS: Note this.
3201
3202 2012-01-09  Jim Meyering  <meyering@redhat.com>
3203
3204         test-init.sh: avoid a subshell
3205         * tests/test-init.sh: Remove protective subshell.
3206         Suggested by Bernhard Voelker.  While a subshell is normally
3207         required to protect against older shells (Solaris, FreeBSD) that
3208         warn about a missing program before performing redirection, the
3209         shell-selection tests performed by init.sh probably exclude any
3210         offending shell.
3211
3212 2012-01-08  Bruno Haible  <bruno@clisp.org>
3213
3214         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3215         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3216         variable.
3217
3218 2012-01-08  Bruno Haible  <bruno@clisp.org>
3219
3220         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3221         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3222         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3223         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3224         macro.
3225         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3226         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3227         * lib/spawn_faction_addopen.c: Add workaround implementation if
3228         HAVE_WORKING_POSIX_SPAWN.
3229         * modules/spawn (Makefile): Substitute
3230         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3231         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3232         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3233         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3234         (Depends-on): Update conditions.
3235         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3236         the Solaris 11 bug.
3237
3238 2012-01-08  Bruno Haible  <bruno@clisp.org>
3239
3240         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3241         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3242         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3243         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3244         macro.
3245         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3246         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3247         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3248         HAVE_WORKING_POSIX_SPAWN.
3249         * modules/spawn (Makefile): Substitute
3250         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3251         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3252         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3253         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3254         (Depends-on): Update conditions.
3255         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3256         the Solaris 11 bug.
3257
3258 2012-01-08  Bruno Haible  <bruno@clisp.org>
3259
3260         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3261         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3262         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3263         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3264         HAVE_WORKING_POSIX_SPAWN.
3265         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3266         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3267         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3268         * lib/spawn_faction_addclose.c: Add workaround implementation if
3269         HAVE_WORKING_POSIX_SPAWN.
3270         * modules/spawn (Makefile): Substitute
3271         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3272         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3273         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3274         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3275         (Depends-on): Update conditions.
3276         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3277         the Solaris 11 bug.
3278
3279 2012-01-08  Bruno Haible  <bruno@clisp.org>
3280
3281         doc: Update for Solaris 11 2011-11.
3282         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3283         * m4/printf.m4: Update comments.
3284
3285 2012-01-08  Bruno Haible  <bruno@clisp.org>
3286
3287         mktime: Avoid compilation error on Solaris 11.
3288         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3289
3290 2012-01-08  Bruno Haible  <bruno@clisp.org>
3291
3292         doc: Small fix.
3293         * doc/posix-headers/nl_types.texi: Correct platforms list.
3294
3295 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3296
3297         Add lgpl-3.0 module.
3298         * MODULES.html.sh (Support for building documentation): Add
3299         lgpl-3.0.
3300         * modules/lgpl-3.0: New file.
3301
3302 2012-01-08  Jim Meyering  <meyering@redhat.com>
3303
3304         select.c: indent with spaces, not TABs
3305         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3306
3307 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3308
3309         quotearg: do not use grave accent for left quote
3310         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3311         locale_quoting_style.
3312         (quotearg_buffer_restyled): Fix example.
3313         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3314
3315 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3316
3317         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3318         Most programs do not have translation catalogs for English and much
3319         less separate catalogs for British and American English.  Drop the
3320         suggestion to translators about these two, and provide it
3321         automatically for Unicode locales.  Like most programs, even those
3322         using American English, we use single quotation marks.  This conflicts
3323         with the American typographic convention, but works better when you
3324         cite the entire error message within double quotes.  It also tries not
3325         to clash with established practice and with what non-gnulib programs
3326         will usually do.
3327         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3328         using an UTF-8 or GB-18030 locale.  The list of other locales with
3329         quotes was provided by Bruno Haible.
3330         (quotearg_buffer_restyled): Adjust instructions to translators.
3331         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3332         text, since this would be wrong when using Unicode.
3333         * modules/quotearg: Depend on c-strcaseeq.
3334
3335 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3336
3337         quotearg: fix Wikipedia link
3338         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3339
3340 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3341
3342         Fix for mingw with MSVC9.
3343         * m4/ld-version-script.m4: Check that compiler rejects version
3344         scripts with syntax errors.  Reported by Bruno Haible
3345         <bruno@clisp.org>.
3346
3347 2012-01-06  Bruno Haible  <bruno@clisp.org>
3348
3349         Talk about "native Windows API", not "Woe32".
3350         * lib/accept4.c: Update comments to mention native Windows.
3351         * lib/execute.c: Likewise.
3352         * lib/fatal-signal.c: Likewise.
3353         * lib/localcharset.c: Likewise.
3354         * lib/nanosleep.c: Likewise.
3355         * lib/nl_langinfo.c: Likewise.
3356         * lib/pclose.c: Likewise.
3357         * lib/pipe-filter-gi.c: Likewise.
3358         * lib/pipe-filter-ii.c: Likewise.
3359         * lib/pipe.c: Likewise.
3360         * lib/pipe2.c: Likewise.
3361         * lib/popen.c: Likewise.
3362         * lib/progreloc.c: Likewise.
3363         * lib/relocatable.c: Likewise.
3364         * lib/sigaction.c: Likewise.
3365         * lib/sigprocmask.c: Likewise.
3366         * lib/spawn-pipe.h: Likewise.
3367         * lib/spawn-pipe.c: Likewise.
3368         * lib/spawni.c: Likewise.
3369         * lib/stat-time.h: Likewise.
3370         * lib/w32spawn.h: Likewise.
3371         * tests/test-isatty.c: Likewise.
3372         * lib/config.charset: More comments.
3373         * doc/gnulib-intro.texi: Mention native Windows.
3374         * doc/posix-functions/_Exit_C99.texi: Likewise.
3375         * doc/posix-headers/fcntl.texi: Likewise.
3376
3377 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3378
3379         argp: Avoid crash if translator uses % characters in a translation.
3380         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3381         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3382
3383 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3384
3385         doc: C11 and C++11 are now official
3386         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3387         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3388         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3389         * modules/stdalign:
3390         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3391
3392 2012-01-06  Bruno Haible  <bruno@clisp.org>
3393
3394         uc-is-grapheme-break tests: Tweak.
3395         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3396         message.
3397
3398 2012-01-06  Bruno Haible  <bruno@clisp.org>
3399
3400         test-init.sh: correct the test for diff -u
3401         * tests/test-init.sh: Also redirect stdout to /dev/null.
3402
3403 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         Use ', not `, for quoting output.
3406         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3407         (print_changelog_deltas, get_tool_versions, main program):
3408         * build-aux/git-version-gen:
3409         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3410         * build-aux/move-if-change (help):
3411         * build-aux/useless-if-before-free (usage, main program):
3412         * check-module (parse_module_file, usage)
3413         (find_included_lib_files, check_module):
3414         * lib/argmatch.c (main) [TEST]:
3415         * lib/argp-help.c (_help):
3416         * lib/getopt1.c (main) [TEST]:
3417         * lib/git-merge-changelog.c (usage):
3418         * lib/xstrtol-error.c (xstrtol_error):
3419         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3420         * m4/argz.m4 (gl_FUNC_ARGZ):
3421         * m4/bison.m4 (gl_BISON):
3422         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3423         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3424         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3425         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3426         * m4/gc-random.m4 (gl_GC_RANDOM):
3427         * m4/intl.m4 (gt_CHECK_DECL):
3428         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3429         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3430         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3431         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3432         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3433         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3434         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3435         * tests/test-dirname.c (main):
3436         * tests/test-getpass.c (main):
3437         * tests/test-iconvme.c (main):
3438         * tests/test-parse-datetime.c (LOG):
3439         * tests/test-xstrtoimax.sh:
3440         * tests/test-xstrtol.sh:
3441         * tests/test-xstrtoll.sh:
3442         * tests/test-xstrtoumax.sh:
3443         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3444         * top/GNUmakefile (abort-due-to-no-makefile):
3445         Quote 'like this', not `like this', as per the recent change to
3446         the GNU coding standards.
3447
3448 2012-01-05  Bruno Haible  <bruno@clisp.org>
3449
3450         strtoimax: Don't force a replacement on systems where intmax_t is int.
3451         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3452         'intmax_t' is not larger than 'int'.
3453         Reported by Pádraig Brady <P@draigBrady.com>.
3454
3455 2012-01-05  Bruno Haible  <bruno@clisp.org>
3456
3457         doc: Mention NetBSD bugs.
3458         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3459         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3460
3461 2012-01-05  Bruno Haible  <bruno@clisp.org>
3462
3463         strtoumax tests: Enhance tests.
3464         * tests/test-strtoumax.c (main): Add tests for large values.
3465
3466 2012-01-05  Bruno Haible  <bruno@clisp.org>
3467
3468         strtoimax: Work around AIX 5.1 bug.
3469         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3470         definition.
3471         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3472         Set HAVE_STRTOIMAX.
3473         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3474         REPLACE_STRTOIMAX.
3475         * modules/inttypes-incomplete (Makefile.am): Substitute
3476         REPLACE_STRTOIMAX.
3477         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3478         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3479         (Depends-on): Update conditions.
3480         * tests/test-strtoimax.c (main): Add tests for large values.
3481         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3482
3483 2012-01-05  Bruno Haible  <bruno@clisp.org>
3484
3485         inttypes: Modernize.
3486         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3487         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3488         (Makefile.am): Update inttypes.h rule.
3489
3490 2012-01-05  Jim Meyering  <meyering@redhat.com>
3491
3492         init.sh: don't waste a subshell just to redirect stderr
3493         * tests/init.sh: In testing for diff -u and diff -c, use a
3494         stderr-redirecting exec inside `...` rather than a subshell.
3495
3496         test-init.sh: avoid failure on HP-UX 11.00
3497         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3498         resolves to diff -c or cmp.  Reported by Bruno Haible.
3499
3500 2012-01-05  Bruno Haible  <bruno@clisp.org>
3501
3502         Tests for module 'strtoull'.
3503         * modules/strtoull-tests: New file.
3504         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3505
3506 2012-01-05  Bruno Haible  <bruno@clisp.org>
3507
3508         Tests for module 'strtoll'.
3509         * modules/strtoll-tests: New file.
3510         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3511
3512 2012-01-05  Bruno Haible  <bruno@clisp.org>
3513
3514         Tests for module 'strtoul'.
3515         * modules/strtoul-tests: New file.
3516         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3517
3518 2012-01-05  Bruno Haible  <bruno@clisp.org>
3519
3520         Tests for module 'strtol'.
3521         * modules/strtol-tests: New file.
3522         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3523
3524 2012-01-04  Jim Meyering  <meyering@redhat.com>
3525
3526         test-init.sh: accommodate Solaris 5.10's different diff -u output
3527         * tests/test-init.sh: Also exempt @@ lines from the comparison
3528         of diff output, since Solaris 5.10 and GNU diff formats differ.
3529         Reported by Stefano Lattarini.
3530
3531 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3532
3533         test-posixtm: don't assume signed integer wraparound
3534         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3535         after signed integer overflow.  Inspired by (though it may not
3536         fix) Bruno Haible's bug report in
3537         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3538
3539         Spell out "Windows 9x" and "Windows XP".
3540         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3541         "Windows 9x" and "WinXP" with "Windows XP".
3542
3543 2012-01-04  Jim Meyering  <meyering@redhat.com>
3544
3545         test-vc-list-files-cvs.sh: remove obsolete comment
3546         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3547         double exit.  Now that's all encapsulated via skip_ and Exit.
3548
3549 2012-01-04  Bruno Haible  <bruno@clisp.org>
3550
3551         Talk about "native Windows API", not "Win32".
3552         * lib/classpath.c: Update comments to mention native Windows.
3553         * lib/csharpexec.c: Likewise.
3554         * lib/dup2.c: Likewise.
3555         * lib/error.c: Likewise.
3556         * lib/fcntl.c: Likewise.
3557         * lib/filename.h: Likewise.
3558         * lib/findprog.c: Likewise.
3559         * lib/get-rusage-as.c: Likewise.
3560         * lib/get-rusage-data.c: Likewise.
3561         * lib/getpagesize.c: Likewise.
3562         * lib/javaexec.c: Likewise.
3563         * lib/msvc-inval.c: Likewise.
3564         * lib/msvc-nothrow.c: Likewise.
3565         * lib/nanosleep.c: Likewise.
3566         * lib/nonblocking.c: Likewise.
3567         * lib/printf-parse.c: Likewise.
3568         * lib/setlocale.c: Likewise.
3569         * lib/sigaction.c: Likewise.
3570         * lib/strerror_r.c: Likewise.
3571         * lib/tmpdir.c: Likewise.
3572         * lib/vasnprintf.c: Likewise.
3573         * lib/w32spawn.h: Likewise.
3574         * lib/waitpid.c: Likewise.
3575         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3576         * m4/locale-ar.m4: Likewise.
3577         * m4/locale-fr.m4: Likewise.
3578         * m4/locale-ja.m4: Likewise.
3579         * m4/locale-tr.m4: Likewise.
3580         * m4/locale-zh.m4: Likewise.
3581         * m4/printf.m4: Likewise.
3582         * tests/test-cloexec.c: Likewise.
3583         * tests/test-copy-acl.sh: Likewise.
3584         * tests/test-copy-file.sh: Likewise.
3585         * tests/test-file-has-acl.sh: Likewise.
3586         * tests/test-set-mode-acl.sh: Likewise.
3587         * tests/test-dup-safer.c: Likewise.
3588         * tests/test-dup2.c: Likewise.
3589         * tests/test-dup3.c: Likewise.
3590         * tests/test-fcntl.c: Likewise.
3591         * tests/test-nonblocking-pipe.h: Likewise.
3592         * tests/test-nonblocking-socket.h: Likewise.
3593         * tests/test-pipe.c: Likewise.
3594         * tests/test-pipe2.c: Likewise.
3595         * tests/test-spawn-pipe-child.c: Likewise.
3596         * doc/acl-resources.txt: Likewise.
3597         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3598         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3599         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3600         * lib/localcharset.c: Update comments to mention native Windows.
3601         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3602         * lib/localename.c: Likewise.
3603         * lib/progreloc.c: Likewise.
3604         * lib/relocatable.c: Likewise.
3605         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3606         (windows_compute_revents): Renamed from win32_compute_revents.
3607         (windows_compute_revents_socket): Renamed from
3608         win32_compute_revents_socket.
3609         * lib/select.c: Update comments to mention native Windows.
3610         (windows_poll_handle): Renamed from win32_poll_handle.
3611         * m4/threadlib.m4: Update comments to mention native Windows.
3612         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
3613         --enable-threads=windows instead of --enable-threads=win32. Set
3614         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
3615         * lib/glthread/lock.h: Update comments to mention native Windows.
3616         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
3617         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
3618         USE_WIN32_THREADS.
3619         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
3620         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
3621         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
3622         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
3623         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
3624         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
3625         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
3626         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
3627         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
3628         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
3629         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
3630         * tests/test-tls.c: Likewise.
3631         Rationale:
3632         Microsoft renamed the "Win32 API" to "Windows API", as it is available
3633         on both 32-bit and 64-bit Windows systems.
3634         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
3635         line of distinction is between "native Windows" on one side and Unix/
3636         POSIX systems on the other side. More details in
3637         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
3638         Suggested by Paul Eggert.
3639
3640 2012-01-03  Bruno Haible  <bruno@clisp.org>
3641
3642         isatty: Support for MSVC 9.
3643         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
3644         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
3645         (_isatty_nothrow): New function.
3646         (isatty): Use it instead of _isatty.
3647         (IsConsoleHandle): Add comment, from Paolo Bonzini.
3648         * lib/poll.c (IsConsoleHandle): Likewise.
3649         * lib/select.c (IsConsoleHandle): Likewise.
3650         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
3651         (gl_PREREQ_ISATTY): New macro.
3652         * modules/isatty (Depends-on): Add msvc-inval.
3653         (configure.ac): Invoke gl_PREREQ_ISATTY.
3654
3655 2012-01-03  Jim Meyering  <meyering@redhat.com>
3656
3657         maint.mk: remove temporary transition aid from over 1.5 years ago
3658         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
3659         purpose was to aid in the transition (avoiding silent malfunction)
3660         from that old name to the new _sc_search_regexp.  This shim was
3661         added by commit 219c504b.
3662
3663         init.sh: do not try to accommodate compare arguments starting with "-"
3664         * tests/init.sh (compare_dev_null_): Do not try to accommodate
3665         compare arguments that start with "-".  Besides, we do not worry
3666         about this when invoking diff or cmp; why start now with sed?
3667         Using "--" to separate options from argument would trigger sed
3668         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
3669         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
3670
3671 2012-01-02  Bruno Haible  <bruno@clisp.org>
3672
3673         Enhance tests for module 'isatty'.
3674         * modules/isatty-tests (Depends-on): Add pipe-posix.
3675         * tests/test-isatty.c: Include <fcntl.h>.
3676         (DEV_NULL): New macro.
3677         (main): Test the resut of isatty() also on regular files, pipes, and
3678         /dev/null.
3679
3680         New module 'isatty'.
3681         * lib/unistd.in.h (isatty): New declaration.
3682         * lib/isatty.c: New file, based on an idea of
3683         Bastien Roucariès <roucaries.bastien@gmail.com>.
3684         * m4/isatty.m4: New file.
3685         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
3686         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
3687         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
3688         REPLACE_ISATTY.
3689         * modules/isatty: New file.
3690         * doc/posix-functions/isatty.texi: Mention the new module.
3691         Suggested by Paolo Bonzini.
3692
3693 2012-01-02  Bruno Haible  <bruno@clisp.org>
3694
3695         canonicalize: Tweak 2011-12-29 commit.
3696         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
3697         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
3698
3699 2012-01-02  Jim Meyering  <meyering@redhat.com>
3700
3701         gitlog-to-changelog: describe input syntax in --help output
3702         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
3703
3704         gitlog-to-changelog: fix typo in --help: show backslash before email @
3705         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
3706         in sources, but not in actual output.
3707
3708 2011-12-30  Jim Meyering  <meyering@redhat.com>
3709
3710         gitlog-to-changelog: don't malfunction when name contains %-directive
3711         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
3712         in a name string cause trouble.  E.g., with a user name of "%s",
3713         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
3714
3715 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
3716
3717         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
3718         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
3719         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
3720         the "  (tiny change)" notation that is appended to the standard
3721         ChangeLog "date  name  email" header line.
3722
3723 2012-01-01  Jim Meyering  <meyering@redhat.com>
3724
3725         test-framework-sh: init.sh: fix "make dist" failure
3726         When using gnulib-tool's --with-tests option and any module that
3727         depends on test-framework-sh, "make dist" would fail due to the
3728         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
3729         in the gltests directory, and not in the gllib/ directory.
3730         One way to work around that is to move the EXTRA_DIST += init.sh
3731         from the primary module to the -tests one:
3732         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
3733         * modules/test-framework-sh (Makefile.am): ...not here.
3734         Reported by Tom G. Christensen in
3735         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
3736
3737         version-etc: update copyright year reported by --version
3738         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3739
3740 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3741
3742         canonicalize: only stat() if required
3743         * lib/canonicalize.c (canonicalize_filename_mode):
3744         Avoid calling l?stat() when both CAN_MISSING,
3745         and CAN_NOLINKS are set, as we neither need
3746         to resolve symlinks or test component existence.
3747
3748 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3749
3750         doc: cover st_ino issues once; add OpenVMS etc.
3751         * doc/posix-functions/stat.texi (stat):
3752         * doc/posix-functions/lstat.texi (lstat):
3753         * doc/posix-functions/fstatat.texi (fstatat):
3754         * doc/posix-functions/fstat.texi (fstat):
3755         Move general 'struct stat' stuff to sys_stat.texi,
3756         leaving behind a pointer.
3757         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3758         Merge duplicate info about 'struct stat' problems into here.
3759         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
3760         and suggest partial workarounds.
3761
3762         same-inode: port to OpenVMS
3763         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
3764         three st_ino values.
3765
3766 2011-12-30  Pádraig Brady  <P@draigBrady.com>
3767
3768         canonicalize: fix references to stat() and lstat()
3769         * lib/canonicalize.c (canonicalize_filename_mode):
3770         Ensure references always resolve to a replacement
3771         function if required (even via a macro).
3772
3773 2011-12-30  Jim Meyering  <meyering@redhat.com>
3774
3775         gitlog-to-changelog: remove a little duplication
3776         * build-aux/gitlog-to-changelog (main): Grep @lines once,
3777         rather than twice.
3778
3779 2011-12-29  Pádraig Brady  <P@draigBrady.com>
3780
3781         canonicalize: add support for not resolving symlinks
3782         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
3783         indicate we don't want to follow symlinks.  Also
3784         provide CAN_MODE_MASK to aid setting these existing
3785         mutually exclusive values.
3786         * lib/canonicalize.c (canonicalize_filename_mode):
3787         Extract the flags from can_mode parameter, which
3788         are currently just used to select between stat()
3789         and lstat().  Also ensure that mutually exclusive
3790         values are flagged immediately as invalid.
3791         * tests/test-canonicalize.c: Verify symlinks are
3792         not followed, and that invalid flag combinations
3793         are diagnosed.
3794
3795 2011-12-25  Jim Meyering  <meyering@redhat.com>
3796
3797         gitlog-to-changelog: do not clump multi-paragraph entries
3798         Identical header lines (date,name,email+coauthors) are suppressed,
3799         thus putting all entries with those same characteristics under
3800         a single header.  However, when a log entry consists of two or
3801         more paragraphs, it may not be clear where it starts and ends.
3802         This change makes it so that such an entry is always separated
3803         from others by a header line, even when that header would
3804         otherwise be suppressed.
3805         * build-aux/gitlog-to-changelog: Implement the above.
3806         Inspired by a related request from Stefano Lattarini in
3807         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
3808
3809 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3810
3811         announce-gen: fix `cmd' typo in diagnostic
3812         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
3813         diagnostic: a missing '$' meant that the command was not output.
3814
3815 2011-12-23  Jim Meyering  <meyering@redhat.com>
3816
3817         test-framework-sh: distribute init.sh
3818         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
3819         Otherwise, "make -C gnulib-tests check" (at least in grep) would
3820         fail due to the lack of init.sh.
3821
3822         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
3823         * modules/atexit-tests: Rather than listing tests/init.sh,
3824         now that there's a module for it, simply depend on that new module.
3825         * modules/closein-tests: Likewise.
3826         * modules/exclude-tests: Likewise.
3827         * modules/getcwd-tests: Likewise.
3828         * modules/perror-tests: Likewise.
3829         * modules/pread-tests: Likewise.
3830         * modules/pwrite-tests: Likewise.
3831         * modules/vc-list-files-tests: Likewise.
3832         * modules/verify-tests: Likewise.
3833         * modules/xalloc-die-tests: Likewise.
3834         * modules/xstrtoimax-tests: Likewise.
3835         * modules/xstrtol-tests: Likewise.
3836         * modules/xstrtoll-tests: Likewise.
3837         * modules/xstrtoumax-tests: Likewise.
3838         * modules/yesno-tests: Likewise.
3839
3840 2011-12-22  Jim Meyering  <meyering@redhat.com>
3841
3842         test-framework-sh: add minimal tests of init.sh's compare function
3843         * modules/test-framework-sh-tests: New file.
3844         * tests/test-init.sh: New file.
3845
3846         test-framework-sh: new module
3847         * modules/test-framework-sh: New file.
3848         * MODULES.html.sh (Support for maintaining and releasing projects):
3849         List it.
3850
3851         init.sh: do not emit simulated diff output to stderr
3852         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
3853
3854 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3855
3856         .gitignore: ignore gnulib.dvi and regex.info
3857         * doc/.gitignore:add gnulib.dvi and regex.info
3858
3859 2011-12-22  Jim Meyering  <meyering@redhat.com>
3860
3861         init.sh: correct previous change
3862         * tests/init.sh (compare): My previous change was wrong.
3863         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
3864
3865         init.sh: avoid unwarranted test failure when using "set -e"
3866         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
3867         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
3868         a use like "compare exp out" would get evoke an unconditional failure.
3869
3870 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
3871
3872         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
3873         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
3874         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
3875         autoreconf that did not.
3876         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
3877         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3878
3879 2011-12-17  Jim Meyering  <meyering@redhat.com>
3880
3881         bootstrap: remove some now-unneeded code
3882         This script arose back when gnulib-tool was young.
3883         Since then, it has seen improvements that render much of this
3884         script unnecessary.  In particular, it can now make symlinks
3885         to the files it uses.  Also, I no longer see as much value in
3886         marking files as read-only via comments.
3887         If you relied on the symlink-creation feature of the preceding
3888         version of this script, you can get most of that functionality
3889         by adding the --symlink option to the definition of
3890         gnulib_tool_option_extras in your bootstrap.conf file.
3891         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
3892         Run autopoint and libtoolize *before* gnulib-tool.
3893         After it, run an abbreviated autoreconf, rather than a loop around
3894         all tools.
3895         (slirp, bt_mark_as_generated): Remove functions.
3896
3897 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3898
3899         ftoastr: fix typo
3900         * lib/ftoastr.h: Fix misspelling in comment.
3901
3902 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
3903
3904         * top/README-release: fix punctuation.
3905
3906 2011-12-17  Jim Meyering  <meyering@redhat.com>
3907
3908         bootstrap: correct the recent buildreq change
3909         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
3910         had no effect.
3911         * build-aux/bootstrap (buildreq): Bracket each search term with
3912         "*...*", so that the shell "case" statement works as intended.
3913         Add comments.
3914
3915 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
3916
3917         build: let bootstrap resort to wget when downloading .po files
3918         * build-aux/bootstrap (download_po_files): Fallback to wget when
3919         downloading the .po files via rsync fails.  This is necessary to
3920         bootstrap from behind a strict firewall.
3921
3922 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3923
3924         stdint: don't assume C++11 when compiling with g++
3925         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
3926         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
3927         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
3928         work also in C++ before C++11, as that improperly inhibits
3929         generating a substitute stdint.h for that case.
3930
3931 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3932
3933         alloca: protect comment from gnulib-tool
3934         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
3935         that gnulib-tool doesn't think it's a license, and munge it to
3936         say "GCC version 3".
3937
3938 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
3939
3940         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
3941         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
3942         $(abs_top_builddir) instead of $(top_builddir).
3943
3944 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
3945
3946         strftime-tests: also test nanoseconds
3947         * tests/test-strftime.c (T): Add a test of %N.
3948
3949 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3950
3951         inttypes, stdint: add C++11 support
3952         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3953         when including inttypes.h and stdint.h.  Support this change to
3954         the standard.
3955         * doc/posix-headers/inttypes.texi (inttypes.h):
3956         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3957         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3958         Define if not defined already, for the benefit of pre-C++11 hosts.
3959         Define the standard format macros (e.g., PRId8) always.
3960         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3961         Likewise, if __cpluspus.  Define the standard constant and limit
3962         macros (e.g., INT8_C, INT8_MAX) always.
3963         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3964         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3965         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3966         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3967         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3968         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3969         Likewise.
3970
3971 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3972
3973         nonblocking tests: Fix test failure on Linux/PPC.
3974         Suggested by Prerna Saxena in
3975         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3976         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3977         Set to 1100000.
3978
3979 2011-12-12  Jim Meyering  <meyering@redhat.com>
3980
3981         argmatch: don't hard-code `' when listing valid option arguments
3982         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3983         use the quote function to add quotes.  Use fputs rather than
3984         fprintf for the format string with no format directive.
3985
3986 2011-12-07  Eric Blake  <eblake@redhat.com>
3987
3988         bootstrap: detect tools required by gnulib-tool
3989         * build-aux/bootstrap (buildreq): Provide minimum implicit
3990         dependencies.
3991         * DEPENDENCIES: Mention patch as a prereq.
3992
3993 2011-12-04  Bruno Haible  <bruno@clisp.org>
3994
3995         sethostname: Port to Windows platforms.
3996         * lib/sethostname.c: Provide an alternate implementation for Windows
3997         platforms.
3998         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3999         (main): Skip the test if sethostname() fails with EPERM. On Windows
4000         platforms, don't check the result of gethostname().
4001
4002 2011-12-04  Bruno Haible  <bruno@clisp.org>
4003             Jim Meyering  <meyering@redhat.com>
4004
4005         tests: Avoid spurious error message on platforms without mktemp program.
4006         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4007
4008 2011-12-04  Bruno Haible  <bruno@clisp.org>
4009
4010         sethostname: Fix documentation.
4011         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4012         "not fixed" section.
4013
4014 2011-12-03  Bruno Haible  <bruno@clisp.org>
4015
4016         gnulib-tool: Verify that the License field is present and non-empty.
4017         * gnulib-tool (func_get_license_raw): New function, extracted from
4018         func_get_license.
4019         (func_get_license): Use it. Warn if the module is not a test module and
4020         has no license.
4021         Suggested by Jim Meyering.
4022
4023 2011-12-03  Bruno Haible  <bruno@clisp.org>
4024
4025         sethostname tests: Fix link error on mingw.
4026         * tests/test-sethostname1.c: New file, extracted from
4027         tests/test-sethostname.c.
4028         * tests/test-sethostname2.c: New file, extracted from
4029         tests/test-sethostname.c.
4030         * tests/test-sethostname.c: Remove file.
4031         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4032         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4033         (Depends-on): Add gethostname.
4034         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4035         Link the latter with $(GETHOSTNAME_LIB).
4036
4037         sethostname tests: Fix compilation error on mingw.
4038         * tests/test-sethostname.c: Don't include <sys/types.h>.
4039         (geteuid): Use a dummy value without uid_t.
4040         * modules/sethostname-tests (Depends-on): Remove sys_types.
4041
4042         sethostname tests: Avoid a gcc warning.
4043         * tests/test-sethostname.c (main): Remove an unused variable.
4044
4045         Tweak last commit.
4046         * modules/sethostname-tests (Files): Sort by decreasing importance.
4047         (configure.ac): Check for geteuid.
4048         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4049         the test when there's nothing to test. Drop an unnecessary cast.
4050         Improve an error message. Verify that the final sethostname() call
4051         succeeds.
4052
4053 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4054
4055         Add a test suite for the sethostname module.
4056         * modules/sethostname-tests: New file.  A test program
4057         for the sethostname module.
4058         * tests/test-sethostname.c: Likewise.
4059
4060 2011-12-03  Bruno Haible  <bruno@clisp.org>
4061
4062         Tweak last commit.
4063         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4064         Fix preprocessor directives indentation. Fix typos.
4065         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4066         * modules/unistd (Makefile): Likewise.
4067
4068 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4069
4070         Integrate the sethostname module into unistd.
4071         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4072         into the unistd.h header.
4073         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4074         preprocessor directives.
4075         * modules/unistd: Setup the Makefile substitutions of the
4076         SETHOSTNAME preprocessor directives.
4077
4078 2011-12-03  Bruno Haible  <bruno@clisp.org>
4079
4080         Tweak last commit.
4081         * lib/sethostname.c: Don't include <string.h>.
4082         (sethostname): No need to copy the argument string to the stack. Don't
4083         call clearerr. Preserve errno when fprintf failed.
4084         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4085         Don't invoke AC_REPLACE_FUNCS.
4086         * modules/sethostname (Link): Remove empty section.
4087         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4088         failure problem.
4089
4090 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4091
4092         New module 'sethostname'.
4093         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4094         for systems that lack it.
4095         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4096         sethostname declaration and function.
4097         * modules/sethostname: New file.  Define the sethostname module.
4098
4099 2011-12-03  Bruno Haible  <bruno@clisp.org>
4100
4101         Tweak last commit.
4102         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4103
4104 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4105
4106         Split the HOST_NAME_MAX detection into a separate m4 macro.
4107         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4108         macro so it can be used by the pending sethostname module.
4109
4110 2011-12-03  Bruno Haible  <bruno@clisp.org>
4111
4112         Fix module descriptions syntax.
4113         * modules/argv-iter (License): Fix syntax.
4114         * modules/di-set (License): Likewise.
4115         * modules/ino-map (License): Likewise.
4116         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4117
4118 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4119
4120         stdalign: port to Clang 3.0
4121         Problem reported by Simon Josefsson in
4122         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4123         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4124         which has <stdalign.h> but which does not define alignof.
4125         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4126
4127 2011-12-01  Eric Blake  <eblake@redhat.com>
4128
4129         mktempd: silence dd usage
4130         * build-aux/mktempd (rand_bytes): Silence dd.
4131
4132 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4133
4134         manywarnings: Don't mention gcc version in docstring.
4135         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4136         Jim Meyering <meyering@redhat.com>.
4137
4138 2011-11-30  Jim Meyering  <meyering@redhat.com>
4139
4140         hash: mark a few floating point constants with "f" suffix
4141         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4142         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4143         floating point constants with "f", since they're destined to be
4144         saved/used as "float"s.
4145
4146 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4147
4148         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4149         * tests/test-float.c (test_long_double): Correct and re-enable the
4150         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4151
4152 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4153
4154         Avoid subtracting two pointers that don't point into the same block.
4155         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4156         only pointers into the same memory block are subtracted. We cannot
4157         assume that sizeof (ptrdiff_t) == sizeof (void *).
4158
4159 2011-11-29  Eric Blake  <eblake@redhat.com>
4160
4161         maint.mk: add syntax check for use of compare from init.sh
4162         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4163         moved here from coreutils.
4164
4165         manywarnings: drop -Wunsuffixed-float-constants
4166         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4167         '1.0D', which is the only way to silence this warning for 'double'.
4168
4169 2011-11-29  Jim Meyering  <meyering@redhat.com>
4170
4171         hash: mark compute_bucket_size with the pure attribute
4172         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4173
4174         quotearg, propername: correct pragma guard expression
4175         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4176         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4177
4178 2011-11-28  Jim Meyering  <meyering@redhat.com>
4179
4180         propername: do not mark proper_name with the const attribute
4181         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4182         since it examines data pointed to by its parameter.
4183         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4184         the suggestion from -Wsuggest-attribute=const.
4185
4186         propername: mark one more function as const
4187         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4188
4189 2011-11-27  Jim Meyering  <meyering@redhat.com>
4190
4191         mark functions with const and pure attributes
4192
4193         Mark functions per suggestions from gcc-4.6 when using these options:
4194         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4195         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4196         Follow these guidelines: when possible, apply the attribute to
4197         an extern declaration, not to its definition.  Apply it to the
4198         definition only when the definition is static.
4199         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4200         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4201         * lib/base64.h (isbase64): Likewise.
4202         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4203         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4204         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4205         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4206         (c_tolower, c_toupper): Likewise.
4207         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4208         * lib/chdir-long.c (find_non_slash): Likewise.
4209         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4210         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4211         * lib/file-type.h (file_type): Likewise.
4212         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4213         * lib/filevercmp.c (verrevcmp): Likewise.
4214         * lib/freadahead.h (freadahead): Likewise.
4215         * lib/fts.c (fts_maxarglen): Likewise.
4216         * lib/hash-pjw.h (hash_pjw): Likewise.
4217         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4218         * lib/hash.c (is_prime, next_prime): Likewise.
4219         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4220         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4221         (hash_table_ok, hash_get_first, hash_string): Likewise.
4222         (compute_bucket_size): Likewise.
4223         * lib/i-ring.h (i_ring_empty): Likewise.
4224         * lib/isnan.c (isnanl): Likewise.
4225         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4226         * lib/memcasecmp.h (memcasecmp): Likewise.
4227         * lib/memchr2.h (memchr2): Likewise.
4228         * lib/memcmp2.h (memcmp2): Likewise.
4229         * lib/parse-datetime.y (lookup_zone): Likewise.
4230         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4231         [!WINDOWS_SOCKETS]: Likewise.
4232         * lib/strnlen1.h (strnlen1): Likewise.
4233         * lib/uniwidth.in.h (uc_width): Likewise.
4234         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4235         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4236         (quoting_options_from_style): Add a comment.
4237         * lib/propername.h (proper_name): Add a comment.
4238
4239 2011-11-27  Bruno Haible  <bruno@clisp.org>
4240
4241         Remove unused macros from !_LIBC code in glibc-borrowed files.
4242         * lib/fnmatch.c (STRCOLL): Remove macro.
4243         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4244         * lib/glob.c (__stat, __readdir64): Remove macros.
4245         * lib/tempname.c (__open64, __xstat64): Remove macros.
4246         Suggested by Paul Eggert.
4247
4248 2011-11-27  Bruno Haible  <bruno@clisp.org>
4249
4250         getcwd: Fix link error on MSVC 9.
4251         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4252
4253 2011-11-27  Bruno Haible  <bruno@clisp.org>
4254
4255         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4256         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4257         HAVE_OPENDIR is 0.
4258         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4259         HAVE_CLOSEDIR is 0.
4260         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4261         is 0.
4262         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4263
4264 2011-11-27  Bruno Haible  <bruno@clisp.org>
4265
4266         getcwd: Fix bug from 2011-08-17.
4267         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4268         platforms that need it.
4269         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4270         code of 4 to be a failure, not a success. This ensures that
4271         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4272
4273 2011-11-27  Bruno Haible  <bruno@clisp.org>
4274
4275         binary-io tests: Avoid test failure on mingw when libtool is used.
4276         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4277         Don't verify the size of t-bin-out1.tmp here.
4278         * tests/test-binary-io.sh: Verify it here.
4279         Reported by Simon Josefsson.
4280
4281 2011-11-26  Bruno Haible  <bruno@clisp.org>
4282
4283         Fix conflict between two instantiations of module 'unistd'.
4284         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4285         ${include_guard_prefix} also in the autoconf snippet.
4286         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4288         GNULIB_UNISTD_H_GETOPT.
4289         * modules/getopt-posix (configure.ac): Set the
4290         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4291         * modules/getopt-gnu (configure.ac): Likewise.
4292         * modules/unistd (Makefile.am): Change the substitution value of
4293         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4294         Reported by Simon Josefsson.
4295
4296 2011-11-25  Bruno Haible  <bruno@clisp.org>
4297
4298         pagealign_alloc: Doc and comments.
4299         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4300         module.
4301         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4302
4303 2011-11-25  Jim Meyering  <meyering@redhat.com>
4304
4305         test-update-copyright.sh: avoid false-positive failure
4306         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4307         around false positive failure on Cygwin/Windows.  The latter was
4308         matching erroneously-created files with names like
4309         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4310
4311 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4312
4313         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4314         * m4/valgrind-tests.m4: Check that the parameters that will be
4315         used works, not just a subset of them.  Reported by Bruno Haible
4316         <bruno@clisp.org>.
4317
4318 2011-11-24  Jim Meyering  <meyering@redhat.com>
4319
4320         test-stdalign.c: comment out long double tests
4321         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4322         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4323         error: '_Alignas' specifiers cannot reduce alignment of \
4324         'static_longdouble_alignas'.
4325
4326 2011-11-22  Jim Meyering  <meyering@redhat.com>
4327
4328         init.sh: make "compare /dev/null FILE" output more readable
4329         * tests/init.sh (compare_): Document the preferred order of arguments.
4330         (emit_diff_u_header_): New function.
4331         (compare_dev_null_): Emit a simulated diff, rather than just the
4332         contents of the unexpected file.  Suggestion from Bruno Haible.
4333
4334 2011-11-21  Jim Meyering  <meyering@redhat.com>
4335             Eric Blake  <eblake@redhat.com>
4336
4337         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4338         * tests/init.sh: Make our compare function slightly more portable.
4339         Reported by Bruno Haible in
4340         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4341
4342 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4343
4344         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4345         before using it, in code that ends up in config.h.
4346
4347 2011-11-20  Bruno Haible  <bruno@clisp.org>
4348
4349         getcwd: Work around getcwd bug on AIX 5..7.
4350         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4351         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4352         Use a different value for gl_cv_func_getcwd_path_max. Move the
4353         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4354         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4355         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4356         Define HAVE_MINIMALLY_WORKING_GETCWD.
4357         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4358         where it is not even minimally working, that is, on AIX.
4359         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4360         m4/getcwd-path-max.m4.
4361         (main): Update exit code computation.
4362         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4363         getcwd does not handle long file names.
4364
4365 2011-11-20  Bruno Haible  <bruno@clisp.org>
4366
4367         getcwd: Fix bug from 2009-09-10.
4368         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4369         like "no".
4370
4371 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4372
4373         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4374
4375 2011-11-20  Bruno Haible  <bruno@clisp.org>
4376
4377         fma tests: Avoid shadowing local variables.
4378         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4379         expected.
4380
4381 2011-11-20  Bruno Haible  <bruno@clisp.org>
4382
4383         copysignf tests: Fix.
4384         * tests/test-copysignf.c: Fix signature check.
4385
4386 2011-11-20  Bruno Haible  <bruno@clisp.org>
4387
4388         fma: Remove unused code.
4389         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4390         unused macros.
4391
4392 2011-11-20  Bruno Haible  <bruno@clisp.org>
4393
4394         sethostname: Fix doc about AIX.
4395         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4396         sethostname; it has it.
4397
4398         sethostname: Mention more portability problems.
4399         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4400         problem.
4401         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4402
4403 2011-11-19  Bruno Haible  <bruno@clisp.org>
4404
4405         Depend on module fcntl-h when AT_FDCWD is used.
4406         * modules/utimens (Depends-on): Add fcntl-h.
4407         * modules/areadlinkat (Depends-on): Likewise.
4408         * modules/areadlinkat-with-size (Depends-on): Likewise.
4409         * modules/faccessat (Depends-on): Likewise.
4410         * modules/fchmodat (Depends-on): Likewise.
4411         * modules/fchownat (Depends-on): Likewise.
4412         * modules/getcwd (Depends-on): Likewise.
4413         * modules/mkdirat (Depends-on): Likewise.
4414         * modules/mkfifoat (Depends-on): Likewise.
4415         * modules/readlinkat (Depends-on): Likewise.
4416         * modules/symlinkat (Depends-on): Likewise.
4417         * modules/dup2-tests (Depends-on): Likewise.
4418         * modules/fdutimensat-tests (Depends-on): Likewise.
4419         * modules/futimens-tests (Depends-on): Likewise.
4420
4421 2011-11-19  Bruno Haible  <bruno@clisp.org>
4422
4423         euidaccess: Update a comment.
4424         * lib/euidaccess.c: Update comment about platforms with faccessat.
4425
4426 2011-11-19  Bruno Haible  <bruno@clisp.org>
4427
4428         openat: Fix file list.
4429         * modules/openat (Files): Remove lib/at-func.c.
4430
4431 2011-11-19  Bruno Haible  <bruno@clisp.org>
4432
4433         fstatat: Simplify.
4434         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4435         gnulib should define rpl_fstatat, there is a
4436         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4437
4438 2011-11-19  Bruno Haible  <bruno@clisp.org>
4439
4440         Ensure 'inline' can be used in tests/test-utimens-common.h.
4441         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4442         * modules/futimens-tests (configure.ac): Likewise.
4443         * modules/utimens-tests (configure.ac): Likewise.
4444         * modules/utimensat-tests (configure.ac): Likewise.
4445
4446 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4447
4448         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4449         not hash_insert0.
4450         (hash_insert_if_absent): Doc fix.
4451
4452 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4453
4454         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4455
4456 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4457
4458         test-getcwd: disambiguate exit status
4459         * tests/test-getcwd.c (test_long_name): Return 0..7.
4460         (main): Exit with an unambiguous exit status.  The old
4461         code yielded a mysterious mixture of two failure codes.
4462
4463         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4464         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4465         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4466         rpl_fstatat or fstatat.  This should fix the other problem
4467         reported by Kai Habel in
4468         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4469         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4471         and I reproduced it on a Solaris 8 host we still have in production.
4472
4473 2011-11-18  Jim Meyering  <meyering@redhat.com>
4474
4475         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4476         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4477         Add a sentence to the comment.
4478         (hash_insert0): New function that simply calls hash_insert_if_absent.
4479         * lib/hash.h (hash_insert_if_absent): Declare it.
4480         (hash_insert0): Add deprecation attribute.
4481         (_GL_ATTRIBUTE_DEPRECATED): Define.
4482         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4483         not hash_insert0.
4484         * NEWS: Mention it, even though it's not really an incompatible change.
4485
4486 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4487
4488         openat: avoid compilation failure due to lack of <errno.h> inclusion
4489         * lib/openat.c: Include <errno.h>.
4490
4491 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4492
4493         * modules/getcwd (Depends-on): Add fdopendir.
4494         This fixes one of the two problems reported by Kai Habel in
4495         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4496
4497         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4498         stdalign problem reported by Ian Beckwith in
4499         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4500         * modules/crypto/gc-arcfour (Depends-on):
4501         Depend conditionally on crypto/arcfour.
4502         * modules/crypto/gc-arctwo (Depends-on):
4503         Depend conditionally on crypto/arctwo.
4504         * modules/crypto/gc-des (Depends-on):
4505         Depend conditionally on crypto/des.
4506         * modules/crypto/gc-hmac-md5 (Depends-on):
4507         Depend conditionally on crypto/hmac-md5.
4508         * modules/crypto/gc-hmac-sha1 (Depends-on):
4509         Depend conditionally on crypto/hmac-sha1.
4510         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4511         * modules/crypto/gc-md4 (Depends-on):
4512         Depend conditionally on crypto/md4.
4513         * modules/crypto/gc-md5 (Depends-on):
4514         Depend conditionally on crypto/md5.
4515         * modules/crypto/gc-rijndael (Depends-on):
4516         Depend conditionally on crypto/rijndael.
4517         * modules/crypto/gc-sha1 (Depends-on):
4518         Depend conditionally on crypto/sha1.
4519         * modules/crypto/gc-arcfour:
4520         * modules/crypto/gc-arctwo:
4521         * modules/crypto/gc-des:
4522         * modules/crypto/gc-hmac-md5:
4523         * modules/crypto/gc-hmac-sha1:
4524         * modules/crypto/gc-md2:
4525         * modules/crypto/gc-md4:
4526         * modules/crypto/gc-md5:
4527         * modules/crypto/gc-rijndael:
4528         * modules/crypto/gc-sha1:
4529         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4530         now that the conditional dependencies do the work for us.
4531
4532 2011-11-17  Jim Meyering  <meyering@redhat.com>
4533
4534         tests: factor st_ctime-comparison out of two headers
4535         * tests/test-utimens-common.h (ctime_compare): Define.
4536         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4537         * tests/test-lutimens.h (test_lutimens): Likewise.
4538         * tests/test-utimens.h (test_utimens): Likewise.
4539
4540         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4541         Invoke the test program via an init.sh-using wrapper.
4542         * tests/test-getcwd.sh: New file.
4543         * modules/getcwd-tests (Files): Add it.
4544         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4545
4546 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4547
4548         gitlog-to-changelog: support multi-author commits.
4549         The FSF cares about keeping track of all authors of patches to its
4550         projects, but Git doesn't provide obvious support for multi-author
4551         changesets. Consensus seems to be forming around the use of extra
4552         Signed-off-by inspired lines in the log message formatted as
4553         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4554         multi-author commits between version control systems.
4555         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4556         log message and output in standard ChangeLog multi-author format.
4557         Reported by Peter Rosin <peda@lysator.liu.se>
4558
4559 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4560             Bruno Haible  <bruno@clisp.org>
4561
4562         Fix some modules' file list.
4563         * modules/fstatat (Files): Add m4/lstat.m4.
4564         * modules/openat (Files): Likewise.
4565         * modules/unlinkat (Files): Likewise.
4566
4567 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4568
4569         maint.mk: fix tight-scope.mk generation in VPATH builds.
4570         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4571         reference with $(srcdir) so that the file is found correctly even
4572         when running `make syntax-check' in a VPATH build.
4573
4574 2011-11-13  Bruno Haible  <bruno@clisp.org>
4575             Jim Meyering  <meyering@redhat.com>
4576
4577         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4578         * tests/init.sh (compare): Remove "No differences encountered" or
4579         synonymous output from the 'diff' program.
4580
4581 2011-11-13  Bruno Haible  <bruno@clisp.org>
4582
4583         Makefile: Tweak indentation.
4584         * Makefile: Use tab as first character in every line that contains rule
4585         commands.
4586
4587 2011-11-13  Bruno Haible  <bruno@clisp.org>
4588
4589         Syntax check for copyright statements.
4590         * check-copyright: New file.
4591         * Makefile (sc_check_copyright): New rule.
4592
4593 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4594
4595         * build-aux/git-version-gen: Add --prefix to configure the tag
4596         match string.
4597
4598 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4599
4600         * build-aux/git-version-gen: Add --help and --version.
4601
4602 2011-11-12  Jim Meyering  <meyering@redhat.com>
4603
4604         revamp the other test-exclude?.sh scripts to use init.sh, too
4605         * tests/test-exclude1.sh: Use init.sh.
4606         * tests/test-exclude2.sh: Likewise.
4607         * tests/test-exclude3.sh: Likewise.
4608         * tests/test-exclude4.sh: Likewise.
4609         * tests/test-exclude5.sh: Likewise.
4610         * tests/test-exclude6.sh: Likewise.
4611         * tests/test-exclude7.sh: Likewise.
4612         * tests/test-exclude8.sh: Likewise.
4613         * modules/exclude-tests (Files): List init.sh.
4614
4615         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4616         These shell scripts ignored failure of the binary test-exclude,
4617         so making the latter return 77 didn't cause them to be skipped.
4618         * tests/test-exclude5.sh: Exit with test-exclude's error status
4619         when that program fails.  Revamp to use init.sh.
4620         * tests/test-exclude2.sh: Likewise.
4621
4622         test-exclude: fix a typo
4623         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
4624
4625 2011-11-11  Bruno Haible  <bruno@clisp.org>
4626
4627         obstack: Fix compilation error on MSVC 9.
4628         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
4629
4630 2011-11-11  Jim Meyering  <meyering@redhat.com>
4631
4632         test-exclude: skip tests rather than failing on deficient systems
4633         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
4634         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
4635         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
4636         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
4637
4638 2011-11-10  Bruno Haible  <bruno@clisp.org>
4639
4640         ptsname_r test: Avoid gcc warning on glibc systems.
4641         * tests/test-ptsname_r.c (null_ptr): New function.
4642         (test_errors): Use it.
4643
4644 2011-11-10  Bruno Haible  <bruno@clisp.org>
4645
4646         ptsname_r: Avoid compilation error on OSF/1 5.1.
4647         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
4648         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
4649         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
4650         function is not declared or incompatibly declared.
4651         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
4652         * modules/ptsname_r (Depends-on, configure.ac): Update.
4653         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
4654
4655 2011-11-10  Bruno Haible  <bruno@clisp.org>
4656
4657         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
4658         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
4659         When cross-compiling, guess yes on all platforms except AIX.
4660         Reported by Ludovic Courtès <ludo@gnu.org>.
4661
4662 2011-11-09  Bruno Haible  <bruno@clisp.org>
4663
4664         ptsname_r tests: Fix bugs.
4665         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
4666         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
4667
4668 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4669
4670         fstatat: work with cross-compilation
4671         Problem reported by Ludovic Courtès in
4672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
4673         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
4674         "cross-compiling" and assume the bug is present.  Replace
4675         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
4676         an inverted sense, to be more conservative about our assumptions.
4677         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
4678
4679 2011-11-09  Bruno Haible  <bruno@clisp.org>
4680
4681         Improve MODULES.html output.
4682         * modules/mkfifoat (Description): Use the word "function".
4683         * modules/readlinkat (Description): Likewise.
4684         * modules/symlinkat (Description): Likewise.
4685
4686 2011-11-09  Eric Blake  <eblake@redhat.com>
4687
4688         ptsname_r-tests: new test module
4689         * modules/ptsname_r-tests: New module.
4690         * tests/test-ptsname_r.c: New file.
4691
4692         ptsname_r: new module
4693         * modules/ptsname_r: New module.
4694         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
4695         * lib/ptsname.c (__ptsname_r): Split...
4696         * lib/ptsname_r.c: ...into new file.
4697         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4698         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
4699         * modules/stdlib (Makefile.am): Substitute witnesses.
4700         * lib/stdlib.in.h (ptsname_r): Declare it.
4701         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
4702         * MODULES.html.sh (Misc): Likewise.
4703         * modules/ptsname (Depends-on): Alter dependency.
4704         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
4705
4706 2011-11-09  Jim Meyering  <meyering@redhat.com>
4707
4708         announce-gen: be more concise when there's only one URL+tarball
4709         * build-aux/announce-gen (get_tool_versions): When you distribute
4710         only one type of tarball, combine the first two "Here are..."
4711         sections and make the key-checking grammar independent of
4712         how many tarballs there are.
4713
4714 2011-11-09  Eric Blake  <eblake@redhat.com>
4715
4716         openpty: provide a stub on mingw
4717         * lib/pty.in.h (includes): Provide forward declarations.
4718         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
4719
4720         raise: fix mingw handling of SIGPIPE
4721         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
4722
4723 2011-11-08  Bruno Haible  <bruno@clisp.org>
4724
4725         More conditional dependencies.
4726         * modules/faccessat (Depends-on): Add conditions.
4727         * modules/fchmodat (Depends-on): Likewise.
4728         * modules/fchownat (Depends-on): Likewise.
4729         * modules/fstatat (Depends-on): Likewise.
4730         * modules/mkfifoat (Depends-on): Likewise.
4731         * modules/readlinkat (Depends-on): Likewise.
4732         * modules/symlinkat (Depends-on): Likewise.
4733         * modules/unlinkat (Depends-on): Likewise.
4734         * modules/utimensat (Depends-on): Likewise.
4735         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
4736         * modules/linkat (Depends-on): Refine the conditions.
4737         * modules/renameat (Depends-on): Likewise.
4738
4739 2011-11-08  Bruno Haible  <bruno@clisp.org>
4740
4741         faccessat: Move AC_LIBOBJ invocation to module description.
4742         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4743         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
4744         invocation from here...
4745         * modules/faccessat (configure.ac): ... to here. Invoke
4746         gl_PREREQ_FACCESSAT.
4747
4748 2011-11-08  Bruno Haible  <bruno@clisp.org>
4749
4750         faccessat: Simplify autoconf macro.
4751         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
4752         gl_FUNC_EUIDACCESS.
4753
4754 2011-11-08  Bruno Haible  <bruno@clisp.org>
4755
4756         renameat: Fix dependencies.
4757         * modules/renameat (Depends-on): Add stdbool.
4758
4759 2011-11-08  Bruno Haible  <bruno@clisp.org>
4760
4761         mkfifoat: Fix module description.
4762         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
4763         not gl_UNISTD_MODULE_INDICATOR.
4764
4765 2011-11-08  Bruno Haible  <bruno@clisp.org>
4766
4767         fstatat: Remove unused dependency.
4768         * modules/fstatat (Depends-on): Remove fstat.
4769
4770 2011-11-08  Simon Josefsson  <simon@josefsson.org>
4771
4772         GNUmakefile: behave when Makefile is missing.
4773         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
4774
4775 2011-11-08  Bruno Haible  <bruno@clisp.org>
4776
4777         openat: Conditionalize dependencies.
4778         * lib/openat.c: Reduce the scope of some #includes.
4779         * modules/openat (Depends-on): Add conditions.
4780
4781 2011-11-07  Jim Meyering  <meyering@redhat.com>
4782
4783         maint.mk: extract GPG key ID without using a temporary file
4784         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
4785         without using a temporary file.  Based on a suggestion from Werner Koch
4786         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
4787
4788 2011-11-07  Eric Blake  <eblake@redhat.com>
4789
4790         grantpt: fix typo
4791         * lib/stdlib.in.h (grantpt): Check correct function.
4792
4793         maint.mk: silence new syntax check
4794         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
4795
4796 2011-11-06  Bruno Haible  <bruno@clisp.org>
4797
4798         Doc about floating-point and math API.
4799         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
4800         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
4801
4802 2011-11-06  Bruno Haible  <bruno@clisp.org>
4803
4804         stdalign tests: Skip the test when compiled by Sun C.
4805         * tests/test-stdalign.c (main): Skip the test on Sun C.
4806
4807 2011-11-06  Bruno Haible  <bruno@clisp.org>
4808
4809         ansi-c++-opt: Complete the 2011-06-05 change.
4810         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
4811         does not support namespaces, set the variable to "no", not to ":".
4812
4813 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
4816
4817 2011-11-06  Bruno Haible  <bruno@clisp.org>
4818
4819         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
4820         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
4821         (minus_zerol) [HP-UX]: New macro.
4822         (unary_minus) [HP-UX]: New function.
4823         (copysignl) [HP-UX]: Use unary_minus function.
4824
4825 2011-11-06  Bruno Haible  <bruno@clisp.org>
4826
4827         ldexp, ldexpf, ldexpl: Enhance tests.
4828         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
4829         and tests/test-ldexpl.c.
4830         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
4831         LDEXP, MIN_EXP, MAX_EXP): New macros.
4832         Include test-ldexp.h.
4833         (main): Just call test_function.
4834         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
4835         infinity.h, nan.h.
4836         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4837         MAX_EXP): New macros.
4838         Include test-ldexp.h.
4839         (x, y): Remove variables.
4840         (main): Just call test_function.
4841         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
4842         infinity.h, nan.h.
4843         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4844         MAX_EXP): New macros.
4845         Include test-ldexp.h.
4846         (x, y): Remove variables.
4847         (main): Just call test_function.
4848         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
4849         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
4850         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4851         (Depends-on): Add isnand-nolibm, signbit, float.
4852         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
4853         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4854         (Depends-on): Add isnanf-nolibm, signbit, float.
4855
4856 2011-11-06  Bruno Haible  <bruno@clisp.org>
4857
4858         math tests: Cosmetics.
4859         * tests/test-math-c++.cc: Reorder declarations.
4860
4861 2011-11-05  Bruno Haible  <bruno@clisp.org>
4862
4863         fma*: Simplify test.
4864         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
4865         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
4866
4867         Tests for module 'fmal'.
4868         * modules/fmal-tests: New file.
4869         * tests/test-fmal1.c: New file.
4870         * tests/test-fmal2.c: New file.
4871
4872         New module 'fmal'.
4873         * lib/math.in.h (fmal): New declaration.
4874         * lib/fmal.c: New file.
4875         * m4/fmal.m4: New file.
4876         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
4877         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
4878         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
4879         REPLACE_FMAL.
4880         * modules/fmal: New file.
4881         * doc/posix-functions/fmal.texi: Mention the new module and the various
4882         bugs.
4883
4884         Tests for module 'fmaf'.
4885         * modules/fmaf-tests: New file.
4886         * tests/test-fmaf1.c: New file.
4887         * tests/test-fmaf2.c: New file.
4888
4889         New module 'fmaf'.
4890         * lib/math.in.h (fmaf): New declaration.
4891         * lib/fmaf.c: New file.
4892         * m4/fmaf.m4: New file.
4893         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
4894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
4895         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
4896         REPLACE_FMAF.
4897         * modules/fmaf: New file.
4898         * doc/posix-functions/fmaf.texi: Mention the new module and the various
4899         bugs.
4900
4901         Tests for module 'fma'.
4902         * modules/fma-tests: New file.
4903         * tests/test-fma1.c: New file.
4904         * tests/test-fma1.h: New file.
4905         * tests/test-fma2.c: New file.
4906         * tests/test-fma2.h: New file.
4907
4908         New module 'fma'.
4909         * lib/math.in.h (fma): New declaration.
4910         * lib/fma.c: New file.
4911         * m4/fma.m4: New file.
4912         * m4/fegetround.m4: New file.
4913         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
4914         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
4915         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
4916         REPLACE_FMA.
4917         * modules/fma: New file.
4918         * doc/posix-functions/fma.texi: Mention the new module and the various
4919         bugs.
4920
4921         Extend gl_MATHFUNC.
4922         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
4923         Support 'void' as argument type.
4924         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
4925
4926 2011-11-05  Jim Meyering  <meyering@redhat.com>
4927
4928         maint.mk: also prohibit inclusion of dirent.h without use
4929         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
4930
4931 2011-11-05  Bruno Haible  <bruno@clisp.org>
4932
4933         ldexpl tests: Avoid test failure on MSVC 9.
4934         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
4935         value. Needed in order to enforce the conversion from a value greater
4936         than LDBL_MAX to Infinity.
4937
4938 2011-11-05  Bruno Haible  <bruno@clisp.org>
4939
4940         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4941         * modules/at-internal: New file, extracted from modules/openat.
4942         * modules/openat-h: New file.
4943         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
4944         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
4945         * modules/openat (Description): Add reference to POSIX function.
4946         (Files): Remove lib/openat.h, lib/openat-proc.c.
4947         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4948         intprops, unistd.
4949         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4950         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4951         gl_FCNTL_MODULE_INDICATOR.
4952         (Include): Remove unistd.h, openat.h.
4953         * modules/areadlinkat (Files): Add lib/at-func.c.
4954         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4955         openat-die, openat-h, save-cwd.
4956         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4957         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4958         openat-die, openat-h, save-cwd, unistd.
4959         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4960         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4961         openat-h, save-cwd. Remove fcntl-h, openat.
4962         * modules/fchmodat (Files): Remove lib/openat.h.
4963         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4964         openat, stdbool, unistd.
4965         * modules/fchownat (Files): Remove lib/openat.h.
4966         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4967         openat, stdbool, sys_stat.
4968         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4969         lib/openat-proc.c.
4970         (Depends-on): Add at-internal.
4971         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4972         * modules/fstatat (Files): Remove lib/openat.h.
4973         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4974         stdbool, unistd.
4975         * modules/fts (Depends-on): Add openat-h.
4976         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4977         openat.
4978         * modules/mkdirat (Files): Remove lib/openat.h.
4979         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4980         openat, stdbool, sys_stat.
4981         * modules/mkfifoat (Files): Add lib/at-func.c.
4982         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4983         openat-h, save-cwd. Remove fcntl-h, openat.
4984         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4985         * modules/readlinkat (Files): Add lib/at-func.c.
4986         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4987         openat-h, save-cwd. Remove fcntl-h, openat.
4988         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4989         openat.
4990         * modules/selinux-at (Files): Add lib/at-func.c.
4991         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4992         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4993         * modules/symlinkat (Files): Add lib/at-func.c.
4994         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4995         openat-h, save-cwd. Remove fcntl-h, openat.
4996         * modules/unlinkat (Files): Remove lib/openat.h.
4997         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4998         stdbool.
4999         * modules/utimensat (Files): Add lib/at-func.c.
5000         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5001         openat-die, openat-h, save-cwd.
5002         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5003         * modules/fdutimensat-tests (Depends-on): Add openat.
5004         * modules/fstatat-tests (Depends-on): Add openat-h.
5005         * modules/readlinkat-tests (Depends-on): Add openat.
5006         * modules/symlinkat-tests (Depends-on): Add openat.
5007
5008 2011-11-05  Bruno Haible  <bruno@clisp.org>
5009
5010         openat: Include <stdbool.h>.
5011         * lib/openat.c: Include <stdbool.h>.
5012
5013 2011-11-04  Bruno Haible  <bruno@clisp.org>
5014
5015         fchownat, renameat, unlinkat: Fix dependencies.
5016         * modules/fchownat (Depends-on): Add fstatat.
5017         * modules/renameat (Depends-on): Likewise.
5018         * modules/unlinkat (Depends-on): Likewise.
5019
5020 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5021
5022         openat: remove direct dependency on dirent
5023         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5024         and hasn't been needed ever since fdopendir was split into its own
5025         module on 2009-08-31.
5026         * modules/openat (Depends-on): Remove dirent.
5027
5028 2011-11-04  Bruno Haible  <bruno@clisp.org>
5029
5030         renameat: Optimize code size.
5031         * modules/renameat (configure.ac): Don't compile at-func2.c if
5032         REPLACE_RENAMEAT is 1.
5033
5034 2011-11-04  Bruno Haible  <bruno@clisp.org>
5035
5036         openat tests: Fix file list.
5037         * modules/openat-tests (Files): Add tests/test-open.h.
5038
5039 2011-11-04  Bruno Haible  <bruno@clisp.org>
5040
5041         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5042         * modules/fchmodat (Depends-on): Add openat-die.
5043         * modules/fchownat (Depends-on): Likewise.
5044         * modules/linkat (Depends-on): Likewise.
5045         * modules/renameat (Depends-on): Likewise.
5046         * modules/openat (Depends-on): Add dirent.
5047
5048 2011-11-04  Jim Meyering  <meyering@redhat.com>
5049
5050         at-func*.c: fix comments
5051         * lib/at-func2.c: Correct/improve first-line comment.
5052         * lib/at-func.c: Correct grammar in first-line comment.
5053
5054 2011-11-04  Bruno Haible  <bruno@clisp.org>
5055
5056         New module 'mkdirat', split off from module 'openat'.
5057         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5058         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5059         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5060         * modules/mkdirat: New file, extracted from modules/openat.
5061         * modules/openat (Files): Remove lib/mkdirat.c.
5062         (Depends-on): Remove mkdir.
5063         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5064         (Include): Remove <sys/stat.h>.
5065         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5066         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5067         tests/test-mkdir.h.
5068         (Depends-on): Remove ignore-value.
5069         (Makefile.am): Remove rules for test-mkdirat.
5070         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5071         of module 'openat'.
5072         * NEWS: Mention the change.
5073
5074 2011-11-04  Bruno Haible  <bruno@clisp.org>
5075
5076         closedir: Avoid warning on mingw.
5077         * lib/closedir.c: Include <unistd.h>.
5078
5079 2011-11-04  Bruno Haible  <bruno@clisp.org>
5080
5081         New module 'fstatat', split off from module 'openat'.
5082         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5083         defined.
5084         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5085         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5086         gl_FUNC_FSTATAT.
5087         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5088         * modules/fstatat: New file, extracted from modules/openat.
5089         * modules/openat (Files): Remove lib/fstatat.c.
5090         (Depends-on): Remove lstat.
5091         (configure.ac): Remove AC_LIBOBJ of fstatat.
5092         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5093         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5094         tests/test-lstat.h, tests/test-stat.h.
5095         (Depends-on): Remove getcwd-lgpl.
5096         (Makefile.am): Remove rules for test-fstatat.
5097         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5098         of module 'openat'.
5099         * NEWS: Mention the change.
5100         * modules/getcwd (Depends-on): Add fstatat.
5101         * modules/linkat (Depends-on): Likewise.
5102         * modules/mkfifoat-tests (Depends-on): Likewise.
5103         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5104
5105 2011-11-03  Bruno Haible  <bruno@clisp.org>
5106
5107         New module 'unlinkat', split off from module 'openat'.
5108         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5109         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5110         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5111         * modules/unlinkat: New file, extracted from modules/openat. Correct
5112         the dependency conditions.
5113         * modules/openat (Files): Remove lib/unlinkat.c.
5114         (Depends-on): Remove rmdir, unlink.
5115         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5116         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5117         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5118         tests/test-rmdir.h, tests/test-unlink.h.
5119         (Depends-on): Remove unlinkdir.
5120         (Makefile.am): Remove rules for test-unlinkat.
5121         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5122         of module 'openat'.
5123         * NEWS: Mention the change.
5124         * modules/linkat-tests (Depends-on): Add unlinkat.
5125         * modules/mkfifoat-tests (Depends-on): Likewise.
5126         * modules/readlinkat-tests (Depends-on): Likewise.
5127
5128 2011-11-02  Bruno Haible  <bruno@clisp.org>
5129
5130         New module 'fchmodat', split off from module 'openat'.
5131         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5132         defined.
5133         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5134         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5135         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5136         * modules/fchmodat: New file, extracted from modules/openat.
5137         * modules/openat (Files): Remove lib/fchmodat.c.
5138         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5139         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5140         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5141         (Makefile.am): Remove rules for test-fchmodat.
5142         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5143         of module 'openat'.
5144         * NEWS: Mention the change.
5145
5146 2011-11-02  Jim Meyering  <meyering@redhat.com>
5147
5148         putenv: indent #definition of "environ" to placate cppi
5149         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5150
5151         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5152         Git logs are often treated as immutable, because editing them
5153         changes the SHA1 checksums of all descendants.  Thus, errors in
5154         git logs tend to stay there forever.  However, when we generate
5155         a ChangeLog file -- typically for distribution -- from that git log,
5156         we can actually make corrections in the generated file.  The key
5157         lies in recording in machine-readable/applicable form the desired
5158         corrections.  See --help for description and an example.
5159         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5160         (usage): Describe it; alphabetize option descriptions.
5161         (main): Honor the new option, carefully.
5162
5163 2011-11-01  Jim Meyering  <meyering@redhat.com>
5164
5165         gitlog-to-changelog: avoid an infloop
5166         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5167         that ends up being empty.
5168
5169 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5170
5171         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5172         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5173         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5174         contains (possibly-quoted) backslashes.  This should avoid
5175         all-too-common shell bugs if COMPLICATED contains backslashes in
5176         the "wrong" places.  Reported by David Evans in
5177         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5178         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5179         because we want ASCII ranges.  Is there some reason we don't use
5180         the C locale everywhere in this script?
5181         (func_module, top level): Avoid unwanted pathname expansion when
5182         $repo_url_prefix or $repo_url_suffix_repl contain shell
5183         metacharacters like '?' and '*'.
5184
5185 2011-11-01  Bruno Haible  <bruno@clisp.org>
5186
5187         fchownat: Improve description.
5188         * modules/fchownat (Description): Add link to function.
5189
5190 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5191
5192         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5193         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5195         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5196
5197 2011-11-01  Bruno Haible  <bruno@clisp.org>
5198
5199         alignof: Avoid collision with stdalign module.
5200         * lib/alignof.h (alignof): Remove macro.
5201         * NEWS: Mention the change.
5202         Reported by Paul Eggert.
5203
5204 2011-11-01  Bruno Haible  <bruno@clisp.org>
5205
5206         New module 'fchownat', split off from module 'openat'.
5207         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5208         defined.
5209         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5210         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5211         invoke gl_FUNC_FCHOWNAT.
5212         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5213         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5214         * modules/fchownat: New file, extracted from modules/openat.
5215         * modules/openat (Files): Remove lib/fchownat.c.
5216         (Depends-on): Remove lchown.
5217         (configure.ac): Remove AC_LIBOBJ of fchownat.
5218         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5219         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5220         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5221         (Depends-on): Remove mgetgroups, usleep, stat-time.
5222         (configure.ac): Remove test for getegid.
5223         (Makefile.am): Remove rules for test-fchownat.
5224         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5225         of module 'openat'.
5226         * NEWS: Mention the change.
5227
5228 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5229
5230         stdalign: port better to MSVC and to Sun C 5.11
5231         This fixes some of the problems reported by Bruno Haible in
5232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5233         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5234         shortcomings of MSVC and of Sun C 5.11.
5235         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5236         around __declspec arg.
5237         * modules/stdalign-tests (Files): Add tests/macros.h.
5238         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5239         Include macros.h, for ASSERT.
5240         (DECLARE_ALIGNED): Remove.
5241         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5242         to catch bug), and to 1 if not (simplifies the rest of the code).
5243         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5244         (CHECK_AUTO): Remove.
5245         (CHECK_ALIGNED): Check only the alignment of the static vars,
5246         since auto var alignment isn't supported by Sun C 5.11.
5247         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5248         ASSERT failures are easier to diagnose.
5249
5250 2011-10-31  Bruno Haible  <bruno@clisp.org>
5251
5252         doc about some IRIX 5.3 problems.
5253         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5254         on IRIX 5.3.
5255         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5256         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5257         5.3.
5258         * doc/posix-functions/grantpt.texi: Likewise.
5259         * doc/posix-functions/unlockpt.texi: Likewise.
5260         * doc/posix-functions/lgamma.texi: Likewise.
5261         * doc/posix-functions/nextafter.texi: Likewise.
5262         * doc/posix-functions/remainder.texi: Likewise.
5263         * doc/posix-functions/select.texi: Mention misplaced declaration on
5264         IRIX 5.3.
5265         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5266
5267 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5268
5269         gitlog-to-changelog: fix git-log invocation.
5270         git-log mishandles date strings before 1970-01-01 UTC, and there is
5271         no use to specify --since=1970-01-01 by default anyway.
5272         * build-aux/gitlog-to-changelog: By default, when no --since option
5273         was given, do not specify explicit --since option to git-log.
5274
5275 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5276
5277         gitlog-to-changelog: new option --append-dot.
5278         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5279         first non-blank line of each commit message terminated with a dot.
5280
5281 2011-10-30  Bruno Haible  <bruno@clisp.org>
5282
5283         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5284         * lib/ffsl.h: Include <config.h>.
5285         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5286
5287 2011-10-30  Jim Meyering  <meyering@redhat.com>
5288
5289         GNUmakefile: reenable "make syntax-check" for most projects
5290         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5291         build-aux variable", "syntax-check" would do nothing but succeed with
5292         the "No version control files detected..." diagnostic (unless you
5293         happened to override _build-aux via cfg.mk).
5294         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5295         to precede inclusion of maint.mk.  Otherwise, these variables would
5296         be used undefined in any project that does not override the default.
5297
5298 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5299
5300         gitlog-to-changelog: treat a message with only blank lines as empty.
5301         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5302         trailing blank lines before the code that issues a warning about an
5303         empty commit message.
5304
5305 2011-10-30  Jim Meyering  <meyering@redhat.com>
5306
5307         test-parse-datetime.c: avoid new DST-related false positive test failure
5308         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5309         based on the time/date we'll convert, not the current time.
5310         Otherwise, the moment we cross a DST boundary like today's in
5311         Europe, (CEST to CET), that offset ends up being one hour off.
5312
5313 2011-10-27  Bruno Haible  <bruno@clisp.org>
5314
5315         fstat: Tweak documentation.
5316         * modules/fstat (Description): More precise description.
5317
5318 2011-10-27  Bruno Haible  <bruno@clisp.org>
5319
5320         Update documentation regarding 'largefile' module.
5321         * doc/posix-functions/fstat.texi: Tweak wording.
5322         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5323         problems with huge directories and/or small ino_t types.
5324         * doc/posix-functions/readdir.texi: Likewise.
5325         * doc/posix-functions/rewinddir.texi: Likewise.
5326
5327 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5328
5329         maint.mk: don't maintain a second build-aux variable.
5330         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5331         depends on GNUmakefile, which already maintains a cfg.mk
5332         overridable $(_build-aux) for projects with a non-standard
5333         build-aux directory location, although without the $(srcdir)
5334         prefix.  Use that variable consistently instead of introducing a
5335         second one.  Adjust all call sites.
5336
5337 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5338
5339         Add stdalign module and use it in other modules.
5340         This is based on a previous proposal by Bruno Haible
5341         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5342
5343         stdalign: new module
5344         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5345         * modules/stdalign: New files.
5346         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5347         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5348
5349         stdalign-tests: new module
5350         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5351
5352         argp: use stdalign
5353         * lib/argp-parse.c: Include <stdalign.h>.
5354         (alignof): Remove.
5355         * modules/argp (Depends-on): Add stdalign.
5356
5357         crypto libraries: use stdalign
5358         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5359         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5360         Do not include <stdlib.h> twice, in md4.c.
5361         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5362         because we are accessing a pointer's bit-pattern, not a size.
5363         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5364         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5365         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5366         * modules/crypto/sha512: Likewise.
5367
5368         sys_socket: use stdalign, not alignof
5369         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5370         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5371
5372 2011-10-27  Bruno Haible  <bruno@clisp.org>
5373
5374         raise test: Avoid a test failure on Linux/MIPS.
5375         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5376         because 99 is a valid signal on Linux/MIPS.
5377
5378 2011-10-27  Bruno Haible  <bruno@clisp.org>
5379
5380         nonblocking tests: Fix test failure on Linux/MIPS.
5381         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5382         Set to 270000.
5383
5384 2011-10-27  Bruno Haible  <bruno@clisp.org>
5385
5386         utimensat: Work around problem on Linux/hppa.
5387         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5388         values.
5389         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5390
5391 2011-10-25  Jim Meyering  <meyering@redhat.com>
5392
5393         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5394         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5395         after symbols like NULL, size_t, etc.
5396         Reported by Alfred M. Szmidt.
5397
5398         maint.mk: exempt ENODATA from a syntax-check rule
5399         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5400         from the sc_prohibit_always-defined_macros syntax-check rule.
5401         Add a comment.  See this for more details:
5402         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5403
5404 2011-10-23  Jim Meyering  <meyering@redhat.com>
5405
5406         fts: close parent dir FD before returning from post-traversal fts_read
5407         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5408         unlink A, even though an FD open on A remained.  This is suboptimal
5409         (holding a file descriptor open longer than needed), but otherwise not
5410         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5411         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5412         that represents a real problem: it causes the removal of A to fail
5413         with e.g., "rm: cannot remove `A': Device or resource busy"
5414
5415         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5416         directory file descriptors.  After completing the final, FTS_DP,
5417         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5418         cache, but then proceeded to add a new FD to it via the subsequent
5419         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5420         final file descriptor would be closed only via fts_close's call to
5421         fd_ring_clear.  Now, it is usually closed earlier, via the final
5422         FTS_DP-returning fts_read call.
5423         * lib/fts.c (restore_initial_cwd): New function, converted from
5424         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5425         Update callers.
5426         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5427         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5428
5429 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5430             Bruno Haible  <bruno@clisp.org>
5431             Jim Meyering  <jim@meyering.net>
5432
5433         readme-release: improve safety of release prep instructions.
5434         * README-release: Don't git pull all branches when only master
5435         is needed for the release process.
5436         Run make maintainer-clean before changing trees and merging.
5437         Don't try to run ./configure right after git pull in case files
5438         that influence the bootstrap process have changed, move the
5439         ./configure step to after running ./bootstrap.
5440         Don't bootstrap "one last time"... it's the first time!
5441
5442 2011-10-22  Bruno Haible  <bruno@clisp.org>
5443
5444         errno, strerror-override: Support for MSVC 10.
5445         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5446         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5447         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5448         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5449         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5450         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5451         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5452         Assign values compatible with MSVC 10.
5453         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5454         New macros.
5455         (GNULIB_defined_EWINSOCK): New macro.
5456         * lib/strerror-override.c (strerror_override): Update accordingly.
5457         * lib/strerror-override.h: Likewise.
5458         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5459         longer equal to the corresponding errno value.
5460         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5461
5462 2011-10-22  Bruno Haible  <bruno@clisp.org>
5463
5464         perror: Recognize when test program crashes.
5465         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5466         strerror, set gl_cv_func_perror_works to no.
5467         Reported by Daniel Richard G. <skunk@iskunk.org>.
5468
5469         perror: Fix indentation.
5470         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5471
5472 2011-10-22  Bruno Haible  <bruno@clisp.org>
5473
5474         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5475         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5476         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5477         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5478         functions, not as a macro.
5479         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5480         macros.
5481         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5482         absence of macro.
5483         Suggested by Eric Blake.
5484         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5485
5486 2011-10-21  Bruno Haible  <bruno@clisp.org>
5487
5488         relocatable-prog-wrapper: Don't leave object files behind.
5489         * build-aux/install-reloc: Re-synchronize list of .o files to be
5490         removed with list of compilation units.
5491
5492 2011-10-20  Bruno Haible  <bruno@clisp.org>
5493
5494         openpty, posix_openpt: Remove code duplication.
5495         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5496         * lib/openpty.c: Include <stdlib.h>.
5497         (openpty): Use posix_openpt on all platforms except IRIX.
5498         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5499
5500 2011-10-20  Bruno Haible  <bruno@clisp.org>
5501
5502         unlockpt: Detect invalid argument.
5503         * lib/unlockpt.c: Include <fcntl.h>.
5504         (unlockpt): Check whether fd is valid, using fcntl().
5505         * modules/unlockpt (Depends-on): Add fcntl-h.
5506
5507 2011-10-20  Bruno Haible  <bruno@clisp.org>
5508
5509         openpty: Avoid compilation error on AIX 6.1.
5510         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5511
5512 2011-10-20  Bruno Haible  <bruno@clisp.org>
5513
5514         posix_openpt: Support for OpenBSD.
5515         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5516         (posix_openpt) [OpenBSD]: New code.
5517         * lib/grantpt.c: Include <fcntl.h>.
5518         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5519         * modules/grantpt (Depends-on): Add fcntl-h.
5520
5521 2011-10-20  Bruno Haible  <bruno@clisp.org>
5522
5523         posix_openpt test: Coding style.
5524         * tests/test-posix_openpt.c: Use GNU coding style.
5525
5526 2011-10-20  Bruno Haible  <bruno@clisp.org>
5527
5528         grantpt: Support --avoid=pt_chown.
5529         * modules/grantpt (Files): Add lib/pty-private.h.
5530
5531 2011-10-20  Bruno Haible  <bruno@clisp.org>
5532
5533         posix_openpt: Fix autoconf macro.
5534         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5535         unneeded check for _getpty.
5536
5537 2011-10-20  Bruno Haible  <bruno@clisp.org>
5538
5539         openpty: Update comments.
5540         * lib/openpty.c: Add comments about Minix.
5541
5542 2011-10-19  Eric Blake  <eblake@redhat.com>
5543
5544         openpty: relax license
5545         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5546
5547         pt_chown: use configmake to simplify build
5548         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5549
5550         ptsname and others: relax license
5551         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5552         * modules/unlockpt (License): Likewise.
5553         * modules/pt_chown (License): Likewise.
5554         * modules/ptsname (License): Likewise.
5555         * modules/ttyname_r (License): Likewise.
5556
5557 2011-10-19  Jim Meyering  <meyering@redhat.com>
5558
5559         posix_openpt: remove spurious #endif
5560         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5561
5562 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5563
5564         maint.mk: Respect $(build_aux) in web-manual rule.
5565         * top/maint.mk (web-manual): Find gen-announce script in user's
5566         $(build_aux) directory instead of hard-coding 'build-aux'.
5567
5568 2011-10-19  Bruno Haible  <bruno@clisp.org>
5569
5570         posix_openpt: Fix compilation error.
5571         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5572         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5573         Mention the openpty module as an alternative.
5574
5575 2011-10-19  Bruno Haible  <bruno@clisp.org>
5576
5577         Support for old NeXTstep 3.3 frexp().
5578         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5579         execution time of the test to 5 seconds.
5580         Reported by Daniel Richard G. <skunk@iskunk.org>.
5581
5582 2011-10-19  Bruno Haible  <bruno@clisp.org>
5583
5584         Support for old NeXTstep 3.3 sed.
5585         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5586         part, use /.../, not \|...|. Escape periods in the header file name.
5587         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5588         Reported by Daniel Richard G. <skunk@iskunk.org>.
5589
5590 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5591
5592         Support for old NeXTstep 3.3 gcc.
5593         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5594         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5595         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5596         * lib/spawn.in.h (_Restrict_arr_): Likewise.
5597         * lib/regex.h (_Restrict_arr_): Likewise.
5598         * lib/regex_internal.h (re_token_t): Likewise.
5599         * lib/regexec.c (check_node_accept_bytes): Likewise.
5600         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
5601
5602 2011-10-18  Eric Blake  <eblake@redhat.com>
5603
5604         posix_openpt: new module
5605         * modules/posix_openpt: New module.
5606         * m4/posix_openpt.m4: New file.
5607         * lib/posix_openpt.c: Likewise.
5608         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5609         (gl_STDLIB_H_DEFAULTS): Set defaults.
5610         * modules/stdlib (Makefile.am): Substitute macros.
5611         * lib/stdlib.in.h (posix_openpt): Declare.
5612         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
5613         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
5614         * modules/posix_openpt-tests: New test module.
5615         * tests/test-posix_openpt.c: New test.
5616
5617 2011-10-15  Bruno Haible  <bruno@clisp.org>
5618
5619         xstrtoll: Fix compilation failure.
5620         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
5621         from lib/strtol.c.
5622         * doc/posix-headers/limits.texi: Mention missing numerical limits on
5623         some platforms.
5624         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5625
5626 2011-10-15  Bruno Haible  <bruno@clisp.org>
5627
5628         vasnprintf: Optimize bit search operation.
5629         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
5630         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
5631         gl_DOUBLE_EXPONENT_LOCATION.
5632         * modules/vasnprintf (Files): Add m4/exponentd.m4.
5633         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5634         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5635         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5636         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5637         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5638         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5639         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5640         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
5641
5642 2011-10-15  Bruno Haible  <bruno@clisp.org>
5643
5644         vasnprintf: Fix comments.
5645         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
5646
5647 2011-10-14  Bruno Haible  <bruno@clisp.org>
5648
5649         Tests for module 'integer_length_ll'.
5650         * modules/integer_length_ll-tests: New file.
5651         * tests/test-integer_length_ll.c: New file.
5652
5653         New module 'integer_length_ll'.
5654         * lib/integer_length_ll.c: New file.
5655         * modules/integer_length_ll: New file.
5656
5657 2011-10-14  Bruno Haible  <bruno@clisp.org>
5658
5659         Tests for module 'integer_length_l'.
5660         * modules/integer_length_l-tests: New file.
5661         * tests/test-integer_length_l.c: New file.
5662
5663         New module 'integer_length_l'.
5664         * lib/integer_length_l.c: New file.
5665         * modules/integer_length_l: New file.
5666
5667 2011-10-14  Bruno Haible  <bruno@clisp.org>
5668
5669         Tests for module 'integer_length'.
5670         * modules/integer_length-tests: New file.
5671         * tests/test-integer_length.c: New file.
5672
5673         New module 'integer_length'.
5674         * lib/integer_length.h: New file.
5675         * lib/integer_length.c: New file.
5676         * modules/integer_length: New file.
5677
5678 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5679
5680         popen: Fix dependency conditions.
5681         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
5682
5683 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5684
5685         perror: Fix autoconf test.
5686         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5687         <stdlib.h> and <string.h>.
5688
5689 2011-10-14  Bruno Haible  <bruno@clisp.org>
5690
5691         ffsl: Optimize on 64-bit platforms.
5692         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
5693         unrolling.
5694
5695 2011-10-13  Bruno Haible  <bruno@clisp.org>
5696
5697         ffsl: Optimize on 32-bit platforms.
5698         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
5699         use ffs() without a loop.
5700
5701         ffsl, ffsll: Optimize for GCC.
5702         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
5703         * lib/ffsl.c (GCC_BUILTIN): New macro.
5704         * lib/ffsll.c (GCC_BUILTIN): Likewise.
5705
5706 2011-10-13  Bruno Haible  <bruno@clisp.org>
5707
5708         ffs, bcopy, memset: Support symbol renaming via config.h.
5709         * lib/ffs.c: Include <config.h>.
5710         * lib/bcopy.c: Likewise.
5711         * lib/memset.c: Likewise.
5712
5713 2011-10-10  Bruno Haible  <bruno@clisp.org>
5714
5715         atanl: Simplify for platforms where 'long double' == 'double'.
5716         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5717         alternative implementation.
5718         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5719         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5720         * modules/atanl (Depends-on): Add atan. Update conditions.
5721
5722 2011-10-10  Bruno Haible  <bruno@clisp.org>
5723
5724         acosl: Simplify for platforms where 'long double' == 'double'.
5725         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5726         alternative implementation.
5727         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5728         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5729         * modules/acosl (Depends-on): Add acos. Update conditions.
5730
5731 2011-10-10  Bruno Haible  <bruno@clisp.org>
5732
5733         asinl: Simplify for platforms where 'long double' == 'double'.
5734         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5735         alternative implementation.
5736         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5737         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5738         * modules/asinl (Depends-on): Add asin. Update conditions.
5739
5740 2011-10-10  Bruno Haible  <bruno@clisp.org>
5741
5742         tanl: Simplify for platforms where 'long double' == 'double'.
5743         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5744         implementation.
5745         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5746         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5747         * modules/tanl (Depends-on): Add tan. Update conditions.
5748         (configure.ac): Don't compile trigl.c if
5749         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5750
5751 2011-10-10  Bruno Haible  <bruno@clisp.org>
5752
5753         cosl: Simplify for platforms where 'long double' == 'double'.
5754         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5755         implementation.
5756         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5757         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5758         * modules/cosl (Depends-on): Add cos. Update conditions.
5759         (configure.ac): Don't compile sincosl.c and trigl.c if
5760         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5761
5762 2011-10-10  Bruno Haible  <bruno@clisp.org>
5763
5764         sinl: Simplify for platforms where 'long double' == 'double'.
5765         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5766         implementation.
5767         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5768         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5769         * modules/sinl (Depends-on): Add sin. Update conditions.
5770         (configure.ac): Don't compile sincosl.c and trigl.c if
5771         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5772
5773 2011-10-10  Bruno Haible  <bruno@clisp.org>
5774
5775         logl: Simplify for platforms where 'long double' == 'double'.
5776         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5777         implementation.
5778         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5779         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5780         * modules/logl (Depends-on): Add log. Update conditions.
5781
5782 2011-10-10  Bruno Haible  <bruno@clisp.org>
5783
5784         expl: Simplify for platforms where 'long double' == 'double'.
5785         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5786         implementation.
5787         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5788         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5789         * modules/expl (Depends-on): Add exp. Update conditions.
5790
5791 2011-10-10  Bruno Haible  <bruno@clisp.org>
5792
5793         sqrtl: Simplify for platforms where 'long double' == 'double'.
5794         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5795         alternative implementation.
5796         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5797         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5798         * modules/sqrtl (Depends-on): Update conditions.
5799
5800 2011-10-10  Bruno Haible  <bruno@clisp.org>
5801
5802         ldexpl: Simplify for platforms where 'long double' == 'double'.
5803         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5804         alternative implementation.
5805         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5806         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5807         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
5808
5809 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
5810
5811         ffsll: set correct witness
5812         * modules/ffsll (configure.ac): Fix typo.
5813
5814 2011-10-10  Bruno Haible  <bruno@clisp.org>
5815
5816         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
5817         * lib/printf-frexpl.c: Include <config.h>.
5818         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5819         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
5820         second time.
5821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
5822         gl_LONG_DOUBLE_VS_DOUBLE.
5823         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
5824         conditions.
5825
5826 2011-10-10  Bruno Haible  <bruno@clisp.org>
5827
5828         frexpl: Simplify for platforms where 'long double' == 'double'.
5829         * lib/frexpl.c: Include <config.h>.
5830         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5831         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5832         time.
5833         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5834         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5835         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
5836         * modules/frexpl (Depends-on): Add frexp. Update conditions.
5837         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
5838         conditions.
5839
5840 2011-10-10  Jim Meyering  <meyering@redhat.com>
5841
5842         test-renameat: don't leave behind a temporary file
5843         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
5844           ERROR: files left in build directory after distclean:
5845           ./gltests/test-renameat.too
5846           make[1]: *** [distcleancheck] Error 1
5847         Reported by Tom G. Christensen.
5848
5849 2011-10-09  Bruno Haible  <bruno@clisp.org>
5850
5851         rint: Determine RINT_LIBM correctly on AIX 7.
5852         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
5853         directly, not only through a function pointer. Also accept an optional
5854         4th argument with extra code.
5855         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
5856         rintf() call by gcc when optimizing.
5857
5858         mathfunc.m4: Refactor.
5859         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5860         m4 variable.
5861
5862 2011-10-09  Bruno Haible  <bruno@clisp.org>
5863
5864         rintl: Simplify for platforms where 'long double' == 'double'.
5865         * lib/rintl.c: Include <config.h>.
5866         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5867         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5868         time.
5869         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5870         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5871         * modules/rintl (Depends-on): Add rint. Update conditions.
5872
5873 2011-10-09  Bruno Haible  <bruno@clisp.org>
5874
5875         roundl: Simplify for platforms where 'long double' == 'double'.
5876         * lib/roundl.c: Include <config.h>.
5877         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5878         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5879         time.
5880         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5881         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5882         * modules/roundl (Depends-on): Add round. Update conditions.
5883
5884 2011-10-09  Bruno Haible  <bruno@clisp.org>
5885
5886         truncl: Simplify for platforms where 'long double' == 'double'.
5887         * lib/truncl.c: Include <config.h>.
5888         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5889         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5890         time.
5891         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5892         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5893         * modules/truncl (Depends-on): Add trunc. Update conditions.
5894
5895 2011-10-09  Bruno Haible  <bruno@clisp.org>
5896
5897         ceill: Simplify for platforms where 'long double' == 'double'.
5898         * lib/ceill.c: Include <config.h>.
5899         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5900         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5901         time.
5902         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5903         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5904         * modules/ceill (Depends-on): Add ceil. Update conditions.
5905
5906 2011-10-09  Bruno Haible  <bruno@clisp.org>
5907
5908         floorl: Simplify for platforms where 'long double' == 'double'.
5909         * lib/floorl.c: Include <config.h>.
5910         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5911         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5912         time.
5913         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5914         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5915         * modules/floorl (Depends-on): Add floor. Update conditions.
5916
5917 2011-10-09  Bruno Haible  <bruno@clisp.org>
5918
5919         rint: Fix ordering constraints.
5920         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
5921         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5922         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5923
5924 2011-10-09  Bruno Haible  <bruno@clisp.org>
5925
5926         copysignl: Simplify for platforms where 'long double' == 'double'.
5927         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5928         alternative.
5929         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5930         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5931         * modules/copysignl (Depends-on): Add copysign. Update conditions.
5932
5933 2011-10-09  Bruno Haible  <bruno@clisp.org>
5934
5935         Tests for module 'rintl'.
5936         * modules/rintl-tests: New file.
5937         * tests/test-rintl.c: New file.
5938
5939         New module 'rintl'.
5940         * lib/math.in.h (rintl): New declaration.
5941         * lib/rintl.c: New file.
5942         * m4/rintl.m4: New file.
5943         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
5944         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
5945         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
5946         * modules/rintl: New file.
5947         * tests/test-math-c++.cc: Check the declaration of rintl.
5948         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5949         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5950         * doc/posix-functions/rintl.texi: Mention the new module.
5951
5952 2011-10-09  Bruno Haible  <bruno@clisp.org>
5953
5954         Tests for module 'rintf'.
5955         * modules/rintf-tests: New file.
5956         * tests/test-rintf.c: New file.
5957
5958         New module 'rintf'.
5959         * lib/math.in.h (rintf): New declaration.
5960         * lib/rintf.c: New file.
5961         * m4/rintf.m4: New file.
5962         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5963         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5964         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5965         * modules/rintf: New file.
5966         * tests/test-math-c++.cc: Check the declaration of rintf.
5967         * doc/posix-functions/rintf.texi: Mention the new module.
5968
5969 2011-10-09  Bruno Haible  <bruno@clisp.org>
5970
5971         rint: Support for MSVC.
5972         * lib/math.in.h (rint): New declaration.
5973         * lib/rint.c: New file.
5974         * m4/rint.m4: New file.
5975         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5976         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5977         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5978         * modules/rint (Description): Fix.
5979         (Files): Add lib/rint.c, m4/rint.m4.
5980         (Depends-on): Add math.
5981         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5982         gl_MATH_MODULE_INDICATOR.
5983         * tests/test-math-c++.cc: Check the declaration of rint.
5984         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5985         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5986         * doc/posix-functions/rint.texi: Mention the replacement provided by
5987         the module.
5988
5989         rint tests: More tests.
5990         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5991         minus-zero.h, infinity.h, nan.h.
5992         (main): Skip the test if the current rounding mode is not standard. Add
5993         tests for negative numbers, minus zero, infinity, NaN.
5994         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5995         tests/nan.h.
5996         (Depends-on): Add isnand-nolibm.
5997
5998 2011-10-09  Bruno Haible  <bruno@clisp.org>
5999
6000         Tests for module 'copysignl'.
6001         * modules/copysignl-tests: New file.
6002         * tests/test-copysignl.c: New file.
6003
6004         New module 'copysignl'.
6005         * lib/math.in.h (copysignl): New declaration.
6006         * lib/copysignl.c: New file.
6007         * m4/copysignl.m4: New file.
6008         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6009         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6010         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6011         HAVE_COPYSIGNL.
6012         * modules/copysignl: New file.
6013         * tests/test-math-c++.cc: Check the declaration of copysignl.
6014         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6015         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6016         * doc/posix-functions/copysignl.texi: Mention the new module.
6017
6018 2011-10-09  Bruno Haible  <bruno@clisp.org>
6019
6020         Tests for module 'copysignf'.
6021         * modules/copysignf-tests: New file.
6022         * tests/test-copysignf.c: New file.
6023
6024         New module 'copysignf'.
6025         * lib/math.in.h (copysignf): New declaration.
6026         * lib/copysignf.c: New file.
6027         * m4/copysignf.m4: New file.
6028         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6030         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6031         HAVE_COPYSIGNF.
6032         * modules/copysignf: New file.
6033         * tests/test-math-c++.cc: Check the declaration of copysignf.
6034         * doc/posix-functions/copysignf.texi: Mention the new module.
6035
6036 2011-10-09  Bruno Haible  <bruno@clisp.org>
6037
6038         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6039         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6040         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6041         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6042         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6043         gl_SIGNAL_H_DEFAULTS.
6044
6045 2011-10-09  Bruno Haible  <bruno@clisp.org>
6046
6047         poll: Make macro safer.
6048         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6049         ac_cv_header_poll_h is not set.
6050
6051 2011-10-09  Bruno Haible  <bruno@clisp.org>
6052
6053         copysign: Provide replacement.
6054         * lib/math.in.h (copysign): New declaration.
6055         * lib/copysign.c: New file.
6056         * m4/copysign.m4: New file.
6057         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6058         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6059         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6060         HAVE_COPYSIGN.
6061         * modules/copysign (Description): Clarify.
6062         (Files): Add lib/copysign.c, m4/copysign.m4.
6063         (Depends-on): Add math, signbit.
6064         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6065         gl_MATH_MODULE_INDICATOR.
6066         * tests/test-math-c++.cc: Check the declaration of copysign.
6067         * doc/posix-functions/copysign.texi: Mention the effects of the module
6068         on Minix and MSVC.
6069
6070 2011-10-09  Bruno Haible  <bruno@clisp.org>
6071
6072         isinf: Ensure macro on AIX 5.1.
6073         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6074         macro.
6075         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6076
6077 2011-10-09  Bruno Haible  <bruno@clisp.org>
6078
6079         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6080         * modules/snprintf-posix-tests (configure.ac): Require
6081         gl_LONG_DOUBLE_VS_DOUBLE.
6082         * modules/sprintf-posix-tests (configure.ac): Likewise.
6083         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6084         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6085         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6086         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6087         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6088         tests on platforms where 'long double' is the same as 'double'.
6089         * tests/test-sprintf-posix.h (test_function): Likewise.
6090         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6091         * tests/test-vasprintf-posix.c (test_function): Likewise.
6092
6093         *printf: Fix for platforms where 'long double' == 'double'.
6094         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6095         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6096         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6097         * modules/fprintf-posix (Files): Likewise.
6098         * modules/obstack-printf-posix (Files): Likewise.
6099         * modules/snprintf-posix (Files): Likewise.
6100         * modules/sprintf-posix (Files): Likewise.
6101         * modules/vasnprintf (Files): Likewise.
6102         * modules/vasnprintf-posix (Files): Likewise.
6103         * modules/vasprintf-posix (Files): Likewise.
6104         * modules/vdprintf-posix (Files): Likewise.
6105         * modules/vfprintf-posix (Files): Likewise.
6106         * modules/vsnprintf-posix (Files): Likewise.
6107         * modules/vsprintf-posix (Files): Likewise.
6108         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6109         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6110         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6111         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6112         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6113         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6114         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6115
6116         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6117         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6118         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6119         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6120         'long double'.
6121         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6122
6123         isinf: Fix for platforms where 'long double' == 'double'.
6124         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6125         Don't blindly assume 80-bit 'long double'.
6126
6127         isfinite: Fix for platforms where 'long double' == 'double'.
6128         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6129         Don't blindly assume 80-bit 'long double'.
6130
6131         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6132         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6133         * modules/isfinite-tests (configure.ac): Require
6134         gl_LONG_DOUBLE_VS_DOUBLE.
6135         * modules/isinf-tests (configure.ac): Likewise.
6136         * modules/isnan-tests (configure.ac): Likewise.
6137         * modules/isnanl-tests (configure.ac): Likewise.
6138         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6139         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6140         tests on platforms where 'long double' is the same as 'double'.
6141         * tests/test-isinf.c (test_isinfl): Likewise.
6142         * tests/test-isnan.c (test_long_double): Likewise.
6143         * tests/test-isnanl.h (main): Likewise.
6144
6145 2011-10-08  Bruno Haible  <bruno@clisp.org>
6146
6147         Tests for module 'tanhf'.
6148         * modules/tanhf-tests: New file.
6149         * tests/test-tanhf.c: New file.
6150
6151         New module 'tanhf'.
6152         * lib/math.in.h (tanhf): New declaration.
6153         * lib/tanhf.c: New file.
6154         * m4/tanhf.m4: New file.
6155         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6157         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6158         * modules/tanhf: New file.
6159         * tests/test-math-c++.cc: Check the declaration of tanhf.
6160         * doc/posix-functions/tanhf.texi: Mention the new module.
6161
6162         tanh: Use a .m4 file.
6163         * m4/tanh.m4: New file.
6164         * modules/tanh (Files): Add it.
6165         (configure.ac): Just invoke gl_FUNC_TANH.
6166
6167 2011-10-08  Bruno Haible  <bruno@clisp.org>
6168
6169         Tests for module 'coshf'.
6170         * modules/coshf-tests: New file.
6171         * tests/test-coshf.c: New file.
6172
6173         New module 'coshf'.
6174         * lib/math.in.h (coshf): New declaration.
6175         * lib/coshf.c: New file.
6176         * m4/coshf.m4: New file.
6177         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6179         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6180         * modules/coshf: New file.
6181         * tests/test-math-c++.cc: Check the declaration of coshf.
6182         * doc/posix-functions/coshf.texi: Mention the new module.
6183
6184         cosh: Use a .m4 file.
6185         * m4/cosh.m4: New file.
6186         * modules/cosh (Files): Add it.
6187         (configure.ac): Just invoke gl_FUNC_COSH.
6188
6189 2011-10-08  Bruno Haible  <bruno@clisp.org>
6190
6191         Tests for module 'sinhf'.
6192         * modules/sinhf-tests: New file.
6193         * tests/test-sinhf.c: New file.
6194
6195         New module 'sinhf'.
6196         * lib/math.in.h (sinhf): New declaration.
6197         * lib/sinhf.c: New file.
6198         * m4/sinhf.m4: New file.
6199         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6201         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6202         * modules/sinhf: New file.
6203         * tests/test-math-c++.cc: Check the declaration of sinhf.
6204         * doc/posix-functions/sinhf.texi: Mention the new module.
6205
6206         sinh: Use a .m4 file.
6207         * m4/sinh.m4: New file.
6208         * modules/sinh (Files): Add it.
6209         (configure.ac): Just invoke gl_FUNC_SINH.
6210
6211 2011-10-08  Bruno Haible  <bruno@clisp.org>
6212
6213         Tests for module 'atan2f'.
6214         * modules/atan2f-tests: New file.
6215         * tests/test-atan2f.c: New file.
6216
6217         New module 'atan2f'.
6218         * lib/math.in.h (atan2f): New declaration.
6219         * lib/atan2f.c: New file.
6220         * m4/atan2f.m4: New file.
6221         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6222         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6223         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6224         * modules/atan2f: New file.
6225         * tests/test-math-c++.cc: Check the declaration of atan2f.
6226         * doc/posix-functions/atan2f.texi: Mention the new module.
6227
6228         atan2: Use a .m4 file.
6229         * m4/atan2.m4: New file.
6230         * modules/atan2 (Files): Add it.
6231         (configure.ac): Just invoke gl_FUNC_ATAN2.
6232
6233 2011-10-08  Bruno Haible  <bruno@clisp.org>
6234
6235         Tests for module 'atanf'.
6236         * modules/atanf-tests: New file.
6237         * tests/test-atanf.c: New file.
6238
6239         New module 'atanf'.
6240         * lib/math.in.h (atanf): New declaration.
6241         * lib/atanf.c: New file.
6242         * m4/atanf.m4: New file.
6243         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6244         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6245         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6246         * modules/atanf: New file.
6247         * tests/test-math-c++.cc: Check the declaration of atanf.
6248         * doc/posix-functions/atanf.texi: Mention the new module.
6249
6250         atan: Use a .m4 file.
6251         * m4/atan.m4: New file.
6252         * modules/atan (Files): Add it.
6253         (configure.ac): Just invoke gl_FUNC_ATAN.
6254
6255 2011-10-08  Bruno Haible  <bruno@clisp.org>
6256
6257         Tests for module 'acosf'.
6258         * modules/acosf-tests: New file.
6259         * tests/test-acosf.c: New file.
6260
6261         New module 'acosf'.
6262         * lib/math.in.h (acosf): New declaration.
6263         * lib/acosf.c: New file.
6264         * m4/acosf.m4: New file.
6265         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6266         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6267         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6268         * modules/acosf: New file.
6269         * tests/test-math-c++.cc: Check the declaration of acosf.
6270         * doc/posix-functions/acosf.texi: Mention the new module.
6271
6272         acos: Use a .m4 file.
6273         * m4/acos.m4: New file.
6274         * modules/acos (Files): Add it.
6275         (configure.ac): Just invoke gl_FUNC_ACOS.
6276
6277 2011-10-08  Bruno Haible  <bruno@clisp.org>
6278
6279         Tests for module 'asinf'.
6280         * modules/asinf-tests: New file.
6281         * tests/test-asinf.c: New file.
6282
6283         New module 'asinf'.
6284         * lib/math.in.h (asinf): New declaration.
6285         * lib/asinf.c: New file.
6286         * m4/asinf.m4: New file.
6287         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6288         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6289         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6290         * modules/asinf: New file.
6291         * tests/test-math-c++.cc: Check the declaration of asinf.
6292         * doc/posix-functions/asinf.texi: Mention the new module.
6293
6294         asin: Use a .m4 file.
6295         * m4/asin.m4: New file.
6296         * modules/asin (Files): Add it.
6297         (configure.ac): Just invoke gl_FUNC_ASIN.
6298
6299 2011-10-08  Bruno Haible  <bruno@clisp.org>
6300
6301         Tests for module 'tanf'.
6302         * modules/tanf-tests: New file.
6303         * tests/test-tanf.c: New file.
6304
6305         New module 'tanf'.
6306         * lib/math.in.h (tanf): New declaration.
6307         * lib/tanf.c: New file.
6308         * m4/tanf.m4: New file.
6309         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6311         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6312         * modules/tanf: New file.
6313         * tests/test-math-c++.cc: Check the declaration of tanf.
6314         * doc/posix-functions/tanf.texi: Mention the new module.
6315
6316         tan: Use a .m4 file.
6317         * m4/tan.m4: New file.
6318         * modules/tan (Files): Add it.
6319         (configure.ac): Just invoke gl_FUNC_TAN.
6320
6321 2011-10-08  Bruno Haible  <bruno@clisp.org>
6322
6323         Tests for module 'cosf'.
6324         * modules/cosf-tests: New file.
6325         * tests/test-cosf.c: New file.
6326
6327         New module 'cosf'.
6328         * lib/math.in.h (cosf): New declaration.
6329         * lib/cosf.c: New file.
6330         * m4/cosf.m4: New file.
6331         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6333         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6334         * modules/cosf: New file.
6335         * tests/test-math-c++.cc: Check the declaration of cosf.
6336         * doc/posix-functions/cosf.texi: Mention the new module.
6337
6338         cos: Use a .m4 file.
6339         * m4/cos.m4: New file.
6340         * modules/cos (Files): Add it.
6341         (configure.ac): Just invoke gl_FUNC_COS.
6342
6343 2011-10-08  Bruno Haible  <bruno@clisp.org>
6344
6345         Tests for module 'sinf'.
6346         * modules/sinf-tests: New file.
6347         * tests/test-sinf.c: New file.
6348
6349         New module 'sinf'.
6350         * lib/math.in.h (sinf): New declaration.
6351         * lib/sinf.c: New file.
6352         * m4/sinf.m4: New file.
6353         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6354         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6355         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6356         * modules/sinf: New file.
6357         * tests/test-math-c++.cc: Check the declaration of sinf.
6358         * doc/posix-functions/sinf.texi: Mention the new module.
6359
6360         sin: Use a .m4 file.
6361         * m4/sin.m4: New file.
6362         * modules/sin (Files): Add it.
6363         (configure.ac): Just invoke gl_FUNC_SIN.
6364
6365 2011-10-08  Bruno Haible  <bruno@clisp.org>
6366
6367         Tests for module 'powf'.
6368         * modules/powf-tests: New file.
6369         * tests/test-powf.c: New file.
6370
6371         New module 'powf'.
6372         * lib/math.in.h (powf): New declaration.
6373         * lib/powf.c: New file.
6374         * m4/powf.m4: New file.
6375         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6377         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6378         * modules/powf: New file.
6379         * tests/test-math-c++.cc: Check the declaration of powf.
6380         * doc/posix-functions/powf.texi: Mention the new module.
6381
6382         pow: Use a .m4 file.
6383         * m4/pow.m4: New file.
6384         * modules/pow (Files): Add it.
6385         (configure.ac): Just invoke gl_FUNC_POW.
6386
6387 2011-10-08  Bruno Haible  <bruno@clisp.org>
6388
6389         Tests for module 'log10f'.
6390         * modules/log10f-tests: New file.
6391         * tests/test-log10f.c: New file.
6392
6393         New module 'log10f'.
6394         * lib/math.in.h (log10f): New declaration.
6395         * lib/log10f.c: New file.
6396         * m4/log10f.m4: New file.
6397         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6399         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6400         * modules/log10f: New file.
6401         * tests/test-math-c++.cc: Check the declaration of log10f.
6402         * doc/posix-functions/log10f.texi: Mention the new module.
6403
6404         log10: Use a .m4 file.
6405         * m4/log10.m4: New file.
6406         * modules/log10 (Files): Add it.
6407         (configure.ac): Just invoke gl_FUNC_LOG10.
6408
6409 2011-10-08  Bruno Haible  <bruno@clisp.org>
6410
6411         Tests for module 'logf'.
6412         * modules/logf-tests: New file.
6413         * tests/test-logf.c: New file.
6414
6415         New module 'logf'.
6416         * lib/math.in.h (logf): New declaration.
6417         * lib/logf.c: New file.
6418         * m4/logf.m4: New file.
6419         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6420         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6421         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6422         * modules/logf: New file.
6423         * tests/test-math-c++.cc: Check the declaration of logf.
6424         * doc/posix-functions/logf.texi: Mention the new module.
6425
6426         log: Use a .m4 file.
6427         * m4/log.m4: New file.
6428         * modules/log (Files): Add it.
6429         (configure.ac): Just invoke gl_FUNC_LOG.
6430
6431 2011-10-08  Bruno Haible  <bruno@clisp.org>
6432
6433         Tests for module 'expf'.
6434         * modules/expf-tests: New file.
6435         * tests/test-expf.c: New file.
6436
6437         New module 'expf'.
6438         * lib/math.in.h (expf): New declaration.
6439         * lib/expf.c: New file.
6440         * m4/expf.m4: New file.
6441         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6442         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6443         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6444         * modules/expf: New file.
6445         * tests/test-math-c++.cc: Check the declaration of expf.
6446         * doc/posix-functions/expf.texi: Mention the new module.
6447
6448         exp: Use a .m4 file.
6449         * m4/exp.m4: New file.
6450         * modules/exp (Files): Add it.
6451         (configure.ac): Just invoke gl_FUNC_EXP.
6452
6453 2011-10-08  Bruno Haible  <bruno@clisp.org>
6454
6455         Tests for module 'sqrtf'.
6456         * modules/sqrtf-tests: New file.
6457         * tests/test-sqrtf.c: New file.
6458
6459         New module 'sqrtf'.
6460         * lib/math.in.h (sqrtf): New declaration.
6461         * lib/sqrtf.c: New file.
6462         * m4/sqrtf.m4: New file.
6463         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6465         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6466         * modules/sqrtf: New file.
6467         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6468         * doc/posix-functions/sqrtf.texi: Mention the new module.
6469
6470 2011-10-08  Bruno Haible  <bruno@clisp.org>
6471
6472         Tests: Avoid link failures w.r.t. libintl.
6473         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6474         $(LIBINTL).
6475         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6476         $(LIBINTL).
6477         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6478         against $(LIBINTL).
6479         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6480         $(LIBINTL).
6481         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6482         $(LIBINTL).
6483         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6484
6485 2011-10-08  Bruno Haible  <bruno@clisp.org>
6486
6487         pow tests: Defeat compiler optimizations.
6488         * tests/test-pow.c (main): Assign arguments to x and y before use.
6489
6490 2011-10-08  Bruno Haible  <bruno@clisp.org>
6491
6492         gnulib-tool: Improve last commit.
6493         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6494         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6495         ignore dependencies that are not among the modules list.
6496
6497 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6498
6499         gnulib-tool: don't follow dependencies to avoided modules
6500         This fixes a bug that is related to the previous one.
6501         * gnulib-tool (func_modules_transitive_closure)
6502         (func_emit_autoconf_snippets):
6503         Check whether a dependency is acceptable before using it.
6504         (--extract-dependencies): Report an error if --avoid is also used,
6505         since this combination of options is not yet supported.
6506
6507         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6508         Problem reported by Peter Dyballa in
6509         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6510         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6511         when echoing "$condition".
6512
6513 2011-10-07  Bruno Haible  <bruno@clisp.org>
6514
6515         Fix documentation about math functions on MacOS X.
6516         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6517         MacOS X 10.5.
6518         * doc/posix-functions/fdim.texi: Likewise.
6519         * doc/posix-functions/feclearexcept.texi: Likewise.
6520         * doc/posix-functions/fegetenv.texi: Likewise.
6521         * doc/posix-functions/fegetround.texi: Likewise.
6522         * doc/posix-functions/feholdexcept.texi: Likewise.
6523         * doc/posix-functions/feraiseexcept.texi: Likewise.
6524         * doc/posix-functions/fesetenv.texi: Likewise.
6525         * doc/posix-functions/fesetround.texi: Likewise.
6526         * doc/posix-functions/fetestexcept.texi: Likewise.
6527         * doc/posix-functions/feupdateenv.texi: Likewise.
6528         * doc/posix-functions/fmax.texi: Likewise.
6529         * doc/posix-functions/fmin.texi: Likewise.
6530         * doc/posix-functions/log2.texi: Likewise.
6531         * doc/posix-functions/modff.texi: Likewise.
6532         * doc/posix-functions/nan.texi: Likewise.
6533         * doc/posix-functions/nanf.texi: Likewise.
6534         * doc/posix-functions/nextafterf.texi: Likewise.
6535         * doc/posix-functions/remquo.texi: Likewise.
6536
6537 2011-10-07  Bruno Haible  <bruno@clisp.org>
6538
6539         modff: Drop assumption about library that defines modff.
6540         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6541         AC_CHECK_FUNCS.
6542         * modules/modff (Files): Add m4/mathfunc.m4.
6543
6544 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6545
6546         raise tests: Avoid a GCC warning.
6547         * tests/test-raise.c (handler): Use _Noreturn.
6548
6549 2011-10-07  Bruno Haible  <bruno@clisp.org>
6550
6551         Tests for module 'ldexpf'.
6552         * modules/ldexpf-tests: New file.
6553         * tests/test-ldexpf.c: New file.
6554
6555         New module 'ldexpf'.
6556         * lib/math.in.h (ldexpf): New declaration.
6557         * lib/ldexpf.c: New file.
6558         * m4/ldexpf.m4: New file.
6559         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6560         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6561         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6562         * modules/ldexpf: New file.
6563         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6564         * doc/posix-functions/ldexpf.texi: Mention the new module.
6565
6566 2011-10-06  Bruno Haible  <bruno@clisp.org>
6567
6568         frexpf: Work around problems on IRIX and mingw.
6569         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6571         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6572         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6573         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6574         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6575         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6576
6577 2011-10-06  Bruno Haible  <bruno@clisp.org>
6578
6579         fabsf: Drop assumption about library that defines fabsf.
6580         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6581         AC_CHECK_FUNCS.
6582         * modules/fabsf (Files): Add m4/mathfunc.m4.
6583
6584 2011-10-06  Bruno Haible  <bruno@clisp.org>
6585
6586         frexpf: Drop assumption about library that defines frexpf.
6587         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6588         'int *', 'float *', 'long double *', 'float', 'long double'.
6589         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6590         AC_CHECK_FUNCS.
6591         * modules/frexpf (Files): Add m4/mathfunc.m4.
6592
6593         Tests for module 'frexpf'.
6594         * modules/frexpf-tests: New file.
6595         * tests/test-frexpf.c: New file.
6596
6597         New module 'frexpf'.
6598         * lib/math.in.h (frexpf): New declaration.
6599         * lib/frexpf.c: New file.
6600         * m4/frexpf.m4: New file.
6601         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
6602         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
6603         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
6604         * modules/frexpf: New file.
6605         * tests/test-math-c++.cc: Check the declaration of frexpf.
6606         * doc/posix-functions/frexpf.texi: Mention the new module.
6607
6608 2011-10-06  Bruno Haible  <bruno@clisp.org>
6609
6610         math: Sort function declarations of math.in.h.
6611         * lib/math.in.h (frexp, logb): Move declarations.
6612
6613 2011-10-05  Bruno Haible  <bruno@clisp.org>
6614
6615         Tests for module 'modff'.
6616         * modules/modff-tests: New file.
6617         * tests/test-modff.c: New file.
6618
6619         New module 'modff'.
6620         * lib/math.in.h (modff): New declaration.
6621         * lib/modff.c: New file.
6622         * m4/modff.m4: New file.
6623         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
6624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
6625         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
6626         * modules/modff: New file.
6627         * tests/test-math-c++.cc: Check the declaration of modff.
6628         * doc/posix-functions/modff.texi: Mention the new module.
6629
6630         modf tests: Make test sharper.
6631         * tests/test-modf.c (main): Strengthen upper bound.
6632
6633         modf: Use a .m4 file.
6634         * m4/modf.m4: New file.
6635         * modules/modf (Files): Add it.
6636         (configure.ac): Just invoke gl_FUNC_MODF.
6637
6638 2011-10-05  Bruno Haible  <bruno@clisp.org>
6639
6640         Tests for module 'fmodf'.
6641         * modules/fmodf-tests: New file.
6642         * tests/test-fmodf.c: New file.
6643
6644         New module 'fmodf'.
6645         * lib/math.in.h (fmodf): New declaration.
6646         * lib/fmodf.c: New file.
6647         * m4/fmodf.m4: New file.
6648         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
6649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
6650         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
6651         * modules/fmodf: New file.
6652         * tests/test-math-c++.cc: Check the declaration of fmodf.
6653         * doc/posix-functions/fmodf.texi: Mention the new module.
6654
6655         fmod: Use a .m4 file.
6656         * m4/fmod.m4: New file.
6657         * modules/fmod (Files): Add it.
6658         (configure.ac): Just invoke gl_FUNC_FMOD.
6659
6660 2011-10-05  Bruno Haible  <bruno@clisp.org>
6661
6662         Tests for module 'fabsf'.
6663         * modules/fabsf-tests: New file.
6664         * tests/test-fabsf.c: New file.
6665
6666         New module 'fabsf'.
6667         * lib/math.in.h (fabsf): New declaration.
6668         * lib/fabsf.c: New file.
6669         * m4/fabsf.m4: New file.
6670         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
6671         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
6672         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
6673         * modules/fabsf: New file.
6674         * tests/test-math-c++.cc: Check the declaration of fabsf.
6675         * doc/posix-functions/fabsf.texi: Mention the new module.
6676
6677         fabs: Use a .m4 file.
6678         * m4/fabs.m4: New file.
6679         * modules/fabs (Files): Add it.
6680         (configure.ac): Just invoke gl_FUNC_FABS.
6681
6682 2011-10-05  Jim Meyering  <meyering@redhat.com>
6683
6684         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
6685         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
6686         ls -lL regression introduced in coreutils-8.12, it does so at the
6687         cost of an additional stat call in the common case.  Besides, now
6688         that the kernel change that prompted commit 95f7c57f has been reverted
6689         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
6690         we have no use for commit 95f7c57f, "file-has-acl: use
6691         acl_extended_file_nofollow if available".
6692
6693 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
6694
6695         file-has-acl: revert unintended change in behavior of ls -L
6696         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
6697         derived from...
6698         (file_has_acl): ...code here.  Call it.
6699         This problem was introduced with 2011-07-22 commit 95f7c57f,
6700         "file-has-acl: use acl_extended_file_nofollow if available".
6701         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
6702
6703 2011-10-03  Bruno Haible  <bruno@clisp.org>
6704
6705         poll: Avoid link errors on MSVC.
6706         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
6707         * modules/poll (Depends-on): Add sockets.
6708         (Link): New section.
6709         * NEWS: Mention the change.
6710         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
6711         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
6712         $(LIB_POLL) instead of $(LIBSOCKET).
6713
6714 2011-10-03  Bruno Haible  <bruno@clisp.org>
6715
6716         sys_select tests: Fix link error on MSVC 9.
6717         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
6718         with $(LIB_SELECT) instead of $(LIBSOCKET).
6719
6720 2011-10-03  Bruno Haible  <bruno@clisp.org>
6721
6722         sys_select: Fix compilation error on mingw.
6723         * lib/sys_select.in.h: On native Windows, include <io.h>.
6724
6725 2011-10-03  Bruno Haible  <bruno@clisp.org>
6726
6727         wmemset: Support for MSVC.
6728         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
6729         whether wmemset() exists.
6730
6731 2011-10-03  Bruno Haible  <bruno@clisp.org>
6732
6733         wmemmove: Support for MSVC.
6734         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
6735         whether wmemmove() exists.
6736
6737 2011-10-03  Bruno Haible  <bruno@clisp.org>
6738
6739         wmemcpy: Support for MSVC.
6740         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6741         whether wmemcpy() exists.
6742
6743 2011-10-03  Bruno Haible  <bruno@clisp.org>
6744
6745         wmemcmp: Support for MSVC.
6746         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
6747         whether wmemcmp() exists.
6748
6749 2011-10-03  Bruno Haible  <bruno@clisp.org>
6750
6751         wmemchr: Support for MSVC.
6752         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
6753         whether wmemchr() exists.
6754
6755 2011-10-03  Bruno Haible  <bruno@clisp.org>
6756
6757         glthread/*, strsignal: Support for MSVC.
6758         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
6759         including <winsock.h> on MSVC 9.
6760         * lib/glthread/lock.h: Likewise.
6761         * lib/glthread/thread.h: Likewise.
6762         * lib/glthread/tls.h: Likewise.
6763         * lib/glthread/yield.h: Likewise.
6764         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
6765         if HAVE_UNISTD_H is false.
6766         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
6767
6768 2011-10-03  Bruno Haible  <bruno@clisp.org>
6769
6770         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
6771         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
6772         Set to 100000.
6773
6774 2011-10-03  Bruno Haible  <bruno@clisp.org>
6775
6776         acl: Fix specification.
6777         * lib/file-has-acl.c (file_has_acl): Fix specification.
6778
6779 2011-10-03  Bruno Haible  <bruno@clisp.org>
6780
6781         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
6782         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
6783         (compute_curr_prefix, shared_library_fullname,
6784         find_shared_library_fullname, get_shared_library_fullname, relocate):
6785         Use it together with PIC && INSTALLDIR.
6786         Reported by <jojelino@gmail.com>
6787         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
6788
6789 2011-10-01  Jim Meyering  <meyering@redhat.com>
6790
6791         maint.mk: adjust a release-related rule not to require use of gzip
6792         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
6793         Instead, check each file in $(DIST_ARCHIVES).  This is better for
6794         projects that build only .tar.xz files.  Also fix an erroneous test.
6795
6796         test-linkat: don't leave behind a temporary file
6797         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
6798         Otherwise, coreutils' "make distcheck" would fail with this:
6799           Only in /c/cu/tests/torture/coreutils/test/\
6800             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
6801           make[2]: *** [my-distcheck] Error 1
6802
6803         float, math: add omitted file
6804         * lib/itold.c: Add file, required for yesterday's float change.
6805
6806 2011-10-01  Bruno Haible  <bruno@clisp.org>
6807
6808         isinf: Fix for OpenBSD/x86.
6809         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
6810         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
6811         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
6812
6813 2011-10-01  Bruno Haible  <bruno@clisp.org>
6814
6815         isfinite: Fix syntax error in configure test.
6816         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
6817
6818         isfinite: Fix typo.
6819         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
6820         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
6821
6822 2011-10-01  Bruno Haible  <bruno@clisp.org>
6823
6824         nonblocking tests: Fix test failure on Linux/IA-64.
6825         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
6826         Set to 270000.
6827
6828 2011-10-01  Bruno Haible  <bruno@clisp.org>
6829
6830         mkfifoat tests: Fix a test failure on mingw.
6831         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
6832         with error ENOSYS.
6833
6834 2011-09-30  Bruno Haible  <bruno@clisp.org>
6835
6836         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
6837         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
6838         'long double'. Set REPLACE_ITOLD.
6839         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
6840         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
6841         * lib/itold.c: New file.
6842         * modules/float (Files): Add lib/itold.c.
6843         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
6844         (Makefile.am): Substitute REPLACE_ITOLD.
6845         * modules/math (Depends-on): Add float.
6846         (Makefile.am): Substitute REPLACE_ITOLD.
6847         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
6848         * doc/posix-headers/math.texi: Likewise.
6849         * doc/posix-functions/logl.texi: Likewise.
6850
6851 2011-09-30  Bruno Haible  <bruno@clisp.org>
6852
6853         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
6854         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
6855         Set to 140000.
6856
6857 2011-09-30  Bruno Haible  <bruno@clisp.org>
6858
6859         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
6860         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
6861         invocation, say "right after AC_PROG_CC_STDC", not "right after
6862         AC_PROG_CC".
6863         Reported by Gary V. Vaughan <gary@gnu.org>.
6864
6865 2011-09-30  Bruno Haible  <bruno@clisp.org>
6866
6867         Centralize C99 requirement.
6868         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
6869         * modules/stdarg (configure.ac-early): Invoke it instead of
6870         AC_PROG_CC_STDC.
6871         Reported by Gary V. Vaughan and Paul Eggert.
6872
6873 2011-09-29  Bruno Haible  <bruno@clisp.org>
6874
6875         float: Fix LDBL_MAX value on Linux/PowerPC.
6876         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
6877         on Linux/PowerPC.
6878         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
6879         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
6880         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
6881         platform.
6882         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
6883
6884 2011-09-29  Bruno Haible  <bruno@clisp.org>
6885
6886         doc: Improve doc about gl_EARLY.
6887         * doc/gnulib-tool.texi (Initial import): Mention where to place an
6888         AC_PROG_CC_STDC invocation.
6889         Reported by Gary V. Vaughan <gary@gnu.org>.
6890
6891 2011-09-28  Bruno Haible  <bruno@clisp.org>
6892
6893         fgetc, fputc, fread, fwrite tests: Fix link error.
6894         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
6895         on non-MSVC platforms.
6896         * tests/test-fputc.c (main): Likewise.
6897         * tests/test-fread.c (main): Likewise.
6898         * tests/test-fwrite.c (main): Likewise.
6899         Reported by Jim Meyering.
6900
6901 2011-09-27  Bruno Haible  <bruno@clisp.org>
6902
6903         fputc, fwrite tests: Avoid test failure on MSVC.
6904         * tests/test-fgetc.c: Include msvc-inval.h.
6905         (main): Invoke gl_msvc_inval_ensure_handler.
6906         * tests/test-fputc.c: Include msvc-inval.h.
6907         (main): Invoke gl_msvc_inval_ensure_handler.
6908         * tests/test-fread.c: Include msvc-inval.h.
6909         (main): Invoke gl_msvc_inval_ensure_handler.
6910         * tests/test-fwrite.c: Include msvc-inval.h.
6911         (main): Invoke gl_msvc_inval_ensure_handler.
6912         * modules/fgetc-tests (Depends-on): Add msvc-inval.
6913         * modules/fputc-tests (Depends-on): Likewise.
6914         * modules/fread-tests (Depends-on): Likewise.
6915         * modules/fwrite-tests (Depends-on): Likewise.
6916
6917 2011-09-27  Bruno Haible  <bruno@clisp.org>
6918
6919         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
6920         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
6921         (raise): Remove older, duplicated declaration.
6922         (_gl_raise_SIGPIPE): New declaration.
6923         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
6924         (rpl_raise): Remove function.
6925         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
6926         a gnulib-defined SIGPIPE here.
6927         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
6928         'sigprocmask' has detected missing signal-blocking and the module
6929         'sigpipe' is enabled.
6930         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6931
6932 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
6933
6934         base64-tests: avoid memory leak
6935         * tests/test-base64.c (main): Plug memory leak.
6936
6937         base32: new module
6938         * modules/base32: New module.
6939         * lib/base32.c: New file.
6940         * lib/base32.h: Likewise.
6941         * m4/base32.m4: Likewise.
6942         * modules/base32-tests: New test.
6943         * tests/test-base32.c: Likewise.
6944         * MODULES.html.sh (Misc): Mention it.
6945
6946 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6947
6948         gnulib: use more-standard license notice wording
6949         * gnulib-tool (func_emit_copyright_notice): When emitting a
6950         license notice into a file, use the standard wording as suggested
6951         by the current information for GNU maintainers, except say "file"
6952         rather than "program".  The new wording gives a license version
6953         number, which addresses an issue raised by Glenn Morris in
6954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6955         * m4/onceonly.m4: Use that same wording here, too.
6956
6957         dup2: minor simplification
6958         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6959         as lib/dup2.c no longer uses 'inline'.
6960
6961 2011-09-25  Bruno Haible  <bruno@clisp.org>
6962
6963         strings: Fix compilation error on MSVC.
6964         * lib/strings.in.h: Include <stddef.h> for size_t.
6965
6966 2011-09-25  Bruno Haible  <bruno@clisp.org>
6967
6968         fflush et al.: Document limitation on MSVC.
6969         * doc/posix-functions/fflush.texi: Document possible crash in handling
6970         mode other than DEFAULT_HANDLING.
6971         * doc/posix-functions/fgetc.texi: Likewise.
6972         * doc/posix-functions/fputc.texi: Likewise.
6973         * doc/posix-functions/fread.texi: Likewise.
6974         * doc/posix-functions/fwrite.texi: Likewise.
6975
6976 2011-09-25  Bruno Haible  <bruno@clisp.org>
6977
6978         msvc-inval: Allow three invalid parameter handling modes.
6979         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6980         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6981         macros.
6982         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6983         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6984         SANE_LIBRARY_HANDLING as a no-op.
6985         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6986         <stdlib.h>.
6987         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6988
6989 2011-09-25  Bruno Haible  <bruno@clisp.org>
6990
6991         msvc-inval: Make handler multithread-safe.
6992         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6993         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6994         declarations.
6995         (gl_msvc_inval_current): New declaration.
6996         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6997         Operate on the structure returned by gl_msvc_inval_current().
6998         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6999         Remove varaiables.
7000         (tls_index, tls_initialized): New variables.
7001         (not_per_thread): New variable.
7002         (gl_msvc_inval_current): New function.
7003         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7004         returned by gl_msvc_inval_current().
7005
7006 2011-09-25  Bruno Haible  <bruno@clisp.org>
7007
7008         msvc-inval: Install handler globally.
7009         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7010         !_MSC_VER.
7011         (gl_msvc_invalid_parameter_handler): Remove declaration.
7012         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7013         declarations.
7014         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7015         Install the handler globally, don't uninstall it.
7016         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7017         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7018         currently valid, call RaiseException instead.
7019         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7020         for !_MSC_VER.
7021
7022 2011-09-25  Bruno Haible  <bruno@clisp.org>
7023
7024         strerror_r-posix: Fix for MSVC 9.
7025         * lib/strerror_r.c (local_snprintf): New function.
7026         (snprintf): Define to local_snprintf, not to _snprintf.
7027
7028 2011-09-25  Bruno Haible  <bruno@clisp.org>
7029
7030         ftruncate: Support for MSVC 9.
7031         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7032         (chsize_nothrow): New function.
7033         (chsize): Redefine as a macro.
7034         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7035         * modules/ftruncate (Depends-on): Add msvc-inval.
7036
7037 2011-09-25  Bruno Haible  <bruno@clisp.org>
7038
7039         New module 'fstat'.
7040         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7041         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7042         * lib/fchdir.c (rpl_fstat): Remove function.
7043         * m4/fstat.m4: New file.
7044         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7045         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7046         declared.
7047         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7048         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7049         * modules/fstat: New file.
7050         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7051         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7052         is set.
7053         * doc/posix-functions/fstat.texi: Mention the new module and the
7054         problem on MSVC.
7055         * NEWS: Mention the change.
7056         * modules/acl (Depends-on): Add fstat.
7057         * modules/chdir-safer (Depends-on): Likewise.
7058         * modules/chown (Depends-on): Likewise.
7059         * modules/copy-file (Depends-on): Likewise.
7060         * modules/fchdir (Depends-on): Likewise.
7061         * modules/fdopendir (Depends-on): Likewise.
7062         * modules/fopen (Depends-on): Likewise.
7063         * modules/fts (Depends-on): Likewise.
7064         * modules/getcwd (Depends-on): Likewise.
7065         * modules/isapipe (Depends-on): Likewise.
7066         * modules/linkat (Depends-on): Likewise.
7067         * modules/lseek (Depends-on): Likewise.
7068         * modules/mkdir-p (Depends-on): Likewise.
7069         * modules/open (Depends-on): Likewise.
7070         * modules/openat (Depends-on): Likewise.
7071         * modules/read-file (Depends-on): Likewise.
7072         * modules/renameat (Depends-on): Likewise.
7073         * modules/utimens (Depends-on): Likewise.
7074
7075 2011-09-25  Bruno Haible  <bruno@clisp.org>
7076
7077         linkat: Fix compilation on MSVC 9.
7078         * lib/linkat.c: Don't include <stdint.h>.
7079
7080 2011-09-25  Bruno Haible  <bruno@clisp.org>
7081
7082         fclose: Support for MSVC 9.
7083         * lib/fclose.c: Include msvc-inval.h.
7084         (fclose_nothrow): New function.
7085         (rpl_fclose): Use it.
7086         * modules/fclose (Depends-on): Add msvc-inval.
7087         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7088
7089 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7090
7091         dup2: minor simplifications
7092         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7093         that it's a performance win.
7094         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7095         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7096
7097 2011-09-24  Jim Meyering  <meyering@redhat.com>
7098
7099         test-futimens: avoid a warning from gcc -Wshadow
7100         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7101         to avoid a shadowing warning.
7102
7103 2011-09-24  Bruno Haible  <bruno@clisp.org>
7104
7105         fdopen: Support for MSVC 9.
7106         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7107         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7108         * lib/fdopen.c: Include msvc-inval.h.
7109         (fdopen_nothrow): New function.
7110         (rpl_fdopen): Use it.
7111         * modules/fdopen (Depends-on): Add msvc-inval.
7112         * modules/fclose-tests (Depends-on): Add fdopen.
7113         * modules/fflush-tests (Depends-on): Likewise.
7114         * modules/fgetc-tests (Depends-on): Likewise.
7115         * modules/fputc-tests (Depends-on): Likewise.
7116         * modules/fread-tests (Depends-on): Likewise.
7117         * modules/freopen-tests (Depends-on): Likewise.
7118         * modules/fseeko-tests (Depends-on): Likewise.
7119         * modules/ftello-tests (Depends-on): Likewise.
7120         * modules/fwrite-tests  (Depends-on): Likewise.
7121         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7122
7123 2011-09-24  Bruno Haible  <bruno@clisp.org>
7124
7125         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7126         * modules/fgetc-tests (Depends-on): Add unistd.
7127         * modules/fputc-tests (Depends-on): Likewise.
7128         * modules/fread-tests (Depends-on): Likewise.
7129         * modules/fwrite-tests (Depends-on): Likewise.
7130
7131 2011-09-24  Bruno Haible  <bruno@clisp.org>
7132
7133         dup: Simplify autoconf test.
7134         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7135         on gl_MSVC_INVAL's result.
7136
7137 2011-09-24  Bruno Haible  <bruno@clisp.org>
7138
7139         Tests for function fwrite().
7140         * modules/fwrite-tests: New file.
7141         * tests/test-fwrite.c: New file.
7142         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7143
7144         Tests for function fread().
7145         * modules/fread-tests: New file.
7146         * tests/test-fread.c: New file.
7147         * modules/stdio-tests (Depends-on): Add fread-tests.
7148
7149         Activate fputc tests.
7150         * modules/stdio-tests (Depends-on): Add fputc-tests.
7151
7152         Enhance fgetc, fputc tests.
7153         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7154         * tests/test-fputc.c (main): Likewise.
7155
7156 2011-09-24  Bruno Haible  <bruno@clisp.org>
7157
7158         write: Support for MSVC 9.
7159         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7160         is not 1.
7161         * lib/write.c (write_nothrow): New function.
7162         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7163         not 1. Use write_nothrow.
7164         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7165         invalid parameter handler.
7166         (gl_PREREQ_WRITE): New macro.
7167         * modules/write (Depends-on): Add msvc-inval.
7168         (configure.ac): Invoke gl_PREREQ_WRITE.
7169         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7170
7171 2011-09-24  Bruno Haible  <bruno@clisp.org>
7172
7173         read: Fix last commit.
7174         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7175
7176 2011-09-24  Bruno Haible  <bruno@clisp.org>
7177
7178         dup2: Fix last commit.
7179         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7180         (rpl_dup2): Disable fcntl workaround on native Windows.
7181
7182         sigprocmask: Make code safer.
7183         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7184         section that changes macro definitions for this compilation unit.
7185
7186 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7187
7188         dup2: clarify by coalescing Windows-specific material
7189         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7190         "msvc-nothrow.h"' to the Windows-specific section, so that the
7191         Emacs source need not contain these include files.
7192         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7193         Windows-specific fixes into this function rather than just the
7194         nothrow fix, as this shortens and clarifies the code.  Always
7195         define as a function, as that's a bit cleaner than having it be
7196         sometimes a function and sometimes a macro.
7197         (rpl_dup2): Move the Windows-specific stuff out of here and into
7198         ms_windows_dup2.  Don't protect the Haiku-related fix with
7199         "#if !defined __linux__", as the same code also works around
7200         a Linux kernel bug, and it doesn't add any system calls on any
7201         platform.  Add comment about FreeBSD 6.1.
7202
7203         sigprocmask: move #include directive
7204         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7205         Windows-specific section, so that the Emacs source need not
7206         contain msvc-inval.h.
7207
7208 2011-09-23  Bruno Haible  <bruno@clisp.org>
7209
7210         read: Support for MSVC 9.
7211         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7212         is not 1.
7213         * lib/read.c (read_nothrow): New function.
7214         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7215         read_nothrow.
7216         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7217         invalid parameter handler.
7218         (gl_PREREQ_READ): New macro.
7219         * modules/read (Depends-on): Add msvc-inval.
7220         (configure.ac): Invoke gl_PREREQ_READ.
7221         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7222
7223 2011-09-23  Bruno Haible  <bruno@clisp.org>
7224
7225         close: Support for MSVC 9.
7226         * lib/close.c: Include <errno.h>, msvc-inval.h.
7227         (close_nothrow): New function.
7228         (rpl_close): Use it.
7229         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7230         invalid parameter handler.
7231         * modules/close (Depends-on): Add msvc-inval.
7232         * modules/dup2-tests (Depends-on): Add close.
7233         * modules/dup3-tests (Depends-on): Likewise.
7234         * modules/fcntl-tests (Depends-on): Likewise.
7235         * modules/spawn-pipe-tests (Depends-on): Likewise.
7236         * modules/unistd-safer-tests (Depends-on): Likewise.
7237         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7238
7239 2011-09-23  Bruno Haible  <bruno@clisp.org>
7240
7241         New module 'dup'.
7242         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7243         Allow replacement.
7244         * lib/dup.c: New file.
7245         * lib/fchdir.c (rpl_dup): Remove function.
7246         * m4/dup.m4: New file.
7247         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7248         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7249         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7250         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7251         * modules/dup: New file.
7252         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7253         'dup' module is in use.
7254         * modules/fdopendir (Depends-on): Add dup.
7255         * modules/fdutimensat-tests (Depends-on): Likewise.
7256         * modules/fts (Depends-on): Likewise.
7257         * modules/futimens-tests (Depends-on): Likewise.
7258         * modules/posix_spawnp-tests (Depends-on): Likewise.
7259         * modules/unistd-safer-tests (Depends-on): Likewise.
7260         * modules/utimens-tests (Depends-on): Likewise.
7261         * doc/posix-functions/dup.texi: Mention the new module and the problem
7262         on MSVC.
7263
7264 2011-09-23  Bruno Haible  <bruno@clisp.org>
7265
7266         getdtablesize: Support for MSVC 9.
7267         * lib/getdtablesize.c: Include msvc-inval.h.
7268         (_setmaxstdio_nothrow): New function.
7269         (_setmaxstdio): Redefine it.
7270         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7271         * modules/getdtablesize (Depends-on): Add msvc-inval.
7272         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7273
7274 2011-09-23  Bruno Haible  <bruno@clisp.org>
7275
7276         signal-h: Rename from signal.
7277         * modules/signal-h: Renamed from modules/signal.
7278         * modules/pthread_sigmask (Depends-on): Update.
7279         * modules/raise (Depends-on): Likewise.
7280         * modules/sigaction (Depends-on): Likewise.
7281         * modules/sigpipe (Depends-on): Likewise.
7282         * modules/sigprocmask (Depends-on): Likewise.
7283         * modules/sys_select (Depends-on): Likewise.
7284         * modules/signal-h-tests: Renamed from modules/signal-tests.
7285         (Files, Depends-on, Makefile.am): Update.
7286         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7287         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7288         (Files, Makefile.am): Update.
7289         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7290         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7291         * modules/signal: New placeholder file.
7292         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7293         * doc/posix-headers/signal.texi: Update.
7294         * NEWS: Mention the change.
7295
7296 2011-09-23  Bruno Haible  <bruno@clisp.org>
7297
7298         sigprocmask: Avoid crashes through signal() on MSVC 9.
7299         * lib/sigprocmask.c: Include msvc-inval.h.
7300         (signal_nothrow): New function.
7301         (signal): Redefine it.
7302         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7303         * modules/sigprocmask (Depends-on): Add msvc-inval.
7304         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7305
7306 2011-09-23  Bruno Haible  <bruno@clisp.org>
7307
7308         Tests for module 'raise'.
7309         * modules/raise-tests: New file.
7310         * tests/test-raise.c: New file.
7311
7312         raise: Support for MSVC.
7313         * lib/signal.in.h (raise): New declaration.
7314         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7315         for native Windows platforms.
7316         * m4/raise.m4: New file.
7317         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7318         HAVE_RAISE, REPLACE_RAISE.
7319         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7320         REPLACE_RAISE.
7321         * modules/raise (Status, Notice): Remove fields.
7322         (Files): Add m4/raise.m4.
7323         (Depends-on): Add signal, msvc-inval.
7324         (configure.ac): Use the common idioms.
7325         (Maintainer): Add me.
7326         * tests/test-signal-c++.cc: Check the signature of raise.
7327         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7328
7329 2011-09-23  Bruno Haible  <bruno@clisp.org>
7330
7331         pipe2: Fix compilation on pre-C99 compilers.
7332         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7333
7334 2011-09-23  Bruno Haible  <bruno@clisp.org>
7335
7336         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7337         * lib/msvc-nothrow.h: New file.
7338         * lib/msvc-nothrow.c: New file.
7339         * m4/msvc-nothrow.m4: New file.
7340         * modules/msvc-nothrow: New file.
7341         * lib/dup2.c: Include msvc-nothrow.h.
7342         (rpl_dup2): No need to protect _get_osfhandle call here.
7343         * lib/accept4.c: Include msvc-nothrow.h.
7344         * lib/error.c: Likewise.
7345         * lib/fcntl.c: Likewise.
7346         * lib/lseek.c: Likewise.
7347         * lib/nonblocking.c: Likewise.
7348         * lib/poll.c: Likewise.
7349         * lib/read.c: Likewise.
7350         * lib/select.c: Likewise.
7351         * lib/sockets.h: Likewise.
7352         * lib/sockets.c: Likewise.
7353         * lib/stdio-read.c: Likewise.
7354         * lib/stdio-write.c: Likewise.
7355         * lib/write.c: Likewise.
7356         * lib/w32sock.h: Likewise.
7357         * lib/w32spawn.h: Likewise.
7358         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7359         * lib/fsync.c: Likewise.
7360         * lib/isapipe.c: Likewise.
7361         * modules/dup2 (Depends-on): Add msvc-nothrow.
7362         * modules/accept4 (Depends-on): Likewise.
7363         * modules/error (Depends-on): Likewise.
7364         * modules/fcntl (Depends-on): Likewise.
7365         * modules/lseek (Depends-on): Likewise.
7366         * modules/nonblocking (Depends-on): Likewise.
7367         * modules/poll (Depends-on): Likewise.
7368         * modules/read (Depends-on): Likewise.
7369         * modules/select (Depends-on): Likewise.
7370         * modules/sockets (Depends-on): Likewise.
7371         * modules/sigpipe (Depends-on): Likewise.
7372         * modules/write (Depends-on): Likewise.
7373         * modules/accept (Depends-on): Likewise.
7374         * modules/bind (Depends-on): Likewise.
7375         * modules/connect (Depends-on): Likewise.
7376         * modules/gethostname (Depends-on): Likewise.
7377         * modules/getpeername (Depends-on): Likewise.
7378         * modules/getsockname (Depends-on): Likewise.
7379         * modules/getsockopt (Depends-on): Likewise.
7380         * modules/ioctl (Depends-on): Likewise.
7381         * modules/listen (Depends-on): Likewise.
7382         * modules/recv (Depends-on): Likewise.
7383         * modules/recvfrom (Depends-on): Likewise.
7384         * modules/send (Depends-on): Likewise.
7385         * modules/sendto (Depends-on): Likewise.
7386         * modules/setsockopt (Depends-on): Likewise.
7387         * modules/shutdown (Depends-on): Likewise.
7388         * modules/socket (Depends-on): Likewise.
7389         * modules/execute (Depends-on): Likewise.
7390         * modules/spawn-pipe (Depends-on): Likewise.
7391         * modules/flock (Depends-on): Likewise.
7392         * modules/fsync (Depends-on): Likewise.
7393         * modules/isapipe (Depends-on): Likewise.
7394         * tests/test-cloexec.c: Include msvc-nothrow.h.
7395         * tests/test-dup-safer.c: Likewise.
7396         * tests/test-dup2.c: Likewise.
7397         * tests/test-dup3.c: Likewise.
7398         * tests/test-fcntl.c: Likewise.
7399         * tests/test-pipe.c: Likewise.
7400         * tests/test-pipe2.c: Likewise.
7401         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7402         * modules/unistd-safer-tests (Depends-on): Likewise.
7403         * modules/dup2-tests (Depends-on): Likewise.
7404         * modules/dup3-tests (Depends-on): Likewise.
7405         * modules/fcntl-tests (Depends-on): Likewise.
7406         * modules/pipe-posix-tests (Depends-on): Likewise.
7407         * modules/pipe2-tests (Depends-on): Likewise.
7408
7409 2011-09-23  Bruno Haible  <bruno@clisp.org>
7410
7411         dup2: Make code more maintainable.
7412         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7413         (rpl_dup2): Use it.
7414         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7415         * modules/dup2 (configure.ac): Invoke it.
7416         Reported by Paul Eggert.
7417
7418 2011-09-23  Bruno Haible  <bruno@clisp.org>
7419
7420         msvc-inval: Fix compilation error.
7421         * lib/msvc-inval.h: Include <excpt.h>.
7422
7423 2011-09-23  Bruno Haible  <bruno@clisp.org>
7424
7425         mkdir: Tweak for MSVC 9.
7426         * lib/sys_stat.in.h: Update comments.
7427         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7428
7429         Tests for module 'chdir'.
7430         * modules/chdir-tests: New file.
7431         * tests/test-chdir.c: New file.
7432
7433         New module 'chdir'.
7434         * modules/chdir: New file.
7435         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7436         (chdir): New declaration.
7437         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7438         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7439         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7440         * tests/test-unistd-c++.cc: Check signature of chdir.
7441         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7442         * modules/chdir-long (Depends-on): Add chdir.
7443         * modules/fchdir (Depends-on): Likewise.
7444         * modules/rename (Depends-on): Likewise.
7445         * modules/savewd (Depends-on): Likewise.
7446
7447         rmdir: Support for mingw, MSVC 9.
7448         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7449         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7450
7451         getcwd: Tweak for MSVC 9.
7452         * lib/unistd.in.h: Update comments.
7453         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7454
7455 2011-09-22  Bruno Haible  <bruno@clisp.org>
7456
7457         strerror_r-posix: Avoid a link error on MSVC.
7458         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7459         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7460
7461 2011-09-22  Bruno Haible  <bruno@clisp.org>
7462
7463         select: Avoid link errors on MSVC.
7464         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7465         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7466         * modules/pselect (Link): Likewise.
7467         * NEWS: Mention the change.
7468         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7469         test-select-stdin against $(LIB_SELECT).
7470         * modules/pselect-tests (Makefile.am): Link test-pselect against
7471         $(LIB_SELECT).
7472
7473 2011-09-22  Bruno Haible  <bruno@clisp.org>
7474
7475         select: Avoid compilation error on MSVC.
7476         * lib/select.c: Don't include <stdbool.h>.
7477
7478 2011-09-21  Bruno Haible  <bruno@clisp.org>
7479
7480         Consolidate all uses of PATH_MAX in *.m4 files.
7481         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7482         macros.
7483         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7484         and gl_PATHMAX_SNIPPET.
7485         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7486         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7487         * modules/chdir-long (Files): Add m4/pathmax.m4.
7488         * modules/getcwd (Files): Likewise.
7489
7490 2011-09-21  Bruno Haible  <bruno@clisp.org>
7491
7492         ftruncate: Un-deprecate, concentrate on Win32 support.
7493         * modules/ftruncate (Status, Notice): Remove sections.
7494         (Depends-on): Add largefile.
7495         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7496         non-mingw platforms.
7497         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7498         include <io.h>.
7499         * modules/perror-tests (Depends-on): Add ftruncate.
7500         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7501         'ftruncate' module.
7502
7503 2011-09-21  Bruno Haible  <bruno@clisp.org>
7504
7505         Add dependencies to new dirent related modules.
7506         * modules/opendir (Depends-on): Add closedir.
7507         * modules/getcwd (Depends-on): Add opendir, closedir.
7508         * modules/dirent-safer-tests (Depends-on): Likewise.
7509         * modules/fdopendir-tests (Depends-on): Likewise.
7510         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7511         * modules/renameat-tests (Depends-on): Likewise.
7512
7513 2011-09-21  Bruno Haible  <bruno@clisp.org>
7514
7515         opendir: Avoid compilation error on mingw.
7516         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7517         * modules/opendir (Depends-on): Add unistd.
7518
7519 2011-09-21  Bruno Haible  <bruno@clisp.org>
7520
7521         ftruncate tests: Avoid a test failure on mingw.
7522         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7523
7524 2011-09-21  Bruno Haible  <bruno@clisp.org>
7525
7526         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7527         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7528         native Windows.
7529
7530 2011-09-21  Bruno Haible  <bruno@clisp.org>
7531
7532         New module 'fdopen'.
7533         * lib/stdio.in.h (fdopen): New declaration.
7534         * lib/fdopen.c: New file.
7535         * m4/fdopen.m4: New file.
7536         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7537         REPLACE_FDOPEN.
7538         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7539         REPLACE_FDOPEN.
7540         * modules/fdopen: New file.
7541         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7542         * tests/test-stdio-c++.cc: Check signature of fdopen.
7543         * doc/posix-functions/fdopen.texi: Mention the new module.
7544
7545 2011-09-21  Bruno Haible  <bruno@clisp.org>
7546
7547         unlockpt tests: Avoid test failure on NetBSD 5.1.
7548         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7549         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7550
7551 2011-09-21  Bruno Haible  <bruno@clisp.org>
7552
7553         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7554         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7555         * tests/test-getlogin_r.c (main): Likewise.
7556
7557 2011-09-20  Bruno Haible  <bruno@clisp.org>
7558
7559         time tests: Don't require pid_t.
7560         * doc/posix-headers/time.texi: Revert last change.
7561         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7562         * tests/test-time.c: Comment out the check for pid_t.
7563
7564 2011-09-20  Bruno Haible  <bruno@clisp.org>
7565
7566         fsync tests: Avoid a test failure on mingw.
7567         * tests/test-fsync.c (main): Allow a failure with EIO.
7568
7569 2011-09-20  Bruno Haible  <bruno@clisp.org>
7570
7571         euidaccess: Update comments.
7572         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7573
7574 2011-09-20  Bruno Haible  <bruno@clisp.org>
7575
7576         Ensure EBADF returns for socket functions on mingw.
7577         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7578         descriptor is invalid.
7579         * lib/bind.c (rpl_bind): Likewise.
7580         * lib/connect.c (rpl_connect): Likewise.
7581         * lib/getpeername.c (rpl_getpeername): Likewise.
7582         * lib/getsockname.c (rpl_getsockname): Likewise.
7583         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7584         * lib/listen.c (rpl_listen): Likewise.
7585         * lib/recv.c (rpl_recv): Likewise.
7586         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7587         * lib/send.c (rpl_send): Likewise.
7588         * lib/sendto.c (rpl_sendto): Likewise.
7589         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7590         * lib/shutdown.c (rpl_shutdown): Likewise.
7591
7592 2011-09-20  Bruno Haible  <bruno@clisp.org>
7593
7594         select tests: EBADF tests.
7595         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7596         test_bad_fd): New functions.
7597         (test_function): Invoke also test_bad_fd.
7598
7599 2011-09-20  Bruno Haible  <bruno@clisp.org>
7600
7601         Tests for module 'posix_spawn_file_actions_addopen.
7602         * modules/posix_spawn_file_actions_addopen-tests: New file.
7603         * tests/test-posix_spawn_file_actions_addopen.c: New file.
7604
7605         Tests for module 'posix_spawn_file_actions_adddup2'.
7606         * modules/posix_spawn_file_actions_adddup2-tests: New file.
7607         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
7608
7609         Tests for module 'posix_spawn_file_actions_addclose'.
7610         * modules/posix_spawn_file_actions_addclose-tests: New file.
7611         * tests/test-posix_spawn_file_actions_addclose.c: New file.
7612
7613 2011-09-20  Bruno Haible  <bruno@clisp.org>
7614
7615         Tests for module 'unlockpt'.
7616         * modules/unlockpt-tests: New file.
7617         * tests/test-unlockpt.c: New file.
7618         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
7619
7620         Tests for module 'grantpt'.
7621         * modules/grantpt-tests: New file.
7622         * tests/test-grantpt.c: New file.
7623         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
7624
7625 2011-09-20  Bruno Haible  <bruno@clisp.org>
7626
7627         freopen tests: EBADF tests.
7628         * tests/test-freopen.c: Include errno.h, unistd.h.
7629         (main): Add tests for EBADF, commented out for the moment.
7630
7631         fclose tests: EBADF tests.
7632         * tests/test-fclose.c (main): Add tests for EBADF.
7633
7634         fflush tests: EBADF tests.
7635         * tests/test-fflush.c: Include errno.h, macros.h.
7636         (main): Add tests for EBADF.
7637
7638         ftello tests: EBADF tests.
7639         * tests/test-ftello4.sh: New file.
7640         * tests/test-ftello4.c: New file.
7641         * modules/ftello-tests (Files): Add them.
7642         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
7643
7644         fseeko tests: EBADF tests.
7645         * tests/test-fseeko4.sh: New file.
7646         * tests/test-fseeko4.c: New file.
7647         * modules/fseeko-tests (Files): Add them.
7648         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
7649
7650         Tests for function fputc().
7651         * modules/fputc-tests: New file.
7652         * tests/test-fputc.c: New file.
7653         * modules/stdio-tests (Depends-on): Add fputc-tests.
7654
7655         Tests for function fgetc().
7656         * modules/fgetc-tests: New file.
7657         * tests/test-fgetc.c: New file.
7658         * modules/stdio-tests (Depends-on): Add fgetc-tests.
7659
7660         Tests for function fdopen().
7661         * modules/fdopen-tests: New file.
7662         * tests/test-fdopen.c: New file.
7663         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7664
7665         Tests for module 'vdprintf'.
7666         * modules/vdprintf-tests: New file.
7667         * tests/test-vdprintf.c: New file.
7668
7669         Tests for module 'dprintf'.
7670         * modules/dprintf-tests: New file.
7671         * tests/test-dprintf.c: New file.
7672
7673 2011-09-20  Bruno Haible  <bruno@clisp.org>
7674
7675         Tests for module 'ioctl'.
7676         * modules/ioctl-tests: New file.
7677         * tests/test-ioctl.c: New file.
7678
7679 2011-09-20  Bruno Haible  <bruno@clisp.org>
7680
7681         fcntl tests: EBADF tests.
7682         * tests/test-fcntl.c (main): Add more tests for EBADF.
7683
7684 2011-09-20  Bruno Haible  <bruno@clisp.org>
7685
7686         utimensat tests: EBADF tests.
7687         * tests/test-utimensat.c (main): Add tests for EBADF.
7688
7689         renameat tests: EBADF tests.
7690         * tests/test-renameat.c (main): Add tests for EBADF.
7691
7692         mkfifoat tests: EBADF tests.
7693         * tests/test-mkfifoat.c (main): Add tests for EBADF.
7694
7695         readlinkat tests: EBADF tests.
7696         * tests/test-readlinkat.c (main): Add tests for EBADF.
7697
7698         symlinkat tests: EBADF tests.
7699         * tests/test-symlinkat.c (main): Add tests for EBADF.
7700
7701         linkat tests: EBADF tests.
7702         * tests/test-linkat.c (main): Add tests for EBADF.
7703
7704         Tests for module 'faccessat'.
7705         * modules/faccessat-tests: New file.
7706         * tests/test-faccessat.c: New file.
7707
7708         fdopendir tests: EBADF tests.
7709         * tests/test-fdopendir.c (main): Add more tests for EBADF.
7710
7711         openat tests: EBADF tests.
7712         * tests/test-fchownat.c (main): Add tests for EBADF.
7713         * tests/test-fstatat.c (main): Likewise.
7714         * tests/test-mkdirat.c (main): Likewise.
7715         * tests/test-openat.c (main): Likewise.
7716         * tests/test-unlinkat.c (main): Likewise.
7717         * tests/test-fchmodat.c: New file.
7718         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
7719         (Makefile.am): Also run 'test-fchmodat'.
7720
7721 2011-09-20  Bruno Haible  <bruno@clisp.org>
7722
7723         utimens, futimens, fdutimensat tests: EBADF tests.
7724         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
7725
7726         Tests for function fstat().
7727         * modules/fstat-tests: New file.
7728         * tests/test-fstat.c: New file.
7729         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
7730
7731 2011-09-20  Bruno Haible  <bruno@clisp.org>
7732
7733         test-ttyname_r tests: EBADF tests.
7734         * tests/test-ttyname_r.c (main): Add tests for EBADF.
7735
7736         Tests for module 'isatty'.
7737         * modules/isatty-tests: New file.
7738         * tests/test-isatty.c: New file.
7739
7740         Tests for module 'write'.
7741         * modules/write-tests: New file.
7742         * tests/test-write.c: New file.
7743
7744         Tests for module 'read'.
7745         * modules/read-tests: New file.
7746         * tests/test-read.c: New file.
7747
7748         pwrite tests: EBADF tests.
7749         * tests/test-pwrite.c (main): Add tests for EBADF.
7750
7751         pread tests: EBADF tests.
7752         * tests/test-pread.c (main): Add tests for EBADF.
7753
7754         lseek tests: EBADF tests.
7755         * tests/test-lseek.c (main): Add more tests for EBADF.
7756
7757         Tests for module 'ftruncate'.
7758         * modules/ftruncate-tests: New file.
7759         * tests/test-ftruncate.sh: New file.
7760         * tests/test-ftruncate.c: New file.
7761
7762         fsync tests: EBADF tests.
7763         * tests/test-fsync.c (main): Add more tests for EBADF.
7764
7765         fdatasync tests: EBADF tests.
7766         * tests/test-fdatasync.c (main): Add more tests for EBADF.
7767
7768         Tests for module 'fchown'.
7769         * modules/fchown-tests: New file.
7770         * tests/test-fchown.c: New file.
7771
7772         Tests for module 'fchmod'.
7773         * modules/fchmod-tests: New file.
7774         * tests/test-fchmod.c: New file.
7775
7776         fchdir tests: EBADF tests.
7777         * tests/test-fchdir.c (main): Add more tests for EBADF.
7778
7779         dup2 tests: EBADF tests.
7780         * tests/test-dup2.c (main): Add more tests for EBADF.
7781
7782         Tests for module 'dup'.
7783         * modules/dup-tests: New file.
7784         * tests/test-dup.c: New file.
7785
7786         Tests for module 'close'.
7787         * modules/close-tests: New file.
7788         * tests/test-close.c: New file.
7789
7790 2011-09-20  Bruno Haible  <bruno@clisp.org>
7791
7792         Tests for module 'shutdown'.
7793         * modules/shutdown-tests: New file.
7794         * tests/test-shutdown.c: New file.
7795
7796         Tests for module 'setsockopt'.
7797         * modules/setsockopt-tests: New file.
7798         * tests/test-setsockopt.c: New file.
7799
7800         Tests for module 'sendto'.
7801         * modules/sendto-tests: New file.
7802         * tests/test-sendto.c: New file.
7803
7804         Tests for module 'send'.
7805         * modules/send-tests: New file.
7806         * tests/test-send.c: New file.
7807
7808         Tests for module 'recvfrom'.
7809         * modules/recvfrom-tests: New file.
7810         * tests/test-recvfrom.c: New file.
7811
7812         Tests for module 'recv'.
7813         * modules/recv-tests: New file.
7814         * tests/test-recv.c: New file.
7815
7816         Tests for module 'listen'.
7817         * modules/listen-tests: New file.
7818         * tests/test-listen.c: New file.
7819
7820         Tests for module 'getsockopt'.
7821         * modules/getsockopt-tests: New file.
7822         * tests/test-getsockopt.c: New file.
7823
7824         Tests for module 'getsockname'.
7825         * modules/getsockname-tests: New file.
7826         * tests/test-getsockname.c: New file.
7827
7828         Tests for module 'getpeername'.
7829         * modules/getpeername-tests: New file.
7830         * tests/test-getpeername.c: New file.
7831
7832         Tests for module 'connect'.
7833         * modules/connect-tests: New file.
7834         * tests/test-connect.c: New file.
7835
7836         Tests for module 'bind'.
7837         * modules/bind-tests: New file.
7838         * tests/test-bind.c: New file.
7839
7840         accept4 tests: Fix for native Windows.
7841         * tests/test-accept4.c: Include sockets.h.
7842         (main): Invoke gl_sockets_startup.
7843         * modules/accept4-tests (Depends-on): Add sockets.
7844
7845         accept tests: Fix for native Windows.
7846         * tests/test-accept.c: Include sockets.h.
7847         (main): Invoke gl_sockets_startup.
7848         * modules/accept-tests (Depends-on): Add sockets.
7849
7850 2011-09-19  Bruno Haible  <bruno@clisp.org>
7851
7852         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
7853         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
7854         do...while(0).
7855         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
7856         Suggested by Paul Eggert.
7857
7858 2011-09-19  Bruno Haible  <bruno@clisp.org>
7859
7860         sched: Ensure pid_t is defined.
7861         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
7862         not define pid_t.
7863         * lib/sched.in.h: Include <sys/types.h>.
7864         * doc/posix-headers/sched.texi: Mention the pid_t problem.
7865         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7866
7867 2011-09-19  Bruno Haible  <bruno@clisp.org>
7868
7869         msvc-inval: Ensure the entire expansion is a single statement.
7870         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
7871         of braces.
7872
7873 2011-09-19  Jim Meyering  <meyering@redhat.com>
7874
7875         tests: use printf, not echo in init.sh's warn_ function
7876         * tests/init.sh (warn_): Use printf, not echo.  The latter would
7877         misbehave when given strings containing a backslash or starting
7878         with e.g., -n.  James Youngman suggested setting IFS.
7879
7880 2011-09-19  Eric Blake  <eblake@redhat.com>
7881
7882         futimens: enhance test
7883         * tests/test-futimens.h (test_futimens): Also check for EBADF on
7884         closed non-negative fd.
7885
7886         date: accept 'hence' as opposite of 'ago'
7887         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
7888         * tests/test-parse-datetime.c (main): Enhance test.
7889         Suggested by Jesse Wilson.
7890
7891 2011-09-19  Jim Meyering  <meyering@redhat.com>
7892
7893         getcwd: don't fail in a deep directory on a system without openat
7894         Before this change, getcwd would fail when called from a directory
7895         of depth PATH_MAX / 3 or greater.  That was due to the fact that
7896         the non-openat implementation used "..", "../..", "../../..", etc.
7897         to access ancestor directories.  With too many, that string would
7898         be longer than PATH_MAX.
7899         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
7900         using gnulib's openat replacement.
7901         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
7902         we're using the replacement function.
7903
7904 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
7905
7906         maint.mk: avoid warnings from perl about missing files
7907         * top/maint.mk (def_sym_regex): Ignore files listed in
7908         $(gl_other_headers_) that do not exist, say because a project
7909         does not use a corresponding module.
7910
7911 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7912
7913         stat: use pathmax.h only if needed
7914         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
7915         This is better for Emacs, which does not have a mingw port and
7916         therefore can avoid the pathmax module.
7917
7918         utimens: remove dependency on dup2
7919         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
7920         to work around the Linux kernel bug.
7921         * modules/utimens (Depends-on): Remove dup2.
7922
7923 2011-09-18  Bruno Haible  <bruno@clisp.org>
7924
7925         inet_ntop, inet_pton: Look for it also in libresolv.
7926         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
7927         libnsl, search for it in libresolv.
7928         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7929         Needed on Solaris 7.
7930
7931 2011-09-18  Bruno Haible  <bruno@clisp.org>
7932
7933         accept, accept4 tests: Avoid link error on Solaris.
7934         * modules/accept-tests (Makefile.am): Link test-accept against
7935         $(LIBSOCKET).
7936         * modules/accept4-tests (Makefile.am): Link test-accept4 against
7937         $(LIBSOCKET).
7938
7939         accept4: Avoid link error on Solaris.
7940         * modules/accept4 (Link): New section.
7941
7942         socket functions: Avoid link errors on Solaris.
7943         * modules/accept (Depends-on): Add socketlib.
7944         (Link): New section.
7945         * modules/bind (Depends-on): Add socketlib.
7946         (Link): New section.
7947         * modules/connect (Depends-on): Add socketlib.
7948         (Link): New section.
7949         * modules/getpeername (Depends-on): Add socketlib.
7950         (Link): New section.
7951         * modules/getsockname (Depends-on): Add socketlib.
7952         (Link): New section.
7953         * modules/getsockopt (Depends-on): Add socketlib.
7954         (Link): New section.
7955         * modules/listen (Depends-on): Add socketlib.
7956         (Link): New section.
7957         * modules/recv (Depends-on): Add socketlib.
7958         (Link): New section.
7959         * modules/recvfrom (Depends-on): Add socketlib.
7960         (Link): New section.
7961         * modules/send (Depends-on): Add socketlib.
7962         (Link): New section.
7963         * modules/sendto (Depends-on): Add socketlib.
7964         (Link): New section.
7965         * modules/setsockopt (Depends-on): Add socketlib.
7966         (Link): New section.
7967         * modules/shutdown (Depends-on): Add socketlib.
7968         (Link): New section.
7969         * modules/socket (Depends-on): Add socketlib.
7970         (Link): New section.
7971
7972 2011-09-18  Bruno Haible  <bruno@clisp.org>
7973
7974         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7975         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7976         than 5 seconds.
7977         * modules/ptsname-tests (configure.ac): Test for alarm.
7978
7979 2011-09-18  Bruno Haible  <bruno@clisp.org>
7980
7981         posix_spawn_file_actions_add*: Fix module dependencies.
7982         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7983         posix_spawn_file_actions_init.
7984         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7985         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7986
7987 2011-09-18  Bruno Haible  <bruno@clisp.org>
7988
7989         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7990         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7991         * tests/test-renameat.c (main): Likewise.
7992
7993 2011-09-18  Bruno Haible  <bruno@clisp.org>
7994
7995         Tests for module 'accept4'.
7996         * modules/accept4-tests: New file.
7997         * tests/test-accept4.c: New file.
7998
7999 2011-09-18  Bruno Haible  <bruno@clisp.org>
8000
8001         Tests for module 'accept'.
8002         * modules/accept-tests: New file.
8003         * tests/test-accept.c: New file.
8004
8005 2011-09-18  Bruno Haible  <bruno@clisp.org>
8006
8007         dup2: Support for MSVC.
8008         * lib/dup2.c: Include msvc-inval.h.
8009         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8010         _get_osfhandle calls.
8011         * modules/dup2 (Depends-on): Add msvc-inval.
8012         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8013
8014         New module 'msvc-inval'.
8015         * lib/msvc-inval.h: New file.
8016         * lib/msvc-inval.c: New file.
8017         * m4/msvc-inval.m4: New file.
8018         * modules/msvc-inval: New file.
8019
8020 2011-09-17  Bruno Haible  <bruno@clisp.org>
8021
8022         Tests for module 'pclose'.
8023         * modules/pclose-tests: New file.
8024
8025         New module 'pclose'.
8026         * lib/stdio.in.h (pclose): New declaration.
8027         * lib/pclose.c: New file.
8028         * m4/pclose.m4: New file.
8029         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8030         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8031         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8032         * modules/pclose: New file.
8033         * modules/popen-tests (Depends-on): Add pclose.
8034         * modules/popen-safer-tests (Depends-on): Likewise.
8035         * doc/posix-functions/pclose.texi: Mention the new module.
8036
8037 2011-09-17  Bruno Haible  <bruno@clisp.org>
8038
8039         popen: Support for MSVC.
8040         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8041         * lib/popen.c (popen): Provide alternate definition for native Windows.
8042         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8043         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8044         * modules/popen (Depends-on, configure.ac): Update condition.
8045         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8046         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8047         fixed.
8048
8049 2011-09-17  Bruno Haible  <bruno@clisp.org>
8050
8051         isnanl, isnand, isnanf: Work around MSVC bug.
8052         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8053
8054 2011-09-17  Bruno Haible  <bruno@clisp.org>
8055
8056         sys_socket tests: Fix recent mistake.
8057         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8058
8059 2011-09-17  Bruno Haible  <bruno@clisp.org>
8060
8061         putenv: Support for MSVC.
8062         * modules/putenv (Depends-on): Add environ.
8063         * lib/putenv.c (environ): Disable declaration.
8064         * lib/unistd.in.h: Update comment.
8065
8066 2011-09-17  Bruno Haible  <bruno@clisp.org>
8067
8068         math: Avoid macro redefinition warnings on MSVC.
8069         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8070         Undefine before redefining.
8071
8072 2011-09-17  Bruno Haible  <bruno@clisp.org>
8073
8074         doc: Mention functions which are declared as macros.
8075         * doc/posix-functions/*[fl].texi: Mention that some functions are
8076         defined as macros with arguments only.
8077
8078 2011-09-17  Bruno Haible  <bruno@clisp.org>
8079
8080         Add dependencies to new dirent related modules.
8081         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8082         * modules/fts (Depends-on): Likewise.
8083         * modules/glob (Depends-on): Likewise.
8084         * modules/savedir (Depends-on): Likewise.
8085         * modules/scandir (Depends-on): Likewise.
8086         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8087         * modules/fdopendir (Depends-on): Add opendir.
8088
8089 2011-09-17  Bruno Haible  <bruno@clisp.org>
8090
8091         inet_pton: Support for MSVC on Windows Vista or newer.
8092         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8093         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8094         HAVE_DECL_INET_PTON is defined.
8095         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8096         On platforms with <winsock2.h>, test whether inet_pton is declared in
8097         <ws2tcpip.h>. If so, arrange to replace it.
8098         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8099         REPLACE_INET_PTON.
8100         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8101         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8102         (Depends-on, configure.ac): Update condition.
8103         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8104
8105 2011-09-17  Bruno Haible  <bruno@clisp.org>
8106
8107         inet_ntop: Support for MSVC on Windows Vista or newer.
8108         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8109         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8110         HAVE_DECL_INET_NTOP is defined.
8111         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8112         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8113         <ws2tcpip.h>. If so, arrange to replace it.
8114         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8115         REPLACE_INET_NTOP.
8116         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8117         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8118         (Depends-on, configure.ac): Update condition.
8119         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8120
8121 2011-09-16  Eric Blake  <eblake@redhat.com>
8122
8123         test-fsync: yet another enhancement
8124         * tests/test-fsync.c (main): Also test behavior on read-only text
8125         file.
8126
8127 2011-09-16  Bruno Haible  <bruno@clisp.org>
8128
8129         Enhance fsync, fdatasync tests.
8130         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8131         * tests/test-fdatasync.c (main): Likewise.
8132
8133 2011-09-16  Bruno Haible  <bruno@clisp.org>
8134
8135         Support for MSVC compiler: Ensure mode_t gets defined.
8136         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8137         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8138         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8139         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8140         * tests/test-fcntl-h.c: Check that mode_t is defined.
8141         * tests/test-sys_stat.c: Likewise.
8142         * tests/test-sys_types.c: Likewise.
8143         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8144         * doc/posix-headers/sys_stat.texi: Likewise.
8145         * doc/posix-headers/sys_types.texi: Likewise.
8146
8147 2011-09-16  Bruno Haible  <bruno@clisp.org>
8148
8149         sys_stat: Support for MSVC.
8150         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8151         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8152         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8153         MSVC.
8154
8155 2011-09-16  Bruno Haible  <bruno@clisp.org>
8156
8157         Support for MSVC compiler: Ensure off_t gets defined.
8158         * lib/unistd.in.h: Include <sys/types.h>.
8159         * tests/test-fcntl-h.c: Check that off_t is defined.
8160         * tests/test-sys_stat.c: Likewise.
8161         * tests/test-sys_types.c: Likewise.
8162
8163 2011-09-16  Eric Blake  <eblake@redhat.com>
8164
8165         fdatasync: port to Solaris
8166         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8167         * modules/fdatasync (Link): Document it.
8168         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8169
8170         fdatasync: port to MacOS X 10.7
8171         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8172         declared.
8173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8174         * modules/unistd (Makefile.am): Substitute it.
8175         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8176         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8177
8178         fdatasync: minor improvements
8179         * modules/fdatasync (Depends-on): Add condition for fsync.
8180         * lib/fdatasync.c (fdatasync): Add comment.
8181         * tests/test-unistd-c++.cc: Test fdatasync.
8182
8183         unistd: update refs to newer POSIX
8184         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8185         Suggested by Bruno Haible.
8186
8187         fdatasync: new module
8188         * modules/fsync (Description): Document difference to fdatasync.
8189         * modules/fdatasync: New module.
8190         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8191         * lib/fdatasync.c (fdatasync): Likewise.
8192         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8193         defaults.
8194         * modules/unistd (Makefile.am): Set witnesses.
8195         * lib/unistd.in.h (fdatasync): Declare.
8196         * MODULES.html.sh: Document it.
8197         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8198         * modules/fdatasync-tests: New test.
8199         * tests/test-fdatasync.c: Likewise.
8200
8201 2011-09-16  Eric Blake  <eblake@redhat.com>
8202
8203         test-fsync: enhance tests
8204         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8205         * tests/test-fsync.c (main): Enhance test.
8206
8207 2011-09-15  Bruno Haible  <bruno@clisp.org>
8208
8209         Support for MSVC compiler: Ensure ssize_t gets defined.
8210         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8211         * doc/posix-headers/stdio.texi: Likewise.
8212         * modules/stdio (Depends-on): Add ssize_t.
8213         * modules/sys_socket (Depends-on): Likewise.
8214         * modules/sys_types (Depends-on): Likewise.
8215         * modules/sys_uio (Depends-on): Likewise.
8216         * modules/unistd (Depends-on): Likewise.
8217         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8218         * tests/test-sys_types.c: Check that ssize_t is defined.
8219
8220 2011-09-14  Bruno Haible  <bruno@clisp.org>
8221
8222         Avoid using #, the m4 comment starter character, near brackets.
8223         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8224         delimiter character in sed expressions.
8225         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8226         Suggested by Eric Blake.
8227
8228         Properly quote AC_CHECK_DECLS' 4th argument.
8229         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8230         argument.
8231         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8232         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8233         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8234         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8235         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8236         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8237         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8238         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8239         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8240         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8241         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8242         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8243         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8244         * m4/isinf.m4 (gl_ISINF): Likewise.
8245         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8246         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8247         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8248         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8249         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8250         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8251         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8252         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8253         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8254         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8255         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8256         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8258         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8259         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8260         Reported by Eric Blake.
8261
8262         Properly quote AC_CHECK_DECL's 4th argument.
8263         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8264         argument.
8265         * m4/argp.m4 (gl_ARGP): Likewise.
8266         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8267         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8268         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8269         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8270         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8271         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8272         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8273         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8274         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8275         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8276         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8277         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8278         Reported by Eric Blake.
8279
8280 2011-09-14  Eric Blake  <eblake@redhat.com>
8281
8282         opendir: avoid compile warning
8283         * lib/opendir.c (includes): Always include errno.h.
8284         Reported by Tatsuro MATSUOKA.
8285
8286 2011-09-14  Jim Meyering  <meyering@redhat.com>
8287
8288         maint.mk: sc_tight_scope: propagate failure from sub-make
8289         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8290         Reported by Martin von Gagern.
8291
8292 2011-09-13  Bruno Haible  <bruno@clisp.org>
8293
8294         tempname: Support for MSVC.
8295         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8296         MSVC.
8297         * modules/tempname (Depends-on): Add fcntl-h.
8298
8299 2011-09-13  Bruno Haible  <bruno@clisp.org>
8300
8301         sys_time: Support for MSVC.
8302         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8303         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8304         include <winsock2.h>.
8305         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8306         function declarations that collide with POSIX.
8307         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8308         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8309
8310 2011-09-13  Bruno Haible  <bruno@clisp.org>
8311
8312         stat: Support for MSVC.
8313         * lib/stat.c: Include pathmax.h.
8314         * modules/stat (Depends-on): Add pathmax.
8315
8316         pathmax: Support for native Windows.
8317         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8318
8319 2011-09-12  Bruno Haible  <bruno@clisp.org>
8320
8321         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8322         * lib/dirent.in.h (struct dirent): New type.
8323         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8324         DT_WHT): New macros.
8325         (DIR): New type.
8326         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8327         (readdir, rewinddir): New declarations.
8328         * lib/dirent-private.h: New file.
8329         * lib/opendir.c: New file.
8330         * lib/readdir.c: New file.
8331         * lib/rewinddir.c: New file.
8332         * lib/closedir.c: New file.
8333         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8334         * m4/opendir.m4: New file.
8335         * m4/readdir.m4: New file.
8336         * m4/rewinddir.m4: New file.
8337         * m4/closedir.m4: New file.
8338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8339         REPLACE_CLOSEDIR here.
8340         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8341         readdir, rewinddir are declared.
8342         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8343         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8344         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8345         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8346         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8347         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8348         * modules/opendir: New file.
8349         * modules/readdir: New file.
8350         * modules/rewinddir: New file.
8351         * modules/closedir: New file.
8352         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8353         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8354         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8355         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8356         * NEWS: Mention the 'fchdir' change.
8357
8358 2011-09-11  Bruno Haible  <bruno@clisp.org>
8359
8360         asm-underscore.m4: Support for MSVC.
8361         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8362         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8363
8364 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8365
8366         Doc about crypt functions.
8367         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8368         needing for _GNU_SOURCE to get crypt.
8369         * doc/posix-functions/encrypt.texi: Likewise.
8370         * doc/posix-functions/setkey.texi: Likewise.
8371
8372 2011-09-11  Bruno Haible  <bruno@clisp.org>
8373
8374         doc: Update regarding MSVC 9.
8375         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8376         tested".
8377         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8378         * doc/posix-headers/*.texi: Likewise.
8379         * doc/pastposix-functions/*.texi: Likewise.
8380         * doc/glibc-functions/*.texi: Likewise.
8381         * doc/glibc-headers/*.texi: Likewise.
8382
8383 2011-09-11  Bruno Haible  <bruno@clisp.org>
8384
8385         unistd et al.: Don't assume <unistd.h> exists.
8386         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8387         does not exist.
8388         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8389         exist. But include <stdlib.h>.
8390         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8391         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8392         symlink() does not exist.
8393         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8394         include <io.h> instead.
8395         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8396         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8397         include <direct.h> instead.
8398         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8400         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8401         <io.h> instead.
8402         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8403         correctly if the system does not have hard links.
8404         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8405         <direct.h> instead.
8406         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8407         it when looking for function declarations.
8408         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8409         <direct.h> and <io.h> instead.
8410         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8411
8412 2011-09-11  Bruno Haible  <bruno@clisp.org>
8413
8414         strcase: Support for MSVC.
8415         * modules/strcase (Status, Notice): Remove obsoletion mark.
8416         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8417         * doc/posix-functions/strncasecmp.texi: Likewise.
8418
8419         strings: Don't assume <strings.h> exists.
8420         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8421         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8422         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8423         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8424
8425 2011-09-11  Bruno Haible  <bruno@clisp.org>
8426
8427         dirent: Don't assume <dirent.h> exists.
8428         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8429         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8430         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8431         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8432
8433 2011-09-11  Bruno Haible  <bruno@clisp.org>
8434
8435         Fix wint_t on MSVC.
8436         * lib/wchar.in.h (wint_t): On MSVC, override it.
8437         * lib/wctype.in.h (wint_t): Likewise.
8438         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8439         MSVC.
8440         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8441         * doc/posix-headers/wctype.texi: Likewise.
8442
8443 2011-09-11  Bruno Haible  <bruno@clisp.org>
8444
8445         sys_types: Fix typo.
8446         * lib/sys_types.in.h: Fix typo in comment.
8447         Reported by Paul Eggert.
8448
8449         Support for MSVC compiler: Ensure size_t gets defined.
8450         * modules/strings (Depends-on): Add 'sys_types'.
8451         * modules/sys_uio (Depends-on): Likewise.
8452         * lib/sys_uio.in.h: Update comment.
8453
8454         C++ tests for module 'sys_types'.
8455         * modules/sys_types-c++-tests: New file.
8456         * tests/test-sys_types-c++.cc: New file.
8457
8458         Tests for module 'sys_types'.
8459         * modules/sys_types-tests: New file.
8460         * tests/test-sys_types.c: New file.
8461
8462         New module 'sys_types'.
8463         * lib/sys_types.in.h: New file.
8464         * m4/sys_types_h.m4: New file.
8465         * modules/sys_types: New file.
8466         * doc/posix-headers/sys_types.texi: Mention the new module and the
8467         size_t problem on MSVC 9.
8468
8469 2011-09-11  Bruno Haible  <bruno@clisp.org>
8470
8471         Support for MSVC compiler: Avoid division by a literal 0.
8472         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8473         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8474         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8475         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8476         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8477         * tests/infinity.h: New file.
8478         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8479         on MSVC.
8480         * tests/test-ceilf1.c: Include infinity.h.
8481         (main): Use Infinityf.
8482         * tests/test-ceil1.c: Include infinity.h.
8483         (main): Use Infinityd.
8484         * tests/test-ceill.c: Include infinity.h.
8485         (main): Use Infinityl.
8486         * tests/test-dprintf-posix.c: Include infinity.h.
8487         (test_function): Use Infinityd.
8488         * tests/test-floorf1.c: Include infinity.h.
8489         (main): Use Infinityf.
8490         * tests/test-floor1.c: Include infinity.h.
8491         (main): Use Infinityd.
8492         * tests/test-floorl.c: Include infinity.h.
8493         (main): Use Infinityl.
8494         * tests/test-fprintf-posix.c: Include infinity.h.
8495         (test_function): Use Infinityd.
8496         * tests/test-frexp.c: Include infinity.h.
8497         (main): Use Infinityd.
8498         * tests/test-frexpl.c: Include infinity.h.
8499         (main): Use Infinityl.
8500         * tests/test-isfinite.c: Include infinity.h.
8501         (test_isfinitef): Use Infinityf.
8502         (test_isfinited): Use Infinityd.
8503         (test_isfinitel): Use Infinityl.
8504         * tests/test-isinf.c: Include infinity.h.
8505         (test_isinff): Use Infinityf.
8506         (test_isinfd): Use Infinityd.
8507         (test_isinfl): Use Infinityl.
8508         * tests/test-isnan.c: Include infinity.h.
8509         (test_float): Use Infinityf.
8510         (test_double): Use Infinityd.
8511         (test_long_double): Use Infinityl.
8512         * tests/test-isnanf.h: Include infinity.h.
8513         (main): Use Infinityf.
8514         * tests/test-isnand.h: Include infinity.h.
8515         (main): Use Infinityd.
8516         * tests/test-isnanl.h: Include infinity.h.
8517         (main): Use Infinityl.
8518         * tests/test-ldexpl.c: Include infinity.h.
8519         (main): Use Infinityl.
8520         * tests/test-printf-posix.h: Include infinity.h.
8521         (test_function): Use Infinityd.
8522         * tests/test-roundf1.c: Include infinity.h.
8523         (main): Use Infinityf.
8524         * tests/test-round1.c: Include infinity.h.
8525         (main): Use Infinityd.
8526         * tests/test-roundl.c: Include infinity.h.
8527         (main): Use Infinityl.
8528         * tests/test-signbit.c: Include infinity.h.
8529         (test_signbitf): Use Infinityf.
8530         (test_signbitd): Use Infinityd.
8531         (test_signbitl): Use Infinityl.
8532         * tests/test-snprintf-posix.h: Include infinity.h.
8533         (test_function): Use Infinityd, Infinityl.
8534         * tests/test-sprintf-posix.h: Include infinity.h.
8535         (test_function): Use Infinityd, Infinityl.
8536         * tests/test-truncf1.c: Include infinity.h.
8537         (main): Use Infinityf.
8538         * tests/test-trunc1.c: Include infinity.h.
8539         (main): Use Infinityd.
8540         * tests/test-truncl.c: Include infinity.h.
8541         (main): Use Infinityl.
8542         * tests/test-vasnprintf-posix.c: Include infinity.h.
8543         (test_function): Use Infinityd, Infinityl.
8544         * tests/test-vasprintf-posix.c: Include infinity.h.
8545         (test_function): Use Infinityd, Infinityl.
8546         * modules/ceilf-tests (Files): Add tests/infinity.h.
8547         * modules/ceil-tests (Files): Likewise.
8548         * modules/ceill-tests (Files): Likewise.
8549         * modules/dprintf-posix-tests (Files): Likewise.
8550         * modules/floorf-tests (Files): Likewise.
8551         * modules/floor-tests (Files): Likewise.
8552         * modules/floorl-tests (Files): Likewise.
8553         * modules/fprintf-posix-tests (Files): Likewise.
8554         * modules/frexp-tests (Files): Likewise.
8555         * modules/frexp-nolibm-tests (Files): Likewise.
8556         * modules/frexpl-tests (Files): Likewise.
8557         * modules/frexpl-nolibm-tests (Files): Likewise.
8558         * modules/isfinite-tests (Files): Likewise.
8559         * modules/isinf-tests (Files): Likewise.
8560         * modules/isnan-tests (Files): Likewise.
8561         * modules/isnanf-tests (Files): Likewise.
8562         * modules/isnanf-nolibm-tests (Files): Likewise.
8563         * modules/isnand-tests (Files): Likewise.
8564         * modules/isnand-nolibm-tests (Files): Likewise.
8565         * modules/isnanl-tests (Files): Likewise.
8566         * modules/isnanl-nolibm-tests (Files): Likewise.
8567         * modules/ldexpl-tests (Files): Likewise.
8568         * modules/printf-posix-tests (Files): Likewise.
8569         * modules/roundf-tests (Files): Likewise.
8570         * modules/round-tests (Files): Likewise.
8571         * modules/roundl-tests (Files): Likewise.
8572         * modules/signbit-tests (Files): Likewise.
8573         * modules/snprintf-posix-tests (Files): Likewise.
8574         * modules/sprintf-posix-tests (Files): Likewise.
8575         * modules/truncf-tests (Files): Likewise.
8576         * modules/trunc-tests (Files): Likewise.
8577         * modules/truncl-tests (Files): Likewise.
8578         * modules/vasnprintf-posix-tests (Files): Likewise.
8579         * modules/vasprintf-posix-tests (Files): Likewise.
8580         * modules/vdprintf-posix-tests (Files): Likewise.
8581         * modules/vfprintf-posix-tests (Files): Likewise.
8582         * modules/vprintf-posix-tests (Files): Likewise.
8583         * modules/vsnprintf-posix-tests (Files): Likewise.
8584         * modules/vsprintf-posix-tests (Files): Likewise.
8585         * modules/xprintf-posix-tests (Files): Likewise.
8586
8587 2011-09-11  Bruno Haible  <bruno@clisp.org>
8588
8589         Ensure pid_t gets defined.
8590         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8591         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8592         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8593         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8594         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8595         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8596         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8597         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8598         * tests/test-fcntl-h.c: Check that pid_t is defined.
8599         * tests/test-sched.c: Likewise.
8600         * tests/test-termios.c: Likewise.
8601         * tests/test-time.c: Likewise.
8602         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
8603         * doc/posix-headers/signal.texi: Likewise.
8604         * doc/posix-headers/sys_types.texi: Likewise.
8605         * doc/posix-headers/time.texi: Likewise.
8606
8607 2011-09-11  Bruno Haible  <bruno@clisp.org>
8608
8609         acl: Fix compilation on Solaris 10 (older version).
8610         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
8611         of ACE_EVERYONE.
8612         * lib/set-mode-acl.c (qset_acl): Likewise.
8613         Reported by Christian Jullien <eligis@orange.fr>.
8614
8615 2011-09-10  Bruno Haible  <bruno@clisp.org>
8616
8617         iconv, unsetenv: Add support for MSVC compiler.
8618         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
8619         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
8620
8621 2011-09-10  Bruno Haible  <bruno@clisp.org>
8622
8623         *printf: Add support for MSVC compiler.
8624         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
8625         handles the exception caused by the %n directive. When cross-compiling,
8626         guess no on native Windows.
8627         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8628         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
8629         emulate it through vsnprintf.
8630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
8631         * doc/posix-functions/dprintf.texi: Update documentation regarding
8632         MSVC 9.
8633         * doc/posix-functions/fprintf.texi: Likewise.
8634         * doc/posix-functions/printf.texi: Likewise.
8635         * doc/posix-functions/snprintf.texi: Likewise.
8636         * doc/posix-functions/sprintf.texi: Likewise.
8637         * doc/posix-functions/swprintf.texi: Likewise.
8638         * doc/posix-functions/vdprintf.texi: Likewise.
8639         * doc/posix-functions/vfprintf.texi: Likewise.
8640         * doc/posix-functions/vprintf.texi: Likewise.
8641         * doc/posix-functions/vsnprintf.texi: Likewise.
8642         * doc/posix-functions/vsprintf.texi: Likewise.
8643         * doc/glibc-functions/asprintf.texi: Likewise.
8644         * doc/glibc-functions/obstack_printf.texi: Likewise.
8645         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8646         * doc/glibc-functions/vasprintf.texi: Likewise.
8647
8648 2011-09-10  Bruno Haible  <bruno@clisp.org>
8649
8650         nocrash: Add support for native Windows.
8651         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
8652
8653 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
8654             Bruno Haible  <bruno@clisp.org>
8655
8656         absolute-header, include-next: Add support for MSVC compiler.
8657         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
8658         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
8659         directory separator in #line directives.
8660         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
8661         recognize also backslash as directory separator in #line directives.
8662
8663 2011-09-08  Jim Meyering  <meyering@redhat.com>
8664
8665         maint.mk: mark the post-release commit log with "maint: " prefix
8666         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
8667         one-line commit-log summary.
8668
8669 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
8670             Bruno Haible  <bruno@clisp.org>
8671
8672         Doc about crypt functions.
8673         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
8674         systems.
8675         * doc/posix-functions/encrypt.texi: Likewise.
8676         * doc/posix-functions/setkey.texi: Likewise.
8677
8678 2011-09-08  Simon Josefsson  <simon@josefsson.org>
8679
8680         * lib/gc.h: Fix copyright header.
8681
8682 2011-09-07  Bruno Haible  <bruno@clisp.org>
8683
8684         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
8685         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
8686         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
8687
8688 2011-09-07  Bruno Haible  <bruno@clisp.org>
8689
8690         openat: Work around compilation error with OSF/1 5.1 DTK cc.
8691         * lib/fopen.c: Use different syntax for include of <stdio.h>.
8692         * lib/freopen.c: Likewise.
8693         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
8694         * lib/lstat.c: Likewise.
8695         * lib/stat.c: Likewise.
8696         * lib/open.c: Use different syntax for include of <fcntl.h>.
8697         * lib/openat.c: Include fcntl.h again, explicitly.
8698
8699 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
8700
8701         parse-datetime: document the newly accepted format
8702         * doc/parse-datetime.texi (Combined date and time of day items):
8703         New section.
8704
8705 2011-09-06  Bruno Haible  <bruno@clisp.org>
8706
8707         acl: Fix a test failure on newer Solaris 10 with ZFS.
8708         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
8709         ENOSYS as no ACL.
8710         Reported by Jim Meyering.
8711
8712 2011-09-06  Bruno Haible  <bruno@clisp.org>
8713
8714         acl: Update for AIX >= 5.3 with NFS.
8715         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
8716         ENOSYS as no ACL.
8717
8718         acl: Fix a test failure on AIX >= 5.3 with NFS.
8719         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
8720         as no ACL.
8721
8722 2011-09-06  Bruno Haible  <bruno@clisp.org>
8723
8724         acl: Fix a test failure on IRIX 6.5 with NFS.
8725         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
8726         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
8727         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
8728         * lib/copy-acl.c (qcopy_acl): Likewise.
8729
8730 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8731
8732         openat: port to AIX 7.1 with large files
8733         AIX 7.1 does a "#define openat open64at" if large files are in use,
8734         so we can't simply #undef openat.  Use the orig_openat trick (similar
8735         to orig_open in lib/open.c) to work around the problem.  Problem
8736         reported by Kevin Brott for GNU tar, in the thread containing
8737         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8738         * lib/openat.c (__need_system_fcntl_h): Define first.
8739         Include <fcntl.h> and <sys/types.h> before undefining.
8740         (orig_openat) [HAVE_OPENAT]: New inline function.
8741         (openat) [HAVE_OPENAT]: Do not undef.
8742         (rpl_openat): Use orig_openat, not openat.
8743
8744 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8745             Bruno Haible  <bruno@clisp.org>
8746
8747         acl: Avoid errors on NonStop Kernel.
8748         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
8749         ENOTSUP errors.
8750
8751 2011-09-05  Bruno Haible  <bruno@clisp.org>
8752
8753         acl: Clean up Solaris code.
8754         * lib/acl-internal.h: Remove no-op #if.
8755         * lib/file-has-acl.c: Likewise.
8756         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
8757         * lib/copy-acl.c (qcopy_acl): Likewise.
8758
8759 2011-09-05  Bruno Haible  <bruno@clisp.org>
8760
8761         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
8762         binaries built on the original Solaris 10.
8763         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
8764         trivial.
8765
8766 2011-09-05  Bruno Haible  <bruno@clisp.org>
8767
8768         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8769         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
8770         10.
8771         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
8772         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
8773         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
8774         instead of acl_get, facl_get, acl_set, facl_set.
8775
8776 2011-09-05  Bruno Haible  <bruno@clisp.org>
8777
8778         copy-file: Try unit tests on more file systems.
8779         * tests/test-copy-file-1.sh: New file.
8780         * tests/test-copy-file-2.sh: New file.
8781         * modules/copy-file-tests (Files): Add them.
8782         (Makefile.am): Add them to TESTS.
8783
8784         acl: Try unit tests on more file systems.
8785         * tests/test-file-has-acl-1.sh: New file.
8786         * tests/test-file-has-acl-2.sh: New file.
8787         * tests/test-set-mode-acl-1.sh: New file.
8788         * tests/test-set-mode-acl-2.sh: New file.
8789         * tests/test-copy-acl-1.sh: New file.
8790         * tests/test-copy-acl-2.sh: New file.
8791         * modules/acl-tests (Files): Add them.
8792         (Makefile.am): Add them to TESTS.
8793
8794 2011-09-04  Bruno Haible  <bruno@clisp.org>
8795
8796         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8797         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
8798         10.
8799         (OLD_ALLOW, OLD_DENY): New macros.
8800         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
8801         ACE_ACCESS_ALLOWED_ACE_TYPE.
8802         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
8803         ACE_ACCESS_DENIED_ACE_TYPE.
8804         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
8805         (NEW_ACE_EXECUTE): Fix value.
8806         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
8807         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
8808         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
8809         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
8810         NEW_ACE_SYNCHRONIZE): New macros.
8811         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
8812         instead of acl_fromtext, acl_set, facl_set.
8813         Fixes a coreutils/tests/cp/perm failure.
8814
8815 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8816
8817         openat: test for fstatat (..., 0) bug
8818         Further testing with tar suggests that fstatat (..., 0)
8819         does not work in general, on AIX 7.1; see
8820         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
8821         So, give up entirely on AIX 7.1's fstatat, and fall back on our
8822         replacement fstatat (which is what older AIX releases were using
8823         anyway).
8824         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
8825         use is now changed to orig_fstatat.  This was probably the right
8826         thing to do anyway.
8827         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
8828         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
8829         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
8830         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
8831         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
8832         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
8833         if the bug is found.
8834
8835         openat: test for fstatat (AT_FDCWD, ..., 0) bug
8836         This tests for another fstatat bug on AIX 7.1:
8837         fstatat (AT_FDCWD, ..., 0) does not work.  See
8838         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
8839         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
8840         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
8841         (rpl_fstatat): Adjust so that it works around either (or both)
8842         bugs if present.
8843         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
8844
8845 2011-09-03  Karl Berry  <karl@gnu.org>
8846
8847         * doc/regex.texi (Character Class Operators): Avoid literal ":"
8848         in index entries.
8849
8850 2011-09-02  Bruno Haible  <bruno@clisp.org>
8851
8852         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
8853         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
8854         values of AR, ARFLAGS, RANLIB.
8855         Reported by John W. Eaton <jwe@gnu.org> for Octave.
8856
8857 2011-09-02  Bruno Haible  <bruno@clisp.org>
8858
8859         Find 'ar' program that fits with --host argument.
8860         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
8861
8862 2011-09-02  Bruno Haible  <bruno@clisp.org>
8863
8864         tests: init.sh: Support any non-GNU diff.
8865         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
8866         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
8867         Solaris 8.
8868
8869 2011-09-02  Bruno Haible  <bruno@clisp.org>
8870
8871         tests: init.sh: work also with any non-GNU diff that supports -u
8872         * tests/init.sh: Relax check for diff -u support.
8873         Rather than checking for GNU diff via --version, simply check
8874         for support for -u itself.  Useful at least on OpenBSD 4.9,
8875         AIX 7.1, IRIX 6.5, and Solaris 10.
8876
8877 2011-09-01  Bruno Haible  <bruno@clisp.org>
8878
8879         strtoimax, strtoumax: Document problem on HP-UX 11.
8880         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
8881         * doc/posix-functions/strtoumax.texi: Likewise.
8882
8883 2011-09-01  Bruno Haible  <bruno@clisp.org>
8884
8885         strtoumax: Avoid link error on OSF/1 with DTK cc.
8886         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
8887         defined as a function.
8888         * modules/strtoumax (Depends-on, configure.ac): Test only whether
8889         strtoumax is defined, not whether it is declared.
8890
8891 2011-09-01  Bruno Haible  <bruno@clisp.org>
8892
8893         strtoimax: Avoid link error on OSF/1 with DTK cc.
8894         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
8895         defined as a function.
8896         * modules/strtoimax (Depends-on, configure.ac): Test only whether
8897         strtoimax is defined, not whether it is declared.
8898
8899 2011-09-01  Bruno Haible  <bruno@clisp.org>
8900
8901         imaxdiv: Avoid link error on OSF/1 with DTK cc.
8902         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
8903         as a function.
8904         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
8905         whether it is declared.
8906
8907 2011-09-01  Bruno Haible  <bruno@clisp.org>
8908
8909         imaxabs: Avoid link error on OSF/1 with DTK cc.
8910         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
8911         as a function.
8912         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
8913         whether it is declared.
8914
8915 2011-09-01  Bruno Haible  <bruno@clisp.org>
8916
8917         Tests for module 'strtoumax'.
8918         * modules/strtoumax-tests: New file.
8919         * tests/test-strtoumax.c: New file.
8920
8921         Tests for module 'strtoimax'.
8922         * modules/strtoimax-tests: New file.
8923         * tests/test-strtoimax.c: New file.
8924
8925         Tests for module 'imaxdiv'.
8926         * modules/imaxdiv-tests: New file.
8927         * tests/test-imaxdiv.c: New file.
8928
8929         Tests for module 'imaxabs'.
8930         * modules/imaxabs-tests: New file.
8931         * tests/test-imaxabs.c: New file.
8932
8933 2011-09-01  Bruno Haible  <bruno@clisp.org>
8934
8935         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
8936         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
8937         pthread_create.
8938
8939 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8940
8941         openat: work around AIX 7.1 fstatat issue
8942         This should fix the problem that was not properly fixed
8943         in the previous change, dated 2011-08-30.
8944         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
8945         __need_system_stat_h defined.
8946         (orig_fstatat) [HAVE_FSTATAT]: New function.
8947         (rpl_fstatat): Go back to the old way of doing things,
8948         except call orig_fstatat instead of fstatat.
8949         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8950         Remove unnecessary check whether fstatat fills in st_size etc.
8951
8952 2011-09-01  Bruno Haible  <bruno@clisp.org>
8953
8954         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8955         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8956         just include the system's header.
8957
8958 2011-08-31  Jim Meyering  <meyering@redhat.com>
8959
8960         tests: avoid spurious assertion failure in test-float.c on ppc64
8961         * tests/test-float.c (test_long_double): Comment out an assertion,
8962         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8963         with gcc-4.4.4.
8964
8965         maint: indent with spaces, not TABs
8966         I need to get in the habit of running gnulib's "make check".
8967         Both of these would have been caught.
8968         * m4/largefile.m4: Indent with spaces, not TABs.
8969         * lib/parse-datetime.y (iso_8601_time): Likewise.
8970         Spotted by Pádraig Brady.
8971
8972         test-parse-datetime.c: accommodate a relatively strict gcc warning
8973         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8974         to avoid a warning from gcc's -Werror=missing-declarations.
8975         Insert a few spaces-before-funcall-parenthesis.
8976
8977 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8978
8979         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8980         The parser now accepts ISO 8601 date-time strings with "T" as the
8981         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8982         with a space between the date and time strings.  Now it also parses
8983         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8984         variants like "2004-02-29T16:21:42.333-07:00"
8985         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8986         of day representation using the 'T' separator character.
8987         * doc/parse-datetime.texi (General date syntax): replace use of
8988         deprecated --iso-8601 option with --rfc-3339 in example of date
8989         command output formats that can be parsed.
8990         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8991         lib/parse-datetime.y.
8992         (gmt_offset): New function.
8993         (main): Add additional test cases to validate ISO8601 extended
8994         date and time of day parsing.
8995
8996 2011-08-31  Bruno Haible  <bruno@clisp.org>
8997
8998         freopen: Documentation.
8999         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9000         name.
9001         Reported by Claudio Bley <claudio.bley@gmail.com>.
9002
9003 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9004
9005         freopen: Don't crash if the filename argument is NULL.
9006         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9007         NULL.
9008
9009 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9010
9011         openat: work around AIX 7.1 fstatat bug
9012         Problem reported by Kevin Brott for GNU tar, in the thread containing
9013         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9014         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9015         FSTATAT_ST_SIZE_ETC_BROKEN.
9016         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9017         rpl_fstatat.
9018         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9019         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9020         AC_CHECK_FUNCS_ONCE for fstatat.
9021         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9022         fchmodat, mkdirat, openat and unlinkat.
9023
9024 2011-08-30  Bruno Haible  <bruno@clisp.org>
9025
9026         Avoid endless recursions if config.h includes some header files.
9027         * lib/fopen.c (__need_FILE): Define already before including config.h.
9028         * lib/freopen.c (__need_FILE): Likewise.
9029         * lib/open.c (__need_system_fcntl_h): Likewise.
9030         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9031         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9032         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9033
9034 2011-08-25  Karl Berry  <karl@gnu.org>
9035
9036         * config/srclist.txt (ylwrap): new try.
9037         * build-aux/ylwrap: new file.
9038
9039 2011-08-23  Bruno Haible  <bruno@clisp.org>
9040
9041         tmpdir: Use a good default directory on native Windows.
9042         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9043         (P_tmpdir): Default to _P_tmpdir on native Windows.
9044         (path_search): On native Windows, try the value returned by GetTempPath
9045         before trying P_tmpdir.
9046         * modules/tmpdir (Depends-on): Add pathmax.
9047         Suggested by John Darrington <john@darrington.wattle.id.au>.
9048
9049 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9050
9051         doc: fix typo in README-release
9052         * top/README-release: Capitalize first word of a sentence.
9053
9054 2011-08-19  Jim Meyering  <meyering@redhat.com>
9055
9056         fts: do not exhaust memory when processing million-entry directories
9057         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9058         directory would require about 256*N bytes of memory.  Thus, it was
9059         easy to construct a directory too large to be processed by any of
9060         those tools.  With this change, fts' maximum memory utilization is
9061         now limited to around 30MB.
9062         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9063         (fts_read): When we've processed the final entry (i.e., when
9064         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9065         using the parent entry to read any remaining entries.  Dispatch
9066         depending on what fts_build returns:
9067         - NULL+stop, aka failure: stop
9068         - NULL otherwise: move up in the dir hierarchy
9069         - non-NULL: handle this new entry
9070         (fts_build): Declare and use new local, continue_readdir.
9071         Prepare to be called from fts_read, when the entries
9072         from a partially-read directory have just been exhausted.
9073         In that case, we'll skip the opendir and instead use the parent's
9074         fts_dirp and derive dir_fd from that.
9075         Finally, in the readdir loop, if we read max_entries entries,
9076         exit the loop ensuring *not* to call closedir.  This is required
9077         so that fts_dirp can be reused on a subsequent call.
9078         Prompted by Ben England's report of memory exhaustion in find
9079         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9080
9081         maint: fts: move decl of `dp' down into while loop; split a long line
9082         * lib/fts.c (fts_build): No semantic change.
9083
9084         fts: add/use new struct member, fts_dirp
9085         We are about to use this to manage any directory with
9086         too many entries to read all of them into memory at once.
9087         To do that, we'll need to save the DIR* pointer in each
9088         affected FTSENT struct.
9089         * lib/fts_.h: Include <dirent.h>.
9090         (struct FTSENT) [fts_dirp]: New member.
9091         * lib/fts.c (closedir_and_clear): Define.
9092         Use it in place of closedir so that we are sure to
9093         clear the new fts_dirp member when done with it.
9094         (fts_alloc): Initialize the new member.
9095         (fts_lfree): Free, if needed.
9096
9097         maint: fts: give __opendir2 a new parameter and rename
9098         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9099         than surreptitiously using sole caller's "dir_fd".
9100         (fts_opendir): Rename from __opendir2.
9101
9102         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9103         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9104
9105         maint: fts.c: correct off-by-one indentation
9106         * lib/fts.c (fts_build): Correct indentation, change style
9107         of a couple of block comments, and bracing style.
9108
9109         maint: fts.c: move __opendir2 #define "up" out of function body
9110         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9111
9112         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9113         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9114         out for a long time and besides was useful only on BSD systems.
9115
9116 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9117
9118         regex: port to Stratus OpenVOS
9119         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9120         define to empty, rather than attempting nonportable optimizations.
9121         Problem reported by Paul Green in:
9122         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9123         and fix suggested by Eric Blake in:
9124         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9125
9126 2011-08-17  Eric Blake  <eblake@redhat.com>
9127
9128         getcwd: fix test failures on mingw
9129         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9130         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9131         test if long directory cannot be created, and allow mingw errno.
9132
9133         getcwd-lgpl: fix m4 to match relaxed test for BSD
9134         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9135         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9136         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9137         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9138         signature problem.
9139
9140         getcwd: fix compilation on mingw64
9141         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9142         getcwd.
9143         Reported by Marc-André Lureau.
9144
9145         pipe2: silence compiler warning
9146         * lib/pipe2.c (pipe2): Hide label if it is not used.
9147
9148 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9149
9150         relocatable-prog: fix link error
9151         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9152         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9153         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9154         into modules/relocatable-lib without noticing that
9155         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9156         also needs to build relocatable.c.
9157
9158 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9159
9160         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9161         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9162         shell code: it contained a 'break' that was not in a loop.
9163         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9164         via a shell-language loop; this may have been true in old Autoconf
9165         versions, but it's not true in Autoconf 2.68.  I found this bug
9166         when testing coreutils git on Solaris 8, whose shell complains
9167         about the syntax error.
9168
9169 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9170
9171         * lib/base64.c: Fix comment to reference RFC 4648.
9172         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9173         <gvtulder@gmail.com>.
9174
9175 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9176
9177         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9178
9179         po/Makefile.in.in: fix make -q problem
9180         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9181         rule, since there's no file named 'check-macro-version' and its
9182         use as a file breaks make -q.
9183         (all): Don't depend on check-macro-version.
9184         (CHECK_MACRO_VERSION): New macro.
9185         (stamp-po): Use it.
9186
9187         configmake: fix make -q problem
9188         * modules/configmake (configmake.h): Update configmake.h's time stamp
9189         even if the file does not change.  Otherwise, 'make -q' fails.
9190         Problem reported by Simon Josefsson in
9191         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9192
9193 2011-08-11  Jim Meyering  <meyering@redhat.com>
9194
9195         git-version-gen: correct the advice in a comment
9196         * build-aux/git-version-gen: Correct comment.
9197         Don't recommend to list .tarball-version in .gitignore.
9198
9199 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9200
9201         base64: fix off-by-one buffer size bug
9202         Problem and (trivial) fix reported by Gijs van Tulder in
9203         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9204         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9205         * tests/test-base64.c (main): Catch the bug.
9206
9207 2011-08-10  Eric Blake  <eblake@redhat.com>
9208
9209         closein: correct comments
9210         * lib/closein.c (close_stdin): Improve comments.
9211
9212 2011-08-09  Bruno Haible  <bruno@clisp.org>
9213
9214         More tests for 'fseeko'.
9215         * tests/test-fseeko3.c: New file, from Eric Blake.
9216         * tests/test-fseeko3.sh: New file.
9217         * modules/fseeko-tests (Files): Add them.
9218         (TESTS): Add test-fseeko3.sh.
9219         (check_PROGRAMS): Add test-fseeko3.
9220
9221 2011-08-09  Eric Blake  <eblake@redhat.com>
9222
9223         fseeko: remove unneeded hack
9224         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9225
9226         fseeko: fix bug on glibc
9227         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9228         Reported by John W. Eaton.
9229
9230 2011-08-08  Bruno Haible  <bruno@clisp.org>
9231
9232         unictype/base: Fix interoperability with preinstalled libunistring.
9233         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9234         Reported by Simon Josefsson.
9235
9236 2011-08-08  Bruno Haible  <bruno@clisp.org>
9237
9238         iswblank: Detect declaration correctly.
9239         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9240         AC_CHECK_DECLS invocation.
9241
9242 2011-08-08  Bruno Haible  <bruno@clisp.org>
9243
9244         tcgetsid: Detect declaration correctly.
9245         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9246         AC_CHECK_DECLS invocation.
9247         Reported by Simon Josefsson.
9248
9249 2011-08-08  Eric Blake  <eblake@redhat.com>
9250
9251         largefile: fix typo that regressed large file support
9252         * modules/largefile (configure.ac-early): Fix section name.
9253
9254 2011-08-06  Karl Berry  <karl@gnu.org>
9255
9256         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9257         a separate module.
9258
9259 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9260
9261         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9262         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9263         get prototype for free.
9264
9265 2011-08-04  Bruno Haible  <bruno@clisp.org>
9266
9267         Tests for module 'pathmax'.
9268         * modules/pathmax-tests: New file.
9269         * tests/test-pathmax.c: New file.
9270
9271         canonicalize-lgpl: Support larger filenames on the Hurd.
9272         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9273         Reported by Paul Eggert.
9274
9275         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9276         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9277         * lib/chdir-long.h: Include pathmax.h.
9278         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9279         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9280         (PATH_MAX): Remove code that is done by pathmax.h.
9281         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9282         * lib/tmpfile.c: Add a comment.
9283         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9284         * modules/chdir-long (Depends-on): Add pathmax.
9285         * modules/getcwd (Depends-on): Add pathmax.
9286         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9287         is not defined.
9288         * doc/posix-headers/limits.texi: Mention the pathmax module.
9289         * NEWS: Mention the change.
9290
9291 2011-08-02  Bruno Haible  <bruno@clisp.org>
9292
9293         pthread_sigmask: Actually use results of gl_THREADLIB.
9294         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9295         gl_THREADLIB, not gl_[]THREADLIB.
9296         Reported by Eric Blake.
9297
9298 2011-08-02  Jim Meyering  <meyering@redhat.com>
9299
9300         maint.mk: relax the default _gl_TS_function_match regexp
9301         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9302         space between function name and "(" in an "extern" declaration.
9303         That would fail to match a decl with no space there: extern void foo();
9304
9305 2011-07-31  Iain Nicol  <iain@thenicols.net>
9306
9307         git-version-gen: document that EXTRA_DIST must include .version
9308         * build-aux/git-version-gen: In the how-to-use comment, document
9309         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9310         will fail when run from an unpacked distribution tarball.
9311
9312 2011-08-01  Bruno Haible  <bruno@clisp.org>
9313
9314         wctype-h: Fix last change.
9315         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9316         REPLACE_TOWLOWER to 0.
9317         Reported by Sam Steingold <sds@gnu.org>.
9318
9319 2011-07-31  Bruno Haible  <bruno@clisp.org>
9320
9321         frexpl: Update autoconf test.
9322         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9323         according to changes of 2011-06-20.
9324
9325 2011-07-31  Bruno Haible  <bruno@clisp.org>
9326
9327         sys_utsname: Add support for Minix.
9328         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9329         <sys/utsname.h>.
9330         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9331         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9332
9333 2011-07-31  Bruno Haible  <bruno@clisp.org>
9334
9335         strings: Add support for Minix.
9336         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9337         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9338         * doc/posix-headers/strings.texi: Document the Minix problem.
9339
9340 2011-07-31  Bruno Haible  <bruno@clisp.org>
9341
9342         wctype-h: Add support for Minix.
9343         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9344         REPLACE_TOWLOWER.
9345         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9346         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9347         REPLACE_ISWCNTRL.
9348
9349 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9350
9351         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9352         This is a performance improvement for 64-bit hosts: it causes the
9353         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9354
9355 2011-07-31  Bruno Haible  <bruno@clisp.org>
9356
9357         stdioext: Add support for Minix.
9358         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9359         * lib/fpurge.c (fpurge): Likewise.
9360         * lib/freadahead.c (freadahead): Likewise.
9361         * lib/freadable.c (freadable): Likewise.
9362         * lib/freading.c (freading): Likewise.
9363         * lib/freadptr.c (freadptr): Likewise.
9364         * lib/freadseek.c (freadptrinc): Likewise.
9365         * lib/fseeko.c (rpl_fseeko): Likewise.
9366         * lib/fseterr.c (fseterr): Likewise.
9367         * lib/fwritable.c (fwritable): Likewise.
9368         * lib/fwriting.c (fwriting): Likewise.
9369         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9370         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9371
9372 2011-07-31  Bruno Haible  <bruno@clisp.org>
9373
9374         errno: Port to Minix.
9375         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9376         ECONNABORTED are defined.
9377         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9378         GNULIB_defined_ECONNABORTED): New macros.
9379         * lib/strerror-override.h (strerror_override): Test also
9380         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9381         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9382         ECONNABORTED.
9383         * doc/posix-headers/errno.texi: Mention the Minix problem.
9384
9385 2011-07-31  Bruno Haible  <bruno@clisp.org>
9386
9387         Work around declaration collisions on Minix.
9388         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9389         defined, set REPLACE_MBSINIT.
9390         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9391         defined, set REPLACE_MBRTOWC.
9392         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9393         set REPLACE_MBRLEN.
9394         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9395         defined, set REPLACE_MBSRTOWCS.
9396         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9397         defined, set REPLACE_WCRTOMB.
9398         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9399         defined, set REPLACE_WCSRTOMBS.
9400
9401 2011-07-31  Bruno Haible  <bruno@clisp.org>
9402
9403         Add support for Minix with ACK compiler.
9404         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9405         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9406         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9407
9408 2011-07-31  Bruno Haible  <bruno@clisp.org>
9409
9410         Documentation about Minix.
9411         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9412         * doc/glibc-headers/*.texi: Likewise.
9413         * doc/posix-functions/*.texi: Likewise.
9414         * doc/glibc-functions/*.texi: Likewise.
9415
9416 2011-07-31  Bruno Haible  <bruno@clisp.org>
9417
9418         snippet/warn-on-use: Fix indentation.
9419         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9420
9421 2011-07-25  Jim Meyering  <meyering@redhat.com>
9422
9423         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9424         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9425         commands.
9426
9427 2011-07-27  Jim Meyering  <meyering@redhat.com>
9428
9429         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9430         * top/maint.mk (gl_extract_significant_defines_): Now that
9431         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9432         gnulib/lib/signal.in.h, and now that we recommend to
9433         define-if-undefined those two symbols in application code,
9434         we must filter them out of the "significant" list.
9435         This avoids a "make syntax-check" failure in coreutils.
9436
9437 2011-07-26  Eric Blake  <eblake@redhat.com>
9438
9439         warnings: add comments about previous patch
9440         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9441         * m4/include_next.m4: Likewise.
9442         * m4/warn-on-use.m4: Likewise.
9443         * m4/warnings.m4: Likewise, and simplify use.
9444         Suggested by Stefano Lattarini.
9445
9446         include-next, warnings: support older autoconf
9447         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9448         AS_VAR_PUSHDEF in a way that works with older autoconf.
9449         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9450         Reported by Daniel P. Berrange.
9451
9452 2011-07-25  Bruno Haible  <bruno@clisp.org>
9453
9454         fseek, ftell: Fix doc.
9455         * doc/posix-functions/fseek.texi: Reword statement about
9456         AC_SYS_LARGEFILE.
9457         * doc/posix-functions/ftell.texi: Likewise.
9458
9459 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9460             Bruno Haible  <bruno@clisp.org>
9461
9462         Add dependencies to the 'largefile' module.
9463         * modules/fopen (Depends-on): Add 'largefile'.
9464         * modules/freopen (Depends-on): Likewise.
9465         * modules/fseeko (Depends-on): Likewise.
9466         * modules/ftello (Depends-on): Likewise.
9467         * modules/glob (Depends-on): Likewise.
9468         * modules/lseek (Depends-on): Likewise.
9469         * modules/lstat (Depends-on): Likewise.
9470         * modules/mkostemp (Depends-on): Likewise.
9471         * modules/mkostemps (Depends-on): Likewise.
9472         * modules/mkstemp (Depends-on): Likewise.
9473         * modules/mkstemps (Depends-on): Likewise.
9474         * modules/open (Depends-on): Likewise.
9475         * modules/openat (Depends-on): Likewise.
9476         * modules/pread (Depends-on): Likewise.
9477         * modules/pwrite (Depends-on): Likewise.
9478         * modules/scandir (Depends-on): Likewise.
9479         * modules/stat (Depends-on): Likewise.
9480         * modules/tmpfile (Depends-on): Likewise.
9481         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9482         since the containing module now depends on the largefile module.
9483         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9484         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9485         off_t is fixed by gnulib.
9486         * doc/posix-functions/freopen.texi: Likewise.
9487         * doc/posix-functions/fseeko.texi: Likewise.
9488         * doc/posix-functions/fstatat.texi: Likewise.
9489         * doc/posix-functions/ftello.texi: Likewise.
9490         * doc/posix-functions/glob.texi: Likewise.
9491         * doc/posix-functions/lseek.texi: Likewise.
9492         * doc/posix-functions/lstat.texi: Likewise.
9493         * doc/posix-functions/mkstemp.texi: Likewise.
9494         * doc/posix-functions/open.texi: Likewise.
9495         * doc/posix-functions/openat.texi: Likewise.
9496         * doc/posix-functions/pread.texi: Likewise.
9497         * doc/posix-functions/pwrite.texi: Likewise.
9498         * doc/posix-functions/scandir.texi: Likewise.
9499         * doc/posix-functions/stat.texi: Likewise.
9500         * doc/posix-functions/tmpfile.texi: Likewise.
9501         * doc/glibc-functions/mkostemp.texi: Likewise.
9502         * doc/glibc-functions/mkostemps.texi: Likewise.
9503         * doc/glibc-functions/mkstemps.texi: Likewise.
9504
9505 2011-07-25  Bruno Haible  <bruno@clisp.org>
9506
9507         fcntl: Move AC_LIBOBJ invocation to module description.
9508         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9509         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9510
9511         fcntl: Remove call-in from fchdir.m4.
9512         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9513         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9514
9515         dup3: Remove potential call-in from fchdir.m4.
9516         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9518
9519         dup2: Move AC_LIBOBJ invocation to module description.
9520         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9521         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9522         Don't invoke AC_LIBOBJ.
9523         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9524
9525         dup2: Remove call-in from fchdir.m4.
9526         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9527         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9528
9529         fclose: Move AC_LIBOBJ invocation to module description.
9530         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9531         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9532         to 1.
9533         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9534
9535         fclose: Remove call-in from close.m4.
9536         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9537         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9538
9539         close: Move AC_LIBOBJ invocation to module description.
9540         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9541         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9542         1.
9543         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9544
9545         close: Remove call-in from fchdir.m4.
9546         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9548
9549         open: Move AC_LIBOBJ invocation to module description.
9550         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9551         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9552         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9553
9554         open: Remove call-in from fchdir.m4.
9555         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9556         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9557
9558         fchdir: Start to remove gl_REPLACE_* idiom.
9559         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9560         (gl_FUNC_FCHDIR): Invoke it.
9561
9562 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9563
9564         * lib/ftell.c (ftell): Comment out cast.
9565
9566         close: use gl_REPLACE_FCLOSE only if defined
9567         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9568         is defined.  The close module doesn't depend on the fclose module
9569         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9570         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9571         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9572
9573 2011-07-24  Jim Meyering  <meyering@redhat.com>
9574
9575         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9576         * tests/test-select.h (test_function): Declare as "static".
9577
9578 2011-07-24  Bruno Haible  <bruno@clisp.org>
9579
9580         doc: Mention the effects of AC_SYS_LARGEFILE.
9581         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9582         on this function.
9583         * doc/posix-functions/aio_error.texi: Likewise.
9584         * doc/posix-functions/aio_fsync.texi: Likewise.
9585         * doc/posix-functions/aio_read.texi: Likewise.
9586         * doc/posix-functions/aio_return.texi: Likewise.
9587         * doc/posix-functions/aio_suspend.texi: Likewise.
9588         * doc/posix-functions/aio_write.texi: Likewise.
9589         * doc/posix-functions/fgetpos.texi: Likewise.
9590         * doc/posix-functions/fopen.texi: Likewise.
9591         * doc/posix-functions/freopen.texi: Likewise.
9592         * doc/posix-functions/fsetpos.texi: Likewise.
9593         * doc/posix-functions/fstatvfs.texi: Likewise.
9594         * doc/posix-functions/ftruncate.texi: Likewise.
9595         * doc/posix-functions/ftw.texi: Likewise.
9596         * doc/posix-functions/getrlimit.texi: Likewise.
9597         * doc/posix-functions/glob.texi: Likewise.
9598         * doc/posix-functions/lio_listio.texi: Likewise.
9599         * doc/posix-functions/lockf.texi: Likewise.
9600         * doc/posix-functions/mkstemp.texi: Likewise.
9601         * doc/posix-functions/mmap.texi: Likewise.
9602         * doc/posix-functions/nftw.texi: Likewise.
9603         * doc/posix-functions/openat.texi: Likewise.
9604         * doc/posix-functions/opendir.texi: Likewise.
9605         * doc/posix-functions/posix_fadvise.texi: Likewise.
9606         * doc/posix-functions/posix_fallocate.texi: Likewise.
9607         * doc/posix-functions/pread.texi: Likewise.
9608         * doc/posix-functions/pwrite.texi: Likewise.
9609         * doc/posix-functions/readdir.texi: Likewise.
9610         * doc/posix-functions/readdir_r.texi: Likewise.
9611         * doc/posix-functions/rewinddir.texi: Likewise.
9612         * doc/posix-functions/scandir.texi: Likewise.
9613         * doc/posix-functions/seekdir.texi: Likewise.
9614         * doc/posix-functions/setrlimit.texi: Likewise.
9615         * doc/posix-functions/statvfs.texi: Likewise.
9616         * doc/posix-functions/telldir.texi: Likewise.
9617         * doc/posix-functions/tmpfile.texi: Likewise.
9618         * doc/posix-functions/truncate.texi: Likewise.
9619         * doc/glibc-functions/fallocate.texi: Likewise.
9620         * doc/glibc-functions/fstatfs.texi: Likewise.
9621         * doc/glibc-functions/fts_children.texi: Likewise.
9622         * doc/glibc-functions/fts_read.texi: Likewise.
9623         * doc/glibc-functions/getdirentries.texi: Likewise.
9624         * doc/glibc-functions/mkostemp.texi: Likewise.
9625         * doc/glibc-functions/mkostemps.texi: Likewise.
9626         * doc/glibc-functions/mkstemps.texi: Likewise.
9627         * doc/glibc-functions/preadv.texi: Likewise.
9628         * doc/glibc-functions/pwritev.texi: Likewise.
9629         * doc/glibc-functions/sendfile.texi: Likewise.
9630         * doc/glibc-functions/statfs.texi: Likewise.
9631
9632 2011-07-24  Bruno Haible  <bruno@clisp.org>
9633
9634         doc: Fix typo.
9635         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
9636
9637 2011-07-24  Bruno Haible  <bruno@clisp.org>
9638
9639         doc: Mention fsusage.
9640         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
9641
9642 2011-07-24  Bruno Haible  <bruno@clisp.org>
9643
9644         doc: Mention new glibc headers and functions.
9645         * doc/glibc-headers/gshadow.texi: New file.
9646         * doc/glibc-functions/endsgent.texi: New file.
9647         * doc/glibc-functions/fgetsgent.texi: New file.
9648         * doc/glibc-functions/fgetsgent_r.texi: New file.
9649         * doc/glibc-functions/getsgent.texi: New file.
9650         * doc/glibc-functions/getsgent_r.texi: New file.
9651         * doc/glibc-functions/getsgnam.texi: New file.
9652         * doc/glibc-functions/getsgnam_r.texi: New file.
9653         * doc/glibc-functions/putsgent.texi: New file.
9654         * doc/glibc-functions/setsgent.texi: New file.
9655         * doc/glibc-functions/sgetsgent.texi: New file.
9656         * doc/glibc-functions/sgetsgent_r.texi: New file.
9657         * doc/glibc-functions/malloc_info.texi: New file.
9658         * doc/glibc-functions/preadv.texi: New file.
9659         * doc/glibc-functions/pwritev.texi: New file.
9660         * doc/glibc-functions/register_printf_modifier.texi: New file.
9661         * doc/glibc-functions/register_printf_specifier.texi: New file.
9662         * doc/glibc-functions/register_printf_type.texi: New file.
9663         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
9664         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
9665         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
9666         * doc/glibc-functions/pthread_getname_np.texi: New file.
9667         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
9668         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
9669         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
9670         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
9671         * doc/glibc-functions/pthread_setname_np.texi: New file.
9672         * doc/glibc-functions/pthread_sigqueue.texi: New file.
9673         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
9674         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
9675         * doc/glibc-functions/qsort_r.texi: New file.
9676         * doc/glibc-functions/quick_exit.texi: New file.
9677         * doc/glibc-functions/syncfs.texi: New file.
9678         * doc/gnulib.texi: Include them.
9679         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
9680         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
9681         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
9682         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9683         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9684         * doc/glibc-functions/execvpe.texi: Likewise.
9685
9686 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9687
9688         ftell: don't include <unistd.h>
9689         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
9690         guaranteed to define off_t, and the ftell module depends on the
9691         stdio module.
9692
9693         ftell: do not assume wraparound signed arithmetic
9694         * lib/ftell.c: Include <limits.h>.
9695         (ftell): Don't assume wraparound signed arithmetic.
9696
9697 2011-07-24  Bruno Haible  <bruno@clisp.org>
9698
9699         close: No longer depend on module 'fclose'.
9700         * modules/close (Depends-on): Remove fclose.
9701         * NEWS: Mention the change.
9702         Suggested by Sam Steingold <sds@gnu.org>.
9703
9704 2011-07-24  Bruno Haible  <bruno@clisp.org>
9705
9706         fsusage: Enable large volume support on AIX >= 5.2.
9707         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
9708         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
9709         instead of STAT_STATVFS.
9710         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
9711
9712         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
9713         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
9714         f_blocks field only on MacOS X.
9715
9716         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
9717         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
9718         * modules/fsusage (Depends-on): Add largefile.
9719
9720 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9721
9722         * README: Modernize discussion of signed integers.
9723         Assuming overflow wraparound is no longer safe.
9724         Mention ones' complement and signed magnitude.
9725
9726 2011-07-22  Bruno Haible  <bruno@clisp.org>
9727
9728         select tests, pselect tests: Refactor.
9729         * tests/test-select.h: New file, extracted from tests/test-select.c.
9730         (select_fn): New type.
9731         (test, do_select, do_select_nowait, do_select_wait, test_tty,
9732         test_connect_first, test_accept_first, test_pair, test_socket_pair,
9733         test_pipe): Add my_select argument.
9734         (test_function): Renamed from main. Add my_select argument.
9735         * tests/test-select.c: Move most code to tests/test-select.h. Include
9736         test-select.h.
9737         * modules/select-tests (Files): Add tests/test-select.h.
9738         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9739         (my_select, main): New functions.
9740         * modules/pselect-tests (Files): Add tests/test-select.h,
9741         tests/macros.h, tests/signature.h.
9742         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9743         (configure.ac): Check for <sys/wait.h>.
9744
9745 2011-07-22  Bruno Haible  <bruno@clisp.org>
9746
9747         sys_select tests: Check the signature of FD_*.
9748         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
9749         signature tests from here...
9750         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
9751         here.
9752         * modules/sys_select-tests (Files): Add tests/signature.h.
9753
9754 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9755
9756         largefile: new module, replacing large-inode
9757         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
9758         * MODULES.html.sh: Add largefile, remove large-inode.
9759         * modules/largefile, m4/largefile.m4: New files.
9760         * modules/large-inode, m4/large-inode.m4: Remove.
9761
9762         fsusage: port to MacOS X 10.7 with 4 TiB file systems
9763         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
9764         implementations that use only 32 bits to count blocks.
9765         On typical hosts with 1024-byte blocks, this fails with file
9766         systems as small as 4 TiB.  Problem reported by Herb Wartens
9767         <http://debbugs.gnu.org/9140> and this should also fix a similar
9768         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
9769
9770         large-inode: New module
9771         * MODULES.html.sh: Add it.
9772         * modules/large-inode, m4/large-inode.m4: New files.
9773
9774         extensions: Enable extensions on MacOS X 10.5 and later.
9775         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
9776
9777 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
9778
9779         file-has-acl: use acl_extended_file_nofollow if available
9780         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
9781         (acl_extended_file): New macro.
9782         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
9783         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
9784
9785 2011-07-21  Bruno Haible  <bruno@clisp.org>
9786
9787         Declare system functions in a way that works with C++.
9788         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
9789         declare fdopendir as extern "C".
9790         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
9791         declare frexpl as extern "C".
9792         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
9793         declare gai_strerror as extern "C".
9794         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
9795         programs, declare gai_strerror as extern "C".
9796         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
9797         declare getlogin_r as extern "C".
9798         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
9799         as extern "C".
9800         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
9801         declare ldexpl as extern "C".
9802         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
9803         as extern "C".
9804         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
9805         program, declare getmntinfo as extern "C".
9806         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
9807         stpncpy as extern "C".
9808         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
9809         program, declare __xpg_strerror_r as extern "C".
9810         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
9811         strndup as extern "C".
9812         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
9813         declare memset and bzero as extern "C".
9814         Reported by Sam Steingold <sds@gnu.org>.
9815
9816 2011-07-12  Jim Meyering  <meyering@redhat.com>
9817
9818         maint.mk: prohibit inclusion of "verify.h" without use
9819         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
9820
9821 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9822
9823         timer-time: A new module to check for timer_settime()
9824         * m4/timer_time.m4: Check for the posix function.
9825         * modules/timer-time: Add the new module.
9826         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
9827         Mention it.
9828
9829 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
9830             Bruno Haible  <bruno@clisp.org>
9831
9832         pthread_sigmask: assume POSIX threads if --avoid=threadlib
9833         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
9834         not defined, assume POSIX threads and look for pthread_sigmask in
9835         $LIBS, without changing $CPPFLAGS.
9836
9837 2011-07-19  Bruno Haible  <bruno@clisp.org>
9838
9839         strstr: Update cross-compilation guess.
9840         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
9841         CPUs, guess no, in view of glibc
9842         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
9843         Suggested by Eric Blake. Reported by Reuben Thomas.
9844
9845 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9846
9847         getopt-gnu: suppress core dumps from detection code
9848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
9849         to suppress core dumps that may well occur on glibc systems.
9850         * modules/getopt-gnu: Depend on nocrash.
9851
9852 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9853
9854         pthread_sigmask: ensure usleep is declared
9855         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
9856         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
9857
9858 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9859
9860         doc: Document NonStop portability issues.
9861         * doc/posix-functions/sigaction.texi (sigaction):
9862         * doc/posix-headers/signal.texi (signal.h):
9863         Document NonStop.  See Joachim Schmitz in
9864         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
9865
9866 2011-07-15  Bruno Haible  <bruno@clisp.org>
9867
9868         ffsl, ffsll: Avoid unportable behaviour.
9869         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
9870
9871 2011-07-15  Bruno Haible  <bruno@clisp.org>
9872
9873         ffs: More tests.
9874         * tests/test-ffs.c (NBITS): New macro.
9875         (main): Add more tests.
9876         * tests/test-ffsl.c (NBITS): New macro.
9877         (main): Add more tests.
9878         * tests/test-ffsll.c (NBITS): New macro.
9879         (main): Add more tests.
9880
9881 2011-07-15  Eric Blake  <eblake@redhat.com>
9882
9883         ffsl, ffsll: new modules
9884         * modules/ffsl: New file.
9885         * modules/ffsll: Likewise.
9886         * m4/ffsl.m4: Likewise.
9887         * m4/ffsll.m4: Likewise.
9888         * lib/ffsl.c: Likewise.
9889         * lib/ffsl.h: Likewise.
9890         * lib/ffsll.c: Likewise.
9891         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
9892         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
9893         * modules/string (Makefile.am): Substitute witnesses.
9894         * lib/strings.in.h (ffsl, ffsll): Declare.
9895         * modules/ffsl-tests: New test file.
9896         * modules/ffsll-tests: Likewise.
9897         * tests/test-ffsl.c: Likewise.
9898         * tests/test-ffsll.c: Likewise.
9899         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9900         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
9901         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
9902
9903         ffs: fix m4 prerequisite
9904         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
9905
9906         ffs: avoid undefined behavior
9907         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
9908         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9909         Reported by Bruno Haible.
9910
9911 2011-07-12  Bruno Haible  <bruno@clisp.org>
9912
9913         pthread_sigmask: Rely on module 'threadlib'.
9914         * modules/pthread_sigmask (Depends-on): Add threadlib.
9915         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
9916         is defined.
9917
9918 2011-07-12  Bruno Haible  <bruno@clisp.org>
9919
9920         regex: Depend on module 'strcase'.
9921         * modules/regex (Depends-on): Add strcase, for strcasecmp().
9922
9923 2011-07-12  Jim Meyering  <meyering@redhat.com>
9924
9925         warn-on-use: fix typo in file name
9926         * modules/snippet/warn-on-use (Files): Correct file name:
9927         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
9928
9929 2011-07-12  Bruno Haible  <bruno@clisp.org>
9930
9931         strings: Document module.
9932         * doc/posix-headers/strings.texi: Mention module 'strings'.
9933
9934 2011-07-12  Bruno Haible  <bruno@clisp.org>
9935
9936         Rename module '_Noreturn' to 'snippet/_Noreturn'.
9937         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
9938         (Files, Makefile.am): Update.
9939         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
9940         * modules/stdlib (Depends-on): Update.
9941
9942 2011-07-12  Bruno Haible  <bruno@clisp.org>
9943
9944         * NEWS: Mention the changes.
9945
9946         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9947         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9948         (Files, Makefile.am): Update.
9949         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9950         * modules/arpa_inet (Depends-on): Update.
9951         * modules/ctype (Depends-on): Update.
9952         * modules/dirent (Depends-on): Update.
9953         * modules/fcntl-h (Depends-on): Update.
9954         * modules/glob (Depends-on): Update.
9955         * modules/iconv-h (Depends-on): Update.
9956         * modules/inttypes-incomplete (Depends-on): Update.
9957         * modules/langinfo (Depends-on): Update.
9958         * modules/locale (Depends-on): Update.
9959         * modules/math (Depends-on): Update.
9960         * modules/netdb (Depends-on): Update.
9961         * modules/poll-h (Depends-on): Update.
9962         * modules/pty (Depends-on): Update.
9963         * modules/search (Depends-on): Update.
9964         * modules/signal (Depends-on): Update.
9965         * modules/spawn (Depends-on): Update.
9966         * modules/stdio (Depends-on): Update.
9967         * modules/stdlib (Depends-on): Update.
9968         * modules/string (Depends-on): Update.
9969         * modules/strings (Depends-on): Update.
9970         * modules/sys_file (Depends-on): Update.
9971         * modules/sys_ioctl (Depends-on): Update.
9972         * modules/sys_select (Depends-on): Update.
9973         * modules/sys_socket (Depends-on): Update.
9974         * modules/sys_stat (Depends-on): Update.
9975         * modules/sys_time (Depends-on): Update.
9976         * modules/sys_times (Depends-on): Update.
9977         * modules/sys_utsname (Depends-on): Update.
9978         * modules/sys_wait (Depends-on): Update.
9979         * modules/termios (Depends-on): Update.
9980         * modules/time (Depends-on): Update.
9981         * modules/unistd (Depends-on): Update.
9982         * modules/wchar (Depends-on): Update.
9983         * modules/wctype-h (Depends-on): Update.
9984         * MODULES.html.sh (Support for building libraries and executables):
9985         Update.
9986
9987         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9988         * modules/snippet/unused-parameter: Renamed from
9989         modules/unused-parameter.
9990         (Files, Makefile.am): Update.
9991         * build-aux/snippet/unused-parameter.h: Renamed from
9992         build-aux/unused-parameter.h.
9993         * modules/selinux-h (Depends-on): Update.
9994         * modules/unistr/base (Depends-on): Update.
9995         * MODULES.html.sh (Core language properties): Update.
9996
9997         Rename module 'link-warning' to 'snippet/link-warning'.
9998         * modules/snippet/link-warning: Renamed from modules/link-warning.
9999         (Files, Makefile.am): Update.
10000         * build-aux/snippet/link-warning.h: Renamed from
10001         build-aux/link-warning.h.
10002         * MODULES.html.sh (Support for building libraries and executables):
10003         Update.
10004
10005         Rename module 'c++defs' to 'snippet/c++defs'.
10006         * modules/snippet/c++defs: Renamed from modules/c++defs.
10007         (Files, Makefile.am): Update.
10008         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10009         * modules/arpa_inet (Depends-on): Update.
10010         * modules/ctype (Depends-on): Update.
10011         * modules/dirent (Depends-on): Update.
10012         * modules/fcntl-h (Depends-on): Update.
10013         * modules/glob (Depends-on): Update.
10014         * modules/iconv-h (Depends-on): Update.
10015         * modules/langinfo (Depends-on): Update.
10016         * modules/locale (Depends-on): Update.
10017         * modules/math (Depends-on): Update.
10018         * modules/netdb (Depends-on): Update.
10019         * modules/poll-h (Depends-on): Update.
10020         * modules/pty (Depends-on): Update.
10021         * modules/search (Depends-on): Update.
10022         * modules/signal (Depends-on): Update.
10023         * modules/spawn (Depends-on): Update.
10024         * modules/stdio (Depends-on): Update.
10025         * modules/stdlib (Depends-on): Update.
10026         * modules/string (Depends-on): Update.
10027         * modules/strings (Depends-on): Update.
10028         * modules/sys_ioctl (Depends-on): Update.
10029         * modules/sys_select (Depends-on): Update.
10030         * modules/sys_socket (Depends-on): Update.
10031         * modules/sys_stat (Depends-on): Update.
10032         * modules/sys_time (Depends-on): Update.
10033         * modules/sys_wait (Depends-on): Update.
10034         * modules/termios (Depends-on): Update.
10035         * modules/time (Depends-on): Update.
10036         * modules/unistd (Depends-on): Update.
10037         * modules/wchar (Depends-on): Update.
10038         * modules/wctype-h (Depends-on): Update.
10039
10040         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10041         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10042         (Files, Makefile.am): Update.
10043         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10044         * modules/argv-iter (Depends-on): Update.
10045         * modules/arpa_inet (Depends-on): Update.
10046         * modules/dirent (Depends-on): Update.
10047         * modules/fcntl-h (Depends-on): Update.
10048         * modules/fnmatch (Depends-on): Update.
10049         * modules/getopt-posix (Depends-on): Update.
10050         * modules/glob (Depends-on): Update.
10051         * modules/iconv-h (Depends-on): Update.
10052         * modules/inttypes-incomplete (Depends-on): Update.
10053         * modules/locale (Depends-on): Update.
10054         * modules/math (Depends-on): Update.
10055         * modules/netdb (Depends-on): Update.
10056         * modules/search (Depends-on): Update.
10057         * modules/signal (Depends-on): Update.
10058         * modules/spawn (Depends-on): Update.
10059         * modules/stdio (Depends-on): Update.
10060         * modules/stdlib (Depends-on): Update.
10061         * modules/string (Depends-on): Update.
10062         * modules/strings (Depends-on): Update.
10063         * modules/sys_socket (Depends-on): Update.
10064         * modules/sys_stat (Depends-on): Update.
10065         * modules/sys_time (Depends-on): Update.
10066         * modules/sys_times (Depends-on): Update.
10067         * modules/sys_utsname (Depends-on): Update.
10068         * modules/time (Depends-on): Update.
10069         * modules/unistd (Depends-on): Update.
10070         * modules/wchar (Depends-on): Update.
10071         * MODULES.html.sh (Support for building libraries and executables):
10072         Update.
10073
10074 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10075
10076         Improvements on _Noreturn and related modules.
10077
10078         modules/_Exit-tests: test _Noreturn too
10079         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10080         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10081         (main): Use them.
10082
10083         stdnoreturn, stdnoreturn-tests: remove modules
10084         They're not needed here and a bit premature for use elsewhere.  See
10085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10086         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10087         * tests/test-stdnoreturn.c: Remove files.
10088         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10089         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10090         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10091         and using noreturn.
10092         * modules/openat, modules/sigpipe-die, modules/xalloc:
10093         * modules/xmemdup0, modules/xstrtol:
10094         Remove dependency on stdnoreturn.
10095
10096         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10097         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10098         Reparenthesize to avoid GCC warning.
10099         Support Microsoft's syntax.
10100         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10101
10102         _Noreturn-tests: remove module
10103         * modules/_Noreturn-tests: Remove.
10104         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10105         * tests/test-_Noreturn.c: Remove.
10106         * tests/test-stdnoreturn.c: Merge from the old
10107         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10108
10109 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10110
10111         _Noreturn, stdnoreturn, and related modules.
10112
10113         * top/maint.mk: Adjust to new noreturn support.
10114         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10115         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10116
10117         xalloc: use stdnoreturn.h
10118         * lib/xalloc.h: Include <stdnoreturn.h>.
10119         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10120         * modules/xalloc (Depends-on): Add stdnoreturn.
10121
10122         xstrtol: use stdnoreturn.h
10123         * lib/xstrtol.h: Include <stdnoreturn.h>.
10124         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10125         * modules/xstrtol (Depends-on): Add stdnoreturn.
10126
10127         xmemdup0: use stdnoreturn.h
10128         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10129         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10130         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10131
10132         sigpipe-die: use stdnoreturn.h
10133         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10134         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10135         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10136
10137         openat: use stdnoreturn.h
10138         * lib/openat.h: Include <stdnoreturn.h>.
10139         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10140         * modules/openat (Depends-on): Add stdnoreturn.
10141
10142         * lib/openat-die.c (openat_save_fail): Modernize comment.
10143
10144         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10145
10146         * lib/glthread/thread.h: Modernize comment.
10147
10148         obstack: use _Noreturn
10149         * lib/obstack.c (__attribute__): Remove macro.
10150         (print_and_abort): Use _Noreturn.
10151
10152         c-stack: use _Noreturn
10153         * lib/c-stack.c (die, overflow_handler, segv_handler):
10154         Use _Noreturn rather than __attribute__((noreturn)).
10155
10156         argmatch-tests, exclude_tests: use _Noreturn
10157         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10158         Remove.
10159         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10160
10161         stdlib: use _Noreturn
10162         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10163         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10164         * modules/stdlib (Depends-on): Add _Noreturn.
10165         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10166
10167         stdnoreturn-tests: new module
10168         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10169
10170         stdnoreturn: new module
10171         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10172         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10173
10174         _Noreturn-tests: new module
10175         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10176
10177         _Noreturn: new module
10178         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10179         New section, mentioning it.
10180         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10181
10182         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10183
10184 2011-07-11  Eric Blake  <eblake@redhat.com>
10185
10186         ffs: new module
10187         * modules/ffs: New file.
10188         * m4/ffs.m4: Likewise.
10189         * lib/ffs.c: Likewise.
10190         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10191         * modules/strings (Makefile.am): Substitute witness.
10192         (Depends-on): Add c++defs.
10193         * lib/strings.in.h (ffs): Declare.
10194         * modules/ffs-tests: New test file.
10195         * tests/test-ffs.c: Test new module.
10196         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10197         * doc/posix-functions/ffs.texi (ffs): Likewise.
10198
10199         regex: avoid compiler warning
10200         * lib/regex.c (includes): Include <strings.h>, for use of
10201         strcasecmp in regcomp.c.
10202         Reported by Joachim Schmitz.
10203
10204 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10205
10206         stdint: respect system's intmax_t if INTMAX_MAX
10207         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10208         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10209         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10210         long but int64_t is long long, and where we will clash with the
10211         system intmax_t if we override it.  See
10212         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10213         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10214         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10215         similarly for UINTMAX_C.
10216
10217 2011-07-08  Bruno Haible  <bruno@clisp.org>
10218
10219         pthread_sigmask tests: Avoid a compiler warning.
10220         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10221         non-zero.
10222
10223         sigprocmask tests: A better way to avoid a compiler warning.
10224         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10225         (main): Complain if system() returns non-zero.
10226         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10227
10228 2011-07-08  Bruno Haible  <bruno@clisp.org>
10229
10230         pthread_sigmask: Work around IRIX bug.
10231         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10232         bug.
10233         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10234         there may be unblocked pending signals.
10235         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10236
10237 2011-07-08  Bruno Haible  <bruno@clisp.org>
10238
10239         pthread_sigmask: Work around Cygwin bug.
10240         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10241         bug.
10242         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10243         the system's pthread_sigmask function.
10244         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10245
10246 2011-07-08  Bruno Haible  <bruno@clisp.org>
10247
10248         pthread_sigmask: Work around bug in single-threaded implementation.
10249         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10250         FreeBSD, HP-UX, Solaris bug.
10251         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10252         * lib/pthread_sigmask.c: Include <stddef.h>.
10253         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10254         the system's pthread_sigmask function.
10255         * modules/pthread_sigmask (configure.ac): Invoke
10256         gl_PREREQ_PTHREAD_SIGMASK.
10257         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10258         HP-UX, Solaris.
10259
10260 2011-07-08  Eric Blake  <eblake@redhat.com>
10261
10262         test-sigprocmask: avoid compiler warning
10263         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10264         * tests/test-sigprocmask.c (main): Use it to silence warning.
10265         Reported by Jim Meyering.
10266
10267         test-snprintf: avoid compiler warning
10268         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10269         * tests/test-vsnprintf.c (main): Likewise.
10270         Reported by Jim Meyering.
10271
10272 2011-07-08  Bruno Haible  <bruno@clisp.org>
10273
10274         Tests for module 'pthread_sigmask'.
10275         * modules/pthread_sigmask-tests: New file.
10276         * tests/test-pthread_sigmask1.c: New file, based on
10277         tests/test-sigprocmask.c.
10278         * tests/test-pthread_sigmask2.c: New file.
10279
10280 2011-07-08  Jim Meyering  <meyering@redhat.com>
10281
10282         test-getopt.h: avoid warning about an unused variable
10283         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10284
10285 2011-07-07  Jim Meyering  <meyering@redhat.com>
10286
10287         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10288         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10289         now that it no longer contains leading TABs.
10290         Remove unused "url=FIXME" statement.
10291
10292 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10293
10294         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10295         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10296         When gl_THREADLIB is not in use, assume that the POSIX sematics
10297         are desired.  This is better for Emacs, which uses POSIX semantics
10298         on GNUish and/or POSIXish platforms, and does not use threads at
10299         all otherwise.
10300
10301         pthread_sigmask: fix typo when testing for libraries
10302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10303         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10304
10305 2011-07-08  Eric Blake  <eblake@redhat.com>
10306
10307         fts: introduce FTS_NOATIME
10308         * lib/fts_.h (FTS_NOATIME): New bit flag.
10309         (FTS_OPTIONMASK): Adjust.
10310         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10311         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10312
10313 2011-07-08  Bruno Haible  <bruno@clisp.org>
10314
10315         Tests for module 'thread'.
10316         * modules/thread-tests: New file.
10317         * tests/test-thread_self.c: New file.
10318         * tests/test-thread_create.cc: New file.
10319
10320 2011-07-08  Bruno Haible  <bruno@clisp.org>
10321
10322         thread: Avoid gcc warnings when using gl_thread_self().
10323         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10324         'void *'.
10325         (gl_thread_self_pointer): Update.
10326
10327 2011-07-07  Bruno Haible  <bruno@clisp.org>
10328
10329         signal-c++-tests: Check declaration of pthread_sigmask.
10330         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10331         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10332         $(LIB_PTHREAD_SIGMASK).
10333
10334 2011-07-07  Bruno Haible  <bruno@clisp.org>
10335
10336         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10337         * lib/signal.in.h (pthread_sigmask): Override if
10338         REPLACE_PTHREAD_SIGMASK is 1.
10339         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10340         REPLACE_PTHREAD_SIGMASK.
10341         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10342         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10343         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10344         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10345         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10346
10347 2011-07-07  Bruno Haible  <bruno@clisp.org>
10348
10349         pthread_sigmask: Ensure declaration in <signal.h>.
10350         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10351         include <pthread.h>.
10352         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10353         problem.
10354
10355 2011-07-07  Bruno Haible  <bruno@clisp.org>
10356
10357         pthread_sigmask: Document the module.
10358         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10359
10360 2011-07-07  Bruno Haible  <bruno@clisp.org>
10361
10362         pthread_sigmask: Follow gnulib conventions.
10363         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10364         gl_PTHREAD_SIGMASK.
10365         * modules/pthread_sigmask (configure.ac): Update.
10366
10367 2011-07-07  Bruno Haible  <bruno@clisp.org>
10368
10369         pthread_sigmask: Make declaration C++ safe.
10370         * lib/signal.in.h: In two special conditions, just do an #include_next.
10371         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10372         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10373         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10374         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10375         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10376         not REPLACE_PTHREAD_MASK.
10377         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10378         not REPLACE_PTHREAD_MASK.
10379         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10380
10381 2011-07-07  Bruno Haible  <bruno@clisp.org>
10382
10383         pthread_sigmask: Fix return value.
10384         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10385         * lib/pthread_sigmask.c: New file.
10386         * modules/pthread_sigmask (Files): Add it.
10387         (configure.ac): Invoke AC_LIBOBJ.
10388
10389 2011-07-07  Eric Blake  <eblake@redhat.com>
10390
10391         getopt: more portable argv creation
10392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10393         const, use char arrays rather than strings.
10394         Suggested by Paul Eggert.
10395
10396 2011-07-07  Bruno Haible  <bruno@clisp.org>
10397
10398         Tests for module 'sigprocmask'.
10399         * modules/sigprocmask-tests: New file.
10400         * tests/test-sigprocmask.c: New file.
10401
10402 2011-07-07  Bruno Haible  <bruno@clisp.org>
10403
10404         float tests: Tweak.
10405         * tests/test-float.c (main): Tweak skip message.
10406
10407 2011-07-07  Eric Blake  <eblake@redhat.com>
10408
10409         getopt: avoid compiler warning during configure
10410         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10411         assigning string literals to non-const pointer.
10412
10413         getopt-gnu: avoid crash in glibc getopt
10414         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10415         * tests/test-getopt.h (test_getopt): Enhance test.
10416         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10417         * doc/posix-functions/getopt.texi (getopt): Document it.
10418         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10419         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10420         Likewise.
10421
10422 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10423
10424         getopt: handle W; without long options in getopt [BZ #12922]
10425         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10426         but no long options are defined, just return 'W'.
10427
10428 2011-07-07  Bruno Haible  <bruno@clisp.org>
10429
10430         Avoid literal tabs.
10431         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10432         variable containing a tab instead of a literal tab.
10433         Reported by Jim Meyering.
10434
10435 2011-07-07  Bruno Haible  <bruno@clisp.org>
10436
10437         Comments.
10438         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10439
10440 2011-07-06  Bruno Haible  <bruno@clisp.org>
10441
10442         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10443         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10444         <winsock2.h>.
10445         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10446         lib/sys_socket.in.h.
10447         (close, gethostname): Hide declarations from <winsock2.h>.
10448         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10449         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10450         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10451         (select): Don't override if gnulib's <sys/select.h> was already
10452         included.
10453         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10454         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10455         setsockopt, shutdown, select): Tweak indentation.
10456
10457 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10458
10459         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10460         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10461         in an application that does not use the sys_select module.
10462
10463 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10464
10465         poll: do not return 0 on timeout=-1
10466         * lib/poll.c: Loop with yield if no events occured
10467
10468 2011-07-06  Eric Blake  <eblake@redhat.com>
10469
10470         pthread_sigmask: always replace when not using pthread
10471         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10472         replacement when using some threading other than pthread.  Fix
10473         logic bug.
10474
10475 2011-07-06  Bruno Haible  <bruno@clisp.org>
10476
10477         Comments.
10478         * m4/printf.m4: Update comments about mingw.
10479
10480 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10481
10482         sys_select: define sigset_t more portably
10483         * lib/sys_select.in.h: Always include <sys/types.h>, since
10484         we now need sigset_t and mingw defines it there.
10485         Include <signal.h> before split inclusion guard, to avoid
10486         mishaps on Solaris, whose <signal.h> eventually includes us.
10487         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10488         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10489         which come from ...
10490         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10491         gl_CHECK_TYPE_SIGSET_T.
10492         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10493         does the real work.
10494         * modules/sys_select (Depends-on): Add 'signal'.
10495
10496         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10497         Suggested by Bruno Haible.
10498
10499         pselect: Use pthread_sigmask, not sigprocmask.
10500         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10501         multithreaded apps better than sigprocmask does.
10502         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10503         sigprocmask directly.
10504
10505 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10506
10507         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10508         Don't #undef,  since we don't need any underlying pselect.
10509         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10510         (Depends-on): Add select.
10511         (Link): Add $(LIBSOCKET).
10512         These changes suggested by Bruno Haible.
10513
10514         pselect: document better
10515         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10516         * doc/posix-functions/pselect.texi (pselect): Document new module.
10517
10518         pthread_sigmask: new module
10519         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10520         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10521         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10522         This is done only as a macro; I don't know how well that'll
10523         work for C++.  Move <sys/types.h> include before the include_next,
10524         to avoid mishap on Solaris.
10525         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10526         * modules/signal (Makefile.am): Substitute the check's results.
10527         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10528
10529         test-pselect: new module
10530         * modules/pselect-tests, tests/test-pselect.c: New files.
10531         * tests/test-select.c, tests/test-sys_select-c++.cc:
10532         If TEST_PSELECT is defined, test pselect instead of testing select.
10533
10534         * tests/test-sys_select.c (sigset_t): Test for it, too.
10535         Suggested by Bruno Haible.
10536
10537 2011-07-05  Eric Blake  <eblake@redhat.com>
10538
10539         snprintf: guarantee %1$d, for libintl
10540         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10541         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10542         * doc/posix-functions/snprintf.texi (snprintf): Update.
10543         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10544         * tests/test-snprintf.c (main): Enhance test.
10545         * tests/test-vsnprintf.c (main): Likewise.
10546
10547 2011-07-05  Jim Meyering  <meyering@redhat.com>
10548
10549         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10550         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10551         per Bruno's request, to accommodate this idiom (no space after "#")
10552         even when the function is inside an #if block:
10553         char *
10554         gets (char *s)
10555         #undef gets
10556         {
10557           ...
10558         }
10559
10560 2011-07-04  Jim Meyering  <meyering@redhat.com>
10561
10562         maint: indent with spaces, not TABs, and add a rule to check this
10563         * tests/test-userspec.c: Indent with spaces, not TABs.
10564         * tests/test-argp.c: Likewise.
10565         * tests/test-c-stack2.sh: Likewise.
10566         * tests/test-parse-duration.sh: Likewise
10567         * m4/strtod.m4: Likewise.
10568         * m4/alloca.m4: Likewise.
10569         * m4/pselect.m4: Likewise.
10570         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10571
10572 2011-07-03  Jim Meyering  <meyering@redhat.com>
10573
10574         maint.mk: correct omissions in prohibit_argmatch_without_use check
10575         This rule would mistakenly report that argmatch.h is included without
10576         use even when both the argmatch and invalid_arg macro were used.
10577         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10578         of argmatch and invalid_arg.
10579
10580 2011-07-03  Bruno Haible  <bruno@clisp.org>
10581
10582         Comments about EINTR.
10583         * lib/safe-read.h: Explain the purpose of this module.
10584         * lib/safe-write.h: Likewise.
10585         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10586         module.
10587         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10588         module.
10589         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10590
10591 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10592
10593         xnanosleep: Rewrite to use new dtotimespec module.
10594         It has the conversion code that used to be in xnanosleep.
10595         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10596         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
10597         (TIME_T_MAX): Remove.
10598         (xnanosleep): Rewrite in terms of dtotimespec.
10599         * modules/xnanosleep (Depends-on): Add dtotimespec.
10600         Remove intprops, stdbool.
10601
10602         timespec-add, timespec-sub: new modules
10603         * lib/timespec.h (timespec_add, timespec_sub): New decls.
10604         * lib/timespec-add.c, lib/timespec-sub.c:
10605         * modules/timespec-add, modules/timespec-sub: New files.
10606
10607         dtotimespec: new module
10608         * lib/timespec.h (dtotimespec): New decl.
10609         * lib/dtotimespec.c, modules/dtotimespec: New files.
10610
10611         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
10612
10613         pselect: new module
10614         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
10615         (pselect): New decls.
10616         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
10617         since the standard pselect decl uses 'restrict'.
10618         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
10619         HAVE_PSELECT, REPLACE_PSELECT.
10620         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
10621         HAVE_PSELECT, REPLACE_PSELECT.
10622         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
10623
10624         sys_select: don't depend on sys_socket
10625         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
10626         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
10627         This fix works on GNU and GNU-like platforms, but has not been tested
10628         on native Windows.
10629         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
10630         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
10631         gl_HEADER_SYS_SOCKET.
10632         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
10633         gl_PREREQ_SYS_H_WINSOCK2.
10634
10635 2011-06-29  Eric Blake  <eblake@redhat.com>
10636
10637         pipe2: fix C89 compile problem
10638         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
10639         Reported by Bruno Haible.
10640
10641         pipe, pipe2: don't corrupt fd on error
10642         * lib/pipe.c (pipe): Leave fd unchanged on error.
10643         * lib/pipe2.c (pipe2): Likewise.
10644         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
10645         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10646
10647 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
10648
10649         mmap-anon: do not use regular expressions inadvertently
10650         * m4/mmap-anon.m4: Remove trailing period from strings sought
10651         in the output.
10652
10653 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
10654
10655         nanosleep: fix integer overflow problem
10656         * lib/nanosleep.c (my_usleep): Don't assume signed integer
10657         arithmetic wraps around on overflow.
10658
10659         nanosleep: simplify carrying
10660         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
10661         first call to the underyling nanosleep, not for the last one.
10662         This doesn't fix any bugs, but it simplifies the computation of
10663         the remaining delay.  Found while auditing integer overflow issues.
10664
10665         dup2: remove test for existence of fcntl
10666         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
10667         "#if HAVE_FCNTL", in the configure-time test program.
10668         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
10669         and therefore speeds up "configure" a bit.  Found while
10670         adding the dup2 module to Emacs.
10671
10672 2011-06-24  Eric Blake  <eblake@redhat.com>
10673
10674         maint.mk: enhance useless header checks
10675         * top/maint.mk (_sc_header_without_use): Check both include
10676         styles.
10677         (sc_prohibit_assert_without_use)
10678         (sc_prohibit_close_stream_without_use)
10679         (sc_prohibit_getopt_without_use)
10680         (sc_prohibit_quotearg_without_use)
10681         (sc_prohibit_quote_without_use)
10682         (sc_prohibit_long_options_without_use)
10683         (sc_prohibit_inttostr_without_use)
10684         (sc_prohibit_ignore_value_without_use)
10685         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
10686         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
10687         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
10688         (sc_prohibit_hash_pjw_without_use)
10689         (sc_prohibit_safe_read_without_use)
10690         (sc_prohibit_argmatch_without_use)
10691         (sc_prohibit_canonicalize_without_use)
10692         (sc_prohibit_root_dev_ino_without_use)
10693         (sc_prohibit_openat_without_use)
10694         (sc_prohibit_c_ctype_without_use)
10695         (sc_prohibit_signal_without_use)
10696         (sc_prohibit_stdio--_without_use)
10697         (sc_prohibit_stdio-safer_without_use)
10698         (sc_prohibit_strings_without_use)
10699         (sc_prohibit_intprops_without_use)
10700         (sc_prohibit_stddef_without_use)
10701         (sc_prohibit_xfreopen_without_use): Update clients.
10702
10703 2011-06-24  Jim Meyering  <meyering@redhat.com>
10704
10705         syntax-check: keep one maint.mk rule in sync with its header
10706         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
10707         of the bug Eric has just fixed, with today's commit 25e4c2ec.
10708         I prefer to avoid temporary files here, so use <(...), but that
10709         is not supported by /bin/sh, so...
10710         (SHELL): Define to /bin/bash.
10711
10712 2011-06-24  Eric Blake  <eblake@redhat.com>
10713
10714         maint.mk: update sc_prohibit_intprops_without_use
10715         * top/maint.mk (_intprops_names): Match recent changes.
10716
10717 2011-06-24  Bruno Haible  <bruno@clisp.org>
10718
10719         strerror-override: No-op tweak.
10720         * lib/strerror-override.h (strerror_override): Reorder conditions,
10721         for consistency with lib/strerror-override.c.
10722
10723 2011-06-23  Eric Blake  <eblake@redhat.com>
10724
10725         maint.mk: test further PATH_MAX issues
10726         * top/maint.mk (sc_prohibit_path_max_array): Rename...
10727         (sc_prohibit_path_max_allocation): ...and also test alloca.
10728         Suggested by Jim Meyering.
10729
10730 2011-06-22  Eric Blake  <eblake@redhat.com>
10731
10732         maint.mk: add syntax-check to avoid char[PATH_MAX]
10733         * top/maint.mk (sc_prohibit_path_max_array): New rule.
10734
10735         stat: be robust to PATH_MAX definition
10736         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
10737         * modules/stat (Depends-on): Add verify.
10738
10739         link: work around IRIX bug
10740         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10741         * lib/link.c (rpl_link): Work around it.
10742         * tests/test-link.h (test_link): Enhance test.
10743         * doc/posix-functions/link.texi (link): Document the bug.
10744
10745         getopt: silence clang warning
10746         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
10747         dereference.
10748         Reported by Gustavo Martin Domato.
10749
10750 2011-06-22  Jim Meyering  <meyering@redhat.com>
10751
10752         bootstrap: do not insert a blank line into each .gitignore file
10753         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
10754
10755 2011-06-21  Eric Blake  <eblake@redhat.com>
10756
10757         perror: test for output mismatch
10758         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
10759         perror on IRIX.
10760
10761         strerror_r: fix OpenBSD behavior on out-of-range
10762         * lib/strerror_r.c (strerror_r): Always use maximal string.
10763         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10764
10765         strerror_r: fix OpenBSD behavior on 0
10766         * lib/strerror-override.c (strerror_override): Also override 0
10767         when needed.
10768         * lib/strerror-override.h (strerror_override): Likewise.
10769         * lib/strerror.c (strerror): Simplify, now that 0 override is done
10770         earlier.
10771         * lib/strerror_r.c (strerror_r): Likewise.
10772         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
10773         behavior...
10774         (gl_FUNC_STRERROR_0): ...into new macro.
10775         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
10776         is overridden.
10777         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
10778         * modules/strerror-override (Files): Add strerror.m4.
10779         (configure.ac): Also provide override for 0 when needed.
10780         * doc/posix-functions/strerror.texi (strerror): Document this.
10781         * doc/posix-functions/perror.texi (perror): Likewise.
10782
10783         perror: adjust array size
10784         * modules/perror (Depends-on): Add strerror-override.
10785         * lib/perror.c (perror): Use it to avoid magic number.
10786
10787         strerror-override: reduce size
10788         * lib/strerror-override.c (strerror_override): Use fewer lines.
10789
10790 2011-06-20  Bruno Haible  <bruno@clisp.org>
10791
10792         pathmax: Ensure correct value for PATH_MAX on HP-UX.
10793         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
10794
10795 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10796
10797         alloca: port to compilers that can optimize like GCC 4.6.0
10798         * lib/alloca.c (find_stack_direction): New signature, taken from
10799         Autoconf git.  This works with GCC 4.6.0.  This code should never
10800         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
10801         be used with other compilers that optimize as well as GCC 4.6.0 does.
10802         (alloca): Adjust to new signature.
10803         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
10804         New macro, which patches Autoconf in a similar way.
10805
10806         c-stack: stop worrying about stack direction
10807         * lib/c-stack.c (find_stack_direction): Remove.
10808         (segv_handler): Don't worry about stack direction growth, as it's
10809         too much of a pain to configure this correctly, given how compilers
10810         are optimizing-away our stack-growth detection code.  Instead, assume
10811         that any access to just before or just after the stack is OK.
10812         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10813         Don't require AC_FUNC_ALLOCA; no longer needed.
10814
10815 2011-06-20  Eric Blake  <eblake@redhat.com>
10816
10817         test-stat: don't allocate PATH_MAX bytes
10818         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
10819         PATH_MAX-sized buffer.
10820         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
10821         * modules/stat-tests (Depends-on): Likewise.
10822         * tests/test-fstatat.c (includes): Drop pathmax.h.
10823         * tests/test-stat.c (includes): Likewise.
10824         Reported by Bruno Haible.
10825
10826 2011-06-20  Bruno Haible  <bruno@clisp.org>
10827
10828         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
10829         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
10830         * lib/float.c: New file.
10831         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
10832         REPLACE_FLOAT_LDBL.
10833         * modules/float (Files): Add lib/float.c.
10834         (configure.ac): Invoke AC_LIBOBJ.
10835         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
10836
10837 2011-06-20  Bruno Haible  <bruno@clisp.org>
10838
10839         Tests for module 'float'.
10840         * modules/float-tests: New file.
10841         * tests/test-float.c: New file.
10842
10843 2011-06-19  Bruno Haible  <bruno@clisp.org>
10844
10845         isinf: Coding style.
10846         * lib/isinf.c: Use GNU coding style.
10847
10848 2011-06-19  Bruno Haible  <bruno@clisp.org>
10849
10850         linkat test: Avoid test failure on AIX 7.1.
10851         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
10852         * tests/test-link.h (test_link): Likewise.
10853
10854 2011-06-19  Bruno Haible  <bruno@clisp.org>
10855
10856         pread test: Avoid test failure on OpenBSD 4.9.
10857         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
10858
10859 2011-06-19  Bruno Haible  <bruno@clisp.org>
10860
10861         sprintf-posix: Fix test failure on AIX 7.1.
10862         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
10863         * doc/posix-functions/dprintf.texi: Mention limited precision problem
10864         on AIX.
10865         * doc/posix-functions/fprintf.texi: Likewise.
10866         * doc/posix-functions/printf.texi: Likewise.
10867         * doc/posix-functions/snprintf.texi: Likewise.
10868         * doc/posix-functions/sprintf.texi: Likewise.
10869         * doc/posix-functions/vdprintf.texi: Likewise.
10870         * doc/posix-functions/vfprintf.texi: Likewise.
10871         * doc/posix-functions/vprintf.texi: Likewise.
10872         * doc/posix-functions/vsnprintf.texi: Likewise.
10873         * doc/posix-functions/vsprintf.texi: Likewise.
10874
10875 2011-06-19  Bruno Haible  <bruno@clisp.org>
10876
10877         roundl-ieee: Fix test failure on AIX 7.1.
10878         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
10879         * doc/posix-functions/roundl.texi: Mention problem with negative
10880         arguments.
10881
10882 2011-06-19  Bruno Haible  <bruno@clisp.org>
10883
10884         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10885         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
10886         * doc/posix-functions/round.texi: Mention problem with negative
10887         arguments.
10888         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
10889
10890 2011-06-19  Bruno Haible  <bruno@clisp.org>
10891
10892         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10893         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
10894         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
10895         * doc/posix-functions/roundf.texi: Mention problem with negative
10896         arguments.
10897         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
10898
10899 2011-06-19  Bruno Haible  <bruno@clisp.org>
10900
10901         ceilf-ieee: Work around bug on MacOS X 10.5.
10902         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
10903
10904         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
10905         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
10906         IEEE compliant, avoid compiler optimizations.
10907         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10908         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10909         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10910         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10911         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10912         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10913         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10914         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10915         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10916         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10917
10918 2011-06-19  Bruno Haible  <bruno@clisp.org>
10919
10920         ceilf-ieee: Work around bug on AIX 7.1.
10921         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
10922         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
10923
10924 2011-06-19  Bruno Haible  <bruno@clisp.org>
10925
10926         ceil-ieee: Work around bug on AIX 7.1.
10927         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
10928         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
10929
10930 2011-06-18  Bruno Haible  <bruno@clisp.org>
10931
10932         fsync test: Avoid test failure on MacOS X and AIX.
10933         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
10934         EINVAL.
10935
10936 2011-06-18  Bruno Haible  <bruno@clisp.org>
10937
10938         openat, fdopendir tests: Fix link errors.
10939         * modules/openat-tests (Depends-on): Add progname.
10940         * modules/fdopendir-tests (Depends-on): Likewise.
10941         * tests/test-fchownat.c: Include progname.h.
10942         (main): Call set_program_name.
10943         * tests/test-fstatat.c: Include progname.h.
10944         (main): Call set_program_name.
10945         * tests/test-mkdirat.c: Include progname.h.
10946         (main): Call set_program_name.
10947         * tests/test-openat.c: Include progname.h.
10948         (main): Call set_program_name.
10949         * tests/test-unlinkat.c: Include progname.h.
10950         (main): Call set_program_name.
10951         * tests/test-fdopendir.c: Include progname.h.
10952         (main): Call set_program_name.
10953
10954 2011-06-18  Bruno Haible  <bruno@clisp.org>
10955
10956         Doc update.
10957         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10958         HP-UX.
10959         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10960
10961 2011-06-18  Bruno Haible  <bruno@clisp.org>
10962
10963         getcwd tests: Avoid compilation error on HP-UX 11.31.
10964         * modules/getcwd-tests (Depends-on): Add pathmax.
10965         * tests/test-getcwd.c: Include pathmax.h.
10966
10967 2011-06-18  Bruno Haible  <bruno@clisp.org>
10968
10969         isfinite, isinf: Fix link error on AIX 6 and 7.
10970         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10971         needed, also test the macro with a 'float' argument.
10972         * m4/isinf.m4 (gl_ISINF): Likewise.
10973
10974 2011-06-18  Bruno Haible  <bruno@clisp.org>
10975
10976         getloadavg: Don't clobber LIBS. Regression from previous commit.
10977         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10978         AC_CHECK_LIB from here...
10979         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10980         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10981         gl_func_getloadavg_done.
10982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10983
10984 2011-06-18  Bruno Haible  <bruno@clisp.org>
10985
10986         clean-temp: Improve documentation.
10987         * lib/clean-temp.h: Explain better how to use this module.
10988         Reported by John Darrington <john@darrington.wattle.id.au>.
10989
10990 2011-06-17  Bruno Haible  <bruno@clisp.org>
10991
10992         pread, pwrite: Avoid cc warning on AIX.
10993         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10994         (pwrite): Likewise.
10995
10996 2011-06-17  Bruno Haible  <bruno@clisp.org>
10997
10998         spawn-pipe tests: Fix link error.
10999         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11000         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11001
11002 2011-06-17  Bruno Haible  <bruno@clisp.org>
11003
11004         Tests: Remove unnecessary dependency.
11005         * modules/canonicalize-tests (Depends-on): Remove progname.
11006         * modules/chown-tests (Depends-on): Likewise.
11007         * modules/dirname-tests (Depends-on): Likewise.
11008         * modules/fdopendir-tests (Depends-on): Likewise.
11009         * modules/fdutimensat-tests (Depends-on): Likewise.
11010         * modules/hash-tests (Depends-on): Likewise.
11011         * modules/lchown-tests (Depends-on): Likewise.
11012         * modules/linkat-tests (Depends-on): Likewise.
11013         * modules/renameat-tests (Depends-on): Likewise.
11014         * modules/spawn-pipe-tests (Depends-on): Likewise.
11015         * modules/utimensat-tests (Depends-on): Likewise.
11016
11017 2011-06-17  Bruno Haible  <bruno@clisp.org>
11018
11019         spawn-pipe tests: Fix link error.
11020         * tests/test-spawn-pipe-child.c: Undefine fflush.
11021
11022 2011-06-17  Bruno Haible  <bruno@clisp.org>
11023
11024         Fix tests link errors.
11025         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11026         * modules/chown-tests (Makefile.am): Don't link test-chown with
11027         LIBINTL.
11028         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11029         LIBINTL.
11030         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11031         LIBINTL.
11032         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11033         LIBINTL.
11034
11035 2011-06-16  Bruno Haible  <bruno@clisp.org>
11036
11037         crypto/gc-sha1: Fix recent regression.
11038         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11039         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11040
11041         crypto/gc-md5: Fix recent regression.
11042         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11043
11044         crypto/gc-md4: Fix recent regression.
11045         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11046         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11047
11048         crypto/gc-arctwo: Fix recent regression.
11049         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11050         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11051
11052         crypto/gc-rijndael: Fix recent regression.
11053         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11054         (configure.ac): Invoke AC_LIBOBJ here.
11055         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11056         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11057
11058         crypto/gc-hmac-sha1: Fix recent regression.
11059         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11060         (configure.ac): Invoke AC_LIBOBJ here.
11061         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11063
11064         crypto/gc-hmac-md5: Fix recent regression.
11065         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11066         (configure.ac): Invoke AC_LIBOBJ here.
11067         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11068         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11069
11070         crypto/gc-des: Fix recent regression.
11071         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11072         (configure.ac): Invoke AC_LIBOBJ here.
11073         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11074         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11075
11076         crypto/gc-arcfour: Fix recent regression.
11077         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11078         (configure.ac): Invoke AC_LIBOBJ here.
11079         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11080         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11081
11082 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11083
11084         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11085         After the 2011-05-21 change, this macro requires
11086         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11087         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11088
11089 2011-06-16  Bruno Haible  <bruno@clisp.org>
11090
11091         fprintftime: Move AC_LIBOBJ invocations to module description.
11092         * m4/fprintftime.m4: Remove file.
11093         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11094         (configure.ac): Remove gl_FPRINTFTIME call.
11095         (Makefile.am): Augment lib_SOURCES.
11096         Reported by Jim Meyering.
11097
11098 2011-06-16  Bruno Haible  <bruno@clisp.org>
11099
11100         tmpfile-safer: Finish 2011-05-23 commit.
11101         * m4/stdio-safer.m4: Really remove file.
11102         Reported by Jim Meyering.
11103
11104 2011-06-16  Bruno Haible  <bruno@clisp.org>
11105
11106         syntax-check: Fix typo.
11107         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11108         printf-posix.m4.
11109         Reported by Jim Meyering.
11110
11111 2011-06-13  Jim Meyering  <meyering@redhat.com>
11112
11113         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11114         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11115
11116 2011-05-23  Bruno Haible  <bruno@clisp.org>
11117
11118         yesno: Move AC_LIBOBJ invocations to module description.
11119         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11120         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11121
11122 2011-05-23  Bruno Haible  <bruno@clisp.org>
11123
11124         xstrtol: Move AC_LIBOBJ invocations to module description.
11125         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11126         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11127
11128 2011-05-23  Bruno Haible  <bruno@clisp.org>
11129
11130         xstrtold: Move AC_LIBOBJ invocations to module description.
11131         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11132         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11133
11134 2011-05-23  Bruno Haible  <bruno@clisp.org>
11135
11136         xstrtod: Move AC_LIBOBJ invocations to module description.
11137         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11138         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11139
11140 2011-05-23  Bruno Haible  <bruno@clisp.org>
11141
11142         xnanosleep: Move AC_LIBOBJ invocations to module description.
11143         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11144         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11145
11146 2011-05-23  Bruno Haible  <bruno@clisp.org>
11147
11148         xgetcwd: Move AC_LIBOBJ invocations to module description.
11149         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11150         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11151
11152 2011-05-23  Bruno Haible  <bruno@clisp.org>
11153
11154         xalloc: Move AC_LIBOBJ invocations to module description.
11155         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11156         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11157
11158 2011-05-23  Bruno Haible  <bruno@clisp.org>
11159
11160         write-any-file: Move AC_LIBOBJ invocations to module description.
11161         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11162         invocation.
11163         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11164
11165 2011-05-23  Bruno Haible  <bruno@clisp.org>
11166
11167         utimens: Move AC_LIBOBJ invocations to module description.
11168         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11169         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11170
11171 2011-05-23  Bruno Haible  <bruno@clisp.org>
11172
11173         utimecmp: Move AC_LIBOBJ invocations to module description.
11174         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11175         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11176
11177 2011-05-23  Bruno Haible  <bruno@clisp.org>
11178
11179         userspec: Move AC_LIBOBJ invocations to module description.
11180         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11181         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11182
11183 2011-05-23  Bruno Haible  <bruno@clisp.org>
11184
11185         unlinkdir: Move AC_LIBOBJ invocations to module description.
11186         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11187         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11188
11189 2011-05-23  Bruno Haible  <bruno@clisp.org>
11190
11191         unistd-safer: Move AC_LIBOBJ invocations to module description.
11192         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11193         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11194
11195 2011-05-23  Bruno Haible  <bruno@clisp.org>
11196
11197         tempname: Move AC_LIBOBJ invocations to module description.
11198         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11199         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11200
11201 2011-05-23  Bruno Haible  <bruno@clisp.org>
11202
11203         strftime: Move AC_LIBOBJ invocations to module description.
11204         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11205         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11206
11207 2011-05-23  Bruno Haible  <bruno@clisp.org>
11208
11209         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11210         * m4/stdlib-safer.m4: Remove file.
11211         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11212         (configure.ac): Remove gl_STDLIB_SAFER call.
11213         (Makefile.am): Augment lib_SOURCES.
11214
11215 2011-05-23  Bruno Haible  <bruno@clisp.org>
11216
11217         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11218         * m4/stdio-safer.m4: Remove file.
11219         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11220         (configure.ac): Remove gl_TMPFILE_SAFER call.
11221         (Makefile.am): Augment lib_SOURCES.
11222
11223 2011-05-23  Bruno Haible  <bruno@clisp.org>
11224
11225         popen-safer: Move AC_LIBOBJ invocations to module description.
11226         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11227         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11228         (configure.ac): Remove gl_POPEN_SAFER call.
11229         (Makefile.am): Augment lib_SOURCES.
11230
11231 2011-05-23  Bruno Haible  <bruno@clisp.org>
11232
11233         freopen-safer: Move AC_LIBOBJ invocations to module description.
11234         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11235         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11236         (configure.ac): Remove gl_FREOPEN_SAFER call.
11237         (Makefile.am): Augment lib_SOURCES.
11238
11239 2011-05-23  Bruno Haible  <bruno@clisp.org>
11240
11241         fopen-safer: Move AC_LIBOBJ invocations to module description.
11242         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11243         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11244         (configure.ac): Remove gl_FOPEN_SAFER call.
11245         (Makefile.am): Augment lib_SOURCES.
11246
11247 2011-05-23  Bruno Haible  <bruno@clisp.org>
11248
11249         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11250         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11251         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11252
11253 2011-05-23  Bruno Haible  <bruno@clisp.org>
11254
11255         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11256         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11257         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11258
11259 2011-05-23  Bruno Haible  <bruno@clisp.org>
11260
11261         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11262         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11263         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11264
11265 2011-05-23  Bruno Haible  <bruno@clisp.org>
11266
11267         settime: Move AC_LIBOBJ invocations to module description.
11268         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11269         * modules/settime (Makefile.am): Augment lib_SOURCES.
11270
11271 2011-05-23  Bruno Haible  <bruno@clisp.org>
11272
11273         savedir: Move AC_LIBOBJ invocations to module description.
11274         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11275         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11276
11277 2011-05-23  Bruno Haible  <bruno@clisp.org>
11278
11279         save-cwd: Move AC_LIBOBJ invocations to module description.
11280         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11281         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11282
11283 2011-05-23  Bruno Haible  <bruno@clisp.org>
11284
11285         same: Move AC_LIBOBJ invocations to module description.
11286         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11287         * modules/same (Makefile.am): Augment lib_SOURCES.
11288
11289 2011-05-23  Bruno Haible  <bruno@clisp.org>
11290
11291         safe-write: Move AC_LIBOBJ invocations to module description.
11292         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11293         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11294         instead of gl_SAFE_WRITE.
11295         (Makefile.am): Augment lib_SOURCES.
11296
11297 2011-05-23  Bruno Haible  <bruno@clisp.org>
11298
11299         safe-read: Move AC_LIBOBJ invocations to module description.
11300         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11301         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11302         of gl_SAFE_READ.
11303         (Makefile.am): Augment lib_SOURCES.
11304
11305 2011-05-23  Bruno Haible  <bruno@clisp.org>
11306
11307         safe-alloc: Move AC_LIBOBJ invocations to module description.
11308         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11309         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11310
11311 2011-05-23  Bruno Haible  <bruno@clisp.org>
11312
11313         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11314         * m4/rijndael.m4: Remove file.
11315         * modules/crypto/rijndael (Files): Remove it.
11316         (configure.ac): Remove gl_RIJNDAEL call.
11317         (Makefile.am): Augment lib_SOURCES.
11318
11319 2011-05-23  Bruno Haible  <bruno@clisp.org>
11320
11321         readtokens: Move AC_LIBOBJ invocations to module description.
11322         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11323         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11324
11325 2011-05-23  Bruno Haible  <bruno@clisp.org>
11326
11327         read-file: Move AC_LIBOBJ invocations to module description.
11328         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11329         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11330         of gl_FUNC_READ_FILE.
11331         (Makefile.am): Augment lib_SOURCES.
11332
11333 2011-05-23  Bruno Haible  <bruno@clisp.org>
11334
11335         quotearg: Move AC_LIBOBJ invocations to module description.
11336         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11337         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11338
11339 2011-05-23  Bruno Haible  <bruno@clisp.org>
11340
11341         quote: Move AC_LIBOBJ invocations to module description.
11342         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11343         * modules/quote (Makefile.am): Augment lib_SOURCES.
11344
11345 2011-05-23  Bruno Haible  <bruno@clisp.org>
11346
11347         posixver: Move AC_LIBOBJ invocations to module description.
11348         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11349         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11350
11351 2011-05-23  Bruno Haible  <bruno@clisp.org>
11352
11353         posixtm: Move AC_LIBOBJ invocations to module description.
11354         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11355         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11356
11357 2011-05-23  Bruno Haible  <bruno@clisp.org>
11358
11359         physmem: Move AC_LIBOBJ invocations to module description.
11360         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11361         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11362
11363 2011-05-23  Bruno Haible  <bruno@clisp.org>
11364
11365         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11366         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11367         invocation.
11368         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11369
11370 2011-05-23  Bruno Haible  <bruno@clisp.org>
11371
11372         mpsort: Move AC_LIBOBJ invocations to module description.
11373         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11374         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11375
11376 2011-05-23  Bruno Haible  <bruno@clisp.org>
11377
11378         modechange: Move AC_LIBOBJ invocations to module description.
11379         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11380         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11381
11382 2011-05-23  Bruno Haible  <bruno@clisp.org>
11383
11384         mkdir-p: Move AC_LIBOBJ invocations to module description.
11385         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11386         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11387
11388 2011-05-23  Bruno Haible  <bruno@clisp.org>
11389
11390         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11391         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11392         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11393
11394 2011-05-23  Bruno Haible  <bruno@clisp.org>
11395
11396         mgetgroups: Move AC_LIBOBJ invocations to module description.
11397         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11398         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11399
11400 2011-05-23  Bruno Haible  <bruno@clisp.org>
11401
11402         memxor: Move AC_LIBOBJ invocations to module description.
11403         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11404         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11405
11406 2011-05-23  Bruno Haible  <bruno@clisp.org>
11407
11408         memcoll: Move AC_LIBOBJ invocations to module description.
11409         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11410         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11411
11412 2011-05-23  Bruno Haible  <bruno@clisp.org>
11413
11414         memcasecmp: Move AC_LIBOBJ invocations to module description.
11415         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11416         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11417
11418 2011-05-23  Bruno Haible  <bruno@clisp.org>
11419
11420         crypto/md5: Move AC_LIBOBJ invocations to module description.
11421         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11422         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11423
11424 2011-05-23  Bruno Haible  <bruno@clisp.org>
11425
11426         crypto/md4: Move AC_LIBOBJ invocations to module description.
11427         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11428         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11429
11430 2011-05-23  Bruno Haible  <bruno@clisp.org>
11431
11432         crypto/md2: Move AC_LIBOBJ invocations to module description.
11433         * m4/md2.m4: Remove file.
11434         * modules/crypto/md2 (Files): Remove it.
11435         (configure.ac): Remove gl_MD2 call.
11436         (Makefile.am): Augment lib_SOURCES.
11437
11438 2011-05-23  Bruno Haible  <bruno@clisp.org>
11439
11440         long-options: Move AC_LIBOBJ invocations to module description.
11441         * m4/long-options.m4: Remove file.
11442         * modules/long-options (Files): Remove it.
11443         (configure.ac): Remove gl_LONG_OPTIONS call.
11444         (Makefile.am): Augment lib_SOURCES.
11445
11446 2011-05-23  Bruno Haible  <bruno@clisp.org>
11447
11448         i-ring: Move AC_LIBOBJ invocations to module description.
11449         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11450         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11451
11452 2011-05-23  Bruno Haible  <bruno@clisp.org>
11453
11454         idcache: Move AC_LIBOBJ invocations to module description.
11455         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11456         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11457
11458 2011-05-23  Bruno Haible  <bruno@clisp.org>
11459
11460         human: Move AC_LIBOBJ invocations to module description.
11461         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11462         * modules/human (Makefile.am): Augment lib_SOURCES.
11463
11464 2011-05-23  Bruno Haible  <bruno@clisp.org>
11465
11466         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11467         * m4/hmac-sha1.m4: Remove file.
11468         * modules/crypto/hmac-sha1 (Files): Remove it.
11469         (configure.ac): Remove gl_HMAC_SHA1 call.
11470         (Makefile.am): Augment lib_SOURCES.
11471
11472 2011-05-23  Bruno Haible  <bruno@clisp.org>
11473
11474         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11475         * m4/hmac-md5.m4: Remove file.
11476         * modules/crypto/hmac-md5 (Files): Remove it.
11477         (configure.ac): Remove gl_HMAC_MD5 call.
11478         (Makefile.am): Augment lib_SOURCES.
11479
11480 2011-05-23  Bruno Haible  <bruno@clisp.org>
11481
11482         hash: Move AC_LIBOBJ invocations to module description.
11483         * m4/hash.m4: Remove file.
11484         * modules/hash (Files): Remove it.
11485         (configure.ac): Remove gl_HASH call.
11486         (Makefile.am): Augment lib_SOURCES.
11487
11488 2011-05-23  Bruno Haible  <bruno@clisp.org>
11489
11490         hard-locale: Move AC_LIBOBJ invocations to module description.
11491         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11492         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11493
11494 2011-05-23  Bruno Haible  <bruno@clisp.org>
11495
11496         getugroups: Move AC_LIBOBJ invocations to module description.
11497         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11498         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11499
11500 2011-05-23  Bruno Haible  <bruno@clisp.org>
11501
11502         gettime: Move AC_LIBOBJ invocations to module description.
11503         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11504         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11505
11506 2011-05-23  Bruno Haible  <bruno@clisp.org>
11507
11508         getndelim2: Move AC_LIBOBJ invocations to module description.
11509         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11510         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11511
11512 2011-05-23  Bruno Haible  <bruno@clisp.org>
11513
11514         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11515         * m4/gc-pbkdf2-sha1.m4: Remove file.
11516         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11517         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11518         (Makefile.am): Augment lib_SOURCES.
11519
11520 2011-05-23  Bruno Haible  <bruno@clisp.org>
11521
11522         fts: Move AC_LIBOBJ invocations to module description.
11523         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11524         * modules/fts (configure.ac): ... to here.
11525
11526 2011-05-23  Bruno Haible  <bruno@clisp.org>
11527
11528         file-type: Move AC_LIBOBJ invocations to module description.
11529         * m4/file-type.m4: Remove file.
11530         * modules/file-type (Files): Remove it.
11531         (configure.ac): Remove gl_FILE_TYPE call.
11532         (Makefile.am): Augment lib_SOURCES.
11533
11534 2011-05-23  Bruno Haible  <bruno@clisp.org>
11535
11536         filenamecat*: Respect rules for use of AC_LIBOBJ.
11537         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11538         Remove AC_LIBOBJ invocation.
11539         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11540         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11541
11542 2011-05-23  Bruno Haible  <bruno@clisp.org>
11543
11544         filemode: Move AC_LIBOBJ invocations to module description.
11545         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11546         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11547
11548 2011-05-23  Bruno Haible  <bruno@clisp.org>
11549
11550         openat-safer: Move AC_LIBOBJ invocations to module description.
11551         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11552         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11553
11554 2011-05-23  Bruno Haible  <bruno@clisp.org>
11555
11556         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11557         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11558         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11559
11560 2011-05-23  Bruno Haible  <bruno@clisp.org>
11561
11562         exclude: Move AC_LIBOBJ invocations to module description.
11563         * m4/exclude.m4: Remove file.
11564         * modules/exclude (Files): Remove it.
11565         (configure.ac): Remove gl_EXCLUDE call.
11566         (Makefile.am): Augment lib_SOURCES.
11567
11568 2011-05-23  Bruno Haible  <bruno@clisp.org>
11569
11570         dirname*: Respect rules for use of AC_LIBOBJ.
11571         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11572         invocations.
11573         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11574         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11575
11576 2011-05-23  Bruno Haible  <bruno@clisp.org>
11577
11578         dirent-safer: Move AC_LIBOBJ invocations to module description.
11579         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11580         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11581
11582 2011-05-23  Bruno Haible  <bruno@clisp.org>
11583
11584         crypto/des: Move AC_LIBOBJ invocations to module description.
11585         * m4/des.m4: Remove file.
11586         * modules/crypto/des (Files): Remove it.
11587         (configure.ac): Remove gl_DES call.
11588         (Makefile.am): Augment lib_SOURCES.
11589
11590 2011-05-23  Bruno Haible  <bruno@clisp.org>
11591
11592         cycle-check: Move AC_LIBOBJ invocations to module description.
11593         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11594         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11595
11596 2011-05-23  Bruno Haible  <bruno@clisp.org>
11597
11598         c-strtold: Move AC_LIBOBJ invocations to module description.
11599         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
11600         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
11601
11602 2011-05-23  Bruno Haible  <bruno@clisp.org>
11603
11604         c-strtod: Move AC_LIBOBJ invocations to module description.
11605         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
11606         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
11607
11608 2011-05-23  Bruno Haible  <bruno@clisp.org>
11609
11610         crc: Move AC_LIBOBJ invocations to module description.
11611         * m4/crc.m4: Remove file.
11612         * modules/crc (Files): Remove it.
11613         (configure.ac): Remove gl_CRC call.
11614         (Makefile.am): Augment lib_SOURCES.
11615
11616 2011-05-23  Bruno Haible  <bruno@clisp.org>
11617
11618         close-stream: Move AC_LIBOBJ invocations to module description.
11619         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
11620         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
11621
11622 2011-05-23  Bruno Haible  <bruno@clisp.org>
11623
11624         closeout: Move AC_LIBOBJ invocations to module description.
11625         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
11626         * modules/closeout (Makefile.am): Augment lib_SOURCES.
11627
11628 2011-05-23  Bruno Haible  <bruno@clisp.org>
11629
11630         closein: Move AC_LIBOBJ invocations to module description.
11631         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
11632         * modules/closein (Makefile.am): Augment lib_SOURCES.
11633
11634 2011-05-23  Bruno Haible  <bruno@clisp.org>
11635
11636         cloexec: Move AC_LIBOBJ invocations to module description.
11637         * m4/cloexec.m4: Remove file.
11638         * modules/cloexec (Files): Remove it.
11639         (configure.ac): Remove gl_CLOEXEC call.
11640         (Makefile.am): Augment lib_SOURCES.
11641
11642 2011-05-23  Bruno Haible  <bruno@clisp.org>
11643
11644         check-version: Move AC_LIBOBJ invocations to module description.
11645         * m4/check-version.m4: Remove file.
11646         * modules/check-version (Files): Remove it.
11647         (configure.ac): Remove gl_CHECK_VERSION call.
11648         (Makefile.am): Augment lib_SOURCES.
11649
11650 2011-05-23  Bruno Haible  <bruno@clisp.org>
11651
11652         chdir-safer: Move AC_LIBOBJ invocations to module description.
11653         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
11654         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
11655
11656 2011-05-23  Bruno Haible  <bruno@clisp.org>
11657
11658         canonicalize: Move AC_LIBOBJ invocations to module description.
11659         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
11660         AC_LIBOBJ invocation.
11661         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
11662
11663 2011-05-23  Bruno Haible  <bruno@clisp.org>
11664
11665         canon-host: Move AC_LIBOBJ invocations to module description.
11666         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
11667         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
11668         instead of gl_CANON_HOST.
11669         (Makefile.am): Augment lib_SOURCES.
11670
11671 2011-05-23  Bruno Haible  <bruno@clisp.org>
11672
11673         backupfile: Move AC_LIBOBJ invocations to module description.
11674         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
11675         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
11676
11677 2011-05-23  Bruno Haible  <bruno@clisp.org>
11678
11679         argmatch: Move AC_LIBOBJ invocations to module description.
11680         * m4/argmatch.m4: Remove file.
11681         * modules/argmatch (Files): Remove it.
11682         (configure.ac): Remove gl_ARGMATCH call.
11683         (Makefile.am): Augment lib_SOURCES.
11684
11685 2011-05-23  Bruno Haible  <bruno@clisp.org>
11686
11687         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
11688         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
11689         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
11690
11691 2011-05-23  Bruno Haible  <bruno@clisp.org>
11692
11693         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
11694         * m4/arcfour.m4: Remove file.
11695         * modules/crypto/arcfour (Files): Remove it.
11696         (configure.ac): Remove gl_ARCFOUR call.
11697         (Makefile.am): Augment lib_SOURCES.
11698
11699 2011-05-22  Bruno Haible  <bruno@clisp.org>
11700
11701         write: Move AC_LIBOBJ invocations to module description.
11702         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
11703         * modules/write (configure.ac): ... to here.
11704
11705 2011-05-22  Bruno Haible  <bruno@clisp.org>
11706
11707         wmemset: Move AC_LIBOBJ invocations to module description.
11708         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11709         here...
11710         * modules/wmemset (configure.ac): ... to here.
11711
11712 2011-05-22  Bruno Haible  <bruno@clisp.org>
11713
11714         wmemmove: Move AC_LIBOBJ invocations to module description.
11715         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
11716         here...
11717         * modules/wmemmove (configure.ac): ... to here.
11718
11719 2011-05-22  Bruno Haible  <bruno@clisp.org>
11720
11721         wmemcpy: Move AC_LIBOBJ invocations to module description.
11722         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
11723         here...
11724         * modules/wmemcpy (configure.ac): ... to here.
11725
11726 2011-05-22  Bruno Haible  <bruno@clisp.org>
11727
11728         wmemcmp: Move AC_LIBOBJ invocations to module description.
11729         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
11730         here...
11731         * modules/wmemcmp (configure.ac): ... to here.
11732
11733 2011-05-22  Bruno Haible  <bruno@clisp.org>
11734
11735         wmemchr: Move AC_LIBOBJ invocations to module description.
11736         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
11737         here...
11738         * modules/wmemchr (configure.ac): ... to here.
11739
11740 2011-05-22  Bruno Haible  <bruno@clisp.org>
11741
11742         wcswidth: Move AC_LIBOBJ invocations to module description.
11743         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
11744         here...
11745         * modules/wcswidth (configure.ac): ... to here.
11746
11747 2011-05-22  Bruno Haible  <bruno@clisp.org>
11748
11749         wcwidth: Respect rules for use of AC_LIBOBJ.
11750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
11751         invocation from here...
11752         * modules/wcwidth (configure.ac): ... to here.
11753         (Depends-on): Update conditions.
11754
11755 2011-05-22  Bruno Haible  <bruno@clisp.org>
11756
11757         wctype: Move AC_LIBOBJ invocations to module description.
11758         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
11759         invocation from here...
11760         * modules/wctype (configure.ac): ... to here.
11761         (Depends-on): Update conditions.
11762
11763 2011-05-22  Bruno Haible  <bruno@clisp.org>
11764
11765         wctrans: Move AC_LIBOBJ invocations to module description.
11766         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
11767         invocation from here...
11768         * modules/wctrans (configure.ac): ... to here.
11769
11770 2011-05-22  Bruno Haible  <bruno@clisp.org>
11771
11772         wctomb: Move AC_LIBOBJ invocations to module description.
11773         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
11774         invocations from here...
11775         * modules/wctomb (configure.ac): ... to here.
11776
11777 2011-05-22  Bruno Haible  <bruno@clisp.org>
11778
11779         wctob: Move AC_LIBOBJ invocations to module description.
11780         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
11781         gl_PREREQ_WCTOB invocations from here...
11782         * modules/wctob (configure.ac): ... to here.
11783         (Depends-on): Update conditions.
11784
11785 2011-05-22  Bruno Haible  <bruno@clisp.org>
11786
11787         wcsxfrm: Move AC_LIBOBJ invocations to module description.
11788         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
11789         here...
11790         * modules/wcsxfrm (configure.ac): ... to here.
11791
11792 2011-05-22  Bruno Haible  <bruno@clisp.org>
11793
11794         wcstok: Move AC_LIBOBJ invocations to module description.
11795         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
11796         * modules/wcstok (configure.ac): ... to here.
11797
11798 2011-05-22  Bruno Haible  <bruno@clisp.org>
11799
11800         wcsstr: Move AC_LIBOBJ invocations to module description.
11801         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11802         * modules/wcsstr (configure.ac): ... to here.
11803
11804 2011-05-22  Bruno Haible  <bruno@clisp.org>
11805
11806         wcsspn: Move AC_LIBOBJ invocations to module description.
11807         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
11808         * modules/wcsspn (configure.ac): ... to here.
11809
11810 2011-05-22  Bruno Haible  <bruno@clisp.org>
11811
11812         wcsrtombs: Move AC_LIBOBJ invocations to module description.
11813         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
11814         gl_PREREQ_WCSRTOMBS invocations from here...
11815         * modules/wcsrtombs (configure.ac): ... to here.
11816
11817 2011-05-22  Bruno Haible  <bruno@clisp.org>
11818
11819         wcsrchr: Move AC_LIBOBJ invocations to module description.
11820         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
11821         here...
11822         * modules/wcsrchr (configure.ac): ... to here.
11823
11824 2011-05-22  Bruno Haible  <bruno@clisp.org>
11825
11826         wcspbrk: Move AC_LIBOBJ invocations to module description.
11827         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
11828         here...
11829         * modules/wcspbrk (configure.ac): ... to here.
11830
11831 2011-05-22  Bruno Haible  <bruno@clisp.org>
11832
11833         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
11834         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
11835         gl_PREREQ_WCSNRTOMBS invocations from here...
11836         * modules/wcsnrtombs (configure.ac): ... to here.
11837
11838 2011-05-22  Bruno Haible  <bruno@clisp.org>
11839
11840         wcsnlen: Move AC_LIBOBJ invocations to module description.
11841         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
11842         here...
11843         * modules/wcsnlen (configure.ac): ... to here.
11844
11845 2011-05-22  Bruno Haible  <bruno@clisp.org>
11846
11847         wcsncpy: Move AC_LIBOBJ invocations to module description.
11848         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
11849         here...
11850         * modules/wcsncpy (configure.ac): ... to here.
11851
11852 2011-05-22  Bruno Haible  <bruno@clisp.org>
11853
11854         wcsncmp: Move AC_LIBOBJ invocations to module description.
11855         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
11856         here...
11857         * modules/wcsncmp (configure.ac): ... to here.
11858
11859 2011-05-22  Bruno Haible  <bruno@clisp.org>
11860
11861         wcsncat: Move AC_LIBOBJ invocations to module description.
11862         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
11863         here...
11864         * modules/wcsncat (configure.ac): ... to here.
11865
11866 2011-05-22  Bruno Haible  <bruno@clisp.org>
11867
11868         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
11869         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
11870         from here...
11871         * modules/wcsncasecmp (configure.ac): ... to here.
11872
11873 2011-05-22  Bruno Haible  <bruno@clisp.org>
11874
11875         wcslen: Move AC_LIBOBJ invocations to module description.
11876         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
11877         * modules/wcslen (configure.ac): ... to here.
11878
11879 2011-05-22  Bruno Haible  <bruno@clisp.org>
11880
11881         wcsdup: Move AC_LIBOBJ invocations to module description.
11882         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
11883         * modules/wcsdup (configure.ac): ... to here.
11884
11885 2011-05-22  Bruno Haible  <bruno@clisp.org>
11886
11887         wcscspn: Move AC_LIBOBJ invocations to module description.
11888         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
11889         here...
11890         * modules/wcscspn (configure.ac): ... to here.
11891
11892 2011-05-22  Bruno Haible  <bruno@clisp.org>
11893
11894         wcscpy: Move AC_LIBOBJ invocations to module description.
11895         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
11896         * modules/wcscpy (configure.ac): ... to here.
11897
11898 2011-05-22  Bruno Haible  <bruno@clisp.org>
11899
11900         wcscoll: Move AC_LIBOBJ invocations to module description.
11901         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
11902         here...
11903         * modules/wcscoll (configure.ac): ... to here.
11904
11905 2011-05-22  Bruno Haible  <bruno@clisp.org>
11906
11907         wcscmp: Move AC_LIBOBJ invocations to module description.
11908         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
11909         * modules/wcscmp (configure.ac): ... to here.
11910
11911 2011-05-22  Bruno Haible  <bruno@clisp.org>
11912
11913         wcschr: Move AC_LIBOBJ invocations to module description.
11914         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
11915         * modules/wcschr (configure.ac): ... to here.
11916
11917 2011-05-22  Bruno Haible  <bruno@clisp.org>
11918
11919         wcscat: Move AC_LIBOBJ invocations to module description.
11920         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11921         * modules/wcscat (configure.ac): ... to here.
11922
11923 2011-05-22  Bruno Haible  <bruno@clisp.org>
11924
11925         wcscasecmp: Move AC_LIBOBJ invocations to module description.
11926         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
11927         here...
11928         * modules/wcscasecmp (configure.ac): ... to here.
11929
11930 2011-05-22  Bruno Haible  <bruno@clisp.org>
11931
11932         wcrtomb: Move AC_LIBOBJ invocations to module description.
11933         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
11934         invocations from here...
11935         * modules/wcrtomb (configure.ac): ... to here.
11936
11937 2011-05-22  Bruno Haible  <bruno@clisp.org>
11938
11939         wcpncpy: Move AC_LIBOBJ invocations to module description.
11940         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
11941         here...
11942         * modules/wcpncpy (configure.ac): ... to here.
11943
11944 2011-05-22  Bruno Haible  <bruno@clisp.org>
11945
11946         wcpcpy: Move AC_LIBOBJ invocations to module description.
11947         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11948         * modules/wcpcpy (configure.ac): ... to here.
11949
11950 2011-05-22  Bruno Haible  <bruno@clisp.org>
11951
11952         waitpid: Move AC_LIBOBJ invocations to module description.
11953         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11954         invocation from here...
11955         * modules/waitpid (configure.ac): ... to here.
11956
11957 2011-05-22  Bruno Haible  <bruno@clisp.org>
11958
11959         utimensat: Move AC_LIBOBJ invocations to module description.
11960         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11961         here...
11962         * modules/utimensat (configure.ac): ... to here.
11963
11964 2011-05-22  Bruno Haible  <bruno@clisp.org>
11965
11966         usleep: Move AC_LIBOBJ invocations to module description.
11967         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11968         here...
11969         * modules/usleep (configure.ac): ... to here.
11970
11971 2011-05-22  Bruno Haible  <bruno@clisp.org>
11972
11973         unlockpt: Move AC_LIBOBJ invocations to module description.
11974         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11975         gl_PREREQ_UNLOCKPT invocations from here...
11976         * modules/unlockpt (configure.ac): ... to here.
11977
11978 2011-05-22  Bruno Haible  <bruno@clisp.org>
11979
11980         unlink: Respect rules for use of AC_LIBOBJ.
11981         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11982         * modules/unlink (configure.ac): ... to here.
11983
11984 2011-05-22  Bruno Haible  <bruno@clisp.org>
11985
11986         uname: Move AC_LIBOBJ invocations to module description.
11987         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11988         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11989         here...
11990         * modules/uname (configure.ac): ... to here.
11991
11992 2011-05-22  Bruno Haible  <bruno@clisp.org>
11993
11994         ttyname_r: Move AC_LIBOBJ invocations to module description.
11995         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11996         gl_PREREQ_TTYNAME_R invocations from here...
11997         * modules/ttyname_r (configure.ac): ... to here.
11998
11999 2011-05-22  Bruno Haible  <bruno@clisp.org>
12000
12001         tsearch: Move AC_LIBOBJ invocations to module description.
12002         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12003         invocations from here...
12004         * modules/tsearch (configure.ac): ... to here.
12005
12006 2011-05-22  Bruno Haible  <bruno@clisp.org>
12007
12008         towctrans: Move AC_LIBOBJ invocations to module description.
12009         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12010         AC_LIBOBJ invocation from here...
12011         * modules/towctrans (configure.ac): ... to here.
12012
12013 2011-05-22  Bruno Haible  <bruno@clisp.org>
12014
12015         tmpfile: Move AC_LIBOBJ invocations to module description.
12016         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12017         invocations from here...
12018         * modules/tmpfile (configure.ac): ... to here.
12019
12020 2011-05-22  Bruno Haible  <bruno@clisp.org>
12021
12022         times: Move AC_LIBOBJ invocations to module description.
12023         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12024         * modules/times (configure.ac): ... to here.
12025
12026 2011-05-22  Bruno Haible  <bruno@clisp.org>
12027
12028         time_r: Move AC_LIBOBJ invocations to module description.
12029         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12030         invocations from here...
12031         * modules/time_r (configure.ac): ... to here.
12032
12033 2011-05-22  Bruno Haible  <bruno@clisp.org>
12034
12035         timegm: Move AC_LIBOBJ invocations to module description.
12036         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12037         invocations from here...
12038         * modules/timegm (configure.ac): ... to here.
12039
12040 2011-05-22  Bruno Haible  <bruno@clisp.org>
12041
12042         tcgetsid: Move AC_LIBOBJ invocations to module description.
12043         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12044         and gl_PREREQ_TCGETSID invocations from here...
12045         * modules/tcgetsid (configure.ac): ... to here.
12046         (Depends-on): Update conditions.
12047
12048 2011-05-22  Bruno Haible  <bruno@clisp.org>
12049
12050         symlinkat: Move AC_LIBOBJ invocations to module description.
12051         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12052         here...
12053         * modules/symlinkat (configure.ac): ... to here.
12054
12055 2011-05-22  Bruno Haible  <bruno@clisp.org>
12056
12057         symlink: Move AC_LIBOBJ invocations to module description.
12058         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12059         here...
12060         * modules/symlink (configure.ac): ... to here.
12061
12062 2011-05-22  Bruno Haible  <bruno@clisp.org>
12063
12064         strverscmp: Move AC_LIBOBJ invocations to module description.
12065         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12067         from here...
12068         * modules/strverscmp (configure.ac): ... to here.
12069
12070 2011-05-22  Bruno Haible  <bruno@clisp.org>
12071
12072         strtok_r: Move AC_LIBOBJ invocations to module description.
12073         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12074         and gl_PREREQ_STRTOK_R invocations from here...
12075         * modules/strtok_r (configure.ac): ... to here.
12076         (Depends-on): Update conditions.
12077
12078 2011-05-22  Bruno Haible  <bruno@clisp.org>
12079
12080         strtoumax: Move AC_LIBOBJ invocations to module description.
12081         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12083         from here...
12084         * modules/strtoumax (configure.ac): ... to here.
12085
12086 2011-05-22  Bruno Haible  <bruno@clisp.org>
12087
12088         strtoimax: Move AC_LIBOBJ invocations to module description.
12089         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12091         from here...
12092         * modules/strtoimax (configure.ac): ... to here.
12093
12094 2011-05-22  Bruno Haible  <bruno@clisp.org>
12095
12096         strtoull: Move AC_LIBOBJ invocations to module description.
12097         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12099         from here...
12100         * modules/strtoull (configure.ac): ... to here.
12101
12102 2011-05-22  Bruno Haible  <bruno@clisp.org>
12103
12104         strtoll: Move AC_LIBOBJ invocations to module description.
12105         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12106         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12107         here...
12108         * modules/strtoll (configure.ac): ... to here.
12109
12110 2011-05-22  Bruno Haible  <bruno@clisp.org>
12111
12112         strtoul: Move AC_LIBOBJ invocations to module description.
12113         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12114         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12115         * modules/strtoul (configure.ac): ... to here.
12116
12117 2011-05-22  Bruno Haible  <bruno@clisp.org>
12118
12119         strtol: Move AC_LIBOBJ invocations to module description.
12120         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12121         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12122         * modules/strtol (configure.ac): ... to here.
12123
12124 2011-05-22  Bruno Haible  <bruno@clisp.org>
12125
12126         strtod: Move AC_LIBOBJ invocations to module description.
12127         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12128         invocations from here...
12129         * modules/strtod (configure.ac): ... to here.
12130
12131 2011-05-22  Bruno Haible  <bruno@clisp.org>
12132
12133         strstr*: Move AC_LIBOBJ invocations to module description.
12134         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12135         invocations from here...
12136         * modules/strstr-simple (configure.ac): ... to here.
12137         * modules/strstr (configure.ac): ... and here.
12138
12139 2011-05-22  Bruno Haible  <bruno@clisp.org>
12140
12141         strsignal: Move AC_LIBOBJ invocations to module description.
12142         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12143         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12144         * modules/strsignal (configure.ac): ... to here.
12145         (Depends-on): Update conditions.
12146
12147 2011-05-22  Bruno Haible  <bruno@clisp.org>
12148
12149         strsep: Move AC_LIBOBJ invocations to module description.
12150         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12151         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12152         here...
12153         * modules/strsep (configure.ac): ... to here.
12154
12155 2011-05-22  Bruno Haible  <bruno@clisp.org>
12156
12157         strptime: Move AC_LIBOBJ invocations to module description.
12158         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12159         gl_PREREQ_STRPTIME invocations from here...
12160         * modules/strptime (configure.ac): ... to here.
12161
12162 2011-05-22  Bruno Haible  <bruno@clisp.org>
12163
12164         strpbrk: Move AC_LIBOBJ invocations to module description.
12165         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12166         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12167         here...
12168         * modules/strpbrk (configure.ac): ... to here.
12169
12170 2011-05-22  Bruno Haible  <bruno@clisp.org>
12171
12172         strnlen: Move AC_LIBOBJ invocations to module description.
12173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12174         invocations from here...
12175         * modules/strnlen (configure.ac): ... to here.
12176
12177 2011-05-22  Bruno Haible  <bruno@clisp.org>
12178
12179         strndup: Move AC_LIBOBJ invocations to module description.
12180         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12181         invocations from here...
12182         * modules/strndup (configure.ac): ... to here.
12183         (Depends-on): Update conditions.
12184
12185 2011-05-22  Bruno Haible  <bruno@clisp.org>
12186
12187         strncat: Move AC_LIBOBJ invocations to module description.
12188         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12189         invocations from here...
12190         * modules/strncat (configure.ac): ... to here.
12191
12192 2011-05-22  Bruno Haible  <bruno@clisp.org>
12193
12194         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12195         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12196         invocations from here...
12197         * modules/strdup (configure.ac): ... to here.
12198         * modules/strdup-posix (configure.ac): ... and here.
12199
12200 2011-05-22  Bruno Haible  <bruno@clisp.org>
12201
12202         strcspn: Move AC_LIBOBJ invocations to module description.
12203         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12204         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12205         here...
12206         * modules/strcspn (configure.ac): ... to here.
12207
12208 2011-05-22  Bruno Haible  <bruno@clisp.org>
12209
12210         strchrnul: Move AC_LIBOBJ invocations to module description.
12211         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12212         gl_PREREQ_STRCHRNUL invocations from here...
12213         * modules/strchrnul (configure.ac): ... to here.
12214
12215 2011-05-22  Bruno Haible  <bruno@clisp.org>
12216
12217         strcasestr*: Move AC_LIBOBJ invocations to module description.
12218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12219         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12220         * modules/strcasestr-simple (configure.ac): ... to here.
12221         * modules/strcasestr (configure.ac): ... and here.
12222
12223 2011-05-22  Bruno Haible  <bruno@clisp.org>
12224
12225         strcase: Move AC_LIBOBJ invocations to module description.
12226         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12227         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12228         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12229         gl_PREREQ_STRNCASECMP invocations from here...
12230         * modules/strcase (configure.ac): ... to here.
12231
12232 2011-05-22  Bruno Haible  <bruno@clisp.org>
12233
12234         stpncpy: Move AC_LIBOBJ invocations to module description.
12235         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12236         here...
12237         * modules/stpncpy (configure.ac): ... to here.
12238
12239 2011-05-22  Bruno Haible  <bruno@clisp.org>
12240
12241         stpcpy: Move AC_LIBOBJ invocations to module description.
12242         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12243         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12244         here...
12245         * modules/stpcpy (configure.ac): ... to here.
12246
12247 2011-05-21  Bruno Haible  <bruno@clisp.org>
12248
12249         stat: Move AC_LIBOBJ invocations to module description.
12250         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12251         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12252         here...
12253         * modules/stat (configure.ac): ... to here.
12254
12255 2011-05-21  Bruno Haible  <bruno@clisp.org>
12256
12257         sleep: Move AC_LIBOBJ invocations to module description.
12258         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12259         * modules/sleep (configure.ac): ... to here.
12260
12261 2011-05-21  Bruno Haible  <bruno@clisp.org>
12262
12263         signbit: Move AC_LIBOBJ invocations to module description.
12264         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12265         * modules/signbit (configure.ac): ... to here.
12266
12267 2011-05-21  Bruno Haible  <bruno@clisp.org>
12268
12269         sigprocmask: Move AC_LIBOBJ invocations to module description.
12270         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12271         gl_PREREQ_SIGPROMASK invocations from here...
12272         * modules/sigprocmask (configure.ac): ... to here.
12273
12274 2011-05-21  Bruno Haible  <bruno@clisp.org>
12275
12276         sigaction: Move AC_LIBOBJ invocations to module description.
12277         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12278         gl_PREREQ_SIGACTION invocations from here...
12279         * modules/sigaction (configure.ac): ... to here.
12280
12281 2011-05-21  Bruno Haible  <bruno@clisp.org>
12282
12283         sig2str: Move AC_LIBOBJ invocations to module description.
12284         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12285         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12286         here...
12287         * modules/sig2str (configure.ac): ... to here.
12288
12289 2011-05-21  Bruno Haible  <bruno@clisp.org>
12290
12291         setlocale: Move AC_LIBOBJ invocations to module description.
12292         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12293         gl_PREREQ_SETLOCALE invocations from here...
12294         * modules/setlocale (configure.ac): ... to here.
12295
12296 2011-05-21  Bruno Haible  <bruno@clisp.org>
12297
12298         unsetenv: Move AC_LIBOBJ invocations to module description.
12299         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12300         and gl_PREREQ_UNSETENV invocations from here...
12301         * modules/unsetenv (configure.ac): ... to here.
12302         (Depends-on): Update.
12303
12304 2011-05-21  Bruno Haible  <bruno@clisp.org>
12305
12306         setenv: Move AC_LIBOBJ invocations to module description.
12307         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12308         here...
12309         * modules/setenv (configure.ac): ... to here.
12310
12311 2011-05-21  Bruno Haible  <bruno@clisp.org>
12312
12313         selinux-h: Move AC_LIBOBJ invocations to module description.
12314         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12315         AC_LIBOBJ invocation from here...
12316         * modules/selinux-h (configure.ac): ... to here.
12317
12318 2011-05-21  Bruno Haible  <bruno@clisp.org>
12319
12320         select: Respect rules for use of AC_LIBOBJ.
12321         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12322         here...
12323         * modules/select (configure.ac): ... to here.
12324
12325 2011-05-21  Bruno Haible  <bruno@clisp.org>
12326
12327         scandir: Move AC_LIBOBJ invocations to module description.
12328         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12329         invocations from here...
12330         * modules/scandir (configure.ac): ... to here.
12331
12332 2011-05-21  Bruno Haible  <bruno@clisp.org>
12333
12334         rpmatch: Move AC_LIBOBJ invocations to module description.
12335         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12336         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12337         here...
12338         * modules/rpmatch (configure.ac): ... to here.
12339
12340 2011-05-21  Bruno Haible  <bruno@clisp.org>
12341
12342         rmdir: Respect rules for use of AC_LIBOBJ.
12343         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12344         * modules/rmdir (configure.ac): ... to here.
12345
12346 2011-05-21  Bruno Haible  <bruno@clisp.org>
12347
12348         renameat: Move AC_LIBOBJ invocations to module description.
12349         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12350         here...
12351         * modules/renameat (configure.ac): ... to here.
12352
12353 2011-05-21  Bruno Haible  <bruno@clisp.org>
12354
12355         rename: Respect rules for use of AC_LIBOBJ.
12356         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12357         here...
12358         * modules/rename (configure.ac): ... to here.
12359
12360 2011-05-21  Bruno Haible  <bruno@clisp.org>
12361
12362         remove: Move AC_LIBOBJ invocations to module description.
12363         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12364         here...
12365         * modules/remove (configure.ac): ... to here.
12366
12367 2011-05-21  Bruno Haible  <bruno@clisp.org>
12368
12369         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12370         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12371         macro.
12372         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12373         * modules/relocatable-lib (configure.ac): ... to here.
12374         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12375         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12376
12377 2011-05-21  Bruno Haible  <bruno@clisp.org>
12378
12379         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12380         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12381         here...
12382         * modules/relocatable-prog (configure.ac): ... to here.
12383
12384 2011-05-21  Bruno Haible  <bruno@clisp.org>
12385
12386         regex: Move AC_LIBOBJ invocations to module description.
12387         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12388         invocations from here...
12389         * modules/regex (configure.ac): ... to here.
12390
12391 2011-05-21  Bruno Haible  <bruno@clisp.org>
12392
12393         realloc-*: Move AC_LIBOBJ invocations to module description.
12394         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12395         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12396         AC_LIBOBJ invocations from here...
12397         * modules/realloc-gnu (configure.ac): ... to here.
12398         * modules/realloc-posix (configure.ac): ... and here.
12399
12400 2011-05-21  Bruno Haible  <bruno@clisp.org>
12401
12402         readutmp: Move AC_LIBOBJ invocations to module description.
12403         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12404         * modules/readutmp (configure.ac): ... to here.
12405
12406 2011-05-21  Bruno Haible  <bruno@clisp.org>
12407
12408         readlinkat: Move AC_LIBOBJ invocations to module description.
12409         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12410         here...
12411         * modules/readlinkat (configure.ac): ... to here.
12412
12413 2011-05-21  Bruno Haible  <bruno@clisp.org>
12414
12415         readlink: Move AC_LIBOBJ invocations to module description.
12416         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12417         gl_PREREQ_READLINK invocations from here...
12418         * modules/readlink (configure.ac): ... to here.
12419
12420 2011-05-21  Bruno Haible  <bruno@clisp.org>
12421
12422         readline: Move AC_LIBOBJ invocations to module description.
12423         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12424         gl_PREREQ_READLINE invocations from here...
12425         * modules/readline (configure.ac): ... to here.
12426
12427 2011-05-21  Bruno Haible  <bruno@clisp.org>
12428
12429         read: Move AC_LIBOBJ invocations to module description.
12430         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12431         * modules/read (configure.ac): ... to here.
12432
12433 2011-05-21  Bruno Haible  <bruno@clisp.org>
12434
12435         rawmemchr: Move AC_LIBOBJ invocations to module description.
12436         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12438         from here...
12439         * modules/rawmemchr (configure.ac): ... to here.
12440
12441 2011-05-21  Bruno Haible  <bruno@clisp.org>
12442
12443         random_r: Move AC_LIBOBJ invocations to module description.
12444         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12445         gl_PREREQ_RANDOM_R invocations from here...
12446         * modules/random_r (configure.ac): ... to here.
12447
12448 2011-05-21  Bruno Haible  <bruno@clisp.org>
12449
12450         pwrite: Move AC_LIBOBJ invocations to module description.
12451         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12452         * modules/pwrite (configure.ac): ... to here.
12453
12454 2011-05-21  Bruno Haible  <bruno@clisp.org>
12455
12456         putenv: Move AC_LIBOBJ invocations to module description.
12457         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12458         * modules/putenv (configure.ac): ... to here.
12459
12460 2011-05-21  Bruno Haible  <bruno@clisp.org>
12461
12462         login_tty: Move AC_LIBOBJ invocations to module description.
12463         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12464         * modules/login_tty (configure.ac): ... to here.
12465
12466 2011-05-21  Bruno Haible  <bruno@clisp.org>
12467
12468         openpty: Move AC_LIBOBJ invocations to module description.
12469         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12470         * modules/openpty (configure.ac): ... to here.
12471
12472 2011-05-21  Bruno Haible  <bruno@clisp.org>
12473
12474         forkpty: Move AC_LIBOBJ invocations to module description.
12475         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12476         * modules/forkpty (configure.ac): ... to here.
12477
12478 2011-05-21  Bruno Haible  <bruno@clisp.org>
12479
12480         ptsname: Move AC_LIBOBJ invocations to module description.
12481         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12482         invocations from here...
12483         * modules/ptsname (configure.ac): ... to here.
12484
12485 2011-05-21  Bruno Haible  <bruno@clisp.org>
12486
12487         pread: Move AC_LIBOBJ invocations to module description.
12488         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12489         * modules/pread (configure.ac): ... to here.
12490
12491 2011-05-21  Bruno Haible  <bruno@clisp.org>
12492
12493         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12494         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12495         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12496         * modules/posix_spawn (configure.ac): ... to here.
12497         * modules/posix_spawnp (configure.ac): ... and here.
12498
12499 2011-05-21  Bruno Haible  <bruno@clisp.org>
12500
12501         popen: Move AC_LIBOBJ invocations to module description.
12502         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12503         invocations from here...
12504         * modules/popen (configure.ac): ... to here.
12505
12506 2011-05-21  Bruno Haible  <bruno@clisp.org>
12507
12508         poll: Move AC_LIBOBJ invocations to module description.
12509         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12510         invocations from here...
12511         * modules/poll (configure.ac): ... to here.
12512
12513 2011-05-21  Bruno Haible  <bruno@clisp.org>
12514
12515         pipe-posix: Move AC_LIBOBJ invocations to module description.
12516         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12517         * modules/pipe-posix (configure.ac): ... to here.
12518
12519 2011-05-21  Bruno Haible  <bruno@clisp.org>
12520
12521         openat: Respect rules for use of AC_LIBOBJ.
12522         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12523         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12524         * modules/openat (configure.ac): ... to here.
12525
12526 2011-05-21  Bruno Haible  <bruno@clisp.org>
12527
12528         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12529         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12530         invocation from here...
12531         * modules/obstack-printf (configure.ac): ... to here.
12532         * modules/obstack-printf-posix (configure.ac): ... and here.
12533
12534 2011-05-21  Bruno Haible  <bruno@clisp.org>
12535
12536         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12537         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12538         from here...
12539         * modules/nl_langinfo (configure.ac): ... to here.
12540
12541 2011-05-21  Bruno Haible  <bruno@clisp.org>
12542
12543         nanosleep: Move AC_LIBOBJ invocations to module description.
12544         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12545         gl_PREREQ_NANOSLEEP invocations from here...
12546         * modules/nanosleep (configure.ac): ... to here.
12547
12548 2011-05-21  Bruno Haible  <bruno@clisp.org>
12549
12550         mountlist: Move AC_LIBOBJ invocations to module description.
12551         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12552         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12553         * modules/mountlist (configure.ac): ... to here.
12554
12555 2011-05-21  Bruno Haible  <bruno@clisp.org>
12556
12557         mktime: Respect rules for use of AC_LIBOBJ.
12558         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12559         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12560         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12561         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12562         * modules/mktime (configure.ac): ... to here.
12563         * modules/mktime-internal (configure.ac): ... and here.
12564         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12565
12566 2011-05-21  Bruno Haible  <bruno@clisp.org>
12567
12568         mkstemps: Move AC_LIBOBJ invocations to module description.
12569         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12570         here...
12571         * modules/mkstemps (configure.ac): ... to here.
12572
12573 2011-05-21  Bruno Haible  <bruno@clisp.org>
12574
12575         mkstemp: Move AC_LIBOBJ invocations to module description.
12576         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12577         gl_PREREQ_MKSTEMP invocations from here...
12578         * modules/mkstemp (configure.ac): ... to here.
12579
12580 2011-05-21  Bruno Haible  <bruno@clisp.org>
12581
12582         mkostemps: Move AC_LIBOBJ invocations to module description.
12583         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12584         here...
12585         * modules/mkostemps (configure.ac): ... to here.
12586
12587 2011-05-21  Bruno Haible  <bruno@clisp.org>
12588
12589         mkostemp: Move AC_LIBOBJ invocations to module description.
12590         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12591         gl_PREREQ_MKOSTEMP invocations from here...
12592         * modules/mkostemp (configure.ac): ... to here.
12593
12594 2011-05-21  Bruno Haible  <bruno@clisp.org>
12595
12596         mknod: Move AC_LIBOBJ invocations to module description.
12597         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
12598         * modules/mknod (configure.ac): ... to here.
12599
12600 2011-05-21  Bruno Haible  <bruno@clisp.org>
12601
12602         mkfifoat: Move AC_LIBOBJ invocations to module description.
12603         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
12604         here...
12605         * modules/mkfifoat (configure.ac): ... to here.
12606
12607 2011-05-21  Bruno Haible  <bruno@clisp.org>
12608
12609         mkfifo: Respect rules for use of AC_LIBOBJ.
12610         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
12611         here...
12612         * modules/mkfifo (configure.ac): ... to here.
12613
12614 2011-05-21  Bruno Haible  <bruno@clisp.org>
12615
12616         mkdtemp: Move AC_LIBOBJ invocations to module description.
12617         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
12618         invocations from here...
12619         * modules/mkdtemp (configure.ac): ... to here.
12620
12621 2011-05-21  Bruno Haible  <bruno@clisp.org>
12622
12623         mkdir: Move AC_LIBOBJ invocations to module description.
12624         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
12625         * modules/mkdir (configure.ac): ... to here.
12626
12627 2011-05-21  Bruno Haible  <bruno@clisp.org>
12628
12629         memset: Move AC_LIBOBJ invocations to module description.
12630         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
12631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
12632         here...
12633         * modules/memset (configure.ac): ... to here.
12634
12635 2011-05-21  Bruno Haible  <bruno@clisp.org>
12636
12637         memrchr: Move AC_LIBOBJ invocations to module description.
12638         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
12639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
12640         here...
12641         * modules/memrchr (configure.ac): ... to here.
12642
12643 2011-05-21  Bruno Haible  <bruno@clisp.org>
12644
12645         mempcpy: Move AC_LIBOBJ invocations to module description.
12646         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
12647         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
12648         here...
12649         * modules/mempcpy (configure.ac): ... to here.
12650
12651 2011-05-21  Bruno Haible  <bruno@clisp.org>
12652
12653         memmove: Move AC_LIBOBJ invocations to module description.
12654         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
12655         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
12656         here...
12657         * modules/memmove (configure.ac): ... to here.
12658
12659 2011-05-21  Bruno Haible  <bruno@clisp.org>
12660
12661         memmem*: Move AC_LIBOBJ invocations to module description.
12662         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
12663         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
12664         here...
12665         (gl_FUNC_MEMMEM): ... and here...
12666         * modules/memmem-simple (configure.ac): ... to here.
12667         * modules/memmem (configure.ac): ... and here.
12668
12669 2011-05-21  Bruno Haible  <bruno@clisp.org>
12670
12671         memcpy: Move AC_LIBOBJ invocations to module description.
12672         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
12673         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
12674         here...
12675         * modules/memcpy (configure.ac): ... to here.
12676
12677 2011-05-21  Bruno Haible  <bruno@clisp.org>
12678
12679         memcmp: Simplify autoconf macro.
12680         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
12681         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
12682         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
12683
12684 2011-05-21  Bruno Haible  <bruno@clisp.org>
12685
12686         memcmp: Move AC_LIBOBJ invocations to module description.
12687         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
12688         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
12689         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
12690         * modules/memcmp (configure.ac): ... to here.
12691         (Depends-on): Update conditions.
12692
12693 2011-05-21  Bruno Haible  <bruno@clisp.org>
12694
12695         memchr: Respect rules for use of AC_LIBOBJ.
12696         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
12697         invocations from here...
12698         * modules/memchr (configure.ac): ... to here.
12699
12700 2011-05-21  Bruno Haible  <bruno@clisp.org>
12701
12702         mbtowc: Move AC_LIBOBJ invocations to module description.
12703         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
12704         invocations from here...
12705         * modules/mbtowc (configure.ac): ... to here.
12706
12707 2011-05-21  Bruno Haible  <bruno@clisp.org>
12708
12709         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
12710         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
12711         gl_PREREQ_MBSRTOWCS invocations from here...
12712         * modules/mbsrtowcs (configure.ac): ... to here.
12713
12714 2011-05-21  Bruno Haible  <bruno@clisp.org>
12715
12716         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
12717         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
12718         gl_PREREQ_MBSNRTOWCS invocations from here...
12719         * modules/mbsnrtowcs (configure.ac): ... to here.
12720
12721 2011-05-21  Bruno Haible  <bruno@clisp.org>
12722
12723         mbsinit: Move AC_LIBOBJ invocations to module description.
12724         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12725         invocations from here...
12726         * modules/mbsinit (configure.ac): ... to here.
12727
12728 2011-05-21  Bruno Haible  <bruno@clisp.org>
12729
12730         mbrlen: Move AC_LIBOBJ invocations to module description.
12731         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
12732         invocations from here...
12733         * modules/mbrlen (configure.ac): ... to here.
12734
12735 2011-05-21  Bruno Haible  <bruno@clisp.org>
12736
12737         mbrtowc: Respect rules for use of AC_LIBOBJ.
12738         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12739         invocations from here...
12740         * modules/mbrtowc (configure.ac): ... to here.
12741
12742 2011-05-21  Bruno Haible  <bruno@clisp.org>
12743
12744         malloc-*: Move AC_LIBOBJ invocations to module description.
12745         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
12746         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
12747         AC_LIBOBJ invocations from here...
12748         * modules/malloc-gnu (configure.ac): ... to here.
12749         * modules/malloc-posix (configure.ac): ... and here.
12750
12751 2011-05-21  Bruno Haible  <bruno@clisp.org>
12752
12753         lstat, openat: Respect rules for use of AC_LIBOBJ.
12754         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
12755         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
12756         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
12757         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
12758         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
12759         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
12760         here.
12761         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
12762
12763 2011-05-21  Bruno Haible  <bruno@clisp.org>
12764
12765         lseek: Move AC_LIBOBJ invocations to module description.
12766         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
12767         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12768         * modules/lseek (configure.ac): ... to here.
12769
12770 2011-05-21  Bruno Haible  <bruno@clisp.org>
12771
12772         linkat: Move AC_LIBOBJ invocations to module description.
12773         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
12774         here...
12775         * modules/linkat (configure.ac): ... to here.
12776
12777 2011-05-21  Bruno Haible  <bruno@clisp.org>
12778
12779         link: Respect rules for use of AC_LIBOBJ.
12780         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
12781         * modules/link (configure.ac): ... to here.
12782
12783 2011-05-21  Bruno Haible  <bruno@clisp.org>
12784
12785         lchown: Move AC_LIBOBJ invocations to module description.
12786         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12787         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12788         * modules/lchown (configure.ac): ... to here.
12789
12790 2011-05-21  Bruno Haible  <bruno@clisp.org>
12791
12792         iswctype: Move AC_LIBOBJ invocations to module description.
12793         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
12794         here...
12795         * modules/iswctype (configure.ac): ... to here.
12796
12797 2011-05-21  Bruno Haible  <bruno@clisp.org>
12798
12799         iswblank: Move AC_LIBOBJ invocations to module description.
12800         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
12801         here...
12802         * modules/iswblank (configure.ac): ... to here.
12803
12804 2011-05-21  Bruno Haible  <bruno@clisp.org>
12805
12806         atanl: Move AC_LIBOBJ invocations to module description.
12807         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
12808         * modules/atanl (configure.ac): ... to here.
12809
12810 2011-05-21  Bruno Haible  <bruno@clisp.org>
12811
12812         acosl: Move AC_LIBOBJ invocations to module description.
12813         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
12814         * modules/acosl (configure.ac): ... to here.
12815
12816 2011-05-21  Bruno Haible  <bruno@clisp.org>
12817
12818         asinl: Respect rules for use of AC_LIBOBJ.
12819         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
12820         * modules/asinl (configure.ac): ... to here.
12821
12822 2011-05-21  Bruno Haible  <bruno@clisp.org>
12823
12824         tanl: Move AC_LIBOBJ invocations to module description.
12825         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
12826         * modules/tanl (configure.ac): ... to here.
12827
12828 2011-05-21  Bruno Haible  <bruno@clisp.org>
12829
12830         cosl: Move AC_LIBOBJ invocations to module description.
12831         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
12832         * modules/cosl (configure.ac): ... to here.
12833
12834 2011-05-21  Bruno Haible  <bruno@clisp.org>
12835
12836         sinl: Move AC_LIBOBJ invocations to module description.
12837         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
12838         * modules/sinl (configure.ac): ... to here.
12839
12840 2011-05-21  Bruno Haible  <bruno@clisp.org>
12841
12842         logl: Move AC_LIBOBJ invocations to module description.
12843         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
12844         * modules/logl (configure.ac): ... to here.
12845
12846 2011-05-21  Bruno Haible  <bruno@clisp.org>
12847
12848         expl: Move AC_LIBOBJ invocations to module description.
12849         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
12850         * modules/expl (configure.ac): ... to here.
12851
12852 2011-05-21  Bruno Haible  <bruno@clisp.org>
12853
12854         roundl: Move AC_LIBOBJ invocations to module description.
12855         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
12856         * modules/roundl (configure.ac): ... to here.
12857
12858 2011-05-21  Bruno Haible  <bruno@clisp.org>
12859
12860         round: Move AC_LIBOBJ invocations to module description.
12861         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
12862         * modules/round (configure.ac): ... to here.
12863
12864 2011-05-21  Bruno Haible  <bruno@clisp.org>
12865
12866         roundf: Move AC_LIBOBJ invocations to module description.
12867         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
12868         * modules/roundf (configure.ac): ... to here.
12869
12870 2011-05-21  Bruno Haible  <bruno@clisp.org>
12871
12872         truncl: Move AC_LIBOBJ invocations to module description.
12873         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
12874         * modules/truncl (configure.ac): ... to here.
12875
12876 2011-05-21  Bruno Haible  <bruno@clisp.org>
12877
12878         trunc: Move AC_LIBOBJ invocations to module description.
12879         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
12880         * modules/trunc (configure.ac): ... to here.
12881
12882 2011-05-21  Bruno Haible  <bruno@clisp.org>
12883
12884         truncf: Move AC_LIBOBJ invocations to module description.
12885         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
12886         * modules/truncf (configure.ac): ... to here.
12887
12888 2011-05-21  Bruno Haible  <bruno@clisp.org>
12889
12890         ceill: Move AC_LIBOBJ invocations to module description.
12891         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
12892         * modules/ceill (configure.ac): ... to here.
12893
12894 2011-05-21  Bruno Haible  <bruno@clisp.org>
12895
12896         ceil: Move AC_LIBOBJ invocations to module description.
12897         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
12898         * modules/ceil (configure.ac): ... to here.
12899
12900 2011-05-21  Bruno Haible  <bruno@clisp.org>
12901
12902         ceilf: Move AC_LIBOBJ invocations to module description.
12903         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
12904         * modules/ceilf (configure.ac): ... to here.
12905
12906 2011-05-21  Bruno Haible  <bruno@clisp.org>
12907
12908         floorl: Respect rules for use of AC_LIBOBJ.
12909         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
12910         * modules/floorl (configure.ac): ... to here.
12911
12912 2011-05-21  Bruno Haible  <bruno@clisp.org>
12913
12914         floor: Respect rules for use of AC_LIBOBJ.
12915         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
12916         * modules/floor (configure.ac): ... to here.
12917
12918 2011-05-21  Bruno Haible  <bruno@clisp.org>
12919
12920         floorf: Move AC_LIBOBJ invocations to module description.
12921         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
12922         * modules/floorf (configure.ac): ... to here.
12923
12924 2011-05-20  Bruno Haible  <bruno@clisp.org>
12925
12926         sqrtl: Respect rules for use of AC_LIBOBJ.
12927         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
12928         * modules/sqrtl (configure.ac): ... to here.
12929
12930 2011-05-20  Bruno Haible  <bruno@clisp.org>
12931
12932         ldexpl: Respect rules for use of AC_LIBOBJ.
12933         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
12934         * modules/ldexpl (configure.ac): ... to here.
12935
12936 2011-05-20  Bruno Haible  <bruno@clisp.org>
12937
12938         frexpl*: Respect rules for use of AC_LIBOBJ.
12939         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
12940         invocation from here...
12941         * modules/frexpl (configure.ac): ... to here.
12942         * modules/frexpl-nolibm (configure.ac): ... and here.
12943
12944 2011-05-20  Bruno Haible  <bruno@clisp.org>
12945
12946         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12947         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12948         invocation from here...
12949         * modules/frexp (configure.ac): ... to here.
12950         * modules/frexp-nolibm (configure.ac): ... and here.
12951
12952 2011-05-20  Bruno Haible  <bruno@clisp.org>
12953
12954         isnan: Respect rules for use of AC_LIBOBJ.
12955         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12956         invocations here.
12957         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12958         REPLACE_ISNAN.
12959         * modules/isnand (configure.ac): Likewise.
12960         * modules/isnanl (configure.ac): Likewise.
12961
12962 2011-05-20  Bruno Haible  <bruno@clisp.org>
12963
12964         isnanl*: Respect rules for use of AC_LIBOBJ.
12965         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12966         invocation from here...
12967         * modules/isnanl (configure.ac): ... to here.
12968         * modules/isnanl-nolibm (configure.ac): ... and here.
12969
12970 2011-05-20  Bruno Haible  <bruno@clisp.org>
12971
12972         isnand*: Move AC_LIBOBJ invocations to module description.
12973         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12974         invocation from here...
12975         * modules/isnand (configure.ac): ... to here.
12976         * modules/isnand-nolibm (configure.ac): ... and here.
12977
12978 2011-05-20  Bruno Haible  <bruno@clisp.org>
12979
12980         isnanf*: Move AC_LIBOBJ invocations to module description.
12981         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12982         invocation from here...
12983         * modules/isnanf (configure.ac): ... to here.
12984         * modules/isnanf-nolibm (configure.ac): ... and here.
12985
12986 2011-05-20  Bruno Haible  <bruno@clisp.org>
12987
12988         isnan*: Separate the AC_LIBOBJ invocations.
12989         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12990         AC_LIBOBJ invocation.
12991         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12992         here.
12993         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12994         AC_LIBOBJ invocation.
12995         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12996         here.
12997         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12998         AC_LIBOBJ invocation.
12999         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13000         here.
13001         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13002
13003 2011-05-08  Bruno Haible  <bruno@clisp.org>
13004
13005         isinf: Move AC_LIBOBJ invocations to module description.
13006         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13007         * modules/isinf (configure.ac): ... to here.
13008
13009 2011-05-08  Bruno Haible  <bruno@clisp.org>
13010
13011         isfinite: Move AC_LIBOBJ invocations to module description.
13012         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13013         * modules/isfinite (configure.ac): ... to here.
13014
13015 2011-05-08  Bruno Haible  <bruno@clisp.org>
13016
13017         isblank: Move AC_LIBOBJ invocations to module description.
13018         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13019         here...
13020         * modules/isblank (configure.ac): ... to here.
13021
13022 2011-05-08  Bruno Haible  <bruno@clisp.org>
13023
13024         isapipe: Move AC_LIBOBJ invocations to module description.
13025         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13026         gl_PREREQ_ISAPIPE invocations from here...
13027         * modules/isapipe (configure.ac): ... to here.
13028         (Depends-on): Update condition.
13029
13030 2011-05-08  Bruno Haible  <bruno@clisp.org>
13031
13032         ioctl: Move AC_LIBOBJ invocations to module description.
13033         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13034         invocations from here...
13035         * modules/ioctl (configure.ac): ... to here.
13036         (Depends-on): Update condition.
13037
13038 2011-05-08  Bruno Haible  <bruno@clisp.org>
13039
13040         imaxdiv: Move AC_LIBOBJ invocations to module description.
13041         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13042         invocations from here...
13043         * modules/imaxdiv (configure.ac): ... to here.
13044
13045 2011-05-08  Bruno Haible  <bruno@clisp.org>
13046
13047         imaxabs: Move AC_LIBOBJ invocations to module description.
13048         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13049         invocations from here...
13050         * modules/imaxabs (configure.ac): ... to here.
13051
13052 2011-05-08  Bruno Haible  <bruno@clisp.org>
13053
13054         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13055         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13056         AC_LIBOBJ invocations from here...
13057         * modules/getaddrinfo (configure.ac): ... to here.
13058         (Depends-on): Add conditions.
13059
13060 2011-05-08  Bruno Haible  <bruno@clisp.org>
13061
13062         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13063         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13064         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13065         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13066         (gl_PREREQ_INET_PTON): ... from here.
13067         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13068         gl_PREREQ_INET_PTON here.
13069         (Depends-on): Update condition.
13070
13071 2011-05-08  Bruno Haible  <bruno@clisp.org>
13072
13073         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13074         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13075         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13076         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13077         (gl_PREREQ_INET_NTOP): ... from here.
13078         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13079         gl_PREREQ_INET_NTOP here.
13080         (Depends-on): Update condition.
13081
13082 2011-05-08  Bruno Haible  <bruno@clisp.org>
13083
13084         iconv_open: Move AC_LIBOBJ invocations to module description.
13085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13086         AC_LIBOBJ invocations from here...
13087         * modules/iconv_open (configure.ac): ... to here.
13088
13089 2011-05-08  Bruno Haible  <bruno@clisp.org>
13090
13091         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13092         If module 'iconv_open' is among the main modules and module
13093         'iconv_open-utf' is among the tests dependencies, then
13094         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13095         return the special iconv_t values. Therefore iconv() and iconv_close()
13096         must support these special iconv_t values, already in lib, not only in
13097         tests.
13098         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13099         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13100         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13101         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13102         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13103         (Depends-on): Add the dependencies of iconv_open-utf.
13104         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13105         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13106         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13107
13108 2011-05-08  Bruno Haible  <bruno@clisp.org>
13109
13110         group-member: Move AC_LIBOBJ invocations to module description.
13111         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13112         gl_PREREQ_GROUP_MEMBER invocations from here...
13113         * modules/group-member (configure.ac): ... to here.
13114
13115 2011-05-08  Bruno Haible  <bruno@clisp.org>
13116
13117         grantpt: Move AC_LIBOBJ invocations to module description.
13118         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13119         invocations from here...
13120         * modules/grantpt (configure.ac): ... to here.
13121
13122 2011-05-08  Bruno Haible  <bruno@clisp.org>
13123
13124         glob: Move AC_LIBOBJ invocations to module description.
13125         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13126         from here...
13127         * modules/glob (configure.ac): ... to here.
13128
13129 2011-05-08  Bruno Haible  <bruno@clisp.org>
13130
13131         getusershell: Move AC_LIBOBJ invocations to module description.
13132         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13133         Move AC_LIBOBJ invocation from here...
13134         * modules/getusershell (configure.ac): ... to here.
13135         (Depends-on): Update condition.
13136
13137 2011-05-08  Bruno Haible  <bruno@clisp.org>
13138
13139         gettimeofday: Move AC_LIBOBJ invocations to module description.
13140         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13141         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13142         gl_PREREQ_GETTIMEOFDAY invocations from here...
13143         * modules/gettimeofday (configure.ac): ... to here.
13144
13145 2011-05-08  Bruno Haible  <bruno@clisp.org>
13146
13147         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13148         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13149         just gl_FUNC_TZSET.
13150         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13151         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13153         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13154
13155 2011-05-08  Bruno Haible  <bruno@clisp.org>
13156
13157         getsubopt: Move AC_LIBOBJ invocations to module description.
13158         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13159         gl_PREREQ_GETSUBOPT invocations from here...
13160         * modules/getsubopt (configure.ac): ... to here.
13161
13162 2011-05-08  Bruno Haible  <bruno@clisp.org>
13163
13164         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13165         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13166         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13167         * modules/getpass-gnu (configure.ac): ... to here.
13168
13169 2011-05-08  Bruno Haible  <bruno@clisp.org>
13170
13171         getpass: Move AC_LIBOBJ invocations to module description.
13172         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13173         gl_PREREQ_GETPASS invocations from here...
13174         * modules/getpass (configure.ac): ... to here.
13175
13176 2011-05-08  Bruno Haible  <bruno@clisp.org>
13177
13178         getpagesize: Move AC_LIBOBJ invocations to module description.
13179         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13180         from here...
13181         * modules/getpagesize (configure.ac): ... to here.
13182
13183 2011-05-08  Bruno Haible  <bruno@clisp.org>
13184
13185         getopt: Move AC_LIBOBJ invocations to module description.
13186         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13187         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13188         invocations from here...
13189         * modules/getopt-gnu (configure.ac): ... to here.
13190         * modules/getopt-posix (configure.ac): ... and here.
13191         (Depends-on): Update condition.
13192
13193 2011-05-08  Bruno Haible  <bruno@clisp.org>
13194
13195         getopt, argp: Respect rules for use of AC_LIBOBJ.
13196         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13197         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13198         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13199         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13200
13201 2011-05-08  Bruno Haible  <bruno@clisp.org>
13202
13203         getlogin_r: Move AC_LIBOBJ invocations to module description.
13204         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13205         gl_PREREQ_GETLOGIN_R invocations from here...
13206         * modules/getlogin_r (configure.ac): ... to here.
13207
13208 2011-05-08  Bruno Haible  <bruno@clisp.org>
13209
13210         getlogin: Move AC_LIBOBJ invocations to module description.
13211         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13212         here...
13213         * modules/getlogin (configure.ac): ... to here.
13214
13215 2011-05-08  Bruno Haible  <bruno@clisp.org>
13216
13217         getloadavg: Move AC_LIBOBJ invocations to module description.
13218         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13219         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13220         * modules/getloadavg (configure.ac): ... to here.
13221
13222 2011-05-08  Bruno Haible  <bruno@clisp.org>
13223
13224         gethrxtime: Move AC_LIBOBJ invocations to module description.
13225         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13226         LIB_GETHRXTIME from here...
13227         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13228         invocations from here...
13229         * modules/gethrxtime (configure.ac): ... to here.
13230
13231 2011-05-08  Bruno Haible  <bruno@clisp.org>
13232
13233         gethostname: Move AC_LIBOBJ invocations to module description.
13234         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13235         gl_PREREQ_GETHOSTNAME invocations from here...
13236         * modules/gethostname (configure.ac): ... to here.
13237
13238 2011-05-08  Bruno Haible  <bruno@clisp.org>
13239
13240         getgroups: Move AC_LIBOBJ invocations to module description.
13241         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13242         here...
13243         * modules/getgroups (configure.ac): ... to here.
13244
13245 2011-05-08  Bruno Haible  <bruno@clisp.org>
13246
13247         getdtablesize: Move AC_LIBOBJ invocations to module description.
13248         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13249         invocation from here...
13250         * modules/getdtablesize (configure.ac): ... to here.
13251
13252 2011-05-08  Bruno Haible  <bruno@clisp.org>
13253
13254         getdomainname: Move AC_LIBOBJ invocations to module description.
13255         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13256         gl_PREREQ_GETDOMAINNAME invocations from here...
13257         * modules/getdomainname (configure.ac): ... to here.
13258
13259 2011-05-08  Bruno Haible  <bruno@clisp.org>
13260
13261         getline: Move AC_LIBOBJ invocations to module description.
13262         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13263         invocations from here...
13264         * modules/getline (configure.ac): ... to here.
13265
13266 2011-05-08  Bruno Haible  <bruno@clisp.org>
13267
13268         getline: Simplify.
13269         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13270         It's already handled through the module dependency.
13271
13272 2011-05-08  Bruno Haible  <bruno@clisp.org>
13273
13274         getdelim: Move AC_LIBOBJ invocations to module description.
13275         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13276         and gl_PREREQ_GETDELIM invocations from here...
13277         * modules/getdelim (configure.ac): ... to here.
13278         (Depends-on): Fix condition.
13279
13280 2011-05-08  Bruno Haible  <bruno@clisp.org>
13281
13282         getcwd: Move AC_LIBOBJ invocations to module description.
13283         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13284         invocations from here...
13285         * modules/getcwd (configure.ac): ... to here.
13286
13287 2011-05-08  Bruno Haible  <bruno@clisp.org>
13288
13289         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13290         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13291         here...
13292         * modules/getcwd-lgpl (configure.ac): ... to here.
13293
13294 2011-05-07  Bruno Haible  <bruno@clisp.org>
13295
13296         crypto/gc: Move AC_LIBOBJ invocations to module description.
13297         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13298         * modules/crypto/gc (configure.ac): ... to here.
13299
13300 2011-05-07  Bruno Haible  <bruno@clisp.org>
13301
13302         fwriting: Move AC_LIBOBJ invocations to module description.
13303         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13304         here...
13305         * modules/fwriting (configure.ac): ... to here.
13306
13307 2011-05-07  Bruno Haible  <bruno@clisp.org>
13308
13309         fwritable: Move AC_LIBOBJ invocations to module description.
13310         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13311         here...
13312         * modules/fwritable (configure.ac): ... to here.
13313
13314 2011-05-07  Bruno Haible  <bruno@clisp.org>
13315
13316         futimens: Move AC_LIBOBJ invocations to module description.
13317         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13318         here...
13319         * modules/futimens (configure.ac): ... to here.
13320
13321 2011-05-07  Bruno Haible  <bruno@clisp.org>
13322
13323         ftruncate: Move AC_LIBOBJ invocations to module description.
13324         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13325         gl_PREREQ_FTRUNCATE invocations from here...
13326         * modules/ftruncate (configure.ac): ... to here.
13327
13328 2011-05-07  Bruno Haible  <bruno@clisp.org>
13329
13330         fsync: Move AC_LIBOBJ invocations to module description.
13331         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13332         invocations from here...
13333         * modules/fsync (configure.ac): ... to here.
13334
13335 2011-05-07  Bruno Haible  <bruno@clisp.org>
13336
13337         fsusage: Move AC_LIBOBJ invocations to module description.
13338         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13339         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13340         * modules/fsusage (configure.ac): ... to here.
13341
13342 2011-05-07  Bruno Haible  <bruno@clisp.org>
13343
13344         freopen: Move AC_LIBOBJ invocations to module description.
13345         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13346         invocations from here...
13347         * modules/freopen (configure.ac): ... to here.
13348
13349 2011-05-07  Bruno Haible  <bruno@clisp.org>
13350
13351         free: Move AC_LIBOBJ invocations to module description.
13352         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13353         invocations from here...
13354         * modules/free (configure.ac): ... to here.
13355
13356 2011-05-07  Bruno Haible  <bruno@clisp.org>
13357
13358         freadable: Move AC_LIBOBJ invocations to module description.
13359         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13360         here...
13361         * modules/freadable (configure.ac): ... to here.
13362
13363 2011-05-07  Bruno Haible  <bruno@clisp.org>
13364
13365         fpurge: Move AC_LIBOBJ invocations to module description.
13366         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13367         invocations from here...
13368         * modules/fpurge (configure.ac): ... to here.
13369
13370 2011-05-07  Bruno Haible  <bruno@clisp.org>
13371
13372         fpending: Move AC_LIBOBJ invocations to module description.
13373         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13374         gl_FUNC_FPENDING.
13375         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13376         invocations from here...
13377         * modules/fpending (configure.ac): ... to here.
13378
13379 2011-05-07  Bruno Haible  <bruno@clisp.org>
13380
13381         fopen: Move AC_LIBOBJ invocations to module description.
13382         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13383         invocations from here...
13384         * modules/fopen (configure.ac): ... to here.
13385
13386 2011-05-07  Bruno Haible  <bruno@clisp.org>
13387
13388         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13389         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13390         gl_FUNC_FNMATCH_POSIX.
13391         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13392         invocations from here...
13393         * modules/fnmatch (configure.ac): ... to here.
13394         * modules/fnmatch-gnu (configure.ac): ... and here.
13395
13396 2011-05-07  Bruno Haible  <bruno@clisp.org>
13397
13398         flock: Move AC_LIBOBJ invocations to module description.
13399         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13400         invocations from here...
13401         * modules/flock (configure.ac): ... to here.
13402
13403 2011-05-07  Bruno Haible  <bruno@clisp.org>
13404
13405         fileblocks: Move AC_LIBOBJ invocations to module description.
13406         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13407         gl_PREREQ_FILEBLOCKS invocations from here...
13408         * modules/fileblocks (configure.ac): ... to here.
13409
13410 2011-05-06  Bruno Haible  <bruno@clisp.org>
13411
13412         fflush: Move AC_LIBOBJ invocations to module description.
13413         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13414         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13415         invocations from here...
13416         * modules/fflush (configure.ac): ... to here.
13417
13418 2011-05-06  Bruno Haible  <bruno@clisp.org>
13419
13420         fdopendir: Move AC_LIBOBJ invocations to module description.
13421         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13422         here...
13423         * modules/fdopendir (configure.ac): ... to here.
13424         (Depends-on): Improve conditions.
13425
13426 2011-05-06  Bruno Haible  <bruno@clisp.org>
13427
13428         _Exit: Move AC_LIBOBJ invocations to module description.
13429         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13430         invocations from here...
13431         * modules/_Exit (configure.ac): ... to here.
13432
13433 2011-05-21  Bruno Haible  <bruno@clisp.org>
13434
13435         euidaccess: Respect rules for use of AC_LIBOBJ.
13436         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13437         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13438         from here...
13439         * modules/euidaccess (configure.ac): ... to here.
13440
13441 2011-05-06  Bruno Haible  <bruno@clisp.org>
13442
13443         error: Move AC_LIBOBJ invocations to module description.
13444         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13445         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13446         invocations from here...
13447         * modules/error (configure.ac): ... to here.
13448
13449 2011-05-06  Bruno Haible  <bruno@clisp.org>
13450
13451         duplocale: Move AC_LIBOBJ invocations to module description.
13452         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13453         gl_PREREQ_DUPLOCALE invocations from here...
13454         * modules/duplocale (configure.ac): ... to here.
13455
13456 2011-05-05  Bruno Haible  <bruno@clisp.org>
13457
13458         dirfd: Move AC_LIBOBJ invocations to module description.
13459         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13460         gl_FUNC_DIRFD.
13461         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13462         here...
13463         * modules/dirfd (configure.ac): ... to here.
13464         (Depends-on): Fix condition.
13465
13466 2011-05-05  Bruno Haible  <bruno@clisp.org>
13467
13468         chown: Respect rules for use of AC_LIBOBJ.
13469         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13470         * modules/chown (configure.ac): ... to here.
13471
13472 2011-05-05  Bruno Haible  <bruno@clisp.org>
13473
13474         chdir-long: Move AC_LIBOBJ invocations to module description.
13475         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13476         gl_PREREQ_CHDIR_LONG invocations from here...
13477         * modules/chdir-long (configure.ac): ... to here.
13478
13479 2011-05-05  Bruno Haible  <bruno@clisp.org>
13480
13481         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13482         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13483         from here...
13484         * modules/canonicalize-lgpl (configure.ac): ... to here.
13485
13486 2011-05-05  Bruno Haible  <bruno@clisp.org>
13487
13488         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13489         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13490         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13491         REPLACE_CALLOC.
13492         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13493         * modules/calloc-gnu (configure.ac): Likewise.
13494
13495 2011-05-05  Bruno Haible  <bruno@clisp.org>
13496
13497         btowc: Move AC_LIBOBJ invocations to module description.
13498         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13499         invocations from here...
13500         * modules/btowc (configure.ac): ... to here.
13501
13502 2011-05-21  Bruno Haible  <bruno@clisp.org>
13503
13504         atexit: Move AC_LIBOBJ invocations to module description.
13505         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13506         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13507         here...
13508         * modules/atexit (configure.ac): ... to here.
13509
13510 2011-05-05  Bruno Haible  <bruno@clisp.org>
13511
13512         atoll: Move AC_LIBOBJ invocations to module description.
13513         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13514         invocations from here...
13515         * modules/atoll (configure.ac): ... to here.
13516
13517 2011-05-05  Bruno Haible  <bruno@clisp.org>
13518
13519         argz: Move AC_LIBOBJ invocations to module description.
13520         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13521         * modules/argz (configure.ac): ... to here.
13522
13523 2011-05-05  Bruno Haible  <bruno@clisp.org>
13524
13525         alphasort: Move AC_LIBOBJ invocations to module description.
13526         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13527         gl_PREREQ_ALPHASORT invocations from here...
13528         * modules/alphasort (configure.ac): ... to here.
13529
13530 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13531
13532         verify: new macro verify_expr; verify_true deprecated
13533         * NEWS: Mention this.
13534         * doc/verify.texi (Compile-time Assertions): Document this.
13535         * lib/verify.h (verify_true): Deprecate.
13536         (verify_expr): New macro.
13537         * tests/test-verify.c (function): Test verify_expr.
13538
13539 2011-06-14  Jim Meyering  <meyering@redhat.com>
13540
13541         init.sh: give more portable redirection-related advice in a comment
13542         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13543         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13544         for lots of discussion.  Stefano Lattarini suggested the solution
13545         of putting "9>&2" after the command.  Reported by Bruno Haible.
13546
13547 2011-06-13  Bruno Haible  <bruno@clisp.org>
13548
13549         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13550         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13551         'none'.
13552
13553 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13554
13555         ftoastr: use strtof only if HAVE_STRTOF
13556         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13557         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13558         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13559         * modules/ftoastr (configure.ac): Check for strtof.
13560
13561 2011-06-13  Bruno Haible  <bruno@clisp.org>
13562
13563         gnulib-tool: Addendum to 2011-06-08 commit.
13564         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13565         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13566
13567 2011-06-13  Bruno Haible  <bruno@clisp.org>
13568
13569         fseeko: Provide a non-inline replacement of fseek().
13570         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13571         * modules/fseeko (Depends-on): Add fseek.
13572         * modules/fseek (License): Change to LGPLv2+.
13573
13574 2011-06-13  Bruno Haible  <bruno@clisp.org>
13575
13576         ftello: Provide a non-inline replacement of ftell().
13577         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13578         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13579         not have ftello() (such as on mingw).
13580         * modules/ftello (Depends-on): Add ftell.
13581         * modules/ftell (License): Change to LGPLv2+.
13582
13583 2011-05-07  Bruno Haible  <bruno@clisp.org>
13584
13585         ftell: Move AC_LIBOBJ invocations to module description.
13586         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13587         * modules/ftell (configure.ac): ... to here.
13588
13589 2011-05-07  Bruno Haible  <bruno@clisp.org>
13590
13591         ftello: Respect rules for use of AC_LIBOBJ.
13592         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13593         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13594         here...
13595         * modules/ftello (configure.ac): ... to here.
13596
13597 2011-05-07  Bruno Haible  <bruno@clisp.org>
13598
13599         fseeko: Simplify.
13600         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13601         (gl_FUNC_FSEEKO): Inline it here.
13602
13603 2011-05-07  Bruno Haible  <bruno@clisp.org>
13604
13605         fseek: Move AC_LIBOBJ invocations to module description.
13606         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
13607         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13608         * modules/fseek (configure.ac): ... to here.
13609
13610 2011-05-07  Bruno Haible  <bruno@clisp.org>
13611
13612         fseek: Respect rules for use of AC_LIBOBJ.
13613         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
13614         here...
13615         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
13616
13617 2011-05-07  Bruno Haible  <bruno@clisp.org>
13618
13619         fseeko: Respect rules for use of AC_LIBOBJ.
13620         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
13621         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
13622         here...
13623         * modules/fseeko (configure.ac): ... to here.
13624
13625 2011-06-13  Bruno Haible  <bruno@clisp.org>
13626
13627         gnulib-tool: Allow comments in the 'Depends-on' section.
13628         * doc/gnulib.texi (Module description): Mention comment syntax in the
13629         Depends-on section.
13630         * gnulib-tool (func_get_dependencies): Filter out comment lines.
13631
13632 2011-06-13  Bruno Haible  <bruno@clisp.org>
13633
13634         file-set.h: guard __attibute__ use, now that it's not always defined
13635         * lib/file-set.h (record_file): Use __attribute__ only with compiler
13636         versions that support it.  This fixes a coreutils build failure with
13637         the vendor cc on HP-UX 11.31.
13638
13639 2011-06-12  Bruno Haible  <bruno@clisp.org>
13640
13641         acl: Add support for HP-UX >= 11.11 JFS ACLs.
13642         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
13643         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
13644         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
13645         (acl, aclsort): New declarations.
13646         (aclv_nontrivial): New declaration.
13647         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
13648         (file_has_acl): Read also the second kind of HP-UX ACLs.
13649         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
13650         kind of HP-UX ACLs if the first kind fails.
13651         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
13652         second kind of HP-UX ACLs.
13653         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
13654         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
13655         agree.
13656         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13657         hpuxjfs.
13658         Handle hpuxjfs.
13659         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13660         hpuxjfs.
13661         Handle hpuxjfs.
13662         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13663         (func_test_same_acls): Use both lsacl and getacl.
13664         Handle hpuxjfs.
13665         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13666         (func_test_same_acls): Use both lsacl and getacl.
13667         Handle hpuxjfs.
13668
13669 2011-06-12  Bruno Haible  <bruno@clisp.org>
13670
13671         acl: Complete the 2010-08-10 fix.
13672         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
13673         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
13674         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
13675         explicitly.
13676         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
13677         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
13678
13679 2011-06-12  Bruno Haible  <bruno@clisp.org>
13680
13681         spawn-pipe tests: Comments.
13682         * tests/test-spawn-pipe-child.c (main): Update comment.
13683         Reported by James Youngman <jay@gnu.org>.
13684
13685 2011-06-11  James Youngman  <jay@gnu.org>
13686
13687         New module 'stat-size'.
13688         * modules/stat-size: New module.  Provides macros for accessing
13689         file size information in instances of struct stat.  Depends on the
13690         fileblocks module because it calls st_blocks.
13691         * lib/stat-size.h: New file, adapted from coreutils' system.h.
13692         * doc/gnulib.texi: Include stat-size.texi.
13693         * doc/stat-size.texi: Documentation for this module.
13694         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
13695         * m4/fileblocks.m4: Mention that stat-size depends on the call to
13696         AC_STRUCT_ST_BLOCKS.
13697
13698 2011-06-09  Bruno Haible  <bruno@clisp.org>
13699
13700         thread: Support pthreads-win32.
13701         * lib/glthread/thread.h (gl_thread_self): Define differently on
13702         pthreads-win32.
13703         (gl_null_thread): New declaration.
13704         (gl_thread_self_pointer): New macro.
13705         * lib/glthread/thread.c (gl_null_thread): New constant.
13706         * tests/test-lock.c: Use gl_thread_self_pointer instead of
13707         gl_thread_self.
13708         * tests/test-tls.c: Likewise.
13709         Suggested by Paul Eggert. Reported by Eric Blake.
13710
13711 2011-06-09  Bruno Haible  <bruno@clisp.org>
13712
13713         thread: Fix confusion between NULL and 0.
13714         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
13715         Reported by Paul Eggert.
13716
13717 2011-06-09  Bruno Haible  <bruno@clisp.org>
13718
13719         spawn-pipe tests: Avoid test failure on HP-UX 11.
13720         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
13721         is closed.
13722
13723 2011-06-09  Bruno Haible  <bruno@clisp.org>
13724
13725         acl tests: Fix compilation error on HP-UX 11.
13726         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
13727
13728 2011-06-09  Bruno Haible  <bruno@clisp.org>
13729
13730         rmdir: Avoid test failure on HP-UX 10.20.
13731         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
13732         EEXIST.
13733
13734 2011-06-08  Eric Blake  <eblake@redhat.com>
13735
13736         perror: fix test on mingw
13737         * modules/perror-tests (Depends-on): Add dup2.
13738
13739         strerror_r-posix: fix on MacOS
13740         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13741         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13742         logic bug.
13743         * lib/strerror_r.c (strerror_r): Fix the bug.
13744         * lib/strerror.c (strerror): Likewise.
13745         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13746         problem.
13747         * doc/posix-functions/strerror.texi (strerror): Likewise.
13748         * doc/posix-functions/perror.texi (perror): Likewise.
13749         * tests/test-strerror.c (main): Enhance test.
13750         * tests/test-strerror_r.c (main): Likewise.
13751
13752 2011-06-08  Bruno Haible  <bruno@clisp.org>
13753
13754         gnulib-tool: Better isolation between different gnulib-tool invocations.
13755         * gnulib-tool: New option --witness-c-macro.
13756         (witness_c_macro): New variable.
13757         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
13758         AM_CPPFLAGS define it as a C macro.
13759         (func_emit_tests_Makefile_am): Likewise.
13760         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
13761         read it from there.
13762         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
13763         m4_define, not AC_DEFUN.
13764         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
13765         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
13766         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
13767         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
13768         s|...|...|, to substitute the values of the GNULIB_* module indicator
13769         variables.
13770         * modules/dirent (Makefile.am): Likewise.
13771         * modules/fcntl-h (Makefile.am): Likewise.
13772         * modules/iconv-h (Makefile.am): Likewise.
13773         * modules/langinfo (Makefile.am): Likewise.
13774         * modules/locale (Makefile.am): Likewise.
13775         * modules/math (Makefile.am): Likewise.
13776         * modules/netdb (Makefile.am): Likewise.
13777         * modules/poll-h (Makefile.am): Likewise.
13778         * modules/pty (Makefile.am): Likewise.
13779         * modules/search (Makefile.am): Likewise.
13780         * modules/signal (Makefile.am): Likewise.
13781         * modules/spawn (Makefile.am): Likewise.
13782         * modules/stdio (Makefile.am): Likewise.
13783         * modules/stdlib (Makefile.am): Likewise.
13784         * modules/string (Makefile.am): Likewise.
13785         * modules/sys_ioctl (Makefile.am): Likewise.
13786         * modules/sys_select (Makefile.am): Likewise.
13787         * modules/sys_socket (Makefile.am): Likewise.
13788         * modules/sys_stat (Makefile.am): Likewise.
13789         * modules/sys_times (Makefile.am): Likewise.
13790         * modules/sys_utsname (Makefile.am): Likewise.
13791         * modules/sys_wait (Makefile.am): Likewise.
13792         * modules/termios (Makefile.am): Likewise.
13793         * modules/time (Makefile.am): Likewise.
13794         * modules/unistd (Makefile.am): Likewise.
13795         * modules/wchar (Makefile.am): Likewise.
13796
13797 2011-06-08  Eric Blake  <eblake@redhat.com>
13798
13799         strerror: simplify replacement
13800         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
13801         * modules/strerror (configure.ac): No prereqs needed here...
13802         * modules/strerror-override (configure.ac): ...but this needs it.
13803         (Files): Add file for needed prereq macro.
13804
13805 2011-06-08  Bruno Haible  <bruno@clisp.org>
13806
13807         strerror_r-posix: Tweaks.
13808         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
13809         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
13810         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
13811         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
13812         (gl_FUNC_STRERROR_R): ... to here.
13813         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
13814
13815 2011-06-07  Eric Blake  <eblake@redhat.com>
13816
13817         perror: document fixed bugs
13818         * doc/posix-functions/perror.texi (perror): Document recent
13819         patches.
13820
13821 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13822
13823         stat-time: get_stat_birthtime failure is better-defined
13824         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
13825         return a timestamp whose tv_sec and tv_nsec values are both -1.
13826         Previously, the spec said only that the tv_nsec value was negative.
13827         This upward-compatible change simplifies GNU tar a bit.
13828
13829 2011-06-07  Eric Blake  <eblake@redhat.com>
13830
13831         strerror_r-posix: work around cygwin 1.7.9
13832         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
13833         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
13834         bug without replacing strerror_r.
13835         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
13836         strerror_r is buggy, but without requiring strerror_r compilation.
13837         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
13838
13839         test-perror: relax test to ignore cygwin bug
13840         * tests/test-perror2.c (main): Relax test on requiring detection
13841         of stream errors, and use unbuffered stream.
13842         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
13843         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13844         * doc/posix-functions/fputc.texi (fputc): Likewise.
13845         * doc/posix-functions/fputs.texi (fputs): Likewise.
13846         * doc/posix-functions/fputws.texi (fputws): Likewise.
13847         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13848         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
13849         * doc/posix-functions/getopt.texi (getopt): Likewise.
13850         * doc/posix-functions/perror.texi (perror): Likewise.
13851         * doc/posix-functions/printf.texi (printf): Likewise.
13852         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
13853         * doc/posix-functions/psignal.texi (psignal): Likewise.
13854         * doc/posix-functions/putc.texi (putc): Likewise.
13855         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
13856         Likewise.
13857         * doc/posix-functions/putchar.texi (putchar): Likewise.
13858         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
13859         Likewise.
13860         * doc/posix-functions/puts.texi (puts): Likewise.
13861         * doc/posix-functions/putwc.texi (putwc): Likewise.
13862         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13863         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13864         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13865         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13866         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13867         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13868         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13869         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13870
13871 2011-05-22  Bruno Haible  <bruno@clisp.org>
13872
13873         strerror: Move AC_LIBOBJ invocations to module description.
13874         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
13875         gl_PREREQ_STRERROR invocations from here...
13876         * modules/strerror (configure.ac): ... to here.
13877
13878 2011-05-21  Bruno Haible  <bruno@clisp.org>
13879
13880         perror: Use common idiom.
13881         * modules/perror (configure.ac): Reorder statements.
13882
13883 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13884
13885         tests: fix usage message in 'mktempd_'
13886         * tests/init.sh (mktempd_): In the usage message, use literal
13887         'mktempd_', not '$ME' (which is even undefined), as the name of
13888         the subroutine.
13889
13890 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13891
13892         tests init: new function 'fatal_', for hard errors
13893         Before this patch, the only way offered by tests/init.sh to
13894         properly signal a hard error was the `framework_failure_'
13895         function.  But the error message issued by that function,
13896         as its name would suggest, refers to a set-up failure in the
13897         testsuite, while hard errors can obviously also be due to
13898         other reasons.  The best way to fix this inconsistency is to
13899         introduce a new function with a more general error message.
13900         * tests/init.sh (fatal_): New function.
13901
13902 2011-06-06  Eric Blake  <eblake@redhat.com>
13903
13904         canonicalize-lgpl: use common idiom
13905         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
13906         over newer POSIX -Rf.
13907         Reported by Bruno Haible.
13908
13909         canonicalize-lgpl: work around AIX realpath bug
13910         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
13911         * doc/posix-functions/realpath.texi (realpath): Document it.
13912         Reported by Bruno Haible.
13913
13914         strerror: work around FreeBSD bug
13915         * lib/strerror.c (strerror): Special case 0.
13916         Reported by Bruno Haible.
13917
13918         strerror-override: avoid bloating errno module
13919         * modules/errno (Files, configure.ac): Move replacement strings...
13920         * modules/strerror-override: ...to new module.
13921         * modules/strerror (Depends-on): Add strerror-override.
13922         * modules/strerror_r-posix (Depends-on): Likewise.
13923         * MODULES.html.sh: Document new module.
13924         Reported by Bruno Haible.
13925
13926 2011-06-06  Bruno Haible  <bruno@clisp.org>
13927
13928         spawn-pipe tests: Rename program.
13929         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
13930         * tests/test-spawn-pipe-child.c: Update comment.
13931         * tests/test-spawn-pipe.sh: Update.
13932         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
13933
13934         spawn-pipe tests: Link the child program only against libc.
13935         * tests/test-spawn-pipe-child.c: New file, extracted from
13936         tests/test-spawn-pipe.c.
13937         (main): Expect only one argument.
13938         (is_open): New function, copied from tests/test-pipe.c.
13939         * tests/test-spawn-pipe.c: Don't include <errno.h>.
13940         (child_main): Remove function.
13941         (test_pipe): Pass only one argument to the child program.
13942         (main): Remove child process code. Expect the child program's name as
13943         first argument.
13944         * tests/test-spawn-pipe.sh: Pass the child program's name as first
13945         argument.
13946         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13947         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13948         test-spawn-pipe-child against no libraries.
13949
13950 2011-06-06  Bruno Haible  <bruno@clisp.org>
13951
13952         careadlinkat: Avoid mismatch between ssize_t and int.
13953         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13954         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13955
13956 2011-06-06  Jim Meyering  <meyering@redhat.com>
13957
13958         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13959         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13960         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13961
13962 2011-06-05  Bruno Haible  <bruno@clisp.org>
13963
13964         ansi-c++-opt: Interoperability with libtool.
13965         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13966         set the variable to "no", not to ":".
13967         * NEWS: Mention the change.
13968
13969 2011-06-05  Bruno Haible  <bruno@clisp.org>
13970
13971         acl: Fix test failure on AIX 7.
13972         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13973         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13974
13975 2011-06-05  Bruno Haible  <bruno@clisp.org>
13976
13977         pipe-filter-ii: Fix test failure on AIX and IRIX.
13978         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13979         with EAGAIN, retry with a smaller buffer size.
13980
13981 2011-06-05  Bruno Haible  <bruno@clisp.org>
13982
13983         localename: Fix link dependencies.
13984         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13985         * modules/localename-tests (Makefile.am): Link test-localename with
13986         $(LIBTHREAD).
13987
13988 2011-06-05  Bruno Haible  <bruno@clisp.org>
13989
13990         error: Avoid gcc warning.
13991         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13992
13993 2011-06-05  Bruno Haible  <bruno@clisp.org>
13994
13995         unsetenv: Avoid gcc warning.
13996         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13997
13998 2011-06-05  Bruno Haible  <bruno@clisp.org>
13999
14000         setenv: Avoid gcc warning.
14001         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14002
14003 2011-06-05  Bruno Haible  <bruno@clisp.org>
14004
14005         sys_select: Ensure memset is declared also on AIX 7.
14006         * lib/sys_select.in.h: Include <string.h> also on AIX.
14007         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14008         self-contained also on AIX 7.1.
14009
14010 2011-06-04  Jim Meyering  <meyering@redhat.com>
14011
14012         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14013         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14014         function name, "error".
14015         (_gl_translatable_diag_func_re): New configurable variable.
14016
14017 2011-06-04  Bruno Haible  <bruno@clisp.org>
14018
14019         getopt: Avoid gcc warning.
14020         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14021
14022 2011-06-04  Bruno Haible  <bruno@clisp.org>
14023
14024         strerror_r: Fix comments.
14025         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14026         commit.
14027
14028 2011-06-04  Bruno Haible  <bruno@clisp.org>
14029
14030         perror: Fix compilation error.
14031         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14032         Undefine fprintf, not sprintf.
14033         * modules/perror (Depends-on): Remove intprops, verify.
14034
14035 2011-06-04  Bruno Haible  <bruno@clisp.org>
14036
14037         setlocale: Enable replacement on Cygwin 1.5.
14038         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14039         Cygwin 1.5.x.
14040         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14041         LC_CTYPE category also exists on Cygwin 1.5.x.
14042
14043 2011-06-04  Bruno Haible  <bruno@clisp.org>
14044
14045         strerror-override: Don't disable symbol renamings.
14046         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14047         * lib/strerror-override.c: Include config.h.
14048         (strerror_override): Don't undefine.
14049
14050 2011-06-03  Bruno Haible  <bruno@clisp.org>
14051
14052         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14053         * lib/localename.h: Update copyright header.
14054         * lib/localename.c: Likewise.
14055         * lib/relocatable.h: Likewise.
14056         * lib/relocatable.c: Likewise.
14057
14058 2011-06-02  Bruno Haible  <bruno@clisp.org>
14059
14060         doc: Fix a module name.
14061         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14062
14063 2011-06-02  Bruno Haible  <bruno@clisp.org>
14064
14065         pipe2: Remove dependency on 'nonblocking' module.
14066         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14067         O_NONBLOCK is defined by gnulib.
14068         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14069         is zero.
14070         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14071         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14072         defined by gnulib.
14073         (get_nonblocking_flag): New function.
14074         (main): Test O_NONBLOCK flag only if it is nonzero.
14075         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14076
14077 2011-06-03  Jim Meyering  <meyering@redhat.com>
14078
14079         maint: three new prohibit-header-without-use rules
14080         Prohibit use of cloexec.h, posixver.h, same.h without use.
14081         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14082         (sc_prohibit_posixver_without_use): Likewise.
14083         (sc_prohibit_same_without_use): Likewise.
14084
14085 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14086
14087         allocator: 'die' routine is now given requested size
14088         * lib/allocator.h (struct allocator.die): New size arg.
14089         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14090         If the actual problem is an ssize_t limitation, not a size_t or
14091         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14092
14093 2011-06-01  Eric Blake  <eblake@redhat.com>
14094
14095         strerror: drop strerror_r dependency
14096         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14097         * lib/strerror-override.c (strerror_override): ...to new file.
14098         * lib/strerror-override.h: Add prototype.
14099         * lib/strerror-impl.h: Delete.
14100         * lib/strerror.c (strerror): New implementation.
14101         * modules/errno (Files): Add new files.
14102         (configure.ac): Compile new file as appropriate.
14103         * modules/strerror (Files): Drop unused file.
14104         (Depends-on): Drop strerror_r-posix.
14105         * MODULES.html.sh: Document strerror_r-posix.
14106         Requested by Sam Steingold.
14107
14108         perror: call strerror_r directly
14109         * modules/perror (Files): Drop strerror-impl.h.
14110         * lib/perror.c (perror): Use our own stack buffer, rather than
14111         calling a wrapper that uses static storage.
14112         * doc/posix-functions/perror.texi (perror): Document a limitation
14113         of our replacement.
14114
14115         strerror_r: fix includes for FreeBSD
14116         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14117         since we use abort on some platforms.
14118         Reported by Matthias Bolte.
14119
14120 2011-05-31  Bruno Haible  <bruno@clisp.org>
14121
14122         Fix link errors in tests: openat-die uses gettext-h.
14123         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14124         against $(LIBINTL).
14125         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14126         against $(LIBINTL).
14127         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14128         $(LIBINTL).
14129         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14130         against $(LIBINTL).
14131         * modules/linkat-tests (Makefile.am): Link test-linkat against
14132         $(LIBINTL).
14133         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14134         $(LIBINTL).
14135         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14136         against $(LIBINTL).
14137         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14138         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14139         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14140         $(LIBINTL).
14141         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14142         $(LIBINTL).
14143         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14144         $(LIBINTL).
14145         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14146
14147 2011-05-31  Bruno Haible  <bruno@clisp.org>
14148
14149         Fix link errors in tests: wait-process uses gettext-h.
14150         * modules/nonblocking-pipe-tests (Makefile.am): Set
14151         test_nonblocking_pipe_main_LDADD.
14152         * modules/nonblocking-socket-tests (Makefile.am): Link
14153         test-nonblocking-socket-main against $(LIBINTL).
14154         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14155
14156 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14157
14158         assert-h: work around 'verify' incompatibility
14159         * lib/verify.h: Use @...@ directives, not ifdef.
14160         * modules/assert-h (assert.h): Implement the directives.
14161         (assert.h): Substitute the symbol-prefix more consistently.
14162
14163 2011-05-29  Jim Meyering  <meyering@redhat.com>
14164
14165         trim: remove three superfluous assignments
14166         * lib/trim.c (trim2): Remove three superfluous assignments
14167         and correct brace positioning.
14168
14169 2011-05-29  Bruno Haible  <bruno@clisp.org>
14170
14171         wctype-h: Avoid namespace pollution on Solaris 2.6.
14172         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14173         identifiers.
14174         * doc/posix-headers/wctype.texi: Mention the problem.
14175         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14176
14177 2011-05-28  Jim Meyering  <meyering@redhat.com>
14178
14179         parse-datetime.y: accommodate -Wstrict-overflow
14180         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14181         placate -Wstrict-overflow.
14182
14183         trim: avoid a warning from -O2 -Wstrict-overflow
14184         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14185
14186 2011-05-29  Bruno Haible  <bruno@clisp.org>
14187
14188         gnulib-tool: Fix bug in yesterday's commit.
14189         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14190         twice.
14191
14192 2011-05-29  Bruno Haible  <bruno@clisp.org>
14193
14194         Allow multiple gnulib generated include files to be combined.
14195         * gnulib-tool (func_compute_include_guard_prefix): New function.
14196         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14197         ${gl_include_guard_prefix} references.
14198         (func_import, func_create_testdir): Invoke
14199         func_compute_include_guard_prefix.
14200         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14201         * lib/ctype.in.h: Likewise.
14202         * lib/dirent.in.h: Likewise.
14203         * lib/errno.in.h: Likewise.
14204         * lib/fcntl.in.h: Likewise.
14205         * lib/float.in.h: Likewise.
14206         * lib/getopt.in.h: Likewise.
14207         * lib/iconv.in.h: Likewise.
14208         * lib/langinfo.in.h: Likewise.
14209         * lib/locale.in.h: Likewise.
14210         * lib/math.in.h: Likewise.
14211         * lib/netdb.in.h: Likewise.
14212         * lib/netinet_in.in.h: Likewise.
14213         * lib/poll.in.h: Likewise.
14214         * lib/pthread.in.h: Likewise.
14215         * lib/pty.in.h: Likewise.
14216         * lib/sched.in.h: Likewise.
14217         * lib/se-selinux.in.h: Likewise.
14218         * lib/search.in.h: Likewise.
14219         * lib/signal.in.h: Likewise.
14220         * lib/spawn.in.h: Likewise.
14221         * lib/stdarg.in.h: Likewise.
14222         * lib/stddef.in.h: Likewise.
14223         * lib/stdint.in.h: Likewise.
14224         * lib/stdio.in.h: Likewise.
14225         * lib/stdlib.in.h: Likewise.
14226         * lib/string.in.h: Likewise.
14227         * lib/strings.in.h: Likewise.
14228         * lib/sys_file.in.h: Likewise.
14229         * lib/sys_ioctl.in.h: Likewise.
14230         * lib/sys_select.in.h: Likewise.
14231         * lib/sys_socket.in.h: Likewise.
14232         * lib/sys_stat.in.h: Likewise.
14233         * lib/sys_time.in.h: Likewise.
14234         * lib/sys_times.in.h: Likewise.
14235         * lib/sys_uio.in.h: Likewise.
14236         * lib/sys_utsname.in.h: Likewise.
14237         * lib/sys_wait.in.h: Likewise.
14238         * lib/sysexits.in.h: Likewise.
14239         * lib/termios.in.h: Likewise.
14240         * lib/time.in.h: Likewise.
14241         * lib/unistd.in.h: Likewise.
14242         * lib/wchar.in.h: Likewise.
14243         * lib/wctype.in.h: Likewise.
14244         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14245         * modules/ctype (Makefile.am): Likewise.
14246         * modules/dirent (Makefile.am): Likewise.
14247         * modules/errno (Makefile.am): Likewise.
14248         * modules/fcntl-h (Makefile.am): Likewise.
14249         * modules/float (Makefile.am): Likewise.
14250         * modules/getopt-posix (Makefile.am): Likewise.
14251         * modules/iconv-h (Makefile.am): Likewise.
14252         * modules/langinfo (Makefile.am): Likewise.
14253         * modules/locale (Makefile.am): Likewise.
14254         * modules/math (Makefile.am): Likewise.
14255         * modules/netdb (Makefile.am): Likewise.
14256         * modules/netinet_in (Makefile.am): Likewise.
14257         * modules/poll-h (Makefile.am): Likewise.
14258         * modules/pthread (Makefile.am): Likewise.
14259         * modules/pty (Makefile.am): Likewise.
14260         * modules/sched (Makefile.am): Likewise.
14261         * modules/search (Makefile.am): Likewise.
14262         * modules/selinux-h (Makefile.am): Likewise.
14263         * modules/signal (Makefile.am): Likewise.
14264         * modules/spawn (Makefile.am): Likewise.
14265         * modules/stdarg (Makefile.am): Likewise.
14266         * modules/stddef (Makefile.am): Likewise.
14267         * modules/stdint (Makefile.am): Likewise.
14268         * modules/stdio (Makefile.am): Likewise.
14269         * modules/stdlib (Makefile.am): Likewise.
14270         * modules/string (Makefile.am): Likewise.
14271         * modules/strings (Makefile.am): Likewise.
14272         * modules/sys_file (Makefile.am): Likewise.
14273         * modules/sys_ioctl (Makefile.am): Likewise.
14274         * modules/sys_select (Makefile.am): Likewise.
14275         * modules/sys_socket (Makefile.am): Likewise.
14276         * modules/sys_stat (Makefile.am): Likewise.
14277         * modules/sys_time (Makefile.am): Likewise.
14278         * modules/sys_times (Makefile.am): Likewise.
14279         * modules/sys_uio (Makefile.am): Likewise.
14280         * modules/sys_utsname (Makefile.am): Likewise.
14281         * modules/sys_wait (Makefile.am): Likewise.
14282         * modules/sysexits (Makefile.am): Likewise.
14283         * modules/termios (Makefile.am): Likewise.
14284         * modules/time (Makefile.am): Likewise.
14285         * modules/unistd (Makefile.am): Likewise.
14286         * modules/wchar (Makefile.am): Likewise.
14287         * modules/wctype-h (Makefile.am): Likewise.
14288         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14289
14290 2011-05-29  Bruno Haible  <bruno@clisp.org>
14291
14292         assert-h: Allow multiple gnulib generated replacements to coexist.
14293         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14294
14295 2011-05-29  Bruno Haible  <bruno@clisp.org>
14296
14297         argp: Allow coexistence with strerror_r-posix module.
14298         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14299         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14300         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14301         not the glibc signature.
14302
14303 2011-05-28  Bruno Haible  <bruno@clisp.org>
14304
14305         gnulib-tool: Alternative structure of testdirs, similar to --import.
14306         * gnulib-tool: New option --single-configure.
14307         (func_usage): Document it.
14308         (single_configure): New variable.
14309         (func_modules_transitive_closure_separately,
14310         func_modules_transitive_closure_separately,
14311         func_determine_use_libtests, func_modules_add_dummy_separately,
14312         func_modules_to_filelist_separately): New functions, extracted from
14313         func_import.
14314         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14315         (func_import): Use the new functions.
14316         (func_create_testdir): Set final_modules. Handle $single_configure =
14317         true case.
14318
14319 2011-05-28  Bruno Haible  <bruno@clisp.org>
14320
14321         getloadavg: Remove an unreliable safety check.
14322         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14323         getloadavg.c is in place.
14324         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14325         Reported by Sam Steingold <sds@gnu.org>.
14326
14327 2011-05-28  Bruno Haible  <bruno@clisp.org>
14328
14329         doc: Cleanup yet another file produced by texinfo.tex.
14330         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14331
14332 2011-05-28  Bruno Haible  <bruno@clisp.org>
14333
14334         Finish the conditional dependencies mechanism.
14335         * gnulib-tool: New option --no-conditional-dependencies.
14336         (func_usage): Document it. Don't mark --conditional-dependencies as
14337         experimental.
14338         (cond_dependencies): The possible values can now be true, false, empty.
14339         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14340         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14341         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14342
14343 2011-05-28  Bruno Haible  <bruno@clisp.org>
14344
14345         doc: Use a recent texinfo.tex.
14346         * doc/Makefile (tex_opts): New variable.
14347         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14348
14349 2011-05-28  Jim Meyering  <meyering@redhat.com>
14350
14351         intprops.h: adjust comment to match code change
14352         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14353         only once, it *may* have side effects.  Also fix an unrelated typo.
14354         (_GL_INT_SIGNED): Likewise.
14355
14356 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14357
14358         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14359
14360 2011-05-26  Bruno Haible  <bruno@clisp.org>
14361
14362         mbsrchr: Avoid collision with system function on Interix.
14363         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14364         Reported by Markus Duft <mduft@gentoo.org>.
14365
14366 2011-05-15  James Youngman  <jay@gnu.org>
14367
14368         getopt: for ambiguous options, enumerate the possibilities.
14369         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14370         the ambiguous options when an ambiguous prefix is given. This was
14371         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14372         glibc change was
14373         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14374
14375 2011-05-25  Eric Blake  <eblake@redhat.com>
14376
14377         getcwd: work around mingw bug
14378         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14379         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14380         Reported by Matthias Bolte.
14381
14382 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14383
14384         test-intprops: disable -Wtype-limits diagnostics
14385         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14386         diagnostics.  Otherwise, the integer overflow macros generate many
14387         diagnostics.  Reported by Jim Meyering in
14388         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14389
14390         intprops: shorten, to pacify gcc -Woverlength-strings
14391         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14392         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14393         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14394         likely to run afoul of C compiler limits for string constant lengths.
14395         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14396
14397 2011-05-24  Eric Blake  <eblake@redhat.com>
14398
14399         docs: document recently fixed glibc printf bug
14400         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14401         * doc/posix-functions/printf.texi (printf): Likewise.
14402         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14403         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14404
14405         closein-tests: convert to init.sh
14406         * modules/closein-tests (Files): Add init.sh
14407         * tests/test-closein.sh Use it.
14408
14409         yesno-tests: convert to init.sh
14410         * modules/yesno-tests (Files): Add init.sh.
14411         * tests/test-yesno.sh: Use it.
14412
14413         atexit-tests: ensure reliable exit status
14414         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14415         Reported by Bruno Haible.
14416
14417 2011-05-24  Bruno Haible  <bruno@clisp.org>
14418
14419         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14420         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14421         gl_PREREQ_STRERROR_R invocations from here...
14422         * modules/strerror_r-posix (configure.ac): ... to here.
14423
14424 2011-05-24  Eric Blake  <eblake@redhat.com>
14425
14426         strerror_r: fix missing header
14427         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14428
14429         strerror_r: fix AIX test failures
14430         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14431         ERANGE failure.
14432
14433         strerror_r: fix Solaris test failures
14434         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14435         failures.
14436         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14437
14438         strerror_r: enforce POSIX recommendations
14439         * lib/strerror_r.c (safe_copy): New helper method.
14440         (strerror_r): Guarantee a non-empty string.
14441         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14442         recent POSIX rulings and to match our strerror guarantees.
14443         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14444
14445 2011-05-24  Jim Meyering  <meyering@redhat.com>
14446
14447         test-perror2.c: avoid warning about unused variable
14448         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14449
14450 2011-05-24  Eric Blake  <eblake@redhat.com>
14451
14452         perror: avoid spurious test failure on HP-UX
14453         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14454
14455         tests: fix logic bug in init.sh
14456         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14457         shell.
14458
14459 2011-05-24  Jim Meyering  <meyering@redhat.com>
14460
14461         utimensat: do not reference an out-of-scope buffer
14462         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14463         declared in an inner scope, yet "times" would be dereferenced outside
14464         the scope in which "ts" was valid.
14465         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14466         of ts[2] "out/up", so that the use of aliased "times" (via
14467         "times = ts;") does not end up referencing an out-of-scope "ts"
14468
14469         opendir-safer.c: don't clobber errno; don't close negative FD
14470         * lib/opendir-safer.c (opendir_safer):
14471         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14472         file descriptor, and more importantly, don't clobber the
14473         offending errno value with EINVAL.  Before, upon failure
14474         of dup_safer, we would pass the negative file descriptor to
14475         fdopendir, which would clobber errno.
14476
14477 2011-05-23  Bruno Haible  <bruno@clisp.org>
14478
14479         idcache: Fix module description.
14480         * modules/idcache (Include): Set to "idcache.h".
14481
14482 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14483
14484         gnulib-tool: fix portability problem with MacOS sed
14485         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14486         before the "}".  Problem reported by Leo in
14487         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14488         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14489         sed_extract_condition1, sed_extract_condition2.
14490
14491 2011-05-23  Bruno Haible  <bruno@clisp.org>
14492
14493         hash: Simplify autoconf macro.
14494         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14495
14496 2011-05-23  Bruno Haible  <bruno@clisp.org>
14497
14498         getugroups: Fix module description.
14499         * modules/getugroups (Include): Set to "getugroups.h".
14500
14501 2011-05-23  Bruno Haible  <bruno@clisp.org>
14502
14503         linkat: Simplify autoconf macro.
14504         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14505
14506 2011-05-23  Bruno Haible  <bruno@clisp.org>
14507             Eric Blake  <eblake@redhat.com>
14508
14509         linkat, renameat: Update dependencies.
14510         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14511         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14512         symlinkat.
14513
14514 2011-05-23  Jim Meyering  <meyering@redhat.com>
14515
14516         maint.mk: more tight_scope improvements
14517         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14518         (_gl_TS_headers): Define only in if-0'd block.
14519         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14520         sometimes we must *not* use it.  Adjust uses accordingly.
14521         (sc_tight_scope): Use much simpler grep-based test to determine
14522         whether we skip this rule.
14523
14524         maint.mk: generalize/improve the tight-scope rule
14525         * top/maint.mk: Emit a warning when the test is skipped.
14526         (_gl_TS_dir): Add $(srcdir)/ prefix.
14527         (_gl_TS_function_match): Simplify, rather than trying
14528         to enumerate common types.  Otherwise, it would fail to match an
14529         "extern unsigned char const *" declaration in idutils.
14530         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14531         a way to support use of that type of macro.
14532         (_gl_TS_var_match): Simplify regexp.
14533         (_gl_TS_obj_files): New configurable variable.
14534         (_gl_TS_headers): Likewise.
14535
14536 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14537
14538         verify: fix bug when gnulib <assert.h> is also included
14539         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14540         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14541         Perhaps there's a better way, but this fixes the immediate problem.
14542         Problem reported by Bruno Haible in
14543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14544
14545 2011-05-22  Bruno Haible  <bruno@clisp.org>
14546
14547         xgetcwd: Simplify autoconf macro.
14548         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14549
14550 2011-05-22  Bruno Haible  <bruno@clisp.org>
14551
14552         New module 'mktime-internal'.
14553         * modules/mktime-internal: New file.
14554         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14555         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14556         mktime_internal as a C macro if libc has __mktime_internal.
14557         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14558         conditions.
14559         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14560
14561 2011-05-22  Bruno Haible  <bruno@clisp.org>
14562
14563         timegm: Correct mktime replacement statements.
14564         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14565         defining mktime as a C macro. This completes a 2009-07-28 commit.
14566
14567 2011-05-22  Bruno Haible  <bruno@clisp.org>
14568
14569         timegm: Simplify autoconf macro.
14570         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14571
14572 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14573
14574         clock-time: change to LGPLv2+.
14575         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14576         BSD-like but we have no mark for that; this is good enough for now.
14577
14578 2011-05-21  Bruno Haible  <bruno@clisp.org>
14579
14580         strerror_r: Fix comments.
14581         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14582
14583 2011-05-21  Bruno Haible  <bruno@clisp.org>
14584
14585         relocatable-prog-wrapper: Fix possible link error.
14586         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14587         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14588         (gl_FUNC_SETENV): ... to here.
14589         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14590         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14591
14592 2011-05-21  Bruno Haible  <bruno@clisp.org>
14593
14594         relocatable-prog-wrapper: Assume strerror() exists.
14595         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14596         m4/strerror.m4.
14597         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
14598         * lib/relocwrapper.c: Remove mention of strerror module.
14599         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
14600         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
14601         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
14602         C macro.
14603
14604 2011-05-21  Bruno Haible  <bruno@clisp.org>
14605
14606         select: Simplify replacement idiom.
14607         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
14608         Win32 platforms.
14609         * lib/sys_select.in.h (select): Simplify accordingly.
14610         * modules/select (Depends-on): Likewise.
14611
14612 2011-05-21  Bruno Haible  <bruno@clisp.org>
14613
14614         mkdir-p: Simplify autoconf macro.
14615         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
14616         gl_FUNC_LCHOWN.
14617
14618 2011-05-21  Eric Blake  <eblake@redhat.com>
14619
14620         strerror_r: avoid clobbering strerror on cygwin
14621         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
14622         fall back instead to sys_errlist.
14623         * modules/strerror (configure.ac): Add witness.
14624         * tests/test-strerror_r.c (main): Enhance test.
14625         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14626         * tests/test-perror2.c (main): Free memory before exit.
14627
14628 2011-05-21  Bruno Haible  <bruno@clisp.org>
14629
14630         mkdtemp: Use gnulib naming conventions.
14631         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
14632         * modules/mkdtemp (configure.ac): Update.
14633
14634 2011-05-20  Eric Blake  <eblake@redhat.com>
14635
14636         strerror_r: avoid corrupting errno on Solaris
14637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
14638         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14639
14640         strerror_r: avoid compiler warning
14641         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
14642
14643         strerror_r: simplify AIX code
14644         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
14645
14646         test-perror: avoid spurious failure on FreeBSD
14647         * modules/perror-tests (Depends-on): Add strerror, now that
14648         strerror_r no longer pulls it in.
14649
14650 2011-05-20  Bruno Haible  <bruno@clisp.org>
14651
14652         strerror_r-posix: Remove unused dependencies.
14653         * modules/strerror_r-posix (Depends-on): Remove strerror.
14654         Reported by Eric Blake.
14655
14656 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14657
14658         intprops: remove assumption about A|B representation
14659         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
14660         is a valid integer if both A and B are.  Although this is true for
14661         all known practical hosts, the C standard doesn't guarantee it,
14662         and the code need not assume it.  Also, this change may work around
14663         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
14664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
14665
14666 2011-05-20  Eric Blake  <eblake@redhat.com>
14667
14668         perror: work around FreeBSD bug
14669         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
14670         is broken.  Move AC_LIBOBJ...
14671         * modules/perror (configure.ac): Here.
14672         * doc/posix-functions/perror.texi (perror): Document this.
14673         * tests/test-perror2.c (main): Enhance test.
14674
14675         test-perror: check for strerror interactions
14676         * tests/macros.h (STREQ): Add macro.
14677         * modules/perror-tests (Files): Add second test.
14678         * tests/test-perror2.c (main): New file.
14679         * doc/posix-functions/perror.texi (perror): Document glibc bug.
14680
14681         test-perror: rewrite to use init script
14682         * modules/perror-tests (Files): Add init.sh.
14683         * tests/test-perror.sh: Use temporary directory.
14684
14685 2011-05-20  Jim Meyering  <meyering@redhat.com>
14686
14687         maint: replace misused "a" with "an"
14688         * doc/intprops.texi: "a integer"
14689         * doc/regex.texi: "a explanation"
14690         * lib/alignof.h: "a object"
14691         * lib/argmatch.h: "a explanation"
14692         * lib/argp-help.c: "a option" and "a OPTION_DOC"
14693         * lib/stdint.in.h: "a integer"
14694         * lib/userspec.c: "a owner"
14695         * doc/gnulib.texi: Fix "a idea", and reword.
14696
14697 2011-05-19  Jim Meyering  <meyering@redhat.com>
14698
14699         maint: correct misuse of "a" and "an"
14700         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
14701         * lib/argp-help.c: "an docum...": s/an/a/
14702         * lib/argp-parse.c: "An vector": s/An/A/
14703         * lib/execute.c: "an native": s/an/a/
14704         * lib/spawn-pipe.c: Likewise.
14705         * lib/gc.h: "an Gc_rc": s/an/a/
14706         * lib/unigbrk.in.h: "an grapheme": s/an/a/
14707         * lib/fts.c: "an stat.st_dev": s/an/a/
14708
14709 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14710
14711         intprops-tests: work around HP-UX 11.23 cc bug with constants
14712         * tests/test-intprops.c (VERIFY): New macro.
14713         (main): Use it, instead of verify, to work around the compiler bug; see
14714         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14715
14716         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
14717         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
14718         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
14719         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
14720         (_GL_REMAINDER_OVERFLOW): Use it.
14721
14722         intprops-tests: revert unsigned part of previous change
14723         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
14724         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
14725         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
14726         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
14727
14728 2011-05-19  Bruno Haible  <bruno@clisp.org>
14729
14730         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
14731         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
14732         strerror_r() returned without filling the buffer.
14733         Reported by Eric Blake.
14734
14735 2011-05-19  Eric Blake  <eblake@redhat.com>
14736
14737         strerror_r: guarantee unchanged errno
14738         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14739         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14740         failure.
14741         * tests/test-strerror_r.c (main): Enhance test.
14742
14743 2011-05-19  Bruno Haible  <bruno@clisp.org>
14744
14745         strerror_r: Reorder #if blocks.
14746         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
14747         for consistency with the previous commit.
14748
14749 2011-05-19  Bruno Haible  <bruno@clisp.org>
14750
14751         perror: Avoid clobbering the strerror buffer when possible.
14752         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
14753         * lib/strerror.c: Include it.
14754         * modules/strerror (Files): Add lib/strerror-impl.h.
14755         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
14756         (my_strerror): New function, defined through lib/strerror-impl.h.
14757         (perror): Use it instead of strerror.
14758         * modules/perror (Files): Add lib/strerror-impl.h.
14759         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
14760
14761 2011-05-19  Eric Blake  <eblake@redhat.com>
14762
14763         strerror_r: fix on newer cygwin
14764         * lib/strerror_r.c (strerror_r): Cygwin now has
14765         __xpg_strerror_r, use it.
14766
14767 2011-05-19  Bruno Haible  <bruno@clisp.org>
14768
14769         strerror_r: Avoid clobbering the strerror buffer when possible.
14770         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
14771         (sys_nerr, sys_errlist): New declarations.
14772         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
14773         HP-UX, native Win32, IRIX, and 32-bit Solaris.
14774         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
14775
14776 2011-05-19  Bruno Haible  <bruno@clisp.org>
14777
14778         strerror_r: Fix test failure on mingw.
14779         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
14780         EXTEND_STRERROR_R.
14781         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
14782         macros from errno.in.h instead.
14783
14784 2011-05-19  Eric Blake  <eblake@redhat.com>
14785
14786         strerror: relax test for Solaris
14787         * tests/test-strerror.c (main): Permit Solaris behavior.
14788         * tests/test-strerror_r.c (main): Likewise.
14789
14790         strerror: enforce POSIX ruling on strerror(0)
14791         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
14792         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14793         * lib/strerror_r.c (rpl_strerror_r): Work around it.
14794         * doc/posix-functions/strerror.texi (strerror): Document it.
14795         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
14796         * tests/test-strerror.c (main): Strengthen test.
14797         * tests/test-strerror_r.c (main): Likewise.
14798
14799 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14800
14801         intprop-tests: port to older and more-pedantic compilers
14802         * modules/intprops-tests (Files): Add tests/macros.h.
14803         * tests/test-intprops.c: Include macros.h.
14804         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
14805         it's no longer documented to expand to an integer constant expression.
14806         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
14807         argument is floating point, as it's no longer documented to expand
14808         to an integer constant expression in that case.
14809         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
14810         compiler bugs reported by Bruno Haible.  See
14811         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14812         (U0, U1): New constants, to work around the same bugs.  Also,
14813         in tests, use e.g., "(unsigned int) 39" rather than "39u".
14814
14815         intprops: work around C compiler bugs
14816         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
14817         bug in Sun C 5.11 2010/08/13 and other compilers; see
14818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14819
14820         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
14821         * doc/intprops.texi (Integer Type Determination): Fix
14822         documentation for TYPE_IS_INTEGER: it returns an constant
14823         expression, not an integer constant expression.  Fix doc for
14824         TYPE_SIGNED: it returns an integer constant expression only if its
14825         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
14826         hardly worth documented that way....)
14827
14828 2011-05-18  Bruno Haible  <bruno@clisp.org>
14829
14830         strerror_r: Avoid clobbering the strerror buffer when possible.
14831         * lib/strerror_r.c (strerror_r): Merge the three implementations.
14832         Handle gnulib defined errno values here. When strerror() returns NULL
14833         or an empty string, return EINVAL.
14834         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
14835         gnulib defined errno values here.
14836         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
14837
14838 2011-05-18  Eric Blake  <eblake@redhat.com>
14839
14840         fnmatch: avoid compiler warning
14841         * lib/fnmatch_loop.c (FCT): Use correct type.
14842         Reported by Matthias Bolte.
14843
14844 2011-05-13  Jim Meyering  <meyering@redhat.com>
14845
14846         maint.mk: three new prohibit_<HDR>_without_use rules
14847         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
14848         (sc_prohibit_stdio-safer_without_use): Likewise.
14849         (sc_prohibit_xfreopen_without_use): Likewise.
14850
14851 2011-05-17  Jim Meyering  <meyering@redhat.com>
14852
14853         announce-gen: fail if the NEWS delta is empty
14854         If there's nothing noteworthy in NEWS, then either you forgot
14855         or you shouldn't be releasing.
14856         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
14857
14858 2011-05-17  Pádraig Brady <P@draigBrady.com>
14859
14860         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
14861         reserved symbols starting with double underscore from the check.
14862
14863 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14864
14865         intprops: add doc
14866         * doc/intprops.texi: New file, documenting intprops.
14867         * doc/gnulib.texi (Particular Modules): Include it.
14868
14869         verify: add doc to gnulib manual and fix example
14870         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
14871         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
14872         (Compile-time Assertions): Fix example so it can't overflow.
14873
14874 2011-05-17  Jim Meyering  <meyering@redhat.com>
14875
14876         warnings.m4: don't usurp save_CPPFLAGS variable name
14877         * m4/warnings.m4: Prefix local temporary variable name with gl_.
14878
14879         doc: fix typo
14880         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
14881
14882 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14883             Bruno Haible  <bruno@clisp.org>
14884
14885         doc: Tweak recent change.
14886         * README (Portability guidelines): Tweak new text.
14887         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
14888         Interix 6.1.
14889
14890 2011-05-16  Eric Blake  <eblake@redhat.com>
14891
14892         inttypes: avoid autoconf warning
14893         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
14894         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14895
14896 2011-05-16  Sam Steingold <sds@gnu.org>
14897         and Eric Blake  <eblake@redhat.com>
14898
14899         vc-list-files: accept multiple directory operands
14900         * build-aux/vc-list-files: Iterate over all remaining operands.
14901
14902 2011-05-16  Bruno Haible  <bruno@clisp.org>
14903
14904         Fix confusion regarding deprecated modules.
14905         * modules/calloc (Status, Notice): Mark module as deprecated, not
14906         obsolete.
14907         * modules/fnmatch-posix (Status, Notice): Likewise.
14908         * modules/getdate (Status, Notice): Likewise.
14909         * modules/getopt (Status, Notice): Likewise.
14910         * modules/malloc (Status, Notice): Likewise.
14911         * modules/pipe (Status, Notice): Likewise.
14912         * modules/realloc (Status, Notice): Likewise.
14913         * modules/rename-dest-slash (Status, Notice): Likewise.
14914         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
14915         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
14916         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
14917         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
14918         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
14919
14920 2011-05-16  Bruno Haible  <bruno@clisp.org>
14921
14922         doc: List the target platforms.
14923         * doc/gnulib-intro.texi (Target Platforms): New section.
14924         * doc/gnulib.texi (Introduction): Update menu.
14925         * README (Portability guidelines): Refer to the new section. Update
14926         statement about oldest supported environment. Remove rationale why
14927         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
14928         unportable C89 function.
14929         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
14930         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
14931
14932 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14933
14934         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
14935
14936 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14937
14938         intprops-tests: new module
14939         * modules/intprops-tests, tests/test-intprops.c: New files.
14940
14941         intprops: add safe, portable integer overflow checking
14942         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
14943         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
14944         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
14945         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
14946         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14947         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14948         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14949         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14950         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14951         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14952         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14953
14954 2011-05-12  James Youngman  <jay@gnu.org>
14955
14956         Add a test for glibc's Bugzilla bug #12378.
14957         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14958         doesn't allow the literal matching of a lone "[" (which is
14959         required by POSIX).
14960         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14961
14962 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14963
14964         Sync glibc change fixing Bugzilla bug #12378.
14965         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14966         beginning and fall back to matching as normal character if the
14967         string ends before the matching ']' is found.  This is what POSIX
14968         requires.
14969
14970 2011-05-13  Eric Blake  <eblake@redhat.com>
14971
14972         getcwd-lgpl: relax test for FreeBSD
14973         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14974         issue.
14975         * tests/test-getcwd-lgpl.c (main): Relax test.
14976         Reported by Matthias Bolte.
14977
14978 2011-05-11  Eric Blake  <eblake@redhat.com>
14979
14980         test-fflush: silence compiler warning
14981         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14982
14983 2011-05-11  Bruno Haible  <bruno@clisp.org>
14984
14985         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14986         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14987         * modules/canonicalize (Depends-on): Add 'nocrash'.
14988         * modules/canonicalize-lgpl (Depends-on): Likewise.
14989         * doc/posix-functions/realpath.texi: Update platforms list.
14990         Reported by Ryan Schmidt <ryandesign@macports.org>.
14991
14992 2011-05-11  Bruno Haible  <bruno@clisp.org>
14993
14994         group-member: Declare function in <unistd.h>.
14995         * lib/unistd.in.h (group_member): New declaration.
14996         * lib/group-member.h: Remove file.
14997         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14998         * tests/test-unistd-c++.cc: Check signature of group_member.
14999         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15000         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15001         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15002         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15003         HAVE_GROUP_MEMBER.
15004         * modules/group-member (Files): Remove lib/group-member.h.
15005         (Depends-on): Add unistd. Specify conditions.
15006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15007         (Include): Change to <unistd.h>.
15008         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15009         HAVE_GROUP_MEMBER.
15010         * NEWS: Mention the change.
15011         * lib/euidaccess.c: Don't include group-member.h.
15012
15013 2011-05-11  Bruno Haible  <bruno@clisp.org>
15014
15015         group-member: Document module.
15016         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15017         module.
15018
15019 2011-05-11  Bruno Haible  <bruno@clisp.org>
15020
15021         fclose: Fix mistake earlier today.
15022         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15023
15024 2011-05-11  Eric Blake  <eblake@redhat.com>
15025
15026         fclose: preserve fflush errors
15027         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15028         Reported by Jim Meyering.
15029
15030         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15031         * build-aux/bootstrap (check_versions): When no specific version
15032         is required, merely check that the app produces an exit status
15033         that indicates its existence.
15034
15035         maint.mk: drop redundant check
15036         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15037         the same but better.
15038
15039 2011-05-11  Bruno Haible  <bruno@clisp.org>
15040
15041         fclose: Fix possible link error.
15042         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15043         unregister_shadow_fd. Improve comments.
15044         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15045         Eric Blake.
15046
15047 2011-05-11  Jim Meyering  <meyering@redhat.com>
15048
15049         maint.mk: improve "can not" detection and generalize rule name
15050         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15051         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15052         Use the same technique as in sc_prohibit_doubled_word, so that
15053         we recognize "can not" also when the words are separated by a newline.
15054         Suggested by Eric Blake.
15055         (perl_filename_lineno_text_): Define.  Factored out of...
15056         (prohibit_doubled_word_): ...here.  Use the new definition.
15057         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15058         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15059         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15060
15061 2011-05-10  Eric Blake  <eblake@redhat.com>
15062
15063         fclose: avoid double close race when possible
15064         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15065         all but WINDOWS_SOCKETS.
15066
15067 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15068
15069         openat: correct new comment
15070         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15071
15072 2011-05-10  Jim Meyering  <meyering@redhat.com>
15073
15074         openat: add comments
15075         * lib/openat-proc.c (openat_proc_name): Add comments,
15076         mostly from Eric Blake.
15077
15078 2011-05-09  Eric Blake  <eblake@redhat.com>
15079
15080         openat: reduce syscalls in first probe of /proc
15081         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15082         be a directory.  Simplify the probe for .. bugs.
15083         * modules/openat (Depends-on): Drop same-inode.
15084         Reported by Bastien ROUCARIES.
15085
15086 2011-05-09  Jim Meyering  <meyering@redhat.com>
15087
15088         maint.mk: change semantics/name of tight_scope variables
15089         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15090         Rename variables to align with semantics that make them more useful.
15091
15092         maint.mk: tweak new rule's name not to impinge
15093         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15094         (sc_tight_scope): Use new rule name rather than $@-0.
15095
15096         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15097         * top/maint.mk (sc_tight_scope): New rule.
15098         (sc_tight_scope-0): New rule, ifdef'd out.
15099         (_gl_TS_dir): Default.
15100         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15101         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15102
15103 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15104
15105         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15106         Haible <bruno@clisp.org>.
15107
15108 2011-05-08  Bruno Haible  <bruno@clisp.org>
15109
15110         Comments.
15111         * m4/isnanf.m4: Add comment.
15112         * m4/isnanl.m4: Likewise.
15113
15114 2011-05-08  Bruno Haible  <bruno@clisp.org>
15115
15116         glob: Remove obsolete macro.
15117         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15118
15119 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15120
15121         intprops: Sun C 5.11 supports __typeof__
15122         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15123         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15124         which is new.
15125         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15126
15127         intprops: switch to usual gnulib indenting and naming
15128         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15129         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15130
15131         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15132
15133 2011-05-08  Jim Meyering  <meyering@redhat.com>
15134
15135         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15136         * top/maint.mk (release-prep): Use make's --no-print-directory
15137         option when generating the announcement.  This eliminates the
15138         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15139         generated announcement template.
15140
15141 2011-05-08  Bruno Haible  <bruno@clisp.org>
15142
15143         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15144         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15145         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15146
15147 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15148
15149         ignore-value, verify: Omit include files from lib_SOURCES.
15150         * modules/ignore-value, modules/verify (Makefile.am):
15151         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15152         that leads Automake to duplicate use of am__objects_... variables
15153         in Makefile.in.  See
15154         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15155
15156 2011-05-07  Bruno Haible  <bruno@clisp.org>
15157
15158         fclose: Simplify autoconf macro.
15159         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15160         defined.
15161
15162 2011-05-07  Bruno Haible  <bruno@clisp.org>
15163
15164         canonicalize-lgpl: Fix autoconf macro ordering bug.
15165         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15166         gl_STDLIB_H_DEFAULTS.
15167
15168 2011-05-06  Eric Blake  <eblake@redhat.com>
15169
15170         maintainer-makefile: make sc_po_check easier to tune
15171         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15172         to probe for strings, such as an alternate location for gnulib.
15173
15174         fclose: guarantee behavior on seekable stdin
15175         * modules/fclose (Depends-on): Add fflush.
15176         * doc/posix-functions/fclose.texi (fclose): Document this.
15177         * tests/test-fclose.c (main): Make test for this unconditional.
15178
15179 2011-05-06  Bruno Haible  <bruno@clisp.org>
15180
15181         fflush, fpurge: Relicense under LGPLv2+.
15182         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15183         * modules/fpurge (License): Likewise.
15184         With permission from Eric Blake and Jim Meyering.
15185         Suggested by Eric Blake.
15186
15187 2011-05-06  Karl Berry  <karl@gnu.org>
15188
15189         * MODULES.html.sh (func_all_modules): remove exit.
15190
15191 2011-05-06  Jim Meyering  <meyering@redhat.com>
15192
15193         maint.mk: use info-gnu@ as the default only for a stable release
15194         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15195         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15196         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15197         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15198
15199 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15200
15201         assert-h: new module, which supports C1X-style static_assert
15202         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15203         * lib/verify.h: Revamp so that this can be copied into assert.h,
15204         while retaining the ability to use it standalone as before.
15205         Rename private identifiers so as not to encroach on the
15206         standard C namespace, since this is now used by assert.h.
15207         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15208         the old verify_true.
15209         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15210         the old verify_true.  Use _GL_VERIFY_TYPE.
15211         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15212         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15213         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15214         defined when this file is copied into the replacement assert.h.
15215         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15216         and _Static_assert is not built in.
15217         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15218         defined, and use the new macros mentioned above.
15219         * doc/posix-headers/assert.texi: Document this.
15220
15221 2011-05-05  Bruno Haible  <bruno@clisp.org>
15222
15223         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15224         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15225         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15226         gl_REPLACE_FCLOSE here.
15227         * modules/fflush (Depends-on): Remove fclose.
15228         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15229         combination with module 'fclose'.
15230
15231 2011-05-05  Bruno Haible  <bruno@clisp.org>
15232
15233         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15234         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15235         gl_FUNC_FFLUSH.
15236         (gl_FUNC_FFLUSH): Use it.
15237         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15238         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15239         gl_REPLACE_FSEEKO here.
15240
15241 2011-05-05  Bruno Haible  <bruno@clisp.org>
15242
15243         tzset: Relicense under LGPL.
15244         * modules/tzset (License): Change to LGPL.
15245         No agreement needed; it's a no-op.
15246
15247         strtoimax, strtoumax: Relicense under LGPL.
15248         * modules/strtoimax (License): Change to LGPL.
15249         * modules/strtoumax (License): Likewise.
15250         With permission from Jim Meyering, Paul Eggert:
15251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15253
15254         getgroups: Relicense under LGPL.
15255         * modules/getgroups (License): Change to LGPL.
15256         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15259         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15260
15261         nanosleep: Relicense under LGPL.
15262         * modules/nanosleep (License): Change to LGPL.
15263         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15264         Haible:
15265         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15266         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15268         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15269
15270         futimens: Relicense under LGPL.
15271         * modules/futimens (License): Change to LGPL.
15272         With permission from Eric Blake:
15273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15274
15275         fflush: Relicense under LGPL.
15276         * modules/fflush (License): Change to LGPL.
15277         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15278         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15279         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15281
15282         tmpfile: Relicense under LGPL.
15283         * modules/tmpfile (License): Change to LGPL.
15284         With permission from Ben Pfaff:
15285         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15286
15287         isfinite: Relicense under LGPL.
15288         * modules/isfinite (License): Change to LGPL.
15289         With permission from Ben Pfaff, Bruno Haible:
15290         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15291         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15292
15293         acosl..tanl: Relicense under LGPL.
15294         * modules/acosl (License): Change to LGPL.
15295         * modules/asinl (License): Likewise.
15296         * modules/atanl (License): Likewise.
15297         * modules/cosl (License): Likewise.
15298         * modules/expl (License): Likewise.
15299         * modules/logl (License): Likewise.
15300         * modules/sinl (License): Likewise.
15301         * modules/sqrtl (License): Likewise.
15302         * modules/tanl (License): Likewise.
15303         Source code originally from glibc and Paolo Bonzini. Agreements:
15304         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15305         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15306
15307 2011-05-05  Bruno Haible  <bruno@clisp.org>
15308
15309         signal: Define sighandler_t.
15310         * lib/signal.in.h (sighandler_t): New type.
15311         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15312         whether sighandler_t is defined.
15313         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15314         * modules/signal (Depends-on): Add extensions.
15315         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15316         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15317         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15318
15319 2011-05-05  Eric Blake  <eblake@redhat.com>
15320
15321         maint: remove useless REPLACE_*_H macros
15322         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15323         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15324         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15325         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15326         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15327         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15328         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15329         * m4/btowc.m4: Update callers.
15330         * m4/dirfd.m4: Likewise.
15331         * m4/duplocale.m4: Likewise.
15332         * m4/fchdir.m4: Likewise.
15333         * m4/fdopendir.m4: Likewise.
15334         * m4/inet_ntop.m4: Likewise.
15335         * m4/inet_pton.m4: Likewise.
15336         * m4/ioctl.m4: Likewise.
15337         * m4/mbrlen.m4: Likewise.
15338         * m4/mbrtowc.m4: Likewise.
15339         * m4/mbsinit.m4: Likewise.
15340         * m4/mbsnrtowcs.m4: Likewise.
15341         * m4/mbsrtowcs.m4: Likewise.
15342         * m4/poll.m4: Likewise.
15343         * m4/setlocale.m4: Likewise.
15344         * m4/wcrtomb.m4: Likewise.
15345         * m4/wcsnrtombs.m4: Likewise.
15346         * m4/wcsrtombs.m4: Likewise.
15347         * m4/wctob.m4: Likewise.
15348         * m4/wcwidth.m4: Likewise.
15349         * modules/posix_spawn: Likewise.
15350         * modules/posix_spawn_file_actions_addclose: Likewise.
15351         * modules/posix_spawn_file_actions_adddup2: Likewise.
15352         * modules/posix_spawn_file_actions_addopen: Likewise.
15353         * modules/posix_spawn_file_actions_destroy: Likewise.
15354         * modules/posix_spawn_file_actions_init: Likewise.
15355         * modules/posix_spawnattr_destroy: Likewise.
15356         * modules/posix_spawnattr_getflags: Likewise.
15357         * modules/posix_spawnattr_getpgroup: Likewise.
15358         * modules/posix_spawnattr_getschedparam: Likewise.
15359         * modules/posix_spawnattr_getschedpolicy: Likewise.
15360         * modules/posix_spawnattr_getsigdefault: Likewise.
15361         * modules/posix_spawnattr_getsigmask: Likewise.
15362         * modules/posix_spawnattr_init: Likewise.
15363         * modules/posix_spawnattr_setflags: Likewise.
15364         * modules/posix_spawnattr_setpgroup: Likewise.
15365         * modules/posix_spawnattr_setschedparam: Likewise.
15366         * modules/posix_spawnattr_setschedpolicy: Likewise.
15367         * modules/posix_spawnattr_setsigdefault: Likewise.
15368         * modules/posix_spawnattr_setsigmask: Likewise.
15369         * modules/posix_spawnp: Likewise.
15370
15371 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15372
15373         Add option to do-release-commit-and-tag to specify branch.
15374         * build-aux/do-release-commit-and-tag: Add --branch.
15375
15376 2011-05-03  Bruno Haible  <bruno@clisp.org>
15377
15378         Avoid unnecessary compilation units, through conditional dependencies.
15379         * modules/accept (Depends-on): Add conditions to the dependencies.
15380         * modules/acosl (Depends-on): Likewise.
15381         * modules/argz (Depends-on): Likewise.
15382         * modules/asinl (Depends-on): Likewise.
15383         * modules/atanl (Depends-on): Likewise.
15384         * modules/atoll (Depends-on): Likewise.
15385         * modules/bind (Depends-on): Likewise.
15386         * modules/btowc (Depends-on): Likewise.
15387         * modules/canonicalize-lgpl (Depends-on): Likewise.
15388         * modules/ceil (Depends-on): Likewise.
15389         * modules/ceilf (Depends-on): Likewise.
15390         * modules/ceill (Depends-on): Likewise.
15391         * modules/chdir-long (Depends-on): Likewise.
15392         * modules/chown (Depends-on): Likewise.
15393         * modules/close (Depends-on): Likewise.
15394         * modules/connect (Depends-on): Likewise.
15395         * modules/cosl (Depends-on): Likewise.
15396         * modules/dirfd (Depends-on): Likewise.
15397         * modules/dprintf (Depends-on): Likewise.
15398         * modules/dprintf-posix (Depends-on): Likewise.
15399         * modules/error (Depends-on): Likewise.
15400         * modules/euidaccess (Depends-on): Likewise.
15401         * modules/expl (Depends-on): Likewise.
15402         * modules/faccessat (Depends-on): Likewise.
15403         * modules/fchdir (Depends-on): Likewise.
15404         * modules/fclose (Depends-on): Likewise.
15405         * modules/fcntl (Depends-on): Likewise.
15406         * modules/fdopendir (Depends-on): Likewise.
15407         * modules/fflush (Depends-on): Likewise.
15408         * modules/floor (Depends-on): Likewise.
15409         * modules/floorf (Depends-on): Likewise.
15410         * modules/floorl (Depends-on): Likewise.
15411         * modules/fnmatch (Depends-on): Likewise.
15412         * modules/fopen (Depends-on): Likewise.
15413         * modules/fprintf-posix (Depends-on): Likewise.
15414         * modules/frexp (Depends-on): Likewise.
15415         * modules/frexp-nolibm (Depends-on): Likewise.
15416         * modules/frexpl (Depends-on): Likewise.
15417         * modules/frexpl-nolibm (Depends-on): Likewise.
15418         * modules/fseek (Depends-on): Likewise.
15419         * modules/fsusage (Depends-on): Likewise.
15420         * modules/ftell (Depends-on): Likewise.
15421         * modules/ftello (Depends-on): Likewise.
15422         * modules/futimens (Depends-on): Likewise.
15423         * modules/getcwd (Depends-on): Likewise.
15424         * modules/getcwd-lgpl (Depends-on): Likewise.
15425         * modules/getdelim (Depends-on): Likewise.
15426         * modules/getdomainname (Depends-on): Likewise.
15427         * modules/getgroups (Depends-on): Likewise.
15428         * modules/gethostname (Depends-on): Likewise.
15429         * modules/getline (Depends-on): Likewise.
15430         * modules/getlogin_r (Depends-on): Likewise.
15431         * modules/getopt-posix (Depends-on): Likewise.
15432         * modules/getpeername (Depends-on): Likewise.
15433         * modules/getsockname (Depends-on): Likewise.
15434         * modules/getsockopt (Depends-on): Likewise.
15435         * modules/getsubopt (Depends-on): Likewise.
15436         * modules/getusershell (Depends-on): Likewise.
15437         * modules/glob (Depends-on): Likewise.
15438         * modules/grantpt (Depends-on): Likewise.
15439         * modules/iconv_open (Depends-on): Likewise.
15440         * modules/iconv_open-utf (Depends-on): Likewise.
15441         * modules/inet_ntop (Depends-on): Likewise.
15442         * modules/inet_pton (Depends-on): Likewise.
15443         * modules/ioctl (Depends-on): Likewise.
15444         * modules/isapipe (Depends-on): Likewise.
15445         * modules/isfinite (Depends-on): Likewise.
15446         * modules/isinf (Depends-on): Likewise.
15447         * modules/lchown (Depends-on): Likewise.
15448         * modules/ldexpl (Depends-on): Likewise.
15449         * modules/link (Depends-on): Likewise.
15450         * modules/linkat (Depends-on): Likewise.
15451         * modules/listen (Depends-on): Likewise.
15452         * modules/logl (Depends-on): Likewise.
15453         * modules/lstat (Depends-on): Likewise.
15454         * modules/mbrlen (Depends-on): Likewise.
15455         * modules/mbrtowc (Depends-on): Likewise.
15456         * modules/mbsinit (Depends-on): Likewise.
15457         * modules/mbsnrtowcs (Depends-on): Likewise.
15458         * modules/mbsrtowcs (Depends-on): Likewise.
15459         * modules/mbtowc (Depends-on): Likewise.
15460         * modules/memcmp (Depends-on): Likewise.
15461         * modules/mkdir (Depends-on): Likewise.
15462         * modules/mkdtemp (Depends-on): Likewise.
15463         * modules/mkfifo (Depends-on): Likewise.
15464         * modules/mkfifoat (Depends-on): Likewise.
15465         * modules/mknod (Depends-on): Likewise.
15466         * modules/mkostemp (Depends-on): Likewise.
15467         * modules/mkostemps (Depends-on): Likewise.
15468         * modules/mkstemp (Depends-on): Likewise.
15469         * modules/mkstemps (Depends-on): Likewise.
15470         * modules/mktime (Depends-on): Likewise.
15471         * modules/nanosleep (Depends-on): Likewise.
15472         * modules/open (Depends-on): Likewise.
15473         * modules/openat (Depends-on): Likewise.
15474         * modules/perror (Depends-on): Likewise.
15475         * modules/poll (Depends-on): Likewise.
15476         * modules/popen (Depends-on): Likewise.
15477         * modules/posix_spawn (Depends-on): Likewise.
15478         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15479         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15480         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15481         * modules/posix_spawnp (Depends-on): Likewise.
15482         * modules/pread (Depends-on): Likewise.
15483         * modules/printf-posix (Depends-on): Likewise.
15484         * modules/ptsname (Depends-on): Likewise.
15485         * modules/putenv (Depends-on): Likewise.
15486         * modules/pwrite (Depends-on): Likewise.
15487         * modules/readline (Depends-on): Likewise.
15488         * modules/readlink (Depends-on): Likewise.
15489         * modules/readlinkat (Depends-on): Likewise.
15490         * modules/recv (Depends-on): Likewise.
15491         * modules/recvfrom (Depends-on): Likewise.
15492         * modules/regex (Depends-on): Likewise.
15493         * modules/remove (Depends-on): Likewise.
15494         * modules/rename (Depends-on): Likewise.
15495         * modules/renameat (Depends-on): Likewise.
15496         * modules/rmdir (Depends-on): Likewise.
15497         * modules/round (Depends-on): Likewise.
15498         * modules/roundf (Depends-on): Likewise.
15499         * modules/roundl (Depends-on): Likewise.
15500         * modules/rpmatch (Depends-on): Likewise.
15501         * modules/select (Depends-on): Likewise.
15502         * modules/send (Depends-on): Likewise.
15503         * modules/sendto (Depends-on): Likewise.
15504         * modules/setenv (Depends-on): Likewise.
15505         * modules/setlocale (Depends-on): Likewise.
15506         * modules/setsockopt (Depends-on): Likewise.
15507         * modules/shutdown (Depends-on): Likewise.
15508         * modules/sigaction (Depends-on): Likewise.
15509         * modules/signbit (Depends-on): Likewise.
15510         * modules/sigprocmask (Depends-on): Likewise.
15511         * modules/sinl (Depends-on): Likewise.
15512         * modules/sleep (Depends-on): Likewise.
15513         * modules/snprintf (Depends-on): Likewise.
15514         * modules/snprintf-posix (Depends-on): Likewise.
15515         * modules/socket (Depends-on): Likewise.
15516         * modules/sprintf-posix (Depends-on): Likewise.
15517         * modules/sqrtl (Depends-on): Likewise.
15518         * modules/stat (Depends-on): Likewise.
15519         * modules/strchrnul (Depends-on): Likewise.
15520         * modules/strdup-posix (Depends-on): Likewise.
15521         * modules/strerror (Depends-on): Likewise.
15522         * modules/strerror_r-posix (Depends-on): Likewise.
15523         * modules/strndup (Depends-on): Likewise.
15524         * modules/strnlen (Depends-on): Likewise.
15525         * modules/strptime (Depends-on): Likewise.
15526         * modules/strsep (Depends-on): Likewise.
15527         * modules/strsignal (Depends-on): Likewise.
15528         * modules/strstr-simple (Depends-on): Likewise.
15529         * modules/strtod (Depends-on): Likewise.
15530         * modules/strtoimax (Depends-on): Likewise.
15531         * modules/strtok_r (Depends-on): Likewise.
15532         * modules/strtoumax (Depends-on): Likewise.
15533         * modules/symlink (Depends-on): Likewise.
15534         * modules/symlinkat (Depends-on): Likewise.
15535         * modules/tanl (Depends-on): Likewise.
15536         * modules/tcgetsid (Depends-on): Likewise.
15537         * modules/tmpfile (Depends-on): Likewise.
15538         * modules/trunc (Depends-on): Likewise.
15539         * modules/truncf (Depends-on): Likewise.
15540         * modules/truncl (Depends-on): Likewise.
15541         * modules/uname (Depends-on): Likewise.
15542         * modules/unlink (Depends-on): Likewise.
15543         * modules/unlockpt (Depends-on): Likewise.
15544         * modules/unsetenv (Depends-on): Likewise.
15545         * modules/usleep (Depends-on): Likewise.
15546         * modules/utimensat (Depends-on): Likewise.
15547         * modules/vasprintf (Depends-on): Likewise.
15548         * modules/vdprintf (Depends-on): Likewise.
15549         * modules/vdprintf-posix (Depends-on): Likewise.
15550         * modules/vfprintf-posix (Depends-on): Likewise.
15551         * modules/vprintf-posix (Depends-on): Likewise.
15552         * modules/vsnprintf (Depends-on): Likewise.
15553         * modules/vsnprintf-posix (Depends-on): Likewise.
15554         * modules/vsprintf-posix (Depends-on): Likewise.
15555         * modules/wcrtomb (Depends-on): Likewise.
15556         * modules/wcscasecmp (Depends-on): Likewise.
15557         * modules/wcscspn (Depends-on): Likewise.
15558         * modules/wcsdup (Depends-on): Likewise.
15559         * modules/wcsncasecmp (Depends-on): Likewise.
15560         * modules/wcsnrtombs (Depends-on): Likewise.
15561         * modules/wcspbrk (Depends-on): Likewise.
15562         * modules/wcsrtombs (Depends-on): Likewise.
15563         * modules/wcsspn (Depends-on): Likewise.
15564         * modules/wcsstr (Depends-on): Likewise.
15565         * modules/wcstok (Depends-on): Likewise.
15566         * modules/wcswidth (Depends-on): Likewise.
15567         * modules/wctob (Depends-on): Likewise.
15568         * modules/wctomb (Depends-on): Likewise.
15569         * modules/wctype (Depends-on): Likewise.
15570         * modules/wcwidth (Depends-on): Likewise.
15571         * modules/write (Depends-on): Likewise.
15572
15573 2011-05-03  Bruno Haible  <bruno@clisp.org>
15574
15575         Support for conditional dependencies.
15576         * doc/gnulib.texi (Module description): Document the syntax of
15577         conditional dependencies.
15578         * gnulib-tool: New option --conditional-dependencies.
15579         (func_usage): Document it.
15580         (cond_dependencies): New variable.
15581         (func_get_automake_snippet_conditional,
15582         func_get_automake_snippet_unconditional): New functions, extracted from
15583         func_get_automake_snippet.
15584         (func_get_automake_snippet): Use them.
15585         (sed_first_32_chars): New variable.
15586         (func_module_shellfunc_name): New function.
15587         (func_module_shellvar_name): New function.
15588         (func_module_conditional_name): New function.
15589         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15590         func_cond_module_condition): New functions.
15591         (func_modules_transitive_closure): Add support for conditional
15592         dependencies.
15593         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15594         conditional automake snippet in an automake conditional.
15595         (func_emit_autoconf_snippets): Emit shell functions that contain the
15596         code for conditional modules.
15597         (func_import, func_create_testdir): Update specification.
15598
15599 2011-05-03  Eric Blake  <eblake@redhat.com>
15600
15601         test-getaddrinfo: report error information
15602         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
15603
15604 2011-05-03  Jim Meyering  <meyering@redhat.com>
15605
15606         bootstrap: avoid build failure when $GZIP is set
15607         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
15608         program name.  If defined at all, it is supposed to list gzip options.
15609         Reported by Alan Curry in http://debbugs.gnu.org/8609
15610
15611 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
15612
15613         readme-release: new module with release instructions
15614         * modules/readme-release: New module.
15615         * top/README-release: New file, from coreutils, grep, diffutils.
15616         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15617
15618 2011-05-02  Eric Blake  <eblake@redhat.com>
15619
15620         fflush: also replace fclose when fixing fflush
15621         * modules/fflush (Depends-on): Add fclose.
15622         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
15623         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
15624         memstreams with no backing fd.
15625         * doc/posix-functions/fclose.texi (fclose): Document the use of
15626         fflush module to fix the bug.
15627         * tests/test-fclose.c (main): Relax test when fclose is used in
15628         isolation.
15629
15630         fclose: add some tests
15631         * modules/fclose-tests: New test module.
15632         * tests/test-fclose.c: New file.
15633         * doc/posix-functions/fclose.texi (fclose): Document the bug.
15634
15635         fclose: reduced dependencies
15636         * modules/fclose (Depends-on): Switch from fflush/fseeko to
15637         simpler lseek.
15638         * lib/fclose.c (rpl_fclose): Likewise.
15639         Reported by Simon Josefsson.
15640
15641         exit: drop remaining clients
15642         * modules/argmatch (Depends-on): Replace exit with stdlib.
15643         * modules/copy-file (Depends-on): Likewise.
15644         * modules/execute (Depends-on): Likewise.
15645         * modules/exitfail (Depends-on): Likewise.
15646         * modules/obstack (Depends-on): Likewise.
15647         * modules/pagealign_alloc (Depends-on): Likewise.
15648         * modules/pipe-filter-gi (Depends-on): Likewise.
15649         * modules/pipe-filter-ii (Depends-on): Likewise.
15650         * modules/savewd (Depends-on): Likewise.
15651         * modules/spawn-pipe (Depends-on): Likewise.
15652         * modules/wait-process (Depends-on): Likewise.
15653         * modules/xsetenv (Depends-on): Likewise.
15654         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
15655         * modules/git-merge-changelog (Depends-on): Likewise.
15656         * modules/long-options (Depends-on): Likewise.
15657         * modules/pt_chown (Depends-on): Likewise.
15658         * modules/sysexits (Depends-on): Likewise.
15659
15660         freading: relax license from LGPLv3+ to LGPLv2+
15661         * modules/freading (License): Relax LGPL version.
15662
15663 2011-05-02  Bruno Haible  <bruno@clisp.org>
15664
15665         fchdir: Remove unused dependencies.
15666         * modules/fchdir (Depends-on): Remove include_next.
15667
15668 2011-05-02  Bruno Haible  <bruno@clisp.org>
15669
15670         gnulib-tool: Refactor.
15671         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
15672         from func_emit_autoconf_snippets.
15673         (func_emit_autoconf_snippets): Use it.
15674
15675 2011-05-02  Simon Josefsson  <simon@josefsson.org>
15676
15677         * NEWS: Document removal of 'exit'.
15678         * modules/exit: Remove file.
15679
15680 2011-05-01  Bruno Haible  <bruno@clisp.org>
15681
15682         Update DEPENDENCIES.
15683         * DEPENDENCIES (gettext): Recommend the newest release.
15684         Reported by Simon Josefsson.
15685
15686 2011-05-01  Bruno Haible  <bruno@clisp.org>
15687
15688         gnulib-tool: Reduce code duplication.
15689         * gnulib-tool (func_emit_autoconf_snippets): New function.
15690         (func_import, func_create_testdir): Use it.
15691
15692 2011-04-30  Eric Blake  <eblake@redhat.com>
15693
15694         fclose: don't fail on non-seekable input stream
15695         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
15696         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
15697         since fflush is allowed to fail in that case.
15698
15699 2011-04-30  Bruno Haible  <bruno@clisp.org>
15700
15701         dup3: cleanup
15702         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
15703
15704 2011-04-30  Bruno Haible  <bruno@clisp.org>
15705
15706         netdb: Make it work in C++ mode.
15707         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
15708         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
15709         module.
15710         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
15711         gl_MODULE_INDICATOR_FOR_TESTS.
15712         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
15713         * modules/netdb-c++-tests: New file.
15714         * tests/test-netdb-c++.cc: New file.
15715
15716 2011-04-30  Bruno Haible  <bruno@clisp.org>
15717
15718         New modules 'vfscanf', 'vscanf'.
15719         * modules/vfscanf: New file.
15720         * modules/vscanf: New file.
15721         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
15722         here.
15723         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
15724         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
15725
15726 2011-04-30  Bruno Haible  <bruno@clisp.org>
15727
15728         passfd: Add comments.
15729         * lib/passfd.c: Add comments about platforms.
15730
15731 2011-04-30  Bruno Haible  <bruno@clisp.org>
15732
15733         sys_uio: Make <sys/uio.h> self-contained.
15734         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
15735         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
15736
15737 2011-04-30  Bruno Haible  <bruno@clisp.org>
15738
15739         sys_socket: Ensure 'struct iovec' definition.
15740         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15741         <sys/socket.h>.
15742         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15743
15744 2011-04-30  Bruno Haible  <bruno@clisp.org>
15745
15746         sys_uio: Protect definition of 'struct iovec'.
15747         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
15748         it as a C struct.
15749
15750 2011-04-30  Bruno Haible  <bruno@clisp.org>
15751
15752         manywarnings: fix indentation
15753         * m4/manywarnings.m4: Indent by 2 spaces consistently.
15754
15755 2011-04-30  Pádraig Brady <P@draigBrady.com>
15756
15757         manywarnings: add -Wno-missing-field-initializers if needed.
15758         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
15759         option if it's needed to allow initialization with { 0, }
15760
15761 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
15762
15763         announce-gen: cosmetic improvement
15764         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
15765
15766 2011-04-29  Jim Meyering  <meyering@redhat.com>
15767
15768         vc-list-files: indent with spaces, not TABs
15769         * build-aux/vc-list-files: Convert leading TABs to spaces,
15770         to match the style of most other files in gnulib.
15771
15772         announce-gen: indent with spaces, not TABs
15773         * build-aux/announce-gen: Convert all TABs to spaces, to match
15774         the style of most other files in gnulib.
15775
15776 2011-04-29  Eric Blake  <eblake@redhat.com>
15777
15778         quotearg: avoid uninitialized variable use
15779         * lib/quotearg.c (quoting_options_from_style): Initialize
15780         remaining fields, and ensure that custom styles are only used via
15781         quoting_options rather than quoting_style.
15782
15783 2011-04-29  Jim Meyering  <meyering@redhat.com>
15784
15785         maint.mk: remove unused VC-tag variable
15786         * top/maint.mk (VC-tag): Remove unused variable.
15787
15788 2011-04-29  Bruno Haible  <bruno@clisp.org>
15789
15790         netdb: fix gai_strerror replacements
15791         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
15792         * modules/netdb: Substitute it.
15793
15794 2011-04-29  Jim Meyering  <meyering@redhat.com>
15795
15796         test-getcwd.c: avoid new set-but-not-used warning
15797         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
15798         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
15799         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
15800         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
15801
15802         test-hash.c: avoid a new shadowing warning
15803         * tests/test-hash.c (main): Don't shadow "dup".
15804
15805 2011-04-28  Eric Blake  <eblake@redhat.com>
15806
15807         getaddrinfo: fix gai_strerror signature
15808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
15809         and work around mingw with UNICODE defined.
15810         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
15811         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
15812         * modules/netdb (Makefile.am): Substitute it.
15813         * lib/netdb.in.h (gai_strerror): Declare replacement.
15814         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
15815         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
15816         the fix.
15817
15818         getsockopt: avoid compiler warning
15819         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
15820         Reported by Matthias Bolte.
15821
15822         tests: drop unused link dependency
15823         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
15824         * modules/dirent-safer-tests (Makefile.am): Likewise.
15825         * modules/fdopendir-tests (Makefile.am): Likewise.
15826         * modules/mkfifoat-tests (Makefile.am): Likewise.
15827         * modules/openat-safer-tests (Makefile.am): Likewise.
15828         * modules/openat-tests (Makefile.am): Likewise.
15829         * modules/readlinkat-tests (Makefile.am): Likewise.
15830         * modules/symlinkat-tests (Makefile.am): Likewise.
15831         * modules/linkat-tests (Makefile.am): Likewise.
15832         (Depends-on): Switch to filenamecat-lgpl.
15833         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
15834         LIBINTL.
15835         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
15836         * tests/test-linkat.c (main): Don't require xalloc.
15837
15838         hash, mgetgroups: drop xalloc dependency
15839         * lib/hash.c (includes): Adjust includes.
15840         * lib/mgetgroups.c (includes): Likewise.
15841         (xgetgroups): Move...
15842         * lib/xgetgroups.c: ...to new file.
15843         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
15844         * modules/xgetgroups: New file, split from...
15845         * modules/mgetgroups: ...here.
15846         (Depends-on): Add xalloc-oversized.
15847         * modules/hash (Depends-on): Likewise.
15848         * modules/hash-tests (Depends-on): Drop xalloc.
15849         (test_hash_LDADD): Drop unused library.
15850         * tests/test-hash.c (main): Break xalloc dependency.
15851         (includes): Drop unused include.
15852
15853         xalloc-oversized: new module
15854         * modules/xalloc-oversized: New module.
15855         * modules/xalloc (Depends-on): Add it.
15856         * lib/xalloc.h (xalloc_oversized): Move...
15857         * lib/xalloc-oversized.h: ...into new file.
15858
15859         utimecmp: drop dependency on xmalloc
15860         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
15861         due to memory pressure.
15862         * modules/utimecmp (Depends-on): Drop xalloc.
15863
15864 2011-04-27  Eric Blake  <eblake@redhat.com>
15865
15866         getcwd: fix mingw bugs
15867         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
15868         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
15869         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
15870
15871 2011-04-27  Bruno Haible  <bruno@clisp.org>
15872
15873         mkstemps: Ensure declaration on MacOS X 10.5.
15874         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
15875         * doc/glibc-functions/mkstemps.texi: Document header file problem on
15876         MacOS X.
15877
15878 2011-04-27  Bruno Haible  <bruno@clisp.org>
15879
15880         mkstemp: More documentation.
15881         * doc/posix-functions/mkstemp.texi: Document header file problem on
15882         MacOS X.
15883
15884 2011-04-27  Bruno Haible  <bruno@clisp.org>
15885
15886         mkstemp: Tweak configure message when cross-compiling.
15887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
15888         result as a guess.
15889
15890 2011-04-27  Bruno Haible  <bruno@clisp.org>
15891
15892         clean-temp: Clarify what it does.
15893         * lib/clean-temp.h: Add more comments.
15894         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
15895         module.
15896         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
15897         * doc/glibc-functions/mkstemps.texi: Likewise.
15898         * doc/glibc-functions/mkostemps.texi: Likewise.
15899
15900 2011-04-27  Eric Blake  <eblake@redhat.com>
15901
15902         fchdir: avoid extra chdir and fix test
15903         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15904         getcwd-lgpl.
15905         * lib/fchdir.c (get_name): Any absolute name will do; it does not
15906         have to be canonical.
15907         (canonicalize_file_name): Drop unused macro.
15908         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
15909
15910         filenamecat-lgpl: fix licence
15911         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
15912         when it was first created.
15913
15914         linkat, renameat: add missing dependency
15915         * modules/linkat (Depends-on): Require getcwd-lgpl.
15916         * modules/renameat (Depends-on): Likewise.
15917
15918         tests: reduce dependencies
15919         * tests/test-linkat.c (main): Use lighter-weight getcwd.
15920         * tests/test-renameat.c (main): Likewise.
15921         * modules/linkat-tests (Depends-on): Relax dependency.
15922         * modules/renameat-tests (Depends-on): Likewise.
15923         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
15924         dependency explicit.
15925
15926         save-cwd: reduce default dependency
15927         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
15928         * lib/save-cwd.c: Update comments.
15929         * NEWS: Document the semantic change.
15930
15931         getcwd: enhance tests
15932         * tests/test-getcwd-lgpl.c: New file, taken from...
15933         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
15934         repeat long path stress tests from m4 probe.
15935         * modules/getcwd-lgpl-tests: New module.
15936         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
15937         * m4/getcwd-abort-bug.m4: Update comment.
15938         * m4/getcwd-path-max.m4: Likewise.
15939
15940         getcwd-lgpl: new module
15941         * modules/getcwd-lgpl: New module.
15942         * lib/getcwd-lgpl.c: New file.
15943         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15944         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15945         * modules/getcwd (configure.ac): Set C witness.
15946         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15947
15948         getcwd: tweak comments
15949         * m4/getcwd-abort-bug.m4: Fix comments.
15950         * m4/getcwd-path-max.m4: Likewise.
15951         * m4/getcwd.m4: Likewise.
15952
15953 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15954         and Eric Blake  <eblake@redhat.com>
15955
15956         mkstemp: replace if system version uses wrong permissions
15957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15958         read/write mode bits set in file created by mkstemp.
15959         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15960
15961 2011-04-27  Eric Blake  <eblake@redhat.com>
15962
15963         passfd: avoid compiler warning
15964         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15965         Reported by Laine Stump.
15966
15967 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15968
15969         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15970         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15971
15972 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15973         and Eric Blake  <eblake@redhat.com>
15974
15975         mkstemp: mention clean-temp module
15976         * lib/mkstemp.c: Add comment.
15977         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15978
15979 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15980
15981         inttypes: also provide default values for 32-bit tests
15982         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15983         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15984
15985 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15986
15987         strtoumax: remove dependency on strtoimax
15988         This is like the strtoull change of yesterday.
15989         * modules/strtoumax (Files): Add lib/strtoimax.c.
15990         (Depends-on): Remove strtoimax and add verify.
15991
15992         inttypes-incomplete: new module
15993         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15994         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15995         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15996         of gl_INTTYPES_H.
15997         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15998         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15999         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16000         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16001         * modules/strtoumax, modules/xstrtol (Depends-on):
16002         Depend on inttypes-incomplete, not inttypes.
16003         * modules/inttypes-incomplete: New module, containing the contents
16004         of the old modules/inttypes module, except that the Files: section
16005         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16006         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16007         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16008         (Depends-on): Depend only on inttypes-incomplete.
16009         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16010
16011         inttypes: omit now-redundant strtoimax and strtoumax work
16012         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16013         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16014
16015         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16016         This supports apps that need pointers to strtoimax and strtoumax,
16017         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16018         nonexistent functions.  See
16019         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16020         et seq.
16021         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16022         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16023         a macro.
16024         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16025
16026 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16027
16028         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16029
16030 2011-04-25  Bruno Haible  <bruno@clisp.org>
16031
16032         strtol, strtoul: Mark modules as obsolete.
16033         * modules/strtol (Status, Notice): New sections.
16034         * modules/strtoul (Status, Notice): New sections.
16035
16036 2011-04-25  Bruno Haible  <bruno@clisp.org>
16037
16038         strtod: Remove check for strtod, unless supporting old platforms.
16039         * modules/strtod-obsolete: New file.
16040         * m4/strtod-obsolete.m4: New file.
16041         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16042         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16043         * modules/strtod (Depends-on): Add strtod-obsolete.
16044         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16045
16046 2011-04-25  Bruno Haible  <bruno@clisp.org>
16047
16048         strcase: Make module obsolete.
16049         * modules/strcase (Status, Notice): New sections.
16050
16051 2011-04-25  Bruno Haible  <bruno@clisp.org>
16052
16053         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16054         * modules/dup2-obsolete: New file.
16055         * m4/dup2-obsolete.m4: New file.
16056         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16057         gl_FUNC_DUP2_OBSOLETE is not also defined.
16058         * modules/dup2 (Depends-on): Add dup2-obsolete.
16059         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16060
16061 2011-04-25  Bruno Haible  <bruno@clisp.org>
16062
16063         strnlen: Avoid memchr related link error on old obsolete platforms.
16064         * modules/memchr-obsolete: New file.
16065         * m4/memchr-obsolete.m4: New file.
16066         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16067         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16068         * modules/memchr (Depends-on): Add memchr-obsolete.
16069         * modules/strnlen (Depends-on): Likewise.
16070         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16071
16072 2011-04-25  Jim Meyering  <meyering@redhat.com>
16073
16074         maint.mk: makefile_at_at_check extend and clean up
16075         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16076         in addition to */Makefile.am.
16077         Exempt legitimate uses of @VAR@ notation, e.g.,
16078         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16079         Remove obsolete coreutils-specific comment.
16080         Prompted by discussion here:
16081         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16082
16083 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16084
16085         strtoul: remove dependency on strtol
16086         This is so that 'configure' need not check for strtol merely because
16087         the application needs strtoul.
16088         * modules/strtoul (Files): Add lib/strtol.c.
16089         (Depends-on): Remove strtol.
16090
16091         strtoull: remove dependency on strtoul
16092         This is like the strtoll change.
16093         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16094         (Depends-on): Remove strtoul.
16095
16096         strtoll: remove dependency on strtol
16097         This is so that 'configure' need not check for strtol merely because
16098         the application needs strtoll.
16099         * modules/strtoll (Files): Add lib/strtol.c.
16100         (Depends-on): Remove strtol.
16101
16102 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16103
16104         inttypes: Move some configure check to module 'imaxdiv'.
16105         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16106         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16107         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16108
16109 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16110
16111         inttypes: Move some configure check to module 'imaxabs'.
16112         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16113         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16114         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16115
16116 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16117
16118         inttypes: Remove configure tests that are not needed since 2009-12-31.
16119         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16120         gl_cv_header_working_inttypes_h.
16121
16122 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16123
16124         * modules/strnlen (Depends-on): Remove memchr.
16125         The strnlen implementation doesn't need the memchr module's fixes; see
16126         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16127
16128         strtol: remove dependency on wchar
16129         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16130         * modules/strtol (Depends-on): Remove wchar.
16131
16132 2011-04-21  Eric Blake  <eblake@redhat.com>
16133
16134         passfd: fix test regression on Linux
16135         * modules/passfd-tests (configure.ac): Correct socketpair check.
16136
16137         passfd: speed up configure and drop unused code
16138         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16139         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16140         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16141         Instead of probing at configure for unix_scm_rights_bsd44_way,
16142         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16143         check to a struct member probe.
16144         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16145         (sendfd, recvfd): Update preprocessor checks.
16146         * modules/passfd (Files): Reflect rename, and drop unused file.
16147         (Depends-on): Drop unused dependency.
16148
16149         passfd: allow compilation on mingw
16150         * modules/sys_socket (Depends-on): Add sys_uio.
16151         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16152         iovec and a minimal struct msghdr.
16153         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16154         * tests/test-sys_socket.c (main): Enhance test.
16155         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16156         guaranteed to provide what we need.
16157         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16158         * modules/passfd-tests (Depends-on): Add sys_wait.
16159         * tests/test-passfd.c (main): Skip test on mingw, for now.
16160         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16161         partial 'struct msghdr' implementation.
16162
16163         sys_uio: new module
16164         * modules/sys_uio: New module.
16165         * modules/sys_uio-tests: Likewise.
16166         * lib/sys_uio.in.h: New file.
16167         * m4/sys_uio_h.m4: Likewise.
16168         * tests/test-sys_uio.c: Likewise.
16169         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16170         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16171
16172 2011-04-20  Jim Meyering  <meyering@redhat.com>
16173
16174         useless-if-before-free: avoid false-positive
16175         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16176         disjunct so that it too requires a terminating ";".  Without that,
16177         this script would identify as useless one statement from gcc that
16178         was not:
16179           if (aligned_ptr)
16180             free (((void **) aligned_ptr) [-1]);
16181
16182 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16183
16184         doc: update users.txt.
16185         * users.txt: Add barcode.
16186
16187 2011-04-19  Bruno Haible  <bruno@clisp.org>
16188
16189         ioctl: Remove link dependency on native Windows.
16190         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16191         (gl_close_fn, gl_ioctl_fn): New types.
16192         (struct fd_hook): Renamed from struct close_hook. Change type of
16193         private_close_fn field. Add private_ioctl_fn field.
16194         (close_hook_fn): Add parameter for primary close method.
16195         (execute_close_hooks, execute_all_close_hooks): Likewise.
16196         (ioctl_hook_fn): New type.
16197         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16198         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16199         argument.
16200         (unregister_fd_hook): Renamed from unregister_close_hook.
16201         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16202         Don't include <unistd.h>.
16203         (close): Remove undef.
16204         (anchor): Update.
16205         (execute_close_hooks): Add argument for primary close method.
16206         (execute_all_close_hooks): Likewise.
16207         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16208         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16209         argument. Allow each argument to be NULL.
16210         (unregister_fd_hook): Renamed from unregister_close_hook.
16211         * lib/close.c (rpl_close): Pass 'close' function pointer to
16212         execute_all_close_hooks.
16213         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16214         (primary_ioctl): New function.
16215         (ioctl): Don't call ioctlsocket here. Instead, call
16216         execute_all_ioctl_hooks.
16217         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16218         close method.
16219         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16220         (fd_sockets_hook): Renamed from close_sockets_hook.
16221         (gl_sockets_startup, gl_sockets_cleanup): Update.
16222         * modules/fd-hook: Renamed from modules/close-hook. Update.
16223         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16224         * modules/sockets (Depends-on): Likewise.
16225         * modules/ioctl (Depends-on): Add fd-hook.
16226         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16227         GNULIB_SOCKET.
16228
16229 2011-04-19  Bruno Haible  <bruno@clisp.org>
16230
16231         Move the support of O_NONBLOCK in open() to the 'open' module.
16232         * modules/nonblocking (Depends-on): Remove 'open'.
16233         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16234         gl_cv_have_open_O_NONBLOCK.
16235         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16236         O_NONBLOCK support.
16237         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16238
16239 2011-04-17  Bruno Haible  <bruno@clisp.org>
16240
16241         pipe2: Simplify code.
16242         * lib/pipe2.c (pipe2): Reduce code duplication.
16243
16244 2011-04-17  Bruno Haible  <bruno@clisp.org>
16245
16246         nonblocking: Add comment.
16247         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16248
16249 2011-04-17  Bruno Haible  <bruno@clisp.org>
16250
16251         nonblocking: Add tests for sockets.
16252         * tests/test-nonblocking-socket.sh: New file.
16253         * tests/test-nonblocking-socket-main.c: New file.
16254         * tests/test-nonblocking-socket-child.c: New file.
16255         * tests/test-nonblocking-socket.h: New file.
16256         * tests/socket-server.h: New file.
16257         * tests/socket-client.h: New file.
16258         * modules/nonblocking-socket-tests: New file.
16259         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16260
16261 2011-04-17  Bruno Haible  <bruno@clisp.org>
16262
16263         nonblocking: Add tests for pipes.
16264         * tests/test-nonblocking-pipe.sh: New file.
16265         * tests/test-nonblocking-pipe-main.c: New file.
16266         * tests/test-nonblocking-pipe-child.c: New file.
16267         * tests/test-nonblocking-pipe.h: New file.
16268         * tests/test-nonblocking-writer.h: New file.
16269         * tests/test-nonblocking-reader.h: New file.
16270         * tests/test-nonblocking-misc.h: New file.
16271         * modules/nonblocking-pipe-tests: New file.
16272         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16273
16274 2011-04-16  Bruno Haible  <bruno@clisp.org>
16275
16276         gettext: Clarify the needed programmer actions.
16277         * modules/gettext (Notice): New field.
16278         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16279
16280 2011-04-16  Bruno Haible  <bruno@clisp.org>
16281
16282         strchrnul: Tweak last commit.
16283         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16284         bug.
16285         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16286         as in _GL_FUNCDECL_SYS.
16287         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16288         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16289
16290 2011-04-15  Eric Blake  <eblake@redhat.com>
16291
16292         strchrnul: work around cygwin bug
16293         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16294         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16295         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16296         * modules/string (Makefile.am): Substitute it.
16297         * lib/string.in.h (strchrnul): Use it.
16298
16299 2011-04-15  Bruno Haible  <bruno@clisp.org>
16300
16301         Don't require lib/stdio-write.c when only module 'stdio' is used.
16302         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16303         invocation.
16304         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16305
16306 2011-04-14  Bruno Haible  <bruno@clisp.org>
16307
16308         Support non-blocking pipe I/O in read() on native Windows.
16309         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16310         (read): New declaration.
16311         * lib/read.c: New file.
16312         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16313         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16314         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16315         vscanf): New declarations.
16316         * lib/stdio-read.c: New file.
16317         * m4/read.m4: New file.
16318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16319         REPLACE_READ.
16320         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16321         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16322         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16323         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16324         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16325         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16326         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16327         * modules/read: New file.
16328         * modules/nonblocking (Files): Add lib/stdio-read.c.
16329         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16330         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16331         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16332         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16333         * modules/pread (Depends-on): Add read.
16334         * modules/safe-read (Depends-on): Likewise.
16335         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16336         gets, scanf, vfscanf, vscanf): Verify signatures.
16337         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16338         problem with non-blocking pipes.
16339         * doc/posix-functions/fgetc.texi: Likewise.
16340         * doc/posix-functions/fgets.texi: Likewise.
16341         * doc/posix-functions/fread.texi: Likewise.
16342         * doc/posix-functions/fscanf.texi: Likewise.
16343         * doc/posix-functions/getc.texi: Likewise.
16344         * doc/posix-functions/getchar.texi: Likewise.
16345         * doc/posix-functions/gets.texi: Likewise.
16346         * doc/posix-functions/scanf.texi: Likewise.
16347         * doc/posix-functions/vfscanf.texi: Likewise.
16348         * doc/posix-functions/vscanf.texi: Likewise.
16349
16350 2011-04-14  Bruno Haible  <bruno@clisp.org>
16351
16352         Support non-blocking pipe I/O in write() on native Windows.
16353         * lib/write.c (rpl_write): Split a write request that failed merely
16354         because the byte count was larger than the pipe buffer's size.
16355         * doc/posix-functions/write.texi: Mention the problem with large byte
16356         counts.
16357
16358 2011-04-14  Bruno Haible  <bruno@clisp.org>
16359
16360         wchar: Ensure that wchar_t gets defined on uClibc.
16361         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16362         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16363
16364 2011-04-13  Bruno Haible  <bruno@clisp.org>
16365
16366         safe-write, full-read: Avoid unnecessary compilation units.
16367         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16368         (Depends-on): Remove safe-read. Add ssize_t.
16369         * modules/full-read (Files): Add lib/full-write.c.
16370         (Depends-on): Add full-write.
16371
16372 2011-04-13  Bruno Haible  <bruno@clisp.org>
16373
16374         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16375         * modules/pwrite (Depends-on): Add 'write'.
16376
16377 2011-04-13  Bruno Haible  <bruno@clisp.org>
16378
16379         Support non-blocking pipe I/O in write() on native Windows.
16380         * lib/unistd.in.h (write): Enable replacement also if
16381         GNULIB_UNISTD_H_NONBLOCKING is 1.
16382         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16383         (rpl_write): When failing to write on a non-blocking pipe, change
16384         errno from ENOSPC to EAGAIN.
16385         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16386         putchar, puts, vfprintf, vprintf): Enable replacement also if
16387         GNULIB_STDIO_H_NONBLOCKING is 1.
16388         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16389         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16390         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16391         CALL_WITH_SIGPIPE_EMULATION.
16392         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16393         * m4/nonblocking.m4: New file.
16394         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16395         for non-blocking I/O support.
16396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16397         GNULIB_UNISTD_H_NONBLOCKING.
16398         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16399         required for non-blocking I/O support.
16400         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16401         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16402         lib/stdio-write.c, m4/asm-underscore.m4.
16403         (Depends-on): Add stdio, unistd.
16404         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16405         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16406         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16407         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16408         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16409         problem with non-blocking pipes.
16410         * doc/posix-functions/fputc.texi: Likewise.
16411         * doc/posix-functions/fputs.texi: Likewise.
16412         * doc/posix-functions/fwrite.texi: Likewise.
16413         * doc/posix-functions/printf.texi: Likewise.
16414         * doc/posix-functions/putc.texi: Likewise.
16415         * doc/posix-functions/putchar.texi: Likewise.
16416         * doc/posix-functions/puts.texi: Likewise.
16417         * doc/posix-functions/vfprintf.texi: Likewise.
16418         * doc/posix-functions/vprintf.texi: Likewise.
16419         * doc/posix-functions/write.texi: Likewise.
16420
16421 2011-04-10  Jim Meyering  <meyering@redhat.com>
16422
16423         maint.mk: prohibit doubled words
16424         Detect them also when they're separated by a newline.
16425         There are 3 ways to customize it:
16426           - disable the test on a per file basis, as usual with rules using
16427             $(VC_LIST_EXCEPT)
16428           - replace the default doubled-word-selecting regexp (affects all files)
16429           - ignore a particular file-vs-doubled-word match
16430         I nearly used that last one to ignore the "is is" match in
16431         coreutils' NEWS file, since the text was "ls -is is ..."
16432         To do that, I would have added this line to cfg.mk:
16433           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16434         but it would have ignored any "is is" match in NEWS.
16435         Low probability, but still...
16436         Instead, I changed the text, slightly:
16437           -  ls -is is now consistent with ls -lis in ignoring values returned
16438           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16439         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16440         (prohibit_doubled_word_): Define.
16441         (sc_prohibit_doubled_word): New rule.
16442         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16443
16444 2011-04-10  Jim Meyering  <meyering@redhat.com>
16445
16446         maint: fix doubled-word typo in comment
16447         * m4/gethostname.m4: s/is is/it is/
16448         * m4/getdomainname.m4: Likewise.
16449
16450 2011-04-10  Jim Meyering  <meyering@redhat.com>
16451
16452         maint: remove doubled word: s/it it/it/
16453         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16454
16455 2011-04-10  Jim Meyering  <meyering@redhat.com>
16456
16457         maint.mk: remove useless semicolon and backslash
16458         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16459         semicolon and backslash.
16460
16461 2011-04-10  Bruno Haible  <bruno@clisp.org>
16462
16463         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16464         * modules/stdint-tests (Depends-on): Add wchar.
16465
16466 2011-04-10  Jim Meyering  <meyering@redhat.com>
16467
16468         maint: remove doubled words in comments, e.g., s/a a/a/
16469         * lib/strptime.c (day_of_the_week): s/the the/the/
16470         * tests/test-chown.h (test_chown): s/a a/a/
16471
16472         test-chown.h: correct a cast
16473         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16474         when the destination is a stat.st_gid.
16475
16476 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16477
16478         getaddrinfo: Fix test for sa_len member.
16479         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16480         include <sys/types.h> before <sys/socket.h>.
16481
16482 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16483
16484         maint: change "can not" to "cannot"
16485         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16486         boundaries.
16487
16488 2011-04-09  Jim Meyering  <meyering@redhat.com>
16489
16490         maint: change "a a" to "a"
16491         * tests/test-lchown.h (test_lchown): s/a a/a/
16492
16493         maint.mk: prohibit \<the the\>
16494         * top/maint.mk (sc_prohibit_the_the): New rule.
16495
16496         maint: fix "the the" in comment
16497         * lib/count-one-bits.h: s/the the/the/
16498
16499         maint: change "can not" to "cannot"
16500         But do not change the occurrences in maintain.texi or in
16501         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16502         * doc/gnulib-tool.texi: s/can not/cannot/
16503         * doc/posix-functions/accept.texi (accept): Likewise.
16504         * doc/posix-functions/socket.texi (socket): Likewise.
16505         * lib/mbrtowc.c: Likewise.
16506
16507         maint.mk: prohibit use of "can not"
16508         * top/maint.mk (sc_prohibit_can_not): New rule.
16509         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16510
16511 2011-04-09  Bruno Haible  <bruno@clisp.org>
16512
16513         careadlinkat: Guard against misuse of careadlinkatcwd.
16514         * lib/careadlinkat.c: Include <stdlib.h>.
16515         (careadlinkatcwd): Check that the fd argument is as expected.
16516
16517 2011-04-09  Bruno Haible  <bruno@clisp.org>
16518
16519         careadlinkat: Use common coding style.
16520         * lib/careadlinkat.c: Move gnulib includes after system includes.
16521
16522 2011-04-09  Bruno Haible  <bruno@clisp.org>
16523
16524         careadlinkat: Clarify specification.
16525         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16526         (careadlinkatcwd): Add comment.
16527         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16528
16529 2011-04-09  Bruno Haible  <bruno@clisp.org>
16530
16531         areadlinkat: Avoid link error on many platforms.
16532         * modules/areadlinkat (Depends-on): Add areadlink.
16533
16534 2011-04-09  Bruno Haible  <bruno@clisp.org>
16535
16536         allocator, careadlinkat: Fix double-inclusion guard.
16537         * lib/allocator.h: Fix double-inclusion guard.
16538         * lib/careadlinkat.h: Likewise.
16539
16540 2011-04-09  Bruno Haible  <bruno@clisp.org>
16541
16542         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16543         * lib/relocwrapper.c: Update dependencies hierarchy.
16544         * build-aux/install-reloc: Update list of files to be compiled.
16545         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16546         lib/allocator.[hc].
16547
16548 2011-04-08  Eric Blake  <eblake@redhat.com>
16549
16550         strftime: silence gnulib-tool warning
16551         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16552
16553 2011-04-08  Bruno Haible  <bruno@clisp.org>
16554
16555         verify: Fix syntax error with GCC 4.6 in C++ mode.
16556         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16557         (HAVE_STATIC_ASSERT): New macro.
16558         (verify_true, verify): Use 'static_assert' if it is supported and
16559         '_Static_assert' is not supported.
16560
16561 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16562
16563         allocator: New module.
16564         * modules/allocator, lib/allocator.c: New files.
16565         * lib/allocator.h (stdlib_allocator): New decl.
16566         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16567         Remove.  Do not include <stdlib.h>.
16568         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16569         * modules/careadlinkat (Files): Remove lib/allocator.h.
16570         (Depends-on): Add allocator.
16571
16572         stdlib: let modules use system malloc, realloc
16573         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16574         if !_GL_USE_STDLIB_ALLOC.
16575         (malloc, realloc): Limit this change to a smaller scope.
16576
16577         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16578         (malloc, realloc): Don't #undef; no longer needed.
16579         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16580         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16581         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16582         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16583         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16584         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16585         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16586         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16587
16588         careadlinkat: rename members to avoid problem
16589         * lib/allocator.h (struct allocator): Rename members from
16590         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16591         and realloc are #define'd.  Reported by Eric Blake in
16592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16593         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16594
16595 2011-04-08  Eric Blake  <eblake@redhat.com>
16596
16597         nonblocking: reduce dependency
16598         * tests/test-nonblocking.c: Only test sockets when in use.
16599         * modules/nonblocking-tests (Depends-on): Drop socket.
16600         (Makefile.am): Link even if sockets are not present.
16601         * modules/pipe2-tests (Makefile.am): Likewise.
16602         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
16603
16604         pipe2: fix O_NONBLOCK support on mingw
16605         * modules/pipe2 (Depends-on): Add nonblocking.
16606         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
16607         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
16608         * tests/test-nonblocking.c (main): Likewise.
16609         * modules/pipe2-tests (Makefile.am): Avoid link failure.
16610
16611         fcntl-h: fix O_ACCMODE on cygwin
16612         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
16613         * lib/fcntl.in.h (O_ACCMODE): Fix it.
16614
16615         pipe-filter: drop O_NONBLOCK workarounds
16616         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
16617         * modules/pipe-filter-ii (Depends-on): Likewise.
16618         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
16619
16620         nonblocking: provide O_NONBLOCK for mingw
16621         * modules/nonblocking (Depends-on): Add open.
16622         (configure.ac): Set new witness macro.
16623         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
16624         * modules/fcntl-h (Makefile.am): Substitute it.
16625         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
16626         nonblocking module is in use.
16627         * lib/nonblocking.c: Adjust portability test.
16628         * lib/open.c (open): Don't let native open see gnulib flag.
16629         * tests/test-fcntl-h.c (main): Enhance test.
16630         * tests/test-open.h (test_open): Likewise.
16631         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
16632
16633         careadlinkat: fix compilation error on mingw
16634         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
16635         within struct allocator.
16636
16637 2011-04-06  Eric Blake  <eblake@redhat.com>
16638
16639         binary-io: relicense under LGPLv2+
16640         * modules/binary-io (License): Relax to LGPLv2+.
16641         Requested for libvirt, and required by pipe2.
16642
16643 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16644
16645         verify: use _Static_assert if available
16646         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
16647         (verify_true, verify): Use it if available.  This generates better
16648         diagnostics with GCC 4.6.0 and later.
16649
16650 2011-04-05  Bruno Haible  <bruno@clisp.org>
16651
16652         Remove leftover generated .h files after config.status changed.
16653
16654         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
16655         GL_GENERATE_ALLOCA_H.
16656         * modules/alloca-opt (Makefile.am): Remove alloca.h if
16657         GL_GENERATE_ALLOCA_H evaluates to false.
16658
16659         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
16660         GL_GENERATE_ARGZ_H.
16661         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
16662         evaluates to false.
16663
16664         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
16665         GL_GENERATE_BYTESWAP_H.
16666         * modules/byteswap (Makefile.am): Remove byteswap.h if
16667         GL_GENERATE_BYTESWAP_H evaluates to false.
16668
16669         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
16670         GL_GENERATE_ERRNO_H.
16671         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
16672         evaluates to false.
16673
16674         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
16675         GL_GENERATE_FLOAT_H.
16676         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
16677         evaluates to false.
16678
16679         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
16680         GL_GENERATE_FNMATCH_H.
16681         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
16682         GL_GENERATE_FNMATCH_H evaluates to false.
16683
16684         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
16685         GL_GENERATE_GLOB_H.
16686         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
16687         evaluates to false.
16688
16689         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
16690         automake conditional GL_GENERATE_ICONV_H.
16691         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
16692         evaluates to false.
16693
16694         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
16695         GL_GENERATE_NETINET_IN_H.
16696         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
16697         GL_GENERATE_NETINET_IN_H evaluates to false.
16698
16699         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
16700         conditional GL_GENERATE_PTHREAD_H.
16701         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
16702         * modules/pthread (Makefile.am): Remove pthread.h if
16703         GL_GENERATE_PTHREAD_H evaluates to false.
16704
16705         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
16706         GL_GENERATE_SCHED_H.
16707         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
16708         evaluates to false.
16709
16710         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
16711         conditional GL_GENERATE_SELINUX_CONTEXT_H.
16712         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
16713         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
16714
16715         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
16716         GL_GENERATE_STDARG_H.
16717         * modules/stdarg (Makefile.am): Remove stdarg.h if
16718         GL_GENERATE_STDARG_H evaluates to false.
16719
16720         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
16721         GL_GENERATE_STDBOOL_H.
16722         * modules/stdbool (Makefile.am): Remove stdbool.h if
16723         GL_GENERATE_STDBOOL_H evaluates to false.
16724
16725         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
16726         conditional GL_GENERATE_STDDEF_H.
16727         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
16728         * modules/stddef (Makefile.am): Remove stddef.h if
16729         GL_GENERATE_STDDEF_H evaluates to false.
16730
16731         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
16732         GL_GENERATE_STDINT_H.
16733         * modules/stdint (Makefile.am): Remove stdint.h if
16734         GL_GENERATE_STDINT_H evaluates to false.
16735
16736         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
16737         GL_GENERATE_SYSEXITS_H.
16738         * modules/sysexits (Makefile.am): Remove sysexits.h if
16739         GL_GENERATE_SYSEXITS_H evaluates to false.
16740
16741         Reported by Karl Berry and Ralf Wildenhues.
16742
16743 2011-04-05  Bruno Haible  <bruno@clisp.org>
16744
16745         Ensure to rebuild generated .h files when config.status has changed.
16746         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
16747         config.status.
16748         * modules/ctype (Makefile.am): Likewise.
16749         * modules/dirent (Makefile.am): Likewise.
16750         * modules/errno (Makefile.am): Likewise.
16751         * modules/fcntl-h (Makefile.am): Likewise.
16752         * modules/float (Makefile.am): Likewise.
16753         * modules/getopt-posix (Makefile.am): Likewise.
16754         * modules/glob (Makefile.am): Likewise.
16755         * modules/iconv-h (Makefile.am): Likewise.
16756         * modules/inttypes (Makefile.am): Likewise.
16757         * modules/langinfo (Makefile.am): Likewise.
16758         * modules/locale (Makefile.am): Likewise.
16759         * modules/math (Makefile.am): Likewise.
16760         * modules/netdb (Makefile.am): Likewise.
16761         * modules/netinet_in (Makefile.am): Likewise.
16762         * modules/poll-h (Makefile.am): Likewise.
16763         * modules/pthread (Makefile.am): Likewise.
16764         * modules/pty (Makefile.am): Likewise.
16765         * modules/sched (Makefile.am): Likewise.
16766         * modules/search (Makefile.am): Likewise.
16767         * modules/selinux-h (Makefile.am): Likewise.
16768         * modules/signal (Makefile.am): Likewise.
16769         * modules/spawn (Makefile.am): Likewise.
16770         * modules/stdarg (Makefile.am): Likewise.
16771         * modules/stdbool (Makefile.am): Likewise.
16772         * modules/stddef (Makefile.am): Likewise.
16773         * modules/stdint (Makefile.am): Likewise.
16774         * modules/stdio (Makefile.am): Likewise.
16775         * modules/stdlib (Makefile.am): Likewise.
16776         * modules/string (Makefile.am): Likewise.
16777         * modules/strings (Makefile.am): Likewise.
16778         * modules/sys_file (Makefile.am): Likewise.
16779         * modules/sys_ioctl (Makefile.am): Likewise.
16780         * modules/sys_select (Makefile.am): Likewise.
16781         * modules/sys_socket (Makefile.am): Likewise.
16782         * modules/sys_stat (Makefile.am): Likewise.
16783         * modules/sys_time (Makefile.am): Likewise.
16784         * modules/sys_times (Makefile.am): Likewise.
16785         * modules/sys_utsname (Makefile.am): Likewise.
16786         * modules/sys_wait (Makefile.am): Likewise.
16787         * modules/sysexits (Makefile.am): Likewise.
16788         * modules/termios (Makefile.am): Likewise.
16789         * modules/time (Makefile.am): Likewise.
16790         * modules/unistd (Makefile.am): Likewise.
16791         * modules/wchar (Makefile.am): Likewise.
16792         * modules/wctype-h (Makefile.am): Likewise.
16793         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
16794
16795 2011-04-05  Bruno Haible  <bruno@clisp.org>
16796
16797         pipe2: Relicense under LGPLv2+.
16798         * modules/pipe2 (License): Change to LGPLv2+.
16799         Requested by Eric Blake, for libvirt.
16800
16801 2011-04-05  Bruce Korb  <bkorb@gnu.org>
16802
16803         bootstrap: compute gnulib_extra_files after updating build_aux
16804         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
16805         change build_aux or also supply gnulib_extra_files.  Handle correctly.
16806
16807 2011-04-05  Eric Blake  <eblake@redhat.com>
16808
16809         bootstrap: preserve git whitelist item sorting
16810         * build-aux/bootstrap (sort_patterns): New function.
16811         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
16812
16813 2011-04-05  Simon Josefsson  <simon@josefsson.org>
16814
16815         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
16816         sc_space_tab check.
16817
16818 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16819
16820         areadlink, areadlinkat: rewrite in terms of careadlinkat
16821         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
16822         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
16823         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
16824         (malloc, realloc): Remove #undefs.
16825         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
16826         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
16827         readlink, ssize_t, stdint, unistd.
16828         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
16829         areadlink, stdint.
16830
16831         careadlinkat: new module
16832         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
16833         * modules/careadlinkat: New files, written by me with
16834         a review and feedback from Ben Pfaff in
16835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
16836
16837 2011-04-01  Bruno Haible  <bruno@clisp.org>
16838
16839         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
16840         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
16841         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
16842         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
16843         Reported by Bruce Korb <bruce.korb@gmail.com>.
16844
16845 2011-04-01  Bruno Haible  <bruno@clisp.org>
16846
16847         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
16848         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
16849         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
16850         * modules/wcpcpy (Depends-on): Add extensions.
16851         * modules/wcpncpy (Depends-on): Likewise.
16852         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
16853         systems.
16854         * doc/posix-functions/wcpncpy.texi: Likewise.
16855         * doc/posix-functions/wcwidth.texi: Likewise.
16856
16857 2011-03-31  Eric Blake  <eblake@redhat.com>
16858
16859         nonblocking: fix mingw test failures
16860         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
16861         non-blocking flag on regular file.
16862         (get_nonblocking_flag): Set errno on invalid fd.
16863         * tests/test-nonblocking.c (main): Avoid test failure on
16864         directories if fchdir is not active.
16865         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
16866
16867 2011-03-31  Bruno Haible  <bruno@clisp.org>
16868
16869         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
16870         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
16871         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
16872         Reported by Simon Josefsson <simon@josefsson.org>.
16873
16874 2011-03-31  Bruno Haible  <bruno@clisp.org>
16875         and Eric Blake  <eblake@redhat.com>
16876
16877         nonblocking: new module
16878         * modules/nonblocking: New module.
16879         * modules/nonblocking-tests: Likewise.
16880         * lib/nonblocking.h: New file.
16881         * lib/nonblocking.c: Likewise.
16882         * tests/test-nonblocking.c: New test.
16883         * lib/ioctl.c (ioctl) [mingw]: Update comment.
16884
16885 2011-03-30  Bruno Haible  <bruno@clisp.org>
16886
16887         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
16888         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
16889         instead of 'printf' format for GCC >= 4.4.
16890         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
16891         (fprintf, printf, vfprintf, vprintf): Declare with
16892         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
16893         the system's vfprintf() function.
16894         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
16895
16896 2011-03-30  Eric Blake  <eblake@redhat.com>
16897
16898         passfd: fix scoping bug
16899         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
16900         before sendmsg/recvmsg.
16901
16902         passfd: standardize coding conventions
16903         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
16904         can be learned at compile time.
16905         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
16906         ifdefs.
16907         (sendfd, recvfd): Follow gnulib code conventions.
16908
16909         passfd: fix incorrect sendmsg arguments
16910         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
16911         incorrect msg_controllen value.
16912         * modules/passfd-tests (Depends-on): Check for alarm.
16913         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
16914         Reported by Bastien ROUCARIES.
16915
16916 2011-03-30  Bruno Haible  <bruno@clisp.org>
16917
16918         c-strcasestr: Relicense under LGPLv2+.
16919         * modules/c-strcasestr (License): Change to LGPLv2+.
16920         Requested by Eric Blake, for libvirt.
16921
16922 2011-03-30  Simon Josefsson  <simon@josefsson.org>
16923
16924         * users.txt: Add libidn2.  Fix libtasn1 link.
16925
16926 2011-03-30  Jim Meyering  <meyering@redhat.com>
16927
16928         tests: readlink* ("",... fails with EINVAL on newer kernels
16929         readlink and readlinkat have typically failed with ENOENT for
16930         the invalid, empty file name,  "".  However, with the advent
16931         of linux-2.6.39, they fail with EINVAL.
16932         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
16933         when operating on the empty file name.
16934         * tests/test-readlink.h (test_readlink): Likewise.
16935
16936 2011-03-29  Bruno Haible  <bruno@clisp.org>
16937
16938         Relicense some modules under LGPLv2+, for libidn2.
16939         * modules/array-mergesort (License): Change to LGPLv2+.
16940         * modules/c-strcaseeq (License): Likewise.
16941         * modules/striconveh (License): Likewise.
16942         * modules/striconveha (License): Likewise.
16943         * modules/uniconv/base (License): Likewise.
16944         * modules/uniconv/u8-conv-from-enc (License): Likewise.
16945         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
16946         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16947         * modules/unictype/base (License): Likewise.
16948         * modules/unictype/bidiclass-of (License): Likewise.
16949         * modules/unictype/category-M (License): Likewise.
16950         * modules/unictype/category-none (License): Likewise.
16951         * modules/unictype/category-of (License): Likewise.
16952         * modules/unictype/category-test (License): Likewise.
16953         * modules/unictype/category-test-withtable (License): Likewise.
16954         * modules/unictype/combining-class (License): Likewise.
16955         * modules/unictype/joiningtype-of (License): Likewise.
16956         * modules/unictype/scripts (License): Likewise.
16957         * modules/uninorm/base (License): Likewise.
16958         * modules/uninorm/canonical-decomposition (License): Likewise.
16959         * modules/uninorm/composition (License): Likewise.
16960         * modules/uninorm/decompose-internal (License): Likewise.
16961         * modules/uninorm/decomposition-table (License): Likewise.
16962         * modules/uninorm/nfc (License): Likewise.
16963         * modules/uninorm/nfd (License): Likewise.
16964         * modules/uninorm/u32-normalize (License): Likewise.
16965         * modules/unistr/base (License): Likewise.
16966         * modules/unistr/u32-cpy (License): Likewise.
16967         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16968         * modules/unistr/u32-to-u8 (License): Likewise.
16969         * modules/unistr/u32-uctomb (License): Likewise.
16970         * modules/unistr/u8-check (License): Likewise.
16971         * modules/unistr/u8-mblen (License): Likewise.
16972         * modules/unistr/u8-mbtouc (License): Likewise.
16973         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16974         * modules/unistr/u8-mbtoucr (License): Likewise.
16975         * modules/unistr/u8-prev (License): Likewise.
16976         * modules/unistr/u8-strlen (License): Likewise.
16977         * modules/unistr/u8-to-u32 (License): Likewise.
16978         * modules/unistr/u8-uctomb (License): Likewise.
16979         * modules/unitypes (License): Likewise.
16980         Requested by Simon Josefsson.
16981
16982 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16983
16984         lib-symbol-visibility: Add a notice.
16985         * modules/lib-symbol-visibility (Notice): New field.
16986
16987 2011-03-29  Bruno Haible  <bruno@clisp.org>
16988
16989         getaddrinfo: Doc fix.
16990         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16991         section "fixed in Gnulib".
16992
16993 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16994
16995         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16996         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16997
16998 2011-03-26  Bruno Haible  <bruno@clisp.org>
16999
17000         unictype/property-byname: Reduce the number of load-time relocations.
17001         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17002         (UC_PROPERTY_INDEX_*): New enumeration values.
17003         (uc_property_byname): Convert an index from the lookup table to an
17004         uc_property_t.
17005         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17006         values.
17007
17008 2011-03-26  Bruno Haible  <bruno@clisp.org>
17009
17010         unictype/property-byname: Allow omitted word separators and aliases.
17011         * lib/unictype/pr_byname.gperf: Add property names without word
17012         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17013         for 'space'.
17014
17015 2011-03-26  Bruno Haible  <bruno@clisp.org>
17016
17017         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17018         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17019         also hyphens to space.
17020         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17021         without spaces.
17022         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17023
17024 2011-03-26  Bruno Haible  <bruno@clisp.org>
17025
17026         unictype/joiningtype-byname: Recognize long names as well.
17027         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17028         a long name.
17029         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17030         unictype/joiningtype_byname.h.
17031         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17032         * lib/unictype/joiningtype_byname.gperf: New file.
17033         * modules/unictype/joiningtype-byname (Files): Add
17034         lib/unictype/joiningtype_byname.gperf.
17035         (Depends-on): Add gperf.
17036         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17037         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17038         long names.
17039
17040         Tests for module 'unictype/joiningtype-longname'.
17041         * modules/unictype/joiningtype-longname-tests: New file.
17042         * tests/unictype/test-joiningtype_longname.c: New file.
17043
17044         New module 'unictype/joiningtype-longname'.
17045         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17046         * lib/unictype/joiningtype_longname.c: New file.
17047         * modules/unictype/joiningtype-longname: New file.
17048         * modules/unictype/joiningtype-all (Depends-on): Add
17049         unictype/joiningtype-longname.
17050
17051 2011-03-26  Bruno Haible  <bruno@clisp.org>
17052
17053         unictype/bidiclass-byname: Recognize long names as well.
17054         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17055         name.
17056         * lib/unictype/bidi_byname.c: Include <string.h>,
17057         unictype/bidi_byname.h.
17058         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17059         * lib/unictype/bidi_byname.gperf: New file.
17060         * modules/unictype/bidiclass-byname (Files): Add
17061         lib/unictype/bidi_byname.gperf.
17062         (Depends-on): Add gperf.
17063         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17064         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17065         long names.
17066
17067         Tests for module 'unictype/bidiclass-longname'.
17068         * modules/unictype/bidiclass-longname-tests: New file.
17069         * tests/unictype/test-bidi_longname.c: New file.
17070
17071         New module 'unictype/bidiclass-longname'.
17072         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17073         * lib/unictype/bidi_longname.c: New file.
17074         * modules/unictype/bidiclass-longname: New file.
17075         * modules/unictype/bidiclass-all (Depends-on): Add
17076         unictype/bidiclass-longname.
17077
17078 2011-03-26  Bruno Haible  <bruno@clisp.org>
17079
17080         unictype/bidi*: Rename modules.
17081         * modules/unictype/bidiclass-all: Renamed from
17082         modules/unictype/bidicategory-all.
17083         * modules/unictype/bidiclass-name: Renamed from
17084         modules/unictype/bidiclass-name.
17085         (Description): Update.
17086         * modules/unictype/bidiclass-name-tests: Renamed from
17087         modules/unictype/bidicategory-name-tests.
17088         * modules/unictype/bidiclass-byname: Renamed from
17089         modules/unictype/bidicategory-byname.
17090         (Description): Update.
17091         * modules/unictype/bidiclass-byname-tests: Renamed from
17092         modules/unictype/bidicategory-byname-tests.
17093         * modules/unictype/bidiclass-of: Renamed from
17094         modules/unictype/bidicategory-of.
17095         (Description): Update.
17096         * modules/unictype/bidiclass-of-tests: Renamed from
17097         modules/unictype/bidicategory-of-tests.
17098         * modules/unictype/bidiclass-test: Renamed from
17099         modules/unictype/bidicategory-test.
17100         (Description): Update.
17101         * modules/unictype/bidiclass-test-tests: Renamed from
17102         modules/unictype/bidicategory-test-tests.
17103         * modules/unictype/bidicategory-all: New file, a simple redirection.
17104         * modules/unictype/bidicategory-name: Likewise.
17105         * modules/unictype/bidicategory-byname: Likewise.
17106         * modules/unictype/bidicategory-of: Likewise.
17107         * modules/unictype/bidicategory-test: Likewise.
17108         * modules/unictype/property-bidi-* (Dependencies): Update.
17109         * lib/unictype/bidi_*.c: Update comment.
17110
17111 2011-03-26  Bruno Haible  <bruno@clisp.org>
17112
17113         unictype/bidi*: Rename functions, part 2.
17114         * modules/unictype/bidicategory-name (configure.ac): Update required
17115         libunistring version.
17116         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17117
17118 2011-03-25  Bruno Haible  <bruno@clisp.org>
17119
17120         New module 'unictype/combining-class-all'.
17121         * modules/unictype/combining-class-all: New file.
17122
17123         Tests for module 'unictype/combining-class-byname'.
17124         * modules/unictype/combining-class-byname-tests: New file.
17125         * tests/unictype/test-combiningclass_byname.c: New file.
17126
17127         New module 'unictype/combining-class-byname'.
17128         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17129         * lib/unictype/combiningclass_byname.c: New file.
17130         * lib/unictype/combiningclass_byname.gperf: New file.
17131         * modules/unictype/combining-class-byname: New file.
17132
17133         Tests for module 'unictype/combining-class-longname'.
17134         * modules/unictype/combining-class-longname-tests: New file.
17135         * tests/unictype/test-combiningclass_longname.c: New file.
17136
17137         New module 'unictype/combining-class-longname'.
17138         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17139         * lib/unictype/combiningclass_longname.c: New file.
17140         * modules/unictype/combining-class-longname: New file.
17141
17142         Tests for module 'unictype/combining-class-name'.
17143         * modules/unictype/combining-class-name-tests: New file.
17144         * tests/unictype/test-combiningclass_name.c: New file.
17145
17146         New module 'unictype/combining-class-name'.
17147         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17148         * lib/unictype/combiningclass_name.c: New file.
17149         * modules/unictype/combining-class-name: New file.
17150
17151 2011-03-25  Bruno Haible  <bruno@clisp.org>
17152
17153         unictype/combining-class: Rename source files.
17154         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17155         of unictype/combining.h.
17156         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17157         Update.
17158         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17159         * modules/unictype/combining-class (Description): Fix.
17160         (Files, Makefile.am): Update.
17161         * tests/unictype/test-combiningclass.c: Renamed from
17162         tests/unictype/test-combining.c.
17163         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17164
17165 2011-03-25  Bruno Haible  <bruno@clisp.org>
17166
17167         unictype: Update list of canonical combining classes.
17168         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17169
17170 2011-03-25  Bruno Haible  <bruno@clisp.org>
17171
17172         unictype/category-byname: Recognize long names as well.
17173         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17174         a long name.
17175         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17176         unictype/categ_byname.h.
17177         (UC_CATEGORY_INDEX_*): New enumeration values.
17178         (uc_general_category_byname): Use uc_general_category_lookup and
17179         convert from index to value.
17180         * lib/unictype/categ_byname.gperf: New file.
17181         * modules/unictype/category-byname (Files): Add
17182         lib/unictype/categ_byname.gperf.
17183         (Depends-on): Add gperf.
17184         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17185         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17186         long names.
17187
17188         Tests for module 'unictype/category-longname'.
17189         * modules/unictype/category-longname-tests: New file.
17190         * tests/unictype/test-categ_longname.c: New file.
17191
17192         New module 'unictype/category-longname'.
17193         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17194         * lib/unictype/categ_longname.c: New file.
17195         * modules/unictype/category-longname: New file.
17196         * modules/unictype/category-all (Depends-on): Add it.
17197
17198 2011-03-25  Bruno Haible  <bruno@clisp.org>
17199
17200         Tests for module 'unictype/category-LC'.
17201         * modules/unictype/category-LC-tests: New file.
17202         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17203
17204         New module 'unictype/category-LC'.
17205         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17206         (UC_CATEGORY_LC): New declaration.
17207         (UC_CASED_LETTER): New macro.
17208         * lib/gen-uni-tables.c (is_category_LC): New function.
17209         (output_categories): Also handle category LC.
17210         (UC_CATEGORY_MASK_LC): New enumeration value.
17211         (general_category_byname): Also handle category LC.
17212         * lib/unictype/categ_LC.c: New file.
17213         * lib/unictype/categ_LC.h: New file, automatically generated.
17214         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17215         category LC.
17216         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17217         * modules/unictype/category-LC: New file.
17218         * modules/unictype/category-byname (Depends-on): Add
17219         unictype/category-LC.
17220         * modules/unictype/category-all (Depends-on): Likewise.
17221
17222 2011-03-25  Eric Blake  <eblake@redhat.com>
17223
17224         xmalloc: revert yesterday's regression
17225         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17226         realloc's underlying behavior (allowing allocation of zero-size
17227         objects, especially if malloc-gnu is also in use).
17228
17229 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17230
17231         maint.mk: add missing version to VC-tag
17232         * top/maint.mk: git tag was missing actual tag name; add it.
17233
17234         valgrind: do leak checking, and exit with code 1 on error (not 0)
17235         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17236         to VALGRIND.
17237
17238 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17239
17240         posix-modules: say what it does.
17241         * posix-modules: Add a line to the --help output saying what it does.
17242
17243 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17244
17245         xmalloc: Do not leak if underlying realloc is C99 compatible.
17246         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17247         This avoids a leak on C99-based systems.  See
17248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17249
17250 2011-03-24  Eric Blake  <eblake@redhat.com>
17251
17252         realloc: document portability problem
17253         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17254         passing 0 size to realloc.
17255
17256 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17257
17258         doc: update users.txt
17259         * users.txt: Add cvsps, tmpwatch
17260
17261 2011-03-23  Matt Rice  <ratmice@gmail.com>
17262
17263         doc: update users.txt
17264         * users.txt: Add gdb.
17265
17266 2011-03-23  Jim Meyering  <meyering@redhat.com>
17267
17268         doc: update users.txt
17269         Looking through matches up to the following URL (there are still
17270         several more pages), I found several projects that use gnulib:
17271         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17272         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17273         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17274
17275 2011-03-22  Bruno Haible  <bruno@clisp.org>
17276
17277         unictype/bidi*: Rename functions.
17278         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17279         uc_bidi_class, uc_is_bidi_class): New declarations.
17280         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17281         uc_bidi_category_byname.
17282         (uc_bidi_category_byname): New function.
17283         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17284         u_bidi_category_name.
17285         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17286         (uc_bidi_category_name): New function.
17287         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17288         uc_bidi_category.
17289         (uc_bidi_category): New function.
17290         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17291         uc_is_bidi_category. Invoke uc_bidi_class.
17292         (uc_is_bidi_category): New function.
17293         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17294         instead of uc_bidi_category_byname.
17295         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17296         instead of uc_bidi_category_name.
17297         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17298         uc_bidi_category.
17299         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17300         instead of uc_is_bidi_category.
17301
17302 2011-03-21  Bruno Haible  <bruno@clisp.org>
17303
17304         New module 'unictype/joininggroup-all'.
17305         * modules/unictype/joininggroup-all: New file.
17306
17307         Tests for module 'unictype/joininggroup-of'.
17308         * modules/unictype/joininggroup-of-tests: New file.
17309         * tests/unictype/test-joininggroup_of.c: New file.
17310         * tests/unictype/test-joininggroup_of.h: New file, automatically
17311         generated by gen-uni-tables.
17312
17313         New module 'unictype/joininggroup-of'.
17314         * modules/unictype/joininggroup-of: New file.
17315         * lib/unictype/joininggroup_of.c: New file.
17316         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17317         gen-uni-tables.
17318
17319         Tests for module 'unictype/joininggroup-byname'.
17320         * modules/unictype/joininggroup-byname-tests: New file.
17321         * tests/unictype/test-joininggroup_byname.c: New file.
17322
17323         New module 'unictype/joininggroup-byname'.
17324         * modules/unictype/joininggroup-byname: New file.
17325         * lib/unictype/joininggroup_byname.c: New file.
17326         * lib/unictype/joininggroup_byname.gperf: New file.
17327
17328         Tests for module 'unictype/joininggroup-name'.
17329         * modules/unictype/joininggroup-name-tests: New file.
17330         * tests/unictype/test-joininggroup_name.c: New file.
17331
17332         New module 'unictype/joininggroup-name'.
17333         * modules/unictype/joininggroup-name: New file.
17334         * lib/unictype/joininggroup_name.c: New file.
17335         * lib/unictype/joininggroup_name.h: New file.
17336
17337         New module 'unictype/joiningtype-all'.
17338         * modules/unictype/joiningtype-all: New file.
17339
17340         Tests for module 'unictype/joiningtype-of'.
17341         * modules/unictype/joiningtype-of-tests: New file.
17342         * tests/unictype/test-joiningtype_of.c: New file.
17343         * tests/unictype/test-joiningtype_of.h: New file, automatically
17344         generated by gen-uni-tables.
17345
17346         New module 'unictype/joiningtype-of'.
17347         * modules/unictype/joiningtype-of: New file.
17348         * lib/unictype/joiningtype_of.c: New file.
17349         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17350         gen-uni-tables.
17351
17352         Tests for module 'unictype/joiningtype-byname'.
17353         * modules/unictype/joiningtype-byname-tests: New file.
17354         * tests/unictype/test-joiningtype_byname.c: New file.
17355
17356         New module 'unictype/joiningtype-byname'.
17357         * modules/unictype/joiningtype-byname: New file.
17358         * lib/unictype/joiningtype_byname.c: New file.
17359
17360         Tests for module 'unictype/joiningtype-name'.
17361         * modules/unictype/joiningtype-name-tests: New file.
17362         * tests/unictype/test-joiningtype_name.c: New file.
17363
17364         New module 'unictype/joiningtype-name'.
17365         * modules/unictype/joiningtype-name: New file.
17366         * lib/unictype/joiningtype_name.c: New file.
17367
17368         unictype: Add support for Arabic shaping properties.
17369         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17370         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17371         declarations.
17372         (UC_JOINING_GROUP_*): New enumeration values.
17373         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17374         declarations.
17375         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17376         (unicode_joining_type): New variable.
17377         (UC_JOINING_GROUP_*): New enumeration values.
17378         (unicode_joining_group): New variable.
17379         (fill_arabicshaping, joining_type_as_c_identifier,
17380         output_joining_type_test, output_joining_type,
17381         joining_group_as_c_identifier, output_joining_group_test,
17382         output_joining_group): New functions.
17383         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17384         fill_arabicshaping and output_joining_type_test, output_joining_type,
17385         output_joining_group_test, output_joining_group.
17386         Reported by Simon Josefsson.
17387
17388 2011-03-21  Jim Meyering  <meyering@redhat.com>
17389
17390         strftime: fix a bug in yesterday's change
17391         * lib/strftime.c (add): Accommodate width's initial value of -1.
17392         Otherwise, nstrftime would copy uninitialized data into
17393         the result buffer.
17394
17395 2011-03-21  Jim Meyering  <meyering@redhat.com>
17396
17397         tests: add strftime-tests module
17398         * tests/test-strftime.c: New file.
17399         * modules/strftime-tests: New module.
17400
17401 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17402
17403         strftime: don't assume a byte count fits in 'int'
17404         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17405         found this problem by static analysis, using gcc -Wstrict-overflow
17406         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17407         on an integer overflow having undefined behavior, but it turns out
17408         that the argument is a size, which might not fit in 'int' anyway,
17409
17410 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17411
17412         stdio: don't require ignore_value around fwrite
17413
17414         This patch works around libc bug 11959
17415         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17416         Without this patch, applications must often write
17417         ignore_value (fwrite (...)) even though the ignore_value is
17418         not helpful here.  It's common to write many objects, using
17419         fwrite/printf/etc., and then use ferror to detect output error.
17420
17421         I considered making this patch optional, but decided against it,
17422         because libc is obviously being inconsistent here: there is no
17423         reason libc should insist that user code must inspect fwrite
17424         return's value without also insisting that it inspect printf's,
17425         putchar's, etc.  If user code wants to have a strict style where
17426         all these functions' values are checked (so that ferror need not
17427         be checked), we could add support for that style in a new gnulib
17428         module, but in the meantime it's better to be consistent and to
17429         support common usage.
17430
17431         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17432         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17433         that we are compiling in checking mode, and if not C++, and
17434         if not already wrapping fwrite for some other reason.
17435         (fwrite): #define to rpl_fwrite if the latter is defined.
17436
17437 2011-03-20  Bruno Haible  <bruno@clisp.org>
17438
17439         verror: Fix compilation error introduced on 2011-02-13.
17440         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17441         instead of __attribute__.
17442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17443
17444 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17445             Bruno Haible  <bruno@clisp.org>
17446
17447         socklen: do not depend on sys_socket
17448         While trying to modify Emacs to use gnulib's socklen module,
17449         I discovered a circular dependency: socklen depends on sys_socket
17450         and vice versa.  Emacs can use socklen, but it does not need
17451         sys_socket because it has its own substitute for sys/socket.h.
17452         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17453         gl_TYPE_SOCKLEN_T.
17454         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17455         gl_PREREQ_SYS_H_SOCKET.
17456         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17457         gl_PREREQ_SYS_H_SOCKET.
17458         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17459         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17460         * modules/socklen (Depends-on): Do not depend on sys_socket.
17461         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17462
17463 2011-03-20  Jim Meyering  <meyering@redhat.com>
17464
17465         maint.mk: sort file names *after* new transformation
17466         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17467         prefix would have led to an unwarranted failure in GNU parted.
17468         Sort after that transformation.
17469
17470 2011-03-19  Jim Meyering  <meyering@redhat.com>
17471
17472         maint.mk: fix po-file syntax-check rule
17473         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17474         Patch by Bruno Haible.
17475
17476 2011-03-19  Bruno Haible  <bruno@clisp.org>
17477
17478         socklen: Update comment.
17479         * m4/socklen.m4: Update comment about platforms.
17480
17481 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17482             Bruno Haible  <bruno@clisp.org>
17483
17484         inet_ntop, inet_pton: Simplify.
17485         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17486         documented to provide socklen_t and we already depend on sys_socket.
17487         * modules/inet_pton (Depends-on): Likewise.
17488         * lib/arpa_inet.in.h: Adjust comment.
17489
17490 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17491             Bruno Haible  <bruno@clisp.org>
17492
17493         netdb: Simplify.
17494         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17495         documented to provide socklen_t and we already depend on sys_socket.
17496         * lib/netdb.in.h: Adjust comment.
17497
17498 2011-03-19  Bruno Haible  <bruno@clisp.org>
17499
17500         sys_socket, netdb: Document problem with socklen_t.
17501         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17502         platforms.
17503         * doc/posix-headers/netdb.texi: Likewise.
17504
17505 2011-03-18  Eric Blake  <eblake@redhat.com>
17506
17507         maint.mk: let po check work in VPATH build
17508         * top/maint.mk (po_file): Allow cfg.mk override.
17509         (sc_po_check): Allow VPATH use.
17510         Reported by Jiri Denemark.
17511
17512 2011-03-16  Jim Meyering  <meyering@redhat.com>
17513
17514         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17515         Before, you would have had to create one .x-sc_ file per rule in order
17516         to exempt offending files.  Now, you may instead use a Make variable --
17517         usually defined in cfg.mk -- whose name identifies the affected rule.
17518         * top/maint.mk (_sc_excl): Define.
17519         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17520         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17521
17522 2011-03-13  Bruno Haible  <bruno@clisp.org>
17523
17524         ignore-value tests: Avoid warnings.
17525         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17526         empty for gcc < 3.4.
17527
17528 2011-03-13  Bruno Haible  <bruno@clisp.org>
17529
17530         passfd: Fix link error on Solaris.
17531         * modules/passfd (Description): Correct.
17532         (Depends-on): Add socketlib.
17533         (Link): New section.
17534         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17535
17536 2011-03-13  Bruno Haible  <bruno@clisp.org>
17537
17538         passfd: Fix link error on AIX 5.2.
17539         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17540
17541 2011-03-13  Bruno Haible  <bruno@clisp.org>
17542
17543         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17544         * lib/sys_socket.in.h: Include <stddef.h>.
17545         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17546         CMSG_FIRSTHDR. Remove unused variable.
17547
17548 2011-03-13  Bruno Haible  <bruno@clisp.org>
17549
17550         passfd: Fix compilation error on OpenBSD.
17551         * lib/passfd.c: Include <sys/uio.h>.
17552
17553 2011-03-13  Bruno Haible  <bruno@clisp.org>
17554
17555         passfd test: Fix warnings.
17556         * tests/test-passfd.c: Include <sys/wait.h>.
17557         (main): Fix typo.
17558
17559 2011-03-13  Bruno Haible  <bruno@clisp.org>
17560
17561         passfd module, part 4, tweaks.
17562         * tests/test-passfd.c: Reorder includes.
17563         (main): Fix perror and printf calls.
17564
17565 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17566
17567         passfd module, part 4.
17568         * modules/passfd-tests: New file.
17569         * tests/test-passfd.c: New file.
17570
17571 2011-03-13  Jim Meyering  <meyering@redhat.com>
17572
17573         Makefile: rely on GNU make; derive syntax-check rule names
17574         Rather than requiring that each sc_ rule be listed as a dependent
17575         of "check", use features of GNU make to derive the list.
17576         * Makefile (syntax-check-rules): Define.
17577         (check): Depend on the new variable, not the hard-coded list.
17578
17579 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17580             Bruno Haible  <bruno@clisp.org>
17581
17582         passfd module, part 3.
17583         * lib/passfd.h (recvfd): Add a flags argument.
17584         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17585         (recvfd): Add a flags argument.
17586         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17587         exists.
17588         * modules/passfd (Depends-on): Add cloexec.
17589         Suggested by Eric Blake.
17590
17591 2011-03-13  Bruno Haible  <bruno@clisp.org>
17592
17593         passfd module, part 2, tweaks.
17594         * modules/passfd (Files): Reorder.
17595         (Depends-on): Remove errno.
17596         (Include): Remove <sys/socket.h>, <sys/un.h>.
17597         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
17598         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
17599         specification header. Include <sys/socket.h> always. Don't include
17600         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
17601         (sendfd): Clarify that it sets errno when it fails.
17602         (recvfd): Fix specification.
17603
17604 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17605
17606         passfd module, part 2.
17607         * modules/passfd: New file.
17608         * lib/passfd.h: New file.
17609         * lib/passfd.c: New file.
17610
17611 2011-03-12  Bruno Haible  <bruno@clisp.org>
17612
17613         wcswidth, mbswidth: Avoid integer overflow.
17614         * lib/wcswidth.c: Include <limits.h>.
17615         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
17616         * lib/mbswidth.c: Include <limits.h>.
17617         (mbsnwidth): Avoid 'int' overflow.
17618         Reported by Jim Meyering.
17619
17620 2011-03-12  Bruno Haible  <bruno@clisp.org>
17621
17622         futimens, utimensat: Avoid endless recursion on Solaris 10.
17623         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
17624         Solaris.
17625         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
17626         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
17627
17628 2011-03-11  Jim Meyering  <meyering@redhat.com>
17629
17630         maint.mk: relax a regexp to accommodate other formatting styles
17631         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
17632         between "ngettext" and the following "(".
17633
17634 2011-03-11  Pádraig Brady <P@draigBrady.com>
17635
17636         maint.mk: suppress a false positive warning
17637         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
17638         diagnostics are marked with ngettext.
17639
17640 2011-03-10  Eric Blake  <eblake@redhat.com>
17641
17642         wchar: add explicit dependencies, for Tru64
17643         * modules/mbmemcasecoll (Depends-on): Add wchar.
17644         * modules/mbtowc (Depends-on): Likewise.
17645         * modules/vasnprintf (Depends-on): Likewise.
17646         * modules/unistdio/u-printf-args (Depends-on): Likewise.
17647         * modules/wctomb (Depends-on): Likewise.
17648         Reported by Peter O'Gorman.
17649
17650 2011-03-08  Bruno Haible  <bruno@clisp.org>
17651
17652         passfd module, part 1, tweaks.
17653         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
17654         Improve indentation. Improve AC_MSG_CHECKING messages.
17655         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
17656         gl_SOCKET_FAMILIES.
17657
17658 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17659
17660         passfd module, part 1.
17661         * m4/afunix.m4: New file.
17662         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
17663         sockets.
17664
17665 2011-03-08  Bruno Haible  <bruno@clisp.org>
17666
17667         regex-quote: New API.
17668         * lib/regex-quote.h: Include <stdbool.h>.
17669         (struct regex_quote_spec): New type.
17670         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17671         New declarations.
17672         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17673         'const struct regex_quote_spec *' argument.
17674         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
17675         (pcre_special): New constant.
17676         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17677         New functions.
17678         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17679         'const struct regex_quote_spec *' argument.
17680         * modules/regex-quote (Depends-on): Add stdbool.
17681         * tests/test-regex-quote.c (check): Update for new API. Add test for
17682         anchored results.
17683         * NEWS: Mention the API change.
17684         Reported by Reuben Thomas and Eric Blake.
17685
17686 2011-03-06  Bruno Haible  <bruno@clisp.org>
17687
17688         regex-quote: Fix creation of POSIX extended regular expressions.
17689         * lib/regex-quote.c (ere_special): Add grouping and alternation
17690         operators.
17691
17692 2011-03-05  Bruno Haible  <bruno@clisp.org>
17693
17694         doc: Improve doc regarding autopoint vs. gnulib.
17695         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
17696         disable autopoint while running autoreconf.
17697         Suggested by Ralf Wildenhues.
17698
17699 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17700
17701         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
17702         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
17703
17704 2011-03-03  Bruce Korb  <bkorb@gnu.org>
17705
17706         parse-duration: remove xalloc.h dependency
17707         * lib/parse-duration.c (parse_period): handle NULL return from
17708         strdup instead of calling xstrdup().
17709         * modules/parse-duration: remove "xalloc" dependency
17710
17711 2011-03-03  Matthew Booth  <mbooth@redhat.com>
17712
17713         bootstrap: honor m4_base when running aclocal
17714         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
17715
17716 2011-03-02  Jim Meyering  <meyering@redhat.com>
17717
17718         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
17719         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
17720         on request from Matt Booth.
17721
17722 2011-03-01  Eric Blake  <eblake@redhat.com>
17723
17724         test-link: work on Hurd
17725         * tests/test-link.h (test_link): Hurd rejects linking directories
17726         with EISDIR instead of the POSIX-mandated EPERM.
17727
17728 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
17729
17730         stdio: simplify by moving files to printf-posix, sigpipe
17731         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
17732         since this symbol is needed only if printf is replaced.
17733         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
17734         Require gl_ASM_SYMBOL_PREFIX.
17735         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
17736         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
17737         (Depends-on): Add 'raise'.
17738         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17739         * modules/stdio (Files): Remove lib/stdio-write.c,
17740         m4/asm-underscore.m4.
17741         (Depends-on): Remove 'raise'.
17742
17743         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
17744         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
17745         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
17746         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
17747
17748 2011-02-28  Bruno Haible  <bruno@clisp.org>
17749
17750         localcharset: Assume ANSI C behaviour of free().
17751         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
17752         calling free().
17753         Suggested by Simon Josefsson <simon@josefsson.org>.
17754
17755 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
17756             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
17757             Bruno Haible  <bruno@clisp.org>  (tiny change)
17758
17759         On Cygwin, use /proc file system instead of win32 API.
17760         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
17761         Win32 file names.
17762         (DllMain): Simplify by removing Cygwin specific code.
17763         (find_shared_library_fullname): Use Linux specific implementation also
17764         for Cygwin.
17765         (get_shared_library_fullname): Update accordingly.
17766         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
17767         Win32 file names.
17768         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
17769         Cygwin specific code.
17770
17771 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
17772             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
17773
17774         Fix OpenMP flag detection for various Fortran compilers.
17775         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
17776         OpenMP-conditional compilation construct, to force compile
17777         failure with missing OpenMP flag.
17778         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
17779
17780 2011-02-25  Eric Blake  <eblake@redhat.com>
17781
17782         strstr: expand test coverage
17783         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
17784         compilation.
17785         * tests/test-memmem.c (main): Duplicate tests.
17786         * tests/test-strcasestr.c (main): Likewise.
17787         * tests/test-c-strcasestr.c (main): Likewise.
17788
17789 2011-02-25  Jim Meyering  <meyering@redhat.com>
17790
17791         maint.mk: detect missing-NL-at-EOF, too
17792         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
17793         it also detects when a file lacks a newline at EOF.
17794         (require_exactly_one_NL_at_EOF_): Renamed from
17795         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
17796         since people may well have .x-sc_... file names tied to the
17797         existing name.  Suggested by Eric Blake.
17798
17799 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17800
17801         dirname: move m4/dos.m4 functionality into lib/dosname.h
17802
17803         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
17804         extracts symbols from it, puts them into config.h; but it's much
17805         easier to use the symbols directly.  filename.h already does this,
17806         but it disagrees with dos.m4 in some respects.  This patch
17807         introduces a different include file dosname.h that packages up
17808         dos.m4, and then later we can work on merging filename.h and
17809         dosname.h.  Applications that need only the easy-to-configure
17810         symbols should consider including dosname.h rather than dirname.h.
17811         * NEWS: Mention incompatible changes.
17812         * m4/dos.m4: Remove.
17813         * lib/dosname.h, modules/dosname: New files.
17814         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
17815         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
17816         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
17817         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
17818         Include dosname.h, not dirname.h.
17819         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
17820         Include dosname.h, for definitions of symbols like ISSLASH
17821         that used to be in config.h.
17822         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
17823         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17824         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17825         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17826         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
17827         * modules/rmdir (Files): Likewise.
17828         * modules/stat (Files): Likewise.
17829         * modules/unlink (Files): Likewise.
17830         * modules/dirname-lgpl (Depends-on): Add dosname.
17831         * modules/lstat (Depends-on): Likewise.
17832         * modules/openat (Depends-on): Likewise.
17833         * modules/rmdir (Depends-on): Likewise.
17834         * modules/savewd (Depends-on): Likewise.
17835         * modules/stat (Depends-on): Likewise.
17836         * modules/unlink (Depends-on): Likewise.
17837         * modules/openat (Depends-on): Remove dirname-lgpl.
17838         * modules/savewd (Depends-on): Likewise.
17839         * tests/test-dirname.c: Do not use removed symbols like
17840         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
17841         the remaining symbols, e.g., ISSLASH ('\\').
17842
17843 2011-02-25  Eric Blake  <eblake@redhat.com>
17844
17845         strstr: revert patches that introduced bug and pessimization
17846         * lib/str-two-way.h: Add another reference.
17847         (two_way_short_needle, two_way_long_needle): Revert changes from
17848         2011-02-24; they pessimize search speed.
17849         (critical_factorization): Partially revert changes from
17850         2010-06-22; they violate the requirement that the left half of the
17851         needle be smaller than the period of the needle.
17852
17853 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17854
17855         filenamecat: remove unnecessary dependency on dirname-lgpl
17856         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
17857         is no direct dependency, just an indirect one via filenamecat-lgpl.
17858
17859         remove: remove unnecessary use of m4/dos.m4
17860         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
17861         * modules/remove (FILES): Remove m4/dos.m4.
17862
17863         * lib/openat-proc.c: Don't include dirname.h; not needed.
17864
17865         backupfile: remove unnecessary use of m4/dos.m4
17866         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
17867         of its symbols are used by the backupfile code.  backupfile.c does
17868         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
17869         for the rare case of programs that want all their backup file
17870         names to live within 8+3 limits, and dos.m4 doesn't address that.
17871         * modules/backupfile (Files): Remove m4/dos.m4.
17872
17873 2011-02-24  Jim Meyering  <meyering@redhat.com>
17874
17875         strstr: fix a bug whereby strstr would mistakenly return NULL
17876         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
17877         in period calculation.
17878         (two_way_long_needle): Likewise.
17879         The original problem was reported by Mike Stump in
17880         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
17881         Ralf Wildenhues provided the short needle and haystack.
17882         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
17883         Add a more involved test to trigger the bug in two_way_long_needle.
17884
17885 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17886
17887         gnulib-tool: remove use of bold display in help screen
17888         * gnulib-tool (func_usage): Do not use bold display anymore in the
17889         help screen.  That was just meant to be a temporary emphasis for a
17890         backward-incompatible change.
17891
17892 2011-02-23  Bruno Haible  <bruno@clisp.org>
17893
17894         Fix misindentation of preprocessor directives.
17895         * lib/argp-namefrob.h: Reindent preprocessor directives.
17896         * lib/getopt_int.h (struct _getopt_data): Likewise.
17897         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
17898         * lib/vasnprintf.c (decode_long_double): Likewise.
17899         * tests/test-argmatch.c: Insert blank lines, for clarity.
17900         * tests/test-exclude.c: Likewise.
17901
17902 2011-02-22  Bruno Haible  <bruno@clisp.org>
17903
17904         ioctl: Fix for MacOS X in 64-bit mode.
17905         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
17906         value.
17907         Suggested by Eric Blake.
17908         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
17909
17910 2011-02-22  Jim Meyering  <meyering@redhat.com>
17911
17912         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
17913         * Makefile (sc_cpp_indent_check): Don't limit the check to files
17914         in lib/.
17915
17916 2011-02-22  Eric Blake  <eblake@redhat.com>
17917
17918         maint: avoid any CDPATH issue
17919         * Makefile (sc_cpp_indent_check): Anchor cd argument.
17920
17921         maint: adjust cpp indentation for my modules, as well
17922         * Makefile (sc_cpp_indent_check): Add my name.
17923         * lib/fbufmode.c: Filter through cppi.
17924         * lib/fpurge.c: Likewise.
17925         * lib/freadable.c: Likewise.
17926         * lib/freading.c: Likewise.
17927         * lib/fwritable.c: Likewise.
17928         * lib/fwriting.c: Likewise.
17929         * lib/sigaction.c: Likewise.
17930
17931 2011-02-22  Jim Meyering  <meyering@redhat.com>
17932
17933         maint: adjust cpp indentation to reflect nesting depth
17934         I.e., in a block of code that begins with an unnested "#if",
17935         put one space between the "#" in column 1 and following token.
17936         For example,
17937         -#include <sys/vfs.h>
17938         +# include <sys/vfs.h>
17939         Do this only in .c files that are part of a module I maintain.
17940         * lib/linkat.c: Filter through cppi.
17941         * lib/nanosleep.c: Likewise.
17942         * lib/openat.c: Likewise.
17943         * lib/openat-die.c: Likewise.
17944         * lib/dup3.c: Likewise.
17945         * lib/fchownat.c: Likewise.
17946         * lib/flock.c: Likewise.
17947         * lib/fsync.c: Likewise.
17948         * lib/fts.c: Likewise.
17949         * lib/getpass.c: Likewise.
17950         * lib/gettimeofday.c: Likewise.
17951         * lib/userspec.c: Likewise.
17952         * Makefile (sc_cpp_indent_check): New rule, to check this.
17953
17954 2011-02-22  Bruno Haible  <bruno@clisp.org>
17955
17956         New module 'wctomb'.
17957         * lib/stdlib.in.h (wctomb): New declaration.
17958         * lib/wctomb.c: New file.
17959         * lib/wctomb-impl.h: New file.
17960         * m4/wctomb.m4: New file.
17961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17962         REPLACE_WCTOMB.
17963         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17964         REPLACE_WCTOMB.
17965         * modules/wctomb: New file.
17966         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17967         * doc/posix-functions/wctomb.texi: Mention the new module.
17968         * modules/wctob (Depends-on): Add wctomb.
17969
17970 2011-02-22  Bruno Haible  <bruno@clisp.org>
17971
17972         New module 'mbtowc'.
17973         * lib/stdlib.in.h (mbtowc): New declaration.
17974         * lib/mbtowc.c: New file.
17975         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17976         * m4/mbtowc.m4: New file.
17977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17978         REPLACE_MBTOWC.
17979         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17980         REPLACE_MBTOWC.
17981         * modules/mbtowc: New file.
17982         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17983         * doc/posix-functions/mbtowc.texi: Mention the new module.
17984         * modules/btowc (Depends-on): Add mbtowc.
17985
17986 2011-02-22  Bruno Haible  <bruno@clisp.org>
17987
17988         wcrtomb: Add more tests for native Windows platforms.
17989         * tests/test-wcrtomb-w32-1.sh: New file.
17990         * tests/test-wcrtomb-w32-2.sh: New file.
17991         * tests/test-wcrtomb-w32-3.sh: New file.
17992         * tests/test-wcrtomb-w32-4.sh: New file.
17993         * tests/test-wcrtomb-w32-5.sh: New file.
17994         * tests/test-wcrtomb-w32.c: New file.
17995         * modules/wcrtomb-tests (Files): Add them.
17996         (Makefile.am): Arrange to run these tests.
17997         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17998         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17999
18000 2011-02-20  Bruno Haible  <bruno@clisp.org>
18001
18002         wcrtomb: Enhance test.
18003         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18004
18005 2011-02-20  Bruno Haible  <bruno@clisp.org>
18006
18007         mbrtowc: Tiny optimization.
18008         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18009
18010 2011-02-20  Jim Meyering  <meyering@redhat.com>
18011
18012         test-exclude.c: remove unmatched #endif
18013         * tests/test-exclude.c: Remove stray #endif, left over from
18014         the change of a week ago.
18015
18016 2011-02-19  Jim Meyering  <meyering@redhat.com>
18017
18018         git-version-gen: skip "-dirty" check when appropriate
18019         * build-aux/git-version-gen: Don't run any git commands when the
18020         version string comes from .tarball-version.  Prior to this, we
18021         would run git update-index --refresh even from a just-unpacked
18022         tarball directory, and that could affect a .git/ directory in a
18023         parent of the build directory.  Reported by Mike Frysinger.
18024
18025 2011-02-19  Bruno Haible  <bruno@clisp.org>
18026
18027         unictype/property-byname: Reduce the size of the 'data' segment.
18028         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18029
18030 2011-02-19  Bruno Haible  <bruno@clisp.org>
18031
18032         unictype/scripts: Reduce the size of the 'data' segment.
18033         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18034         '%pic'.
18035         * lib/unictype/scripts_byname.gperf: Regenerated.
18036
18037 2011-02-19  Bruno Haible  <bruno@clisp.org>
18038
18039         stdint: Update documentation.
18040         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18041
18042 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18043
18044         stdint: omit redundant check for wchar.h
18045         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18046         always tests whether wchar.h exists, so remove the now-redundant test.
18047
18048 2011-02-18  Bruno Haible  <bruno@clisp.org>
18049
18050         stdint: Cut dependency to module 'wchar'.
18051         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18052         include the necessary prerequisites.
18053         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18054         * modules/stdint (Depends-on): Remove wchar.
18055         (Makefile.am): Substitute HAVE_WCHAR_H.
18056         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18057
18058 2011-02-18  Eric Blake  <eblake@redhat.com>
18059
18060         longlong: skip, rather than fail, on cross-compilation
18061         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18062         when cross-compiling; regression from 2011-02-16.
18063
18064 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18065
18066         * NEWS: Mention 2011-02-08 change to stdlib.
18067
18068 2011-02-17  Bruno Haible  <bruno@clisp.org>
18069
18070         getloadavg: Add comments about platforms.
18071         * m4/getloadavg.m4: Add comment.
18072         * lib/getloadavg.c: Likewise.
18073
18074 2011-02-17  Bruno Haible  <bruno@clisp.org>
18075
18076         getloadavg: Fix link error on Solaris 2.6.
18077         * modules/getloadavg (Link): New section.
18078         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18079         linking test-getloadavg.
18080         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18081         getloadavg.
18082
18083 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18084
18085         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18086         It was 'int', but this doesn't match the IRIX 6.5 manual.
18087         Suggested by Bruno Haible in
18088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18089
18090 2011-02-17  Bruno Haible  <bruno@clisp.org>
18091
18092         havelib: Fix comments.
18093         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18094         change.
18095
18096 2011-02-17  Bruno Haible  <bruno@clisp.org>
18097
18098         havelib: Update config.rpath.
18099         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18100
18101 2011-02-17  Bruno Haible  <bruno@clisp.org>
18102
18103         getloadavg test: Add some plausibility checks.
18104         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18105         is improbable.
18106
18107 2011-02-16  Eric Blake  <eblake@redhat.com>
18108
18109         maintainer-makefile: make syntax-check a no-op from tarballs
18110         * top/maint.mk (no-vc-detected): New rule.
18111         (local-checks-available): Use it to avoid hanging if someone tries
18112         'make syntax-check' from a tarball.  Also append to any non-syntax
18113         checks already defined in cfg.mk.
18114
18115 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18116
18117         longlong: tune, particularly for common case of c99
18118
18119         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18120         or running anything if c99, or if unsigned long long int does not
18121         work.  In either case, we know the answer without further tests.
18122         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18123         it at most once, and use its results for both long long int and
18124         unsigned long long int.  This is more likely to be efficient in
18125         the common case where the program wants to check for both long
18126         long int and unsigned long long int.
18127         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18128         since the answer is already known.
18129
18130 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18131
18132         getloadavg: set errno
18133         * lib/getloadavg.c: Set errno when returning -1.  If no other
18134         error number looks appropriate, set it to ENOSYS if the getloadavg
18135         looks like it can't possibly ever work, ENOTSUP otherwise.
18136         Suggested by Bruno Haible in
18137         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18138
18139         getloadavg: trim unused parts and speed up 'configure'
18140         * NEWS: Document this.
18141         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18142         always compiled if getloadavg is absent.
18143         Move test code to ...
18144         * tests/test-getloadavg.c: New file, containing previous
18145         contents of test from lib/getloadavg.c.  It also contains
18146         suggestions by Bruno Haible in
18147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18148         * modules/getloadavg-tests: New file.
18149         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18150         Do tests in the same order as they're needed for getloadavg.c.
18151         Omit setgid-related tests that generate symbols KMEM_GROUP,
18152         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18153         Do only the tests that are needed to see whether the system has
18154         getloadavg, moving the other tests into ...
18155         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18156         NLIST_NAME_UNION; nobody should be using it.  Do not define
18157         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18158         relevant, as the user of this module shouldn't care how getloadavg
18159         is implemented.
18160
18161         getloadavg: omit unused var
18162         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18163
18164 2011-02-15  Jim Meyering  <meyering@redhat.com>
18165
18166         doc: update users.txt
18167         * users.txt: Update iwhd's URL.
18168
18169 2011-02-13  Bruno Haible  <bruno@clisp.org>
18170
18171         Consistent macro naming for macros that use GCC __attribute__.
18172         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18173         _ATTRIBUTE_NONNULL_.
18174         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18175         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18176         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18177         ATTRIBUTE_DEPRECATED.
18178         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18179         ATTRIBUTE_NORETURN.
18180         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18181         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18182         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18183         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18184         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18185         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18186         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18187         ATTRIBUTE_SENTINEL.
18188         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18189         ATTRIBUTE_RETURN_CHECK.
18190         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18191         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18192         ATTRIBUTE_NORETURN.
18193         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18194         Reported by Paul Eggert.
18195
18196 2011-02-13  Bruno Haible  <bruno@clisp.org>
18197
18198         Don't interfere with a program's definition of __attribute__.
18199         * lib/argp.h (__attribute__): Remove definition.
18200         (_GL_ATTRIBUTE_FORMAT): New macro.
18201         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18202         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18203         (_GL_ATTRIBUTE_FORMAT): New macro.
18204         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18205         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18206         GCC 3 or newer.
18207         * lib/error.h (__attribute__): Remove definition.
18208         (_GL_ATTRIBUTE_FORMAT): New macro.
18209         (error, error_at_line): Use it.
18210         * lib/hash.h (__attribute__): Remove definition.
18211         (ATTRIBUTE_WUR): Update definition. Define always.
18212         * lib/openat.h (__attribute__): Remove definition.
18213         (ATTRIBUTE_NORETURN): Update definition. Define always.
18214         * lib/sigpipe-die.h (__attribute__): Remove definition.
18215         (ATTRIBUTE_NORETURN): Update definition. Define always.
18216         * lib/vasnprintf.h (__attribute__): Remove definition.
18217         (_GL_ATTRIBUTE_FORMAT): New macro.
18218         (asnprintf, vasnprintf): Use it.
18219         * lib/xalloc.h (__attribute__): Remove definition.
18220         (ATTRIBUTE_NORETURN): Update definition. Define always.
18221         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18222         * lib/xmemdup0.h (__attribute__): Remove definition.
18223         (ATTRIBUTE_NORETURN): Update definition. Define always.
18224         * lib/xprintf.h (__attribute__): Remove definition.
18225         (_GL_ATTRIBUTE_FORMAT): New macro.
18226         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18227         * lib/xstrtol.h (__attribute__): Remove definition.
18228         (ATTRIBUTE_NORETURN): Update definition. Define always.
18229         * lib/xvasprintf.h (__attribute__): Remove definition.
18230         (_GL_ATTRIBUTE_FORMAT): New macro.
18231         (xasprintf, xvasprintf): Use it.
18232         * tests/test-argmatch.c (__attribute__): Remove definition.
18233         (ATTRIBUTE_NORETURN): Update definition. Define always.
18234         * tests/test-exclude.c (__attribute__): Remove definition.
18235         (ATTRIBUTE_NORETURN): Update definition. Define always.
18236         Reported by Paul Eggert.
18237
18238 2011-02-13  Bruno Haible  <bruno@clisp.org>
18239
18240         mbrtowc: Add more tests for native Windows platforms.
18241         * tests/test-mbrtowc-w32-1.sh: New file.
18242         * tests/test-mbrtowc-w32-2.sh: New file.
18243         * tests/test-mbrtowc-w32-3.sh: New file.
18244         * tests/test-mbrtowc-w32-4.sh: New file.
18245         * tests/test-mbrtowc-w32-5.sh: New file.
18246         * tests/test-mbrtowc-w32.c: New file.
18247         * modules/mbrtowc-tests (Files): Add them.
18248         (Makefile.am): Arrange to run these tests.
18249         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18250         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18251
18252 2011-02-13  Bruno Haible  <bruno@clisp.org>
18253
18254         mbrtowc: Work around native Windows bug.
18255         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18256         guess when no suitable locale for testing was found.
18257         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18258
18259 2011-02-13  Bruno Haible  <bruno@clisp.org>
18260
18261         mbsinit: Work around mingw bug.
18262         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18263         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18264         Windows.
18265         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18266
18267 2011-02-13  Bruno Haible  <bruno@clisp.org>
18268
18269         mbsinit: Don't crash for a NULL argument.
18270         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18271         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18272
18273 2011-02-13  Bruno Haible  <bruno@clisp.org>
18274
18275         Don't interfere with a program's definition of __attribute__.
18276         * lib/stdio.in.h (__attribute__): Remove definition.
18277         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18278         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18279         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18280         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18281         * lib/string.in.h (__attribute__): Remove definition.
18282         Reported by Paul Eggert.
18283
18284 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18285
18286         stdlib: don't get in the way of non-GCC __attribute__
18287         See thread starting at
18288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18289         Revert previous stdlib change, installing the following instead:
18290         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18291         to get in the way of a non-GCC compiler that supports __attribute__.
18292         (_GL_ATTRIBUTE_RETURN): New macro.
18293         (_Exit): Use it instead of __attribute__.
18294
18295 2011-02-12  Bruno Haible  <bruno@clisp.org>
18296
18297         quotearg test: Avoid test failure on mingw.
18298         * tests/test-quotearg.sh: Convert the locale identifier from native
18299         Windows syntax to Unix syntax.
18300
18301 2011-02-12  Bruno Haible  <bruno@clisp.org>
18302
18303         setlocale: Prefer gnulib's override over libintl's override.
18304         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18305         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18306         GNULIB_defined_setlocale is set.
18307
18308 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18309
18310         stdlib: support non-GCC __attribute__
18311
18312         Fix a serious and tricky problem encountered when attempting to
18313         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18314         5.5, but it crashed due to memory corruption on Solaris 10 with
18315         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18316         bits that are otherwise zero.  This tagging is optional inside
18317         Emacs but is preferred and is used when __attribute__ ((__aligned
18318         (8))) works, as it does with both recent-enough GCC and with Sun C
18319         5.11.  However, Sun C 5.11 is not GCC and does not #define
18320         __GNUC__ and __GNUC_MINOR__.
18321
18322         When I added the getloadavg module to Emacs, it brought in
18323         stdlib.in.h, which contained this fragment:
18324
18325            #ifndef __attribute__
18326            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18327            #  define __attribute__(Spec)   /* empty */
18328            # endif
18329            #endif
18330
18331         When files that include <stdlib.h> were compiled with Sun C 5.11,
18332         the above code disabled __attribute__ ((__aligned (8))), which
18333         caused variables to not be properly aligned, which eventually led
18334         to the pointer corruption mentioned above.  (This was a bit hard
18335         to diagnose, unfortunately.)
18336
18337         Several "#define __attribute__(X) /* empty */" code snippets need
18338         to be eradicated from Gnulib to work with non-GCC compilers that
18339         support __attribute__.  The Autoconf way to do this is to test for
18340         each kind of attribute that we want support for, and selectively
18341         enable that in source code.
18342
18343         Fix this problem just for stdlib.h, by adding a test for the
18344         __noreturn__ attribute, and change stdlib.in.h to use that test
18345         when needed.  This technique can be easily generalized to the
18346         other *.in.h files and attributes, and a similar technique can be
18347         used for *.h and *.c files.  This patch is enough to solve the
18348         problem for Emacs + getloadavg, and I thought I'd publish it for
18349         feedback before undertaking further, similar fixes in other
18350         modules.
18351
18352         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18353         because it's not needed for stdlib.h.  It merely substitutes the
18354         value directly into stdlib.h.  We may well need to #define it, or
18355         similar symbols, for other modules, but it's nice to also have an
18356         option to not #define it for applications like Emacs that do not
18357         need it.
18358
18359         * lib/stdlib.in.h (__attribute__): Do not #define.
18360         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18361         be defined only if the _Exit module is also used.
18362         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18364         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18365         platforms.
18366         * modules/_Exit (Files): Add m4/attribute.m4.
18367         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18368         * m4/attribute.m4: New file.
18369
18370 2011-02-12  Bruno Haible  <bruno@clisp.org>
18371
18372         wcsrtombs: Work around bug on native Windows.
18373         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18374         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18375         instead of len.
18376         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18377
18378 2011-02-12  Bruno Haible  <bruno@clisp.org>
18379
18380         mbsrtowcs: Work around bug on native Windows.
18381         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18382         against mingw bug.
18383         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18384
18385 2011-02-12  Bruno Haible  <bruno@clisp.org>
18386
18387         Avoid setlocale bugs in tests.
18388         * modules/btowc (Dependencies): Add setlocale.
18389         * modules/c-strcase (Dependencies): Likewise.
18390         * modules/mbmemcasecmp (Dependencies): Likewise.
18391         * modules/mbmemcasecoll (Dependencies): Likewise.
18392         * modules/mbrtowc (Dependencies): Likewise.
18393         * modules/mbscasecmp (Dependencies): Likewise.
18394         * modules/mbscasestr (Dependencies): Likewise.
18395         * modules/mbschr (Dependencies): Likewise.
18396         * modules/mbscspn (Dependencies): Likewise.
18397         * modules/mbsinit (Dependencies): Likewise.
18398         * modules/mbsncasecmp (Dependencies): Likewise.
18399         * modules/mbsnrtowcs (Dependencies): Likewise.
18400         * modules/mbspbrk (Dependencies): Likewise.
18401         * modules/mbspcasecmp (Dependencies): Likewise.
18402         * modules/mbsrchr (Dependencies): Likewise.
18403         * modules/mbsrtowcs (Dependencies): Likewise.
18404         * modules/mbsspn (Dependencies): Likewise.
18405         * modules/mbsstr (Dependencies): Likewise.
18406         * modules/nl_langinfo (Dependencies): Likewise.
18407         * modules/quotearg (Dependencies): Likewise.
18408         * modules/unicase/locale-language (Dependencies): Likewise.
18409         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18410         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18411         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18412         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18413         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18414         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18415         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18416         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18417         * modules/vasnprintf-posix (Dependencies): Likewise.
18418         * modules/wcrtomb (Dependencies): Likewise.
18419         * modules/wcsnrtombs (Dependencies): Likewise.
18420         * modules/wcsrtombs (Dependencies): Likewise.
18421
18422 2011-02-12  Bruno Haible  <bruno@clisp.org>
18423
18424         setlocale: Workaround native Windows bug.
18425         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18426         succeeds but sets LC_CTYPE to "C", report a failure.
18427         * tests/test-setlocale2.sh: New file.
18428         * tests/test-setlocale2.c: New file.
18429         * modules/setlocale-tests (Files): Add the new files.
18430         (Makefile.am): Enable test-setlocale2.sh test.
18431         * doc/posix-functions/setlocale.texi: Mention workaround.
18432
18433 2011-02-11  Bruno Haible  <bruno@clisp.org>
18434
18435         Tests for module 'setlocale'.
18436         * modules/setlocale-tests: New file.
18437         * tests/test-setlocale1.sh: New file.
18438         * tests/test-setlocale1.c: New file.
18439
18440         New module 'setlocale'.
18441         * lib/locale.in.h (setlocale): New declaration.
18442         * lib/setlocale.c: New file, based on
18443         gettext/gettext-runtime/intl/setlocale.c.
18444         * m4/setlocale.m4: New file.
18445         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18446         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18447         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18448         REPLACE_SETLOCALE.
18449         * modules/setlocale: New file.
18450         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18451         * doc/posix-functions/setlocale.texi: Mention the new module.
18452
18453 2011-02-11  Bruno Haible  <bruno@clisp.org>
18454
18455         Prepare for locale dependent tests on mingw.
18456         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18457         because it has the wrong locale encoding.
18458         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18459         French_France.1252 instead of "fr".
18460         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18461         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18462         because it has the wrong locale encoding.
18463         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18464         native Windows, try Turkish_Turkey.65001.
18465         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18466         Chinese_China.54936.
18467
18468         Prepare for locale dependent tests on mingw.
18469         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18470         differently.
18471         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18472         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18473         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18474         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18475
18476 2011-02-11  Eric Blake  <eblake@redhat.com>
18477
18478         strptime: avoid compiler warnings
18479         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18480         compiler warnings about dead code.
18481         Reported by Daniel P. Berrange.
18482
18483 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18484
18485         doc: update users.txt
18486         * users.txt: Add rcs.
18487
18488 2011-02-10  John W. Eaton  <jwe@gnu.org>
18489
18490         doc: update users.txt
18491         * users.txt: Add octave.
18492
18493 2011-02-10  Jim Meyering  <meyering@redhat.com>
18494
18495         doc: update users.txt
18496         * users.txt: Add iwhd.
18497
18498 2011-02-09  Bruno Haible  <bruno@clisp.org>
18499
18500         gnulib-tool: Make copyright notice adjustment more robust.
18501         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18502         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18503         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18504         License".
18505         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18506
18507 2011-02-06  Bruno Haible  <bruno@clisp.org>
18508
18509         New module 'towctrans'.
18510         * modules/towctrans: New file.
18511         * lib/wctype.in.h (towctrans): New declaration.
18512         * lib/towctrans.c: New file.
18513         * lib/towctrans-impl.h: New file.
18514         * m4/towctrans.m4: New file.
18515         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18516         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18517         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18518         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18519         * doc/posix-functions/towctrans.texi: Mention the new module.
18520
18521 2011-02-06  Bruno Haible  <bruno@clisp.org>
18522
18523         New module 'wctrans'.
18524         * modules/wctrans: New file.
18525         * lib/wctype.in.h (wctrans): New declaration.
18526         * lib/wctrans.c: New file.
18527         * lib/wctrans-impl.h: New file.
18528         * m4/wctrans.m4: New file.
18529         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18530         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18531         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18532         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18533         * doc/posix-functions/wctrans.texi: Mention the new module.
18534
18535 2011-02-06  Bruno Haible  <bruno@clisp.org>
18536
18537         New module 'iswctype'.
18538         * modules/iswctype: New file.
18539         * lib/wctype.in.h (iswctype): New declaration.
18540         * lib/iswctype.c: New file.
18541         * lib/iswctype-impl.h: New file.
18542         * m4/iswctype.m4: New file.
18543         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18544         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18545         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18546         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18547         * doc/posix-functions/iswctype.texi: Mention the new module and the
18548         HP-UX 11.00 problem.
18549
18550 2011-02-06  Bruno Haible  <bruno@clisp.org>
18551
18552         New module 'wctype'.
18553         * modules/wctype: Change to represent the wctype() substitute.
18554         * lib/wctype.in.h (wctype): New declaration.
18555         * lib/wctype.c: New file.
18556         * lib/wctype-impl.h: New file.
18557         * m4/wctype.m4: New file.
18558         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18559         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18560         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18561         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18562         * doc/posix-functions/wctype.texi: Mention the new module and the
18563         HP-UX 11.00 problem.
18564
18565 2011-02-06  Bruno Haible  <bruno@clisp.org>
18566
18567         wctype-h: Ensure wctype_t and wctrans_t are defined.
18568         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18569         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18570         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18571         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18572         HAVE_WCTRANS_T.
18573         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18574
18575 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18576
18577         flock: fix license typo
18578
18579         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18580         omitted.
18581
18582 2011-02-08  Bruno Haible  <bruno@clisp.org>
18583
18584         Split large sed scripts, for HP-UX sed.
18585         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18586         to avoid HP-UX limit of 99 commands, in the near future.
18587         * modules/stdlib (Makefile.am): Likewise.
18588         * modules/unistd (Makefile.am): Likewise.
18589         * modules/wchar (Makefile.am): Likewise.
18590         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18591         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18592         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18593
18594 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18595             Bruno Haible  <bruno@clisp.org>
18596
18597         stdlib: improve random_r modularization
18598         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
18599         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
18600         you also need the random_r module to get this material right.
18601         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
18602         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
18603         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
18604
18605 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18606
18607         stdlib: don't depend on stdint
18608         * lib/stdlib.in.h: Don't include <stdint.h> merely because
18609         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
18610         be independent of whether stdint.h is needed.
18611         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
18612         here, instead of ...
18613         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
18614         struct random_data should be using the random_r module, not just
18615         the stdlib module (which wouldn't make sense: what package needs
18616         just struct random_data without also needing random_r?).
18617         * modules/stdlib (Depends-on): Remove stdint.
18618
18619         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
18620         See the thread rooted at
18621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
18622         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
18623         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
18624         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
18625         __VMS)); previously it was always included (via fcntl--.h).
18626         (getloadavg): Do not use c_strtod.  Instead, approximate it by
18627         hand; this is good enough for load averages.  Also, do not use
18628         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
18629         flags directly if available and don't bother otherwise.  (Packages
18630         that need the extra reliability should use the modules that define
18631         these flags on older platforms that lack them.)
18632         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
18633         fcntl-safer.
18634
18635 2011-02-08  Jim Meyering  <meyering@redhat.com>
18636
18637         di-set.h, ino-map.h: add multiple-inclusion guard
18638         Technically, the guard is required only for ino-map.h, due to its
18639         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
18640         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
18641         * lib/ino-map.h: Likewise.
18642
18643 2011-02-06  Bruno Haible  <bruno@clisp.org>
18644
18645         iswblank: Ensure declaration on glibc systems.
18646         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
18647         * modules/iswblank (Dependencies): Add 'extensions'.
18648         * doc/posix-functions/iswblank.texi: Document the glibc problem.
18649
18650 2011-02-06  Bruno Haible  <bruno@clisp.org>
18651
18652         New module 'iswblank'.
18653         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
18654         * modules/iswblank: New file.
18655         * modules/wctype-h (Files): Remove lib/iswblank.c.
18656         (Makefile.am): Substitute GNULIB_ISWBLANK.
18657         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
18658         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
18659         (gl_WCTYPE_H_DEFAULTS): New macro.
18660         (gl_WCTYPE_H): Require it. Remove iswblank related code.
18661         * modules/iswblank-tests: New file.
18662         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
18663         * tests/test-wctype-h.c (main): Remove iswblank tests.
18664         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
18665         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
18666         of 'wctype-h'.
18667         * NEWS: Mention the change.
18668         * modules/mbchar (Depends-on): Add iswblank.
18669
18670 2011-02-08  Bruno Haible  <bruno@clisp.org>
18671
18672         di-set tests: Refactor.
18673         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
18674         unnecessary includes.
18675         (ASSERT): Remove macro.
18676         (main): Make C90 compliant by avoiding variable declaration after
18677         statement.
18678         * modules/di-set-tests (Files): Add tests/macros.h.
18679
18680 2011-02-08  Bruno Haible  <bruno@clisp.org>
18681
18682         ino-map tests: Refactor.
18683         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
18684         unnecessary includes.
18685         (ASSERT): Remove macro.
18686         (main): Make C90 compliant by avoiding variable declaration after
18687         statement.
18688         * modules/ino-map-tests (Files): Add tests/macros.h.
18689
18690 2011-02-08  Jim Meyering  <meyering@redhat.com>
18691
18692         di-set: add "const" to a cast
18693         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
18694         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
18695
18696 2011-02-06  Bruno Haible  <bruno@clisp.org>
18697
18698         Rename module 'wctype' to 'wctype-h'.
18699         * modules/wctype-h: Renamed from modules/wctype.
18700         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
18701         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
18702         (Files, Depends-on, Makefile.am): Update.
18703         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
18704         (Files, Makefile.am): Update.
18705         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
18706         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
18707         * doc/posix-headers/wctype.texi: Update.
18708         * doc/posix-functions/iswalnum.texi: Update.
18709         * doc/posix-functions/iswalpha.texi: Update.
18710         * doc/posix-functions/iswblank.texi: Update.
18711         * doc/posix-functions/iswcntrl.texi: Update.
18712         * doc/posix-functions/iswdigit.texi: Update.
18713         * doc/posix-functions/iswgraph.texi: Update.
18714         * doc/posix-functions/iswlower.texi: Update.
18715         * doc/posix-functions/iswprint.texi: Update.
18716         * doc/posix-functions/iswpunct.texi: Update.
18717         * doc/posix-functions/iswspace.texi: Update.
18718         * doc/posix-functions/iswupper.texi: Update.
18719         * doc/posix-functions/iswxdigit.texi: Update.
18720         * doc/posix-functions/towlower.texi: Update.
18721         * doc/posix-functions/towupper.texi: Update.
18722         * NEWS: Mention the change.
18723         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
18724         * modules/mbchar (Dependencies): Likewise.
18725         * modules/mbswidth (Dependencies): Likewise.
18726         * modules/quotearg (Dependencies): Likewise.
18727         * modules/regex (Dependencies): Likewise.
18728         * modules/wcscasecmp (Dependencies): Likewise.
18729         * modules/wcsncasecmp (Dependencies): Likewise.
18730         * modules/wcwidth (Dependencies): Likewise.
18731
18732 2011-02-06  Bruno Haible  <bruno@clisp.org>
18733
18734         New module 'wcswidth'.
18735         * modules/wcswidth: New file.
18736         * lib/wchar.in.h (wcswidth): New declaration.
18737         * lib/wcswidth.c: New file.
18738         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18739         * m4/wcswidth.m4: New file.
18740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18742         REPLACE_WCSWIDTH.
18743         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
18744         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
18745         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
18746         * doc/posix-functions/wcswidth.texi: Mention the new module.
18747
18748 2011-02-06  Bruno Haible  <bruno@clisp.org>
18749
18750         New module 'wcstok'.
18751         * modules/wcstok: New file.
18752         * lib/wchar.in.h (wcstok): New declaration.
18753         * lib/wcstok.c: New file.
18754         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
18755         * m4/wcstok.m4: New file.
18756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
18757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
18758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
18759         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
18760         * doc/posix-functions/wcstok.texi: Mention the new module.
18761
18762 2011-02-06  Bruno Haible  <bruno@clisp.org>
18763
18764         New module 'wcsstr'.
18765         * modules/wcsstr: New file.
18766         * lib/wchar.in.h (wcsstr): New declaration.
18767         * lib/wcsstr.c: New file.
18768         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
18769         * m4/wcsstr.m4: New file.
18770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
18771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
18772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
18773         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
18774         * doc/posix-functions/wcsstr.texi: Mention the new module.
18775
18776 2011-02-06  Bruno Haible  <bruno@clisp.org>
18777
18778         New module 'wcspbrk'.
18779         * modules/wcspbrk: New file.
18780         * lib/wchar.in.h (wcspbrk): New declaration.
18781         * lib/wcspbrk.c: New file.
18782         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
18783         * m4/wcspbrk.m4: New file.
18784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
18785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
18786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
18787         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
18788         * doc/posix-functions/wcspbrk.texi: Mention the new module.
18789
18790 2011-02-06  Bruno Haible  <bruno@clisp.org>
18791
18792         New module 'wcsspn'.
18793         * modules/wcsspn: New file.
18794         * lib/wchar.in.h (wcsspn): New declaration.
18795         * lib/wcsspn.c: New file.
18796         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
18797         * m4/wcsspn.m4: New file.
18798         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
18799         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
18800         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
18801         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
18802         * doc/posix-functions/wcsspn.texi: Mention the new module.
18803
18804 2011-02-06  Bruno Haible  <bruno@clisp.org>
18805
18806         New module 'wcscspn'.
18807         * modules/wcscspn: New file.
18808         * lib/wchar.in.h (wcscspn): New declaration.
18809         * lib/wcscspn.c: New file.
18810         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
18811         * m4/wcscspn.m4: New file.
18812         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
18813         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
18814         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
18815         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
18816         * doc/posix-functions/wcscspn.texi: Mention the new module.
18817
18818 2011-02-06  Bruno Haible  <bruno@clisp.org>
18819
18820         New module 'wcsrchr'.
18821         * modules/wcsrchr: New file.
18822         * lib/wchar.in.h (wcsrchr): New declaration.
18823         * lib/wcsrchr.c: New file.
18824         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
18825         * m4/wcsrchr.m4: New file.
18826         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
18827         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
18828         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
18829         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
18830         * doc/posix-functions/wcsrchr.texi: Mention the new module.
18831
18832 2011-02-06  Bruno Haible  <bruno@clisp.org>
18833
18834         New module 'wcschr'.
18835         * modules/wcschr: New file.
18836         * lib/wchar.in.h (wcschr): New declaration.
18837         * lib/wcschr.c: New file.
18838         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
18839         * m4/wcschr.m4: New file.
18840         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
18841         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
18842         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
18843         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
18844         * doc/posix-functions/wcschr.texi: Mention the new module.
18845
18846 2011-02-06  Bruno Haible  <bruno@clisp.org>
18847
18848         New module 'wcsdup'.
18849         * modules/wcsdup: New file.
18850         * lib/wchar.in.h (wcsdup): New declaration.
18851         * lib/wcsdup.c: New file.
18852         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
18853         * m4/wcsdup.m4: New file.
18854         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
18855         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
18856         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
18857         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
18858         * doc/posix-functions/wcsdup.texi: Mention the new module.
18859
18860 2011-02-06  Bruno Haible  <bruno@clisp.org>
18861
18862         New module 'wcsxfrm'.
18863         * modules/wcsxfrm: New file.
18864         * lib/wchar.in.h (wcsxfrm): New declaration.
18865         * lib/wcsxfrm.c: New file.
18866         * lib/wcsxfrm-impl.h: New file.
18867         * m4/wcsxfrm.m4: New file.
18868         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
18869         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
18870         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
18871         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
18872         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
18873
18874 2011-02-06  Bruno Haible  <bruno@clisp.org>
18875
18876         New module 'wcscoll'.
18877         * modules/wcscoll: New file.
18878         * lib/wchar.in.h (wcscoll): New declaration.
18879         * lib/wcscoll.c: New file.
18880         * lib/wcscoll-impl.h: New file.
18881         * m4/wcscoll.m4: New file.
18882         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
18883         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
18884         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
18885         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
18886         * doc/posix-functions/wcscoll.texi: Mention the new module.
18887
18888 2011-02-06  Bruno Haible  <bruno@clisp.org>
18889
18890         New module 'wcsncasecmp'.
18891         * modules/wcsncasecmp: New file.
18892         * lib/wchar.in.h (wcsncasecmp): New declaration.
18893         * lib/wcsncasecmp.c: New file.
18894         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
18895         * m4/wcsncasecmp.m4: New file.
18896         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
18897         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
18898         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
18899         HAVE_WCSNCASECMP.
18900         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
18901         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
18902
18903 2011-02-06  Bruno Haible  <bruno@clisp.org>
18904
18905         New module 'wcscasecmp'.
18906         * modules/wcscasecmp: New file.
18907         * lib/wchar.in.h (wcscasecmp): New declaration.
18908         * lib/wcscasecmp.c: New file.
18909         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
18910         * m4/wcscasecmp.m4: New file.
18911         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
18912         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
18913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
18914         HAVE_WCSCASECMP.
18915         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
18916         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
18917
18918 2011-02-05  Bruno Haible  <bruno@clisp.org>
18919
18920         New module 'wcsncmp'.
18921         * modules/wcsncmp: New file.
18922         * lib/wchar.in.h (wcsncmp): New declaration.
18923         * lib/wcsncmp.c: New file.
18924         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
18925         * m4/wcsncmp.m4: New file.
18926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
18927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
18928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
18929         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
18930         * doc/posix-functions/wcsncmp.texi: Mention the new module.
18931
18932 2011-02-05  Bruno Haible  <bruno@clisp.org>
18933
18934         New module 'wcscmp'.
18935         * modules/wcscmp: New file.
18936         * lib/wchar.in.h (wcscmp): New declaration.
18937         * lib/wcscmp.c: New file.
18938         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
18939         * m4/wcscmp.m4: New file.
18940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
18941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
18942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
18943         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
18944         * doc/posix-functions/wcscmp.texi: Mention the new module.
18945
18946 2011-02-05  Bruno Haible  <bruno@clisp.org>
18947
18948         New module 'wcsncat'.
18949         * modules/wcsncat: New file.
18950         * lib/wchar.in.h (wcsncat): New declaration.
18951         * lib/wcsncat.c: New file.
18952         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18953         * m4/wcsncat.m4: New file.
18954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18956         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18957         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18958         * doc/posix-functions/wcsncat.texi: Mention the new module.
18959
18960 2011-02-05  Bruno Haible  <bruno@clisp.org>
18961
18962         New module 'wcscat'.
18963         * modules/wcscat: New file.
18964         * lib/wchar.in.h (wcscat): New declaration.
18965         * lib/wcscat.c: New file.
18966         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18967         * m4/wcscat.m4: New file.
18968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18970         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18971         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18972         * doc/posix-functions/wcscat.texi: Mention the new module.
18973
18974 2011-02-05  Bruno Haible  <bruno@clisp.org>
18975
18976         New module 'wcpncpy'.
18977         * modules/wcpncpy: New file.
18978         * lib/wchar.in.h (wcpncpy): New declaration.
18979         * lib/wcpncpy.c: New file.
18980         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18981         * m4/wcpncpy.m4: New file.
18982         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18983         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18984         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18985         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18986         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18987
18988 2011-02-05  Bruno Haible  <bruno@clisp.org>
18989
18990         New module 'wcsncpy'.
18991         * modules/wcsncpy: New file.
18992         * lib/wchar.in.h (wcsncpy): New declaration.
18993         * lib/wcsncpy.c: New file.
18994         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18995         * m4/wcsncpy.m4: New file.
18996         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18997         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18999         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19000         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19001
19002 2011-02-05  Bruno Haible  <bruno@clisp.org>
19003
19004         New module 'wcpcpy'.
19005         * modules/wcpcpy: New file.
19006         * lib/wchar.in.h (wcpcpy): New declaration.
19007         * lib/wcpcpy.c: New file.
19008         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19009         * m4/wcpcpy.m4: New file.
19010         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19011         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19012         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19013         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19014         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19015
19016 2011-02-05  Bruno Haible  <bruno@clisp.org>
19017
19018         New module 'wcscpy'.
19019         * modules/wcscpy: New file.
19020         * lib/wchar.in.h (wcscpy): New declaration.
19021         * lib/wcscpy.c: New file.
19022         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19023         * m4/wcscpy.m4: New file.
19024         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19025         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19026         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19027         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19028         * doc/posix-functions/wcscpy.texi: Mention the new module.
19029
19030 2011-02-05  Bruno Haible  <bruno@clisp.org>
19031
19032         New module 'wcsnlen'.
19033         * modules/wcsnlen: New file.
19034         * lib/wchar.in.h (wcsnlen): New declaration.
19035         * lib/wcsnlen.c: New file.
19036         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19037         * m4/wcsnlen.m4: New file.
19038         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19039         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19040         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19041         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19042         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19043
19044 2011-02-05  Bruno Haible  <bruno@clisp.org>
19045
19046         New module 'wcslen'.
19047         * modules/wcslen: New file.
19048         * lib/wchar.in.h (wcslen): New declaration.
19049         * lib/wcslen.c: New file.
19050         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19051         * m4/wcslen.m4: New file.
19052         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19053         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19054         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19055         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19056         * doc/posix-functions/wcslen.texi: Mention the new module.
19057
19058 2011-02-05  Bruno Haible  <bruno@clisp.org>
19059
19060         New module 'wmemset'.
19061         * modules/wmemset: New file.
19062         * lib/wchar.in.h (wmemset): New declaration.
19063         * lib/wmemset.c: New file.
19064         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19065         * m4/wmemset.m4: New file.
19066         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19067         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19068         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19069         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19070         * doc/posix-functions/wmemset.texi: Mention the new module.
19071
19072 2011-02-05  Bruno Haible  <bruno@clisp.org>
19073
19074         New module 'wmemmove'.
19075         * modules/wmemmove: New file.
19076         * lib/wchar.in.h (wmemmove): New declaration.
19077         * lib/wmemmove.c: New file.
19078         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19079         * m4/wmemmove.m4: New file.
19080         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19081         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19082         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19083         HAVE_WMEMMOVE.
19084         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19085         * doc/posix-functions/wmemmove.texi: Mention the new module.
19086
19087 2011-02-05  Bruno Haible  <bruno@clisp.org>
19088
19089         New module 'wmemcpy'.
19090         * modules/wmemcpy: New file.
19091         * lib/wchar.in.h (wmemcpy): New declaration.
19092         * lib/wmemcpy.c: New file.
19093         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19094         * m4/wmemcpy.m4: New file.
19095         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19096         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19097         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19098         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19099         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19100
19101 2011-02-05  Bruno Haible  <bruno@clisp.org>
19102
19103         New module 'wmemcmp'.
19104         * modules/wmemcmp: New file.
19105         * lib/wchar.in.h (wmemcmp): New declaration.
19106         * lib/wmemcmp.c: New file.
19107         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19108         * m4/wmemcmp.m4: New file.
19109         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19110         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19111         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19112         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19113         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19114
19115 2011-02-07  Jim Meyering  <meyering@redhat.com>
19116
19117         di-set, ino-map: new modules, from coreutils
19118         * lib/di-set.c: New file.
19119         * lib/di-set.h: Likewise.
19120         * lib/ino-map.c: Likewise.
19121         * lib/ino-map.h: Likewise.
19122         * modules/di-set: Likewise.
19123         * modules/di-set-tests: Likewise.
19124         * modules/ino-map: Likewise.
19125         * modules/ino-map-tests: Likewise.
19126         * tests/test-di-set.c: Likewise.
19127         * tests/test-ino-map.c: Likewise.
19128
19129 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19130
19131         getloadavg: merge minor changes from Emacs
19132
19133         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19134         (getloadavg): Use memset, not bzero.
19135
19136         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19137         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19138         clash (bug#86).
19139
19140 2010-11-14  Bruno Haible  <bruno@clisp.org>
19141
19142         Allow multiple gnulib generated replacements to coexist.
19143         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19144         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19145         * lib/langinfo.in.h (nl_item): Likewise.
19146         * lib/math.in.h (_NaN, NAN): Likewise.
19147         * lib/netdb.in.h (struct addrinfo): Likewise.
19148         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19149         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19150         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19151         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19152         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19153         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19154         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19155         pthread_mutexattr_init, pthread_mutexattr_settype,
19156         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19157         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19158         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19159         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19160         * lib/sched.in.h (struct sched_param): Likewise.
19161         * lib/se-selinux.in.h (security_class_t, security_context_t,
19162         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19163         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19164         lsetfilecon, fsetfilecon, security_check_context,
19165         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19166         Likewise.
19167         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19168         Likewise.
19169         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19170         _gl_function_taking_int_returning_void_t, union sigval,
19171         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19172         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19173         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19174         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19175         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19176         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19177         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19178         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19179         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19180         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19181         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19182         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19183         socklen_t, rpl_fd_isset): Likewise.
19184         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19185         * lib/sys_time.in.h (struct timeval): Likewise.
19186         * lib/sys_times.in.h (struct tms): Likewise.
19187         * lib/sys_utsname.in.h (struct utsname):
19188         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19189         * lib/unistd.in.h (getpagesize): Likewise.
19190         * lib/wchar.in.h (mbstate_t): Likewise.
19191         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19192         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19193         towlower, towupper): Likewise.
19194         Reported by Sam Steingold <sds@gnu.org>.
19195
19196 2011-02-05  Eric Blake  <eblake@redhat.com>
19197
19198         unsetenv: work around Haiku issues
19199         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19200         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19201
19202 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19203
19204         libposix: avoid calling error() within libposix
19205         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19206         is defined.
19207
19208 2011-02-05  Eric Blake  <eblake@redhat.com>
19209
19210         strerror_r-posix: port to cygwin
19211         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19212         implementation.
19213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19214         * tests/test-strerror_r.c (main): Fix test.
19215         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19216         issue.
19217
19218 2011-02-05  Bruno Haible  <bruno@clisp.org>
19219
19220         New module 'wmemchr'.
19221         * modules/wmemchr: New file.
19222         * lib/wchar.in.h (wmemchr): New declaration.
19223         * lib/wmemchr.c: New file.
19224         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19225         * m4/wmemchr.m4: New file.
19226         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19227         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19228         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19229         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19230         * doc/posix-functions/wmemchr.texi: Mention the new module.
19231
19232 2011-02-04  Eric Blake  <eblake@redhat.com>
19233
19234         fdopendir: detect FreeBSD bug
19235         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19236         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19237
19238 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19239
19240         stdbool: do not define HAVE_STDBOOL_H
19241         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19242         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19243         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19244         imported from the latest Autoconf git.  It was motivated by Emacs,
19245         which uses gnulib but does not need HAVE_STDBOOL_H.
19246
19247 2011-02-04  Bruno Haible  <bruno@clisp.org>
19248
19249         wcsnrtombs: Prepare for new module wwcsnrtombs.
19250         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19251         * lib/wcsnrtombs.c: Include it.
19252         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19253
19254         wcsrtombs: Prepare for new module wwcsrtombs.
19255         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19256         * lib/wcsrtombs.c: Include it.
19257         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19258
19259         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19260         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19261         * lib/mbsnrtowcs.c: Include it.
19262         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19263
19264         mbsrtowcs: Prepare for new module mbsrtowwcs.
19265         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19266         * lib/mbsrtowcs.c: Include it.
19267         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19268
19269 2011-02-04  Bruno Haible  <bruno@clisp.org>
19270
19271         vasnprintf: Reduce use of malloc for small format strings.
19272         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19273         (arguments): Add room for the first 7 arguments.
19274         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19275         (char_directives, u8_directives, u16_directives, u32_directives): Add
19276         room for the first 7 directives.
19277         * lib/printf-parse.c: Include <string.h>.
19278         (PRINTF_PARSE): Change memory handling code so that it uses the first
19279         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19280         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19281         Reported by Pádraig Brady <P@draigbrady.com>.
19282
19283 2011-01-31  Eric Blake  <eblake@redhat.com>
19284
19285         dup2: work around Haiku bug
19286         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19287         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19288         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19289         * tests/test-dup2.c (main): Enhance test.
19290
19291 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19292
19293         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19294         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19295         declared by eglibc 2.11.2.
19296         * lib/stdio.in.h: Likewise.
19297
19298 2011-01-31  Eric Blake  <eblake@redhat.com>
19299
19300         ignore-value: add missing test dependency
19301         * tests/test-ignore-value.c: Revert previous change; stdio.h
19302         provides off_t.
19303         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19304
19305 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19306
19307         mktime: clarify long_int width checking
19308         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19309         the top level, to make it clearer that the assumption about
19310         long_int width is being checked.  See
19311         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19312
19313 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19314
19315         ignore-value: Fix self-test.
19316         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19317
19318 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19319
19320         TYPE_MAXIMUM: avoid theoretically undefined behavior
19321         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19322         negative number, which the C Standard says has undefined behavior.
19323         In practice this is not a problem, but might as well do it by the book.
19324         Reported by Rich Felker and Eric Blake; see
19325         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19326         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19327         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19329         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19330         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19331         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19332
19333         mktime: #undef mktime before #defining it
19334         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19335
19336         mktime: systematically normalize tm_isdst comparisons
19337         * lib/mktime.c (isdst_differ): New function.
19338         (__mktime_internal): Use it systematically for all isdst comparisons.
19339         This completes the fix for libc BZ #6723, and removes the need for
19340         normalizing tm_isdst.  See
19341         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19342         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19343
19344         mktime: fix some integer overflow issues and sidestep the rest
19345
19346         This was prompted by a bug report by Benjamin Lindner for MinGW
19347         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19348         His bug is due to signed integer overflow (0 - INT_MIN), and I
19349         I scanned through mktime.c looking for other integer overflow
19350         problems, fixing all the bugs I found.
19351
19352         Although the C Standard says the resulting code is still not safe
19353         in the presence of integer overflow, in practice it should be good
19354         enough for all real-world two's-complement implementations, except
19355         for debugging environments that deliberately trap on integer
19356         overflow (e.g., gcc -ftrapv).
19357
19358         * lib/mktime.c (WRAPV): New macro.
19359         (SHR): Also check that long_int and time_t shift right in the
19360         usual way, before using the fast-but-unportable method.
19361         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19362         used.  The code already assumed two's complement, so there's
19363         no need to test for alternatives.  All uses removed.
19364         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19365         the C standard.  Problem reported by Rich Felker in
19366         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19367         (twos_complement_arithmetic): Also check long_int and time_t.
19368         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19369         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19370         (__mktime_internal): Avoid integer overflow with unary subtraction
19371         in two instances where -1 - X is an adequate replacement for -X,
19372         since the calculations are approximate.
19373
19374 2011-01-29  Eric Blake  <eblake@redhat.com>
19375
19376         mktime: avoid infinite loop
19377         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19378         type; behavior is still undefined but portable to all known targets.
19379         Reported by Rich Felker.
19380
19381 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19382
19383         rename, unlink, same-inode: Relicense.
19384         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19385         * modules/unlink (License): Likewise.
19386         * modules/same-inode (License): Likewise.
19387
19388 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19389
19390         mktime: avoid problems on NetBSD 5 / i386
19391         * lib/mktime.c (long_int): New type.  This works around a problem
19392         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19393         but time_t is 64 bits, and where I expect the existing code is
19394         wrong in some cases.
19395         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19396         (ydhms_diff): Bring back the compile-time check for wide-enough
19397         year and yday.
19398
19399         mktime: fix misspelling in comment
19400         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19401         This merges all recent glibc changes of importance.
19402
19403 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19404
19405         move-if-change: cope with concurrent mv of identical file.
19406         * build-aux/move-if-change (CMPPROG): Accept environment
19407         variable as an override for `cmp'.
19408         (usage): Document CMPPROG.
19409         Adjust comparison to drop stdout.  Cope with failure of mv if
19410         the target file exists and is identical to the source, for
19411         parallel builds.
19412         Report from H.J. Lu against binutils in PR binutils/12283.
19413
19414 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19415
19416         * users.txt: Mention sharutils.
19417
19418 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19419
19420         * users.txt: Mention OATH Toolkit.
19421
19422 2011-01-27  Bruno Haible  <bruno@clisp.org>
19423
19424         Prepare for supporting FreeBSD 10.
19425         * build-aux/config.libpath: Remove handling of freebsd1*.
19426
19427 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19428
19429         Prepare for supporting FreeBSD 10.
19430         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19431         match FreeBSD 10.0.
19432
19433 2011-01-27  Bruno Haible  <bruno@clisp.org>
19434
19435         vma-iter, get-rusage-as: Add OpenBSD support.
19436         * modules/vma-iter (configure.ac): Test for mquery.
19437         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19438         * lib/vma-iter.c: Include <sys/mman.h>.
19439         (vma_iterate): Add an implementation based on mquery().
19440         * lib/resource-ext.h (get_rusage_as): Update comments.
19441         * lib/get-rusage-as.c: Likewise.
19442         * lib/get-rusage-data.c: Likewise.
19443
19444 2011-01-26  Karl Berry  <karl@gnu.org>
19445
19446         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19447         variables to make it easier to override the makeinfo program used.
19448
19449 2011-01-26  Eric Blake  <eblake@redhat.com>
19450
19451         fcntl: work around Haiku F_DUPFD bugs
19452         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19453         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19454         cloexec bit on duplication.
19455         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19456
19457 2011-01-26  Bruno Haible  <bruno@clisp.org>
19458
19459         Enable memory leak tests on AIX.
19460         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19461         * tests/test-fprintf-posix3.c (main): Likewise.
19462
19463 2011-01-26  Bruno Haible  <bruno@clisp.org>
19464
19465         Tests for module 'get-rusage-data'.
19466         * modules/get-rusage-data-tests: New file.
19467         * tests/test-get-rusage-data.c: New file.
19468
19469         New module 'get-rusage-data'.
19470         * lib/resource-ext.h (get_rusage_data): New declaration.
19471         * lib/get-rusage-data.c: New file.
19472         * modules/get-rusage-data: New file.
19473
19474 2011-01-25  Bruno Haible  <bruno@clisp.org>
19475
19476         get-rusage-as: Allow for easier testing.
19477         * lib/resource-ext.h (get_rusage_as): Add comment.
19478         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19479         (main): New function for interactive testing.
19480
19481 2011-01-25  Bruno Haible  <bruno@clisp.org>
19482
19483         vma-iter: Treat Haiku like BeOS.
19484         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19485         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19486
19487 2011-01-25  Eric Blake  <eblake@redhat.com>
19488
19489         c-stack: fix regression on cygwin when libsigsegv is present
19490         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19491
19492 2011-01-24  Bruno Haible  <bruno@clisp.org>
19493
19494         vma-iter: Avoid empty intervals.
19495         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19496         on an empty interval.
19497
19498 2011-01-24  Jim Meyering  <meyering@redhat.com>
19499
19500         u64: remove unnecessary #include
19501         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19502
19503 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19504
19505         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19506         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19507
19508 2011-01-23  Bruno Haible  <bruno@clisp.org>
19509
19510         New module 'vma-iter'.
19511         * lib/vma-iter.h: New file.
19512         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19513         * modules/vma-iter: New file.
19514         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19515         for get_rusage_as_via_iterator.
19516         (vma_iterate_callback): New function.
19517         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19518         * modules/get-rusage-as (Depends-on): Add vma-iter.
19519
19520 2011-01-23  Bruno Haible  <bruno@clisp.org>
19521
19522         uninorm: Tweak includes.
19523         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19524         Reported by Jim Meyering.
19525
19526 2011-01-23  Bruno Haible  <bruno@clisp.org>
19527
19528         get-rusage-as: Improve on NetBSD.
19529         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19530         /proc, like on FreeBSD.
19531
19532 2011-01-23  Jim Meyering  <meyering@redhat.com>
19533
19534         xreadlink.h: remove unnecessary #include
19535         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19536
19537         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19538         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19539
19540 2011-01-23  Bruno Haible  <bruno@clisp.org>
19541
19542         get-rusage-as: Fix bug.
19543         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19544         original limit when aborting the first loop.
19545
19546 2011-01-23  Bruno Haible  <bruno@clisp.org>
19547
19548         wctype: Ensure valid C syntax.
19549         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19550         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19551
19552 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19553
19554         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19555         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19556         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19557         as they are needed only for configure's test case.
19558         This removes two unnecessary symbols from config.h.
19559
19560         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19561         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19562         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19563         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19564         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19565         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19566         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19567         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19568         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19569         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19570         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19571         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19572         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19573         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19574         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19575         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19576         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19577         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19578
19579 2011-01-21  Eric Blake  <eblake@redhat.com>
19580
19581         maintainer-makefile: work with older git for submodule check
19582         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19583         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19584         Reported by Matthias Bolte.
19585
19586         bootstrap: minor portability fixes
19587         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19588         (usage): Omit leading capital and trailing . on help phrases, per
19589         GNU Coding Standards.
19590         (check_versions, top level): Prefix messages with script name.
19591
19592 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19593
19594         bootstrap: support --no-git option
19595         * build-aux/bootstrap: Add --no-git option, to be used when
19596         --gnulib-srcdir points to the exact desired checkout.
19597
19598 2011-01-21  Eric Blake  <eblake@redhat.com>
19599
19600         strerror_r-posix: work with glibc 2.13
19601         * lib/strerror_r.c (strerror_r): Fix return type.
19602
19603 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19604             Bruno Haible  <bruno@clisp.org>
19605
19606         uN_strstr: New unit tests.
19607         * modules/unistr/u8-strstr-tests: New file.
19608         * modules/unistr/u16-strstr-tests: New file.
19609         * modules/unistr/u32-strstr-tests: New file.
19610         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
19611         * tests/unistr/test-u8-strstr.c: New file.
19612         * tests/unistr/test-u16-strstr.c: New file.
19613         * tests/unistr/test-u32-strstr.c: New file.
19614
19615 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19616             Bruno Haible  <bruno@clisp.org>
19617
19618         Make uN_strstr functions O(n) worst-case.
19619         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
19620         16-bit and 32-bit unit cases, use the unibyte algorithm from
19621         lib/mbsstr.c.
19622         * lib/unistr/u8-strstr.c: Include <string.h>.
19623         (UNIT_IS_UINT8_T): New macro.
19624         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
19625         (U_STRLEN, U_STRNLEN): New macros.
19626         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
19627         (U_STRLEN, U_STRNLEN): New macros.
19628         * modules/unistr/u8-strstr (Depends-on): Add strstr.
19629         (configure.ac): Update required libunistring version.
19630         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
19631         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
19632         malloca.
19633         (configure.ac): Update required libunistring version.
19634         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
19635         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
19636         malloca.
19637         (configure.ac): Update required libunistring version.
19638
19639 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19640             Bruno Haible  <bruno@clisp.org>
19641
19642         Prepare for faster uN_strstr functions.
19643         * lib/str-kmp.h: Support definable UNITs.
19644         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
19645         needle_len argument.
19646         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
19647         * lib/mbscasestr.c (mbscasestr): Likewise.
19648
19649 2011-01-21  Pádraig Brady <P@draigBrady.com>
19650
19651         malloca-tests: make faster by unsetting MALLOC_PERTURB_
19652         * tests/test-malloca.c (main): Unset the environment variable
19653         to greatly speed up the test.
19654         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
19655         * modules/malloca-tests: Depend on unsetenv.
19656
19657 2011-01-21  Pádraig Brady <P@draigBrady.com>
19658
19659         ignore-value: remove stdint dependency
19660         * lib/ignore-value.h: Remove <stdint.h>
19661         * modules/ignore-value: Remove stdint dependency.
19662
19663 2011-01-21  Jim Meyering  <meyering@redhat.com>
19664
19665         maint.mk: adjust variable name to be consistent with other gl_ vars
19666         * top/maint.mk (gl_public_submodule_commit): Rename the variable
19667         to be lower case.
19668
19669 2011-01-20  Jim Meyering  <meyering@redhat.com>
19670
19671         maint.mk: make "check" depend on public-submodule-commit by default
19672         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
19673
19674 2011-01-20  Bruno Haible  <bruno@clisp.org>
19675
19676         mbfile, mbiter: Complete change from 2008-12-21.
19677         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
19678         * m4/mbiter.m4 (gl_MBITER): Likewise.
19679
19680 2011-01-20  Jim Meyering  <meyering@redhat.com>
19681
19682         init.sh: insert space between each function name and "()"
19683         * tests/init.sh: Make it a little easier to see that a function's
19684         name is "warn_", and not "warn" when looking at the first part of
19685         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
19686
19687 2011-01-20  Jim Meyering  <meyering@redhat.com>
19688
19689         mountlist: clean up code formatting
19690         * lib/mountlist.c (read_file_system_list): Split a long line,
19691         correct bracing style, use NULL in place of "(struct statfs *)0",
19692         don't parenthesize return value, add spaces around "=" and after
19693         ";-in-for-stmt".
19694
19695 2011-01-14  Markus Duft <mduft@gentoo.org>
19696
19697         mountlist: add support for Interix
19698         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
19699         Apply statvfs to all entries of /dev/fs.
19700         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
19701         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
19702
19703 2011-01-20  Jim Meyering  <meyering@redhat.com>
19704
19705         maint.mk: improve the public-submodule-commit rule
19706         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
19707         to suppress printing of its commands... unless V=1.
19708         Add git submodule's --quiet option to suppress printing of e.g.,
19709         "Entering gnulib" output.
19710         "cd" into $(srcdir) before running git submodule.
19711
19712 2011-01-20  Bruno Haible  <bruno@clisp.org>
19713
19714         include_next: Fix bug introduced on 2011-01-18.
19715         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
19716         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
19717         ac_cv_header_... variable if the second argument is not 'check'.
19718         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
19719         gl_NEXT_HEADERS_INTERNAL.
19720
19721 2011-01-20  Bruno Haible  <bruno@clisp.org>
19722
19723         Allow the user to avoid the GNULIB_TEST_* macros.
19724         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
19725         Suggested by Paul Eggert.
19726
19727 2011-01-14  Jim Meyering  <meyering@redhat.com>
19728
19729         bootstrap: avoid failure when there is no .gitmodules file
19730         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
19731         has been assigned to, even when its value is the empty string.
19732         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
19733         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
19734         Reported by John W. Eaton <jwe@gnu.org>.
19735
19736 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19737
19738         assume <ctype.h>, ..., <time.h> exist
19739         For years gnulib has been assuming the existence of the headers
19740         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19741         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19742         them, since they don't appear to be needed.
19743         * README (Portability guidelines): Document this.
19744         * lib/flock.c: Assume <fcntl.h> exists.
19745         * lib/regex_internal.h: Assume <locale.h> exists.
19746         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
19747         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
19748         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
19749         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
19750         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
19751         * m4/regex.m4 (gl_REGEX): Likewise.
19752         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
19753         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
19754         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
19755         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
19756         * tests/test-argp.c: Likewise.
19757         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
19758
19759         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
19760         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
19761         AA_APPLE_UNIVERSAL_BUILD.  See
19762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
19763         * NEWS: Document this.
19764
19765 2011-01-19  Eric Blake  <eblake@redhat.com>
19766
19767         c-stack: assume stack overflow if SA_SIGINFO unsupported
19768         * lib/c-stack.c (SIGACTION_WORKS): Rename...
19769         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
19770         sigaction will work.
19771         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
19772         behavior match Linux.
19773         * tests/test-c-stack.c (main): Prefer NULL for pointers.
19774
19775         stdbool-tests: accomodate Haiku
19776         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
19777
19778         binary-io: fix O_TEXT on Haiku
19779         * modules/binary-io (Depends-on): Add fcntl-h.
19780         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
19781         than blindly undefining O_TEXT.
19782         Reported by Scott McCreary.
19783
19784 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19785
19786         include_next: do not check for standard headers like stddef.h
19787
19788         I found this problem when modifying Emacs to use gnulib.
19789         I noticed that it added HAVE_STDDEF_H to config.h, even though
19790         gnulib always assumes <stddef.h> exists as per README and this
19791         symbol is unnecessary.
19792         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
19793         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
19794         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
19795         faster for headers like stddef.h that are known to exist.
19796         (gl_CHECK_NEXT_HEADERS): Use it.
19797         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
19798         rather than gl_CHECK_NEXT_HEADERS.
19799         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
19800         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
19801
19802 2011-01-18  Eric Blake  <eblake@redhat.com>
19803
19804         ansi-c++-opt: skip C++ dependency style if C++ is unused
19805         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
19806         tests when we know C++ compilation is not desired.
19807         Reported by Scott McCreary.
19808
19809 2011-01-18  Bruno Haible  <bruno@clisp.org>
19810
19811         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
19812         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
19813         (main): Perform test also when getrlimit and setrlimit don't exist or
19814         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
19815         limiting the address space size using setrlimit, compare the address
19816         space size before and after the the test.
19817         * tests/test-dprintf-posix2.c: Likewise.
19818         * tests/test-fprintf-posix3.sh: Update skip messages.
19819         * tests/test-dprintf-posix2.sh: Likewise.
19820         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
19821         * modules/dprintf-posix-tests (Depends-on): Likewise.
19822         Reported by Bruce Korb <bkorb@gnu.org> and
19823         Gary V. Vaughan <gary@gnu.org>.
19824
19825 2011-01-18  Bruno Haible  <bruno@clisp.org>
19826
19827         get-rusage-as: Improvement for Cygwin.
19828         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
19829         areas that are merely reserved.
19830
19831 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19832
19833         strftime: remove dependencies on multibyte modules
19834
19835         strftime depended on mbrlen, mbsinit, and wchar, but these modules
19836         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
19837         only if __osf__ is defined, and I suspect OSF doesn't need these
19838         other modules.  If my guess is wrong, we'll need to come up with a
19839         variant of strftime that doesn't need the multibyte modules.
19840
19841         I discovered this problem when attempting modify Emacs to use the
19842         strftime module.  With the previous gnulib, this caused Emacs to
19843         need 31 new files, ranging from lib/config.charset to
19844         m4/wint_t.m4.  This was overkill and I expect would be offputting
19845         to the Emacs maintainers.  After this change, only 6 new files are
19846         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
19847         stdbool.m4, and tm_gmtoff.m4.
19848
19849         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
19850         Suggested by Bruno Haible in
19851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
19852         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
19853         and do not check for wchar.h.
19854         * modules/strftime (Files): Remove m4/mbstate_t.m4.
19855         (Depends-on): Remove mbrlen, mbsinit, wchar.
19856
19857 2011-01-18  Bruno Haible  <bruno@clisp.org>
19858
19859         Tests for module 'get-rusage-as'.
19860         * modules/get-rusage-as-tests: New file.
19861         * tests/test-get-rusage-as.c: New file.
19862
19863         New module 'get-rusage-as'.
19864         * modules/get-rusage-as: New file.
19865         * lib/resource-ext.h: New file.
19866         * lib/get-rusage-as.c: New file.
19867
19868 2011-01-17  Eric Blake  <eblake@redhat.com>
19869
19870         sigaction: relax license from LGPLv3+ to LGPLv2+
19871         * modules/sigaction (License): Relax to LGPLv2+.
19872
19873 2011-01-14  Bruno Haible  <bruno@clisp.org>
19874
19875         filemode: Make function declarations usable in C++ mode.
19876         * lib/filemode.h: Enclose function declarations in extern "C" block.
19877         Reported by John W. Eaton <jwe@gnu.org>.
19878
19879 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
19880
19881         save-cwd: no longer include "xgetcwd.h"
19882         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
19883         This avoids a compilation failure in projects that use save-cwd
19884         without also using the xgetcwd module.
19885
19886 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19887
19888         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
19889         This is so that a program like Emacs, which needs only dtoastr,
19890         does not have to bother with distributing and compiling ftoastr
19891         and ldtoastr.
19892         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
19893         * modules/dtoastr, modules/ldtoastr: New files.
19894         * modules/ftoastr: Now works just for 'float'.
19895         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
19896         (Makefile.am): Remove ftoastr.h (not needed and no effect),
19897         dtoastr.c, ldtoastr.c.
19898
19899 2011-01-11  Jim Meyering  <meyering@redhat.com>
19900
19901         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
19902         There is no need to work around the lack of the fchdir function,
19903         since gnulib can now provide a replacement when required.
19904         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
19905         * modules/save-cwd (Depends-on): Add fchdir.
19906
19907 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19908
19909         openat, save-cwd: avoid xmalloc
19910
19911         This removes a direct (but undocumented) dependency of openat on
19912         xalloc, along with an indirect dependency via save-cwd.  It also
19913         removes a dependency of save-cwd on xgetcwd, and thereby
19914         indirectly on xalloc.  This change causes the openat substitute
19915         to fall back on save_cwd when memory is tight, and for save_cwd to
19916         fail instead of dying when memory is tight, but that's good enough.
19917         Problem and initial idea for fix reported by Bastien Roucaries in
19918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
19919
19920         * lib/openat-proc.c: Include stdlib.h (for malloc), not
19921         xalloc.h (for xmalloc).
19922         (openat_proc_name): Use malloc, not xmalloc.
19923         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
19924         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
19925
19926         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
19927         This avoids heap allocation for file names whose lengths are in
19928         the range 512..1023, with the upper bound increasing to at most
19929         4031 depending on the platform's PATH_MAX.  (We do not want
19930         pathmax.h here as it might supply a non-constant PATH_MAX.)
19931         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
19932         Perhaps they should be moved to malloca.h?
19933         (OPENAT_BUFFER_SIZE): Use them.
19934
19935 2011-01-10  Bruno Haible  <bruno@clisp.org>
19936
19937         doc: Update users.txt.
19938         * users.txt: Add recutils.
19939
19940 2011-01-09  Karl Berry  <karl@gnu.org>
19941
19942         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
19943
19944         * doc/configmake.texi: New file.
19945         * doc/gnulib.texi: Include it.
19946         * modules/configmake: Move documentation from here.
19947
19948 2011-01-09  Bruno Haible  <bruno@clisp.org>
19949
19950         Update to Unicode 6.0.0.
19951         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19952         (get_lbp): Update for Unicode 6.0.0.
19953         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19954         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19955         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19956         U+11001, U+11038..U+11046. Remove U+06DE.
19957         (uc_width): Fix bounds of planes.
19958         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19959         lib/uniwidth/width.c.
19960         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19961         trailing whitespace removed.
19962         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19963         without comments, but with the original copyright notice.
19964         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19965         * lib/unicase/ignorable.h: Likewise.
19966         * lib/unicase/tocasefold.h: Likewise.
19967         * lib/unicase/tolower.h: Likewise.
19968         * lib/unicase/totitle.h: Likewise.
19969         * lib/unicase/toupper.h: Likewise.
19970         * lib/unictype/bidi_of.h: Likewise.
19971         * lib/unictype/blocks.h: Likewise.
19972         * lib/unictype/categ_C.h: Likewise.
19973         * lib/unictype/categ_Cn.h: Likewise.
19974         * lib/unictype/categ_L.h: Likewise.
19975         * lib/unictype/categ_Ll.h: Likewise.
19976         * lib/unictype/categ_Lm.h: Likewise.
19977         * lib/unictype/categ_Lo.h: Likewise.
19978         * lib/unictype/categ_Lu.h: Likewise.
19979         * lib/unictype/categ_M.h: Likewise.
19980         * lib/unictype/categ_Mc.h: Likewise.
19981         * lib/unictype/categ_Me.h: Likewise.
19982         * lib/unictype/categ_Mn.h: Likewise.
19983         * lib/unictype/categ_N.h: Likewise.
19984         * lib/unictype/categ_Nd.h: Likewise.
19985         * lib/unictype/categ_No.h: Likewise.
19986         * lib/unictype/categ_P.h: Likewise.
19987         * lib/unictype/categ_Po.h: Likewise.
19988         * lib/unictype/categ_S.h: Likewise.
19989         * lib/unictype/categ_Sc.h: Likewise.
19990         * lib/unictype/categ_Sk.h: Likewise.
19991         * lib/unictype/categ_Sm.h: Likewise.
19992         * lib/unictype/categ_So.h: Likewise.
19993         * lib/unictype/categ_of.h: Likewise.
19994         * lib/unictype/combining.h: Likewise.
19995         * lib/unictype/ctype_alnum.h: Likewise.
19996         * lib/unictype/ctype_alpha.h: Likewise.
19997         * lib/unictype/ctype_graph.h: Likewise.
19998         * lib/unictype/ctype_lower.h: Likewise.
19999         * lib/unictype/ctype_print.h: Likewise.
20000         * lib/unictype/ctype_punct.h: Likewise.
20001         * lib/unictype/ctype_upper.h: Likewise.
20002         * lib/unictype/decdigit.h: Likewise.
20003         * lib/unictype/digit.h: Likewise.
20004         * lib/unictype/numeric.h: Likewise.
20005         * lib/unictype/pr_alphabetic.h: Likewise.
20006         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20007         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20008         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20009         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20010         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20011         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20012         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20013         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20014         * lib/unictype/pr_case_ignorable.h: Likewise.
20015         * lib/unictype/pr_cased.h: Likewise.
20016         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20017         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20018         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20019         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20020         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20021         * lib/unictype/pr_combining.h: Likewise.
20022         * lib/unictype/pr_composite.h: Likewise.
20023         * lib/unictype/pr_currency_symbol.h: Likewise.
20024         * lib/unictype/pr_decimal_digit.h: Likewise.
20025         * lib/unictype/pr_deprecated.h: Likewise.
20026         * lib/unictype/pr_format_control.h: Likewise.
20027         * lib/unictype/pr_grapheme_base.h: Likewise.
20028         * lib/unictype/pr_grapheme_extend.h: Likewise.
20029         * lib/unictype/pr_grapheme_link.h: Likewise.
20030         * lib/unictype/pr_id_continue.h: Likewise.
20031         * lib/unictype/pr_id_start.h: Likewise.
20032         * lib/unictype/pr_ideographic.h: Likewise.
20033         * lib/unictype/pr_lowercase.h: Likewise.
20034         * lib/unictype/pr_math.h: Likewise.
20035         * lib/unictype/pr_numeric.h: Likewise.
20036         * lib/unictype/pr_other_alphabetic.h: Likewise.
20037         * lib/unictype/pr_other_id_continue.h: Likewise.
20038         * lib/unictype/pr_other_math.h: Likewise.
20039         * lib/unictype/pr_punctuation.h: Likewise.
20040         * lib/unictype/pr_sentence_terminal.h: Likewise.
20041         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20042         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20043         * lib/unictype/pr_unified_ideograph.h: Likewise.
20044         * lib/unictype/pr_uppercase.h: Likewise.
20045         * lib/unictype/pr_xid_continue.h: Likewise.
20046         * lib/unictype/pr_xid_start.h: Likewise.
20047         * lib/unictype/scripts.h: Likewise.
20048         * lib/unictype/scripts_byname.gperf: Likewise.
20049         * lib/unictype/sy_java_ident.h: Likewise.
20050         * lib/unigbrk/gbrkprop.h: Likewise.
20051         * lib/unilbrk/lbrkprop1.h: Likewise.
20052         * lib/unilbrk/lbrkprop2.h: Likewise.
20053         * lib/uninorm/decomposition-table2.h: Likewise.
20054         * lib/uniwbrk/wbrkprop.h: Likewise.
20055         * tests/unicase/test-cased.c: Likewise.
20056         * tests/unicase/test-ignorable.c: Likewise.
20057         * tests/unicase/test-uc_tolower.c: Likewise.
20058         * tests/unicase/test-uc_totitle.c: Likewise.
20059         * tests/unicase/test-uc_toupper.c: Likewise.
20060         * tests/unictype/test-categ_C.c: Likewise.
20061         * tests/unictype/test-categ_Cn.c: Likewise.
20062         * tests/unictype/test-categ_L.c: Likewise.
20063         * tests/unictype/test-categ_Ll.c: Likewise.
20064         * tests/unictype/test-categ_Lm.c: Likewise.
20065         * tests/unictype/test-categ_Lo.c: Likewise.
20066         * tests/unictype/test-categ_Lu.c: Likewise.
20067         * tests/unictype/test-categ_M.c: Likewise.
20068         * tests/unictype/test-categ_Mc.c: Likewise.
20069         * tests/unictype/test-categ_Me.c: Likewise.
20070         * tests/unictype/test-categ_Mn.c: Likewise.
20071         * tests/unictype/test-categ_N.c: Likewise.
20072         * tests/unictype/test-categ_Nd.c: Likewise.
20073         * tests/unictype/test-categ_No.c: Likewise.
20074         * tests/unictype/test-categ_P.c: Likewise.
20075         * tests/unictype/test-categ_Po.c: Likewise.
20076         * tests/unictype/test-categ_S.c: Likewise.
20077         * tests/unictype/test-categ_Sc.c: Likewise.
20078         * tests/unictype/test-categ_Sk.c: Likewise.
20079         * tests/unictype/test-categ_Sm.c: Likewise.
20080         * tests/unictype/test-categ_So.c: Likewise.
20081         * tests/unictype/test-ctype_alnum.c: Likewise.
20082         * tests/unictype/test-ctype_alpha.c: Likewise.
20083         * tests/unictype/test-ctype_graph.c: Likewise.
20084         * tests/unictype/test-ctype_lower.c: Likewise.
20085         * tests/unictype/test-ctype_print.c: Likewise.
20086         * tests/unictype/test-ctype_punct.c: Likewise.
20087         * tests/unictype/test-ctype_upper.c: Likewise.
20088         * tests/unictype/test-decdigit.h: Likewise.
20089         * tests/unictype/test-digit.h: Likewise.
20090         * tests/unictype/test-numeric.h: Likewise.
20091         * tests/unictype/test-pr_alphabetic.c: Likewise.
20092         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20093         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20094         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20095         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20096         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20097         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20098         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20099         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20100         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20101         * tests/unictype/test-pr_cased.c: Likewise.
20102         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20103         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20104         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20105         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20106         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20107         * tests/unictype/test-pr_combining.c: Likewise.
20108         * tests/unictype/test-pr_composite.c: Likewise.
20109         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20110         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20111         * tests/unictype/test-pr_deprecated.c: Likewise.
20112         * tests/unictype/test-pr_format_control.c: Likewise.
20113         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20114         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20115         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20116         * tests/unictype/test-pr_id_continue.c: Likewise.
20117         * tests/unictype/test-pr_id_start.c: Likewise.
20118         * tests/unictype/test-pr_ideographic.c: Likewise.
20119         * tests/unictype/test-pr_lowercase.c: Likewise.
20120         * tests/unictype/test-pr_math.c: Likewise.
20121         * tests/unictype/test-pr_numeric.c: Likewise.
20122         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20123         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20124         * tests/unictype/test-pr_other_math.c: Likewise.
20125         * tests/unictype/test-pr_punctuation.c: Likewise.
20126         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20127         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20128         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20129         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20130         * tests/unictype/test-pr_uppercase.c: Likewise.
20131         * tests/unictype/test-pr_xid_continue.c: Likewise.
20132         * tests/unictype/test-pr_xid_start.c: Likewise.
20133         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20134         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20135         changes.
20136         * lib/unictype/categ_Cc.h: Likewise.
20137         * lib/unictype/categ_Cf.h: Likewise.
20138         * lib/unictype/categ_Co.h: Likewise.
20139         * lib/unictype/categ_Cs.h: Likewise.
20140         * lib/unictype/categ_Lt.h: Likewise.
20141         * lib/unictype/categ_Nl.h: Likewise.
20142         * lib/unictype/categ_Pc.h: Likewise.
20143         * lib/unictype/categ_Pd.h: Likewise.
20144         * lib/unictype/categ_Pe.h: Likewise.
20145         * lib/unictype/categ_Pf.h: Likewise.
20146         * lib/unictype/categ_Pi.h: Likewise.
20147         * lib/unictype/categ_Ps.h: Likewise.
20148         * lib/unictype/categ_Z.h: Likewise.
20149         * lib/unictype/categ_Zl.h: Likewise.
20150         * lib/unictype/categ_Zp.h: Likewise.
20151         * lib/unictype/categ_Zs.h: Likewise.
20152         * lib/unictype/ctype_blank.h: Likewise.
20153         * lib/unictype/ctype_cntrl.h: Likewise.
20154         * lib/unictype/ctype_digit.h: Likewise.
20155         * lib/unictype/ctype_space.h: Likewise.
20156         * lib/unictype/ctype_xdigit.h: Likewise.
20157         * lib/unictype/mirror.h: Likewise.
20158         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20159         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20160         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20161         * lib/unictype/pr_bidi_control.h: Likewise.
20162         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20163         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20164         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20165         * lib/unictype/pr_bidi_pdf.h: Likewise.
20166         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20167         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20168         * lib/unictype/pr_dash.h: Likewise.
20169         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20170         * lib/unictype/pr_diacritic.h: Likewise.
20171         * lib/unictype/pr_extender.h: Likewise.
20172         * lib/unictype/pr_hex_digit.h: Likewise.
20173         * lib/unictype/pr_hyphen.h: Likewise.
20174         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20175         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20176         * lib/unictype/pr_ignorable_control.h: Likewise.
20177         * lib/unictype/pr_iso_control.h: Likewise.
20178         * lib/unictype/pr_join_control.h: Likewise.
20179         * lib/unictype/pr_left_of_pair.h: Likewise.
20180         * lib/unictype/pr_line_separator.h: Likewise.
20181         * lib/unictype/pr_logical_order_exception.h: Likewise.
20182         * lib/unictype/pr_non_break.h: Likewise.
20183         * lib/unictype/pr_not_a_character.h: Likewise.
20184         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20185         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20186         * lib/unictype/pr_other_id_start.h: Likewise.
20187         * lib/unictype/pr_other_lowercase.h: Likewise.
20188         * lib/unictype/pr_other_uppercase.h: Likewise.
20189         * lib/unictype/pr_paired_punctuation.h: Likewise.
20190         * lib/unictype/pr_paragraph_separator.h: Likewise.
20191         * lib/unictype/pr_pattern_syntax.h: Likewise.
20192         * lib/unictype/pr_pattern_white_space.h: Likewise.
20193         * lib/unictype/pr_private_use.h: Likewise.
20194         * lib/unictype/pr_quotation_mark.h: Likewise.
20195         * lib/unictype/pr_radical.h: Likewise.
20196         * lib/unictype/pr_soft_dotted.h: Likewise.
20197         * lib/unictype/pr_space.h: Likewise.
20198         * lib/unictype/pr_titlecase.h: Likewise.
20199         * lib/unictype/pr_variation_selector.h: Likewise.
20200         * lib/unictype/pr_white_space.h: Likewise.
20201         * lib/unictype/pr_zero_width.h: Likewise.
20202         * lib/unictype/sy_c_ident.h: Likewise.
20203         * lib/unictype/sy_c_whitespace.h: Likewise.
20204         * lib/unictype/sy_java_whitespace.h: Likewise.
20205         * lib/uninorm/composition-table.gperf: Likewise.
20206         * lib/uninorm/decomposition-table1.h: Likewise.
20207         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20208         LB8.
20209         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20210         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20211         * modules/unictype/*: Bump version number of expected libunistring
20212         version.
20213
20214 2011-01-09  Bruno Haible  <bruno@clisp.org>
20215
20216         Update to Unicode 5.2.0.
20217         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20218         trailing whitespace removed.
20219
20220 2011-01-09  Bruno Haible  <bruno@clisp.org>
20221
20222         New Unicode character properties, from Unicode 5.2.0.
20223         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20224         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20225         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20226         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20227         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20228         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20229         uc_is_property_cased, uc_is_property_case_ignorable,
20230         uc_is_property_changes_when_lowercased,
20231         uc_is_property_changes_when_uppercased,
20232         uc_is_property_changes_when_titlecased,
20233         uc_is_property_changes_when_casefolded,
20234         uc_is_property_changes_when_casemapped): New declarations.
20235         * lib/unictype/pr_byname.gperf: Add the new properties.
20236         * modules/unictype/property-byname (Depends-on): Depend on the new
20237         properties modules.
20238         * modules/unictype/property-all (Depends-on): Likewise.
20239         * MODULES.html.sh (Unicode string functions): Add
20240         unictype/property-case-ignorable, unictype/property-cased,
20241         unictype/property-changes-when-casefolded,
20242         unictype/property-changes-when-casemapped,
20243         unictype/property-changes-when-lowercased,
20244         unictype/property-changes-when-titlecased,
20245         unictype/property-changes-when-uppercased.
20246
20247         New module 'unictype/property-changes-when-casemapped'.
20248         * modules/unictype/property-changes-when-casemapped: New file.
20249         * lib/unictype/pr_changes_when_casemapped.c: New file.
20250         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20251         generated by gen-uni-tables.
20252         * modules/unictype/property-changes-when-casemapped-tests: New file.
20253         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20254         automatically generated by gen-uni-tables.
20255
20256         New module 'unictype/property-changes-when-casefolded'.
20257         * modules/unictype/property-changes-when-casefolded: New file.
20258         * lib/unictype/pr_changes_when_casefolded.c: New file.
20259         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20260         generated by gen-uni-tables.
20261         * modules/unictype/property-changes-when-casefolded-tests: New file.
20262         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20263         automatically generated by gen-uni-tables.
20264
20265         New module 'unictype/property-changes-when-titlecased'.
20266         * modules/unictype/property-changes-when-titlecased: New file.
20267         * lib/unictype/pr_changes_when_titlecased.c: New file.
20268         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20269         generated by gen-uni-tables.
20270         * modules/unictype/property-changes-when-titlecased-tests: New file.
20271         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20272         automatically generated by gen-uni-tables.
20273
20274         New module 'unictype/property-changes-when-uppercased'.
20275         * modules/unictype/property-changes-when-uppercased: New file.
20276         * lib/unictype/pr_changes_when_uppercased.c: New file.
20277         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20278         generated by gen-uni-tables.
20279         * modules/unictype/property-changes-when-uppercased-tests: New file.
20280         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20281         automatically generated by gen-uni-tables.
20282
20283         New module 'unictype/property-changes-when-lowercased'.
20284         * modules/unictype/property-changes-when-lowercased: New file.
20285         * lib/unictype/pr_changes_when_lowercased.c: New file.
20286         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20287         generated by gen-uni-tables.
20288         * modules/unictype/property-changes-when-lowercased-tests: New file.
20289         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20290         automatically generated by gen-uni-tables.
20291
20292         New module 'unictype/property-case-ignorable'.
20293         * modules/unictype/property-case-ignorable: New file.
20294         * lib/unictype/pr_case_ignorable.c: New file.
20295         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20296         by gen-uni-tables.
20297         * modules/unictype/property-case-ignorable-tests: New file.
20298         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20299         generated by gen-uni-tables.
20300
20301         New module 'unictype/property-cased'.
20302         * modules/unictype/property-cased: New file.
20303         * lib/unictype/pr_cased.c: New file.
20304         * lib/unictype/pr_cased.h: New file, automatically generated by
20305         gen-uni-tables.
20306         * modules/unictype/property-cased-tests: New file.
20307         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20308         gen-uni-tables.
20309
20310 2011-01-09  Bruno Haible  <bruno@clisp.org>
20311
20312         Update to Unicode 5.2.0.
20313         * lib/gen-uni-tables.c (output_predicate, output_category,
20314         output_combclass, output_bidi_category, output_decimal_digit_test,
20315         output_decimal_digit, output_digit_test, output_digit,
20316         output_numeric_test, output_numeric, output_mirror, output_scripts,
20317         output_scripts_byname, output_blocks, output_ident_category): Fix
20318         comment header.
20319         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20320         get_wbp.
20321         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20322         items.
20323         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20324         Changes_When_Lowercased, Changes_When_Uppercased,
20325         Changes_When_Titlecased, Changes_When_Casefolded,
20326         Changes_When_Casemapped.
20327         (is_property_alphabetic, is_property_default_ignorable_code_point):
20328         Update for Unicode 5.2.0.
20329         (is_property_cased, is_property_case_ignorable,
20330         is_property_changes_when_lowercased,
20331         is_property_changes_when_uppercased,
20332         is_property_changes_when_titlecased,
20333         is_property_changes_when_casefolded,
20334         is_property_changes_when_casemapped): New functions.
20335         (output_properties): Output also the properties cased, case_ignorable,
20336         changes_when_lowercased, changes_when_uppercased,
20337         changes_when_titlecased, changes_when_casefolded,
20338         changes_when_casemapped.
20339         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20340         Unicode TR#11 revision 17 -> 19.
20341         (LBP_CP): New enumeration value.
20342         (LBP_*): Adjust values accordingly.
20343         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20344         TR#14 revision 22 -> 24.
20345         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20346         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20347         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20348         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20349         is_WBP_MIDLETTER.
20350         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20351         the code1 and code2 of each composition rule.
20352         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20353         * lib/unicase/ignorable.h: Likewise.
20354         * lib/unicase/tocasefold.h: Likewise.
20355         * lib/unicase/tolower.h: Likewise.
20356         * lib/unicase/totitle.h: Likewise.
20357         * lib/unicase/toupper.h: Likewise.
20358         * lib/unictype/bidi_of.h: Likewise.
20359         * lib/unictype/blocks.h: Likewise.
20360         * lib/unictype/categ_C.h: Likewise.
20361         * lib/unictype/categ_Cf.h: Likewise.
20362         * lib/unictype/categ_Cn.h: Likewise.
20363         * lib/unictype/categ_L.h: Likewise.
20364         * lib/unictype/categ_Ll.h: Likewise.
20365         * lib/unictype/categ_Lm.h: Likewise.
20366         * lib/unictype/categ_Lo.h: Likewise.
20367         * lib/unictype/categ_Lu.h: Likewise.
20368         * lib/unictype/categ_M.h: Likewise.
20369         * lib/unictype/categ_Mc.h: Likewise.
20370         * lib/unictype/categ_Mn.h: Likewise.
20371         * lib/unictype/categ_N.h: Likewise.
20372         * lib/unictype/categ_Nd.h: Likewise.
20373         * lib/unictype/categ_Nl.h: Likewise.
20374         * lib/unictype/categ_No.h: Likewise.
20375         * lib/unictype/categ_P.h: Likewise.
20376         * lib/unictype/categ_Pd.h: Likewise.
20377         * lib/unictype/categ_Po.h: Likewise.
20378         * lib/unictype/categ_S.h: Likewise.
20379         * lib/unictype/categ_Sc.h: Likewise.
20380         * lib/unictype/categ_So.h: Likewise.
20381         * lib/unictype/categ_of.h: Likewise.
20382         * lib/unictype/combining.h: Likewise.
20383         * lib/unictype/ctype_alnum.h: Likewise.
20384         * lib/unictype/ctype_alpha.h: Likewise.
20385         * lib/unictype/ctype_graph.h: Likewise.
20386         * lib/unictype/ctype_lower.h: Likewise.
20387         * lib/unictype/ctype_print.h: Likewise.
20388         * lib/unictype/ctype_punct.h: Likewise.
20389         * lib/unictype/ctype_upper.h: Likewise.
20390         * lib/unictype/decdigit.h: Likewise.
20391         * lib/unictype/digit.h: Likewise.
20392         * lib/unictype/numeric.h: Likewise.
20393         * lib/unictype/pr_alphabetic.h: Likewise.
20394         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20395         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20396         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20397         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20398         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20399         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20400         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20401         * lib/unictype/pr_combining.h: Likewise.
20402         * lib/unictype/pr_composite.h: Likewise.
20403         * lib/unictype/pr_currency_symbol.h: Likewise.
20404         * lib/unictype/pr_dash.h: Likewise.
20405         * lib/unictype/pr_decimal_digit.h: Likewise.
20406         * lib/unictype/pr_deprecated.h: Likewise.
20407         * lib/unictype/pr_diacritic.h: Likewise.
20408         * lib/unictype/pr_extender.h: Likewise.
20409         * lib/unictype/pr_grapheme_base.h: Likewise.
20410         * lib/unictype/pr_grapheme_extend.h: Likewise.
20411         * lib/unictype/pr_grapheme_link.h: Likewise.
20412         * lib/unictype/pr_id_continue.h: Likewise.
20413         * lib/unictype/pr_id_start.h: Likewise.
20414         * lib/unictype/pr_ideographic.h: Likewise.
20415         * lib/unictype/pr_ignorable_control.h: Likewise.
20416         * lib/unictype/pr_logical_order_exception.h: Likewise.
20417         * lib/unictype/pr_lowercase.h: Likewise.
20418         * lib/unictype/pr_numeric.h: Likewise.
20419         * lib/unictype/pr_other_alphabetic.h: Likewise.
20420         * lib/unictype/pr_punctuation.h: Likewise.
20421         * lib/unictype/pr_sentence_terminal.h: Likewise.
20422         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20423         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20424         * lib/unictype/pr_unified_ideograph.h: Likewise.
20425         * lib/unictype/pr_uppercase.h: Likewise.
20426         * lib/unictype/pr_xid_continue.h: Likewise.
20427         * lib/unictype/pr_xid_start.h: Likewise.
20428         * lib/unictype/pr_zero_width.h: Likewise.
20429         * lib/unictype/scripts.h: Likewise.
20430         * lib/unictype/scripts_byname.gperf: Likewise.
20431         * lib/unictype/sy_java_ident.h: Likewise.
20432         * lib/unigbrk/gbrkprop.h: Likewise.
20433         * lib/unilbrk/lbrkprop1.h: Likewise.
20434         * lib/unilbrk/lbrkprop2.h: Likewise.
20435         * lib/unilbrk/lbrktables.h: Likewise.
20436         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20437         LBP_CP. Implement rule LB30.
20438         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20439         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20440         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20441         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20442         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20443         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20444         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20445         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20446         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20447         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20448         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20449         bits instead of 16 bits in the code1 and code2 of each composition
20450         rule.
20451         (uc_composition): Update for Unicode 5.2.0.
20452         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20453         * lib/uninorm/decomposition-table2.h: Likewise.
20454         * lib/uniwbrk/wbrkprop.h: Likewise.
20455         * tests/unicase/test-cased.c: Likewise.
20456         * tests/unicase/test-ignorable.c: Likewise.
20457         * tests/unicase/test-uc_tolower.c: Likewise.
20458         * tests/unicase/test-uc_totitle.c: Likewise.
20459         * tests/unicase/test-uc_toupper.c: Likewise.
20460         * tests/unictype/test-categ_C.c: Likewise.
20461         * tests/unictype/test-categ_Cf.c: Likewise.
20462         * tests/unictype/test-categ_Cn.c: Likewise.
20463         * tests/unictype/test-categ_L.c: Likewise.
20464         * tests/unictype/test-categ_Ll.c: Likewise.
20465         * tests/unictype/test-categ_Lm.c: Likewise.
20466         * tests/unictype/test-categ_Lo.c: Likewise.
20467         * tests/unictype/test-categ_Lu.c: Likewise.
20468         * tests/unictype/test-categ_M.c: Likewise.
20469         * tests/unictype/test-categ_Mc.c: Likewise.
20470         * tests/unictype/test-categ_Mn.c: Likewise.
20471         * tests/unictype/test-categ_N.c: Likewise.
20472         * tests/unictype/test-categ_Nd.c: Likewise.
20473         * tests/unictype/test-categ_Nl.c: Likewise.
20474         * tests/unictype/test-categ_No.c: Likewise.
20475         * tests/unictype/test-categ_P.c: Likewise.
20476         * tests/unictype/test-categ_Pd.c: Likewise.
20477         * tests/unictype/test-categ_Po.c: Likewise.
20478         * tests/unictype/test-categ_S.c: Likewise.
20479         * tests/unictype/test-categ_Sc.c: Likewise.
20480         * tests/unictype/test-categ_So.c: Likewise.
20481         * tests/unictype/test-ctype_alnum.c: Likewise.
20482         * tests/unictype/test-ctype_alpha.c: Likewise.
20483         * tests/unictype/test-ctype_graph.c: Likewise.
20484         * tests/unictype/test-ctype_lower.c: Likewise.
20485         * tests/unictype/test-ctype_print.c: Likewise.
20486         * tests/unictype/test-ctype_punct.c: Likewise.
20487         * tests/unictype/test-ctype_upper.c: Likewise.
20488         * tests/unictype/test-decdigit.h: Likewise.
20489         * tests/unictype/test-digit.h: Likewise.
20490         * tests/unictype/test-numeric.h: Likewise.
20491         * tests/unictype/test-pr_alphabetic.c: Likewise.
20492         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20493         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20494         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20495         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20496         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20497         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20498         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20499         * tests/unictype/test-pr_combining.c: Likewise.
20500         * tests/unictype/test-pr_composite.c: Likewise.
20501         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20502         * tests/unictype/test-pr_dash.c: Likewise.
20503         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20504         * tests/unictype/test-pr_deprecated.c: Likewise.
20505         * tests/unictype/test-pr_diacritic.c: Likewise.
20506         * tests/unictype/test-pr_extender.c: Likewise.
20507         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20508         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20509         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20510         * tests/unictype/test-pr_id_continue.c: Likewise.
20511         * tests/unictype/test-pr_id_start.c: Likewise.
20512         * tests/unictype/test-pr_ideographic.c: Likewise.
20513         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20514         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20515         * tests/unictype/test-pr_lowercase.c: Likewise.
20516         * tests/unictype/test-pr_numeric.c: Likewise.
20517         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20518         * tests/unictype/test-pr_punctuation.c: Likewise.
20519         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20520         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20521         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20522         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20523         * tests/unictype/test-pr_uppercase.c: Likewise.
20524         * tests/unictype/test-pr_xid_continue.c: Likewise.
20525         * tests/unictype/test-pr_xid_start.c: Likewise.
20526         * tests/unictype/test-pr_zero_width.c: Likewise.
20527         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20528         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20529         changed behaviour: line breaking is now disallowed between a letter
20530         or '=' and '('.
20531         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20532         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20533         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20534         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20535         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20536         lib/uniwidth/width.c.
20537         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20538         without comments, but with the original copyright notice.
20539         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20540         changes.
20541         * lib/unictype/categ_Cc.h: Likewise.
20542         * lib/unictype/categ_Co.h: Likewise.
20543         * lib/unictype/categ_Cs.h: Likewise.
20544         * lib/unictype/categ_Lt.h: Likewise.
20545         * lib/unictype/categ_Me.h: Likewise.
20546         * lib/unictype/categ_Pc.h: Likewise.
20547         * lib/unictype/categ_Pe.h: Likewise.
20548         * lib/unictype/categ_Pf.h: Likewise.
20549         * lib/unictype/categ_Pi.h: Likewise.
20550         * lib/unictype/categ_Ps.h: Likewise.
20551         * lib/unictype/categ_Sk.h: Likewise.
20552         * lib/unictype/categ_Sm.h: Likewise.
20553         * lib/unictype/categ_Z.h: Likewise.
20554         * lib/unictype/categ_Zl.h: Likewise.
20555         * lib/unictype/categ_Zp.h: Likewise.
20556         * lib/unictype/categ_Zs.h: Likewise.
20557         * lib/unictype/ctype_blank.h: Likewise.
20558         * lib/unictype/ctype_cntrl.h: Likewise.
20559         * lib/unictype/ctype_digit.h: Likewise.
20560         * lib/unictype/ctype_space.h: Likewise.
20561         * lib/unictype/ctype_xdigit.h: Likewise.
20562         * lib/unictype/mirror.h: Likewise.
20563         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20564         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20565         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20566         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20567         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20568         * lib/unictype/pr_bidi_control.h: Likewise.
20569         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20570         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20571         * lib/unictype/pr_bidi_pdf.h: Likewise.
20572         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20573         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20574         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20575         * lib/unictype/pr_format_control.h: Likewise.
20576         * lib/unictype/pr_hex_digit.h: Likewise.
20577         * lib/unictype/pr_hyphen.h: Likewise.
20578         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20579         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20580         * lib/unictype/pr_iso_control.h: Likewise.
20581         * lib/unictype/pr_join_control.h: Likewise.
20582         * lib/unictype/pr_left_of_pair.h: Likewise.
20583         * lib/unictype/pr_line_separator.h: Likewise.
20584         * lib/unictype/pr_math.h: Likewise.
20585         * lib/unictype/pr_non_break.h: Likewise.
20586         * lib/unictype/pr_not_a_character.h: Likewise.
20587         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20588         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20589         * lib/unictype/pr_other_id_continue.h: Likewise.
20590         * lib/unictype/pr_other_id_start.h: Likewise.
20591         * lib/unictype/pr_other_lowercase.h: Likewise.
20592         * lib/unictype/pr_other_math.h: Likewise.
20593         * lib/unictype/pr_other_uppercase.h: Likewise.
20594         * lib/unictype/pr_paired_punctuation.h: Likewise.
20595         * lib/unictype/pr_paragraph_separator.h: Likewise.
20596         * lib/unictype/pr_pattern_syntax.h: Likewise.
20597         * lib/unictype/pr_pattern_white_space.h: Likewise.
20598         * lib/unictype/pr_private_use.h: Likewise.
20599         * lib/unictype/pr_quotation_mark.h: Likewise.
20600         * lib/unictype/pr_radical.h: Likewise.
20601         * lib/unictype/pr_soft_dotted.h: Likewise.
20602         * lib/unictype/pr_space.h: Likewise.
20603         * lib/unictype/pr_titlecase.h: Likewise.
20604         * lib/unictype/pr_variation_selector.h: Likewise.
20605         * lib/unictype/pr_white_space.h: Likewise.
20606         * lib/unictype/sy_c_ident.h: Likewise.
20607         * lib/unictype/sy_c_whitespace.h: Likewise.
20608         * lib/unictype/sy_java_whitespace.h: Likewise.
20609         * modules/uni*/*: Bump version number of expected libunistring version.
20610         Reported by Simon Josefsson.
20611
20612 2011-01-09  Karl Heuer  <kwzh@gnu.org>
20613
20614         useless-if-before-free: fix typo in --help and make the internal,
20615         automatic version date update process work once again.
20616         --help output contained a NUL character instead of the
20617         backslash-zero that was intended.  Also, the "must lie within
20618         the first 8 lines" line is on line 9, and hence not getting
20619         automatically updated.
20620         * build-aux/useless-if-before-free: Fix the former by adding a
20621         backslash, and the latter by condensing the three lines of what-it-does
20622         to a single line, leaving one line of slack for the future.
20623
20624 2011-01-09  Bruno Haible  <bruno@clisp.org>
20625
20626         uniwidth/width: Fix width of U+1D173..U+1D17A.
20627         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
20628         symbolic_width, output_width_property_test): New functions.
20629         (main): Invoke output_nonspacing_property, output_width_property_test.
20630         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
20631         U+1D173..U+1D17A.
20632         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
20633         1.
20634         * modules/uniwidth/*: Bump version number of expected libunistring
20635         version.
20636         * modules/unilbrk/*: Likewise.
20637
20638 2011-01-08  Bruno Haible  <bruno@clisp.org>
20639
20640         uninorm tests: Preserve copyright of Unicode data file.
20641         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
20642         Mention modifications.
20643
20644 2011-01-08  Bruno Haible  <bruno@clisp.org>
20645
20646         gen-uni-tables: Prepare for Unicode 5.2.0.
20647         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
20648         (debug_output_lbp, output_lbp): Update.
20649
20650 2011-01-08  Bruno Haible  <bruno@clisp.org>
20651
20652         unilbrk: Clarify gen-uni-tables.c code.
20653         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
20654         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
20655         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
20656
20657 2011-01-07  Bruno Haible  <bruno@clisp.org>
20658
20659         strtod: Restore errno when successfully parsing Infinity or NaN.
20660         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
20661         restore the original errno.
20662
20663 2011-01-07  Bruno Haible  <bruno@clisp.org>
20664
20665         remove test: Avoid failure on HP-UX 11.
20666         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
20667
20668 2011-01-07  Bruno Haible  <bruno@clisp.org>
20669
20670         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
20671         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
20672         error code.
20673
20674 2011-01-07  Pádraig Brady <P@draigBrady.com>
20675
20676         ignore-value: fixup comments, and add Eric Blake
20677         as an author since he rewrote the macros.
20678         * lib/ignore-value.h (ignore_value):  State that
20679         we now support aggregates.  Also specify exactly
20680         when the GCC warn_unused_result feature was added.
20681
20682 2011-01-06  Eric Blake  <eblake@redhat.com>
20683
20684         ignore-value: support aggregate types
20685         * lib/ignore-value.h (ignore_value): Provide separate gcc
20686         definition.
20687         * modules/ignore-value-tests: New test module.
20688         * tests/test-ignore-value.c: New test.
20689
20690         maint.mk: improve sc_prohibit_strcmp regex
20691         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
20692         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
20693         definition of STRNEQ.
20694
20695         signal: work around Haiku issue with SIGBUS
20696         * lib/siglist.h: Add comment.
20697         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
20698         strsignal's favoring of SIGSEGV.
20699         * tests/test-signal.c (main): Avoid test failure.
20700         * doc/posix-headers/signal.texi (signal.h): Document the issue.
20701         Reported by Scott McCreary.
20702
20703         maint.mk: add pre-release check to ensure submodule commits are public
20704         * top/maint.mk (public-submodule-commit): New rule.
20705         (submodule-checks): New variable.
20706         (alpha beta stable): Depend on the variable.
20707
20708 2011-01-05  Pádraig Brady <P@draigBrady.com>
20709         and Jim Meyering  <meyering@redhat.com>
20710
20711         ignore-value: make ignore_value more generic; deprecate ignore_ptr
20712         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
20713         (ATTRIBUTE_DEPRECATED): Define.
20714         (_ignore_case): New function.
20715         (ignore_value): New macro, to replace the old function.
20716         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
20717         * modules/ignore-value (Depends-on): Add stdint.
20718
20719 2011-01-04  Eric Blake  <eblake@redhat.com>
20720
20721         doc: regenerate INSTALL
20722         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
20723         @firstparagraphindent support, now that autoconf dropped it.
20724         (INSTALL_PRELUDE): Reinstate old macro.
20725         * doc/install.texi: Resync from autoconf.
20726         * doc/INSTALL: Reflect recent autoconf update.
20727         * doc/INSTALL.ISO: Likewise.
20728         * doc/INSTALL.UTF-8: Likewise.
20729         Reported by Karl Berry.
20730
20731 2011-01-04  Bruce Korb  <address@hidden>
20732
20733         git-version-gen: avoid a sub-shell
20734         * build-aux/git-version-gen: Redirect stderr in `...` via
20735         "exec 2>...", rather than via an added sub-shell.
20736
20737 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20738
20739         git-version-gen: use (...) rather than sh -c '...'
20740         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20741         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20742
20743 2011-01-03  Jim Meyering  <meyering@redhat.com>
20744
20745         git-version-gen: convert leading TABs to spaces
20746         * build-aux/git-version-gen: Expand leading TABs.
20747
20748         git-version-gen: handle failed "git rev-list"
20749         * build-aux/git-version-gen: Rather than leaking a "fatal" error
20750         from git and proceeding as if it had succeeded but printed no SHA1
20751         checksums, suppress the diagnostic and handle the failure.
20752         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
20753
20754         git-version-gen: include command name in one more diagnostic
20755         * build-aux/git-version-gen: When the required .tarball-version file
20756         was missing or unreadable, you might see the diagnostic from "cat",
20757         but no trace of the name of the invoking script.  Now, you still see
20758         the diagnostic from cat, but also get one from "git-version-gen: ".
20759         Inspired by a patch from Bruce Korb.
20760
20761         update-copyright: adjust test to match changed code
20762         * tests/test-update-copyright.sh: Change test's expected output
20763         to match new actual output.
20764
20765 2011-01-02  Bruno Haible  <bruno@clisp.org>
20766
20767         getlogin_r: Avoid test failure on HP-UX 11.
20768         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
20769         ERANGE when the second argument is zero.
20770         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
20771         portability problem.
20772
20773 2011-01-02  Bruce Korb  <bkorb@gnu.org>
20774
20775         * build-aux/update-copyright: doc Simon's changes
20776
20777 2011-01-02  Simon Josefsson  <simon@josefsson.org>
20778
20779         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
20780         environment variable.
20781
20782 2011-01-02  Bruno Haible  <bruno@clisp.org>
20783
20784         unigbrk: Avoid gcc warnings.
20785         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
20786         unused variable.
20787         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
20788         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
20789         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
20790         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
20791         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
20792         Change type of first argument to 'const char *'.
20793         (main): Remove unused variable.
20794         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
20795         type of first argument to 'const char *'.
20796         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
20797         Likewise.
20798         (main): Change type of variable 's'.
20799         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
20800         to 'int'.
20801
20802 2011-01-02  Bruno Haible  <bruno@clisp.org>
20803
20804         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
20805         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
20806         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
20807         bug.
20808         * lib/pwrite.c: Undo 2010-12-31 patch.
20809         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
20810
20811 2011-01-02  Bruno Haible  <bruno@clisp.org>
20812
20813         pread: Fix test whether it works.
20814         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
20815
20816 2011-01-02  Bruno Haible  <bruno@clisp.org>
20817
20818         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
20819         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
20820         ends in "6". Don't require a specific month name. Try also the locale
20821         names found on HP-UX 11 and Solaris 7.
20822
20823 2011-01-02  Bruno Haible  <bruno@clisp.org>
20824
20825         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
20826         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
20827         C linkage.
20828         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
20829
20830 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20831
20832         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
20833         for consistency, since the "cluster" term is not used elsewhere.
20834         * lib/unigbrk.in.h: Update name.
20835         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
20836         * lib/unigbrk/u16-grapheme-next.c: Update name.
20837         * lib/unigbrk/u16-grapheme-prev.c: Update name.
20838         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
20839         * lib/unigbrk/u32-grapheme-next.c: Update name.
20840         * lib/unigbrk/u32-grapheme-prev.c: Update name.
20841         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20842         * lib/unigbrk/u8-grapheme-next.c: Update name.
20843         * lib/unigbrk/u8-grapheme-prev.c: Update name.
20844         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
20845         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
20846         Suggested by Bruno Haible.
20847
20848 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20849
20850         Remove module 'u8-grapheme-len' as too redundant with
20851         'u8-grapheme-next'.
20852         * modules/unigbrk/u8-grapheme-len: Delete file.
20853         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
20854         * lib/unigbrk.in.h: Remove prototype for deleted function.
20855         * lib/unigbrk/u8-grapheme-len.c: Delete file.
20856         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
20857
20858         Remove module 'u16-grapheme-len' as too redundant with
20859         'u16-grapheme-next'.
20860         * modules/unigbrk/u16-grapheme-len: Delete file.
20861         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
20862         * lib/unigbrk.in.h: Remove prototype for deleted function.
20863         * lib/unigbrk/u16-grapheme-len.c: Delete file.
20864         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
20865
20866         Remove module 'u32-grapheme-len' as too redundant with
20867         'u32-grapheme-next'.
20868         * modules/unigbrk/u32-grapheme-len: Delete file.
20869         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
20870         * lib/unigbrk.in.h: Remove prototype for deleted function.
20871         * lib/unigbrk/u32-grapheme-len.c: Delete file.
20872         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
20873
20874         Suggested by Bruno Haible.
20875
20876 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20877
20878         * unigbrk.in.h: Fix typo: "ben" => "been".
20879         Reported by Bruno Haible.
20880
20881 2011-01-01  Jim Meyering  <meyering@redhat.com>
20882
20883         maint: update almost all copyright ranges to include 2011
20884         Run the new "make update-copyright" rule.
20885
20886 2011-01-01  Jim Meyering  <meyering@redhat.com>
20887
20888         maint: update-copyright: exempt doc/INSTALL*
20889         * Makefile (update-copyright): Also exclude doc/INSTALL*,
20890         since they are generated.  Suggested by Bruno Haible.
20891
20892 2011-01-01  Jim Meyering  <meyering@redhat.com>
20893
20894         maint: refine the update-copyright rule
20895         * Makefile (update-copyright): Also exclude any file that includes
20896         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
20897         code that merely generates the comment.
20898
20899 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20900
20901         New module 'u8-grapheme-len'.
20902         * modules/unigbrk/u8-grapheme-len: New file.
20903         * modules/unigbrk/u8-grapheme-len-tests: New file.
20904         * lib/unigbrk.in.h: Add prototype for new function.
20905         * lib/unigbrk/u8-grapheme-len.c: New file.
20906         * tests/unigbrk/test-u8-grapheme-len.c: New file.
20907
20908         New module 'u16-grapheme-len'.
20909         * modules/unigbrk/u16-grapheme-len: New file.
20910         * modules/unigbrk/u16-grapheme-len-tests: New file.
20911         * lib/unigbrk.in.h: Add prototype for new function.
20912         * lib/unigbrk/u16-grapheme-len.c: New file.
20913         * tests/unigbrk/test-u16-grapheme-len.c: New file.
20914
20915         New module 'u32-grapheme-len'.
20916         * modules/unigbrk/u32-grapheme-len: New file.
20917         * modules/unigbrk/u32-grapheme-len-tests: New file.
20918         * lib/unigbrk.in.h: Add prototype for new function.
20919         * lib/unigbrk/u32-grapheme-len.c: New file.
20920         * tests/unigbrk/test-u32-grapheme-len.c: New file.
20921
20922         New module 'u8-grapheme-next'.
20923         * modules/unigbrk/u8-grapheme-next: New file.
20924         * modules/unigbrk/u8-grapheme-next-tests: New file.
20925         * lib/unigbrk.in.h: Add prototype for new function.
20926         * lib/unigbrk/u8-grapheme-next.c: New file.
20927         * tests/unigbrk/test-u8-grapheme-next.c: New file.
20928
20929         New module 'u16-grapheme-next'.
20930         * modules/unigbrk/u16-grapheme-next: New file.
20931         * modules/unigbrk/u16-grapheme-next-tests: New file.
20932         * lib/unigbrk.in.h: Add prototype for new function.
20933         * lib/unigbrk/u16-grapheme-next.c: New file.
20934         * tests/unigbrk/test-u16-grapheme-next.c: New file.
20935
20936         New module 'u32-grapheme-next'.
20937         * modules/unigbrk/u32-grapheme-next: New file.
20938         * modules/unigbrk/u32-grapheme-next-tests: New file.
20939         * lib/unigbrk.in.h: Add prototype for new function.
20940         * lib/unigbrk/u32-grapheme-next.c: New file.
20941         * tests/unigbrk/test-u32-grapheme-next.c: New file.
20942
20943         New module 'u8-grapheme-prev'.
20944         * modules/unigbrk/u8-grapheme-prev: New file.
20945         * modules/unigbrk/u8-grapheme-prev-tests: New file.
20946         * lib/unigbrk.in.h: Add prototype for new function.
20947         * lib/unigbrk/u8-grapheme-prev.c: New file.
20948         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20949
20950         New module 'u16-grapheme-prev'.
20951         * modules/unigbrk/u16-grapheme-prev: New file.
20952         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20953         * lib/unigbrk.in.h: Add prototype for new function.
20954         * lib/unigbrk/u16-grapheme-prev.c: New file.
20955         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20956
20957         New module 'u32-grapheme-prev'.
20958         * modules/unigbrk/u32-grapheme-prev: New file.
20959         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20960         * lib/unigbrk.in.h: Add prototype for new function.
20961         * lib/unigbrk/u32-grapheme-prev.c: New file.
20962         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20963
20964         New module 'u8-grapheme-breaks'.
20965         * modules/unigbrk/u8-grapheme-breaks: New file.
20966         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20967         * lib/unigbrk.in.h: Add prototype for new function.
20968         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20969         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20970
20971         New module 'u16-grapheme-breaks'.
20972         * modules/unigbrk/u16-grapheme-breaks: New file.
20973         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20974         * lib/unigbrk.in.h: Add prototype for new function.
20975         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20976         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20977
20978         New module 'u32-grapheme-breaks'.
20979         * modules/unigbrk/u32-grapheme-breaks: New file.
20980         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20981         * lib/unigbrk.in.h: Add prototype for new function.
20982         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20983         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20984
20985         New module 'ulc-grapheme-breaks'.
20986         * modules/unigbrk/ulc-grapheme-breaks: New file.
20987         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20988         * m4/locale-ar.m4: New file.
20989         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20990         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20991         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20992
20993 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20994
20995         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20996         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20997         modified how this file was generated before I initially submitted
20998         the module, but failed to regenerate it.  This meant that several
20999         of the level2 entries were wrong.
21000         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21001         Remove the division-by-2 that is folded into the table now that
21002         gbrkprop.h has been regenerated properly.  Now -1 entries are
21003         handled correctly.
21004
21005         New module 'unigbrk/uc-gbrk-prop-tests'.
21006         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21007         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21008         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21009         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21010
21011 2011-01-01  Bruno Haible  <bruno@clisp.org>
21012
21013         Avoid use of hexadecimal escapes.
21014         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21015         instead of hexadecimal escapes.
21016
21017 2011-01-01  Jim Meyering  <meyering@redhat.com>
21018
21019         maint: new rule to update copyright year ranges
21020         * Makefile (update-copyright): New rule.
21021
21022         maint: indent with TABs in Makefile
21023         * Makefile: Expand leading sequences of spaces to TABs
21024
21025         version-etc: update the copyright year it reports
21026         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21027
21028 2010-12-31  Bruno Haible  <bruno@clisp.org>
21029
21030         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21031         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21032         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21033         zero.
21034
21035 2010-12-31  Bruno Haible  <bruno@clisp.org>
21036
21037         pwrite: Work around HP-UX 11.11 bug.
21038         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21039         works and set REPLACE_PWRITE if not.
21040         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21041         function.
21042         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21043
21044 2010-12-31  Bruno Haible  <bruno@clisp.org>
21045
21046         pread: Work around HP-UX 11 bugs.
21047         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21048         and set REPLACE_PREAD if not.
21049         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21050
21051 2010-12-31  Eric Blake  <eblake@redhat.com>
21052
21053         nl_langinfo: fix YESEXPR on Irix 6.5
21054         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21055         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21056         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21057         it.
21058
21059 2010-12-31  Bruno Haible  <bruno@clisp.org>
21060
21061         iconv: Document HP-UX 11 bug.
21062         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21063
21064 2010-12-31  Bruno Haible  <bruno@clisp.org>
21065
21066         ldexpl: Fix link error on HP-UX 11.
21067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21068         LDEXPL_LIBM, using $ISNANL_LIBM.
21069
21070 2010-12-31  Eric Blake  <eblake@redhat.com>
21071
21072         ftello: avoid compilation failure with SunStudio c89
21073         * lib/ftello.c (ftello): Use lseek, not llseek.
21074
21075         tests: avoid failing coreutils tests on cygwin
21076         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21077         (create_exe_shims_): Return 0 when skipping.
21078
21079 2010-12-31  Bruno Haible  <bruno@clisp.org>
21080
21081         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21082         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21083
21084 2010-12-31  Bruno Haible  <bruno@clisp.org>
21085
21086         waitpid: Fix link error in C++ mode.
21087         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21088
21089 2010-12-31  Bruno Haible  <bruno@clisp.org>
21090
21091         isnan: Use GCC built-ins when possible.
21092         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21093         __builtin_isnan.
21094         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21095         (isnan): Define using GCC built-ins for GCC >= 4.0.
21096
21097 2010-12-31  Bruno Haible  <bruno@clisp.org>
21098
21099         isnand: Fix mistake.
21100         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21101         __builtin_isnand.
21102
21103 2010-12-31  Bruno Haible  <bruno@clisp.org>
21104
21105         open: Avoid C++ error on HP-UX 11.
21106         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21107
21108 2010-12-31  Bruno Haible  <bruno@clisp.org>
21109
21110         time_r: Add missing declarations on HP-UX 11.
21111         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21112         instead of HAVE_LOCALTIME_R.
21113         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21114         HAVE_LOCALTIME_R always.
21115         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21116         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21117         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21118         HAVE_LOCALTIME_R.
21119         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21120         * doc/posix-functions/localtime_r.texi: Likewise.
21121
21122 2010-12-29  Eric Blake  <eblake@redhat.com>
21123
21124         mountlist: tweak previous commit
21125         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21126         Reported by Paul Eggert.
21127
21128         mountlist: fix local drive detection on cygwin
21129         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21130         that works for cygwin.
21131
21132 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21133
21134         ftoastr, snprintf: ftoastr + snprintf module
21135         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21136         since the snprintf module now should be good enough here.
21137         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21138         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21139         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21140         GNULIB_SNPRINTF only for the test directory, and the latter
21141         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21142         seems to suffice by itself.
21143
21144 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21145
21146         alloca: one step towards thread-safety
21147         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21148         need for a static variable.  All callers changed.  This does not
21149         make the alloca replacement thread-safe, but it's one step.
21150
21151         tests: minor indenting change
21152         * tests/init.sh: Sync from coreutils housekeeping patch
21153         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21154         to keep lines within 80 columns.
21155
21156 2010-12-28  Jim Meyering  <meyering@redhat.com>
21157
21158         regex: don't infloop on persistent failing calloc
21159         * lib/regexec.c (build_trtable): Return failure indication upon
21160         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21161         In glibc, this was fixed for version 2.13:
21162         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21163
21164 2010-12-28  Bruno Haible  <bruno@clisp.org>
21165             Paul Eggert <eggert@cs.ucla.edu>
21166
21167         linkat: Make implementation robust against system behaviour variations.
21168         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21169         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21170         way, and to -2 if it needs a generic runtime test.
21171         * lib/linkat.c (solaris_optimized_link_immediate,
21172         solaris_optimized_link_follow): New functions.
21173         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21174         (check_same_link): Use it.
21175
21176 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21177
21178         New module 'unigbrk/base'.
21179         * modules/unigbrk/base: New file.
21180         * lib/unigbrk.in.h: New file.
21181
21182         New module 'unigbrk/uc-gbrk-prop'.
21183         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21184         * modules/unigbrk/uc-gbrk-prop: New file.
21185         * lib/unigbrk/gbrkprop.h: New file.
21186         * lib/unigbrk/uc-gbrk-prop.c: New file.
21187
21188         New module 'unigbrk/uc-is-grapheme-break'.
21189         * modules/unigbrk/uc-is-grapheme-break: New file.
21190         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21191         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21192         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21193         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21194         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21195
21196         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21197
21198 2010-12-27  Bruno Haible  <bruno@clisp.org>
21199
21200         linkat test: Avoid failure on Solaris 11 2010-11.
21201         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21202
21203 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21204
21205         utimens: work around glibc rounding bug on more platforms
21206         * lib/utimens.c (fdutimens): Work around rounding bug even if
21207         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21208         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21209
21210 2010-12-27  Bruno Haible  <bruno@clisp.org>
21211
21212         select tests: Improve comments.
21213         * tests/test-select.c (do_select): Add comments.
21214
21215 2010-12-27  Bruno Haible  <bruno@clisp.org>
21216
21217         select tests: Safer way of handling timeout.
21218         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21219         at every invocation.
21220
21221 2010-12-27  Bruno Haible  <bruno@clisp.org>
21222
21223         select tests: Use 'bool' where appropriate.
21224         * tests/test-select.c (connect_to_socket): Change argument type to
21225         'bool'.
21226
21227 2010-12-27  Bruno Haible  <bruno@clisp.org>
21228
21229         select tests: Use existing modules.
21230         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21231         (configure.ac): Don't test for unistd.h.
21232         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21233         declared in <unistd.h>.
21234
21235 2010-12-27  Bruno Haible  <bruno@clisp.org>
21236
21237         mbrtowc: Work around a Solaris 7 bug.
21238         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21239         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21240         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21241         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21242         MBRTOWC_NULL_ARG1_BUG.
21243         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21244         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21245         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21246         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21247
21248 2010-12-27  Jim Meyering  <meyering@redhat.com>
21249
21250         read-file.c: tweak syntax
21251         * lib/read-file.c (fread_file): Remove space after "*" in function
21252         definitions.
21253
21254 2010-12-27  Bruno Haible  <bruno@clisp.org>
21255
21256         times test: Avoid gcc warnings on OSF/1.
21257         * tests/test-times.c (main): Cast printf arguments from clock_t to
21258         'long int'.
21259
21260 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21261
21262         utimens: work around glibc rounding bug on older Linux kernels
21263         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21264         on Linux with a glibc whose utimes might not work, then work
21265         around a longstanding glibc bug involving rounding rather than
21266         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21267         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21268
21269 2010-12-26  Bruno Haible  <bruno@clisp.org>
21270
21271         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21272         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21273         _GL_CXXALIAS_SYS.
21274         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21275
21276 2010-12-26  Bruno Haible  <bruno@clisp.org>
21277
21278         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21279         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21280         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21281         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21282         looking for the declaration.
21283         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21284         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21285         problem.
21286         * doc/posix-functions/inet_pton.texi: Likewise.
21287
21288 2010-12-26  Bruno Haible  <bruno@clisp.org>
21289
21290         arpa_inet: Use the common idioms with C++ support.
21291         * lib/arpa_inet.in.h: Include c++defs.h.
21292         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21293         support.
21294         * modules/arpa_inet (Depends-on): Add c++defs.
21295         (Makefile.am): Substitute the contents of c++defs.h.
21296         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21297         * modules/arpa_inet-c++-tests: New file.
21298         * tests/test-arpa_inet-c++.cc: New file.
21299
21300 2010-12-25  Bruno Haible  <bruno@clisp.org>
21301
21302         Fix more C++ link errors on Solaris 8.
21303         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21304         $(LIB_EACCESS).
21305         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21306         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21307         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21308         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21309         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21310
21311 2010-12-25  Bruno Haible  <bruno@clisp.org>
21312
21313         printf-posix: Fix link error when a non-GCC compiler is used.
21314         * lib/stdio.in.h (printf): When not using GCC, override printf
21315         correctly.
21316         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21317
21318 2010-12-25  Bruno Haible  <bruno@clisp.org>
21319
21320         strerror_r-posix: Update doc.
21321         * doc/posix-functions/strerror_r.texi: Update doc about the return
21322         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21323
21324 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21325
21326         utimens: simplify the logic of the previous change
21327         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21328         This should not affect whether the test succeeds or fails.
21329
21330         utimens: configure better on hosts with NFS clock skew
21331         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21332         uses the clock of the local host.  It might use the clock of the
21333         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21334         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21335
21336 2010-12-25  Bruno Haible  <bruno@clisp.org>
21337
21338         ptsname test: Avoid failure on Solaris.
21339         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21340         open a pseudo-terminal; don't use BSD-style ptys.
21341         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21342
21343 2010-12-25  Bruno Haible  <bruno@clisp.org>
21344
21345         ptsname: Avoid ERANGE failure on some systems.
21346         * lib/ptsname.c (buffer): Increase size.
21347
21348 2010-12-25  Bruno Haible  <bruno@clisp.org>
21349
21350         rename, renameat: Avoid test failures at NFS mounted locations.
21351         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21352         so that subsequent mkdir calls succeed.
21353
21354 2010-12-25  Bruno Haible  <bruno@clisp.org>
21355
21356         iswblank: Fix C++ link error on Solaris 8.
21357         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21358         _GL_FUNCDECL_SYS.
21359
21360 2010-12-25  Bruno Haible  <bruno@clisp.org>
21361
21362         unistd: Fix C++ link error on Solaris 8.
21363         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21364
21365 2010-12-25  Bruno Haible  <bruno@clisp.org>
21366
21367         readlink doc: Mention an old glibc bug.
21368         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21369
21370 2010-12-25  Bruno Haible  <bruno@clisp.org>
21371
21372         fcntl-h: Fix for use of C++ on glibc systems.
21373         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21374         also on glibc systems in C++ mode.
21375         Reported by Gary V. Vaughan <gary@gnu.org>.
21376
21377 2010-12-25  Bruno Haible  <bruno@clisp.org>
21378
21379         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21380         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21381
21382 2010-12-25  Bruno Haible  <bruno@clisp.org>
21383
21384         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21385         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21386         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21387         test whether truncl works according to ISO C 99 with IEC 60559.
21388         * m4/truncl-ieee.m4: New file.
21389         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21390         m4/signbit.m4.
21391         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21392
21393 2010-12-25  Bruno Haible  <bruno@clisp.org>
21394
21395         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21396         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21397         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21398         test whether ceill works according to ISO C 99 with IEC 60559.
21399         * m4/ceill-ieee.m4: New file.
21400         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21401         m4/signbit.m4.
21402         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21403
21404 2010-12-25  Bruno Haible  <bruno@clisp.org>
21405
21406         Ensure all prerequisites of <wchar.h> are included.
21407         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21408         before <wchar.h>.
21409         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21410         gl_MBRLEN_NUL_RETVAL): Likewise.
21411         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21412         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21413         AC_FUNC_MBRTOWC): Likewise.
21414         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21415         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21416         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21417         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21418         Likewise.
21419         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21420         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21421         (gl_WCHAR_H): Improve comments.
21422         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21423
21424 2010-12-25  Bruno Haible  <bruno@clisp.org>
21425
21426         strtok_r: Fix C syntax error in autoconf macro.
21427         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21428         characters in test program.
21429
21430 2010-12-24  Bruno Haible  <bruno@clisp.org>
21431
21432         ceil, trunc, round: Fix gcc warnings.
21433         * lib/ceil.c (MIN): Undefine before redefining.
21434         * lib/trunc.c (MIN): Likewise.
21435         * lib/round.c (MIN): Likewise.
21436         Include <math.h> first.
21437
21438 2010-12-24  Bruno Haible  <bruno@clisp.org>
21439
21440         select tests: Avoid failures on OSF/1 5.1.
21441         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21442         failure of closing the last socket; it may fail with ECONNRESET.
21443
21444 2010-12-24  Eric Blake  <eblake@redhat.com>
21445
21446         stdint: avoid HP-UX 10.20 preprocessor bug
21447         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21448         than #if.
21449         * tests/test-floor2.c (main): Likewise.
21450         Reported by Peter O'Gorman.
21451
21452         pipe: make obsoletion transition easier
21453         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21454         * modules/pipe (Files): Include revived file.
21455         (Include): Drop reference, to mirror getdate's behavior.
21456
21457 2010-12-24  Bruno Haible  <bruno@clisp.org>
21458
21459         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21460         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21461         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21462         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21463
21464 2010-12-24  Bruno Haible  <bruno@clisp.org>
21465
21466         gethostname: Ensure declaration on NonStop Kernel.
21467         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21468         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21469
21470 2010-12-24  Bruno Haible  <bruno@clisp.org>
21471
21472         sys_select: Ensure all necessary types on NonStop Kernel.
21473         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21474         include <sys/time.h>.
21475         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21476         NonStop Kernel.
21477         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21478
21479 2010-12-24  Bruno Haible  <bruno@clisp.org>
21480
21481         sys_select: Remove unneeded include.
21482         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21483         have <sys/select.h>.
21484
21485 2010-12-24  Bruno Haible  <bruno@clisp.org>
21486
21487         gethostname: Provide a fallback for HOST_NAME_MAX.
21488         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21489         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21490         instead.
21491         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21492
21493 2010-12-24  Bruno Haible  <bruno@clisp.org>
21494
21495         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21496         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21497         (SA_RESTART): Likewise.
21498         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21499
21500 2010-12-24  Bruno Haible  <bruno@clisp.org>
21501
21502         signal: Define NSIG.
21503         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21504         * tests/test-signal.c (nsig): New variable.
21505         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21506
21507 2010-12-24  Bruno Haible  <bruno@clisp.org>
21508
21509         rename, renameat: Avoid test failures on OSF/1 5.1.
21510         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21511         alternative error codes.
21512         * tests/test-renameat.c (main): Likewise.
21513
21514 2010-12-24  Bruno Haible  <bruno@clisp.org>
21515
21516         *printf: Detect large precisions bug on Solaris 10/SPARC.
21517         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21518         by Paul Eggert.
21519         * tests/test-snprintf-posix.h (test_function): Add this test code here
21520         too.
21521         * tests/test-sprintf-posix.h (test_function): Likewise.
21522         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21523         * tests/test-vasprintf-posix.c (test_function): Likewise.
21524         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21525         around by gnulib.
21526         * doc/posix-functions/printf.texi: Likewise.
21527         * doc/posix-functions/snprintf.texi: Likewise.
21528         * doc/posix-functions/sprintf.texi: Likewise.
21529         * doc/posix-functions/vfprintf.texi: Likewise.
21530         * doc/posix-functions/vprintf.texi: Likewise.
21531         * doc/posix-functions/vsnprintf.texi: Likewise.
21532         * doc/posix-functions/vsprintf.texi: Likewise.
21533         * doc/posix-functions/dprintf.texi: Undo last commit.
21534         * doc/posix-functions/vdprintf.texi: Likewise.
21535
21536 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21537
21538         tests: port test-fdutimensat.c to Solaris 8
21539         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21540         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21541         On Solaris 8, it fails with errno == ENOSYS, because there is no
21542         futimens (so it can't use the fd), and there is no lutimens (so it
21543         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21544
21545         vsnprintf: make more consistent with snprintf; doc fixes
21546
21547         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21548         the byte count return problem was promoted from the snprintf-posix
21549         to the snprintf module.
21550         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21551         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21552         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21553         * tests/test-snprintf.c (main): Check the byte count returned.
21554         * tests/test-vsnprintf.c (main): Likewise.
21555
21556 2010-12-23  Eric Blake  <eblake@redhat.com>
21557
21558         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21559         * modules/sigpipe (License): Relax license.
21560
21561 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21562
21563         doc: document Solaris printf bug with large float precisions
21564         * doc/posix-functions/dprintf.texi (dprintf):
21565         * doc/posix-functions/fprintf.texi (fprintf):
21566         * doc/posix-functions/printf.texi (printf):
21567         * doc/posix-functions/snprintf.texi (snprintf):
21568         * doc/posix-functions/sprintf.texi (sprintf):
21569         * doc/posix-functions/vdprintf.texi (vdprintf):
21570         * doc/posix-functions/vfprintf.texi (vfprintf):
21571         * doc/posix-functions/vprintf.texi (vprintf):
21572         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21573         * doc/posix-functions/vsprintf.texi (vsprintf):
21574         Mention that these functions mishandle large floating point
21575         precisions on Solaris 10.  The same bug is also present in Solaris
21576         8, and I assume earlier.  This causes "cd gnulib-tests; make
21577         check" to fail on Solaris 8 (and I assume, later) when building
21578         the latest coreutils, in test-vasprintf-posix's call to
21579         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21580         the wide flavors (e.g., wprintf) so this patch just updates the
21581         documentation for the narrow ones.
21582
21583         test-posixtm.c: add two tests
21584         * tests/test-posixtm.c: Add two tests, to highlight the
21585         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21586         around this bug; this is merely to document it.
21587
21588 2010-12-22  Bruno Haible  <bruno@clisp.org>
21589
21590         getlogin_r: Work around portability problem on OSF/1.
21591         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21592         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21593         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21594         test for a truncated result.
21595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21596         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
21597         * modules/getlogin_r (Depends-on): Add memchr.
21598         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
21599
21600 2010-12-22  Bruno Haible  <bruno@clisp.org>
21601
21602         ptsname: Avoid test failure on OSF/1 5.1.
21603         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
21604         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
21605         (same_slave): New function.
21606         (main): Use it to compare ptsname's result with the expected file name.
21607
21608 2010-12-22  Bruno Haible  <bruno@clisp.org>
21609
21610         Port extended stdio modules to HP NonStop Kernel.
21611         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
21612         macros.
21613         * lib/fbufmode.c: Update comments.
21614         * lib/fflush.c: Likewise.
21615         * lib/fpurge.c: Likewise.
21616         * lib/freadable.c: Likewise.
21617         * lib/freadahead.c: Likewise.
21618         * lib/freading.c: Likewise.
21619         * lib/freadptr.c: Likewise.
21620         * lib/freadseek.c: Likewise.
21621         * lib/fseeko.c: Likewise.
21622         * lib/fseterr.c: Likewise.
21623         * lib/fwritable.c: Likewise.
21624         * lib/fwriting.c: Likewise.
21625         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21626
21627 2010-12-22  Bruno Haible  <bruno@clisp.org>
21628
21629         ttyname_r: Work around bug on OSF/1 5.1.
21630         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
21631         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
21632         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
21633         present.
21634         * lib/ttyname_r.c (ttyname_r): Update comments.
21635
21636 2010-12-22  Bruno Haible  <bruno@clisp.org>
21637
21638         round: Implement result sign according to IEEE 754.
21639         * lib/round.c (MIN, MINUS_ZERO): New macros.
21640         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
21641         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
21642         * tests/test-round-ieee.c (main): Likewise.
21643         * tests/test-roundl-ieee.c (main): Likewise.
21644
21645         trunc: Implement result sign according to IEEE 754.
21646         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
21647         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
21648         * tests/test-trunc2.c: Include minus-zero.h.
21649         (MINUS_ZERO): New macro.
21650         (trunc_reference): Keep in sync with lib/trunc.c.
21651         * tests/test-truncf2.c: Include minus-zero.h.
21652         (MINUS_ZERO): New macro.
21653         (truncf_reference): Keep in sync with lib/trunc.c.
21654         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
21655         * tests/test-trunc-ieee.c (main): Likewise.
21656         * tests/test-truncl-ieee.c (main): Likewise.
21657
21658         ceil: Implement result sign according to IEEE 754.
21659         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
21660         (FUNC): Return -0.0 for -1 < x < 0.
21661         * tests/test-ceil2.c: Include minus-zero.h.
21662         (MINUS_ZERO): New macro.
21663         (ceil_reference): Keep in sync with lib/ceil.c.
21664         * tests/test-ceilf2.c: Include minus-zero.h.
21665         (MINUS_ZERO): New macro.
21666         (ceilf_reference): Keep in sync with lib/ceil.c.
21667         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
21668         * tests/test-ceil-ieee.c (main): Likewise.
21669         * tests/test-ceill-ieee.c (main): Likewise.
21670
21671         floor: Implement result sign according to IEEE 754.
21672         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
21673         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
21674         * tests/test-floorf2.c (floorf_reference): Likewise.
21675         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
21676         * tests/test-floor-ieee.c (main): Likewise.
21677         * tests/test-floorl-ieee.c (main): Likewise.
21678
21679 2010-12-22  Bruno Haible  <bruno@clisp.org>
21680
21681         getaddrinfo: Update doc.
21682         * doc/posix-functions/gai_strerror.texi: Return type is also different
21683         on AIX and HP-UX.
21684
21685 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21686
21687         getaddrinfo, inet_ntop: Update doc for Solaris.
21688         * doc/posix-functions/gai_strerror.texi: Return type is also an
21689         issue on Solaris 9 and earlier.
21690         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
21691         on Solaris 10 and earlier.
21692
21693 2010-12-21  Bruno Haible  <bruno@clisp.org>
21694
21695         New module 'roundl-ieee'.
21696         * modules/roundl-ieee: New file.
21697         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
21698         test whether roundl works according to ISO C 99 with IEC 60559.
21699         * m4/roundl-ieee.m4: New file.
21700         * modules/roundl-ieee-tests: New file.
21701         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
21702         * tests/test-roundl.c (main): Remove signbit tests.
21703         * modules/roundl-tests (Depends-on): Remove signbit.
21704         * doc/posix-functions/roundl.texi: Mention the new module.
21705
21706 2010-12-21  Bruno Haible  <bruno@clisp.org>
21707
21708         New module 'truncl-ieee'.
21709         * modules/truncl-ieee: New file.
21710         * modules/truncl-ieee-tests: New file.
21711         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
21712         * tests/test-truncl.c (main): Remove signbit tests.
21713         * modules/truncl-tests (Depends-on): Remove signbit.
21714         * doc/posix-functions/truncl.texi: Mention the new module.
21715
21716 2010-12-21  Bruno Haible  <bruno@clisp.org>
21717
21718         New module 'ceill-ieee'.
21719         * modules/ceill-ieee: New file.
21720         * modules/ceill-ieee-tests: New file.
21721         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
21722         * tests/test-ceill.c (main): Remove signbit tests.
21723         * modules/ceill-tests (Depends-on): Remove signbit.
21724         * doc/posix-functions/ceill.texi: Mention the new module.
21725
21726 2010-12-21  Bruno Haible  <bruno@clisp.org>
21727
21728         New module 'floorl-ieee'.
21729         * modules/floorl-ieee: New file.
21730         * modules/floorl-ieee-tests: New file.
21731         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
21732         * tests/test-floorl.c (main): Remove signbit tests.
21733         * modules/floorl-tests (Depends-on): Remove signbit.
21734         * doc/posix-functions/floorl.texi: Mention the new module.
21735
21736 2010-12-21  Bruno Haible  <bruno@clisp.org>
21737
21738         New module 'round-ieee'.
21739         * modules/round-ieee: New file.
21740         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21741         whether round works according to ISO C 99 with IEC 60559.
21742         * m4/round-ieee.m4: New file.
21743         * modules/round-ieee-tests: New file.
21744         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
21745         * tests/test-round1.c (main): Remove signbit tests.
21746         * modules/round-tests (Depends-on): Remove 'signbit'.
21747         * doc/posix-functions/round.texi: Mention the new module.
21748
21749 2010-12-21  Bruno Haible  <bruno@clisp.org>
21750
21751         New module 'trunc-ieee'.
21752         * modules/trunc-ieee: New file.
21753         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
21754         whether trunc works according to ISO C 99 with IEC 60559.
21755         * m4/trunc-ieee.m4: New file.
21756         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
21757         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
21758         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
21759         * modules/trunc-ieee-tests: New file.
21760         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
21761         * tests/test-trunc1.c (main): Remove signbit tests.
21762         * modules/trunc-tests (Depends-on): Remove 'signbit'.
21763         * doc/posix-functions/trunc.texi: Mention the new module.
21764
21765 2010-12-21  Bruno Haible  <bruno@clisp.org>
21766
21767         New module 'ceil-ieee'.
21768         * modules/ceil-ieee: New file.
21769         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
21770         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
21771         ISO C 99 with IEC 60559.
21772         * m4/ceil-ieee.m4: New file.
21773         * modules/ceil (Files): Add lib/ceil.c.
21774         (Depends-on): Add 'float'.
21775         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21776         * lib/math.in.h (ceil): New declaration.
21777         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
21778         REPLACE_CEIL.
21779         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
21780         * modules/ceil-ieee-tests: New file.
21781         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
21782         * tests/test-math-c++.cc: Check the signature of 'ceil'.
21783         * doc/posix-functions/ceil.texi: Mention the new module.
21784
21785 2010-12-21  Bruno Haible  <bruno@clisp.org>
21786
21787         New module 'floor-ieee'.
21788         * modules/floor-ieee: New file.
21789         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
21790         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
21791         ISO C 99 with IEC 60559.
21792         * m4/floor-ieee.m4: New file.
21793         * modules/floor (Files): Add lib/floor.c.
21794         (Depends-on): Add 'float'.
21795         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21796         * lib/math.in.h (floor): New declaration.
21797         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
21798         REPLACE_FLOOR.
21799         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
21800         * modules/floor-ieee-tests: New file.
21801         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
21802         * tests/test-math-c++.cc: Check the signature of 'floor'.
21803         * doc/posix-functions/floor.texi: Mention the new module.
21804
21805 2010-12-21  Bruno Haible  <bruno@clisp.org>
21806
21807         New module 'roundf-ieee'.
21808         * modules/roundf-ieee: New file.
21809         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
21810         test whether roundf works according to ISO C 99 with IEC 60559.
21811         * m4/roundf-ieee.m4: New file.
21812         * modules/roundf-ieee-tests: New file.
21813         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
21814         * tests/test-roundf1.c (main): Remove signbit tests.
21815         * modules/roundf-tests (Depends-on): Remove 'signbit'.
21816         * doc/posix-functions/roundf.texi: Mention the new module.
21817
21818 2010-12-21  Bruno Haible  <bruno@clisp.org>
21819
21820         New module 'truncf-ieee'.
21821         * modules/truncf-ieee: New file.
21822         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
21823         test whether truncf works according to ISO C 99 with IEC 60559.
21824         * m4/truncf-ieee.m4: New file.
21825         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
21826         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
21827         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
21828         * modules/truncf-ieee-tests: New file.
21829         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
21830         * tests/test-truncf1.c (main): Remove signbit tests.
21831         * modules/truncf-tests (Depends-on): Remove 'signbit'.
21832         * doc/posix-functions/truncf.texi: Mention the new module.
21833
21834 2010-12-21  Bruno Haible  <bruno@clisp.org>
21835
21836         New module 'ceilf-ieee'.
21837         * modules/ceilf-ieee: New file.
21838         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
21839         test whether ceilf works according to ISO C 99 with IEC 60559.
21840         * m4/ceilf-ieee.m4: New file.
21841         * modules/ceilf-ieee-tests: New file.
21842         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
21843         * tests/test-ceilf1.c (main): Remove signbit tests.
21844         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
21845         * doc/posix-functions/ceilf.texi: Mention the new module.
21846
21847 2010-12-21  Bruno Haible  <bruno@clisp.org>
21848
21849         New module 'floorf-ieee'.
21850         * modules/floorf-ieee: New file.
21851         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
21852         test whether floorf works according to ISO C 99 with IEC 60559.
21853         * m4/floorf-ieee.m4: New file.
21854         * modules/floorf-ieee-tests: New file.
21855         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
21856         * tests/test-floorf1.c (main): Remove signbit tests.
21857         * modules/floorf-tests (Depends-on): Remove 'signbit'.
21858         * doc/posix-functions/floorf.texi: Mention the new module.
21859
21860 2010-12-21  Bruno Haible  <bruno@clisp.org>
21861
21862         Support for minus zero in autoconf macros.
21863         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
21864         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
21865         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
21866         * tests/minus-zero.h: Update comments.
21867
21868 2010-12-21  Bruno Haible  <bruno@clisp.org>
21869
21870         Tests for module 'ceil'.
21871         * modules/ceil-tests: New file.
21872         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
21873         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
21874
21875 2010-12-21  Bruno Haible  <bruno@clisp.org>
21876
21877         Tests for module 'floor'.
21878         * modules/floor-tests: New file.
21879         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
21880         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
21881
21882 2010-12-21  Bruno Haible  <bruno@clisp.org>
21883
21884         math: Fix indentation.
21885         * lib/math.in.h (floorf): Fix indentation.
21886
21887 2010-12-21  Bruno Haible  <bruno@clisp.org>
21888
21889         Fix cross-compilation guesses on Solaris.
21890         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
21891         not match "solaris2.10".
21892         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21893         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
21894         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
21895
21896 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21897
21898         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
21899         This fixes a problem observed with the latest coreutils snapshot
21900         that caused a test to fail on Solaris 8.  src/csplit.c's call
21901         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
21902         earlier, instead of returning the number of bytes that would have
21903         been generated; this causes csplit to incorrectly report memory
21904         exhaustion.
21905         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
21906         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
21907         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
21908         comments to match.
21909         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
21910         Fix typo in matching older versions of Solaris: "solaris2.10"
21911         is matched by the shell pattern "solaris2.[0-9]*".  This matters
21912         only for guessing while cross-compiling.
21913         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
21914
21915 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21916
21917         ftoastr: fix comment again
21918         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21919         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
21920         Also, simplify example a bit by using flags = 0.
21921
21922 2010-12-20  Bruno Haible  <bruno@clisp.org>
21923
21924         round*, trunc*: Update documentation regarding glibc.
21925         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
21926         * doc/posix-functions/round.texi: Likewise.
21927         * doc/posix-functions/roundl.texi: Likewise.
21928         * doc/posix-functions/truncf.texi: Likewise.
21929         * doc/posix-functions/trunc.texi: Likewise.
21930         * doc/posix-functions/truncl.texi: Likewise.
21931
21932 2010-12-20  Bruno Haible  <bruno@clisp.org>
21933
21934         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
21935         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
21936         * doc/posix-functions/round.texi: Likewise.
21937         * doc/posix-functions/roundl.texi: Likewise.
21938
21939 2010-12-20  Bruno Haible  <bruno@clisp.org>
21940
21941         ttyname_r: Add missing declaration on HP-UX 11.
21942         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
21943         HAVE_TTYNAME_R.
21944         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
21945         declared. Set HAVE_TTYNAME_R always.
21946         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21947         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21948         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21949         HAVE_TTYNAME_R.
21950         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21951
21952 2010-12-20  Bruno Haible  <bruno@clisp.org>
21953
21954         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21955         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21956         * doc/posix-functions/getlogin_r.texi: Likewise.
21957         * tests/test-getlogin.c: Include <errno.h>.
21958         (main): Avoid test failure on HP-UX 11.11.
21959         * tests/test-getlogin_r.c (main): Likewise.
21960
21961 2010-12-20  Bruno Haible  <bruno@clisp.org>
21962
21963         getlogin_r: Add missing declaration on HP-UX 11.
21964         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21965         declared also when it exists as a function.
21966         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21967
21968 2010-12-20  Bruno Haible  <bruno@clisp.org>
21969
21970         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21971         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21972         through wcrtomb.
21973
21974 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21975
21976         ftoastr: fix comment
21977         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21979
21980 2010-12-19  Bruno Haible  <bruno@clisp.org>
21981
21982         isnan: Ensure it is a macro.
21983         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21984         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21985         Solaris.
21986
21987 2010-12-19  Bruno Haible  <bruno@clisp.org>
21988
21989         ldexpl test: Fix link error on OSF/1 5.1.
21990         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21991
21992 2010-12-19  Bruno Haible  <bruno@clisp.org>
21993
21994         wctype: Make it work in C++ mode on OSF/1 5.1.
21995         * lib/wctype.in.h (iswblank): Declare but not define here.
21996         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21997         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21998         * modules/wctype (Files): Add lib/iswblank.c.
21999
22000 2010-12-19  Bruno Haible  <bruno@clisp.org>
22001
22002         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22003         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22004         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22005
22006 2010-12-19  Bruno Haible  <bruno@clisp.org>
22007
22008         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22009         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22010         _POSIX_PII_SOCKET.
22011         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22012         * doc/posix-functions/recvfrom.texi: Likewise.
22013         * doc/posix-functions/send.texi: Likewise.
22014         * doc/posix-functions/sendto.texi: Likewise.
22015
22016 2010-12-19  Bruno Haible  <bruno@clisp.org>
22017
22018         tcgetsid: Add missing declaration on OSF/1 5.1.
22019         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22020         HAVE_TCGETSID.
22021         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22022         Don't set HAVE_TCGETSID.
22023         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22024         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22025         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22026         HAVE_TCGETSID.
22027         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22028
22029 2010-12-19  Bruno Haible  <bruno@clisp.org>
22030
22031         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22032         * lib/stdio.in.h: During the include_next statement, let recursive
22033         includes of this file include only the system header file.
22034
22035 2010-12-19  Bruno Haible  <bruno@clisp.org>
22036
22037         iconv_open: Fix regression from 2010-12-04.
22038         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22039         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22040
22041 2010-12-19  Bruno Haible  <bruno@clisp.org>
22042
22043         stdbool test: Avoid a gcc warning.
22044         * tests/test-stdbool.c (main): Fail if e1 is false.
22045         Reported by Jim Meyering.
22046
22047 2010-12-19  Jim Meyering  <meyering@redhat.com>
22048
22049         setenv: restore to working order
22050         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22051         mistakenly removed.
22052         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22053         HAVE_SETENV.
22054         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22055         HAVE_SETENV.
22056
22057 2010-12-19  Bruno Haible  <bruno@clisp.org>
22058
22059         Document some different function declarations on OSF/1 5.1.
22060         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22061         * doc/posix-functions/inet_ntop.texi: Likewise.
22062         * doc/posix-functions/gethostname.texi: Likewise.
22063         * lib/unistd.in.h (gethostname): Update comment.
22064
22065 2010-12-19  Bruno Haible  <bruno@clisp.org>
22066
22067         doc: Mention vasprintf-posix module.
22068         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22069         the 'vasprintf-posix' module.
22070         * doc/glibc-functions/vasprintf.texi: Likewise.
22071
22072 2010-12-19  Bruno Haible  <bruno@clisp.org>
22073
22074         unsetenv: Add missing declaration on OSF/1 5.1.
22075         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22076         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22077         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22079         not HAVE_UNSETENV.
22080         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22081         HAVE_UNSETENV.
22082         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22083
22084 2010-12-19  Bruno Haible  <bruno@clisp.org>
22085
22086         setenv: Add missing declaration on OSF/1 5.1.
22087         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22088         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22089         declared. Don't set HAVE_SETENV.
22090         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22091         not HAVE_SETENV.
22092         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22093         HAVE_SETENV.
22094         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22095
22096 2010-12-19  Bruno Haible  <bruno@clisp.org>
22097
22098         nl_langinfo tests: Avoid gcc warning.
22099         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22100
22101 2010-12-19  Bruno Haible  <bruno@clisp.org>
22102
22103         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22104         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22105         _GL_CXXALIAS_SYS.
22106
22107 2010-12-19  Bruno Haible  <bruno@clisp.org>
22108
22109         stdbool: Relax test.
22110         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22111         address to 'bool' work in static initializer, for compilers other than
22112         GCC.
22113
22114 2010-12-19  Bruno Haible  <bruno@clisp.org>
22115
22116         ftello: Add missing declaration on OSF/1 5.1.
22117         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22118         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22119         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22120         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22121         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22122
22123 2010-12-19  Bruno Haible  <bruno@clisp.org>
22124
22125         fseeko: Add missing declaration on OSF/1 5.1.
22126         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22127         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22128         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22129         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22130         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22131
22132 2010-12-19  Bruno Haible  <bruno@clisp.org>
22133
22134         fchdir: Add missing declaration on OSF/1 5.1.
22135         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22136         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22138         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22139         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22140
22141 2010-12-19  Bruno Haible  <bruno@clisp.org>
22142
22143         relocatable-prog-wrapper: Separate from relocatable-prog.
22144         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22145         uninstall-relocwrapper rule here.
22146         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22147         Reported by Ian Beckwith <ianb@erislabs.net>.
22148
22149 2010-12-19  Bruno Haible  <bruno@clisp.org>
22150
22151         unistr/u8-mbsnlen: Add missing dependency.
22152         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22153         Reported by Ian Beckwith <ianb@erislabs.net>.
22154
22155 2010-12-19  Bruno Haible  <bruno@clisp.org>
22156
22157         iconv: Make it possible again to use this module without 'iconv-h'.
22158         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22159         if it is not defined.
22160         Reported by Ian Beckwith <ianb@erislabs.net>.
22161
22162 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22163
22164         acl: port to Solaris 8 when copying from tmpfs to ufs
22165         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22166         error number.  Problem observed on Solaris 8 with latest
22167         coreutils, with "mv A B", where A is on a tmpfs file system and B
22168         is on a ufs file system.  This caused coreutils' mv/part-symlink
22169         test to fail.
22170
22171         tests: set fail=0 at start
22172         * tests/init.sh (setup_): Move fail=0 initialization here ...
22173         (mktempd_): ... from here, so that tests can rely on fail being
22174         set to 0 initially.  This fixes a problem in coreutils; see:
22175         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22176
22177 2010-12-18  Bruno Haible  <bruno@clisp.org>
22178
22179         memmem-simple: Stylistic changes.
22180         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22181         Fix preprocessor directive indentation.
22182
22183 2010-12-15  Pádraig Brady <P@draigBrady.com>
22184
22185         memmem, memmem-simple: reorganize and expand empty needle check
22186         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22187         functional checks to memmem-simple so that one has a fully functional
22188         memmem by using just this module.
22189         Restrict the performance only check to the memmem module.
22190         Also expand the empty needle check to ensure the correct
22191         pointer is returned, not just a non NULL pointer.
22192         * doc/glibc-functions/memmem.texi: Rearrange the portability
22193         documentation to correlate with the rearranged checks.
22194         Clarify exactly how the memmem and memmem-simple modules
22195         relate to each other.
22196
22197 2010-12-15  Pádraig Brady <P@draigBrady.com>
22198             Bruno Haible  <bruno@clisp.org>
22199
22200         Improve cross-compilation guesses for uClibc.
22201         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22202         that uClibc does not have the glibc bug.
22203         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22205
22206 2010-12-14  Eric Blake  <eblake@redhat.com>
22207
22208         configmake: provide fallbacks for oldest supported autotools
22209         * m4/configmake.m4: New file.
22210         * modules/configmake (Files): Ship it.
22211         (configure.ac): Use it to guarantee fallbacks.
22212
22213 2010-12-13  Pádraig Brady <P@draigBrady.com>
22214
22215         read-file: Improve handling of large files
22216         * lib/read-file.c (fread_file): Minimize realloc()s
22217         for regular files, and better manage sizes around SIZE_MAX.
22218
22219 2010-12-13  Eric Blake  <eblake@redhat.com>
22220
22221         cloexec, fcntl: relax license
22222         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22223         consent from all contributors.
22224         * modules/fcntl (License): Likewise.
22225
22226 2010-12-10  Bruno Haible  <bruno@clisp.org>
22227
22228         Tests for module 'pipe-posix'.
22229         * modules/pipe-posix-tests: New file.
22230         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22231
22232 2010-12-10  Bruno Haible  <bruno@clisp.org>
22233
22234         pipe-posix: Make it work in C++ mode.
22235         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22236         (pipe): Use common idiom, not a macro definition.
22237         * lib/pipe.c: New file.
22238         * m4/pipe.m4: New file.
22239         * modules/pipe-posix (Description): Enhance.
22240         (Files): Add lib/pipe.c, m4/pipe.m4.
22241         (configure.ac): Invoke gl_FUNC_PIPE.
22242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22243         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22244         * tests/test-unistd-c++.cc: Check the signature of pipe.
22245
22246 2010-12-10  Bruno Haible  <bruno@clisp.org>
22247
22248         Rename module 'pipe' to 'spawn-pipe'.
22249         * modules/spawn-pipe: New file, renamed from modules/pipe.
22250         (Files, configure.ac, Makefile.am): Update.
22251         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22252         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22253         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22254         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22255         "spawn-pipe.h" instead of "pipe.h".
22256         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22257         to gl_SPAWN_PIPE.
22258         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22259         (Files, Makefile.am): Update.
22260         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22261         Update.
22262         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22263         Include "spawn-pipe.h" instead of "pipe.h".
22264         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22265         * lib/javacomp.c: Likewise.
22266         * lib/javaversion.c: Likewise.
22267         * lib/pipe-filter-gi.c: Likewise.
22268         * lib/pipe-filter-ii.c: Likewise.
22269         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22270         * modules/javacomp (Depends-on): Likewise.
22271         * modules/javaversion (Depends-on): Likewise.
22272         * modules/pipe-filter-gi (Depends-on): Likewise.
22273         * modules/pipe-filter-ii (Depends-on): Likewise.
22274         * MODULES.html.sh (Executing programs): Update.
22275         * NEWS: Mention the change.
22276
22277 2010-12-10  Eric Blake  <eblake@redhat.com>
22278
22279         pipe-posix: new module
22280         * modules/pipe-posix: New file.
22281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22282         (gl_UNISTD_H): Check for declaration.
22283         * modules/unistd (Makefile.am): Substitute it.
22284         * lib/unistd.in.h (pipe): Provide it for mingw.
22285         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22286         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22287
22288 2010-12-07  Bruno Haible  <bruno@clisp.org>
22289
22290         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22291         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22292         u8_strcmp_gnu.
22293         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22294
22295 2010-12-06  Bruno Haible  <bruno@clisp.org>
22296
22297         Update internal documentation.
22298         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22299
22300 2010-12-04  Bruno Haible  <bruno@clisp.org>
22301
22302         Put more information about failed tests into the test return codes.
22303         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22304         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22305         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22306         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22307         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22308         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22309         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22310         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22311         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22313         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22314         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22315         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22316         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22317         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22318         returns a bit mask.
22319         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22320         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22321         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22322         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22323         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22324         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22325         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22326         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22327         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22328         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22329         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22330         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22331         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22332         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22333         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22334         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22335         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22336         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22337         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22338         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22339         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22340         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22341         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22342         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22343         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22344         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22345         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22346         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22347         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22348         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22349         gl_PRINTF_PRECISION): Likewise.
22350         * m4/regex.m4 (gl_REGEX): Likewise.
22351         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22352         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22353         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22354         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22355         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22356         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22358         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22359         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22360         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22361         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22362         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22363         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22364         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22365         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22366         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22367         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22368         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22370         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22371         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22372         enumerated value.
22373         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22374
22375 2010-12-04  Bruno Haible  <bruno@clisp.org>
22376
22377         Update for Solaris 11 2010-11.
22378         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22379         Express, released in November 2010.
22380
22381 2010-12-04  Bruno Haible  <bruno@clisp.org>
22382
22383         nproc: Relax license.
22384         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22385         and Paul Eggert.
22386         Requested by Ludovic Courtès <ludo@gnu.org>.
22387
22388 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22389
22390         utimecmp: fine-grained src to nearby coarse-grained dest
22391
22392         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22393         and the source is on a file system with higher-resolution time
22394         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22395         not work, and the time stamps are close together, the algorithm to
22396         determine the exact resolution from the read-back mtime was buggy:
22397         it had a "!=" where it should have had an "==".  This bug has been
22398         in the code ever since it was introduced to gnulib.
22399         Problem reported by Dan Jacobson in
22400         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22401
22402 2010-11-30  Bruno Haible  <bruno@clisp.org>
22403
22404         strerror_r-posix: Fix autoconf test.
22405         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22406
22407 2010-11-28  Bruno Haible  <bruno@clisp.org>
22408             Paul Eggert  <eggert@cs.ucla.edu>
22409
22410         Tests for module 'getdomainname'.
22411         * modules/getdomainname-tests: New file.
22412         * tests/test-getdomainname.c: New file, based on
22413         tests/test-gethostname.c.
22414
22415 2010-11-28  Bruno Haible  <bruno@clisp.org>
22416             Paul Eggert  <eggert@cs.ucla.edu>
22417
22418         getdomainname: Use the system function when possible.
22419         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22420         (getdomainname): Replace if needed. Provide the declaration if it is
22421         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22422         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22423         (getdomainname): When the system has getdomainname, call the system
22424         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22425         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22426         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22427         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22428         the function if its second argument is of type 'int' or if it is found
22429         in libnsl.
22430         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22431         <sys/systeminfo.h> and sysinfo().
22432         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22434         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22435         HAVE_GETDOMAINNAME.
22436         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22437         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22438         * doc/glibc-functions/getdomainname.texi: Document the problems with
22439         the getdomainname declaration.
22440
22441 2010-11-28  Bruno Haible  <bruno@clisp.org>
22442
22443         sys_socket: Ensure ss_family field on AIX.
22444         * lib/sys_socket.in.h (ss_family): New macro definition.
22445         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22446         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22447         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22448         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22449         * modules/sys_socket (Makefile.am): Substitute
22450         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22451         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22452
22453 2010-11-27  Bruno Haible  <bruno@clisp.org>
22454
22455         readline: Improve configure output.
22456         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22457         "checking for readline..." result understandable.
22458
22459 2010-11-27  Bruno Haible  <bruno@clisp.org>
22460
22461         *printf-posix: Detect a bug on Solaris 10/x86.
22462         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22463         for floating-point output.
22464         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22465         directive.
22466         * tests/test-snprintf-posix.h (test_function): Likewise.
22467         * tests/test-sprintf-posix.h (test_function): Likewise.
22468         * tests/test-vasprintf-posix.c (test_function): Likewise.
22469         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22470         * doc/posix-functions/printf.texi: Likewise.
22471         * doc/posix-functions/snprintf.texi: Likewise.
22472         * doc/posix-functions/sprintf.texi: Likewise.
22473         * doc/posix-functions/vfprintf.texi: Likewise.
22474         * doc/posix-functions/vprintf.texi: Likewise.
22475         * doc/posix-functions/vsnprintf.texi: Likewise.
22476         * doc/posix-functions/vsprintf.texi: Likewise.
22477         * doc/glibc-functions/obstack_printf.texi: Likewise.
22478         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22479
22480 2010-11-27  Bruno Haible  <bruno@clisp.org>
22481
22482         Fix link error when module libunistring-optional is in use.
22483         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22484         * modules/striconveha-tests (Makefile.am): Likewise.
22485
22486 2010-11-27  Bruno Haible  <bruno@clisp.org>
22487
22488         regex: Mention link dependencies.
22489         * modules/regex (Link): New section.
22490         * modules/rpmatch (Link): Likewise.
22491         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22492
22493 2010-11-27  Bruno Haible  <bruno@clisp.org>
22494
22495         ftoastr: Fix compilation error on Solaris.
22496         * lib/ftoastr.c: Include <config.h>.
22497
22498 2010-11-27  Bruno Haible  <bruno@clisp.org>
22499
22500         getloadavg: Update documentation.
22501         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22502
22503 2010-11-27  Bruno Haible  <bruno@clisp.org>
22504
22505         sys_socket: Fix test whether the functions are declared.
22506         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22507         not <sys/select.h>.
22508
22509 2010-11-27  Bruno Haible  <bruno@clisp.org>
22510
22511         getpass: Make sure to get system declaration on some platforms.
22512         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22513         gl_USE_SYSTEM_EXTENSIONS.
22514         * modules/getpass (Depends-on): Add extensions.
22515
22516 2010-11-26  Bruno Haible  <bruno@clisp.org>
22517
22518         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22519         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22520         'iconv' module is present.
22521         (ICONV_CONST): New macro.
22522         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22523         ICONV_CONST.
22524         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22525         set ICONV_CONST.
22526         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22527         here.
22528         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22529         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22530         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22531         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22532         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22533         present.
22534
22535 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22536
22537         ftoastr: comment fix
22538         * lib/ftoastr.c: "little" -> "little or no" in comment
22539
22540 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22541
22542         stdint: port to GCC 4.3 + OSX + Octave
22543         On this platform, stdint.h is buggy and defines int64_t to long
22544         long int.  The replacement defined it to long int, causing
22545         problems with C++ style name mangling.  Instead, trust the system
22546         definition if INT64_MAX is defined, and likewise for the unsigned
22547         variant.   Problem reported by Jarno Rajahalme in
22548         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22549         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22550         and don't mess with int64_t and INT64_MAX in this case.
22551         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22552
22553 2010-11-24  Bruno Haible  <bruno@clisp.org>
22554
22555         doc: Corrections regarding MacOS X 10.4 and 10.5.
22556         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22557         MacOS X.
22558         Reported by Simon Josefsson.
22559
22560 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22561
22562         Uninstall ".bin" files installed by relocwrapper.
22563         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22564         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22565         unless it is already there.
22566
22567 2010-11-21  Bruno Haible  <bruno@clisp.org>
22568
22569         Update for NetBSD 5.0.
22570         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22571         NetBSD; the test fails on NetBSD 5.0.
22572         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22573         about NetBSD.
22574
22575 2010-11-21  Bruno Haible  <bruno@clisp.org>
22576
22577         Update for HP-UX 11.23 and HP-UX 11.31.
22578         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22579         HP-UX.
22580
22581 2010-11-21  Bruno Haible  <bruno@clisp.org>
22582
22583         Update for MacOS X 10.5.
22584         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22585         MacOS X; the test fails on MacOS X 10.5.8.
22586         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22587         about MacOS X.
22588
22589 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22590
22591         bootstrap: add bootstrap_sync option.
22592         See discussion at
22593         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22594         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22595         * build-aux/bootstrap: Accept --bootstrap-sync to update
22596         bootstrap if it is not identical to the local gnulib's
22597         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
22598         enable this by default.  Accept --no-bootstrap-sync to disable
22599         it.
22600
22601 2010-11-20  Bruno Haible  <bruno@clisp.org>
22602
22603         Ensure that <features.h> is included before __GLIBC__ is tested.
22604         * lib/printf-parse.h: Include <features.h>.
22605         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
22606         Reported by Mike Frysinger <vapier@gentoo.org>.
22607
22608         Ensure that <features.h> is included before __GLIBC__ is tested.
22609         * lib/wchar.in.h: Include <features.h>.
22610         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
22611         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
22612         Reported by Mike Frysinger <vapier@gentoo.org>.
22613
22614         Ensure that <features.h> is included before __GLIBC__ is tested.
22615         * lib/arpa_inet.in.h: Include <features.h>.
22616         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
22617         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
22618         Reported by Mike Frysinger <vapier@gentoo.org>.
22619
22620         Ensure that <features.h> is included before __GLIBC__ is tested.
22621         * build-aux/link-warning.h: Include <features.h>.
22622         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
22623         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
22624         Reported by Mike Frysinger <vapier@gentoo.org>.
22625
22626         Ensure that <features.h> is included before __GLIBC__ is tested.
22627         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
22628         Reported by Mike Frysinger <vapier@gentoo.org>.
22629
22630 2010-11-20  Bruno Haible  <bruno@clisp.org>
22631
22632         memmem: Fix autoconf test.
22633         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
22634
22635 2010-11-20  Bruno Haible  <bruno@clisp.org>
22636
22637         Port to uClibc.
22638         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
22639         * lib/fcntl.in.h: Likewise.
22640         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
22641         * lib/mbrtowc.c (mbrtowc): Likewise.
22642         * lib/relocatable.c (find_shared_library_fullname): Likewise.
22643         * lib/strerror_r.c: Likewise.
22644         * lib/unistr/u8-strnlen.c: Likewise.
22645         * lib/vasnprintf.c (decimal_point_char): Likewise.
22646         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22647         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22648         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22649         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22650         * tests/test-sigaction.c (handler, main): Likewise.
22651         * lib/freading.h: Treat uClibc like a non-glibc platform.
22652         * lib/freading.c: Likewise.
22653         * lib/gettext.h: Likewise.
22654         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
22655         Likewise.
22656         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
22657         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22658         * lib/propername.c (proper_name_utf8): Likewise.
22659         * lib/spawn.in.h: Likewise.
22660         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22661         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
22662         mem_cd_iconveh_internal): Likewise.
22663         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
22664         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22665         strstr, strcasestr): Likewise.
22666         * lib/unicodeio.c (unicode_to_mb): Likewise.
22667         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
22668         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
22669         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
22670         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
22671         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
22672         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
22673         * lib/unistr/u8-stpncpy.c: Likewise.
22674         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22675         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
22676         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22677         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22678         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22679         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
22680         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
22681         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
22682         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
22683         Likewise.
22684         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22685         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22686         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22687         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22688         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22689         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22690         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22691         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22692         * tests/test-getopt.h (OPTIND_MIN): Likewise.
22693         * tests/test-striconveha.c (main): Likewise.
22694         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22695         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
22696         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
22697         * doc/posix-functions/getline.texi: Likewise.
22698         Reported by Mike Frysinger <vapier@gentoo.org>.
22699
22700 2010-11-20  Bruno Haible  <bruno@clisp.org>
22701
22702         nproc: Fix condition.
22703         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
22704         HAVE_PTHREAD_AFFINITY_NP.
22705
22706 2010-11-20  Bruno Haible  <bruno@clisp.org>
22707
22708         Fix a comment.
22709         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
22710
22711 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
22712
22713         ftoastr: don't assume snprintf
22714         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
22715         Implement a subset of snprintf here, by using sprintf safely.
22716         * modules/ftoastr (Depends-on): Remove snprintf.
22717
22718 2010-11-19  Jim Meyering  <meyering@redhat.com>
22719
22720         test-rename.h: fix compilation failure
22721         * tests/test-rename.h (test_rename): Add omitted "}".
22722
22723 2010-11-17  Jim Meyering  <meyering@redhat.com>
22724
22725         maint.mk: add a URL discussing the no-@acronym policy
22726         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
22727
22728 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22729
22730         ftoastr: depend on snprintf, improve comments
22731         * lib/ftoastr.c: Also mention Loitsch's draft.
22732         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
22733         needed in the current implementation, but it might simplify
22734         speeding up the code later.
22735         * modules/ftoastr: Depend on snprintf; this improves portability.
22736         Suggested by Bruno Haible in the same email.
22737
22738         ftoastr: port to hosts lacking strtof and strtold
22739         Problem reported by Bruno Haible in
22740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22741         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22742         environment and strtold (and presumably strtof) are not available.
22743         * modules/ftoastr (Files): Add m4/c-strtod.m4.
22744         (configure.ac): Require gl_C99_STRTOLD.
22745
22746 2010-11-18  Bruno Haible  <bruno@clisp.org>
22747
22748         c-strtold: Avoid link error on AIX 7.
22749         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
22750         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
22751         (gl_C_STRTOLD): Test whether strtold_l exists.
22752         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22753
22754 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22755
22756         intprops: new macro INT_BITS_STRLEN_BOUND
22757         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
22758         ftoastr.h.  This exposes an internal of intprops.h that was formerly
22759         not exposed.  Also, it uses a slightly tighter bound than before;
22760         though this makes no practical difference, we might as well be as
22761         tight as we easily can.
22762
22763         ftoastr: new module, for lossless conversion of floats to short strings
22764         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
22765         * modules/ftoastr: New files.
22766
22767 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22768
22769         bootstrap: port to Solaris sed
22770         * build-aux/bootstrap (get_version): Port to Solaris sed.
22771         See Ralf Wildenhues's note in
22772         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
22773
22774 2010-11-14  Jim Meyering  <meyering@redhat.com>
22775
22776         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
22777         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
22778         and move definition closer to sole use.
22779
22780 2010-11-13  Jim Meyering  <meyering@redhat.com>
22781
22782         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
22783         Now we require at least autoconf-2.59, which means the work-around
22784         is no longer needed.
22785         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
22786         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22787         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22788         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22789         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22790
22791 2010-11-13  Bruno Haible  <bruno@clisp.org>
22792
22793         rename, renameat: Avoid test failures at NFS mounted locations.
22794         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
22795         functions.
22796         (test_rename): Use assert_nonexistent.
22797         * tests/test-rename.c: Include <dirent.h>.
22798         * tests/test-renameat.c: Likewise.
22799         Reported by Gary V. Vaughan <gary@gnu.org>.
22800
22801         rename, renameat: Document Linux bug with NFS
22802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
22803         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
22804         * doc/posix-functions/renameat.texi: Likewise.
22805         Suggested by Eric Blake.
22806
22807 2010-11-13  Bruno Haible  <bruno@clisp.org>
22808
22809         rename test: Add comments.
22810         * tests/test-rename.h (test_rename): Add structure and comments.
22811
22812 2010-11-13  Eric Blake  <eblake@redhat.com>
22813
22814         maintainer-makefile: cover a few more files
22815         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
22816         scripts generated within C files, for libvirt.
22817
22818 2010-11-13  Bruno Haible  <bruno@clisp.org>
22819
22820         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
22821         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
22822         character, return the number of bytes that belong together, not always
22823         1.
22824         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22825         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22826         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22827         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
22828         number of bytes of an invalid character.
22829         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
22830         (main): Invoke it.
22831         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
22832         results.
22833         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
22834         malformed byte sequences.
22835         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
22836         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
22837         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
22838         Reported by Ben Pfaff and Paolo Bonzini.
22839
22840 2010-11-13  Bruno Haible  <bruno@clisp.org>
22841
22842         openat: Work around glibc bug with fchownat() and empty file names.
22843         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
22844         (gl_FUNC_FCHOWNAT): Invoke it.
22845         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
22846         * doc/posix-functions/fchownat.texi: Document the glibc bug.
22847         Reported by Gary V. Vaughan <gary@gnu.org>.
22848
22849 2010-11-13  Bruno Haible  <bruno@clisp.org>
22850
22851         openat: Ensure autoconf macro ordering.
22852         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
22853         gl_USE_SYSTEM_EXTENSIONS.
22854         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
22855
22856 2010-11-13  Bruno Haible  <bruno@clisp.org>
22857
22858         Update comments.
22859         * lib/unistr/u8-check.c: Update file name in comments.
22860         * lib/unistr/u8-mblen.c: Likewise.
22861         * lib/unistr/u8-prev.c: Likewise.
22862         * lib/unistr/u8-strmblen.c: Likewise.
22863         * lib/unistr/u8-strmbtouc.c: Likewise.
22864
22865 2010-11-13  Jim Meyering  <meyering@redhat.com>
22866
22867         tests: avoid test failure on Solaris 10 due to lack of PATH export
22868         * tests/test-update-copyright.sh: Don't forget to export PATH.
22869
22870         init.sh: ensure that IFS is defined, just in case...
22871         * tests/init.sh (setup_): Ensure that IFS is defined,
22872         so that saving and restoring it works as expected.  This
22873         appears to be useful at least for an old version of dash
22874         from a long time ago (RH 6).  See here for details:
22875         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
22876
22877         maint.mk: tighten "test a == b" check
22878         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
22879         test to files that contain something like #!/bin/sh.
22880         Without this, coreutils would get two false positives in
22881         the comments of C source files.
22882
22883 2010-11-12  Eric Blake  <eblake@redhat.com>
22884
22885         bootstrap: fix typo in previous attempt
22886         * build-aux/bootstrap (buildreq): Correct the grouping.
22887         Reported by Paul Eggert.
22888
22889         maintainer-makefile: prohibit test x == x
22890         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
22891         Based on a report by Matthias Bolte.
22892
22893         bootstrap: allow FreeBSD gzip
22894         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
22895         which has no '.' and goes to stderr.
22896         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
22897         Reported by Matthias Bolte.
22898
22899         maintainer-makefile: check for i18n setup
22900         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
22901         will likely work.
22902
22903 2010-11-12  Bruno Haible  <bruno@clisp.org>
22904
22905         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
22906         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
22907         * lib/nanosleep.c (nanosleep): Likewise.
22908
22909 2010-11-11  Bruno Haible  <bruno@clisp.org>
22910
22911         fcntl-h: Fix for use of C++ on glibc systems.
22912         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22913         also on glibc systems in C++ mode.
22914         Reported by Gary V. Vaughan <gary@gnu.org>.
22915
22916 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22917
22918         mknod: avoid false failure with dash
22919         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
22920
22921 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22922
22923         unlink: Fix "is it should" typo in diagnostic.
22924         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
22925         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
22926
22927 2010-11-11  Bruno Haible  <bruno@clisp.org>
22928
22929         Tests for module 'strerror_r-posix'.
22930         * modules/strerror_r-posix-tests: New file.
22931         * tests/test-strerror_r.c: New file.
22932         * tests/test-string-c++.cc: Check the signature of strerror_r.
22933
22934         New module 'strerror_r-posix'.
22935         * lib/string.in.h (strerror_r): New declaration.
22936         * lib/strerror_r.c: New file.
22937         * m4/strerror_r.m4: New file.
22938         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
22939         of strerror_r.
22940         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
22941         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22942         * modules/strerror_r-posix: New file.
22943         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
22944         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22945         * doc/posix-functions/strerror_r.texi: Mention the new module and the
22946         portability problems.
22947
22948 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22949
22950         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22951         line is also considered for output. Quoted function name in shell
22952         command, so temporary files for functions like MyClass::operator()
22953         are removed correctly without errors.
22954
22955 2010-11-09  Bruno Haible  <bruno@clisp.org>
22956
22957         * doc/posix-functions/strerror.texi: List more failing platforms.
22958
22959         * doc/posix-functions/strerror.texi: Add a comment.
22960
22961 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22962
22963         fdopendir: fix bug on MacOS X when low on file descriptors
22964
22965         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22966         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22967         All callers changed.
22968         (fdopendir): Invoke save_cwd at the top level, not after using
22969         multiple dup() calls to use up file descriptors.  Then retry
22970         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22971         less than the maximum number of open file descriptors, because
22972         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22973         on Mac OS X 10.6.4 for tar 1.24
22974         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22975         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22976         and for tar 1.25
22977         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22978
22979 2010-11-07  Bruno Haible  <bruno@clisp.org>
22980
22981         vasnprintf: Support I flag on glibc systems.
22982         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22983         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22984         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22985         snprintf function.
22986         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22987         glibc systems.
22988         * tests/test-vasnprintf-posix3.c: New file.
22989         * modules/vasnprintf-posix-tests (Files): Add it.
22990         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22991
22992 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22993
22994         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22995         * MODULES.html.sh: For compiler warnings, use name
22996         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22997
22998 2010-11-05  Eric Blake  <eblake@redhat.com>
22999
23000         ceil, floor: avoid spurious failure with icc
23001         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23002         [denormals-as-zero] when optimizing without -mieee-fp option.
23003         * tests/test-floorf2.c (floorf_reference): Likewise.
23004         * tests/test-ceilf1.c (dummy): New function.
23005         (main): Use it to outsmart icc's optimization.
23006         * tests/test-floorf1.c (dummy, main): Likewise.
23007
23008         tests: require working signbit
23009         * modules/ceilf-tests (Depends-on): Add signbit.
23010         * modules/ceill-tests (Depends-on): Likewise.
23011         * modules/floorf-tests (Depends-on): Likewise.
23012         * modules/floorl-tests (Depends-on): Likewise.
23013         * modules/round-tests (Depends-on): Likewise.
23014         * modules/roundf-tests (Depends-on): Likewise.
23015         * modules/roundl-tests (Depends-on): Likewise.
23016         * modules/trunc-tests (Depends-on): Likewise.
23017         * modules/truncf-tests (Depends-on): Likewise.
23018         * modules/truncl-tests (Depends-on): Likewise.
23019
23020         strtod: work around icc bug
23021         * lib/strtod.c (minus_zero): Define to working value.
23022         (strtod): Use it to avoid icc bug.
23023
23024         copysign: enhance tests
23025         * modules/copysign-tests (Files): Add minus-zero.h.
23026         * tests/test-copysign.c (main): Also test zeros.
23027
23028 2010-11-04  Eric Blake  <eblake@redhat.com>
23029
23030         ceil, floor, round, trunc: enhance tests of -0
23031         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23032         * tests/test-ceill.c (main): Likewise.
23033         * tests/test-floorf1.c (main): Likewise.
23034         * tests/test-floorl.c (main): Likewise.
23035         * tests/test-round1.c (main): Likewise.
23036         * tests/test-roundf1.c (main): Likewise.
23037         * tests/test-roundl.c (main): Likewise.
23038         * tests/test-trunc1.c (main): Likewise.
23039         * tests/test-truncf1.c (main): Likewise.
23040         * tests/test-truncl.c (main): Likewise.
23041
23042 2010-11-04  Eric Blake  <eblake@redhat.com>
23043
23044         frexp, tests: work around ICC bug with -zero
23045         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23046         works with more compilers.
23047         * tests/minus-zero.h: New file.
23048         * modules/ceilf-tests (Files): Include it.
23049         * modules/ceill-tests (Files): Likewise.
23050         * modules/floorf-tests (Files): Likewise.
23051         * modules/floorl-tests (Files): Likewise.
23052         * modules/frexp-nolibm-tests (Files): Likewise.
23053         * modules/frexp-tests (Files): Likewise.
23054         * modules/frexpl-nolibm-tests (Files): Likewise.
23055         * modules/frexpl-tests (Files): Likewise.
23056         * modules/isnan-tests (Files): Likewise.
23057         * modules/isnand-nolibm-tests (Files): Likewise.
23058         * modules/isnand-tests (Files): Likewise.
23059         * modules/isnanf-nolibm-tests (Files): Likewise.
23060         * modules/isnanf-tests (Files): Likewise.
23061         * modules/isnanl-nolibm-tests (Files): Likewise.
23062         * modules/isnanl-tests (Files): Likewise.
23063         * modules/round-tests (Files): Likewise.
23064         * modules/roundf-tests (Files): Likewise.
23065         * modules/roundl-tests (Files): Likewise.
23066         * modules/ldexpl-tests (Files): Likewise.
23067         * modules/signbit-tests (Files): Likewise.
23068         * modules/snprintf-posix-tests (Files): Likewise.
23069         * modules/sprintf-posix-tests (Files): Likewise.
23070         * modules/strtod-tests (Files): Likewise.
23071         * modules/trunc-tests (Files): Likewise.
23072         * modules/truncf-tests (Files): Likewise.
23073         * modules/truncl-tests (Files): Likewise.
23074         * modules/vsnprintf-posix-tests (Files): Likewise.
23075         * modules/vsprintf-posix-tests (Files): Likewise.
23076         * modules/vasnprintf-posix-tests (Files): Likewise.
23077         * modules/vasprintf-posix-tests (Files): Likewise.
23078         * tests/test-ceilf1.c (main): Use it.
23079         * tests/test-ceill.c (main): Likewise.
23080         * tests/test-floorf1.c (main): Likewise.
23081         * tests/test-floorl.c (main): Likewise.
23082         * tests/test-frexp.c (main): Likewise.
23083         * tests/test-frexpl.c (main): Likewise.
23084         * tests/test-isnan.c (main): Likewise.
23085         * tests/test-isnand.h (main): Likewise.
23086         * tests/test-isnanf.h (main): Likewise.
23087         * tests/test-isnanl.h (main): Likewise.
23088         * tests/test-ldexpl.c (main): Likewise.
23089         * tests/test-round.c (main): Likewise.
23090         * tests/test-roundf.c (main): Likewise.
23091         * tests/test-roundl.c (main): Likewise.
23092         * tests/test-signbit.c (test_signbitf, test_signbitd)
23093         (test_signbitl): Likewise.
23094         * tests/test-snprintf-posix.h (test_function): Likewise.
23095         * tests/test-sprintf-posix.h (test_function): Likewise.
23096         * tests/test-strtod.c (main): Likewise.
23097         * tests/test-trunc1.c (main): Likewise.
23098         * tests/test-truncf1.c (main): Likewise.
23099         * tests/test-truncl.c (main): Likewise.
23100
23101         isnanl: work around icc bug
23102         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23103
23104 2010-11-03  Eric Blake  <eblake@redhat.com>
23105
23106         tests: fix compiler warnings
23107         * tests/test-getopt.h (test_getopt): Fix condition.
23108         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23109         * tests/test-pipe2.c (main): Likewise.
23110         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23111
23112         utimens: fix broken m4 test
23113         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23114
23115 2010-10-28  Bruno Haible  <bruno@clisp.org>
23116
23117         posix_spawn*, getdtablesize: Relax license.
23118         * modules/posix_spawn (License): Change to LGPLv2+.
23119         * modules/posix_spawnp (License): Likewise.
23120         * modules/posix_spawn-internal (License): Likewise.
23121         * modules/posix_spawnattr_init (License): Likewise.
23122         * modules/posix_spawnattr_getflags (License): Likewise.
23123         * modules/posix_spawnattr_setflags (License): Likewise.
23124         * modules/posix_spawnattr_getpgroup (License): Likewise.
23125         * modules/posix_spawnattr_setpgroup (License): Likewise.
23126         * modules/posix_spawnattr_getschedparam (License): Likewise.
23127         * modules/posix_spawnattr_setschedparam (License): Likewise.
23128         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23129         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23130         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23131         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23132         * modules/posix_spawnattr_getsigmask (License): Likewise.
23133         * modules/posix_spawnattr_setsigmask (License): Likewise.
23134         * modules/posix_spawnattr_destroy (License): Likewise.
23135         * modules/posix_spawn_file_actions_init (License): Likewise.
23136         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23137         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23138         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23139         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23140         * modules/getdtablesize (License): Likewise.
23141         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23142
23143 2010-10-26  Bruno Haible  <bruno@clisp.org>
23144
23145         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23146         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23147         Cygwin and mingw.
23148         Suggested by Eric Blake.
23149
23150 2010-10-26  Bruno Haible  <bruno@clisp.org>
23151
23152         stdio: Work around compilation error due to renameat() on Solaris 10.
23153         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23154         * lib/renameat.c: Don't include <unistd.h> here.
23155         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23156         Reported by Paul Eggert and Eric Blake.
23157
23158 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23159
23160         renameat: port to Solaris 10, which declares renameat in unistd.h
23161
23162         * lib/renameat.c: Include unistd.h before stdio.h, because
23163         Solaris 10 declares renameat in unistd.h.  Problem encountered
23164         when building GNU tar 1.24 on Solaris 10.
23165
23166 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23167
23168         fdopendir: fix C89 compilation
23169         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23170         compilers.
23171
23172 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23173
23174         inttostr: simplify by removing unnecessary redundancy
23175         * lib/anytostr.c: Don't include verify.h.
23176         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23177         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23178         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23179         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23180         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23181         Likewise.
23182         * modules/inttostr (Depends-on): Remove 'verify'.
23183
23184 2010-10-23  Bruno Haible  <bruno@clisp.org>
23185
23186         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23187         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23188         Reported by Eric Blake.
23189
23190 2010-10-23  Bruno Haible  <bruno@clisp.org>
23191
23192         Tests: Fix LOCALE_JA on MirBSD 10.
23193         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23194         to an UTF-8 locale.
23195         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23196         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23197         Reported by Eric Blake.
23198
23199 2010-10-21  Bruno Haible  <bruno@clisp.org>
23200
23201         nl_langinfo test: Avoid test failure on NetBSD 5.
23202         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23203         Reported by Eric Blake.
23204
23205 2010-10-21  Eric Blake  <eblake@redhat.com>
23206
23207         c-stack: work around libsigsegv 2.8 bug
23208         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23209         overflow on at least PowerPC64.
23210
23211 2010-10-17  Bruno Haible  <bruno@clisp.org>
23212
23213         userspec: Drop redundant file.
23214         * modules/userspec (Files): Remove lib/inttostr.h.
23215
23216 2010-10-17  Bruno Haible  <bruno@clisp.org>
23217
23218         nl_langinfo tests: Silence some warnings.
23219         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23220         Reported by Jim Meyering.
23221
23222 2010-10-17  Bruno Haible  <bruno@clisp.org>
23223
23224         Make use of GCC's attribute __alloc_size__.
23225         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23226         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23227         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23228         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23229         __alloc_size__.
23230         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23231         Suggested by Jim Meyering.
23232
23233 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23234
23235         bootstrap: anchor .gitignore entries.
23236         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23237         with...
23238         (insert_vc_ignore): ... this new function, which prepends `/' to
23239         all .gitignore entries before passing them to
23240         insert_sorted_if_absent.
23241
23242 2010-10-16  Bruno Haible  <bruno@clisp.org>
23243
23244         nextafter: Fix configure check.
23245         * modules/nextafter (configure.ac): Correct expected prototype.
23246
23247 2010-10-16  Bruno Haible  <bruno@clisp.org>
23248
23249         termios: Update documentation.
23250         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23251
23252 2010-10-16  Bruno Haible  <bruno@clisp.org>
23253
23254         tests: Make them compile with TinyCC.
23255         * tests/test-strstr.c (main): Remove parentheses around array
23256         initializer.
23257
23258 2010-10-15  Eric Blake  <eblake@redhat.com>
23259
23260         ignore-value: make header idempotent
23261         * lib/ignore-value.h: Add double-inclusion guards.
23262         Reported by Stefan Berger.
23263
23264 2010-10-15  Jim Meyering  <meyering@redhat.com>
23265
23266         GNUmakefile: handle "stable" target, not "major"
23267         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23268         lists in maint.mk and announce-gen.  Without this, "make stable"
23269         would fail to ensure that $(VERSION) is up to date.
23270
23271 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23272
23273         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23274         & co.
23275
23276 2010-10-14  Bruno Haible  <bruno@clisp.org>
23277
23278         vasnprintf: Don't set errno to 0.
23279         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23280         block that sets it to 0.
23281         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23282
23283 2010-10-14  Bruno Haible  <bruno@clisp.org>
23284
23285         socketlib: Fix.
23286         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23287         gl_PREREQ_SYS_H_WINSOCK2.
23288         Reported by Ian Beckwith <ianb@erislabs.net>.
23289
23290 2010-10-13  Jim Meyering  <meyering@redhat.com>
23291
23292         test-select-stdin.c: avoid warn_unused_result warnings
23293         * tests/test-select-stdin.c: Include "macros.h".
23294         ASSERT that read and fflush succeed.
23295
23296 2010-10-13  Jim Meyering  <meyering@redhat.com>
23297
23298         git-version-gen: do require git-VC'd files in cwd
23299         * build-aux/git-version-gen: Reject a git version string
23300         if there are no commits associated with the current directory.
23301         This avoids an unlikely false-positive (unrelated dir whose parent
23302         repository also contains a tag matching v*), as pointed out
23303         by Giuseppe Scrivano in
23304         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23305
23306 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23307
23308         argv-iter: omit nonconforming declaration
23309         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23310         enum arg_iter_err declaration, which doesn't conform to C99.
23311         Solaris 10 cc warns about this.
23312
23313 2010-10-13  Eric Blake  <eblake@redhat.com>
23314
23315         termios: fix compilation on mingw
23316         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23317         (gl_TERMIOS_H): Adjust it on mingw.
23318         * modules/termios (Makefile.am): Substitute new key.
23319         * lib/termios.in.h (includes): Make include_next conditional.
23320         * doc/posix-headers/termios.texi (termios.h): Update
23321         documentation.
23322         Reported by Daniel P. Berrange.
23323
23324 2010-10-13  Jim Meyering  <meyering@redhat.com>
23325
23326         git-version-gen: don't require that .git/ be in the current dir
23327         * build-aux/git-version-gen: Adjust this script so that it works
23328         when run from any working directory beneath the top-level .git/-
23329         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23330         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23331
23332         test-select: avoid warn_unused_result warnings
23333         * tests/test-select.c: Include "macros.h".
23334         ASSERT that each call to read, write, and pipe succeeds.
23335         While not technically required, also check each "close".
23336         * modules/select-tests (Files): Add tests/macros.h.
23337
23338         test-symlinkat: remove declaration of unused local
23339         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23340
23341         test-inttostr: avoid shadowing warnings
23342         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23343         and use malloc rather than the stack for the same reason as
23344         mentioned in the comment justifying the other allocation.
23345
23346 2010-10-11  Bruno Haible  <bruno@clisp.org>
23347
23348         stdlib: Allow multiple gnulib generated replacements to coexist.
23349         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23350         Reported by Sam Steingold <sds@gnu.org>.
23351
23352 2010-10-11  Jim Meyering  <meyering@redhat.com>
23353
23354         fix a documentation typo
23355         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23356
23357 2010-10-11  Eric Blake  <eblake@redhat.com>
23358
23359         futimens: work around Solaris 11 bug
23360         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23361         * tests/test-futimens.h (test_futimens): Enhance, rather than
23362         weaken test.
23363         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23364
23365 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23366
23367         Indentation.
23368         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23369         higher-level operators more to the left.
23370
23371 2010-10-11  Jim Meyering  <meyering@redhat.com>
23372
23373         test-futimens: avoid unwarranted test failure on Solaris 5.11
23374         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23375         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23376         because it tries to dereference the NULL name argument.
23377
23378 2010-10-11  Bruno Haible  <bruno@clisp.org>
23379
23380         Indentation.
23381         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23382         indentation.
23383
23384 2010-10-11  Jim Meyering  <meyering@redhat.com>
23385
23386         spawn.in.h: make indentation consistent with parentheses
23387         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23388         Make indentation consistent with parentheses.
23389
23390 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23391
23392         Fix mismatched parens in previous commit
23393         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23394         parens.
23395
23396 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23397
23398         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23399
23400         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23401         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23402         * lib/malloca.c: Include "verify.h".
23403         (verify1): Remove, replacing with a verify call.
23404         * lib/relocwrapper.c (verify1): Likewise.
23405         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23406         Likewise.
23407         * modules/malloca (Depends-on): Add 'verify'.
23408         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23409         * modules/vasnprintf (Depends-on): Add 'verify'.
23410         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23411         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23412         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23413         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23414         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23415         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23416         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23417
23418         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23419
23420         Formerly the style was sometimes 2*X - 1, because the C standard
23421         was wrongly thought to disallow ?: in integral constant expressions.
23422         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23423         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23424         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23425         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23426         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23427         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23428         verify that time_t cannot be floating.
23429
23430 2010-10-08  Eric Blake  <eblake@redhat.com>
23431
23432         time: enforce recent POSIX ruling that time_t is integral
23433         * lib/time.in.h (__time_t_must_be_integral): Detect any
23434         problematic systems, allowing the rest of gnulib to assume POSIX.
23435
23436 2010-10-08  Jim Meyering  <meyering@redhat.com>
23437
23438         fdopendir: fix a bug on systems lacking openat and /proc support
23439         OpenBSD 4.7 is one such system.  The most noticeable effect was
23440         failure of any application making nontrivial use of fts: rm, du,
23441         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23442           ./rm: traversal failed: `a': Bad file descriptor
23443         Debugging that, you see that even though FD 6 was closed just
23444         prior to the opendir call in fd_clone_opendir, its resulting
23445         dir->dd_fd was 8, rather than the expected value of 6:
23446
23447         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23448         93                close (fd);
23449         (gdb) n
23450         94                dir = fd_clone_opendir (dupfd);
23451         (gdb) n
23452         95                saved_errno = errno;
23453         (gdb) p dir->dd_fd
23454         $11 = 8
23455
23456         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23457         The problem is that on OpenBSD, fd_clone_opendir has to resort
23458         to using the old-style save/restore CWD mechanism, due to its
23459         lack of openat/proc support, and *that* would steal the FD (6)
23460         that opendir was supposed to use.
23461
23462         The fix is to squirrel away the desired FD so that save_cwd uses a
23463         different one, and then free the dest FD right before calling opendir.
23464         That guarantees opendir will use the required file descriptor.
23465
23466         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23467
23468 2010-10-08  Bruno Haible  <bruno@clisp.org>
23469
23470         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23471         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23472
23473 2010-10-08  Bruno Haible  <bruno@clisp.org>
23474
23475         nanosleep: Make replacement POSIX compliant.
23476         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23477         is out of range.
23478         Reported by Jim Meyering.
23479
23480 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23481
23482         bootstrap: add hook for altering gnulib.mk, for Bison
23483         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23484         the Bison bootstrapping process can rewrite file names and variables
23485         in this file before later parts of 'bootstrap' use the file.
23486         Bison wants to include lib/gnulib.mk from the top-level makefile,
23487         so it needs the file names in this file to be relative to the top
23488         level, not relative to lib; plus it needs variable names to be
23489         rewritten.
23490         (slurp): Use the new function.
23491
23492         bootstrap: reformat for readability
23493         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23494
23495 2010-10-08  Eric Blake  <eblake@redhat.com>
23496
23497         docs: update cygwin progress
23498         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23499         1.7.7.
23500         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23501         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23502         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23503         * doc/posix-functions/carg.texi (carg): Likewise.
23504         * doc/posix-functions/cargf.texi (cargf): Likewise.
23505         * doc/posix-functions/casin.texi (casin): Likewise.
23506         * doc/posix-functions/casinf.texi (casinf): Likewise.
23507         * doc/posix-functions/casinh.texi (casinh): Likewise.
23508         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23509         * doc/posix-functions/catan.texi (catan): Likewise.
23510         * doc/posix-functions/catanf.texi (catanf): Likewise.
23511         * doc/posix-functions/catanh.texi (catanh): Likewise.
23512         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23513         * doc/posix-functions/ccos.texi (ccos): Likewise.
23514         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23515         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23516         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23517         * doc/posix-functions/cexp.texi (cexp): Likewise.
23518         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23519         * doc/posix-functions/cimag.texi (cimag): Likewise.
23520         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23521         * doc/posix-functions/clog.texi (clog): Likewise.
23522         * doc/posix-functions/clogf.texi (clogf): Likewise.
23523         * doc/posix-functions/conj.texi (conj): Likewise.
23524         * doc/posix-functions/conjf.texi (conjf): Likewise.
23525         * doc/posix-functions/cpow.texi (cpow): Likewise.
23526         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23527         * doc/posix-functions/cproj.texi (cproj): Likewise.
23528         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23529         * doc/posix-functions/creal.texi (creal): Likewise.
23530         * doc/posix-functions/crealf.texi (crealf): Likewise.
23531         * doc/posix-functions/csin.texi (csin): Likewise.
23532         * doc/posix-functions/csinf.texi (csinf): Likewise.
23533         * doc/posix-functions/csinh.texi (csinh): Likewise.
23534         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23535         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23536         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23537         * doc/posix-functions/ctan.texi (ctan): Likewise.
23538         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23539         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23540         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23541         * doc/posix-headers/complex.texi (complex.h): Likewise.
23542
23543 2010-10-07  Jim Meyering  <meyering@redhat.com>
23544
23545         parse-datetime: avoid compilation failure on OpenBSD 4.7
23546         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23547         This works around a compilation failure on OpenBSD 4.7:
23548         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23549
23550 2010-10-07  Eric Blake  <eblake@redhat.com>
23551
23552         docs: update cygwin progress
23553         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23554         1.7.6.
23555         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23556         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23557         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23558         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23559         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23560         Likewise.
23561         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23562         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23563         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23564         Likewise.
23565         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23566         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23567         Likewise.
23568         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23569         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23570         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23571         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23572         Likewise.
23573         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23574         Likewise.
23575         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23576
23577         docs: update parse-datetime history
23578         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23579         documentation of this function's history and alternatives.
23580
23581         cygwin: use more robust version check
23582         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23583         exclude an eventual cygwin 1.9.1.
23584         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23585         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23586         (gl_FUNC_STRCASESTR): Likewise.
23587         Reported by Bruno Haible.
23588
23589 2010-10-06  Bruno Haible  <bruno@clisp.org>
23590
23591         string, sys_select: Avoid #including large headers unless necessary.
23592         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23593         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23594         OSF/1, BeOS, Haiku.
23595         Reported by Jim Meyering.
23596
23597 2010-10-05  Eric Blake  <eblake@redhat.com>
23598
23599         memmem, strstr, strcasestr: fix bug with long periodic needle
23600         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
23601         periodic needle having false positive.
23602         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
23603         and cygwin 1.7.7.
23604         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
23605         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23606         (gl_FUNC_STRCASESTR): Likewise.
23607         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23608         * tests/test-memmem.c (main): Expose the bug.
23609         * tests/test-strcasestr.c (main): Likewise.
23610         * tests/test-strstr.c (main): Likewise.
23611         * tests/test-c-strcasestr.c (main): Likewise.
23612         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
23613         * doc/posix-functions/strstr.texi (strstr): Likewise.
23614         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23615         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
23616
23617 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23618
23619         parse-datetime: do some more renaming
23620         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
23621         parse_datetime, not get_date.  Mention the renaming.
23622         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
23623         in comments.
23624         * m4/bison.m4: Likewise.
23625
23626 2010-10-05  Eric Blake  <eblake@redhat.com>
23627
23628         parse-datetime: better name than get_date
23629         * NEWS: Reword the deprecation notice.
23630         * modules/get_date: Rename to modules/parse-datetime.
23631         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
23632         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
23633         * lib/get_date.y: Rename to lib/parse-datetime.y.
23634         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
23635         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
23636         * doc/getdate.texi: Provide fallback wrapper.
23637         * lib/getdate.h: Move guts, and wrap...
23638         * lib/parse-datetime.h: ...new file.
23639         * lib/parse-datetime.y (get_date): Rename...
23640         (parse_datetime): ...to this.
23641         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
23642         (gl_PARSE_DATETIME): ...to this.
23643         * doc/posix-functions/getdate.texi (get_date): Provide fallback
23644         documentation.
23645         * modules/getdate (Files): Provide fallback docs and header.
23646         (Notice, Depends-on): Update references.
23647         * tests/test-parse-datetime.c: Likewise.
23648         * DEPENDENCIES: Likewise.
23649         * MODULES.html.sh (Date and time <time.h>): Likewise.
23650         * doc/parse-datetime.texi (Date input formats)
23651         (Authors of parse_datetime): Likewise.
23652         * modules/parse-datetime (Files, configure.ac, Makefile.am)
23653         (Include): Likewise.
23654         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
23655         * gnulib-tool: Likewise.
23656         * m4/bison.m4 (gl_BISON): Likewise.
23657         Suggested by Bruno Haible.
23658
23659 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23660
23661         more ports to Solaris tr, which needs [] around ranges
23662         * gnulib-tool: Solaris tr needs [] around ranges.
23663         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23664         * tests/test-pipe-filter-gi1.c (main): Likewise.
23665         * tests/test-pipe-filter-ii1.c (main): Likewise.
23666
23667 2010-10-05  Eric Blake  <eblake@redhat.com>
23668
23669         bootstrap: fix Solaris regression
23670         * build-aux/bootstrap (check_versions): Solaris tr still needs []
23671         around ranges.
23672         Reported by Pádraig Brady.
23673
23674         bootstrap: work with pkg-config
23675         * build-aux/bootstrap (check_versions): Also transliterate - in
23676         prerequisite name.
23677         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
23678         prerequisites that were already found, to avoid confusion.
23679         Reported by Justin Clift.
23680
23681         faccessat: remove unused wrappers
23682         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
23683         presence of these wrappers dragged in -lgen on Solaris.
23684         Reported by Clemens Brogi; fix suggested by Paul Eggert.
23685
23686 2010-10-05  Jim Meyering  <meyering@redhat.com>
23687
23688         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
23689         * Makefile (sc_pragma_columns): New syntax-check rule.
23690
23691 2010-10-04  Bruno Haible  <bruno@clisp.org>
23692
23693         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
23694         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
23695         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
23696         Reported by Bruce Korb and Eric Blake.
23697
23698 2010-10-04  Bruno Haible  <bruno@clisp.org>
23699
23700         threadlib: Make option --with-libpth-prefix work.
23701         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
23702         use $LIBPTH, not just -lpth.
23703
23704 2010-10-04  Bruno Haible  <bruno@clisp.org>
23705
23706         Avoid line length limitation from HP NonStop system header files.
23707         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
23708         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
23709         * lib/ctype.in.h: Likewise.
23710         * lib/dirent.in.h: Likewise.
23711         * lib/errno.in.h: Likewise.
23712         * lib/fcntl.in.h: Likewise.
23713         * lib/float.in.h: Likewise.
23714         * lib/getopt.in.h: Likewise.
23715         * lib/iconv.in.h: Likewise.
23716         * lib/inttypes.in.h: Likewise.
23717         * lib/langinfo.in.h: Likewise.
23718         * lib/locale.in.h: Likewise.
23719         * lib/math.in.h: Likewise.
23720         * lib/netdb.in.h: Likewise.
23721         * lib/netinet_in.in.h: Likewise.
23722         * lib/poll.in.h: Likewise.
23723         * lib/pthread.in.h: Likewise.
23724         * lib/pty.in.h: Likewise.
23725         * lib/sched.in.h: Likewise.
23726         * lib/se-selinux.in.h: Likewise.
23727         * lib/search.in.h: Likewise.
23728         * lib/signal.in.h: Likewise.
23729         * lib/spawn.in.h: Likewise.
23730         * lib/stdarg.in.h: Likewise.
23731         * lib/stddef.in.h: Likewise.
23732         * lib/stdint.in.h: Likewise.
23733         * lib/stdio.in.h: Likewise.
23734         * lib/stdlib.in.h: Likewise.
23735         * lib/string.in.h: Likewise.
23736         * lib/strings.in.h: Likewise.
23737         * lib/sys_file.in.h: Likewise.
23738         * lib/sys_ioctl.in.h: Likewise.
23739         * lib/sys_select.in.h: Likewise.
23740         * lib/sys_socket.in.h: Likewise.
23741         * lib/sys_stat.in.h: Likewise.
23742         * lib/sys_time.in.h: Likewise.
23743         * lib/sys_times.in.h: Likewise.
23744         * lib/sys_utsname.in.h: Likewise.
23745         * lib/sys_wait.in.h: Likewise.
23746         * lib/sysexits.in.h: Likewise.
23747         * lib/termios.in.h: Likewise.
23748         * lib/time.in.h: Likewise.
23749         * lib/unistd.in.h: Likewise.
23750         * lib/wchar.in.h: Likewise.
23751         * lib/wctype.in.h: Likewise.
23752         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
23753         * modules/ctype (Makefile.am): Likewise.
23754         * modules/dirent (Makefile.am): Likewise.
23755         * modules/errno (Makefile.am): Likewise.
23756         * modules/fcntl-h (Makefile.am): Likewise.
23757         * modules/float (Makefile.am): Likewise.
23758         * modules/getopt-posix (Makefile.am): Likewise.
23759         * modules/iconv-h (Makefile.am): Likewise.
23760         * modules/inttypes (Makefile.am): Likewise.
23761         * modules/langinfo (Makefile.am): Likewise.
23762         * modules/locale (Makefile.am): Likewise.
23763         * modules/math (Makefile.am): Likewise.
23764         * modules/netdb (Makefile.am): Likewise.
23765         * modules/netinet_in (Makefile.am): Likewise.
23766         * modules/poll-h (Makefile.am): Likewise.
23767         * modules/pthread (Makefile.am): Likewise.
23768         * modules/pty (Makefile.am): Likewise.
23769         * modules/sched (Makefile.am): Likewise.
23770         * modules/search (Makefile.am): Likewise.
23771         * modules/selinux-h (Makefile.am): Likewise.
23772         * modules/signal (Makefile.am): Likewise.
23773         * modules/spawn (Makefile.am): Likewise.
23774         * modules/stdarg (Makefile.am): Likewise.
23775         * modules/stddef (Makefile.am): Likewise.
23776         * modules/stdint (Makefile.am): Likewise.
23777         * modules/stdio (Makefile.am): Likewise.
23778         * modules/stdlib (Makefile.am): Likewise.
23779         * modules/string (Makefile.am): Likewise.
23780         * modules/strings (Makefile.am): Likewise.
23781         * modules/sys_file (Makefile.am): Likewise.
23782         * modules/sys_ioctl (Makefile.am): Likewise.
23783         * modules/sys_select (Makefile.am): Likewise.
23784         * modules/sys_socket (Makefile.am): Likewise.
23785         * modules/sys_stat (Makefile.am): Likewise.
23786         * modules/sys_time (Makefile.am): Likewise.
23787         * modules/sys_times (Makefile.am): Likewise.
23788         * modules/sys_utsname (Makefile.am): Likewise.
23789         * modules/sys_wait (Makefile.am): Likewise.
23790         * modules/sysexits (Makefile.am): Likewise.
23791         * modules/termios (Makefile.am): Likewise.
23792         * modules/time (Makefile.am): Likewise.
23793         * modules/unistd (Makefile.am): Likewise.
23794         * modules/wchar (Makefile.am): Likewise.
23795         * modules/wctype (Makefile.am): Likewise.
23796
23797 2010-10-04  Bruno Haible  <bruno@clisp.org>
23798
23799         read-file tests: Avoid a test failure on NonStop Kernel.
23800         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
23801         a regular file.
23802         Reported by Joachim Schmitz <schmitz@hp.com>.
23803
23804 2010-10-03  Bruno Haible  <bruno@clisp.org>
23805
23806         gnulib-tool: Fixes for --create-testdir with --libtool.
23807         * gnulib-tool (func_get_automake_snippet): Don't augment
23808         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
23809         an executable.
23810         (func_create_testdir): Handle module 'alloca' like func_import.
23811         Reported by Bruce Korb <bruce.korb@gmail.com>.
23812
23813 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23814
23815         Avoid some lines longer than 80 characters.
23816         * lib/stdint.in.h: Break long comment lines.
23817         * lib/math.in.h: Likewise.
23818         (_GL_NUM_UINT_WORDS): New macro, for readability.
23819         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
23820         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
23821         * lib/stdlib.in.h: Likewise.
23822         * lib/spawn.in.h: Likewise.
23823         * lib/sys_socket.in.h: Update an URL.
23824         * lib/sys_stat.in.h: Break long line.
23825
23826 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
23827
23828         Improve pmccabe2html.
23829         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
23830         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
23831         when the sources change. Remove the line in the HTML about "Used
23832         ranges" (which implied that there might be other unused ranges),
23833         rename "Resume" to "Summary" (easier to understand for more users).
23834         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
23835         styles, and some unnecessary blank lines.
23836
23837 2010-10-03  Bruno Haible  <bruno@clisp.org>
23838             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
23839
23840         acl: Add support for ACLs on NonStop Kernel.
23841         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
23842         Check whether the function aclsort() exists.
23843         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
23844         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
23845         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23846         (acl_nontrivial [HAVE_ACLSORT]: New function.
23847         (file_has_acl): Implement for NonStop Kernel.
23848         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23849         (qset_acl): Implement for NonStop Kernel.
23850         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
23851         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23852         (main): Implement for NonStop Kernel.
23853         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
23854         Kernel. Handle this flavor.
23855         * tests/test-set-mode-acl.sh: Likewise.
23856         * tests/test-copy-acl.sh: Likewise.
23857         * tests/test-copy-file.sh: Likewise.
23858
23859 2010-10-03  Bruno Haible  <bruno@clisp.org>
23860
23861         Info about ACLs on NonStop Kernel.
23862         * doc/acl-resources.txt: Add info about NonStop Kernel.
23863         References by Joachim Schmitz <schmitz@hp.com>.
23864
23865 2010-10-02  Bruno Haible  <bruno@clisp.org>
23866
23867         Define missing EDQUOT on NonStop Kernel.
23868         * lib/errno.in.h (EDQUOT): Assign a value if missing.
23869         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
23870         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
23871         missing.
23872         * doc/posix-headers/errno.texi: Mention the NSK bug.
23873         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
23874         Reported by Joachim Schmitz <schmitz@hp.com>.
23875
23876 2010-10-02  Bruno Haible  <bruno@clisp.org>
23877
23878         Update doc for POSIX:2008.
23879         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
23880         Update URL of POSIX specification.
23881
23882 2010-10-02  Bruno Haible  <bruno@clisp.org>
23883
23884         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
23885         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
23886         from gnulib, not from Automake.
23887
23888 2010-10-02  Bruno Haible  <bruno@clisp.org>
23889
23890         New module 'system-posix'.
23891         * modules/system-posix: New file.
23892         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
23893         module is present.
23894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23895         GNULIB_SYSTEM_POSIX.
23896         * modules/stdlib (Depends-on): Remove sys_wait.
23897         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
23898         * doc/posix-functions/system.texi: Mention the new module.
23899         * doc/posix-headers/stdlib.texi: Likewise.
23900         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
23901         define test_sys_wait_macros to a no-op.
23902         Reported by Sam Steingold <sds@gnu.org>.
23903
23904 2010-09-30  Bruno Haible  <bruno@clisp.org>
23905
23906         More renaming from 'getdate' to 'get_date'.
23907         * doc/get_date.texi: Renamed from doc/getdate.texi.
23908         * modules/get_date (Files): Update.
23909         * MODULES.html.sh (Date and time <time.h>): Update.
23910         * DEPENDENCIES: Update.
23911         * gnulib-tool: Update comment.
23912         * m4/bison.m4 (gl_BISON): Likewise.
23913         * m4/get_date.m4 (gl_GET_DATE): Likewise.
23914
23915 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
23916
23917         bootstrap: support ACLOCAL_FLAGS during aclocal
23918         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
23919         can add additional -I dir for third-party .m4 files.
23920
23921 2010-09-30  Eric Blake  <eblake@redhat.com>
23922
23923         bootstrap: use glibtoolize on MacOS
23924         * build-aux/bootstrap (check_versions): Convert libtool into
23925         libtoolize.
23926         (tool search): Move libtool check earlier, and look for
23927         glibtoolize for MacOS.
23928         (gnulib_tool_options): Auto-add --libtool when appropriate.
23929         Reported by Justin Clift.
23930
23931         poll: fix typo that broke test on MacOS
23932         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
23933         Reported by Justin Clift.
23934
23935         getdate: rename to get_date
23936         Note: getdate.h is not renamed, to minimize client impact.
23937         * modules/getdate: Mark obsolete.  Move old contents...
23938         * modules/get_date: ...to new module name.
23939         * modules/getdate-tests: Move...
23940         * modules/get_date-tests: ...here.
23941         * m4/getdate.m4: Move...
23942         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
23943         * lib/getdate.y: Move...
23944         * lib/get_date.y: ...here.
23945         * tests/test-getdate.c: Move...
23946         * tests/test-get_date.c: ...here.
23947         * doc/posix-functions/getdate.texi (getdate): Update name.
23948         * NEWS: Mention the change.
23949
23950 2010-09-29  Bruno Haible  <bruno@clisp.org>
23951
23952         Separate the module 'waitpid' from the module 'sys_wait'.
23953         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23954         present.
23955         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23956         gl_MODULE_INDICATOR_FOR_TESTS.
23957         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23958         * modules/sys_wait (Depends-on): Remove waitpid.
23959         (Makefile.am): Substitute GNULIB_WAITPID.
23960         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23961         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23962         signature only if the 'waitpid' module is present.
23963         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23964         * NEWS: Mention the change.
23965         * modules/grantpt (Depends-on): Add waitpid.
23966         * modules/wait-process (Depends-on): Likewise.
23967
23968 2010-09-29  Bruno Haible  <bruno@clisp.org>
23969
23970         More tests for module 'sys_wait'.
23971         * modules/sys_wait-c++-tests: New file.
23972         * tests/test-sys_wait-c++.cc: New file.
23973         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23974         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23975
23976 2010-09-29  Bruno Haible  <bruno@clisp.org>
23977
23978         New module 'waitpid'.
23979         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23980         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23981         Don't include <process.h>.
23982         (waitpid): Declare only, using modern idiom.
23983         * m4/waitpid.m4: New file.
23984         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23985         * modules/waitpid: New file.
23986         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23987         (Makefile.am): Update.
23988         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23989
23990 2010-09-28  Bruno Haible  <bruno@clisp.org>
23991
23992         poll: Assume ANSI C.
23993         * lib/poll.c (poll): Use an ANSI C declaration.
23994
23995 2010-09-28  Bruno Haible  <bruno@clisp.org>
23996
23997         poll-h: Create poll.h on all platforms.
23998         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23999         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24000         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24001         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24002         (gl_REPLACE_POLL_H): Don't set POLL_H.
24003         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24004         * modules/poll-h (Depends-on): Add include_next.
24005         (Makefile.am): Create poll.h unconditionally. Substitute also
24006         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24007
24008 2010-09-28  Bruno Haible  <bruno@clisp.org>
24009
24010         Tests for module 'poll-h'.
24011         * modules/poll-h-c++-tests: New file.
24012         * tests/test-poll-h-c++.cc: New file.
24013
24014         Tests for module 'poll-h'.
24015         * modules/poll-h-tests: New file.
24016         * tests/test-poll-h.c: New file.
24017
24018 2010-09-28  Bruno Haible  <bruno@clisp.org>
24019
24020         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24021         * modules/poll-h (Depends-on): Add 'extensions'.
24022
24023 2010-09-28  Bruno Haible  <bruno@clisp.org>
24024
24025         New module 'poll-h'.
24026         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24027         (poll): Use modern idiom.
24028         * modules/poll-h: New file.
24029         * modules/poll (Files): Remove lib/poll.in.h.
24030         (Depends-on): Add poll-h.
24031         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24032         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24033         * m4/poll_h.m4: New file.
24034         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24035         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24036         and invoke gl_REPLACE_POLL_H.
24037         * lib/poll.c: Use common idiom.
24038         * tests/test-poll.c: Likewise.
24039         * doc/posix-headers/poll.texi: Mention the poll-h module.
24040         Suggested by Eric Blake.
24041
24042 2010-09-26  Bruno Haible  <bruno@clisp.org>
24043
24044         sys_wait: Implement WSTOPSIG.
24045         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24046         Reported by Simon Josefsson.
24047
24048 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24049
24050         stdlib, sys_wait: Avoid compilation error on mingw.
24051         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24052
24053 2010-09-26  Bruno Haible  <bruno@clisp.org>
24054
24055         stdlib tests: Avoid code duplication.
24056         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24057         * modules/sys_wait-tests (Files): Likewise.
24058         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24059         * tests/test-stdlib.c: Include test-sys_wait.h.
24060         (main): Invoke test_sys_wait_macros.
24061         * tests/test-sys_wait.c: Include test-sys_wait.h.
24062         (main): Invoke test_sys_wait_macros.
24063
24064 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24065
24066         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24067         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24068         sure Windows sockets are working before calling getaddrinfo.
24069         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24070         * doc/gnulib.texi (Windows sockets): Fix typo.
24071
24072 2010-09-25  Bruno Haible  <bruno@clisp.org>
24073
24074         Tests for module 'regex-quote'.
24075         * modules/regex-quote-tests: New file.
24076         * tests/test-regex-quote.c: New file.
24077
24078         New module 'regex-quote'.
24079         * lib/regex-quote.h: New file.
24080         * lib/regex-quote.c: New file.
24081         * modules/regex-quote: New file.
24082         Suggested by Reuben Thomas <rrt@sc3d.org>.
24083
24084 2010-09-24  Bruno Haible  <bruno@clisp.org>
24085
24086         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24087         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24088
24089 2010-09-23  Bruno Haible  <bruno@clisp.org>
24090
24091         setenv: Relax license.
24092         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24093         Blake.
24094         Requested by Eric Blake.
24095
24096 2010-09-22  Bruno Haible  <bruno@clisp.org>
24097
24098         termios: Relax license.
24099         * modules/termios (License): Change to LGPLv2+.
24100         Requested by Eric Blake.
24101
24102 2010-09-22  Bruno Haible  <bruno@clisp.org>
24103
24104         threadlib: Allow the package to change the default to 'no'.
24105         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24106         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24107         Reported by Paul Eggert.
24108
24109 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24110             Bruno Haible  <bruno@clisp.org>
24111
24112         Fix endless loop in mbmemcasecoll.
24113         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24114         byte.
24115         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24116
24117 2010-09-22  Bruno Haible  <bruno@clisp.org>
24118
24119         Tests for module 'memcoll'.
24120         * modules/memcoll-tests: New file.
24121         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24122
24123         memcoll, xmemcoll: Clarify size vs. length.
24124         * modules/memcoll.c (memcoll0): Clarify specification.
24125         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24126         passed to collate_error.
24127
24128 2010-09-22  Bruno Haible  <bruno@clisp.org>
24129
24130         Tests for module 'memcasecmp'.
24131         * modules/memcasecmp-tests: New file.
24132         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24133
24134 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24135
24136         * lib/pthread.in.h: Add split double-inclusion guard, and include
24137         system <pthread.h> if there is one.  Use @@-style as in other
24138         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24139         pthread.h doesn't.
24140         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24141         (pthread_mutexattr_settype, pthread_mutex_trylock):
24142         New static inline functions, if there's no system <pthread.h>.
24143         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24144         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24145         Approximate with mutexes if the system lacks spinlocks, as in
24146         MacOS.
24147         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24148         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24149         @@-style.  Check for spinlocks separately.
24150         (gl_PTHREAD_DEFAULTS): New macro.
24151         * modules/pthread: Redo to use a more typical style for in.h files.
24152
24153 2010-09-21  Eric Blake  <eblake@redhat.com>
24154
24155         net_if: enhance tests
24156         * tests/test-net_if.c (main): Move signature checks earlier.
24157         Print failures to stderr.
24158         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24159         Document the bug that we do not yet fix.
24160
24161 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24162
24163         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24164         about gnulib, not GSS.
24165
24166 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24167
24168         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24169         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24170         for Emacs.
24171         * build-aux/pmccabe2html: Make Makefile.am example code more
24172         cut-and-paste friendly.
24173
24174 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24175
24176         * tests/test-net_if.c: New file.
24177         * modules/net_if-tests: New file.
24178
24179 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24180
24181         pthread: add pthread_spin_destroy
24182         * lib/pthread.in.h (pthread_spin_destroy): New function.
24183
24184 2010-09-19  Bruno Haible  <bruno@clisp.org>
24185
24186         gnulib-tool: Fix --help output.
24187         * gnulib-tool (func_usage): Fix help message.
24188         Reported by Reuben Thomas <rrt@sc3d.org>.
24189
24190 2010-09-18  Jim Meyering  <meyering@redhat.com>
24191
24192         maint.mk: avoid unexpanded \n in two diagnostics
24193         * top/maint.mk (sc_prohibit_always_true_header_tests):
24194         Don't use a literal \n in a halt=... assignment.  It would not be
24195         expanded, and the two \n bytes would appear in the diagnostic output
24196         rather than the desired newline.  Use halt=$$(printf ... instead.
24197         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24198
24199 2010-09-18  Bruno Haible  <bruno@clisp.org>
24200
24201         netinet_in: Doc tweak.
24202         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24203         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24204
24205 2010-09-18  Jim Meyering  <meyering@redhat.com>
24206
24207         init.sh: correct an outdated comment
24208         * tests/init.sh (create_exe_shims_):  s/function/alias/
24209
24210         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24211         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24212         a file named "*.exe" is removed between the glob expansion and the
24213         processing of that oddly named file.
24214
24215 2010-09-17  Eric Blake  <eblake@redhat.com>
24216
24217         mirbsd: add some more support
24218         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24219         in BSD family.
24220         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24221         devices as OpenBSD.
24222         * m4/host-os.m4 (mirbsd): Add MirBSD.
24223
24224         tests: fix unportable assumption on sys/wait.h
24225         * tests/test-sys_wait.c (main): Relax test.
24226         * tests/test-stdlib.c (main): Likewise.
24227
24228         init.sh: accomodate directory with no .exes
24229         * tests/init.sh: Accomodate directory containing only scripts.
24230
24231         tests: avoid compiler warning
24232         * tests/test-stdlib.c (main): Use the variable.
24233
24234         fdutimens, fdutimensat: update signature, again
24235         * lib/utimens.h (gl_futimens): Delete, and move signature...
24236         (fdutimens): ...here.
24237         (fdutimensat): Rearrange signature.
24238         (lutimensat): Rename variable for clarity.
24239         * lib/fdutimensat.c (fdutimensat): Update signature.
24240         * lib/utimens.c (fdutimens): Likewise.
24241         (gl_futimens): Delete.
24242         (utimens, lutimens): Update callers.
24243         * lib/futimens.c (futimens): Likewise.
24244         * tests/test-fdutimensat.c: Likewise.
24245         * tests/test-utimens.c: Likewise.
24246         * tests/test-futimens.h: Update comment.
24247         * NEWS: Mention this.
24248         Suggested by Paul Eggert.
24249
24250 2010-09-17  Bruno Haible  <bruno@clisp.org>
24251
24252         Take over the maintenance of some older macros from Autoconf.
24253         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24254         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24255         GNU Autoconf.
24256         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24257         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24258
24259 2010-09-17  Eric Blake  <eblake@redhat.com>
24260
24261         fdutimensat: drop atflag validation
24262         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24263         with valid fd, to close a race scenario where futimens is
24264         unsupported and FILE was replaced by a symlink.
24265         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24266         accordingly.
24267         Suggested by Paul Eggert.
24268
24269 2010-09-16  Bruno Haible  <bruno@clisp.org>
24270
24271         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24272         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24273
24274 2010-09-16  Bruno Haible  <bruno@clisp.org>
24275
24276         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24277         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24278         login_tty exists.
24279         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24280
24281 2010-09-16  Bruno Haible  <bruno@clisp.org>
24282
24283         login_tty: Make the replacement code work on BSD systems.
24284         * lib/login_tty.c: Include <sys/ioctl.h>.
24285         (login_tty): Use ioctl TIOCSCTTY when available.
24286         * modules/login_tty (Depends-on): Add sys_ioctl.
24287         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24288
24289 2010-09-16  Bruno Haible  <bruno@clisp.org>
24290
24291         login_tty: Stricter unit test.
24292         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24293         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24294         and tcgetsid() after login_tty.
24295         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24296
24297 2010-09-16  Bruno Haible  <bruno@clisp.org>
24298
24299         New module 'tcgetsid'.
24300         * lib/tcgetsid.c: New file.
24301         * m4/tcgetsid.m4: New file.
24302         * modules/tcgetsid: New file.
24303         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24304         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24305         GNULIB_TCGETSID, HAVE_TCGETSID.
24306         * lib/termios.in.h: Include <sys/types.h>.
24307         (tcgetsid): New declaration.
24308         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24309         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24310         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24311         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24312
24313 2010-09-16  Bruno Haible  <bruno@clisp.org>
24314
24315         Tests for module 'termios'.
24316         * modules/termios-c++-tests: New file.
24317         * modules/termios-tests: New file.
24318         * tests/test-termios-c++.cc: New file.
24319         * tests/test-termios.c: New file.
24320
24321         New module 'termios'.
24322         * modules/termios: New file.
24323         * lib/termios.in.h: New file.
24324         * m4/termios_h.m4: New file.
24325         * doc/posix-headers/termios.texi: Mention the new module.
24326
24327 2010-09-16  Eric Blake  <eblake@redhat.com>
24328
24329         fdutimensat: add an atflag parameter
24330         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24331         * lib/utimens.h (fdutimensat): Update prototype.
24332         * tests/test-fdutimensat.c: Adjust test to match.
24333         * NEWS: Document the change.
24334         Suggested by Paul Eggert.
24335
24336 2010-09-16  Bruno Haible  <bruno@clisp.org>
24337
24338         Fix typos in comments.
24339         * lib/striconveh.h: Fix typo in comment.
24340         * lib/login_tty.c (login_tty): Likewise.
24341
24342 2010-09-15  Bruno Haible  <bruno@clisp.org>
24343
24344         stdlib: clarify MirBSD WEXITSTATUS bug
24345         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24346         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24347
24348 2010-09-15  Eric Blake  <eblake@redhat.com>
24349
24350         stdlib: work around MirBSD WEXITSTATUS bug
24351         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24352         * modules/stdlib (Depends-on): Add sys_wait.
24353         * tests/test-sys_wait.c (main): Enhance test.
24354         * tests/test-stdlib.c (main): Likewise.
24355         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24356
24357         docs: mention MacOS issue with WEXITSTATUS(constant)
24358         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24359         issue.
24360         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24361
24362         strnlen: add tests
24363         * modules/strnlen-tests: New file.
24364         * tests/test-strnlen.c: Likewise.
24365
24366 2010-09-14  Bruno Haible  <bruno@clisp.org>
24367
24368         unistr/base: Avoid link errors when module 'libunistring' is also used.
24369         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24370         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24371         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24372         Declare also when HAVE_LIBUNISTRING is set.
24373         Reported by Pádraig Brady <P@draigbrady.com>.
24374
24375 2010-09-14  Eric Blake  <eblake@redhat.com>
24376
24377         test-rawmemchr: make more robust
24378         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24379         (Depends-on, configure.ac): Add needed prerequisites to use it.
24380         * modules/memchr-tests (Files, Depends-on, configure.ac):
24381         Likewise, to avoid implicit reliance on memchr module prereqs.
24382         * tests/test-memchr.c (main): Ensure proper masking.
24383         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24384         reads.
24385
24386         memchr: detect glibc Alpha bug
24387         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24388         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24389         Alpha.
24390         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24391         * tests/test-memchr.c (main): Enhance test.
24392         Reported by Nelson H. F. Beebe.
24393
24394 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24395
24396         fts, getcwd, glob: audit for dirfd returning -1
24397         * lib/fts.c (opendir): Remove #define; no longer used.
24398         (opendirat): New arg PDIR_FD.  All callers changed.
24399         (fts_build, _opendir2): Use new opendirat to avoid the need for
24400         dirfd, or for checking whether dirfd returns a negative value.
24401         Don't use opendir; always use openat followed by fdopendir.
24402         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24403         it.
24404         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24405         returns -1 here.
24406         * modules/fts (Depends-on): Remove dirfd.
24407         * modules/getcwd (Depends-on): Likewise.
24408
24409 2010-09-13  Eric Blake  <eblake@redhat.com>
24410
24411         float: fix broken MirBSD header
24412         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24413         * doc/posix-headers/float.texi (float.h): Document it.
24414
24415 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24416
24417         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24418         * lib/fts.c (opendirat): New arg extra_flags.
24419         (__opendir2): Use it to avoid following symlinks when opening
24420         a directory, if symlinks are not supposed to be followed.  See
24421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24422
24423         fdopendir: preserve argument fd before returning
24424         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24425         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24426         (fdopendir): Use them, arranging for FD to be open to the same
24427         directory that it was when it started.  (It might be temporarily
24428         closed while fdopendir is running, so this not thread- or
24429         signal-safe.)  Be careful to do the right thing even when file
24430         descriptors are scarce and dup fails with errno == EMFILE.  See
24431         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24432
24433 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24434
24435         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24436         * NEWS: Document change.
24437         * m4/regex.m4: Disable test for regoff_t size.
24438
24439 2010-09-13  Jim Meyering  <meyering@redhat.com>
24440
24441         fts: don't operate on an invalid file descriptor after failed dup
24442         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24443         negative file descriptor.
24444
24445 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24446
24447         savedir: add streamsavedir, deprecate fdsavedir
24448         * NEWS: Mention deprecation of fdsavedir.
24449         * lib/savedir.c (streamsavedir): New extern function, whose name
24450         ends in "savedir" to be consistent with the others.  This differs
24451         from savedirstream in that it doesn't close its argument.  The
24452         next version of GNU tar will use this instead of fdsavedir, to
24453         avoid some race conditions and conserve file descriptors.
24454         (savedirstream): Reimplement as a wrapper around streamsavedir.
24455         (fdsavedir): Add a comment deprecating this function.  As far as
24456         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24457         * lib/savedir.h (streamsavedir): New decl.
24458         (fdsavedir): Add a comment deprecating this.
24459
24460 2010-09-10  Bruno Haible  <bruno@clisp.org>
24461
24462         langinfo: Fix last commit.
24463         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24464         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24466
24467 2010-09-10  Bruno Haible  <bruno@clisp.org>
24468
24469         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24470         * lib/progreloc.c (O_EXEC): Define fallback.
24471
24472 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24473
24474         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24475         * NEWS: Document recent changes to fcntl-h.
24476         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24477         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24478         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24479         Similarly for O_SEARCH; this last was already true, but not documented.
24480         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24481         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24482         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24483         Likewise.
24484         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24485         is zero, not whether it is defined.
24486         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24487         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24488         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24489
24490 2010-09-10  Bruno Haible  <bruno@clisp.org>
24491
24492         langinfo, nl_langinfo: Fix for IRIX 5.3.
24493         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24494         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24495         HAVE_LANGINFO_YESEXPR.
24496         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24497         HAVE_LANGINFO_YESEXPR.
24498         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24499         HAVE_LANGINFO_T_FMT_AMPM is 0.
24500         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24501         HAVE_LANGINFO_YESEXPR is 0.
24502         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24503         NOEXPR.
24504         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24505         * doc/posix-functions/nl_langinfo.texi: Likewise.
24506         Reported by Eric Blake.
24507
24508 2010-09-10  Bruno Haible  <bruno@clisp.org>
24509
24510         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24511         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24512         on FreeBSD 8.0 and OpenBSD 4.6.
24513         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24514         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24515         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24516         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24517         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24518         ac_includes_default.
24519         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24520
24521 2010-09-09  Eric Blake  <eblake@redhat.com>
24522
24523         strsignal: work around NetBSD bug
24524         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24525         * lib/string.in.h (includes): Likewise.
24526         * doc/posix-functions/strsignal.texi (strsignal): Document the
24527         bug.
24528         Reported by Nelson H. F. Beebe.
24529
24530         gnulib-tool: work with NetBSD /bin/sh
24531         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24532         (func_get_description, func_get_comment, func_get_status)
24533         (func_get_notice, func_get_applicability, func_get_filelist)
24534         (func_get_dependencies, func_get_autoconf_early_snippet)
24535         (func_get_autoconf_snippet, func_get_automake_snippet)
24536         (func_get_include_directive, func_get_link_directive)
24537         (func_get_license, func_get_maintainer, func_import): Avoid
24538         shell syntax errors from parsing syntax extensions.
24539
24540 2010-09-09  Bruno Haible  <bruno@clisp.org>
24541
24542         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24543         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24544         a reliable way to determine whether the 'alias' command works.
24545
24546 2010-09-08  Jim Meyering  <meyering@redhat.com>
24547
24548         init.sh: penalize a set-x-impaired shell; don't disqualify it
24549         * tests/init.sh: Too many shells corrupt application stderr when
24550         you set -x, so we can't afford to disqualify them, since at least
24551         on Irix-6.5, that would disqualify all bourne shells.
24552         Instead, use a two-pass approach.
24553         On the first pass, try to find a shell that meets the stricter
24554         condition that set -x does not corrupt stderr.
24555         If no shell meets the stricter condition, retest each candidate
24556         shell, but without that extra condition.  Finally, when
24557         VERBOSE=yes is requested and set -x might cause trouble, simply
24558         issue a warning and refrain from enabling debug output.
24559
24560 2010-09-08  Eric Blake  <eblake@redhat.com>
24561
24562         unsetenv: fix OpenBSD bug
24563         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24564         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24565         documentation.
24566         Reported by Jim Meyering.
24567
24568         strtod: work around IRIX 6.5 bug
24569         * lib/strtod.c (strtod): Reparse number on shorter string if
24570         exponent parse was invalid.
24571         * tests/test-strtod.c (main): Add check for "0x1p 2".
24572         Reported by Tom G. Christensen.
24573
24574         getopt: optimize previous patch
24575         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24576         empty variable.  Speed up awk script.
24577         Reported by Paolo Bonzini.
24578
24579 2010-09-08  Jim Meyering  <meyering@redhat.com>
24580
24581         test.sh: disqualify shells for which set -x corrupts stderr
24582         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24583         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24584         appear in stderr output.  For example, this command:
24585             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24586         prints "P=1" on those two systems:
24587
24588 2010-09-08  Bruno Haible  <bruno@clisp.org>
24589
24590         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24591         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24592         commands, because some shells ignore redirections when there is an
24593         error in the command lookup.
24594         Reported by Eric Blake.
24595
24596 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
24597
24598         * lib/regex.h: Fix a mention of `regex_compile' (should be
24599         `re_compile_pattern').
24600         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
24601         (re_set_registers): Correct name of parameter in comment.
24602
24603         * doc/regex.texi: Add documentation for missing syntax flags.
24604         Remove commented-out documentation of defunct syntax option
24605         RE_NO_EMPTY_ALTS.
24606         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
24607         Add documentation of re_set_registers.
24608         Document trick to re-use a pattern buffer by setting fastmap manually.
24609         Update documentation of struct re_pattern_buffer per public members.
24610         Uncomment documentation of equivalence class operators and
24611         collating symbol operators, since they are now implemented,
24612         Explain leftmost-longest matching in relation to alternatives.
24613         Tidy documentation of substring matching.
24614         Remove POSIX documentation, which is done better in
24615         glibc, and refer the reader there. Keep BSD API documentation, as
24616         that is not readily available elsewhere.
24617
24618 2010-09-07  Eric Blake  <eblake@redhat.com>
24619
24620         getopt: handle POSIXLY_CORRECT set but not exported
24621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
24622         export state of POSIXLY_CORRECT, due to bash set -o posix.
24623         Reported by Dustin J. Mitchell.
24624
24625 2010-09-05  Bruno Haible  <bruno@clisp.org>
24626
24627         gnulib-tool: Highlight the changed options.
24628         * gnulib-tool (func_usage): Display the --import, --add-import,
24629         --remove-import explanations in bold font.
24630
24631 2010-09-06  Karl Berry  <karl@gnu.org>
24632
24633         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
24634
24635 2010-09-05  Bruno Haible  <bruno@clisp.org>
24636
24637         uniwidth/width: Update comment.
24638         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
24639         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
24640
24641 2010-09-05  Bruno Haible  <bruno@clisp.org>
24642
24643         isinf, isnan: Relax license.
24644         * modules/isinf (License): Change from GPL to LGPL, with consent from
24645         Ben Pfaff.
24646         * modules/isnan (License): Likewise.
24647         Requested by Ludovic Courtès.
24648
24649 2010-09-04  Bruno Haible  <bruno@clisp.org>
24650
24651         gnulib-tool: Help migration from --import to --add-import or --update.
24652         * gnulib-tool: Emit a verbose error message when --import is used
24653         without any module name.
24654
24655 2010-09-04  Bruno Haible  <bruno@clisp.org>
24656
24657         Update doc about gnulib-tool.
24658         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
24659         'gnulib-tool --update' in more detail.
24660         Reported by Eric Blake.
24661
24662 2010-09-04  Bruno Haible  <bruno@clisp.org>
24663
24664         gnulib-tool: Change --import. New options --add/remove-import.
24665         * gnulib-tool: New options --add-import, --remove-import.
24666         (func_usage): Document them.
24667         (have_associative): Define always.
24668         (func_import): In import mode, don't merge the specified settings with
24669         the cached settings. Implement remove-import mode.
24670         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
24671         Explain when to use them versus --import.
24672         (Simple update): Use --add-import instead of --import.
24673         * NEWS: Mention the change.
24674
24675 2010-09-04  Bruno Haible  <bruno@clisp.org>
24676
24677         * doc/gnulib-tool.texi (Initial import): Update paragraph about
24678         separate gnulib.mk.
24679
24680 2010-09-04  Bruno Haible  <bruno@clisp.org>
24681
24682         gnulib-tool: Don't talk about CVS any more.
24683         * gnulib-tool (func_usage, func_import): Write "version control"
24684         instead of CVS.
24685
24686 2010-09-04  Jim Meyering  <meyering@redhat.com>
24687
24688         maint.mk: avoid obscure sc_copyright_check failure in coreutils
24689         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
24690         false positives (whose names may be ill-chosen) when searching
24691         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
24692         would cause a false-positive.
24693
24694         avoid coreutils "make distcheck" failure
24695         Coreutils tests with an absolute build directory name that contains
24696         a space.  Not quoting this directory name caused a failure.
24697         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
24698         * tests/test-vc-list-files-cvs.sh: Likewise.
24699
24700 2010-09-04  Bruno Haible  <bruno@clisp.org>
24701
24702         gnulib-tool: Avoid error when run in a package without Makefile.am.
24703         * gnulib-tool: When collecting the m4dirs in a package that does not
24704         have a Makefile.am, eliminate those directories that contain no
24705         gnulib-cache.m4. Fix expression that counts these directories.
24706
24707 2010-09-04  Bruno Haible  <bruno@clisp.org>
24708
24709         update-copyright test: Improve output when perl is missing or too old.
24710         * tests/test-update-copyright.sh: Move test of Perl version down after
24711         the test whether Perl exists. Provide an explanation relating Perl's
24712         error message to Automake's SKIP: message.
24713
24714 2010-09-04  Bruno Haible  <bruno@clisp.org>
24715
24716         Don't augment PATH in TESTS_ENVIRONMENT.
24717         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
24718         set abs_aux_dir instead of augmenting PATH.
24719         * modules/vc-list-files-tests (Makefile.am): Likewise.
24720         * tests/test-update-copyright.sh: Augment PATH here.
24721         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
24722         path_prepend_.
24723         * tests/test-vc-list-files-git.sh: Likewise.
24724
24725 2010-09-04  Jim Meyering  <meyering@redhat.com>
24726
24727         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
24728         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
24729
24730 2010-09-04  Bruno Haible  <bruno@clisp.org>
24731
24732         strdup: Fix compilation error in C++ mode.
24733         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
24734         the macro.
24735
24736 2010-09-04  Bruno Haible  <bruno@clisp.org>
24737
24738         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24739         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24740         macro into a function.
24741         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24742
24743 2010-09-04  Bruno Haible  <bruno@clisp.org>
24744
24745         Set PATH_SEPARATOR the same way autoconf does.
24746         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
24747         the value of PATH_SEPARATOR the same way autoconf-generated configure
24748         scripts do.
24749         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
24750         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24751
24752 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24753
24754         Set PATH_SEPARATOR the same way autoconf does.
24755         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
24756         the same way autoconf-generated configure scripts do.
24757         * posix-modules: Likewise.
24758
24759 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24760
24761         hash: fix safe_hasher const typo
24762         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
24763         const; otherwise, there is a type error later.
24764
24765 2010-09-02  Jim Meyering  <meyering@redhat.com>
24766
24767         test-update-copyright.sh: require perl 5.8.0
24768         * tests/test-update-copyright.sh: Require 5.8.0,
24769         which Tom G. Christensen has confirmed is adequate,
24770         while 5.6.1 is not.
24771
24772 2010-09-02  Eric Blake  <eblake@redhat.com>
24773
24774         tests: init.sh improvements for re-exec'ing with zsh
24775         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
24776         -vx through shell re-exec.
24777         Reported by Tom G. Christensen.
24778
24779         wctype: fix typo in previous commit
24780         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
24781         Reported by Ludovic Courtès.
24782
24783 2010-09-02  Jim Meyering  <meyering@redhat.com>
24784
24785         test-update-copyright.sh: skip test if Perl is too old
24786         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24787         Reported by Tom G. Christensen.
24788
24789 2010-09-02  Bruno Haible  <bruno@clisp.org>
24790
24791         wctype: Avoid compilation error on IRIX 6.5.30.
24792         * lib/wctype.in.h (iswblank): Declare with a replacement if
24793         REPLACE_ISWBLANK is set.
24794         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
24795         declared. Set REPLACE_ISWBLANK.
24796         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
24797         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
24798         * doc/posix-headers/wctype.texi: Likewise.
24799         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24800
24801 2010-09-01  Bruno Haible  <bruno@clisp.org>
24802
24803         New module 'socketlib'.
24804         * modules/socketlib: New file.
24805         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
24806         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
24807         * modules/sockets (Depends-on): Add socketlib.
24808         Suggested by Sam Steingold <sds@gnu.org>.
24809
24810 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24811
24812         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
24813
24814         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
24815         when one needs search access to a directory but not read access.
24816         On systems where it is available, it works in some cases where
24817         O_RDONLY does not, namely on directories that are searchable but
24818         not readable, and which need only to be searchable.  If O_SEARCH
24819         is not available, fall back to the traditional method of using
24820         O_RDONLY.
24821
24822         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
24823         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
24824         when opening a directory that needs only to be searchable.
24825         * lib/chdir-safer.c (chdir_no_follow): Likewise.
24826         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
24827         * lib/openat-proc.c (openat_proc_name): Likewise.
24828         * lib/openat.c (openat_needs_fchdir): Likewise.
24829         * lib/save-cwd.c (save_cwd): Likewise.
24830         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
24831
24832 2010-08-28  Bruno Haible  <bruno@clisp.org>
24833
24834         New module 'host-cpu-c-abi'.
24835         * modules/host-cpu-c-abi: New file.
24836         * m4/host-cpu-c-abi.m4: New file, based on part of
24837         clisp/src/m4/general.m4.
24838         Requested by Sam Steingold <sds@gnu.org>.
24839
24840 2010-08-31  Eric Blake  <eblake@redhat.com>
24841         and Jim Meyering  <meyering@redhat.com>
24842
24843         hash: factor, and guard against misbehaving hasher function
24844         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
24845         of table->hasher's return value.  Also protect against a hash value
24846         so large that adding it to table->bucket results in a NULL pointer.
24847         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
24848         Use it in place of open-coded check-and-abort.
24849
24850 2010-08-30  Bruno Haible  <bruno@clisp.org>
24851
24852         hash: silence spurious clang warning
24853         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
24854         Reported by Eric Blake.
24855
24856 2010-08-30  Eric Blake  <eblake@redhat.com>
24857
24858         strstr, memmem, strcasestr: avoid leaked shell message
24859         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
24860         FreeBSD.
24861         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24862         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24863
24864         tests: silence clang warning
24865         * tests/test-malloca.c (do_allocation): Avoid dead store.
24866
24867 2010-08-29  Bruno Haible  <bruno@clisp.org>
24868
24869         gettext: Fix recent mistake.
24870         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
24871
24872 2010-08-29  Bruno Haible  <bruno@clisp.org>
24873
24874         selinux-h: Offer a --without-selinux option.
24875         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
24876         --without-selinux was specified, skip all tests and define
24877         HAVE_SELINUX_SELINUX_H to 0.
24878         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
24879         set LIB_SELINUX to empty.
24880         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
24881         gl_LIBSELINUX. If --without-selinux was specified, replace
24882         selinux/context.h.
24883         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
24884
24885 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24886             Bruno Haible  <bruno@clisp.org>
24887
24888         Make the module 'realloc-gnu' work again on AIX and OSF/1.
24889         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
24890         of HAVE_REALLOC.
24891         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
24892         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
24893         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
24894         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24895
24896 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24897             Bruno Haible  <bruno@clisp.org>
24898
24899         Make the module 'calloc-gnu' work again on AIX and OSF/1.
24900         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
24901         HAVE_CALLOC.
24902         * lib/xmalloc.c: Update accordingly.
24903         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
24904         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
24905         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
24906
24907 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24908             Bruno Haible  <bruno@clisp.org>
24909
24910         Make the module 'malloc-gnu' work again on AIX and OSF/1.
24911         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
24912         HAVE_MALLOC.
24913         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
24914         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
24915         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24916
24917 2010-08-29  Bruno Haible  <bruno@clisp.org>
24918
24919         Update modules list.
24920         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24921         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
24922         (String handling <string.h>): Add astrxfrm.
24923         (File system functions): Add readlinkat.
24924
24925 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24926
24927         Tests for module 'realloc-gnu'.
24928         * modules/realloc-gnu-tests: New file.
24929         * tests/test-realloc-gnu.c: New file.
24930
24931         Tests for module 'calloc-gnu'.
24932         * modules/calloc-gnu-tests: New file.
24933         * tests/test-calloc-gnu.c: New file.
24934
24935         Tests for module 'malloc-gnu'.
24936         * modules/malloc-gnu-tests: New file.
24937         * tests/test-malloc-gnu.c: New file.
24938
24939 2010-08-28  Bruno Haible  <bruno@clisp.org>
24940
24941         Rename module 'realloc' -> 'realloc-gnu'.
24942         * modules/realloc-gnu: New file, copied from modules/realloc.
24943         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
24944         obsolete.
24945         * modules/mgetgroups (Depends-on): Update.
24946         * doc/posix-functions/realloc.texi: Update.
24947         * NEWS: Mention the change.
24948
24949         Rename module 'calloc' -> 'calloc-gnu'.
24950         * modules/calloc-gnu: New file, copied from modules/calloc.
24951         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24952         obsolete.
24953         * doc/posix-functions/calloc.texi: Update.
24954         * NEWS: Mention the change.
24955
24956         Rename module 'malloc' -> 'malloc-gnu'.
24957         * modules/malloc-gnu: New file, copied from modules/malloc.
24958         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24959         obsolete.
24960         * modules/argp (Depends-on): Update.
24961         * modules/regex (Depends-on): Update.
24962         * doc/posix-functions/malloc.texi: Update.
24963         * NEWS: Mention the change.
24964
24965 2010-08-28  Eric Blake  <eblake@redhat.com>
24966
24967         pread, pwrite: add missing dependency
24968         * modules/pread (Depends-on): Add extensions.
24969         * modules/pwrite (Depends-on): Likewise.
24970
24971 2010-08-28  Bruno Haible  <bruno@clisp.org>
24972
24973         unistr/u*-strchr: Fix tests dependencies.
24974         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24975         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24976         Reported by Ian Beckwith <ianb@erislabs.net>.
24977
24978 2010-08-28  Bruno Haible  <bruno@clisp.org>
24979
24980         read-file: Don't occupy too much unused memory.
24981         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24982
24983 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24984             Eric Blake  <eblake@redhat.com>
24985             Bruno Haible  <bruno@clisp.org>
24986
24987         read-file: Avoid memory reallocations with regular files.
24988         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24989         (fread_file): With regular files, use the remaining length as the
24990         initial buffer size.  Check against overflow.
24991         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24992         sys_stat.
24993
24994 2010-08-28  Bruno Haible  <bruno@clisp.org>
24995
24996         ftello: Relax license.
24997         * modules/ftello (License): Relax to LGPLv2+.
24998         Reported by Eric Blake.
24999
25000 2010-08-28  Bruno Haible  <bruno@clisp.org>
25001
25002         Avoid relocwrapper link errors due to gnulib replacement functions.
25003         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25004         function.
25005         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25006
25007 2010-08-28  Bruno Haible  <bruno@clisp.org>
25008
25009         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25010         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25011         defined.
25012         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25013         Suggested by Eric Blake.
25014
25015 2010-08-28  Bruno Haible  <bruno@clisp.org>
25016
25017         sys_socket, netdb: Ensure socklen_t gets defined.
25018         * modules/sys_socket (Depends-on): Add socklen.
25019         * modules/netdb (Depends-on): Likewise.
25020         * modules/getaddrinfo (Depends-on): Remove socklen.
25021         * modules/getsockopt (Depends-on): Likewise.
25022         * modules/setsockopt (Depends-on): Likewise.
25023         * tests/test-sys_socket.c: Check that socklen_t is defined.
25024         * tests/test-netdb.c: Likewise.
25025         * m4/socklen.m4: Update comments.
25026         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25027
25028 2010-08-27  Eric Blake  <eblake@redhat.com>
25029
25030         login_tty: add missing dependency
25031         * modules/login_tty (Depends-on): Add pty.
25032
25033 2010-08-26  Eric Blake  <eblake@redhat.com>
25034
25035         lib-symbol-versions: fix m4 quoting
25036         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25037         format for AC_LINK_IFELSE.
25038
25039         glob: fix compile test
25040         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25041
25042         btowc: fix missing file
25043         * modules/btowc (Files): Also ship locale-fr.m4.
25044
25045         lseek: fix link test
25046         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25047         AC_LINK_IFELSE.
25048
25049         include_next: silence autoconf 2.68 warning
25050         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25051         AC_COMPILE_IFELSE as special.
25052         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25053         autoconf < 2.68.
25054
25055         acl: fix compilation test
25056         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25057         AC_COMPILE_IFELSE.
25058
25059 2010-08-26  Bruno Haible  <bruno@clisp.org>
25060
25061         Modernize AC_TRY_RUN invocations.
25062         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25063         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25064         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25065         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25066         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25067         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25068         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25069         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25070         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25071         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25072         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25073         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25074         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25075         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25076         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25077         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25078         gl_MBRLEN_NUL_RETVAL): Likewise.
25079         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25080         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25081         Likewise.
25082         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25083         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25084         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25085         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25086         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25087         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25088         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25089         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25090         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25091         Likewise.
25092         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25093         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25094         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25095         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25096         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25097         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25098         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25099         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25100         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25102
25103 2010-08-26  Bruno Haible  <bruno@clisp.org>
25104
25105         Modernize AC_TRY_LINK invocations.
25106         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25107         AC_TRY_LINK.
25108         * m4/argp.m4 (gl_ARGP): Likewise.
25109         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25110         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25111         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25112         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25113         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25114         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25115         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25116         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25117         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25118         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25119         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25120         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25121         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25122         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25123         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25124         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25125         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25126         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25127         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25128         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25129         Likewise.
25130         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25131         Likewise.
25132         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25133         Likewise.
25134         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25135         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25136         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25137         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25138         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25139         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25140         * m4/servent.m4 (gl_SERVENT): Likewise.
25141         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25142         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25143         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25144         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25145         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25146         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25147         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25148         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25149         * modules/tsearch-tests (configure.ac): Likewise.
25150
25151 2010-08-26  Bruno Haible  <bruno@clisp.org>
25152
25153         Modernize AC_TRY_COMPILE invocations.
25154         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25155         AC_TRY_COMPILE.
25156         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25157         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25158         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25159         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25160         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25161         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25162         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25163         * m4/lock.m4 (gl_LOCK): Likewise.
25164         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25165         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25166         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25167         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25168         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25169         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25170         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25171         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25172         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25173         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25174         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25175         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25176         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25177         extraneous semicolon.
25178
25179 2010-08-26  Jim Meyering  <meyering@redhat.com>
25180
25181         stat-time: relax license LGPL
25182         * modules/stat-time (License): Change from GPL to LGPL,
25183         with consent from all contributors, for use in libguile.
25184         Requested by Ludovic Courtès.
25185
25186 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25187
25188         poll: return immediately on POLLHUP.
25189         * lib/poll.c (poll): Always set timeout before wait_timeout is
25190         computed.
25191
25192 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25193
25194         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25195         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25196         rmdir ("dir/.//"), unlinkat.
25197
25198 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25199
25200         stdbool: avoid spurious failure with modern xlc
25201         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25202
25203 2010-08-24  Bruno Haible  <bruno@clisp.org>
25204
25205         getloadavg: simplify code
25206         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25207         gl_have_func. Update comments.
25208
25209 2010-08-24  Eric Blake  <eblake@redhat.com>
25210
25211         getloadavg: don't define SVR4 on cygwin
25212         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25213         only define SVR4 when -lkvm is required.
25214         Reported by Yaakov Selkowitz.
25215
25216 2010-08-24  Bruno Haible  <bruno@clisp.org>
25217
25218         priv-set: fix comment
25219         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25220
25221 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25222
25223         priv-set: fix comments
25224         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25225         to match code, as suggested by David Bartley in:
25226         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25227
25228 2010-08-23  Eric Blake  <eblake@redhat.com>
25229
25230         stdbool: avoid rejecting clang
25231         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25232         * tests/test-stdbool.c: Enable more tests if using the system
25233         <stdbool.h> instead of the gnulib replacement.
25234         (main): Move xlc bug test to a runtime test for all compilers.
25235         Reported by Anders Kaseorg.
25236
25237         argz: fix shell quoting issue
25238         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25239         Reported by Charles Wilson.
25240
25241 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25242             Erik Faye-Lund <kusmabite@gmail.com>
25243
25244         poll, select: handle ERROR_BROKEN_PIPE.
25245         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25246         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25247         * lib/select.c (win32_compute_revents): Do not mark a pipe
25248         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25249
25250 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25251
25252         fts: allow compilation with C++
25253         * lib/fts_.h: Specify extern "C" linkage with C++.
25254
25255 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25256
25257         Fix gnulib-tool sed script de-commentation for AIX sed.
25258         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25259         sed.
25260
25261 2010-08-17  Eric Blake  <eblake@redhat.com>
25262
25263         test-stddef: test for (some) offsetof bugs
25264         * tests/test-stddef.c: Enhance test to ensure correct type of
25265         offsetof.
25266         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25267         that we are not fixing at this time.
25268
25269 2010-08-15  Bruno Haible  <bruno@clisp.org>
25270
25271         stpncpy: Allow stpncpy to be defined as a macro.
25272         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25273         if it's already correctly declared.
25274         * lib/string.in.h (stpncpy): Undefine before redefining.
25275         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25276
25277 2010-08-14  Bruno Haible  <bruno@clisp.org>
25278
25279         Rename module 'memxfrm' to 'amemxfrm'.
25280         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25281         (amemxfrm): Renamed from memxfrm.
25282         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25283         (amemxfrm): Renamed from memxfrm.
25284         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25285         * NEWS: Mention the change.
25286         * MODULES.html.sh (String handling <string.h>): Update.
25287         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25288         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25289         * lib/unicase/u16-casexfrm.c: Likewise.
25290         * lib/unicase/u32-casexfrm.c: Likewise.
25291         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25292         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25293         * lib/uninorm/u16-normxfrm.c: Likewise.
25294         * lib/uninorm/u32-normxfrm.c: Likewise.
25295         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25296         memxfrm.
25297         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25298         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25299         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25300         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25301         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25302         Suggested by Paul Eggert.
25303
25304 2010-08-14  Bruno Haible  <bruno@clisp.org>
25305
25306         Tests for module 'astrxfrm'.
25307         * modules/astrxfrm-tests: New file.
25308         * tests/test-astrxfrm.c: New file.
25309
25310         New module 'astrxfrm'.
25311         * lib/astrxfrm.h: New file.
25312         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25313         * modules/astrxfrm: New file.
25314
25315 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25316
25317         regex: Tweak doc.
25318         * doc/regex.texi (Overview): Don't mention regex.c.
25319         (GNU Regular Expression Compiling): Likewise.
25320         (Match-end-of-line Operator): Mention 'not_eol'.
25321
25322 2010-08-14  Brian Gough  <bjg@gnu.org>
25323             Bruno Haible  <bruno@clisp.org>
25324
25325         git-merge-changelog: add doc relating to use with bzr and hg.
25326         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25327
25328 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25329
25330         pthread: fix pthread.h creation for srcdir != builddir
25331         * modules/pthread (Makefile.am): Fix the rule to work also in a
25332         non-srcdir build.
25333
25334 2010-08-13  Karl Berry  <karl@gnu.org>
25335
25336         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25337         * doc/posix-*/*: force line break before @url of POSIX
25338         specifications.
25339         Suggested by Werner Lemberg.
25340
25341 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25342
25343         strtod: fix const diagnostic
25344         * lib/strtod.c (strtod): Don't assign const char * to char *,
25345         as this elicits a warning from GCC when warnings are enabled.
25346
25347 2010-08-10  Pádraig Brady <P@draigbrady.com>
25348         and Eric Blake  <eblake@redhat.com>
25349
25350         copy-acl: ignore ENOTSUP on HP-UX
25351         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25352         so that it is available for HP-UX.
25353         * lib/copy-acl.c (qcopy_acl): Use it.
25354         Reported by Patrick M. Callahan.
25355
25356 2010-08-10  Eric Blake  <eblake@redhat.com>
25357
25358         open, chown: relax license
25359         * modules/open (License): Change to LGPLv2+, with consent by all
25360         authors, for use in augeas.
25361         * modules/chown (License): Likewise.
25362         * modules/lchown (Likewise): Likewise.
25363         Requested by Adam Stokes.
25364
25365 2010-08-09  Karl Berry  <karl@gnu.org>
25366
25367         * build-aux/ar-lib: new file, import from Automake.
25368         * config/srclist.txt: autocheck for updates.
25369
25370 2010-08-09  Eric Blake  <eblake@redhat.com>
25371
25372         readlinkat: adjust client modules
25373         * modules/areadlinkat (Depends-on): Use readlinkat, not
25374         symlinkat.
25375         * modules/areadlinkat-with-size (Depends-on): Likewise.
25376
25377         mknod: be more vocal about danger of running tests as root
25378         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25379         root, since that is just asking for problems.
25380         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25381
25382         readlinkat: split into its own module
25383         * modules/symlinkat: Split readlinkat...
25384         * modules/readlinkat: ...into separate module.
25385         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25386         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25387         * lib/symlinkat.c (readlinkat): Move...
25388         * lib/readlinkat.c: ...into new file.
25389         * modules/symlinkat-tests: Split readlinkat test...
25390         * modules/readlinkat-tests: ...into separate module.
25391         * tests/test-symlinkat.c: Split...
25392         * tests/test-readlinkat.c: ...into new file.
25393         * NEWS: Document the split.
25394         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25395         * lib/unistd.in.h (readlinkat): Likewise.
25396         Suggested by Bruno Haible.
25397
25398 2010-08-08  Bruno Haible  <bruno@clisp.org>
25399
25400         memxfrm: Speed up.
25401         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25402         that usually only one call to strxfrm is necessary for each string
25403         part.
25404         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25405
25406 2010-08-07  Karl Berry  <karl@gnu.org>
25407
25408         * doc/posix-headers/limits.texi,
25409         * doc/posix-functions/malloc.texi,
25410         * doc/posix-functions/strsignal.texi: missing @item.
25411         * doc/ld-version-script.texi: spurious leading i.
25412         * doc/regex.texi (Interval Operators): no commas inside @var.
25413
25414 2010-08-01  Bruno Haible  <bruno@clisp.org>
25415
25416         Integrate the regex documentation.
25417         * doc/gnulib.texi: Define 'cn' index.
25418         (Regular expressions): New a chapter that includes regex.texi and
25419         regexprops-generic.texi.
25420         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25421         syntax.
25422
25423         Whitespace cleanup.
25424         * doc/regex.texi: Remove trailing spaces.
25425
25426         Add regex documentation.
25427         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25428         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25429         Written by Kathy A. Hargreaves and Karl Berry.
25430
25431 2010-08-01  Bruno Haible  <bruno@clisp.org>
25432
25433         link: Update documentation.
25434         * doc/posix-functions/link.texi: Update regarding Solaris.
25435
25436 2010-07-31  Bruno Haible  <bruno@clisp.org>
25437
25438         Update modules list.
25439         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25440         (String handling <string.h>): Add memcmp2, memxfrm.
25441         (Container data structures): Add xlist, xsublist, xoset.
25442         (Core language properties): Add alignof, unused-parameter.
25443         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25444         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25445         (Unibyte characters <ctype.h>): New section.
25446         (String handling <string.h>): New section.
25447         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25448         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25449         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25450         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25451         tan, tanh, tanl, y0, y1, yn.
25452         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25453         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25454         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25455         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25456         unlockpt, vdprintf, vdprintf-posix.
25457         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25458         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25459         xconcat-filename.
25460         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25461         getdtablesize, pipe2, pipe2-safer.
25462         (Security): New section.
25463         (Networking functions): Add accept4.
25464         (Signal handling): Add sigpipe.
25465         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25466         mbmemcasecoll.
25467         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25468         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25469         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25470         pipe-filter-ii.
25471         (Misc): Add argp-version-etc, login_tty, parse-duration.
25472
25473 2010-07-31  Bruno Haible  <bruno@clisp.org>
25474
25475         Improve doc in MODULES.html.
25476         * modules/linkat (Description): Add the word "function".
25477         * modules/mkfifo (Description): Likewise.
25478         * modules/mknod (Description): Likewise.
25479         * modules/remove (Description): Likewise.
25480         * modules/renameat (Description): Likewise.
25481         * modules/stat (Description): Likewise.
25482         * modules/symlink (Description): Likewise.
25483         * modules/unlink (Description): Likewise.
25484
25485 2010-07-31  Bruno Haible  <bruno@clisp.org>
25486
25487         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25488         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25489         option --enable/disable-c++ instead of --enable/disable-cxx.
25490         * NEWS: Mention the change.
25491
25492 2010-07-31  Bruno Haible  <bruno@clisp.org>
25493
25494         readlink, areadlink: Relax test a bit.
25495         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25496         alternative to ENOTDIR.
25497         * tests/test-areadlink.h (test_areadlink): Likewise.
25498         Reported by Rainer Tammer.
25499
25500 2010-07-31  Bruno Haible  <bruno@clisp.org>
25501
25502         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25503         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25504         character, perform the search using U_STRCHR.
25505         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25506         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25507         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25508         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25509         Suggested by Paolo Bonzini.
25510
25511 2010-07-31  Bruno Haible  <bruno@clisp.org>
25512
25513         unistr/u*-strstr: Fix dependencies.
25514         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25515         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25516         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25517
25518 2010-07-31  Bruno Haible  <bruno@clisp.org>
25519
25520         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25521         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25522         the beginning of the loop.
25523         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25524         cases in 'switch' statement.
25525
25526         unistr/u8-strchr: Fix several bugs.
25527         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25528         the string. When not found, return NULL, not a pointer near the end.
25529
25530         More tests for unistr/u8-strchr.
25531         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25532         that the function does not read past the first occurrence of the byte
25533         being searched.
25534         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25535         * tests/unistr/test-u16-strchr.c (main): New function.
25536         * tests/unistr/test-u32-strchr.c (main): New function.
25537
25538 2010-07-31  Bruno Haible  <bruno@clisp.org>
25539
25540         posix-modules: Ignore backup files of documentation files.
25541         * posix-modules: grep only through files named *.texi.
25542
25543 2010-07-31  Bruno Haible  <bruno@clisp.org>
25544
25545         symlinkat: Fix documentation.
25546         * doc/posix-functions/readlinkat.texi: Fix module name.
25547
25548 2010-07-31  Bruno Haible  <bruno@clisp.org>
25549
25550         fchownat: Replace also when chown has the trailing slash bug.
25551         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25552         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25553         introduced on 2010-04-10.
25554         Reported by Rainer Tammer.
25555
25556 2010-07-31  Bruno Haible  <bruno@clisp.org>
25557
25558         linkat: Work around AIX 7.1 bug.
25559         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25560         whether linkat handles trailing slash correctly. If not, replace linkat
25561         and define LINKAT_TRAILING_SLASH_BUG.
25562         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25563         check whether (fd1,file1) points to a directory if file1 or file2 ends
25564         in a slash. Code taken from lib/link.c.
25565         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25566         Reported by Rainer Tammer.
25567
25568 2010-07-31  Bruno Haible  <bruno@clisp.org>
25569
25570         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25571         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25572         This disables an xlc optimization that was causing wrong test results.
25573         Reported by Rainer Tammer.
25574
25575 2010-07-31  Bruno Haible  <bruno@clisp.org>
25576
25577         iconv: Work around AIX 6.1..7.1 bug.
25578         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25579         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25580         cross-compiling, guess no on all versions of AIX.
25581         Reported by Rainer Tammer.
25582
25583 2010-07-31  Bruno Haible  <bruno@clisp.org>
25584
25585         readlink: Relax test a bit.
25586         * tests/test-readlink.h (test_readlink): Allow different errno value
25587         when readlink is called with a file name that ends in / and refers to
25588         a file.
25589         Suggested by Eric Blake.
25590         Reported by Rainer Tammer.
25591
25592 2010-07-31  Bruno Haible  <bruno@clisp.org>
25593
25594         copysign: Does not require -lm on glibc systems.
25595         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25596         gl_COMMON_DOUBLE_MATHFUNC.
25597         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
25598
25599 2010-07-31  Bruno Haible  <bruno@clisp.org>
25600
25601         duplocale: Work around AIX 7.1 bug.
25602         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
25603         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
25604         * lib/duplocale.c (rpl_duplocale): Update comment.
25605         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
25606         Reported by Rainer Tammer.
25607
25608 2010-07-30  Bruno Haible  <bruno@clisp.org>
25609
25610         dirfd: Avoid link error on AIX 7.1.
25611         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
25612         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
25613         exist, set REPLACE_DIRFD.
25614         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
25615         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25616         * doc/posix-functions/dirfd.texi: Update.
25617         Reported by Rainer Tammer.
25618
25619 2010-07-30  Eric Blake  <eblake@redhat.com>
25620
25621         strtod: next round of AIX fixes
25622         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
25623         exponent.
25624         * tests/test-strtod.c (main): Enhance tests.
25625         * doc/posix-functions/strtod.texi (strtod): Document next bug.
25626         Reported by Rainer Tammer.
25627
25628         futimens: fix configure check
25629         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
25630         Reported by Bruno Haible.
25631
25632 2010-07-30  Bruno Haible  <bruno@clisp.org>
25633
25634         getline: Update regarding AIX.
25635         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
25636         Reported by Rainer Tammer.
25637
25638 2010-07-30  Bruno Haible  <bruno@clisp.org>
25639
25640         wcwidth: Drop replacement on AIX 7.
25641         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
25642         AIX 7.
25643         Reported by Rainer Tammer.
25644
25645 2010-07-30  Bruno Haible  <bruno@clisp.org>
25646
25647         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
25648         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
25649         a 'char *'.
25650         Reported by Rainer Tammer.
25651
25652 2010-07-30  Bruno Haible  <bruno@clisp.org>
25653
25654         unlink: Update regarding AIX.
25655         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
25656         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
25657         Reported by Rainer Tammer.
25658
25659 2010-07-30  Bruno Haible  <bruno@clisp.org>
25660
25661         symlink: Update regarding AIX.
25662         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
25663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
25664         Reported by Rainer Tammer.
25665
25666 2010-07-30  Bruno Haible  <bruno@clisp.org>
25667
25668         strndup: Update regarding AIX.
25669         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
25670         AIX 7.
25671         Reported by Rainer Tammer.
25672
25673 2010-07-30  Bruno Haible  <bruno@clisp.org>
25674
25675         stat: Update regarding AIX.
25676         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
25677         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
25678         Reported by Rainer Tammer.
25679
25680 2010-07-30  Bruno Haible  <bruno@clisp.org>
25681
25682         truncl: Fix autoconf test.
25683         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
25684         whether truncl works.
25685         Reported by Rainer Tammer.
25686
25687 2010-07-30  Bruno Haible  <bruno@clisp.org>
25688
25689         round: Update regarding AIX.
25690         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
25691         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
25692         Reported by Rainer Tammer.
25693
25694 2010-07-30  Bruno Haible  <bruno@clisp.org>
25695
25696         rename: Update regarding AIX.
25697         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
25698         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
25699         Reported by Rainer Tammer.
25700
25701 2010-07-30  Bruno Haible  <bruno@clisp.org>
25702
25703         printf.m4: Update regarding AIX.
25704         * m4/printf.m4: Update comments regarding AIX.
25705         Reported by Rainer Tammer.
25706
25707 2010-07-30  Bruno Haible  <bruno@clisp.org>
25708
25709         iconv: Update regarding AIX.
25710         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25711         AIX 7.
25712         Reported by Rainer Tammer.
25713
25714 2010-07-30  Bruno Haible  <bruno@clisp.org>
25715
25716         getopt: Update regarding AIX.
25717         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
25718         no on AIX.
25719         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
25720         Reported by Rainer Tammer.
25721
25722 2010-07-30  Bruno Haible  <bruno@clisp.org>
25723
25724         ldexpl; Update regarding AIX.
25725         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
25726         on AIX 7.
25727         Reported by Rainer Tammer.
25728
25729 2010-07-30  Bruno Haible  <bruno@clisp.org>
25730
25731         frexpl: Update regarding AIX.
25732         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
25733         on AIX 7.
25734         Reported by Rainer Tammer.
25735
25736 2010-07-30  Bruno Haible  <bruno@clisp.org>
25737
25738         open, fopen: Update regarding AIX.
25739         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25740         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25741         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25742         * doc/posix-functions/fopen.texi: Likewise.
25743         Reported by Rainer Tammer.
25744
25745 2010-07-30  Bruno Haible  <bruno@clisp.org>
25746
25747         chown: Update doc regarding AIX.
25748         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
25749         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
25750         Reported by Rainer Tammer.
25751
25752 2010-07-30  Eric Blake  <eblake@redhat.com>
25753
25754         strtod: fix bug in replacement function on AIX
25755         * lib/strtod.c (strtod): Special case broken "0x" parse in
25756         underlying strtod.
25757         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
25758         * doc/posix-functions/strtod.texi (strtod): Likewise.
25759         Reported by Rainer Tammer.
25760
25761 2010-07-30  Bruno Haible  <bruno@clisp.org>
25762
25763         mbrlen: Fix cross-compilation guess for AIX.
25764         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
25765         guess. Leftover from 2008-12-22.
25766
25767 2010-07-30  Bruno Haible  <bruno@clisp.org>
25768
25769         mbrtowc: Fix cross-compilation guess for AIX.
25770         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
25771         guess. Leftover from 2008-12-21.
25772
25773 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
25774
25775         init.sh: work around trap limitation of some shells
25776         * tests/init.sh (setup_): Move exit trap outside of shell function.
25777
25778 2010-07-29  Eric Blake  <eblake@redhat.com>
25779
25780         strtod: aid debugging
25781         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
25782         understanding why strtod is rejected.
25783
25784 2010-07-28  Bruno Haible  <bruno@clisp.org>
25785
25786         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
25787         * lib/unistr/u8-chr.c: Include <string.h>.
25788         * tests/unistr/test-u8-chr.c: Likewise.
25789         * tests/unistr/test-u16-chr.c: Likewise.
25790         * tests/unistr/test-u32-chr.c: Likewise.
25791         * tests/unistr/test-u8-strchr.c: Likewise.
25792         * tests/unistr/test-u16-strchr.c: Likewise.
25793         * tests/unistr/test-u32-strchr.c: Likewise.
25794         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
25795         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
25796         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
25797         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
25798
25799 2010-07-28  Bruno Haible  <bruno@clisp.org>
25800
25801         Use spaces for indentation, not tabs.
25802         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25803
25804 2010-07-27  Bruno Haible  <bruno@clisp.org>
25805
25806         mbspcasecmp: Fix function specification.
25807         * lib/string.in.h (mbspcasecmp): Fix specification comment.
25808         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
25809         Reported by Eric Blake <eblake@redhat.com>.
25810
25811 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
25812
25813         timespec: use cast and not conditional, as truncation isn't possible
25814         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
25815         instead of a conditional.  Comment about the situation in more detail.
25816         This undoes most of the 2009-10-29 patch.
25817
25818 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
25819
25820         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
25821         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
25822         * lib/unistr/u8-strchr.c: Likewise.
25823         * modules/unistr/u8-chr: Depend on memchr.
25824
25825         unistr/u*-strchr: add tests
25826         * modules/unistr/u8-strchr-tests: New file.
25827         * modules/unistr/u16-strchr-tests: New file.
25828         * modules/unistr/u32-strchr-tests: New file.
25829         * tests/unistr/test-strchr.h: New file.
25830         * tests/unistr/test-u8-strchr.c: New file.
25831         * tests/unistr/test-u16-strchr.c: New file.
25832         * tests/unistr/test-u32-strchr.c: New file.
25833
25834         unistr/u*-chr: test multibyte sequences more
25835         * tests/unistr/test-chr.h: Do complete testing of the characters in the
25836         test vector.
25837         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
25838         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
25839         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
25840
25841         unistr/u*-chr: test multibyte sequences
25842         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
25843
25844         unistr/u*-chr: prepare for multibyte tests
25845         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
25846         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
25847         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
25848         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
25849         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
25850         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
25851
25852 2010-07-18  Bruno Haible  <bruno@clisp.org>
25853
25854         unistr/u8-strchr: Optimize non-ASCII argument case.
25855         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
25856         because the first byte often matches anyway.
25857         Reported by Pádraig Brady <P@draigbrady.com>.
25858
25859 2010-07-15  Karl Berry  <karl@gnu.org>
25860
25861         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
25862
25863 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
25864
25865         getcwd: on Solaris, work better if ancestors are inaccessible
25866         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
25867         buffer and size, try again with a large buffer.  This works better
25868         on Solaris, since its getcwd succeeds even if the path to the root
25869         is inaccessible, and this is helpful in common cases such as .zfs
25870         hidden directories.  Problem reported by J Chapman Flack in
25871         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
25872         Use system getcwd if it's declared, not merely if it's partly
25873         working; use the partly-working test only to avoid needless effort
25874         if the system getcwd fails.
25875         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25876         comment that was already obsolete and is now even more obsolete.
25877         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
25878         now might call strdup.
25879
25880 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
25881
25882         pthread: Add enough so that coreutils/src/sort.c compiles.
25883         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
25884         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
25885         gnulib. Include <sched.h> and <time.h>, as per POSIX.
25886         Include <sys/types.h>, in case it defines pthread_t.
25887         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
25888         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
25889         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
25890         (pthread_rwlockattr_t, pthread_spinlock_t):
25891         New typedefs, if HAVE_PTHREAD_T is not defined.
25892         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
25893         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
25894         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
25895         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
25896         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
25897         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
25898         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
25899         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
25900         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
25901         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
25902         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
25903         New macros.
25904         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
25905         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
25906         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
25907         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
25908         (pthread_spin_unlock): New dummy functions.
25909         (pthread_create): Return EAGAIN; don't set errno.
25910         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
25911         require AC_C_INLINE.
25912         * modules/pthread (Depends-on): Add sched, time.
25913         (pthread.h): Use AM_V_GEN.
25914
25915 2010-07-13  Bruno Haible  <bruno@clisp.org>
25916
25917         striconveh: Don't malloc memory if the result buffer is sufficient.
25918         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
25919         buffer if its size is sufficient.
25920         Reported by Ludovic Courtès <ludo@gnu.org>.
25921
25922 2010-07-13  Bruno Haible  <bruno@clisp.org>
25923
25924         strtod: Add safety check.
25925         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
25926
25927 2010-07-12  Bruno Haible  <bruno@clisp.org>
25928
25929         Unify tests that set gl_cv_func_ldexpl_no_libm.
25930         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
25931         gl_FUNC_LDEXPL.
25932         (gl_FUNC_LDEXPL): Invoke it.
25933         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25934
25935 2010-07-12  Bruno Haible  <bruno@clisp.org>
25936
25937         Unify tests that set gl_cv_func_ldexp_no_libm.
25938         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
25939         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
25940         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
25941         (configure.ac): Simply invoke gl_FUNC_LDEXP.
25942         * modules/strtod (Files): Add m4/ldexp.m4.
25943
25944 2010-07-12  Bruno Haible  <bruno@clisp.org>
25945
25946         Unify tests that set gl_cv_func_frexpl_no_libm.
25947         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25948         gl_FUNC_FREXPL_NO_LIBM.
25949         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25950         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25951
25952 2010-07-12  Bruno Haible  <bruno@clisp.org>
25953
25954         Unify tests that set gl_cv_func_frexp_no_libm.
25955         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25956         gl_FUNC_FREXP_NO_LIBM.
25957         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25958         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25959
25960 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25961
25962         memcoll: clarify sizes versus lengths, document better, and tweak perf
25963         * lib/memcoll.c (strcoll_loop, memcoll0):
25964         Improve quality of descriptive comments.  Name variables
25965         consistently as to whether they are lengths (which do not include
25966         terminating null) versus sizes (which do).
25967         * lib/xmemcoll.c (xmemcoll0): Likewise.
25968         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25969         returned when s1size == 0; this is easier to compile and saves
25970         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25971
25972 2010-07-12  Bruno Haible  <bruno@clisp.org>
25973
25974         Tests for module '_Exit'.
25975         * modules/_Exit-tests: New file.
25976         * tests/test-_Exit.sh: New file.
25977         * tests/test-_Exit.c: New file.
25978
25979         New module '_Exit'.
25980         * lib/stdlib.in.h (__attribute__): New macro.
25981         (_Exit): New declaration.
25982         * lib/_Exit.c: New file.
25983         * m4/_Exit.m4: New file.
25984         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25985         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25986         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25987         * modules/_Exit: New file.
25988         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25989         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25990
25991 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25992
25993         strtod: make it more-accurate typically, and don't require libm
25994         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25995         Include limits.h.  Don't include string.h.
25996         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25997         (locale_isspace): New function, so that no casts are needed to
25998         check whether *s is a space.
25999         (ldexp): Provide an unused dummy if not available.
26000         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26001         (strtod): Use them.  This implementation prefers to use the
26002         underlying strtod if available, falling back on our own code
26003         only to fix known bugs.  This is more likely to produce an
26004         accurate result.  Also, it avoids the use of libm functions.
26005         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26006         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26007         was absent, but it caused a test failure with coreutils.
26008         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26009         with libm.
26010         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26011         * modules/strtod-tests (Makefile.am): Likewise.
26012
26013 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26014             Bruno Haible  <bruno@clisp.org>
26015
26016         unistr/u8-strchr: Optimize ASCII argument case.
26017         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26018
26019 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26020
26021         (x)memcoll: minor tweaks
26022         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26023         is after the type that it qualifies.
26024         (memcoll0): Likewise.
26025         * lib/memcoll.h (memcoll0): Likewise.
26026         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26027         * lib/xmemcoll.h (xmemcoll0): Likewise.
26028         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26029         differs from memcoll in that the NUL byte is part of the argument.
26030         Omit the abort-checks, as performance is a real issue here.  Plus,
26031         the checks were wrong anyway (an off-by-one error).  Omit local
26032         variable 'diff', as it's a bit clearer that way.
26033         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26034         no longer needed.
26035
26036 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26037
26038         (x)memcoll: speedup when input is known to be NUL delimited
26039         * lib/memcoll.c: Include stdlib.
26040         (memcoll0): New function.
26041         (strcoll_loop): New function, refactored for use in both memcoll
26042         and memcoll0.
26043         * lib/memcoll.h (memcoll0): Add prototype.
26044         * lib/xmemcoll.c (xmemcoll0): New function.
26045         (collate_error): New function, refactored for use in both xmemcoll
26046         and xmemcoll0.
26047         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26048         * m4/memcoll.m4: add inline invocation.
26049
26050 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26051
26052         * build-aux/bootstrap: Remove any local translations
26053         from the translation project synchronization directory,
26054         so that local only translations are not distributed.
26055
26056 2010-07-04  Bruno Haible  <bruno@clisp.org>
26057
26058         fsusage: Clarify which code applies to which platforms.
26059         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26060         platform.
26061         * lib/fsusage.c (get_fs_usage): Likewise.
26062
26063 2010-07-04  Bruno Haible  <bruno@clisp.org>
26064
26065         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26066         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26067         Reported by Martin Lambers <marlam@marlam.de>.
26068
26069 2010-07-04  Jim Meyering  <meyering@redhat.com>
26070
26071         hash: once again explicitly disallow insertion of NULL
26072         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26073         inserting a NULL pointer cannot work with these functions.
26074         Add a comment with details.
26075         This reverts part of the 2010-07-01 commit, 5bef1a35
26076         "hash: extend module to deal with non-pointer keys".
26077
26078 2010-07-01  Bruno Haible  <bruno@clisp.org>
26079
26080         stdbool: Update doc.
26081         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26082         Info from Christian Weisgerber <naddy@mips.inka.de>.
26083
26084 2010-07-01  Jim Meyering  <meyering@redhat.com>
26085
26086         hash: extend module to deal with non-pointer keys
26087         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26088         but that allows insertion of non-pointer entries.
26089         Do not disallow an ENTRY value of NULL.
26090         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26091         * lib/hash.h (hash_insert0): Declare.
26092
26093 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26094
26095         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26096         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26097         not present (i.e. with autoconf 2.59 and when using gettextize, not
26098         gnulib), require AC_GNU_SOURCE instead.
26099
26100 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26101
26102         idpriv-drop: Fix tests.
26103         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26104         not to the test-idpriv-droptemp program.
26105
26106 2010-06-29  Bruno Haible  <bruno@clisp.org>
26107
26108         string: Fix syntax error with g++ 2.96.
26109         * lib/string.in.h (__pure__): Remove definition.
26110         (_GL_ATTRIBUTE_PURE): New macro.
26111         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26112         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26113         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26114
26115 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26116
26117         unitypes: Fix bug introduced on 2010-05-18.
26118         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26119
26120 2010-06-22  Eric Blake  <eblake@redhat.com>
26121
26122         memmem: slight optimization
26123         * lib/str-two-way.h (critical_factorization): Update comments.
26124         Reduce work during factorization phase.
26125         Reported by Carlos Bueno <carlos@bueno.org>.
26126
26127 2010-06-21  Bruno Haible  <bruno@clisp.org>
26128
26129         Fix HAVE_CALLOC_POSIX misnomer.
26130         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26131         !HAVE_CALLOC_POSIX.
26132         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26133         HAVE_CALLOC_POSIX.
26134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26135         instead of HAVE_CALLOC_POSIX.
26136         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26137         HAVE_CALLOC_POSIX.
26138
26139         Use modern idiom for calloc() replacement.
26140         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26141         AC_FUNC_CALLOC.
26142         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26143         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26144         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26145         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26146         (gl_REPLACE_CALLOC): New macro.
26147
26148 2010-06-21  Bruno Haible  <bruno@clisp.org>
26149
26150         Fix HAVE_REALLOC_POSIX misnomer.
26151         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26152         !HAVE_REALLOC_POSIX.
26153         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26154         HAVE_REALLOC_POSIX.
26155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26156         instead of HAVE_REALLOC_POSIX.
26157         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26158         HAVE_REALLOC_POSIX.
26159
26160         Use modern idiom for realloc() replacement.
26161         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26162         AC_FUNC_REALLOC.
26163         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26164         Autoconf's AC_FUNC_REALLOC.
26165         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26166         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26167         (gl_REPLACE_REALLOC): New macro.
26168         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26169
26170 2010-06-21  Bruno Haible  <bruno@clisp.org>
26171
26172         Fix HAVE_MALLOC_POSIX misnomer.
26173         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26174         !HAVE_MALLOC_POSIX.
26175         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26176         HAVE_MALLOC_POSIX.
26177         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26178         instead of HAVE_MALLOC_POSIX.
26179         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26180         HAVE_MALLOC_POSIX.
26181
26182         Use modern idiom for malloc() replacement.
26183         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26184         AC_FUNC_MALLOC.
26185         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26186         Autoconf's AC_FUNC_MALLOC.
26187         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26188         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26189         (gl_REPLACE_MALLOC): New macro.
26190         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26191
26192 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26193
26194         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26195         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26196         This macro takes 3 arguments, not 4.
26197
26198 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26199
26200         ipv6: fix detection under mingw
26201         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26202         in6_addr.
26203
26204 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26205
26206         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26207         that strtod() works when cross-compiling to a glibc version known
26208         to work.
26209
26210 2010-06-15  Bruno Haible  <bruno@clisp.org>
26211
26212         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26213
26214 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26215
26216         select: Correct timeout.
26217         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26218
26219 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26220
26221         git-version-gen: init shell var to avoid env var influence
26222         * build-aux/git-version-gen (v): Init shell var to empty.
26223
26224 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26225
26226         priv-set: Don't assume that priv.h exists merely because getppriv does.
26227         See Jan Andersen's bug report about AIX 5L in
26228         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26229         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26230         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26231         * lib/priv-set.h: Likewise.
26232         * tests/test-priv-set.c: Likewise.
26233
26234 2010-06-13  Bruno Haible  <bruno@clisp.org>
26235
26236         relocatable: Make it easier to test whether to install wrappers.
26237         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26238         RELOCATABLE_VIA_WRAPPER.
26239
26240 2010-06-13  Bruno Haible  <bruno@clisp.org>
26241
26242         gnulib-tool: Display specified modules and dependencies differently.
26243         * gnulib-tool (func_show_module_list): New function.
26244         (func_import, func_create_testdir): Invoke it.
26245         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26246
26247 2010-06-13  Bruno Haible  <bruno@clisp.org>
26248
26249         gnulib-tool: Align code of func_import and func_create_testdir.
26250         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26251         specified_modules.
26252
26253 2010-06-12  Jim Meyering  <meyering@redhat.com>
26254
26255         test-inttostr: avoid spurious failure on Solaris 9
26256         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26257         to accept "%ju".  Reported by Bruno Haible.
26258
26259 2010-06-11  Jim Meyering  <meyering@redhat.com>
26260
26261         test-sys_socket: mark variables as used more readably
26262         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26263         as "used" explicitly via (void) statement casts.  This is more
26264         readable than using them in an artificial return expression.
26265         Suggestion from Bruno Haible.
26266
26267 2010-06-11  Bruno Haible  <bruno@clisp.org>
26268
26269         Avoid some more warnings from "gcc -Wwrite-strings".
26270         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26271         to 'const char *'.
26272         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26273         * tests/test-c-strcasestr.c (main): Likewise.
26274         * tests/test-mbscasestr1.c (main): Likewise.
26275         * tests/test-mbscasestr2.c (main): Likewise.
26276         * tests/test-memmem.c (main): Likewise.
26277         * tests/test-strstr.c (main): Likewise.
26278         * tests/test-strcasestr.c (main): Likewise.
26279
26280 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26281
26282         init.sh: change framework_failure_ to fail with status 99, not 1
26283         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26284         automake's parallel-tests rule that this is an unexpected failure,
26285         even if the test is listed in XFAIL_TESTS.
26286
26287 2010-06-11  Jim Meyering  <meyering@redhat.com>
26288
26289         test-inttostr: avoid warnings about 4-6KB literal strings
26290         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26291         Include "macros.h", for its definition of ASSERT.
26292         (CK): s/assert/ASSERT/
26293         * modules/inttostr-tests (Files): Add macros.h.
26294
26295         init.sh: don't use $ME_ or skip_ before they are defined
26296         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26297         their first uses.  Also hoist their companions: warn_, fail_,
26298         framework_failure_, $stderr_fileno.  Prompted by a patch from
26299         Stefano Lattarini.
26300
26301         test-sys_socket: avoid set-but-not-used warnings from gcc
26302         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26303         avoid warning about set-but-not-used variables.
26304
26305         test-xvasprintf: avoid 'const' discard warnings
26306         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26307         "const" when assigning from literal strings.
26308         (test_xasprintf): Add "void" in function argument list to placate
26309         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26310
26311         tests: avoid compilation warnings in argmatch and exclude tests...
26312         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26313         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26314         Since it always exits, declare with the "noreturn" attribute.
26315         * tests/test-argmatch.c: Likewise.
26316
26317         tests: avoid 'const' discard warnings in mbsstr tests
26318         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26319         * tests/test-mbsstr2.c (main): Likewise.
26320
26321         test-verify: avoid warning from gcc's -Wmissing-declarations
26322         * tests/test-verify.c (function): Declare to be static.
26323
26324         test-inttostr.c: include <string.h> for use of strcmp
26325         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26326
26327         test-linkat: avoid failed assertion on "other" architectures
26328         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26329         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26330         sparc: https://bugs.launchpad.net/bugs/591968
26331
26332 2010-06-11  Jim Meyering  <meyering@redhat.com>
26333
26334         printf.m4: avoid autoconf's "Expanded Before Required" warning
26335         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26336         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26337         autoconf warning.
26338
26339 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26340
26341         Replacement header templates are now named with ".in", not "_".
26342         * doc/gnulib-intro.texi: Correct.
26343
26344 2010-06-10  Jim Meyering  <meyering@redhat.com>
26345
26346         inttostr-tests: depend on snprintf, not snprintf-posix
26347         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26348         snprintf-posix, to avoid this aclocal failure:
26349           missing file gnulib-tests/vasnprintf.c
26350           configure.ac:45: error: expected source file, required through \
26351           AC_LIBSOURCES, not found
26352
26353 2010-06-10  Jim Meyering  <meyering@redhat.com>
26354
26355         inttostr: add a new function, inttostr, and tests
26356         The namesake function was not available.  The existence of the
26357         template file, inttostr.c makes its addition nontrivial.
26358         * lib/anytostr.c: Rename from inttostr.c.
26359         (anytostr): Rename from inttostr.
26360         * lib/inttostr.c: New file.
26361         * modules/inttostr (Files): Add anytostr.c.
26362         (Makefile.am): Set lib_SOURCES instead of ...
26363         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26364         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26365         * lib/offtostr.c: Likewise.
26366         * lib/uinttostr.c: Likewise.
26367         * lib/umaxtostr.c: Likewise.
26368         * modules/inttostr-tests: New file.
26369         * tests/test-inttostr.c: New file.  Test these functions.
26370
26371 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26372             Bruno Haible  <bruno@clisp.org>
26373
26374         Add "Extending Gnulib" chapter to manual.
26375         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26376         chapter.
26377         (Extending Gnulib): New chapter.
26378         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26379         chapter.
26380
26381 2010-06-09  Bruno Haible  <bruno@clisp.org>
26382
26383         Avoid relocwrapper link errors due to gnulib replacement functions.
26384         * lib/areadlink.c: Use the system's malloc, realloc functions.
26385         (areadlink): Set errno to ENOMEM explicitly.
26386         * modules/areadlink (Depends-on): Remove malloc-posix.
26387         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26388
26389 2010-06-09  Bruno Haible  <bruno@clisp.org>
26390
26391         Avoid relocwrapper link errors due to gnulib replacement functions.
26392         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26393         * lib/malloca.c: Likewise.
26394         * lib/relocatable.c: Likewise.
26395         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26396         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26397         * lib/setenv.c: Use the system's malloc, realloc functions.
26398         * lib/strerror.c: Use the system's sprintf function.
26399         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26400
26401 2010-06-04  Bruno Haible  <bruno@clisp.org>
26402
26403         Prefer documented low-level autoconf macro names.
26404         * m4/lib-link.m4: Use m4_translit instead of translit.
26405         * m4/environ.m4: Likewise.
26406         * m4/mathfunc.m4: Likewise.
26407         * m4/onceonly.m4: Likewise.
26408         * m4/stdint.m4: Likewise.
26409         Suggested by Eric Blake.
26410
26411 2010-06-04  Martin Lambers  <marlam@marlam.de>
26412             Bruno Haible  <bruno@clisp.org>
26413
26414         havelib: Allow library names with '+' characters.
26415         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26416         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26417
26418 2010-06-09  Bruno Haible  <bruno@clisp.org>
26419
26420         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26421         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26422         realloc failed.
26423
26424 2010-06-08  Peter Simons  <simons@cryp.to>
26425
26426         maint.mk: make the news-check rule more configurable
26427         * top/maint.mk (news-check-lines-spec): New variable.
26428         (news-check): Use "sed -n 1,10p" in place of "head".
26429
26430 2010-06-07  Jim Meyering  <meyering@redhat.com>
26431
26432         do-release-commit-and-tag: fix typo in --help
26433         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26434
26435         regex: avoid new dead-code warning with gcc-4.6.0
26436         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26437         if-block containing a while-loop.  It's been unused for at least
26438         5 years.
26439
26440 2010-06-05  Bruno Haible  <bruno@clisp.org>
26441
26442         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26443         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26444
26445 2010-06-04  Bruno Haible  <bruno@clisp.org>
26446
26447         Update to GNU gettext 0.18.1.
26448         * modules/gettext (configure.ac): Require gettext infrastructure from
26449         version 0.18.1.
26450
26451 2010-06-03  Bruno Haible  <bruno@clisp.org>
26452
26453         Don't use AC_LIBOBJ with file names in subdirectories.
26454         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26455         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26456         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26457         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26458         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26459         gl_LIBUNISTRING_LIBSOURCE.
26460         (Makefile.am): Augment lib_SOURCES here, conditionally.
26461         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26462
26463 2010-06-03  Bruno Haible  <bruno@clisp.org>
26464
26465         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26466         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26467         expansion does not end with a newline.
26468         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26469         unnecessary newline.
26470
26471 2010-06-03  Bruno Haible  <bruno@clisp.org>
26472
26473         Reduce dependencies.
26474         * tests/test-quotearg.h: New file, extracted from
26475         tests/test-quotearg.c.
26476         * tests/test-quotearg-simple.c: New file, extracted from
26477         tests/test-quotearg.c.
26478         * tests/test-quotearg.c: Don't include <ctype.h>.
26479         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26480         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26481         use_quote_double_quotes, use_quotearg_colon): Moved to
26482         tests/test-quotearg.h.
26483         (results_g, flag_results, custom_quotes, custom_results): Moved
26484         to tests/test-quotearg-simple.c.
26485         (main): Moved the part that does not depend on gettext to
26486         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26487         performed.
26488         * modules/quotearg-simple: New file.
26489         * modules/quotearg-simple-tests: New file.
26490         * modules/quotearg (Depends-on): Add quotearg-simple.
26491         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26492         (Files): Add tests/test-quotearg.h.
26493         Reported by Paolo Bonzini.
26494
26495 2010-06-03  Bruno Haible  <bruno@clisp.org>
26496
26497         Reduce dependencies.
26498         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26499
26500 2010-06-03  Bruno Haible  <bruno@clisp.org>
26501
26502         time: Undefine more broken macros.
26503         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26504         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26505         Reported by Eric Blake.
26506
26507 2010-06-03  Bruno Haible  <bruno@clisp.org>
26508
26509         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26510         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26511         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26512         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26513         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26514         Reported by Ludovic Courtès <ludo@gnu.org>.
26515
26516 2010-06-02  Eric Blake  <eblake@redhat.com>
26517
26518         time: work with mingw + pthreads-win32 library
26519         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26520         if timespec is defined only in pthread.h.
26521         * modules/time (Makefile.am): Substitute it.
26522         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26523         <pthread.h>, when needed.
26524         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26525         from the library.
26526
26527 2010-05-31  Bruno Haible  <bruno@clisp.org>
26528
26529         Avoid expanding two macros in the wrong order.
26530         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26531         gl_LIBUNISTRING if it is defined.
26532         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26533         autoconf >= 2.64.
26534         Reported by Ludovic Courtès <ludo@gnu.org>.
26535
26536 2010-05-27  Jim Meyering  <meyering@redhat.com>
26537
26538         maint.mk: also prohibit "#undef" of always-defined symbols
26539         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26540         Allow more than one space before the symbol name.
26541         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26542         the regexp uses alternation.
26543
26544 2010-05-26  Eric Blake  <eblake@redhat.com>
26545
26546         maint.mk: avoid echo -e
26547         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26548         Convert all uses of echo -* to printf.
26549         Reported by Matthias Bolte.
26550
26551 2010-05-25  Bruno Haible  <bruno@clisp.org>
26552
26553         Update to GNU gettext 0.18, part 2.
26554         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26555         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26556
26557 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26558
26559         Add missing include in test-pwrite.c.
26560         * tests/test-pwrite.c: Include string.h, for strcmp.
26561
26562 2010-05-24  Bruno Haible  <bruno@clisp.org>
26563
26564         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26565
26566 2010-05-24  Bruno Haible  <bruno@clisp.org>
26567
26568         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26569         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26570         iconveh_error argument.
26571         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26572         U_STRCONV_TO_LOCALE.
26573         * lib/unistr/u16-strcoll.c: Likewise.
26574         * lib/unistr/u32-strcoll.c: Likewise.
26575         * modules/unistr/u8-strcoll (Depends-on): Add
26576         uniconv/u8-strconv-to-enc, localcharset. Remove
26577         uniconv/u8-strconv-to-locale.
26578         (configure.ac): Bump version number.
26579         * modules/unistr/u16-strcoll (Depends-on): Add
26580         uniconv/u16-strconv-to-enc, localcharset. Remove
26581         uniconv/u16-strconv-to-locale.
26582         (configure.ac): Bump version number.
26583         * modules/unistr/u32-strcoll (Depends-on): Add
26584         uniconv/u32-strconv-to-enc, localcharset. Remove
26585         uniconv/u32-strconv-to-locale.
26586         (configure.ac): Bump version number.
26587
26588 2010-05-24  Bruno Haible  <bruno@clisp.org>
26589
26590         Avoid a test failure on NetBSD 5.0.
26591         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26592         an iconv() bug.
26593
26594 2010-05-24  Bruno Haible  <bruno@clisp.org>
26595
26596         Adjust #include directive style.
26597         * modules/regex (Includes): Recommend to write <regex.h>.
26598
26599 2010-05-24  Bruno Haible  <bruno@clisp.org>
26600
26601         regex: Don't require alloca.
26602         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
26603         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
26604         only inside if (0).
26605
26606 2010-05-23  Jim Meyering  <meyering@redhat.com>
26607
26608         test-renameat.c: include <sys/stat.h>
26609         * tests/test-renameat.c: Include <sys/stat.h>; required for
26610         definition of S_IS* macros.
26611
26612 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
26613
26614         Update maintainer documentation for 'relocatable-prog' module.
26615         * doc/relocatable-maint.texi: Update.
26616         Comments by Bruno Haible.
26617
26618 2010-05-23  Bruno Haible  <bruno@clisp.org>
26619
26620         git-merge-changelog: Enable --split-merged-entry by default.
26621         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
26622         (usage): Don't mention this option any more.
26623         Reported by Ralf Wildenhues.
26624
26625 2010-05-23  Jim Meyering  <meyering@redhat.com>
26626
26627         test-pwrite: do not leave behind a test file named "out"
26628         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
26629         The trivial-looking use of init.sh is really necessary.
26630         It ensures that the temporary file, "out", is created in
26631         a temporary directory, and removed upon termination.
26632         * tests/test-pwrite.sh: Re-add file.
26633         * modules/pwrite-tests: Reference it.
26634
26635 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26636
26637         Fix output redirection buglet in init.sh.
26638         * tests/init.sh: Fix redirection of stderr.
26639
26640 2010-05-20  Simon Josefsson  <simon@josefsson.org>
26641
26642         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26643
26644 2010-05-17  Simon Josefsson  <simon@josefsson.org>
26645
26646         * modules/valgrind-tests: New file.
26647         * m4/valgrind-tests.m4: New file.
26648         * doc/valgrind-tests.texi: New file.
26649         * doc/gnulib.texi (Running self-tests under valgrind): New
26650         section.
26651
26652 2010-05-19  Bruno Haible  <bruno@clisp.org>
26653
26654         Clean up dead code in recent commit.
26655         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
26656         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
26657         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
26658         Suggested by Paolo Bonzini.
26659
26660 2010-05-19  Bruno Haible  <bruno@clisp.org>
26661
26662         Avoid valgrind error reports from libunistring.
26663         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
26664         * modules/libunistring (Files): Add it.
26665         * modules/libunistring-optional (Files): Likewise.
26666
26667 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
26668             Bruno Haible  <bruno@clisp.org>
26669
26670         New module 'libunistring-optional'.
26671         * modules/libunistring-optional: New file.
26672         * m4/libunistring-base.m4: New file.
26673         * m4/libunistring-optional.m4: New file.
26674         * lib/unicase.in.h: Renamed from lib/unicase.h.
26675         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
26676         * lib/unictype.in.h: Renamed from lib/unictype.h.
26677         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
26678         * lib/uniname.in.h: Renamed from lib/uniname.h.
26679         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
26680         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
26681         * lib/unistr.in.h: Renamed from lib/unistr.h.
26682         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
26683         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
26684         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
26685         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
26686         gl_LIBUNISTRING. If the library was found, determine the installed
26687         version and set LIBUNISTRING_VERSION.
26688         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
26689         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
26690         handle a configuration option --with-included-libunistring.
26691         * modules/libunistring (Files): Add m4/absolute-header.m4.
26692         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
26693         Add m4/libunistring-base.m4.
26694         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26695         (Makefile.am): Build unicase.h from unicase.in.h.
26696         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
26697         Add m4/libunistring-base.m4.
26698         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26699         (Makefile.am): Build uniconv.h from uniconv.in.h.
26700         * modules/unictype/base (Files): Use unictype.in.h instead of
26701         unictype.h. Add m4/libunistring-base.m4.
26702         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26703         (Makefile.am): Build unictype.h from unictype.in.h.
26704         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
26705         Add m4/libunistring-base.m4.
26706         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26707         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
26708         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
26709         Add m4/libunistring-base.m4.
26710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26711         (Makefile.am): Build uniname.h from uniname.in.h.
26712         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
26713         Add m4/libunistring-base.m4.
26714         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26715         (Makefile.am): Build uninorm.h from uninorm.in.h.
26716         * modules/unistdio/base (Files): Use unistdio.in.h instead of
26717         unistdio.h. Add m4/libunistring-base.m4.
26718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26719         (Makefile.am): Build unistdio.h from unistdio.in.h.
26720         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
26721         Add m4/libunistring-base.m4.
26722         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26723         (Makefile.am): Build unistr.h from unistr.in.h.
26724         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
26725         Add m4/libunistring-base.m4.
26726         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26727         (Makefile.am): Build unitypes.h from unitypes.in.h.
26728         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
26729         Add m4/libunistring-base.m4.
26730         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26731         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
26732         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
26733         uniwidth.h. Add m4/libunistring-base.m4.
26734         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26735         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
26736         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
26737         instead of augmenting lib_SOURCES.
26738         * modules/unicase/empty-suffix-context: Likewise.
26739         * modules/unicase/locale-language: Likewise.
26740         * modules/unicase/tolower: Likewise.
26741         * modules/unicase/totitle: Likewise.
26742         * modules/unicase/toupper: Likewise.
26743         * modules/unicase/u8-casecmp: Likewise.
26744         * modules/unicase/u8-casecoll: Likewise.
26745         * modules/unicase/u8-casefold: Likewise.
26746         * modules/unicase/u8-casexfrm: Likewise.
26747         * modules/unicase/u8-ct-casefold: Likewise.
26748         * modules/unicase/u8-ct-tolower: Likewise.
26749         * modules/unicase/u8-ct-totitle: Likewise.
26750         * modules/unicase/u8-ct-toupper: Likewise.
26751         * modules/unicase/u8-is-cased: Likewise.
26752         * modules/unicase/u8-is-casefolded: Likewise.
26753         * modules/unicase/u8-is-lowercase: Likewise.
26754         * modules/unicase/u8-is-titlecase: Likewise.
26755         * modules/unicase/u8-is-uppercase: Likewise.
26756         * modules/unicase/u8-prefix-context: Likewise.
26757         * modules/unicase/u8-suffix-context: Likewise.
26758         * modules/unicase/u8-tolower: Likewise.
26759         * modules/unicase/u8-totitle: Likewise.
26760         * modules/unicase/u8-toupper: Likewise.
26761         * modules/unicase/u16-casecmp: Likewise.
26762         * modules/unicase/u16-casecoll: Likewise.
26763         * modules/unicase/u16-casefold: Likewise.
26764         * modules/unicase/u16-casexfrm: Likewise.
26765         * modules/unicase/u16-ct-casefold: Likewise.
26766         * modules/unicase/u16-ct-tolower: Likewise.
26767         * modules/unicase/u16-ct-totitle: Likewise.
26768         * modules/unicase/u16-ct-toupper: Likewise.
26769         * modules/unicase/u16-is-cased: Likewise.
26770         * modules/unicase/u16-is-casefolded: Likewise.
26771         * modules/unicase/u16-is-lowercase: Likewise.
26772         * modules/unicase/u16-is-titlecase: Likewise.
26773         * modules/unicase/u16-is-uppercase: Likewise.
26774         * modules/unicase/u16-prefix-context: Likewise.
26775         * modules/unicase/u16-suffix-context: Likewise.
26776         * modules/unicase/u16-tolower: Likewise.
26777         * modules/unicase/u16-totitle: Likewise.
26778         * modules/unicase/u16-toupper: Likewise.
26779         * modules/unicase/u32-casecmp: Likewise.
26780         * modules/unicase/u32-casecoll: Likewise.
26781         * modules/unicase/u32-casefold: Likewise.
26782         * modules/unicase/u32-casexfrm: Likewise.
26783         * modules/unicase/u32-ct-casefold: Likewise.
26784         * modules/unicase/u32-ct-tolower: Likewise.
26785         * modules/unicase/u32-ct-totitle: Likewise.
26786         * modules/unicase/u32-ct-toupper: Likewise.
26787         * modules/unicase/u32-is-cased: Likewise.
26788         * modules/unicase/u32-is-casefolded: Likewise.
26789         * modules/unicase/u32-is-lowercase: Likewise.
26790         * modules/unicase/u32-is-titlecase: Likewise.
26791         * modules/unicase/u32-is-uppercase: Likewise.
26792         * modules/unicase/u32-prefix-context: Likewise.
26793         * modules/unicase/u32-suffix-context: Likewise.
26794         * modules/unicase/u32-tolower: Likewise.
26795         * modules/unicase/u32-totitle: Likewise.
26796         * modules/unicase/u32-toupper: Likewise.
26797         * modules/unicase/ulc-casecmp: Likewise.
26798         * modules/unicase/ulc-casecoll: Likewise.
26799         * modules/unicase/ulc-casexfrm: Likewise.
26800         * modules/uniconv/u8-conv-from-enc: Likewise.
26801         * modules/uniconv/u8-conv-to-enc: Likewise.
26802         * modules/uniconv/u8-strconv-from-enc: Likewise.
26803         * modules/uniconv/u8-strconv-from-locale: Likewise.
26804         * modules/uniconv/u8-strconv-to-enc: Likewise.
26805         * modules/uniconv/u8-strconv-to-locale: Likewise.
26806         * modules/uniconv/u16-conv-from-enc: Likewise.
26807         * modules/uniconv/u16-conv-to-enc: Likewise.
26808         * modules/uniconv/u16-strconv-from-enc: Likewise.
26809         * modules/uniconv/u16-strconv-from-locale: Likewise.
26810         * modules/uniconv/u16-strconv-to-enc: Likewise.
26811         * modules/uniconv/u16-strconv-to-locale: Likewise.
26812         * modules/uniconv/u32-conv-from-enc: Likewise.
26813         * modules/uniconv/u32-conv-to-enc: Likewise.
26814         * modules/uniconv/u32-strconv-from-enc: Likewise.
26815         * modules/uniconv/u32-strconv-from-locale: Likewise.
26816         * modules/uniconv/u32-strconv-to-enc: Likewise.
26817         * modules/uniconv/u32-strconv-to-locale: Likewise.
26818         * modules/unictype/bidicategory-byname: Likewise.
26819         * modules/unictype/bidicategory-name: Likewise.
26820         * modules/unictype/bidicategory-of: Likewise.
26821         * modules/unictype/bidicategory-test: Likewise.
26822         * modules/unictype/block-list: Likewise.
26823         * modules/unictype/block-test: Likewise.
26824         * modules/unictype/category-C: Likewise.
26825         * modules/unictype/category-Cc: Likewise.
26826         * modules/unictype/category-Cf: Likewise.
26827         * modules/unictype/category-Cn: Likewise.
26828         * modules/unictype/category-Co: Likewise.
26829         * modules/unictype/category-Cs: Likewise.
26830         * modules/unictype/category-L: Likewise.
26831         * modules/unictype/category-Ll: Likewise.
26832         * modules/unictype/category-Lm: Likewise.
26833         * modules/unictype/category-Lo: Likewise.
26834         * modules/unictype/category-Lt: Likewise.
26835         * modules/unictype/category-Lu: Likewise.
26836         * modules/unictype/category-M: Likewise.
26837         * modules/unictype/category-Mc: Likewise.
26838         * modules/unictype/category-Me: Likewise.
26839         * modules/unictype/category-Mn: Likewise.
26840         * modules/unictype/category-N: Likewise.
26841         * modules/unictype/category-Nd: Likewise.
26842         * modules/unictype/category-Nl: Likewise.
26843         * modules/unictype/category-No: Likewise.
26844         * modules/unictype/category-P: Likewise.
26845         * modules/unictype/category-Pc: Likewise.
26846         * modules/unictype/category-Pd: Likewise.
26847         * modules/unictype/category-Pe: Likewise.
26848         * modules/unictype/category-Pf: Likewise.
26849         * modules/unictype/category-Pi: Likewise.
26850         * modules/unictype/category-Po: Likewise.
26851         * modules/unictype/category-Ps: Likewise.
26852         * modules/unictype/category-S: Likewise.
26853         * modules/unictype/category-Sc: Likewise.
26854         * modules/unictype/category-Sk: Likewise.
26855         * modules/unictype/category-Sm: Likewise.
26856         * modules/unictype/category-So: Likewise.
26857         * modules/unictype/category-Z: Likewise.
26858         * modules/unictype/category-Zl: Likewise.
26859         * modules/unictype/category-Zp: Likewise.
26860         * modules/unictype/category-Zs: Likewise.
26861         * modules/unictype/category-and: Likewise.
26862         * modules/unictype/category-and-not: Likewise.
26863         * modules/unictype/category-byname: Likewise.
26864         * modules/unictype/category-name: Likewise.
26865         * modules/unictype/category-none: Likewise.
26866         * modules/unictype/category-of: Likewise.
26867         * modules/unictype/category-or: Likewise.
26868         * modules/unictype/category-test: Likewise.
26869         * modules/unictype/combining-class: Likewise.
26870         * modules/unictype/ctype-alnum: Likewise.
26871         * modules/unictype/ctype-alpha: Likewise.
26872         * modules/unictype/ctype-blank: Likewise.
26873         * modules/unictype/ctype-cntrl: Likewise.
26874         * modules/unictype/ctype-digit: Likewise.
26875         * modules/unictype/ctype-graph: Likewise.
26876         * modules/unictype/ctype-lower: Likewise.
26877         * modules/unictype/ctype-print: Likewise.
26878         * modules/unictype/ctype-punct: Likewise.
26879         * modules/unictype/ctype-space: Likewise.
26880         * modules/unictype/ctype-upper: Likewise.
26881         * modules/unictype/ctype-xdigit: Likewise.
26882         * modules/unictype/decimal-digit: Likewise.
26883         * modules/unictype/digit: Likewise.
26884         * modules/unictype/mirror: Likewise.
26885         * modules/unictype/numeric: Likewise.
26886         * modules/unictype/property-alphabetic: Likewise.
26887         * modules/unictype/property-ascii-hex-digit: Likewise.
26888         * modules/unictype/property-bidi-arabic-digit: Likewise.
26889         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
26890         * modules/unictype/property-bidi-block-separator: Likewise.
26891         * modules/unictype/property-bidi-boundary-neutral: Likewise.
26892         * modules/unictype/property-bidi-common-separator: Likewise.
26893         * modules/unictype/property-bidi-control: Likewise.
26894         * modules/unictype/property-bidi-embedding-or-override: Likewise.
26895         * modules/unictype/property-bidi-eur-num-separator: Likewise.
26896         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
26897         * modules/unictype/property-bidi-european-digit: Likewise.
26898         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
26899         * modules/unictype/property-bidi-left-to-right: Likewise.
26900         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
26901         * modules/unictype/property-bidi-other-neutral: Likewise.
26902         * modules/unictype/property-bidi-pdf: Likewise.
26903         * modules/unictype/property-bidi-segment-separator: Likewise.
26904         * modules/unictype/property-bidi-whitespace: Likewise.
26905         * modules/unictype/property-byname: Likewise.
26906         * modules/unictype/property-combining: Likewise.
26907         * modules/unictype/property-composite: Likewise.
26908         * modules/unictype/property-currency-symbol: Likewise.
26909         * modules/unictype/property-dash: Likewise.
26910         * modules/unictype/property-decimal-digit: Likewise.
26911         * modules/unictype/property-default-ignorable-code-point: Likewise.
26912         * modules/unictype/property-deprecated: Likewise.
26913         * modules/unictype/property-diacritic: Likewise.
26914         * modules/unictype/property-extender: Likewise.
26915         * modules/unictype/property-format-control: Likewise.
26916         * modules/unictype/property-grapheme-base: Likewise.
26917         * modules/unictype/property-grapheme-extend: Likewise.
26918         * modules/unictype/property-grapheme-link: Likewise.
26919         * modules/unictype/property-hex-digit: Likewise.
26920         * modules/unictype/property-hyphen: Likewise.
26921         * modules/unictype/property-id-continue: Likewise.
26922         * modules/unictype/property-id-start: Likewise.
26923         * modules/unictype/property-ideographic: Likewise.
26924         * modules/unictype/property-ids-binary-operator: Likewise.
26925         * modules/unictype/property-ids-trinary-operator: Likewise.
26926         * modules/unictype/property-ignorable-control: Likewise.
26927         * modules/unictype/property-iso-control: Likewise.
26928         * modules/unictype/property-join-control: Likewise.
26929         * modules/unictype/property-left-of-pair: Likewise.
26930         * modules/unictype/property-line-separator: Likewise.
26931         * modules/unictype/property-logical-order-exception: Likewise.
26932         * modules/unictype/property-lowercase: Likewise.
26933         * modules/unictype/property-math: Likewise.
26934         * modules/unictype/property-non-break: Likewise.
26935         * modules/unictype/property-not-a-character: Likewise.
26936         * modules/unictype/property-numeric: Likewise.
26937         * modules/unictype/property-other-alphabetic: Likewise.
26938         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
26939         * modules/unictype/property-other-grapheme-extend: Likewise.
26940         * modules/unictype/property-other-id-continue: Likewise.
26941         * modules/unictype/property-other-id-start: Likewise.
26942         * modules/unictype/property-other-lowercase: Likewise.
26943         * modules/unictype/property-other-math: Likewise.
26944         * modules/unictype/property-other-uppercase: Likewise.
26945         * modules/unictype/property-paired-punctuation: Likewise.
26946         * modules/unictype/property-paragraph-separator: Likewise.
26947         * modules/unictype/property-pattern-syntax: Likewise.
26948         * modules/unictype/property-pattern-white-space: Likewise.
26949         * modules/unictype/property-private-use: Likewise.
26950         * modules/unictype/property-punctuation: Likewise.
26951         * modules/unictype/property-quotation-mark: Likewise.
26952         * modules/unictype/property-radical: Likewise.
26953         * modules/unictype/property-sentence-terminal: Likewise.
26954         * modules/unictype/property-soft-dotted: Likewise.
26955         * modules/unictype/property-space: Likewise.
26956         * modules/unictype/property-terminal-punctuation: Likewise.
26957         * modules/unictype/property-test: Likewise.
26958         * modules/unictype/property-titlecase: Likewise.
26959         * modules/unictype/property-unassigned-code-value: Likewise.
26960         * modules/unictype/property-unified-ideograph: Likewise.
26961         * modules/unictype/property-uppercase: Likewise.
26962         * modules/unictype/property-variation-selector: Likewise.
26963         * modules/unictype/property-white-space: Likewise.
26964         * modules/unictype/property-xid-continue: Likewise.
26965         * modules/unictype/property-xid-start: Likewise.
26966         * modules/unictype/property-zero-width: Likewise.
26967         * modules/unictype/scripts: Likewise.
26968         * modules/unictype/syntax-c-ident: Likewise.
26969         * modules/unictype/syntax-c-whitespace: Likewise.
26970         * modules/unictype/syntax-java-ident: Likewise.
26971         * modules/unictype/syntax-java-whitespace: Likewise.
26972         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26973         * modules/unilbrk/u8-width-linebreaks: Likewise.
26974         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26975         * modules/unilbrk/u16-width-linebreaks: Likewise.
26976         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26977         * modules/unilbrk/u32-width-linebreaks: Likewise.
26978         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26979         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26980         * modules/uniname/uniname: Likewise.
26981         * modules/uninorm/canonical-decomposition: Likewise.
26982         * modules/uninorm/composition: Likewise.
26983         * modules/uninorm/decomposing-form: Likewise.
26984         * modules/uninorm/decomposition: Likewise.
26985         * modules/uninorm/filter: Likewise.
26986         * modules/uninorm/nfc: Likewise.
26987         * modules/uninorm/nfd: Likewise.
26988         * modules/uninorm/nfkc: Likewise.
26989         * modules/uninorm/nfkd: Likewise.
26990         * modules/uninorm/u8-normalize: Likewise.
26991         * modules/uninorm/u8-normcmp: Likewise.
26992         * modules/uninorm/u8-normcoll: Likewise.
26993         * modules/uninorm/u8-normxfrm: Likewise.
26994         * modules/uninorm/u16-normalize: Likewise.
26995         * modules/uninorm/u16-normcmp: Likewise.
26996         * modules/uninorm/u16-normcoll: Likewise.
26997         * modules/uninorm/u16-normxfrm: Likewise.
26998         * modules/uninorm/u32-normalize: Likewise.
26999         * modules/uninorm/u32-normcmp: Likewise.
27000         * modules/uninorm/u32-normcoll: Likewise.
27001         * modules/uninorm/u32-normxfrm: Likewise.
27002         * modules/unistdio/u8-asnprintf: Likewise.
27003         * modules/unistdio/u8-asprintf: Likewise.
27004         * modules/unistdio/u8-snprintf: Likewise.
27005         * modules/unistdio/u8-sprintf: Likewise.
27006         * modules/unistdio/u8-u8-asnprintf: Likewise.
27007         * modules/unistdio/u8-u8-asprintf: Likewise.
27008         * modules/unistdio/u8-u8-snprintf: Likewise.
27009         * modules/unistdio/u8-u8-sprintf: Likewise.
27010         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27011         * modules/unistdio/u8-u8-vasprintf: Likewise.
27012         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27013         * modules/unistdio/u8-u8-vsprintf: Likewise.
27014         * modules/unistdio/u8-vasnprintf: Likewise.
27015         * modules/unistdio/u8-vasprintf: Likewise.
27016         * modules/unistdio/u8-vsnprintf: Likewise.
27017         * modules/unistdio/u8-vsprintf: Likewise.
27018         * modules/unistdio/u16-asnprintf: Likewise.
27019         * modules/unistdio/u16-asprintf: Likewise.
27020         * modules/unistdio/u16-snprintf: Likewise.
27021         * modules/unistdio/u16-sprintf: Likewise.
27022         * modules/unistdio/u16-u16-asnprintf: Likewise.
27023         * modules/unistdio/u16-u16-asprintf: Likewise.
27024         * modules/unistdio/u16-u16-snprintf: Likewise.
27025         * modules/unistdio/u16-u16-sprintf: Likewise.
27026         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27027         * modules/unistdio/u16-u16-vasprintf: Likewise.
27028         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27029         * modules/unistdio/u16-u16-vsprintf: Likewise.
27030         * modules/unistdio/u16-vasnprintf: Likewise.
27031         * modules/unistdio/u16-vasprintf: Likewise.
27032         * modules/unistdio/u16-vsnprintf: Likewise.
27033         * modules/unistdio/u16-vsprintf: Likewise.
27034         * modules/unistdio/u32-asnprintf: Likewise.
27035         * modules/unistdio/u32-asprintf: Likewise.
27036         * modules/unistdio/u32-snprintf: Likewise.
27037         * modules/unistdio/u32-sprintf: Likewise.
27038         * modules/unistdio/u32-u32-asnprintf: Likewise.
27039         * modules/unistdio/u32-u32-asprintf: Likewise.
27040         * modules/unistdio/u32-u32-snprintf: Likewise.
27041         * modules/unistdio/u32-u32-sprintf: Likewise.
27042         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27043         * modules/unistdio/u32-u32-vasprintf: Likewise.
27044         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27045         * modules/unistdio/u32-u32-vsprintf: Likewise.
27046         * modules/unistdio/u32-vasnprintf: Likewise.
27047         * modules/unistdio/u32-vasprintf: Likewise.
27048         * modules/unistdio/u32-vsnprintf: Likewise.
27049         * modules/unistdio/u32-vsprintf: Likewise.
27050         * modules/unistdio/ulc-asnprintf: Likewise.
27051         * modules/unistdio/ulc-asprintf: Likewise.
27052         * modules/unistdio/ulc-fprintf: Likewise.
27053         * modules/unistdio/ulc-snprintf: Likewise.
27054         * modules/unistdio/ulc-sprintf: Likewise.
27055         * modules/unistdio/ulc-vasnprintf: Likewise.
27056         * modules/unistdio/ulc-vasprintf: Likewise.
27057         * modules/unistdio/ulc-vfprintf: Likewise.
27058         * modules/unistdio/ulc-vsnprintf: Likewise.
27059         * modules/unistdio/ulc-vsprintf: Likewise.
27060         * modules/unistr/u8-check: Likewise.
27061         * modules/unistr/u8-chr: Likewise.
27062         * modules/unistr/u8-cmp: Likewise.
27063         * modules/unistr/u8-cmp2: Likewise.
27064         * modules/unistr/u8-cpy: Likewise.
27065         * modules/unistr/u8-cpy-alloc: Likewise.
27066         * modules/unistr/u8-endswith: Likewise.
27067         * modules/unistr/u8-mblen: Likewise.
27068         * modules/unistr/u8-mbsnlen: Likewise.
27069         * modules/unistr/u8-mbtouc: Likewise.
27070         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27071         * modules/unistr/u8-mbtoucr: Likewise.
27072         * modules/unistr/u8-move: Likewise.
27073         * modules/unistr/u8-next: Likewise.
27074         * modules/unistr/u8-prev: Likewise.
27075         * modules/unistr/u8-set: Likewise.
27076         * modules/unistr/u8-startswith: Likewise.
27077         * modules/unistr/u8-stpcpy: Likewise.
27078         * modules/unistr/u8-stpncpy: Likewise.
27079         * modules/unistr/u8-strcat: Likewise.
27080         * modules/unistr/u8-strchr: Likewise.
27081         * modules/unistr/u8-strcmp: Likewise.
27082         * modules/unistr/u8-strcoll: Likewise.
27083         * modules/unistr/u8-strcpy: Likewise.
27084         * modules/unistr/u8-strcspn: Likewise.
27085         * modules/unistr/u8-strdup: Likewise.
27086         * modules/unistr/u8-strlen: Likewise.
27087         * modules/unistr/u8-strmblen: Likewise.
27088         * modules/unistr/u8-strmbtouc: Likewise.
27089         * modules/unistr/u8-strncat: Likewise.
27090         * modules/unistr/u8-strncmp: Likewise.
27091         * modules/unistr/u8-strncpy: Likewise.
27092         * modules/unistr/u8-strnlen: Likewise.
27093         * modules/unistr/u8-strpbrk: Likewise.
27094         * modules/unistr/u8-strrchr: Likewise.
27095         * modules/unistr/u8-strspn: Likewise.
27096         * modules/unistr/u8-strstr: Likewise.
27097         * modules/unistr/u8-strtok: Likewise.
27098         * modules/unistr/u8-to-u16: Likewise.
27099         * modules/unistr/u8-to-u32: Likewise.
27100         * modules/unistr/u8-uctomb: Likewise.
27101         * modules/unistr/u16-check: Likewise.
27102         * modules/unistr/u16-chr: Likewise.
27103         * modules/unistr/u16-cmp: Likewise.
27104         * modules/unistr/u16-cmp2: Likewise.
27105         * modules/unistr/u16-cpy: Likewise.
27106         * modules/unistr/u16-cpy-alloc: Likewise.
27107         * modules/unistr/u16-endswith: Likewise.
27108         * modules/unistr/u16-mblen: Likewise.
27109         * modules/unistr/u16-mbsnlen: Likewise.
27110         * modules/unistr/u16-mbtouc: Likewise.
27111         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27112         * modules/unistr/u16-mbtoucr: Likewise.
27113         * modules/unistr/u16-move: Likewise.
27114         * modules/unistr/u16-next: Likewise.
27115         * modules/unistr/u16-prev: Likewise.
27116         * modules/unistr/u16-set: Likewise.
27117         * modules/unistr/u16-startswith: Likewise.
27118         * modules/unistr/u16-stpcpy: Likewise.
27119         * modules/unistr/u16-stpncpy: Likewise.
27120         * modules/unistr/u16-strcat: Likewise.
27121         * modules/unistr/u16-strchr: Likewise.
27122         * modules/unistr/u16-strcmp: Likewise.
27123         * modules/unistr/u16-strcoll: Likewise.
27124         * modules/unistr/u16-strcpy: Likewise.
27125         * modules/unistr/u16-strcspn: Likewise.
27126         * modules/unistr/u16-strdup: Likewise.
27127         * modules/unistr/u16-strlen: Likewise.
27128         * modules/unistr/u16-strmblen: Likewise.
27129         * modules/unistr/u16-strmbtouc: Likewise.
27130         * modules/unistr/u16-strncat: Likewise.
27131         * modules/unistr/u16-strncmp: Likewise.
27132         * modules/unistr/u16-strncpy: Likewise.
27133         * modules/unistr/u16-strnlen: Likewise.
27134         * modules/unistr/u16-strpbrk: Likewise.
27135         * modules/unistr/u16-strrchr: Likewise.
27136         * modules/unistr/u16-strspn: Likewise.
27137         * modules/unistr/u16-strstr: Likewise.
27138         * modules/unistr/u16-strtok: Likewise.
27139         * modules/unistr/u16-to-u32: Likewise.
27140         * modules/unistr/u16-to-u8: Likewise.
27141         * modules/unistr/u16-uctomb: Likewise.
27142         * modules/unistr/u32-check: Likewise.
27143         * modules/unistr/u32-chr: Likewise.
27144         * modules/unistr/u32-cmp: Likewise.
27145         * modules/unistr/u32-cmp2: Likewise.
27146         * modules/unistr/u32-cpy: Likewise.
27147         * modules/unistr/u32-cpy-alloc: Likewise.
27148         * modules/unistr/u32-endswith: Likewise.
27149         * modules/unistr/u32-mblen: Likewise.
27150         * modules/unistr/u32-mbsnlen: Likewise.
27151         * modules/unistr/u32-mbtouc: Likewise.
27152         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27153         * modules/unistr/u32-mbtoucr: Likewise.
27154         * modules/unistr/u32-move: Likewise.
27155         * modules/unistr/u32-next: Likewise.
27156         * modules/unistr/u32-prev: Likewise.
27157         * modules/unistr/u32-set: Likewise.
27158         * modules/unistr/u32-startswith: Likewise.
27159         * modules/unistr/u32-stpcpy: Likewise.
27160         * modules/unistr/u32-stpncpy: Likewise.
27161         * modules/unistr/u32-strcat: Likewise.
27162         * modules/unistr/u32-strchr: Likewise.
27163         * modules/unistr/u32-strcmp: Likewise.
27164         * modules/unistr/u32-strcoll: Likewise.
27165         * modules/unistr/u32-strcpy: Likewise.
27166         * modules/unistr/u32-strcspn: Likewise.
27167         * modules/unistr/u32-strdup: Likewise.
27168         * modules/unistr/u32-strlen: Likewise.
27169         * modules/unistr/u32-strmblen: Likewise.
27170         * modules/unistr/u32-strmbtouc: Likewise.
27171         * modules/unistr/u32-strncat: Likewise.
27172         * modules/unistr/u32-strncmp: Likewise.
27173         * modules/unistr/u32-strncpy: Likewise.
27174         * modules/unistr/u32-strnlen: Likewise.
27175         * modules/unistr/u32-strpbrk: Likewise.
27176         * modules/unistr/u32-strrchr: Likewise.
27177         * modules/unistr/u32-strspn: Likewise.
27178         * modules/unistr/u32-strstr: Likewise.
27179         * modules/unistr/u32-strtok: Likewise.
27180         * modules/unistr/u32-to-u16: Likewise.
27181         * modules/unistr/u32-to-u8: Likewise.
27182         * modules/unistr/u32-uctomb: Likewise.
27183         * modules/uniwbrk/u8-wordbreaks: Likewise.
27184         * modules/uniwbrk/u16-wordbreaks: Likewise.
27185         * modules/uniwbrk/u32-wordbreaks: Likewise.
27186         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27187         * modules/uniwbrk/wordbreak-property: Likewise.
27188         * modules/uniwidth/u8-strwidth: Likewise.
27189         * modules/uniwidth/u8-width: Likewise.
27190         * modules/uniwidth/u16-strwidth: Likewise.
27191         * modules/uniwidth/u16-width: Likewise.
27192         * modules/uniwidth/u32-strwidth: Likewise.
27193         * modules/uniwidth/u32-width: Likewise.
27194         * modules/uniwidth/width: Likewise.
27195         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27196         with $(LIBUNISTRING).
27197         * modules/unicase/ignorable-tests: Likewise.
27198         * modules/unicase/locale-language-tests: Likewise.
27199         * modules/unicase/tolower-tests: Likewise.
27200         * modules/unicase/totitle-tests: Likewise.
27201         * modules/unicase/toupper-tests: Likewise.
27202         * modules/unicase/u8-casecmp-tests: Likewise.
27203         * modules/unicase/u8-casecoll-tests: Likewise.
27204         * modules/unicase/u8-casefold-tests: Likewise.
27205         * modules/unicase/u8-is-cased-tests: Likewise.
27206         * modules/unicase/u8-is-casefolded-tests: Likewise.
27207         * modules/unicase/u8-is-lowercase-tests: Likewise.
27208         * modules/unicase/u8-is-titlecase-tests: Likewise.
27209         * modules/unicase/u8-is-uppercase-tests: Likewise.
27210         * modules/unicase/u8-tolower-tests: Likewise.
27211         * modules/unicase/u8-totitle-tests: Likewise.
27212         * modules/unicase/u8-toupper-tests: Likewise.
27213         * modules/unicase/u16-casecmp-tests: Likewise.
27214         * modules/unicase/u16-casecoll-tests: Likewise.
27215         * modules/unicase/u16-casefold-tests: Likewise.
27216         * modules/unicase/u16-is-cased-tests: Likewise.
27217         * modules/unicase/u16-is-casefolded-tests: Likewise.
27218         * modules/unicase/u16-is-lowercase-tests: Likewise.
27219         * modules/unicase/u16-is-titlecase-tests: Likewise.
27220         * modules/unicase/u16-is-uppercase-tests: Likewise.
27221         * modules/unicase/u16-tolower-tests: Likewise.
27222         * modules/unicase/u16-totitle-tests: Likewise.
27223         * modules/unicase/u16-toupper-tests: Likewise.
27224         * modules/unicase/u32-casecmp-tests: Likewise.
27225         * modules/unicase/u32-casecoll-tests: Likewise.
27226         * modules/unicase/u32-casefold-tests: Likewise.
27227         * modules/unicase/u32-is-cased-tests: Likewise.
27228         * modules/unicase/u32-is-casefolded-tests: Likewise.
27229         * modules/unicase/u32-is-lowercase-tests: Likewise.
27230         * modules/unicase/u32-is-titlecase-tests: Likewise.
27231         * modules/unicase/u32-is-uppercase-tests: Likewise.
27232         * modules/unicase/u32-tolower-tests: Likewise.
27233         * modules/unicase/u32-totitle-tests: Likewise.
27234         * modules/unicase/u32-toupper-tests: Likewise.
27235         * modules/unicase/ulc-casecmp-tests: Likewise.
27236         * modules/unicase/ulc-casecoll-tests: Likewise.
27237         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27238         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27239         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27240         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27241         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27242         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27243         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27244         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27245         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27246         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27247         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27248         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27249         * modules/unictype/bidicategory-byname-tests: Likewise.
27250         * modules/unictype/bidicategory-name-tests: Likewise.
27251         * modules/unictype/bidicategory-of-tests: Likewise.
27252         * modules/unictype/bidicategory-test-tests: Likewise.
27253         * modules/unictype/block-list-tests: Likewise.
27254         * modules/unictype/block-of-tests: Likewise.
27255         * modules/unictype/block-test-tests: Likewise.
27256         * modules/unictype/category-C-tests: Likewise.
27257         * modules/unictype/category-Cc-tests: Likewise.
27258         * modules/unictype/category-Cf-tests: Likewise.
27259         * modules/unictype/category-Cn-tests: Likewise.
27260         * modules/unictype/category-Co-tests: Likewise.
27261         * modules/unictype/category-Cs-tests: Likewise.
27262         * modules/unictype/category-L-tests: Likewise.
27263         * modules/unictype/category-Ll-tests: Likewise.
27264         * modules/unictype/category-Lm-tests: Likewise.
27265         * modules/unictype/category-Lo-tests: Likewise.
27266         * modules/unictype/category-Lt-tests: Likewise.
27267         * modules/unictype/category-Lu-tests: Likewise.
27268         * modules/unictype/category-M-tests: Likewise.
27269         * modules/unictype/category-Mc-tests: Likewise.
27270         * modules/unictype/category-Me-tests: Likewise.
27271         * modules/unictype/category-Mn-tests: Likewise.
27272         * modules/unictype/category-N-tests: Likewise.
27273         * modules/unictype/category-Nd-tests: Likewise.
27274         * modules/unictype/category-Nl-tests: Likewise.
27275         * modules/unictype/category-No-tests: Likewise.
27276         * modules/unictype/category-P-tests: Likewise.
27277         * modules/unictype/category-Pc-tests: Likewise.
27278         * modules/unictype/category-Pd-tests: Likewise.
27279         * modules/unictype/category-Pe-tests: Likewise.
27280         * modules/unictype/category-Pf-tests: Likewise.
27281         * modules/unictype/category-Pi-tests: Likewise.
27282         * modules/unictype/category-Po-tests: Likewise.
27283         * modules/unictype/category-Ps-tests: Likewise.
27284         * modules/unictype/category-S-tests: Likewise.
27285         * modules/unictype/category-Sc-tests: Likewise.
27286         * modules/unictype/category-Sk-tests: Likewise.
27287         * modules/unictype/category-Sm-tests: Likewise.
27288         * modules/unictype/category-So-tests: Likewise.
27289         * modules/unictype/category-Z-tests: Likewise.
27290         * modules/unictype/category-Zl-tests: Likewise.
27291         * modules/unictype/category-Zp-tests: Likewise.
27292         * modules/unictype/category-Zs-tests: Likewise.
27293         * modules/unictype/category-and-not-tests: Likewise.
27294         * modules/unictype/category-and-tests: Likewise.
27295         * modules/unictype/category-byname-tests: Likewise.
27296         * modules/unictype/category-name-tests: Likewise.
27297         * modules/unictype/category-none-tests: Likewise.
27298         * modules/unictype/category-of-tests: Likewise.
27299         * modules/unictype/category-or-tests: Likewise.
27300         * modules/unictype/category-test-withtable-tests: Likewise.
27301         * modules/unictype/combining-class-tests: Likewise.
27302         * modules/unictype/ctype-alnum-tests: Likewise.
27303         * modules/unictype/ctype-alpha-tests: Likewise.
27304         * modules/unictype/ctype-blank-tests: Likewise.
27305         * modules/unictype/ctype-cntrl-tests: Likewise.
27306         * modules/unictype/ctype-digit-tests: Likewise.
27307         * modules/unictype/ctype-graph-tests: Likewise.
27308         * modules/unictype/ctype-lower-tests: Likewise.
27309         * modules/unictype/ctype-print-tests: Likewise.
27310         * modules/unictype/ctype-punct-tests: Likewise.
27311         * modules/unictype/ctype-space-tests: Likewise.
27312         * modules/unictype/ctype-upper-tests: Likewise.
27313         * modules/unictype/ctype-xdigit-tests: Likewise.
27314         * modules/unictype/decimal-digit-tests: Likewise.
27315         * modules/unictype/digit-tests: Likewise.
27316         * modules/unictype/mirror-tests: Likewise.
27317         * modules/unictype/numeric-tests: Likewise.
27318         * modules/unictype/property-alphabetic-tests: Likewise.
27319         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27320         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27321         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27322         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27323         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27324         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27325         * modules/unictype/property-bidi-control-tests: Likewise.
27326         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27327         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27328         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27329         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27330         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27331         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27332         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27333         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27334         * modules/unictype/property-bidi-pdf-tests: Likewise.
27335         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27336         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27337         * modules/unictype/property-byname-tests: Likewise.
27338         * modules/unictype/property-combining-tests: Likewise.
27339         * modules/unictype/property-composite-tests: Likewise.
27340         * modules/unictype/property-currency-symbol-tests: Likewise.
27341         * modules/unictype/property-dash-tests: Likewise.
27342         * modules/unictype/property-decimal-digit-tests: Likewise.
27343         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27344         * modules/unictype/property-deprecated-tests: Likewise.
27345         * modules/unictype/property-diacritic-tests: Likewise.
27346         * modules/unictype/property-extender-tests: Likewise.
27347         * modules/unictype/property-format-control-tests: Likewise.
27348         * modules/unictype/property-grapheme-base-tests: Likewise.
27349         * modules/unictype/property-grapheme-extend-tests: Likewise.
27350         * modules/unictype/property-grapheme-link-tests: Likewise.
27351         * modules/unictype/property-hex-digit-tests: Likewise.
27352         * modules/unictype/property-hyphen-tests: Likewise.
27353         * modules/unictype/property-id-continue-tests: Likewise.
27354         * modules/unictype/property-id-start-tests: Likewise.
27355         * modules/unictype/property-ideographic-tests: Likewise.
27356         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27357         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27358         * modules/unictype/property-ignorable-control-tests: Likewise.
27359         * modules/unictype/property-iso-control-tests: Likewise.
27360         * modules/unictype/property-join-control-tests: Likewise.
27361         * modules/unictype/property-left-of-pair-tests: Likewise.
27362         * modules/unictype/property-line-separator-tests: Likewise.
27363         * modules/unictype/property-logical-order-exception-tests: Likewise.
27364         * modules/unictype/property-lowercase-tests: Likewise.
27365         * modules/unictype/property-math-tests: Likewise.
27366         * modules/unictype/property-non-break-tests: Likewise.
27367         * modules/unictype/property-not-a-character-tests: Likewise.
27368         * modules/unictype/property-numeric-tests: Likewise.
27369         * modules/unictype/property-other-alphabetic-tests: Likewise.
27370         * modules/unictype/property-other-default-ignorable-code-point-tests:
27371         Likewise.
27372         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27373         * modules/unictype/property-other-id-continue-tests: Likewise.
27374         * modules/unictype/property-other-id-start-tests: Likewise.
27375         * modules/unictype/property-other-lowercase-tests: Likewise.
27376         * modules/unictype/property-other-math-tests: Likewise.
27377         * modules/unictype/property-other-uppercase-tests: Likewise.
27378         * modules/unictype/property-paired-punctuation-tests: Likewise.
27379         * modules/unictype/property-paragraph-separator-tests: Likewise.
27380         * modules/unictype/property-pattern-syntax-tests: Likewise.
27381         * modules/unictype/property-pattern-white-space-tests: Likewise.
27382         * modules/unictype/property-private-use-tests: Likewise.
27383         * modules/unictype/property-punctuation-tests: Likewise.
27384         * modules/unictype/property-quotation-mark-tests: Likewise.
27385         * modules/unictype/property-radical-tests: Likewise.
27386         * modules/unictype/property-sentence-terminal-tests: Likewise.
27387         * modules/unictype/property-soft-dotted-tests: Likewise.
27388         * modules/unictype/property-space-tests: Likewise.
27389         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27390         * modules/unictype/property-test-tests: Likewise.
27391         * modules/unictype/property-titlecase-tests: Likewise.
27392         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27393         * modules/unictype/property-unified-ideograph-tests: Likewise.
27394         * modules/unictype/property-uppercase-tests: Likewise.
27395         * modules/unictype/property-variation-selector-tests: Likewise.
27396         * modules/unictype/property-white-space-tests: Likewise.
27397         * modules/unictype/property-xid-continue-tests: Likewise.
27398         * modules/unictype/property-xid-start-tests: Likewise.
27399         * modules/unictype/property-zero-width-tests: Likewise.
27400         * modules/unictype/scripts-tests: Likewise.
27401         * modules/unictype/syntax-c-ident-tests: Likewise.
27402         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27403         * modules/unictype/syntax-java-ident-tests: Likewise.
27404         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27405         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27406         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27407         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27408         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27409         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27410         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27411         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27412         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27413         * modules/uniname/uniname-tests: Likewise.
27414         * modules/uninorm/canonical-decomposition-tests: Likewise.
27415         * modules/uninorm/compat-decomposition-tests: Likewise.
27416         * modules/uninorm/composition-tests: Likewise.
27417         * modules/uninorm/decomposing-form-tests: Likewise.
27418         * modules/uninorm/decomposition-tests: Likewise.
27419         * modules/uninorm/filter-tests: Likewise.
27420         * modules/uninorm/nfc-tests: Likewise.
27421         * modules/uninorm/nfd-tests: Likewise.
27422         * modules/uninorm/nfkc-tests: Likewise.
27423         * modules/uninorm/nfkd-tests: Likewise.
27424         * modules/uninorm/u8-normcmp-tests: Likewise.
27425         * modules/uninorm/u8-normcoll-tests: Likewise.
27426         * modules/uninorm/u16-normcmp-tests: Likewise.
27427         * modules/uninorm/u16-normcoll-tests: Likewise.
27428         * modules/uninorm/u32-normcmp-tests: Likewise.
27429         * modules/uninorm/u32-normcoll-tests: Likewise.
27430         * modules/unistdio/u8-asnprintf-tests: Likewise.
27431         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27432         * modules/unistdio/u8-vasprintf-tests: Likewise.
27433         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27434         * modules/unistdio/u8-vsprintf-tests: Likewise.
27435         * modules/unistdio/u16-asnprintf-tests: Likewise.
27436         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27437         * modules/unistdio/u16-vasprintf-tests: Likewise.
27438         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27439         * modules/unistdio/u16-vsprintf-tests: Likewise.
27440         * modules/unistdio/u32-asnprintf-tests: Likewise.
27441         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27442         * modules/unistdio/u32-vasprintf-tests: Likewise.
27443         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27444         * modules/unistdio/u32-vsprintf-tests: Likewise.
27445         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27446         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27447         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27448         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27449         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27450         * modules/unistr/u8-check-tests: Likewise.
27451         * modules/unistr/u8-chr-tests: Likewise.
27452         * modules/unistr/u8-cmp-tests: Likewise.
27453         * modules/unistr/u8-cmp2-tests: Likewise.
27454         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27455         * modules/unistr/u8-cpy-tests: Likewise.
27456         * modules/unistr/u8-mblen-tests: Likewise.
27457         * modules/unistr/u8-mbsnlen-tests: Likewise.
27458         * modules/unistr/u8-mbtouc-tests: Likewise.
27459         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27460         * modules/unistr/u8-mbtoucr-tests: Likewise.
27461         * modules/unistr/u8-move-tests: Likewise.
27462         * modules/unistr/u8-next-tests: Likewise.
27463         * modules/unistr/u8-prev-tests: Likewise.
27464         * modules/unistr/u8-set-tests: Likewise.
27465         * modules/unistr/u8-stpcpy-tests: Likewise.
27466         * modules/unistr/u8-stpncpy-tests: Likewise.
27467         * modules/unistr/u8-strcat-tests: Likewise.
27468         * modules/unistr/u8-strcmp-tests: Likewise.
27469         * modules/unistr/u8-strcoll-tests: Likewise.
27470         * modules/unistr/u8-strcpy-tests: Likewise.
27471         * modules/unistr/u8-strdup-tests: Likewise.
27472         * modules/unistr/u8-strlen-tests: Likewise.
27473         * modules/unistr/u8-strmblen-tests: Likewise.
27474         * modules/unistr/u8-strmbtouc-tests: Likewise.
27475         * modules/unistr/u8-strncat-tests: Likewise.
27476         * modules/unistr/u8-strncmp-tests: Likewise.
27477         * modules/unistr/u8-strncpy-tests: Likewise.
27478         * modules/unistr/u8-strnlen-tests: Likewise.
27479         * modules/unistr/u8-to-u16-tests: Likewise.
27480         * modules/unistr/u8-to-u32-tests: Likewise.
27481         * modules/unistr/u8-uctomb-tests: Likewise.
27482         * modules/unistr/u16-check-tests: Likewise.
27483         * modules/unistr/u16-chr-tests: Likewise.
27484         * modules/unistr/u16-cmp-tests: Likewise.
27485         * modules/unistr/u16-cmp2-tests: Likewise.
27486         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27487         * modules/unistr/u16-cpy-tests: Likewise.
27488         * modules/unistr/u16-mblen-tests: Likewise.
27489         * modules/unistr/u16-mbsnlen-tests: Likewise.
27490         * modules/unistr/u16-mbtouc-tests: Likewise.
27491         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27492         * modules/unistr/u16-mbtoucr-tests: Likewise.
27493         * modules/unistr/u16-move-tests: Likewise.
27494         * modules/unistr/u16-next-tests: Likewise.
27495         * modules/unistr/u16-prev-tests: Likewise.
27496         * modules/unistr/u16-set-tests: Likewise.
27497         * modules/unistr/u16-stpcpy-tests: Likewise.
27498         * modules/unistr/u16-stpncpy-tests: Likewise.
27499         * modules/unistr/u16-strcat-tests: Likewise.
27500         * modules/unistr/u16-strcmp-tests: Likewise.
27501         * modules/unistr/u16-strcoll-tests: Likewise.
27502         * modules/unistr/u16-strcpy-tests: Likewise.
27503         * modules/unistr/u16-strdup-tests: Likewise.
27504         * modules/unistr/u16-strlen-tests: Likewise.
27505         * modules/unistr/u16-strmblen-tests: Likewise.
27506         * modules/unistr/u16-strmbtouc-tests: Likewise.
27507         * modules/unistr/u16-strncat-tests: Likewise.
27508         * modules/unistr/u16-strncmp-tests: Likewise.
27509         * modules/unistr/u16-strncpy-tests: Likewise.
27510         * modules/unistr/u16-strnlen-tests: Likewise.
27511         * modules/unistr/u16-to-u32-tests: Likewise.
27512         * modules/unistr/u16-to-u8-tests: Likewise.
27513         * modules/unistr/u16-uctomb-tests: Likewise.
27514         * modules/unistr/u32-check-tests: Likewise.
27515         * modules/unistr/u32-chr-tests: Likewise.
27516         * modules/unistr/u32-cmp-tests: Likewise.
27517         * modules/unistr/u32-cmp2-tests: Likewise.
27518         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27519         * modules/unistr/u32-cpy-tests: Likewise.
27520         * modules/unistr/u32-mblen-tests: Likewise.
27521         * modules/unistr/u32-mbsnlen-tests: Likewise.
27522         * modules/unistr/u32-mbtouc-tests: Likewise.
27523         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27524         * modules/unistr/u32-mbtoucr-tests: Likewise.
27525         * modules/unistr/u32-move-tests: Likewise.
27526         * modules/unistr/u32-next-tests: Likewise.
27527         * modules/unistr/u32-prev-tests: Likewise.
27528         * modules/unistr/u32-set-tests: Likewise.
27529         * modules/unistr/u32-stpcpy-tests: Likewise.
27530         * modules/unistr/u32-stpncpy-tests: Likewise.
27531         * modules/unistr/u32-strcat-tests: Likewise.
27532         * modules/unistr/u32-strcmp-tests: Likewise.
27533         * modules/unistr/u32-strcoll-tests: Likewise.
27534         * modules/unistr/u32-strcpy-tests: Likewise.
27535         * modules/unistr/u32-strdup-tests: Likewise.
27536         * modules/unistr/u32-strlen-tests: Likewise.
27537         * modules/unistr/u32-strmblen-tests: Likewise.
27538         * modules/unistr/u32-strmbtouc-tests: Likewise.
27539         * modules/unistr/u32-strncat-tests: Likewise.
27540         * modules/unistr/u32-strncmp-tests: Likewise.
27541         * modules/unistr/u32-strncpy-tests: Likewise.
27542         * modules/unistr/u32-strnlen-tests: Likewise.
27543         * modules/unistr/u32-to-u16-tests: Likewise.
27544         * modules/unistr/u32-to-u8-tests: Likewise.
27545         * modules/unistr/u32-uctomb-tests: Likewise.
27546         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27547         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27548         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27549         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27550         * modules/uniwidth/u8-strwidth-tests: Likewise.
27551         * modules/uniwidth/u8-width-tests: Likewise.
27552         * modules/uniwidth/u16-strwidth-tests: Likewise.
27553         * modules/uniwidth/u16-width-tests: Likewise.
27554         * modules/uniwidth/u32-strwidth-tests: Likewise.
27555         * modules/uniwidth/u32-width-tests: Likewise.
27556         * modules/uniwidth/width-tests: Likewise.
27557
27558 2010-05-18  Richard Jones  <rjones@redhat.com>
27559
27560         doc: users.txt: list hivex
27561         * users.txt: Add hivex.
27562
27563 2010-05-18  Richard Jones  <rjones@redhat.com>
27564
27565         doc: users.txt: list febootstrap
27566         * users.txt: Add febootstrap.
27567
27568 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27569
27570         bootstrap: fix an error when gnulib is not used as a git submodule
27571         * build-aux/bootstrap (gnulib_path): If its length is zero then
27572         assign "gnulib" to it.
27573         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27574
27575 2010-05-16  Bruno Haible  <bruno@clisp.org>
27576
27577         Avoid autoconf warnings about AM_ICONV.
27578         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27579         2.64.
27580
27581 2010-05-16  Bruno Haible  <bruno@clisp.org>
27582
27583         absolute-header: Make the macro usable in more situations.
27584         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27585         from gl_ABSOLUTE_HEADER.
27586         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27587
27588 2010-05-16  James Youngman  <jay@gnu.org>
27589
27590         doc: update users.txt
27591         * users.txt: Add CSSC.
27592
27593 2010-05-16  Jim Meyering  <meyering@redhat.com>
27594
27595         init.sh: fix an error in the previous change; add more comments
27596         * tests/init.sh: Compare exit code in loop against 9, not 2.
27597         Patch by Bruno Haible.
27598         Make the two tests more similar by adding an empty "then" clause.
27599         Add comments.
27600
27601         init.sh: avoid unnecessary shell re-exec
27602         * tests/init.sh: Improve the re-exec-required check to first test the
27603         current shell.  If it passes the test, do not search for a shell that
27604         does pass, and do not re-exec.  This test is particularly contorted to
27605         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
27606         of $(...) evokes a syntax error and causes immediate shell exit with
27607         status 2.  Bruno Haible reported that the re-exec made it impossible
27608         to single-step through any init.sh-using script.
27609
27610 2010-05-16  Bruno Haible  <bruno@clisp.org>
27611
27612         Fix collision between gnulib's and libintl's printf replacements.
27613         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
27614         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
27615         (printf): When using GNU C, map the __printf__ function to rpl_printf
27616         via __asm__. When not using GNU C, define rpl_printf instead of
27617         __printf__.
27618         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
27619         commit.
27620         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
27621         commit.
27622         * m4/asm-underscore.m4: New file.
27623         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
27624         * modules/stdio (Files): Add m4/asm-underscore.m4.
27625         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
27626         Reported by Ben Pfaff.
27627
27628 2010-05-16  Bruno Haible  <bruno@clisp.org>
27629
27630         verify: Avoid skipping the test on openSUSE 11.0.
27631         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
27632
27633 2010-05-13  Bruno Haible  <bruno@clisp.org>
27634
27635         Avoid useless warnings from G++.
27636         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
27637         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
27638         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27639
27640 2010-05-11  Jim Meyering  <meyering@redhat.com>
27641
27642         maint.mk: tweak preceding change
27643         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
27644         regexps tighter by anchoring at EOL, and make the new group "shy"
27645         for slightly decreased overhead.
27646
27647 2010-05-11  Eric Blake  <eblake@redhat.com>
27648
27649         maint.mk: gnulib doesn't guarantee NSIG
27650         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
27651
27652 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27653
27654         test-pwrite.c: Remove unused variable declaration.
27655         * tests/test-pwrite.c (main): Remove read_buf declaration.
27656
27657         Remove useless test-pwrite.sh file.
27658         * tests/test-pwrite.sh: Delete file.
27659         * modules/pwrite-tests: Remove references.
27660         Reported by Bruno Haible.
27661
27662 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27663
27664         init.sh: fix a typo
27665         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
27666
27667 2010-05-10  Jim Meyering  <meyering@redhat.com>
27668
27669         maint.mk: avoid using a temporary file in the always-defined-macros check
27670         * top/maint.mk (.re-defmac): Remove rule.
27671         (gl_trap_): Remove definition.
27672         (sc_prohibit_always-defined_macros): Rewrite not to create and
27673         depend on a temporary file.  Instead, depend on GNU grep's ability
27674         to read a list of regular expressions from stdin when given "-f -".
27675
27676 2010-05-09  Bruno Haible  <bruno@clisp.org>
27677
27678         Update to GNU gettext 0.18, part 1.
27679         * m4/gettext.m4: Update to GNU gettext 0.18.
27680         * m4/intl.m4: Likewise.
27681         * m4/po.m4: Likewise.
27682         * modules/gettext (Files): Add m4/fcntl-o.m4.
27683         (configure.ac): Require gettext infrastructure from version 0.18.
27684
27685 2010-05-09  Jim Meyering  <meyering@redhat.com>
27686
27687         init.sh: enable MALLOC_PERTURB_
27688         * tests/init.sh: Enable glibc's malloc-perturbing option.
27689
27690         maint.mk: improve sc_cross_check_PATH_usage_in_tests
27691         With my recent change in init.sh from the two-line form:
27692             -#   : ${srcdir=.}
27693             -#   . "$srcdir/init.sh"; path_prepend_ .
27694             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
27695         I noticed that using the one-line form would cause this test
27696         to fail with a false-positive, or to stop working altogether,
27697         depending on whether help-version changed or all the tests did.
27698         * top/maint.mk (_hv_regex): Remove this definition.
27699         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
27700         (_hv_regex_strong): Use a stronger regex to check for conformance.
27701         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
27702         Give a separate diagnostic for lack of conforming use.
27703
27704         maint.mk: prohibit definition of symbols defined by gnulib
27705         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
27706         definition of symbols defined by gnulib.
27707
27708 2010-05-09  Bruno Haible  <bruno@clisp.org>
27709
27710         acl: Avoid test failure on Cygwin-hosted mingw.
27711         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
27712
27713 2010-05-09  Bruno Haible  <bruno@clisp.org>
27714
27715         error: Use system's fcntl function.
27716         * lib/error.c (fcntl): Undefine.
27717
27718 2010-05-09  Jim Meyering  <meyering@redhat.com>
27719
27720         verify: adjust formatting to be more consistent
27721         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
27722         argument-list '('s, and after one comma.
27723
27724 2010-05-09  Bruno Haible  <bruno@clisp.org>
27725
27726         error: More reliable output on mingw.
27727         * lib/error.c: Include <windows.h>.
27728         (is_open): New function.
27729         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
27730         defined.
27731
27732 2010-05-09  Bruno Haible  <bruno@clisp.org>
27733
27734         vasnprintf: Fix syntax errors in libintl build on mingw.
27735         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
27736         pad_ourselves and prec_ourselves after use.
27737
27738 2010-05-08  Bruno Haible  <bruno@clisp.org>
27739
27740         * lib/config.charset: Update comments for Cygwin 1.7.
27741         * lib/localcharset.c: Likewise.
27742
27743 2010-05-07  Jim Meyering  <meyering@redhat.com>
27744
27745         init.sh: improve comments
27746         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
27747         . "${srcdir=.}/init.sh"; path_prepend_ .
27748         Add a note about path_prepend_ and the alternative of using
27749         TESTS_ENVIRONMENT.
27750
27751 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27752
27753         exclude: Unescape hashed patterns in wildcard mode.
27754         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
27755         to the hash list.
27756         * tests/test-exclude8.sh: New test case.
27757         * modules/exclude-tests: Add new test.
27758
27759 2010-05-05  Eric Blake  <eblake@redhat.com>
27760
27761         verify: automate tests
27762         * modules/verify-tests: New module.
27763         * tests/test-verify.sh: New file.
27764         * tests/test-verify.c: Guard each negative test with a unique id.
27765         Also avoid warning about unused left hand of comma expressions.
27766
27767 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27768
27769         Further improvements to verify.h, suggested by Eric Blake.
27770         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
27771         the GL_* versions, to avoid collision with OpenGL.
27772         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
27773         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
27774         than testing merely whether it's defined.
27775
27776         Modify verify.h to pacify gcc -Wredundant_decls.
27777         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
27778         These use the prefix "GL_" since they're likely to be useful elsewhere.
27779         We may need to break them out into a different .h file.
27780         (__COUNTER__): Define to 0 if the compiler doesn't support it.
27781         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
27782         of verify_function__.
27783
27784 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27785
27786         Tests for module pwrite.
27787         * modules/pwrite-tests: New file.
27788         * tests/test-pwrite.sh: New file.
27789         * tests/test-pwrite.c: New file.
27790
27791         New module pwrite.
27792         * lib/unistd.in.h (pwrite): New declaration.
27793         * lib/pwrite.c: New file, from glibc with modifications.
27794         * m4/pwrite.m4: New file.
27795         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
27796         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
27797         REPLACE_PWRITE.
27798         * modules/pwrite: New file.
27799         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
27800         REPLACE_PWRITE.
27801         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
27802         * doc/posix-functions/pwrite.texi: Mention the new module.
27803
27804 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27805
27806         pread: Update documentation.
27807         * doc/posix-functions/pread.texi: Mention the 'pread' module.
27808
27809 2010-05-04  Eric Blake  <eblake@redhat.com>
27810
27811         docs: update cygwin progress
27812         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
27813         this bug.
27814         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
27815         Added in cygwin 1.7.2.
27816         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
27817         Likewise.
27818         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
27819         Likewise.
27820         * doc/glibc-functions/dup3.texi (dup3): Likewise.
27821         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27822         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27823         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
27824         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
27825         Mention nproc module.
27826         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
27827         bug in cygwin 1.7.5 addition.
27828         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
27829         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27830         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
27831         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
27832         1.7.5.
27833         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
27834         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
27835         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
27836         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
27837         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
27838         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
27839         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
27840         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
27841         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
27842         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
27843         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
27844         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
27845         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
27846         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
27847         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
27848         Likewise.
27849         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
27850         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
27851         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
27852         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
27853         Likewise.
27854         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
27855         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
27856         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
27857         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
27858         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
27859         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
27860         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
27861         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
27862         Likewise.
27863         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
27864         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
27865         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
27866         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
27867         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
27868         Likewise.
27869         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
27870         Likewise.
27871         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
27872         Likewise.
27873         * doc/glibc-functions/xdrrec_endofrecord.texi
27874         (xdrrec_endofrecord): Likewise.
27875         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
27876         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
27877         Likewise.
27878         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
27879         Likewise.
27880
27881 2010-05-04  Jim Meyering  <meyering@redhat.com>
27882
27883         gendocs.sh: make its "-s FILE" option more useful
27884         * build-aux/gendocs.sh: When honoring the -s FILE option, update
27885         $PACKAGE to reflect the probably-different basename of "FILE".
27886
27887 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27888
27889         bootstrap: don't ignore download_po_files failure
27890         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
27891         failure.
27892
27893 2010-05-03  Jim Meyering  <meyering@redhat.com>
27894
27895         maint.mk: allow to pass options to gendocs.sh
27896         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
27897         (gendocs_options_): New overridable variable.
27898
27899         gnu-web-doc-update: don't ignore configure or build failure
27900         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
27901
27902         announce-gen: backslash-escape '@'s in --help output
27903         * build-aux/announce-gen: Fix syntax errors.
27904
27905         maint.mk, announce-gen: allow project-specific announcement mail headers
27906         * top/maint.mk (translation_project_): Define default.
27907         (announcement_Cc_, announcement_mail_headers_): Likewise.
27908         (announcement): Invoke announce-gen with new --mail-headers option.
27909         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
27910
27911         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
27912         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
27913         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
27914         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
27915         line in the "err2" output file when running "make check" in verbose
27916         mode (i.e., with set -x enabled).
27917
27918 2010-05-03  Bruno Haible  <bruno@clisp.org>
27919
27920         wctob: Fix for weird platforms.
27921         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
27922         argument value.
27923
27924 2010-05-03  Jim Meyering  <meyering@redhat.com>
27925
27926         maint.mk: prohibit unwarranted use of <strings.h>
27927         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
27928         strings.h in a file that does not also use strcasecmp, strncasecmp,
27929         ffs or ffsll.
27930
27931         maint.mk: remove obsolete comments
27932         * top/maint.mk: Remove stale, commented-out rules.
27933
27934 2010-05-02  Bruno Haible  <bruno@clisp.org>
27935
27936         wcwidth: Declare also when it's aliased.
27937         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
27938         macro.
27939
27940 2010-05-02  Bruno Haible  <bruno@clisp.org>
27941
27942         Fix regression from 2010-04-25.
27943         * gnulib-tool (func_modules_transitive_closure): Check the status of
27944         all modules, not only of the tests that are of the form foo-tests where
27945         foo is a module.
27946
27947 2010-05-02  Bruno Haible  <bruno@clisp.org>
27948
27949         wctob: Work around nasty Cygwin 1.7.2 bug.
27950         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27951         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27952
27953 2010-05-01  Bruno Haible  <bruno@clisp.org>
27954
27955         fpurge: Sharper test.
27956         * tests/test-fpurge.c (main): Add one more ftell check.
27957         * modules/fpurge-tests (Depends-on): Add ftell.
27958         Suggested by Eric Blake.
27959
27960 2010-05-01  Bruno Haible  <bruno@clisp.org>
27961
27962         ftello: Another test.
27963         * tests/test-ftello3.c: New file.
27964         * modules/ftello-tests (Files): Add it.
27965         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27966         MOSTLYCLEANFILES.
27967
27968         ftell: Another test.
27969         * tests/test-ftell3.c: New file.
27970         * modules/ftell-tests (Files): Add it.
27971         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27972         MOSTLYCLEANFILES.
27973
27974 2010-05-01  Bruno Haible  <bruno@clisp.org>
27975
27976         ftell, ftello: Work around Solaris bug.
27977         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27978         * lib/ftello.c: Include stdio-impl.h.
27979         (ftello): On Solaris, when _IOWRT is set, compute the result without
27980         looking at _IOREAD.
27981         * modules/ftello (Files): Add lib/stdio-impl.h.
27982         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27983         * doc/posix-functions/ftello.texi: Likewise.
27984         Reported by Eric Blake.
27985
27986 2010-05-01  Bruno Haible  <bruno@clisp.org>
27987
27988         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27989         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27990         the _IOWRT flag is also set.
27991
27992 2010-05-01  Bruno Haible  <bruno@clisp.org>
27993
27994         Fix doc about a HP-UX stdio bug.
27995         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27996         * doc/posix-functions/ftello.texi: Likewise.
27997
27998 2010-05-01  Bruno Haible  <bruno@clisp.org>
27999
28000         lseek test: Fix failure on Solaris.
28001         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28002         output.
28003
28004 2010-04-30  Jim Meyering  <meyering@redhat.com>
28005
28006         bootstrap: don't ignore failure to generate po*/Makevars
28007         * build-aux/bootstrap (with_gettext): Don't ignore failure
28008         to create po/Makevars or runtime-po/Makevars.
28009
28010 2010-04-29  Eric Blake  <eblake@redhat.com>
28011
28012         headers: relax license to LGPLv2+
28013         * modules/fcntl-h (License): Relax license.
28014         * modules/getopt-posix (License): Likewise.
28015         * modules/locale (License): Likewise.
28016         * modules/math (License): Likewise.
28017         * modules/pty (License): Likewise.
28018         * modules/sched (License): Likewise.
28019         * modules/search (License): Likewise.
28020         * modules/spawn (License): Likewise.
28021         * modules/stdarg (License): Likewise.
28022         * modules/sysexits (License): Likewise.
28023
28024 2010-04-29  Jim Meyering  <meyering@redhat.com>
28025
28026         inttypes: relax license to LGPLv2+
28027         * modules/inttypes (License): Relax license.
28028
28029 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28030
28031         * top/maint.mk (indent): Run twice to produce idempotent results.
28032
28033 2010-04-28  Bruno Haible  <bruno@clisp.org>
28034
28035         getdate: Generate getdate.c in the source directory.
28036         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28037         MOSTLYCLEANFILES.
28038         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28039
28040 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28041
28042         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28043         is not declared as a const *; avoid warnings in that case.
28044
28045 2010-04-28  Eric Blake  <eblake@redhat.com>
28046
28047         canonicalize-lgpl: avoid compiler warning
28048         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28049         declaration' / 'extraneous semicolon' warning with some compilers.
28050         Reported by Andreas Gruenbacher.
28051
28052 2010-04-28  Jim Meyering  <meyering@redhat.com>
28053
28054         init.sh: ensure a more reliable exit status when exiting via trap
28055         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28056         Inspired by patches from Dmitry V. Levin.
28057         Also trap on signal 3 (SIGQUIT).
28058
28059 2010-04-27  Bruno Haible  <bruno@clisp.org>
28060
28061         Update doc about utimes().
28062         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28063         'utimens' module.
28064         Reported by Andreas Gruenbacher <agruen@suse.de>.
28065
28066 2010-04-27  Eric Blake  <eblake@redhat.com>
28067
28068         full-read, full-write: relax license
28069         * modules/full-read (License): Drop to LGPLv2+.
28070         * modules/full-write (License): Likewise.
28071         * modules/safe-read (License): Likewise.
28072         * modules/safe-write (License): Likewise.
28073
28074         pthread: mention library for linking
28075         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28076
28077 2010-04-27  Jim Meyering  <meyering@redhat.com>
28078
28079         maint.mk: fix a bug introduced in last change
28080         * top/maint.mk (gl_assured_headers_): Now that all names are on
28081         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28082         is not anchored to end of word, it should be adequate.
28083
28084         maint.mk: avoid side-effect in latest syntax-check
28085         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28086         to run commands via $(shell...), and hence to incur cost only when
28087         the new rule is actually run.
28088
28089         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28090         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28091         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28092         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28093         (gl_assured_headers_, az_, AZ_): Define.
28094         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28095
28096 2010-04-26  Jim Meyering  <jim@meyering.net>
28097             Bruno Haible  <bruno@clisp.org>
28098
28099         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28100         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28101         Prompted by an exchange with Gilles Espinasse.
28102
28103 2010-04-26  Jim Meyering  <meyering@redhat.com>
28104
28105         git-version-gen: aesthetic tweak
28106         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28107         so that the command remains on a single line.
28108
28109 2010-04-26  Eric Blake  <eblake@redhat.com>
28110
28111         git-version-gen: allow use on EBCDIC hosts
28112         * build-aux/git-version-gen (dirty): Use literal rather than tying
28113         ourselves to ascii.
28114         Reported by Steve Goetze.
28115
28116 2010-04-25  Bruno Haible  <bruno@clisp.org>
28117
28118         netdb: Add support for GNULIB_POSIXCHECK.
28119         * lib/netdb.in.h: Include warn-on-use.h.
28120         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28121         functions are used when GNULIB_POSIXCHECK is defined and the
28122         getaddrinfo module is not in use.
28123         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28124         freeaddrinfo, gai_strerror, getnameinfo are declared.
28125         * modules/netdb (Depends-on): Add warn-on-use.
28126         (Makefile.am): Include warn-on-use.h in netdb.h.
28127
28128 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28129
28130         build: avoid "make check" failure without .git/ directory
28131         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28132         there is no .git/ directory.
28133
28134 2010-04-25  Bruno Haible  <bruno@clisp.org>
28135
28136         ptsname: Fix misuse of ttyname_r.
28137         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28138         of errno.
28139
28140 2010-04-25  Bruno Haible  <bruno@clisp.org>
28141
28142         ttyname_r: Make it work on Solaris 10.
28143         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28144         if the system function has the POSIX declaration. Test whether the
28145         function fails if the buffer is less than 128 bytes large.
28146         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28147         system's ttyname_r function. Provide a reasonably large buffer.
28148         * modules/ttyname_r (Depends-on): Add extensions.
28149         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28150
28151 2010-04-25  Bruno Haible  <bruno@clisp.org>
28152
28153         Use the 'extensions' module for some more functions on Solaris.
28154         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28155         module.
28156         * doc/posix-functions/ctime_r.texi: Likewise.
28157         * doc/posix-functions/getgrgid_r.texi: Likewise.
28158         * doc/posix-functions/getgrnam_r.texi: Likewise.
28159         * doc/posix-functions/getpwnam_r.texi: Likewise.
28160         * doc/posix-functions/getpwuid_r.texi: Likewise.
28161         * doc/posix-functions/readdir_r.texi: Likewise.
28162         * doc/posix-functions/sigwait.texi: Likewise.
28163         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28164         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28165
28166 2010-04-25  Bruno Haible  <bruno@clisp.org>
28167
28168         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28169         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28170         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28171         * lib/ttyname_r.c: Include <limits.h>.
28172         (ttyname_r): Define using the system's ttyname_r function, if it exists
28173         and not on Solaris.
28174         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28175         set.
28176         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28177         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28178         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28179         Reported by Simon Josefsson.
28180
28181 2010-04-25  Bruno Haible  <bruno@clisp.org>
28182
28183         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28184         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28185         * doc/posix-functions/ctime_r.texi: Likewise.
28186         * doc/posix-functions/getgrgid_r.texi: Likewise.
28187         * doc/posix-functions/getgrnam_r.texi: Likewise.
28188         * doc/posix-functions/getlogin_r.texi: Likewise.
28189         * doc/posix-functions/getpwnam_r.texi: Likewise.
28190         * doc/posix-functions/getpwuid_r.texi: Likewise.
28191         * doc/posix-functions/readdir_r.texi: Likewise.
28192         * doc/posix-functions/sigwait.texi: Likewise.
28193         * doc/posix-functions/ttyname_r.texi: Likewise.
28194         Reported by Simon Josefsson.
28195
28196 2010-04-25  Bruno Haible  <bruno@clisp.org>
28197
28198         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28199         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28200         also to --create-testdir.
28201         (func_acceptable): Don't consider the status of *-tests modules here.
28202         (func_modules_transitive_closure): Consider it here, before including a
28203         test module.
28204         (func_import, func_create_testdir): Set inc_all_direct_tests,
28205         inc_all_indirect_tests.
28206         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28207         --create-testdir and --create-megatestdir.
28208
28209 2010-04-25  Bruno Haible  <bruno@clisp.org>
28210
28211         gnulib-tool: Add --without-*-tests options.
28212         * gnulib-tool (func_usage): Document the --without-*-tests options.
28213         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28214         excl_unportable_tests): New variables.
28215         Fail if they are specified with --import or --update.
28216         (func_acceptable): Respect the excl_*_tests variables.
28217         (func_import): Set the excl_*_tests variables to empty.
28218
28219 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28220             Bruno Haible  <bruno@clisp.org>
28221
28222         Work around a MacOS X 10.4 bug with openpty.
28223         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28224         * tests/test-openpty.c (main): Close the master side explicitly.
28225
28226 2010-04-25  Bruno Haible  <bruno@clisp.org>
28227
28228         strnlen: Fix a C++ test error on MacOS X and Solaris.
28229         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28230         the function is not declared.
28231         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28232         Simon Josefsson.
28233
28234 2010-04-24  Bruno Haible  <bruno@clisp.org>
28235
28236         Avoid a gcc warning.
28237         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28238         of correct type for %08lx directive.
28239         Reported by Eric Blake.
28240
28241 2010-04-24  Bruno Haible  <bruno@clisp.org>
28242
28243         vasnprintf: Correct errno value in case of out-of-memory.
28244         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28245         or sprintf. Use the errno value from SNPRINTF or sprintf.
28246         Reported by Ian Beckwith <ianb@erislabs.net>.
28247
28248 2010-04-24  Bruno Haible  <bruno@clisp.org>
28249
28250         ansi-c++-opt: Find correct compiler when cross-compiling.
28251         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28252         AC_CHECK_PROGS.
28253         Reported by Simon Josefsson.
28254
28255 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28256
28257         vc-list-files: Add support for subversion
28258         * build-aux/vc-list-files: Use "svn list" to generate the list of
28259         files controlled by subversion.
28260
28261 2010-04-23  Jim Meyering  <meyering@redhat.com>
28262
28263         vc-list-files tests: convert to use init.sh
28264         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28265         path_prepend_.
28266         Use Exit, not exit.
28267         Use skip_ rather than open coding it.
28268         Remove trap set-up and compare definitions.
28269         * tests/test-vc-list-files-git.sh: Likewise.
28270         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28271
28272 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28273
28274         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28275         backup files.
28276
28277 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28278
28279         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28280
28281 2010-04-20  Eric Blake  <eblake@redhat.com>
28282
28283         tests: be robust to ignored SIGPIPE
28284         * tests/test-select-in.sh: Consume all output.
28285         * tests/test-lseek.sh: Check correct exit status, while avoiding
28286         EPIPE.
28287
28288 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28289             Bruno Haible  <bruno@clisp.org>
28290
28291         visibility: Don't use -fvisibility if it leads to a warning.
28292         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28293         yes, don't pretend that visibility works if it leads to a warning.
28294         Reported by Mike Gran <spk121@yahoo.com>.
28295
28296 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28297
28298         * build-aux/bootstrap: Use "git -h" for testing for supported options
28299         instead of "git --help".  The short-form option only shows a summary,
28300         and doesn't layout the full man page.  Grep for the full option name
28301         in the summary, too.
28302
28303 2010-04-19  Bruno Haible  <bruno@clisp.org>
28304
28305         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28306         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28307         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28308         mention of RELOCATABLE_STRIP.
28309         Reported by Sylvain Beucler <beuc@beuc.net>.
28310
28311 2010-04-19  Bruno Haible  <bruno@clisp.org>
28312
28313         * lib/diffseq.h: Fix typo in comment.
28314         Reported by Eric Blake.
28315
28316 2010-04-19  Bruno Haible  <bruno@clisp.org>
28317
28318         ioctl: Move autoconf macro to a .m4 file.
28319         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28320         * modules/ioctl (Files): Add it.
28321         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28322         Reported by Ian Beckwith <ianb@erislabs.net>.
28323
28324 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28325             Bruno Haible  <bruno@clisp.org>
28326
28327         diffseq: Accommodate use-case with abstract arrays.
28328         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28329         is not defined.
28330         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28331         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28332
28333 2010-04-18  Bruno Haible  <bruno@clisp.org>
28334
28335         * doc/posix-headers/stdbool.texi: More precise wording.
28336
28337 2010-04-17  Jim Meyering  <meyering@redhat.com>
28338
28339         maint.mk: use gnu-style indentation in an embedded perl script
28340         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28341         Rename variable: s/two/last_two_bytes/
28342
28343 2010-04-16  Eric Blake  <eblake@redhat.com>
28344
28345         test-stdbool: skip test that fails with Solaris CC
28346         * tests/test-stdbool.c (f): Skip test that causes compilation
28347         error under buggy C++ compiler.
28348         * lib/stdbool.in.h: Document the limitation.
28349         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28350
28351         setenv: allow compilation with C++
28352         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28353         register keyword.
28354
28355         stdint: allow test to pass with C++
28356         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28357
28358         getopt: allow compilation with C++
28359         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28360         struct.
28361         * lib/getopt.c (_getopt_internal_r): Use correct type.
28362         Reported by Dagobert Michelson, via Joel E. Denny.
28363
28364 2010-04-16  Bruno Haible  <bruno@clisp.org>
28365
28366         Override netdb.h always.
28367         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28368         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28369         Reported by Ludovic Courtès <ludo@gnu.org>.
28370
28371 2010-04-15  Bruno Haible  <bruno@clisp.org>
28372
28373         openpty: Fix mistake from 2010-03-21.
28374         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28375         Reported by Simon Josefsson.
28376
28377 2010-04-15  Eric Blake  <eblake@redhat.com>
28378
28379         test-forkpty: fix expected signature
28380         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28381         Reported by Simon Josefsson.
28382
28383 2010-04-15  Jim Meyering  <meyering@redhat.com>
28384
28385         maint.mk: texinfo_suffix_re_: correct the default regexp
28386         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28387
28388         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28389         make it configurable via texinfo_suffix_re_.
28390
28391 2010-04-14  Eric Blake  <eblake@redhat.com>
28392
28393         strtok_r: relax license to LGPLv2+
28394         * modules/strtok_r (License): Relax license.
28395         Reported by Matthias Bolte.
28396
28397 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28398
28399         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28400         version 1.4.4 by default instead of requiring the libgcrypt
28401         version used during build.  This makes it possible to use the
28402         application with older but still binary compatible libgcrypt
28403         versions.
28404
28405 2010-04-13  Eric Blake  <eblake@redhat.com>
28406
28407         getopt-gnu: match recent glibc fixes and posix ruling
28408         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28409         '+' handling, when requesting extensions.
28410         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28411         'W;' handling.
28412         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28413         * doc/posix-functions/getopt.texi (getopt): Document this.
28414         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28415         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28416         Likewise.
28417
28418         getopt: merge bug fixes from glibc
28419         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28420         diagnostics.  Honor '+:' correctly.  Reject ';'.
28421
28422         getopt-posix: detect MacOS bug
28423         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28424         optind when missing a required argument.
28425         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28426         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28427         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28428         Likewise.
28429
28430         getopt-posix: avoid spurious failure on Solaris
28431         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28432         an indicator that setting optind=1 is sufficient for reset.
28433
28434         getopt-posix: avoid spurious failure on FreeBSD
28435         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28436         in POSIX mode, since the m4 test uses it.
28437
28438         gnulib-tool: silence warning on BSD sh
28439         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28440
28441 2010-04-13  Jim Meyering  <meyering@redhat.com>
28442
28443         doc: users.txt: GNU patch now uses gnulib
28444         * users.txt: Add patch.
28445
28446 2010-04-12  Jim Meyering  <meyering@redhat.com>
28447
28448         maint.mk: generate more concise timing data for syntax-check rules
28449         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28450         " done" from each line that reports a syntax-check test duration.
28451
28452 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28453
28454         git-version-gen: use "git update-index..." rather than "git status"
28455         * build-aux/git-version-gen: Use git update-index --refresh, not
28456         "git status".  With some versions of git, "git status" would fail
28457         to update the index and result in an unwarranted "-dirty" suffix.
28458
28459 2010-04-11  Jim Meyering  <meyering@redhat.com>
28460
28461         openat: correct formatting (no semantic change)
28462         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28463         Suggested by Bruno Haible.
28464
28465 2010-04-11  Bruno Haible  <bruno@clisp.org>
28466
28467         Stricter declaration checking in testdirs.
28468         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28469         If for_tests is true, augment AM_CPPFLAGS to define
28470         GNULIB_STRICT_CHECKING.
28471         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28472         GNULIB_STRICT_CHECKING is defined, verify that the function is
28473         declared.
28474
28475 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28476             Bruno Haible  <bruno@clisp.org>
28477
28478         libunistring: Improve configure output.
28479         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28480         Don't say "consider installing GNU libunistring" when checking again
28481         with libiconv.
28482
28483 2010-04-11  Bruno Haible  <bruno@clisp.org>
28484
28485         libunistring: Correct value of $LTLIBUNISTRING.
28486         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28487         correct the value of $LTLIBUNISTRING.
28488
28489 2010-04-11  Bruno Haible  <bruno@clisp.org>
28490
28491         havelib: Add static libraries to LIBS in the right order.
28492         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28493         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28494
28495 2010-04-11  Bruno Haible  <bruno@clisp.org>
28496
28497         libunistring: Detect libunistring also when it depends on libiconv.
28498         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28499         the second AC_LIB_HAVE_LINKFLAGS invocation.
28500
28501 2010-04-11  James Youngman  <jay@gnu.org>
28502
28503         close-stream: declare local scalars to be "const"
28504         * lib/close-stream.c (close_stream): Make boolean variables const
28505         to document the fact that we set but do not change them.
28506
28507 2010-04-11  Bruno Haible  <bruno@clisp.org>
28508
28509         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28510
28511 2010-04-11  Jim Meyering  <meyering@redhat.com>
28512
28513         maint.mk: don't include dist-check.mk
28514         * top/maint.mk: Remove bogus include directive.
28515
28516         maint.mk: improve empty-line-at-EOF check
28517         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28518         solution, rather than tail+Perl-based one.  The latter would read
28519         a few kilobytes from the end of each file, and did not handle empty
28520         files properly.
28521
28522         maint.mk: print the elapsed time for each syntax-check rule
28523         * top/maint.mk (sc_m_rules_): Save start time in a file.
28524         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28525         (local-check): Interpose the .z rules
28526
28527 2010-04-11  Jim Meyering  <meyering@redhat.com>
28528
28529         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28530         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28531         empty file with one that ends in an empty line.
28532
28533 2010-04-10  Bruno Haible  <bruno@clisp.org>
28534
28535         mkdir: Make it work on mingw64.
28536         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28537         * lib/mkdir.c: Update comment.
28538         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
28539
28540 2010-04-10  Bruno Haible  <bruno@clisp.org>
28541
28542         Don't override improved macro from newer autoconf.
28543         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28544         autoconf >= 2.62.
28545         Reported by Joel E. Denny <jdenny@clemson.edu>.
28546
28547 2010-04-10  Jim Meyering  <meyering@redhat.com>
28548
28549         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28550         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28551
28552         maint.mk: correct a diagnostic
28553         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28554         in diagnostic; now use $prohibit.
28555
28556 2010-04-10  Bruno Haible  <address@hidden>
28557
28558         fchownat: Fix a C++ test error on Solaris 8.
28559         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28560         the function does not exist.
28561
28562 2010-04-10  Bruno Haible  <bruno@clisp.org>
28563
28564         vasnprintf: Add more tests.
28565         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28566         (test_function): Test converting an invalid wide string.
28567
28568         vasnprintf: Correct handling of unconvertible wide string arguments.
28569         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28570         VASNPRINTF.
28571         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28572         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28573         smaller than the expected maximum need for the directive. Set errno to
28574         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28575         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28577         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28578         * modules/vasnprintf (Files): Add m4/printf.m4.
28579         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28580
28581 2010-04-10  Bruno Haible  <bruno@clisp.org>
28582
28583         vasnprintf: Fix crash in %ls directive.
28584         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28585         string is passed as argument to %ls, with no precision and no width.
28586         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28587
28588 2010-04-10  Bruno Haible  <bruno@clisp.org>
28589
28590         vasnprintf: Fix multiple test failures on mingw.
28591         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28592         _snprintf, or snwprintf, not _snwprintf.
28593
28594 2010-04-10  Bruno Haible  <bruno@clisp.org>
28595
28596         write: Fix a C++ test error on mingw.
28597         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
28598
28599 2010-04-10  Bruno Haible  <bruno@clisp.org>
28600
28601         vasnprintf test: Reduce code duplication.
28602         * tests/test-vasnprintf.c (test_function): New function, extracted from
28603         test_vasnprintf.
28604         (test_vasnprintf, test_asnprintf): Invoke it.
28605
28606 2010-04-10  Bruno Haible  <bruno@clisp.org>
28607
28608         strnlen: Fix warning in C++ mode on MacOS X.
28609         * lib/string.in.h (strnlen): Use the modern idiom.
28610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
28611         defining strnlen as a macro already in <config.h>.
28612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28613         REPLACE_STRNLEN.
28614         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
28615         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28616
28617 2010-04-08  James Youngman  <jay@gnu.org>
28618
28619         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
28620         the example.
28621
28622 2010-04-09  Jim Meyering  <meyering@redhat.com>
28623
28624         maint.mk: print better diagnostic when there is no $(_hv_file)
28625         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
28626         announce that when $(_hv_file) (aka help-version) does not exist.
28627
28628         init.sh: run tr in the "C" locale to avoid multibyte interpretation
28629         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
28630         not try to interpret its random input bytes.  Jarno Rajahalme reported
28631         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
28632         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
28633         (mktempd_): Likewise, just in case.
28634
28635         ftruncate: add two years to projected module removal date: 2012
28636         * m4/ftruncate.m4: Adjust comments.
28637
28638         ftruncate: mark module as obsolete; even MinGW provides it, now
28639         * modules/ftruncate (Status): Obsolete.
28640         (Notice): Say that.
28641         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
28642         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
28643
28644 2010-04-08  Bruno Haible  <bruno@clisp.org>
28645
28646         Fix side effects from tests-related modules.
28647         * modules/dprintf-posix (Comment): New section.
28648         * modules/fprintf-posix (Comment): Likewise.
28649         * modules/obstack-printf-posix (Comment): Likewise.
28650         * modules/printf-posix (Comment): Likewise.
28651         * modules/snprintf-posix (Comment): Likewise.
28652         * modules/sprintf-posix (Comment): Likewise.
28653         * modules/vasnprintf-posix (Comment): Likewise.
28654         * modules/vasprintf-posix (Comment): Likewise.
28655         * modules/vdprintf-posix (Comment): Likewise.
28656         * modules/vfprintf-posix (Comment): Likewise.
28657         * modules/vprintf-posix (Comment): Likewise.
28658         * modules/vsnprintf-posix (Comment): Likewise.
28659         * modules/vsprintf-posix (Comment): Likewise.
28660         * modules/xprintf-posix (Comment): Likewise.
28661         * modules/xvasprintf-posix (Comment): Likewise.
28662         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28663         * modules/floorf-tests (Depends-on): Likewise.
28664         * modules/round-tests (Depends-on): Likewise.
28665         * modules/roundf-tests (Depends-on): Likewise.
28666         * modules/trunc-tests (Depends-on): Likewise.
28667         * modules/truncf-tests (Depends-on): Likewise.
28668         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
28669         'fprintf-posix' module is not present.
28670         * tests/test-floorf2.c (check): Likewise.
28671         * tests/test-trunc2.c (check): Likewise.
28672         * tests/test-truncf2.c (check): Likewise.
28673         * tests/test-round2.c (equal): Likewise.
28674         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28675
28676 2010-04-07  Karl Berry  <karl@gnu.org>
28677
28678         * config/srclist.txt,
28679         * config/srclistvars.sh,
28680         * config/srclist-update: doc fixes.
28681
28682 2010-04-07  Jim Meyering  <meyering@redhat.com>
28683
28684         maint.mk: add a PATH crosschecking syntax-check rule
28685         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
28686         Useful if you use a test like the one in help-version (coreutils,
28687         diffutils, grep, gzip) that ensures $(VERSION) matches what is
28688         printed by prog --version.
28689
28690 2010-04-06  Bruno Haible  <bruno@clisp.org>
28691
28692         Fix link error on mingw.
28693         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
28694         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
28695
28696 2010-04-06  Bruno Haible  <bruno@clisp.org>
28697
28698         Assume rmdir exists.
28699         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
28700
28701 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
28702
28703         doc: update users.txt
28704         * users.txt: Add gcal.
28705
28706 2010-04-06  Jim Meyering  <meyering@redhat.com>
28707
28708         init.sh: simply unset TMPDIR rather than risking env -i
28709         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
28710         although it probably works fine on all Unix-based systems, some
28711         systems (Cygwin?) cannot tolerate a totally cleared environment.
28712         Suggestion from Eric Blake.
28713
28714 2010-04-06  Jim Meyering  <meyering@redhat.com>
28715
28716         init.sh: portability fix: use env's POSIX-specified -i option not -u
28717         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
28718         than unportable env -u.  Solaris 5.11's env lacks support for -u.
28719
28720 2010-04-05  Bruno Haible  <bruno@clisp.org>
28721
28722         btowc: Work around Cygwin 1.7.2 bug.
28723         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
28724         does not map NUL to 0.
28725         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
28726
28727 2010-04-05  Bruno Haible  <bruno@clisp.org>
28728
28729         Make the multithread modules work on Cygwin 1.7.2.
28730         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
28731         imported symbols can be declared weak, so that it returns "no" on
28732         Cygwin 1.7.2.
28733
28734 2010-04-05  Bruno Haible  <bruno@clisp.org>
28735
28736         Use the module 'strncat'.
28737         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28738
28739         Tests for module 'strncat'.
28740         * modules/strncat-tests: New file.
28741         * tests/test-strncat.c: New file.
28742
28743         New module 'strncat'.
28744         * lib/string.in.h (strncat): New declaration.
28745         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
28746         * m4/strncat.m4: New file, based on m4/memchr.m4.
28747         * modules/strncat: New file.
28748         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
28749         is declared.
28750         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
28751         REPLACE_STRNCAT.
28752         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
28753         REPLACE_STRNCAT.
28754         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
28755         module.
28756         * tests/test-string-c++.cc: Check signature of strncat.
28757
28758 2010-04-05  Jim Meyering  <meyering@redhat.com>
28759
28760         xstrtoumax-tests: convert to use init.sh
28761         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
28762         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28763         Use Exit, not exit.
28764         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28765
28766         xstrtoimax-tests: convert to use init.sh
28767         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
28768         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28769         Use Exit, not exit.
28770         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28771
28772 2010-04-05  Bruno Haible  <bruno@clisp.org>
28773
28774         sys_socket: Avoid #define replacements in C++ mode.
28775         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
28776         warning to the function if possible, rather than #defining the symbol
28777         to a dysfunctional alias.
28778
28779 2010-04-05  Bruno Haible  <bruno@clisp.org>
28780
28781         fseeko: Fix C++ test error on mingw.
28782         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
28783         gl_FUNC_FSEEKO.
28784         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28785         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
28786         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
28787         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
28788
28789 2010-04-05  Bruno Haible  <bruno@clisp.org>
28790
28791         duplocale: Improve test output.
28792         * tests/test-duplocale.c (main): Print reason for skipped test.
28793
28794 2010-04-05  Bruno Haible  <bruno@clisp.org>
28795
28796         Assume rmdir exists.
28797         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
28798         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
28799
28800 2010-04-05  Bruno Haible  <bruno@clisp.org>
28801
28802         Fix link error on Solaris 8 with cc.
28803         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
28804
28805 2010-04-05  Bruno Haible  <bruno@clisp.org>
28806
28807         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28808         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
28809
28810 2010-04-05  Bruno Haible  <bruno@clisp.org>
28811
28812         vasprintf: Update documentation.
28813         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
28814
28815 2010-04-05  Bruno Haible  <bruno@clisp.org>
28816
28817         ptsname: Improve test.
28818         * tests/test-ptsname.c (main): Also try the various master names of BSD
28819         systems.
28820
28821 2010-04-05  Bruno Haible  <bruno@clisp.org>
28822
28823         memchr: Avoid a possible C++ test error.
28824         * lib/string.in.h (memchr): Provide declaration if function is missing.
28825         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
28826         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
28827         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
28828         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
28829
28830 2010-04-05  Bruno Haible  <bruno@clisp.org>
28831
28832         strtok_r: Improve idiom.
28833         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
28834         AC_LIBOBJ is used.
28835
28836 2010-04-05  Bruno Haible  <bruno@clisp.org>
28837
28838         strdup: Improve idiom.
28839         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
28840         AC_LIBOBJ is used.
28841         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
28842         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
28843         when AC_LIBOBJ is used.
28844
28845 2010-04-05  Bruno Haible  <bruno@clisp.org>
28846
28847         mbsinit, mbrtowc, wcrtomb: Improve idioms.
28848         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
28849         don't set REPLACE_MBSINIT to 1.
28850         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
28851         don't set REPLACE_MBRTOWC to 1.
28852         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
28853         exist, don't set REPLACE_MBSRTOWCS to 1.
28854         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
28855         exist, don't set REPLACE_MBSNRTOWCS to 1.
28856         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
28857         don't set REPLACE_WCRTOMB to 1.
28858         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
28859         exist, don't set REPLACE_WCSRTOMBS to 1.
28860         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
28861         exist, don't set REPLACE_WCSNRTOMBS to 1.
28862
28863 2010-04-05  Bruno Haible  <bruno@clisp.org>
28864
28865         ldexpl: Improve idiom.
28866         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
28867         make sure to set HAVE_DECL_LDEXPL to 0.
28868
28869 2010-04-05  Jim Meyering  <meyering@redhat.com>
28870
28871         xstrtol-tests: convert to use init.sh
28872         * modules/xstrtol-tests (Files): Add tests/init.sh.
28873         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28874         Use Exit, not exit.
28875         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28876
28877         atexit-tests: convert to use init.sh
28878         * modules/atexit-tests (Files): Add tests/init.sh.
28879         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28880         Use Exit, not exit.
28881         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28882
28883         init.sh: fix typo
28884         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
28885
28886         init.sh: make it easier for a test script to write to the tty, ...
28887         when using automake's parallel-tests mode.
28888         * tests/init.sh (stderr_fileno_): Define overridable variable.
28889         (warn_): New function, to use it.
28890         (fail_, skip_, framework_failure_): Use warn_.
28891
28892 2010-04-04  Bruno Haible  <bruno@clisp.org>
28893
28894         btowc: Avoid warning.
28895         * lib/btowc.c: Include <stdlib.h>.
28896         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
28897
28898 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28899             Bruno Haible  <bruno@clisp.org>
28900
28901         wchar: Port to NetBSD 1.5.
28902         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
28903         * lib/wctype.in.h (WEOF): Likewise.
28904
28905 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28906             Bruno Haible  <bruno@clisp.org>
28907
28908         Port extended stdio to NetBSD 1.5.
28909         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
28910         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
28911         older.
28912
28913 2010-04-04  Bruno Haible  <bruno@clisp.org>
28914
28915         string: Remove unused substitution.
28916         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28917         HAVE_DECL_STRERROR.
28918         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28919
28920 2010-04-04  Bruno Haible  <bruno@clisp.org>
28921
28922         strtod: Avoid a possible C++ test error.
28923         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
28924         set REPLACE_STRTOD.
28925
28926 2010-04-04  Bruno Haible  <bruno@clisp.org>
28927
28928         strerror: Update documentation.
28929         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
28930
28931 2010-04-04  Bruno Haible  <bruno@clisp.org>
28932
28933         stdio: Fix some C++ test errors on Solaris 8 with GCC.
28934         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
28935         _GL_CXXALIAS_SYS_CAST.
28936
28937 2010-04-04  Bruno Haible  <bruno@clisp.org>
28938
28939         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28940         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
28941         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
28942         REPLACE_FREXPL to 1.
28943         * doc/posix-functions/frexpl.texi: Update documentation.
28944
28945 2010-04-04  Bruno Haible  <bruno@clisp.org>
28946
28947         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28948         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28949
28950 2010-04-04  Bruno Haible  <bruno@clisp.org>
28951
28952         Implement nanosleep for native Windows.
28953         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28954
28955 2010-04-04  Bruno Haible  <bruno@clisp.org>
28956
28957         math: Fix some C++ test errors on Solaris 8.
28958         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28959
28960 2010-04-04  Bruno Haible  <bruno@clisp.org>
28961
28962         math: Fix some C++ test errors on Cygwin.
28963         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28964         truncl): Provide declaration if the system does not have it.
28965         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28966         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28967         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28968         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28969         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28970         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28971         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28972         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28973         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28974         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28975         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28976         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28977         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28978         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28979         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28980         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28981         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28982         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28983         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28984         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28985         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28986         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28987
28988 2010-04-04  Bruno Haible  <bruno@clisp.org>
28989
28990         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28991         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28992         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28993         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28994         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28995         * m4/isinf.m4 (gl_ISINF): Likewise.
28996         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28997
28998 2010-04-04  Bruno Haible  <bruno@clisp.org>
28999
29000         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29001         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29002
29003 2010-04-04  Bruno Haible  <bruno@clisp.org>
29004
29005         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29006         * modules/tmpfile (configure.ac): Update.
29007
29008         tmpfile: Fix C++ test error on mingw.
29009         * lib/stdio.in.h (tmpfile): New declaration.
29010         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29011         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29012         * modules/tmpfile (Depends-on): Add stdio.
29013         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29014         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29015         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29016         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29017         REPLACE_TMPFILE.
29018         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29019
29020 2010-04-04  Bruno Haible  <bruno@clisp.org>
29021
29022         ioctl: Fix C++ test error on mingw.
29023         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29024         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29025         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29026
29027 2010-04-03  Bruno Haible  <bruno@clisp.org>
29028
29029         wcwidth: Fix C++ test error on mingw.
29030         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29031         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29032         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29033
29034 2010-04-03  Bruno Haible  <bruno@clisp.org>
29035
29036         nanosleep: Fix C++ test error on mingw.
29037         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29038         * lib/time.in.h (nanosleep): Use modern idiom.
29039         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29040         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29041         REPLACE_NANOSLEEP to 1.
29042         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29043         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29044
29045 2010-04-03  Bruno Haible  <bruno@clisp.org>
29046
29047         strptime: Fix C++ test error on mingw.
29048         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29049         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29050         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29051         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29052         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29053         not REPLACE_STRPTIME.
29054         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29055         REPLACE_STRPTIME.
29056
29057 2010-04-03  Bruno Haible  <bruno@clisp.org>
29058
29059         timegm: Fix C++ test error on mingw.
29060         * lib/time.in.h (timegm): Use modern idiom.
29061         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29062         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29063         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29064         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29065
29066 2010-04-03  Bruno Haible  <bruno@clisp.org>
29067
29068         timegm: Assume declaration if function exists.
29069         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29070         if it exists. Don't clobber ac_cv_func_timegm.
29071
29072 2010-04-03  Bruno Haible  <bruno@clisp.org>
29073
29074         time_r: Fix C++ test error on mingw.
29075         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29076         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29077         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29078         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29079         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29080
29081 2010-04-03  Bruno Haible  <bruno@clisp.org>
29082
29083         time_r: Minor updates.
29084         * modules/time_r (Description): Mention the provided functions.
29085         * lib/time_r.c: Don't include <string.h>.
29086         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29087         * doc/posix-functions/localtime_r.texi: Likewise.
29088
29089 2010-04-03  Bruno Haible  <bruno@clisp.org>
29090
29091         time: Fix regression introduced on 2010-03-08.
29092         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29093         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29094
29095 2010-04-03  Jim Meyering  <meyering@redhat.com>
29096
29097         maint.mk: don't silently disable project-specific syntax-check rules
29098         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29099         that they need to convert their project-specific syntax-check rules
29100         to use the new _sc_search_regexp.
29101
29102 2010-04-03  Bruno Haible  <bruno@clisp.org>
29103
29104         fchdir: Fix regression introduced on 2010-03-08.
29105         * lib/unistd.in.h (fchdir): Fix declaration.
29106         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29108         REPLACE_FCHDIR.
29109         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29110         REPLACE_FCHDIR.
29111
29112 2010-04-03  Bruno Haible  <bruno@clisp.org>
29113
29114         getpagesize: Fix C++ test error on mingw.
29115         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29116         system does not declare the function.
29117         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29118         declared.
29119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29120         HAVE_DECL_GETPAGESIZE.
29121         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29122
29123 2010-04-03  Bruno Haible  <bruno@clisp.org>
29124
29125         stdio: Make C++ tests work on mingw.
29126         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29127         does not declare the function.
29128
29129 2010-04-03  Bruno Haible  <bruno@clisp.org>
29130
29131         ftello: Fix C++ test error on mingw.
29132         * lib/stdio.in.h (ftello): Use modern idiom.
29133         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29134         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29135         is missing and that it needs to be replaced.
29136         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29137         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29138         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29139
29140 2010-04-03  Bruno Haible  <bruno@clisp.org>
29141
29142         fseeko: Fix C++ test error on mingw.
29143         * lib/stdio.in.h (fseeko): Use modern idiom.
29144         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29146         is missing and that it needs to be replaced.
29147         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29148         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29149         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29150
29151 2010-04-03  Bruno Haible  <bruno@clisp.org>
29152
29153         mkstemp: Fix C++ test error on mingw.
29154         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29155         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29156         function is missing and that it needs to be replaced.
29157         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29158         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29159
29160 2010-04-03  Bruno Haible  <bruno@clisp.org>
29161
29162         stpncpy: Fix C++ test error on mingw.
29163         * lib/string.in.h (stpncpy): Use modern idiom.
29164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29165         function is missing and that it needs to be replaced.
29166         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29167         REPLACE_STPNCPY.
29168         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29169
29170 2010-04-03  Bruno Haible  <bruno@clisp.org>
29171
29172         sys_stat: Fix C++ test error on mingw.
29173         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29174         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29175
29176 2010-04-03  Bruno Haible  <bruno@clisp.org>
29177
29178         pty: Update doc.
29179         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29180
29181 2010-04-03  Bruno Haible  <bruno@clisp.org>
29182
29183         unistd: Fix C++ test error on mingw.
29184         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29185
29186 2010-04-03  Bruno Haible  <bruno@clisp.org>
29187
29188         Update doc regarding mingw.
29189         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29190         * doc/glibc-functions/login_tty.texi: Likewise.
29191         * doc/glibc-functions/forkpty.texi: Likewise.
29192
29193 2010-04-03  Bruno Haible  <bruno@clisp.org>
29194
29195         stdlib: Avoid compilation failure of c-strtold on mingw.
29196         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29197
29198 2010-04-03  Bruno Haible  <bruno@clisp.org>
29199
29200         locale: Make C++ tests work on Cygwin and mingw.
29201         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29202         cannot provide the function.
29203         Reported by Simon Josefsson.
29204
29205 2010-04-03  Bruno Haible  <bruno@clisp.org>
29206
29207         localename: Port to MacOS X 10.6.
29208         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29209         memory layout of the locales in MacOS X 10.6 as well.
29210         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29211
29212 2010-04-02  Bruno Haible  <bruno@clisp.org>
29213
29214         gnulib-tool: Ensure that long-running tests are executed last.
29215         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29216         running tests after the one for the other tests.
29217
29218 2010-04-02  Bruno Haible  <bruno@clisp.org>
29219
29220         gnulib-tool: Ensure the tests in the main directory are executed first.
29221         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29222         start with the current directory.
29223
29224 2010-04-02  Bruno Haible  <bruno@clisp.org>
29225
29226         Tests for module 'havelib', moved here from GNU gettext.
29227         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29228         modifications.
29229         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29230         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29231         with modifications.
29232         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29233         modifications.
29234         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29235         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29236         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29237         with modifications.
29238         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29239         with modifications.
29240         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29241         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29242         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29243         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29244         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29245         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29246         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29247         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29248         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29249         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29250         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29251         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29252         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29253         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29254         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29255         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29256         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29257         with modifications.
29258         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29259         with modifications.
29260         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29261         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29262         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29263         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29264         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29265         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29266         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29267         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29268         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29269         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29270         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29271         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29272         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29273         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29274         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29275         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29276         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29277         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29278         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29279         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29280         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29281         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29282         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29283         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29284         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29285         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29286         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29287         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29288         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29289         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29290         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29291         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29292         * tests/havelib/rpathx/rpathx.c: New file, from
29293         gettext/autoconf-lib-link.
29294         * tests/havelib/rpathx/Makefile.am: New file, from
29295         gettext/autoconf-lib-link.
29296         * tests/havelib/rpathx/configure.ac: New file, from
29297         gettext/autoconf-lib-link with modifications.
29298         * tests/havelib/rpathy/rpathy.c: New file, from
29299         gettext/autoconf-lib-link.
29300         * tests/havelib/rpathy/Makefile.am: New file, from
29301         gettext/autoconf-lib-link.
29302         * tests/havelib/rpathy/configure.ac: New file, from
29303         gettext/autoconf-lib-link with modifications.
29304         * tests/havelib/rpathz/rpathz.c: New file, from
29305         gettext/autoconf-lib-link.
29306         * tests/havelib/rpathz/Makefile.am: New file, from
29307         gettext/autoconf-lib-link.
29308         * tests/havelib/rpathz/configure.ac: New file, from
29309         gettext/autoconf-lib-link with modifications.
29310         * tests/havelib/rpathlx/usex.c: New file, from
29311         gettext/autoconf-lib-link.
29312         * tests/havelib/rpathlx/Makefile.am: New file, from
29313         gettext/autoconf-lib-link.
29314         * tests/havelib/rpathlx/configure.ac: New file, from
29315         gettext/autoconf-lib-link with modifications.
29316         * tests/havelib/rpathly/usey.c: New file, from
29317         gettext/autoconf-lib-link.
29318         * tests/havelib/rpathly/Makefile.am: New file, from
29319         gettext/autoconf-lib-link.
29320         * tests/havelib/rpathly/configure.ac: New file, from
29321         gettext/autoconf-lib-link with modifications.
29322         * tests/havelib/rpathlz/usez.c: New file, from
29323         gettext/autoconf-lib-link.
29324         * tests/havelib/rpathlz/Makefile.am: New file, from
29325         gettext/autoconf-lib-link.
29326         * tests/havelib/rpathlz/configure.ac: New file, from
29327         gettext/autoconf-lib-link with modifications.
29328         * tests/havelib/rpathlyx/usey.c: New file, from
29329         gettext/autoconf-lib-link.
29330         * tests/havelib/rpathlyx/Makefile.am: New file, from
29331         gettext/autoconf-lib-link.
29332         * tests/havelib/rpathlyx/configure.ac: New file, from
29333         gettext/autoconf-lib-link with modifications.
29334         * tests/havelib/rpathlzyx/usez.c: New file, from
29335         gettext/autoconf-lib-link.
29336         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29337         gettext/autoconf-lib-link.
29338         * tests/havelib/rpathlzyx/configure.ac: New file, from
29339         gettext/autoconf-lib-link with modifications.
29340         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29341         with modifications.
29342
29343 2010-04-02  Bruno Haible  <bruno@clisp.org>
29344
29345         gnulib-tool: Create distributed built sources also for the tests.
29346         * gnulib-tool (func_create_testdir): Also generate distributed built
29347         sources in the tests directory.
29348
29349 2010-04-02  Bruno Haible  <bruno@clisp.org>
29350
29351         gnulib-tool: Obey user's environment variables.
29352         * gnulib-tool (func_create_testdir): When creating built sources,
29353         respect the environment variables for autoconf, automake, etc. given by
29354         the user.
29355
29356 2010-04-02  Bruno Haible  <bruno@clisp.org>
29357
29358         gnulib-tool: Provide the value of --m4-base to modules.
29359         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29360         of gl_m4_base.
29361
29362 2010-04-02  Eric Blake  <eblake@redhat.com>
29363
29364         maint.mk: fix some fallout
29365         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29366         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29367
29368 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29369
29370         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29371         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29372         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29373         (sc_cast_of_x_alloc_return_value): Likewise.
29374         (sc_cast_of_alloca_return_value): Likewise.
29375         (sc_space_tab): Likewise.
29376         (sc_prohibit_atoi_atof): Likewise.
29377         (sc_prohibit_magic_number_exit): Likewise.
29378         (sc_error_exit_success): Likewise.
29379         (sc_file_system): Likewise.
29380         (sc_prohibit_have_config_h): Likewise.
29381         (sc_require_config_h): Likewise.
29382         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29383         (sc_obsolete_symbols): Likewise.
29384         (sc_changelog): Likewise.
29385         (sc_program_name): Likewise.
29386         (sc_the_the): Likewise.
29387         (sc_trailing_blank): Likewise.
29388         (sc_two_space_separator_in_usage): Likewise.
29389         (sc_useless_cpp_parens): Likewise.
29390         (sc_GPL_version): Likewise.
29391         (sc_GFDL_version): Likewise.
29392         (sc_texinfo_acronym): Likewise.
29393         (sc_prohibit_cvs_keyword): Likewise.
29394         (sc_prohibit_stat_st_blocks): Likewise.
29395         (sc_prohibit_S_IS_definition): Likewise.
29396         (sc_redundant_const): Likewise.
29397         (sc_makefile_TAB_only_indentation): Likewise.
29398         (sc_m4_quote_check): Likewise.
29399         (sc_makefile_path_separator_check): Likewise.
29400         (sc_copyright_check): Likewise.
29401         (sc_Wundef_boolean): Likewise.
29402         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29403
29404         maint.mk: match 0 or more whitespace-before-function-call '('
29405         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29406         that have zero or two-and-more spaces between the function name
29407         and the open parenthesis.
29408         (sc_error_message_warn_fatal): Likewise.
29409         (sc_error_message_uppercase): Likewise.
29410         (sc_error_message_period): Likewise.
29411
29412 2010-03-31  Eric Blake  <eblake@redhat.com>
29413
29414         maint.mk: check for [ as well as test
29415         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29416         Based on a libvirt report by Matthias Bolte.
29417
29418         gnumakefile: don't squelch _version output
29419         * top/GNUmakefile (_version): Create one-shot dependency rather
29420         than using $(shell) when version must be regenerated.
29421         (_autoreconf): Run verbosely, by default.
29422
29423         sys_time: avoid compiler warnings
29424         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29425         unconditional, fixing regression from 2010-03-29.
29426         Reported by Simon Josefsson.
29427
29428 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29429
29430         maint.mk: s/_header_without_use/_sc_header_without_use/
29431         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29432         (sc_prohibit_assert_without_use): Use the new name.
29433         (sc_prohibit_close_stream_without_use): Likewise.
29434         (sc_prohibit_getopt_without_use): Likewise.
29435         (sc_prohibit_quotearg_without_use): Likewise.
29436         (sc_prohibit_quote_without_use): Likewise.
29437         (sc_prohibit_long_options_without_use): Likewise.
29438         (sc_prohibit_inttostr_without_use): Likewise.
29439         (sc_prohibit_ignore_value_without_use): Likewise.
29440         (sc_prohibit_error_without_use): Likewise.
29441         (sc_prohibit_xalloc_without_use): Likewise.
29442         (sc_prohibit_hash_without_use): Likewise.
29443         (sc_prohibit_hash_pjw_without_use): Likewise.
29444         (sc_prohibit_safe_read_without_use): Likewise.
29445         (sc_prohibit_argmatch_without_use): Likewise.
29446         (sc_prohibit_canonicalize_without_use): Likewise.
29447         (sc_prohibit_root_dev_ino_without_use): Likewise.
29448         (sc_prohibit_openat_without_use): Likewise.
29449         (sc_prohibit_c_ctype_without_use): Likewise.
29450         (sc_prohibit_signal_without_use): Likewise.
29451         (sc_prohibit_intprops_without_use): Likewise.
29452
29453 2010-03-30  Eric Blake  <eblake@redhat.com>
29454
29455         maint: improve module indicators
29456         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29457         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29458         columns, and avoid extra macro expansion.
29459
29460         fdopendir: work around FreeBSD bug
29461         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29462         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29463         * modules/dirent (Makefile.am): Substitute it.
29464         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29465         declaration.
29466         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29467         fix.
29468         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29469
29470 2010-03-29  Bruno Haible  <bruno@clisp.org>
29471
29472         Emit #pragma system_header after the inclusion guard, not before.
29473         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29474         guard that spans the entire file, not before. This enables an
29475         optimization in GCC's preprocessor.
29476         * lib/ctype.in.h: Likewise.
29477         * lib/dirent.in.h: Likewise.
29478         * lib/errno.in.h: Likewise.
29479         * lib/float.in.h: Likewise.
29480         * lib/getopt.in.h: Likewise.
29481         * lib/iconv.in.h: Likewise.
29482         * lib/langinfo.in.h: Likewise.
29483         * lib/locale.in.h: Likewise.
29484         * lib/math.in.h: Likewise.
29485         * lib/netdb.in.h: Likewise.
29486         * lib/netinet_in.in.h: Likewise.
29487         * lib/pty.in.h: Likewise.
29488         * lib/sched.in.h: Likewise.
29489         * lib/se-selinux.in.h: Likewise.
29490         * lib/search.in.h: Likewise.
29491         * lib/spawn.in.h: Likewise.
29492         * lib/stdarg.in.h: Likewise.
29493         * lib/stdint.in.h: Likewise.
29494         * lib/string.in.h: Likewise.
29495         * lib/strings.in.h: Likewise.
29496         * lib/sys_file.in.h: Likewise.
29497         * lib/sys_ioctl.in.h: Likewise.
29498         * lib/sys_time.in.h: Likewise.
29499         * lib/sys_times.in.h: Likewise.
29500         * lib/sys_utsname.in.h: Likewise.
29501         * lib/sys_wait.in.h: Likewise.
29502         * lib/sysexits.in.h: Likewise.
29503         * lib/wctype.in.h: Likewise.
29504
29505 2010-03-28  James Youngman  <jay@gnu.org>
29506
29507         save-cwd: don't leak a file descriptor when the caller execs.
29508         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29509         saved file descriptor.
29510         * modules/save-cwd (Depends-on): Depend on cloexec.
29511
29512 2010-03-29  Bruno Haible  <bruno@clisp.org>
29513
29514         Remove vestiges of fts-lgpl module.
29515         * lib/fts_.h: Assume GNULIB_FTS is 1.
29516         * lib/fts.c: Likewise.
29517         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29518
29519 2010-03-28  Bruno Haible  <bruno@clisp.org>
29520
29521         Fix definition of tests witness macro.
29522         * gnulib-tool (func_import): Fix definition of witness macro.
29523
29524 2010-03-28  Bruno Haible  <bruno@clisp.org>
29525
29526         Fix ioctl's protoype on glibc systems.
29527         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29528         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29529         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29530         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29531         signature. If not, arrange to replace the ioctl function.
29532         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29533         REPLACE_IOCTL.
29534         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29535         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29536         Reported by Ludovic Courtès <ludo@gnu.org>.
29537
29538 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29539
29540         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29541         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29542         made it so grep -r --include=GLOB* ... did not work.
29543
29544 2010-03-26  Jim Meyering  <meyering@redhat.com>
29545             Eric Blake  <eblake@redhat.com>
29546
29547         maint.mk: prohibit use of test's -o and -a operators
29548         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29549
29550 2010-03-28  Bruno Haible  <bruno@clisp.org>
29551
29552         Remove unused GNULIB_XYZ macro definitions.
29553         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29554         invocation.
29555
29556 2010-03-28  Bruno Haible  <bruno@clisp.org>
29557
29558         Mark privileged tests modules.
29559         * modules/idpriv-drop-tests (Status): New section.
29560         * modules/idpriv-droptemp-tests (Status): New section.
29561
29562 2010-03-28  Bruno Haible  <bruno@clisp.org>
29563
29564         Split C++ tests into separate tests modules.
29565         * modules/dirent-c++-tests: New file, extracted from
29566         modules/dirent-tests.
29567         * modules/dirent-tests: Depend on it.
29568         * modules/fcntl-h-c++-tests: New file, extracted from
29569         modules/fcntl-h-tests.
29570         * modules/fcntl-h-tests: Depend on it.
29571         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29572         * modules/glob-tests: Depend on it.
29573         * modules/iconv-h-c++-tests: New file, extracted from
29574         modules/iconv-h-tests.
29575         * modules/iconv-h-tests: Depend on it.
29576         * modules/langinfo-c++-tests: New file, extracted from
29577         modules/langinfo-tests.
29578         * modules/langinfo-tests: Depend on it.
29579         * modules/locale-c++-tests: New file, extracted from
29580         modules/locale-tests.
29581         * modules/locale-tests: Depend on it.
29582         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29583         * modules/math-tests: Depend on it.
29584         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29585         * modules/pty-tests: Depend on it.
29586         * modules/search-c++-tests: New file, extracted from
29587         modules/search-tests.
29588         * modules/search-tests: Depend on it.
29589         * modules/signal-c++-tests: New file, extracted from
29590         modules/signal-tests.
29591         * modules/signal-tests: Depend on it.
29592         * modules/spawn-c++-tests: New file, extracted from
29593         modules/spawn-tests.
29594         * modules/spawn-tests: Depend on it.
29595         * modules/stdio-c++-tests: New file, extracted from
29596         modules/stdio-tests.
29597         * modules/stdio-tests: Depend on it.
29598         * modules/stdlib-c++-tests: New file, extracted from
29599         modules/stdlib-tests.
29600         * modules/stdlib-tests: Depend on it.
29601         * modules/string-c++-tests: New file, extracted from
29602         modules/string-tests.
29603         * modules/string-tests: Depend on it.
29604         * modules/sys_ioctl-c++-tests: New file, extracted from
29605         modules/sys_ioctl-tests.
29606         * modules/sys_ioctl-tests: Depend on it.
29607         * modules/sys_select-c++-tests: New file, extracted from
29608         modules/sys_select-tests.
29609         * modules/sys_select-tests: Depend on it.
29610         * modules/sys_socket-c++-tests: New file, extracted from
29611         modules/sys_socket-tests.
29612         * modules/sys_socket-tests: Depend on it.
29613         * modules/sys_stat-c++-tests: New file, extracted from
29614         modules/sys_stat-tests.
29615         * modules/sys_stat-tests: Depend on it.
29616         * modules/sys_time-c++-tests: New file, extracted from
29617         modules/sys_time-tests.
29618         * modules/sys_time-tests: Depend on it.
29619         * modules/time-c++-tests: New file, extracted from modules/time-tests.
29620         * modules/time-tests: Depend on it.
29621         * modules/unistd-c++-tests: New file, extracted from
29622         modules/unistd-tests.
29623         * modules/unistd-tests: Depend on it.
29624         * modules/wchar-c++-tests: New file, extracted from
29625         modules/wchar-tests.
29626         * modules/wchar-tests: Depend on it.
29627         * modules/wctype-c++-tests: New file, extracted from
29628         modules/wctype-tests.
29629         * modules/wctype-tests: Depend on it.
29630         Reported by Simon Josefsson.
29631
29632 2010-03-28  Bruno Haible  <bruno@clisp.org>
29633
29634         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
29635         * gnulib-tool (func_exists_module): New function, extracted from
29636         func_verify_module.
29637         (func_verify_module): Use it.
29638         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
29639         'foo' only if 'foo' exists.
29640         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
29641         module.
29642
29643 2010-03-28  Bruno Haible  <bruno@clisp.org>
29644
29645         gnulib-tool: Add support for special categories of tests.
29646         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
29647         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
29648         (func_usage): Document them.
29649         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
29650         inc_unportable_tests, inc_all_tests): New variables.
29651         (func_acceptable): Consider these variables.
29652         (func_modules_transitive_closure): Make it work when the 'Status' field
29653         consists of multiple words.
29654         (func_import): Store and restore the values of inc_cxx_tests,
29655         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
29656         inc_all_tests in gnulib-comp.m4.
29657         (func_create_testdir): Set inc_all_tests to true.
29658         * doc/gnulib.texi (Extra tests modules): New section.
29659         Suggested by Jim Meyering.
29660
29661 2010-03-28  Bruno Haible  <bruno@clisp.org>
29662
29663         ansi-c++-opt: Allow turning off the C++ build by default.
29664         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
29665         gl_CXX_CHOICE_DEFAULT_NO is defined.
29666         Requested by Eric Blake.
29667
29668 2010-03-28  Bruno Haible  <bruno@clisp.org>
29669
29670         unistd: Avoid #define replacements in C++ mode.
29671         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29672         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29673         setsockopt, shutdown, select): In C++, attach a warning to the function
29674         if possible, rather than #defining the symbol to a dysfunctional alias.
29675         Reported by John W. Eaton <jwe@gnu.org>.
29676
29677 2010-03-28  Bruno Haible  <bruno@clisp.org>
29678
29679         Fix link errors on mingw.
29680         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
29681         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
29682         $(LIBSOCKET).
29683         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
29684         $(LIBSOCKET).
29685
29686 2010-03-28  Bruno Haible  <bruno@clisp.org>
29687             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29688
29689         lib-ignore: Determine different options for different compilers.
29690         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
29691         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
29692         Add comments.
29693         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
29694         * NEWS: Mention the change.
29695
29696 2010-03-27  Bruno Haible  <bruno@clisp.org>
29697
29698         Remove unused GNULIB_XYZ macro definitions.
29699         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29700         * modules/fseek (configure.ac): Likewise.
29701         * modules/ioctl (configure.ac): Likewise.
29702         * modules/open (configure.ac): Likewise.
29703         * modules/stdlib-safer (configure.ac): Likewise.
29704
29705 2010-03-27  Bruno Haible  <bruno@clisp.org>
29706
29707         Add a remark about certain modules.
29708         * modules/malloc (Comment): New section.
29709         * modules/realloc (Comment): Likewise.
29710         * modules/sigpipe (Comment): Likewise.
29711
29712 2010-03-27  Bruno Haible  <bruno@clisp.org>
29713
29714         Resolve conflict between the two kinds of module indicators.
29715         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
29716         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
29717         * modules/canonicalize (configure.ac): Invoke
29718         gl_MODULE_INDICATOR_FOR_TESTS.
29719         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
29720         GNULIB_XYZ.
29721         * tests/test-dirent-c++.cc: Likewise.
29722         * tests/test-dirent-safer.c: Likewise.
29723         * tests/test-dup2.c: Likewise.
29724         * tests/test-fchdir.c: Likewise.
29725         * tests/test-fcntl-h-c++.cc: Likewise.
29726         * tests/test-getopt.c: Likewise.
29727         * tests/test-getopt.h: Likewise.
29728         * tests/test-langinfo-c++.cc: Likewise.
29729         * tests/test-locale-c++.cc: Likewise.
29730         * tests/test-math-c++.cc: Likewise.
29731         * tests/test-pty-c++.cc: Likewise.
29732         * tests/test-search-c++.cc: Likewise.
29733         * tests/test-signal-c++.cc: Likewise.
29734         * tests/test-spawn-c++.cc: Likewise.
29735         * tests/test-stdio-c++.cc: Likewise.
29736         * tests/test-stdlib-c++.cc: Likewise.
29737         * tests/test-string-c++.cc: Likewise.
29738         * tests/test-sys_ioctl-c++.cc: Likewise.
29739         * tests/test-sys_select-c++.cc: Likewise.
29740         * tests/test-sys_socket-c++.cc: Likewise.
29741         * tests/test-sys_stat-c++.cc: Likewise.
29742         * tests/test-sys_time-c++.cc: Likewise.
29743         * tests/test-time-c++.cc: Likewise.
29744         * tests/test-unistd-c++.cc: Likewise.
29745         * tests/test-wchar-c++.cc: Likewise.
29746         * tests/uninorm/test-u8-nfc.c: Likewise.
29747         * tests/uninorm/test-u8-nfd.c: Likewise.
29748         * tests/uninorm/test-u8-nfkc.c: Likewise.
29749         * tests/uninorm/test-u8-nfkd.c: Likewise.
29750         * tests/uninorm/test-u16-nfc.c: Likewise.
29751         * tests/uninorm/test-u16-nfd.c: Likewise.
29752         * tests/uninorm/test-u16-nfkc.c: Likewise.
29753         * tests/uninorm/test-u16-nfkd.c: Likewise.
29754         * tests/uninorm/test-u32-nfc.c: Likewise.
29755         * tests/uninorm/test-u32-nfc-big.c: Likewise.
29756         * tests/uninorm/test-u32-nfd.c: Likewise.
29757         * tests/uninorm/test-u32-nfd-big.c: Likewise.
29758         * tests/uninorm/test-u32-nfkc.c: Likewise.
29759         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
29760         * tests/uninorm/test-u32-nfkd.c: Likewise.
29761         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
29762         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29763
29764 2010-03-27  Bruno Haible  <bruno@clisp.org>
29765
29766         Distinguish two kinds of module indicators.
29767         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
29768         gl_MODULE_INDICATOR.
29769         (gl_MODULE_INDICATOR): New macro.
29770         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29771         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
29772         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29773         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29774         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29775         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29776         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29777         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29778         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29779         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29780         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29781         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29783         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29784         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29785         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29786         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29787         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29788         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29789         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29790         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29791         * modules/cloexec (configure.ac): Likewise.
29792         * modules/getopt-gnu (configure.ac): Likewise.
29793         * modules/uninorm/u8-normalize (configure.ac): Likewise.
29794         * modules/uninorm/u16-normalize (configure.ac): Likewise.
29795         * modules/uninorm/u32-normalize (configure.ac): Likewise.
29796         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
29797
29798 2010-03-27  Bruno Haible  <bruno@clisp.org>
29799
29800         New module description field 'Comment'.
29801         * gnulib-tool: New option --extract-comment.
29802         (func_usage): Document it.
29803         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
29804         (func_get_comment): New function.
29805         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
29806
29807 2010-03-27  Bruno Haible  <bruno@clisp.org>
29808
29809         Addendum to 2010-02-07 commit.
29810         * gnulib-tool (func_usage): Document --extract-applicability option.
29811
29812 2010-03-27  Bruno Haible  <bruno@clisp.org>
29813
29814         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
29815         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
29816         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
29817         rather than link errors.
29818
29819 2010-03-27  Bruno Haible  <bruno@clisp.org>
29820
29821         Avoid side effects from tests-related modules on the compilation of lib.
29822         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
29823         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
29824         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
29825         parameter. Emit into AM_CPPFLAGS a definition of the designated C
29826         macro.
29827         (func_import): Define a witness macro. Assign it a value that depends
29828         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
29829         tests-related modules.
29830         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
29831         Reported by Jim Meyering.
29832
29833 2010-03-27  Bruno Haible  <bruno@clisp.org>
29834
29835         Factorize common .m4 code.
29836         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
29837         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
29838         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
29839         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
29840         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29841         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
29842         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
29843         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29844         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29845         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29846         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29847         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29848         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29849         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29850         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29851         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
29852         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29853         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29854         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29855         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
29856         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
29857         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29858         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29860         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29861         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29862         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
29863         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
29864         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
29865         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29866         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29867         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29868
29869 2010-03-27  Bruno Haible  <bruno@clisp.org>
29870
29871         Fix a compilation error on Cygwin with g++ >= 4.3.
29872         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
29873         if it is undefined or if we alias it to chmod.
29874         (lstat): Don't warn about the use of this function if it is undefined
29875         or if we alias it to stat.
29876         Reported by Simon Josefsson.
29877
29878 2010-03-27  Bruno Haible  <bruno@clisp.org>
29879
29880         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
29881         * modules/getlogin (configure.ac): Update.
29882
29883         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
29884         * modules/getlogin_r (configure.ac): Update.
29885
29886         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
29887         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
29888         * modules/inet_ntop (configure.ac): Update.
29889
29890         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
29891         * modules/inet_pton (configure.ac): Update.
29892
29893         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
29894         * modules/mbslen (configure.ac): Update.
29895
29896         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
29897         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
29898         * modules/forkpty (configure.ac): Update.
29899         * modules/openpty (configure.ac): Update.
29900
29901 2010-03-26  Simon Josefsson  <simon@josefsson.org>
29902
29903         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
29904         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
29905
29906 2010-03-25  Eric Blake  <eblake@redhat.com>
29907
29908         maint: use pragma consistently across replacement headers
29909         * lib/ctype.in.h (system_header): Hoist for consistent placement.
29910         * lib/dirent.in.h (system_header): Likewise.
29911         * lib/errno.in.h (system_header): Likewise.
29912         * lib/float.in.h (system_header): Likewise.
29913         * lib/getopt.in.h (system_header): Likewise.
29914         * lib/iconv.in.h (system_header): Likewise.
29915         * lib/inttypes.in.h (system_header): Likewise.
29916         * lib/langinfo.in.h (system_header): Likewise.
29917         * lib/locale.in.h (system_header): Likewise.
29918         * lib/math.in.h (system_header): Likewise.
29919         * lib/netdb.in.h (system_header): Likewise.
29920         * lib/netinet_in.in.h (system_header): Likewise.
29921         * lib/pty.in.h (system_header): Likewise.
29922         * lib/sched.in.h (system_header): Likewise.
29923         * lib/se-selinux.in.h (system_header): Likewise.
29924         * lib/search.in.h (system_header): Likewise.
29925         * lib/spawn.in.h (system_header): Likewise.
29926         * lib/stdarg.in.h (system_header): Likewise.
29927         * lib/stdint.in.h (system_header): Likewise.
29928         * lib/string.in.h (system_header): Likewise.
29929         * lib/strings.in.h (system_header): Likewise.
29930         * lib/sys_file.in.h (system_header): Likewise.
29931         * lib/sys_ioctl.in.h (system_header): Likewise.
29932         * lib/sys_socket.in.h (system_header): Likewise.
29933         * lib/sys_times.in.h (system_header): Likewise.
29934         * lib/sys_utsname.in.h (system_header): Likewise.
29935         * lib/sys_wait.in.h (system_header): Likewise.
29936         * lib/sysexits.in.h (system_header): Likewise.
29937         * lib/unistd.in.h (system_header): Likewise.
29938         * lib/wctype.in.h (system_header): Likewise.
29939
29940         arpa/inet: fix mingw compilation warning
29941         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
29942         Reported by Matthew Bolte.
29943
29944 2010-03-25  Bruno Haible  <bruno@clisp.org>
29945
29946         Avoid collision between gnulib wrapper and libintl wrapper.
29947         * lib/printf.c (printf): Don't define if a printf wrapper is already
29948         defined in intl/printf.c.
29949         Reported by Michel Boaventura <michel@michelboaventura.com>.
29950
29951 2010-03-25  Bruno Haible  <bruno@clisp.org>
29952
29953         Use ANSI C.
29954         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29955
29956 2010-03-25  Bruno Haible  <bruno@clisp.org>
29957
29958         Minor formatting changes.
29959         * lib/acosl.c: Insert space before function argument list.
29960         * lib/argz.c: Likewise.
29961         * lib/asinl.c: Likewise.
29962         * lib/expl.c: Likewise.
29963         * lib/gen-uni-tables.c: Likewise.
29964         * lib/gettext.h: Likewise.
29965         * lib/glthread/lock.h: Likewise.
29966         * lib/tanl.c: Likewise.
29967         * lib/uniname/uniname.c: Likewise.
29968         * tests/test-idpriv-drop.c: Likewise.
29969         * tests/test-idpriv-droptemp.c: Likewise.
29970         * tests/test-lock.c: Likewise.
29971         * tests/test-tls.c: Likewise.
29972         * lib/argp-help.c: Insert space before function-like macro argument
29973         list.
29974         * lib/memcmp.c: Likewise.
29975         * tests/test-base64.c: Likewise.
29976         * lib/localename.c: Insert space before sizeof's argument list.
29977         * lib/safe-alloc.h: Likewise.
29978         * lib/file-set.h: Insert space before macro argument list.
29979         * tests/test-argp.c: Likewise.
29980         * lib/argp-namefrob.h: Insert space before function parameter list.
29981         * lib/getaddrinfo.c: Likewise.
29982         * lib/netdb.in.h: Likewise.
29983         * lib/parse-duration.h: Likewise.
29984         * lib/parse-duration.c: Likewise.
29985         * lib/poll.c: Likewise.
29986         * lib/select.c: Likewise.
29987         * lib/trim.h: Likewise.
29988         * tests/test-usleep.c: Likewise.
29989         * lib/ldexpl.c: Insert space before function parameter list and before
29990         function argument list.
29991         * lib/logl.c: Likewise.
29992         * lib/sqrtl.c: Likewise.
29993         * lib/trim.c: Likewise.
29994         * lib/cosl.c: Use GNU style indentation. Insert space before function
29995         argument list.
29996         * lib/sinl.c: Likewise.
29997         * lib/tsearch.c: Insert space after 'for'.
29998         Reported by Jim Meyering.
29999
30000 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30001
30002         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30003         config header before grepping, as it's not present before
30004         autoreconf/configure are run.  Reported by Simon Josefsson.
30005
30006 2010-03-23  Bruno Haible  <bruno@clisp.org>
30007
30008         pt_chown: Make it work with automake < 1.11.
30009         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30010         Reported by Simon Josefsson.
30011
30012 2010-03-23  Bruno Haible  <bruno@clisp.org>
30013
30014         pt_chown: Don't depend on GPLed modules.
30015         * lib/pt_chown.c: Don't include idpriv.h.
30016         (main): Don't drop privileges.
30017         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30018         Reported by Simon Josefsson.
30019
30020 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30021
30022         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30023         suggestions from karl@freefriends.org (Karl Berry).
30024
30025 2010-03-22  Eric Blake  <eblake@redhat.com>
30026
30027         gethostname: further tweaks
30028         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30029         are overriding gethostname.
30030         Suggested by Bruno Haible.
30031
30032 2010-03-21  Bruno Haible  <bruno@clisp.org>
30033
30034         Fix comments.
30035         * lib/forkpty.c (rpl_forkpty): Fix comment.
30036         * lib/openpty.c (rpl_openpty): Likewise.
30037         Reported by Eric Blake.
30038
30039 2010-03-22  Eric Blake  <eblake@redhat.com>
30040
30041         gethostname: fix build on mingw
30042         * lib/unistd.in.h (includes): Work around fact that mingw
30043         <winsock2.h> re-includes <unistd.h>, by avoiding any
30044         redeclarations if we are being included by <winsock2.h>.
30045         Reported by Matthias Bolte.
30046
30047 2010-03-21  Bruno Haible  <bruno@clisp.org>
30048
30049         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30050         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30051         modifications.
30052         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30053         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30054         provide the replacement.
30055         * modules/forkpty (Depends-on): Add openpty, login_tty.
30056         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30057         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30058         * doc/glibc-functions/forkpty.texi: More supported platforms.
30059         * config/srclist.txt: Add forkpty.c (commented).
30060
30061 2010-03-21  Bruno Haible  <bruno@clisp.org>
30062
30063         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30064         (Makefile.am): Verify that PTY_LIB is defined.
30065
30066         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30067
30068 2010-03-21  Bruno Haible  <bruno@clisp.org>
30069
30070         Tests for module 'login_tty'.
30071         * modules/login_tty-tests: New file.
30072         * tests/test-login_tty.c: New file.
30073
30074         New module 'login_tty'.
30075         * lib/login_tty.c: New file.
30076         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30077         * modules/login_tty: New file.
30078         * doc/glibc-functions/login_tty.texi: Mention the new module.
30079
30080 2010-03-21  Bruno Haible  <bruno@clisp.org>
30081
30082         login_tty: Documentation.
30083         * doc/glibc-functions/login_tty.texi: New file.
30084         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30085
30086 2010-03-21  Bruno Haible  <bruno@clisp.org>
30087
30088         pty: Consistent macro naming.
30089         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30090         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30091         * modules/pty (configure.ac): Update.
30092
30093 2010-03-21  Bruno Haible  <bruno@clisp.org>
30094
30095         Tests for openpty: Make stricter.
30096         * tests/test-openpty.c (main): Add test of canonical processing and
30097         erase.
30098         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30099
30100         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30101         * lib/openpty.c (openpty): New replacement function.
30102         * lib/pty.in.h: Include <termios.h>.
30103         (openpty): Update declaration. Add comments.
30104         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30105         is not declared, arrange to provide the replacement. Check for _getpty
30106         and posix_openpt.
30107         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30108         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30109         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30110         * modules/pty-tests (test_pty_c___LDADD): New variable.
30111         * doc/glibc-functions/openpty.texi: More supported platforms.
30112
30113 2010-03-21  Bruno Haible  <bruno@clisp.org>
30114
30115         setenv: Tweaks.
30116         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30117         the test program.
30118         * doc/posix-functions/setenv.texi: Update platforms list.
30119
30120 2010-03-21  Bruno Haible  <bruno@clisp.org>
30121
30122         New module 'unlockpt'.
30123         * lib/unlockpt.c: New file, from glibc with modifications.
30124         * m4/unlockpt.m4: New file.
30125         * modules/unlockpt: New file.
30126         * lib/stdlib.in.h (unlockpt): New declaration.
30127         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30128         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30129         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30130         HAVE_UNLOCKPT.
30131         * doc/posix-functions/unlockpt.texi: Mention the new module.
30132         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30133         * config/srclist.txt: Add unlockpt.c (commented).
30134
30135 2010-03-21  Jim Meyering  <meyering@redhat.com>
30136
30137         maint.mk: prohibit inclusion of "intprops.h" without use
30138         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30139
30140 2010-03-21  Bruno Haible  <bruno@clisp.org>
30141
30142         New module 'grantpt'.
30143         * lib/grantpt.c: New file, from glibc with modifications.
30144         * m4/grantpt.m4: New file.
30145         * modules/grantpt: New file.
30146         * lib/stdlib.in.h (grantpt): New declaration.
30147         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30148         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30149         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30150         HAVE_GRANTPT.
30151         * doc/posix-functions/grantpt.texi: Mention the new module.
30152         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30153         * config/srclist.txt: Add grantpt.c (commented).
30154
30155 2010-03-21  Bruno Haible  <bruno@clisp.org>
30156
30157         New module 'pt_chown'.
30158         * lib/pt_chown.c: New file, from glibc with modifications.
30159         * lib/pty-private.h: New file, from glibc with modifications.
30160         * modules/pt_chown: New file.
30161         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30162
30163 2010-03-21  Bruno Haible  <bruno@clisp.org>
30164
30165         Tests for module 'ptsname'.
30166         * modules/ptsname-tests: New file.
30167         * tests/test-ptsname.c: New file.
30168
30169         New module 'ptsname'.
30170         * lib/ptsname.c: New file, from glibc with modifications.
30171         * m4/ptsname.m4: New file.
30172         * modules/ptsname: New file.
30173         * lib/stdlib.in.h (ptsname): New declaration.
30174         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30175         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30176         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30177         HAVE_PTSNAME.
30178         * doc/posix-functions/ptsname.texi: Mention the new module.
30179         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30180         * config/srclist.txt: Add ptsname.c (commented).
30181
30182 2010-03-21  Bruno Haible  <bruno@clisp.org>
30183
30184         Tests for module 'ttyname_r'.
30185         * modules/ttyname_r-tests: New file.
30186         * tests/test-ttyname_r.c: New file.
30187
30188         New module 'ttyname_r'.
30189         * lib/ttyname_r.c: New file.
30190         * m4/ttyname_r.m4: New file.
30191         * modules/ttyname_r: New file.
30192         * lib/unistd.in.h (ttyname_r): New declaration.
30193         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30194         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30195         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30196         HAVE_TTYNAME_R.
30197         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30198         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30199
30200 2010-03-20  Bruno Haible  <bruno@clisp.org>
30201
30202         signal: Undefine macro definitions in C++ mode.
30203         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30204         sigfillset): Undefine macro definitions from the system header in C++
30205         mode.
30206         Reported by John W. Eaton <jwe@gnu.org>.
30207
30208 2010-03-20  Bruno Haible  <bruno@clisp.org>
30209
30210         Ensure no #include statements inside extern "C" { ... }.
30211         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30212         contain #include statements.
30213         * lib/time.in.h: Likewise.
30214
30215 2010-03-20  Bruno Haible  <bruno@clisp.org>
30216
30217         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30218         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30219         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30220         Reported by John W. Eaton <jwe@gnu.org>.
30221
30222 2010-03-20  Bruno Haible  <bruno@clisp.org>
30223
30224         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30225         Reported by Jim Meyering.
30226
30227 2010-03-20  Bruno Haible  <bruno@clisp.org>
30228
30229         pipe: Set errno upon failure.
30230         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30231         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30232         errno value in error message.
30233
30234 2010-03-20  Bruno Haible  <bruno@clisp.org>
30235             Jim Meyering  <meyering@redhat.com>
30236
30237         lchown: Avoid "unused variable" warning.
30238         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30239
30240 2010-03-20  Bruno Haible  <bruno@clisp.org>
30241
30242         Work around unlink() bug on MacOS X 10.5.6.
30243         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30244         attempting to unlink a parent directory.
30245         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30246         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30247         activate for the replacement function.
30248         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30249
30250 2010-03-20  Bruno Haible  <bruno@clisp.org>
30251
30252         Fix link errors on Solaris 8.
30253         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30254         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30255
30256 2010-03-19  Jim Meyering  <meyering@redhat.com>
30257
30258         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30259         The _LIBC implementation of build_range_exp correctly honors the
30260         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30261         However, the non-_LIBC implementation would ignore that syntax-bit
30262         flag and return REG_ERANGE unconditionally.
30263         This change makes it honor that flag.
30264         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30265         Make two pointer parameters "const".
30266         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30267         (parse_bracket_exp): Update caller.
30268
30269         regex.m4: correct the reversed range endpoint ([b-a]) test
30270         * m4/regex.m4: When requiring that [b-a] evoke failure,
30271         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30272         test pass once again for x86-based systems.
30273
30274 2010-03-19  Bruno Haible  <bruno@clisp.org>
30275
30276         scandir: Fix link error on Solaris 8.
30277         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30278         macros.
30279
30280 2010-03-19  Bruno Haible  <bruno@clisp.org>
30281
30282         getusershell: Fix documentation.
30283         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30284         module.
30285         * doc/glibc-functions/setusershell.texi: Likewise.
30286
30287         getusershell: Provide declaration, missing on Solaris 9.
30288         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30289         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30290         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30291         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30293         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30294         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30295         HAVE_GETUSERSHELL.
30296         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30297
30298 2010-03-19  Bruno Haible  <bruno@clisp.org>
30299
30300         wctype: Provide iswblank function.
30301         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30302         exists and is fine.
30303         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30304         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30305         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30306         * doc/posix-functions/iswblank.texi: Update.
30307
30308 2010-03-19  Bruno Haible  <bruno@clisp.org>
30309
30310         Tests of module 'pty' in C++ mode.
30311         * modules/pty-tests: New file.
30312         * tests/test-pty-c++.cc: New file.
30313         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30314
30315 2010-03-19  Eric Blake  <eblake@redhat.com>
30316
30317         logb: fix documentation
30318         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30319         1.5 declaration bug.
30320
30321         forkpty, openpty: prefer glibc's const-safe prototype
30322         * lib/forkpty.c (rpl_forkpty): New file.
30323         * lib/openpty.c (rpl_openpty): Likewise.
30324         * modules/forkpty (Files): Distribute it.
30325         * modules/openpty (Files): Likewise.
30326         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30327         check...
30328         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30329         replacement for for non-const BSD signature.
30330         * modules/pty (Makefile.am): Substitute witnesses.
30331         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30332         * tests/test-forkpty.c: Update signature check.
30333         * tests/test-openpty.c: Likewise.
30334         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30335         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30336
30337         forkpty, openpty: split functions into new modules
30338         * modules/pty (Makefile.am): Substitute new witnesses.
30339         (Libraries): Move library detection...
30340         * modules/forkpty: ...into new module.
30341         * modules/openpty: Another new module.
30342         * modules/pty-tests: Rename and split...
30343         * modules/forkpty-tests: ...to this...
30344         * modules/openpty-tests: ...and this.
30345         * tests/test-pty.c: Rename and split...
30346         * tests/test-forkpty.c: ...to this...
30347         * tests/test-openpty.c: ...and this.
30348         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30349         (gl_PTY): Split library searching...
30350         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30351         (gl_FORKPTY, gl_OPENPTY): New macros.
30352         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30353         * NEWS: Mention the split.
30354         * MODULES.html.sh (Misc): Document the modules.
30355         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30356         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30357
30358         pty: improve replacement header
30359         * lib/pty.in.h: New file.
30360         * modules/pty (Files): Ship it.
30361         (Makefile.am): Always build replacement.
30362         * m4/pty.m4: Rename...
30363         * m4/pty_h.m4: ...to this.
30364         (gl_PTY): Modernize setting of witness macros; update check of
30365         forkpty to take proper advantage of cache.
30366         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30367
30368         getopt: avoid compiler warning
30369         * lib/getopt.c (attribute_hidden): Remove unused macro.
30370
30371 2010-03-18  Bruno Haible  <bruno@clisp.org>
30372
30373         Fix link errors on Solaris 8.
30374         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30375         * modules/search-tests (test_search_c___LDADD): Likewise.
30376         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30377         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30378         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30379         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30380         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30381         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30382         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30383
30384 2010-03-18  Bruno Haible  <bruno@clisp.org>
30385
30386         Fix bug introduced on 2010-03-14.
30387         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30388         (gl_SPAWN_H): Require it.
30389         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30390         Reported by Simon Josefsson.
30391
30392 2010-03-18  Bruno Haible  <bruno@clisp.org>
30393
30394         Fix typo introduced on 2009-12-31.
30395         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30396         posix_spawn_file_actions_adddup2.
30397
30398 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30399         and Eric Blake  <eblake@redhat.com>
30400
30401         test-vc-list-files-git: make more robust
30402         * tests/test-vc-list-files-git.sh: Unset problematic environment
30403         variables.  Chain commands together.
30404
30405 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30406
30407         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30408         `AC_CHECK_DECL' invocation.
30409
30410 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30411
30412         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30413         appears before executable statements. Suggested by Petr Sumbera
30414         <Petr.Sumbera@Sun.COM>.
30415
30416 2010-03-14  Bruno Haible  <bruno@clisp.org>
30417
30418         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30419         portability problems. Instead use a simpler test.
30420         (main): Check that invalid arguments are rejected only on Linux.
30421
30422 2010-03-14  Bruno Haible  <bruno@clisp.org>
30423
30424         Fix bug introduced on 2009-12-31.
30425         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30426         gl_PREREQ_SYS_H_WINSOCK2 always.
30427         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30428         SYS_SOCKET_H variable.
30429         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30430         Update comments.
30431         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30432         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30433         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30434         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30435         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30436
30437 2010-03-14  Bruno Haible  <bruno@clisp.org>
30438
30439         Fix values returned by sinl, cosl.
30440         * lib/trigl.h: Add specification comments.
30441         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30442         that combines the values from the precomputed table with the values of
30443         the Chebyshev polynomials.
30444
30445 2010-03-14  Bruno Haible  <bruno@clisp.org>
30446
30447         Fix compilation error when modules 'posix_spawn[p]' are not used.
30448         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30449         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30450
30451 2010-03-14  Bruno Haible  <bruno@clisp.org>
30452
30453         Fix compilation error on mingw when module 'time_r' is not used.
30454         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30455         is 1.
30456         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30457         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30458         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30459         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30460
30461 2010-03-14  Bruno Haible  <bruno@clisp.org>
30462
30463         Fix compilation error with Sun C.
30464         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30465         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30466         instead of GCC specific ULONG_LONG_MAX.
30467         * lib/xstrtoll.c: Likewise.
30468         * lib/xstrtoull.c: Likewise.
30469
30470 2010-03-13  Bruno Haible  <bruno@clisp.org>
30471
30472         Allow the user to disable C++ code and tests.
30473         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30474         (gl_PROG_ANSI_CXX): Require it.
30475
30476 2010-03-13  Bruno Haible  <bruno@clisp.org>
30477
30478         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30479         cases.
30480
30481 2010-03-13  Bruno Haible  <bruno@clisp.org>
30482
30483         Test that gnulib does not break the standard C++ headers.
30484         * tests/test-locale-c++2.cc: New file.
30485         * modules/locale-tests (Files): Add it.
30486         (Makefile.am): Compile it for test-locale-c++.
30487         * tests/test-math-c++2.cc: New file.
30488         * modules/math-tests (Files): Add it.
30489         (Makefile.am): Compile it for test-math-c++.
30490         * tests/test-signal-c++2.cc: New file.
30491         * modules/signal-tests (Files): Add it.
30492         (Makefile.am): Compile it for test-signal-c++.
30493         * tests/test-stdio-c++2.cc: New file.
30494         * modules/stdio-tests (Files): Add it.
30495         (Makefile.am): Compile it for test-stdio-c++.
30496         * tests/test-stdlib-c++2.cc: New file.
30497         * modules/stdlib-tests (Files): Add it.
30498         (Makefile.am): Compile it for test-stdlib-c++.
30499         * tests/test-string-c++2.cc: New file.
30500         * modules/string-tests (Files): Add it.
30501         (Makefile.am): Compile it for test-string-c++.
30502         * tests/test-time-c++2.cc: New file.
30503         * modules/time-tests (Files): Add it.
30504         (Makefile.am): Compile it for test-time-c++.
30505         Reported by John W. Eaton <jwe@gnu.org>.
30506
30507 2010-03-13  Bruno Haible  <bruno@clisp.org>
30508
30509         * gnulib-tool (func_usage): Clarify which options are available for
30510         --create-testdir and --create-megatestdir.
30511
30512 2010-03-13  Bruno Haible  <bruno@clisp.org>
30513
30514         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30515         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30516         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30517         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30518         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30519         when appropriate.
30520         Reported by Jim Meyering.
30521
30522 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30523
30524         * gnulib-tool (func_import): Explain origin of code.
30525
30526 2010-03-12  Bruno Haible  <bruno@clisp.org>
30527
30528         Fix problem with automake's definition of CXXLINK.
30529         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30530         Reported by Simon Josefsson and Ludovic Courtès.
30531
30532 2010-03-12  Bruno Haible  <bruno@clisp.org>
30533
30534         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30535         stable releases.
30536
30537 2010-03-11  Bruno Haible  <bruno@clisp.org>
30538
30539         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30540         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30541         whether the system provides one variant or multiple variants of the
30542         function.
30543         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30544         C++ compilers.
30545         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30546         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30547         Reported by Jim Meyering.
30548
30549 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30550
30551         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30552
30553 2010-03-08  Bruno Haible  <bruno@clisp.org>
30554
30555         gnulib-tool: Add support for --libtool in --create-testdir.
30556         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30557         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30558
30559 2010-03-08  Eric Blake  <eblake@redhat.com>
30560
30561         gnulib-tool.texi: mention possibility of git submodule
30562         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30563         submodules.
30564         * doc/.gitignore: Ignore another generated file.
30565
30566 2010-03-08  Karl Berry  <karl@gnu.org>
30567
30568         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30569         of committing gnulib files while skipping others.
30570
30571 2010-03-07  Bruno Haible  <bruno@clisp.org>
30572
30573         Tests of module 'wctype' in C++ mode.
30574         * tests/test-wctype-c++.cc: New file.
30575         * modules/wctype-tests (Files): Add it and tests/signature.h.
30576         (Depends-on): Add ansi-c++-opt.
30577         (Makefile.am): Arrange to compile and run test-wctype-c++.
30578
30579         Tests of module 'wchar' in C++ mode.
30580         * tests/test-wchar-c++.cc: New file.
30581         * modules/wchar-tests (Files): Add it and tests/signature.h.
30582         (Depends-on): Add ansi-c++-opt.
30583         (Makefile.am): Arrange to compile and run test-wchar-c++.
30584         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30585         gl_MODULE_INDICATOR.
30586
30587         Tests of module 'unistd' in C++ mode.
30588         * tests/test-unistd-c++.cc: New file.
30589         * modules/unistd-tests (Files): Add it and tests/signature.h.
30590         (Depends-on): Add ansi-c++-opt.
30591         (Makefile.am): Arrange to compile and run test-unistd-c++.
30592         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30593         gl_MODULE_INDICATOR.
30594
30595         Tests of module 'time' in C++ mode.
30596         * tests/test-time-c++.cc: New file.
30597         * modules/time-tests (Files): Add it and tests/signature.h.
30598         (Depends-on): Add ansi-c++-opt.
30599         (Makefile.am): Arrange to compile and run test-time-c++.
30600         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30601
30602         Tests of module 'sys_time' in C++ mode.
30603         * tests/test-sys_time-c++.cc: New file.
30604         * modules/sys_time-tests (Files): Add it and tests/signature.h.
30605         (Depends-on): Add ansi-c++-opt.
30606         (Makefile.am): Arrange to compile and run test-sys_time-c++.
30607         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
30608         gl_MODULE_INDICATOR.
30609
30610         Tests of module 'sys_stat' in C++ mode.
30611         * tests/test-sys_stat-c++.cc: New file.
30612         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
30613         (Depends-on): Add ansi-c++-opt.
30614         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
30615         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
30616         gl_MODULE_INDICATOR.
30617
30618         Tests of module 'sys_socket' in C++ mode.
30619         * tests/test-sys_socket-c++.cc: New file.
30620         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
30621         (Depends-on): Add ansi-c++-opt.
30622         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
30623         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
30624         gl_MODULE_INDICATOR.
30625
30626         Tests of module 'sys_select' in C++ mode.
30627         * tests/test-sys_select-c++.cc: New file.
30628         * modules/sys_select-tests (Files): Add it and tests/signature.h.
30629         (Depends-on): Add ansi-c++-opt.
30630         (Makefile.am): Arrange to compile and run test-sys_select-c++.
30631         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
30632         gl_MODULE_INDICATOR.
30633
30634         Tests of module 'sys_ioctl' in C++ mode.
30635         * tests/test-sys_ioctl-c++.cc: New file.
30636         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
30637         (Depends-on): Add ansi-c++-opt.
30638         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
30639         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
30640         gl_MODULE_INDICATOR.
30641
30642         Tests of module 'string' in C++ mode.
30643         * tests/test-string-c++.cc: New file.
30644         * modules/string-tests (Files): Add it and tests/signature.h.
30645         (Depends-on): Add ansi-c++-opt.
30646         (Makefile.am): Arrange to compile and run test-string-c++.
30647         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
30648         gl_MODULE_INDICATOR.
30649
30650         Tests of module 'stdlib' in C++ mode.
30651         * tests/test-stdlib-c++.cc: New file.
30652         * modules/stdlib-tests (Files): Add it and tests/signature.h.
30653         (Depends-on): Add ansi-c++-opt.
30654         (Makefile.am): Arrange to compile and run test-stdlib-c++.
30655         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
30656         gl_MODULE_INDICATOR.
30657
30658         Tests of module 'stdio' in C++ mode.
30659         * tests/test-stdio-c++.cc: New file.
30660         * modules/stdio-tests (Files): Add it and tests/signature.h.
30661         (Depends-on): Add ansi-c++-opt.
30662         (Makefile.am): Arrange to compile and run test-stdio-c++.
30663         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
30664         gl_MODULE_INDICATOR.
30665
30666         Tests of module 'spawn' in C++ mode.
30667         * tests/test-spawn-c++.cc: New file.
30668         * modules/spawn-tests (Files): Add it and tests/signature.h.
30669         (Depends-on): Add ansi-c++-opt.
30670         (Makefile.am): Arrange to compile and run test-spawn-c++.
30671         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
30672         gl_MODULE_INDICATOR.
30673
30674         Tests of module 'signal' in C++ mode.
30675         * tests/test-signal-c++.cc: New file.
30676         * modules/signal-tests (Files): Add it and tests/signature.h.
30677         (Depends-on): Add ansi-c++-opt.
30678         (Makefile.am): Arrange to compile and run test-signal-c++.
30679         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
30680         gl_MODULE_INDICATOR.
30681
30682         Tests of module 'search' in C++ mode.
30683         * tests/test-search-c++.cc: New file.
30684         * modules/search-tests (Files): Add it and tests/signature.h.
30685         (Depends-on): Add ansi-c++-opt.
30686         (Makefile.am): Arrange to compile and run test-search-c++.
30687         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
30688         gl_MODULE_INDICATOR.
30689
30690         Tests of module 'math' in C++ mode.
30691         * tests/test-math-c++.cc: New file.
30692         * modules/math-tests (Files): Add it and tests/signature.h.
30693         (Depends-on): Add ansi-c++-opt.
30694         (Makefile.am): Arrange to compile and run test-math-c++.
30695         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30696
30697         Tests of module 'locale' in C++ mode.
30698         * tests/test-locale-c++.cc: New file.
30699         * modules/locale-tests (Files): Add it and tests/signature.h.
30700         (Depends-on): Add ansi-c++-opt.
30701         (Makefile.am): Arrange to compile and run test-locale-c++.
30702         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
30703         gl_MODULE_INDICATOR.
30704
30705         Tests of module 'langinfo' in C++ mode.
30706         * tests/test-langinfo-c++.cc: New file.
30707         * modules/langinfo-tests (Files): Add it and tests/signature.h.
30708         (Depends-on): Add ansi-c++-opt.
30709         (Makefile.am): Arrange to compile and run test-langinfo-c++.
30710         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
30711         gl_MODULE_INDICATOR.
30712
30713         Tests of module 'iconv-h' in C++ mode.
30714         * tests/test-iconv-h-c++.cc: New file.
30715         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
30716         (Depends-on): Add ansi-c++-opt.
30717         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
30718
30719         Tests of module 'glob' in C++ mode.
30720         * tests/test-glob-c++.cc: New file.
30721         * modules/glob-tests (Files): Add it.
30722         (Depends-on): Add ansi-c++-opt.
30723         (Makefile.am): Arrange to compile and run test-glob-c++.
30724
30725         Tests of module 'fcntl-h' in C++ mode.
30726         * tests/test-fcntl-h-c++.cc: New file.
30727         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
30728         (Depends-on): Add ansi-c++-opt.
30729         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
30730         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
30731         gl_MODULE_INDICATOR.
30732
30733         Tests of module 'dirent' in C++ mode.
30734         * tests/test-dirent-c++.cc: New file.
30735         * modules/dirent-tests (Files): Add it and tests/signature.h.
30736         (Depends-on): Add ansi-c++-opt.
30737         (Makefile.am): Arrange to compile and run test-dirent-c++.
30738         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30739         gl_MODULE_INDICATOR.
30740
30741         New module 'ansi-c++-opt'.
30742         * modules/ansi-c++-opt: New file.
30743         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
30744
30745         Document C++ namespace mode.
30746         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
30747
30748         wctype: Avoid #define replacements in C++ mode.
30749         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
30750         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
30751         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
30752         In C++, define a namespaced alias symbol.
30753         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
30754         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
30755         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
30756         rule.
30757
30758         wchar: Avoid #define replacements in C++ mode.
30759         * lib/wchar.in.h: Include c++defs.h.
30760         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
30761         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
30762         symbol.
30763         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
30764         * modules/wchar (Depends-on): Add c++defs.
30765         (Makefile.am): Update wchar.h rule.
30766
30767         unistd: Avoid #define replacements in C++ mode.
30768         * lib/unistd.in.h: Include c++defs.h.
30769         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
30770         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
30771         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
30772         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
30773         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
30774         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
30775         symbol.
30776         (environ): Update.
30777         * modules/unistd (Depends-on): Add c++defs.
30778         (Makefile.am): Update unistd.h rule.
30779
30780         time: Avoid #define replacements in C++ mode.
30781         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
30782         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
30783         define a namespaced alias symbol.
30784         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
30785         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
30786         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
30787         * modules/time (Depends-on): Add c++defs, warn-on-use.
30788         (Makefile.am): Update time.h rule.
30789         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30790         * modules/nanosleep (configure.ac): Likewise.
30791         * modules/strptime (configure.ac): Likewise.
30792         * modules/timegm (configure.ac): Likewise.
30793
30794         sys_time: Avoid #define replacements in C++ mode.
30795         * lib/sys_time.in.h: Include c++defs.h.
30796         (gettimeofday): In C++, define a namespaced alias symbol.
30797         * modules/sys_time (Depends-on): Add c++defs.
30798         (Makefile.am): Update sys/time.h rule.
30799
30800         sys_stat: Avoid #define replacements in C++ mode.
30801         * lib/sys_stat.in.h: Include c++defs.h.
30802         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
30803         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
30804         namespaced alias symbol.
30805         In C++, define a namespaced alias symbol.
30806         * modules/sys_stat (Depends-on): Add c++defs.
30807         (Makefile.am): Update sys/stat.h rule.
30808
30809         sys_socket: Avoid #define replacements in C++ mode.
30810         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
30811         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
30812         definitions also when the system has a <sys/socket.h>.
30813         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30814         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
30815         In C++, define a namespaced alias symbol.
30816         * modules/sys_socket (Depends-on): Add c++defs.
30817         (Makefile.am): Update sys/socket.h rule.
30818
30819         sys_select: Avoid #define replacements in C++ mode.
30820         * lib/sys_select.in.h: Include c++defs.h. Enable the function
30821         definitions also when the system has a <sys/select.h>.
30822         (select): In C++, define a namespaced alias symbol.
30823         * modules/sys_select (Depends-on): Add c++defs.
30824         (Makefile.am): Update sys/select.h rule.
30825
30826         sys_ioctl: Avoid #define replacements in C++ mode.
30827         * lib/sys_ioctl.in.h: Include c++defs.h.
30828         (ioctl): In C++, define a namespaced alias symbol.
30829         * modules/sys_ioctl (Depends-on): Add c++defs.
30830         (Makefile.am): Update sys/ioctl.h rule.
30831
30832         string: Avoid #define replacements in C++ mode.
30833         * lib/string.in.h: Include c++defs.h.
30834         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
30835         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30836         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30837         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
30838         strsignal, strverscmp): In C++, define a namespaced alias symbol.
30839         * modules/string (Depends-on): Add c++defs.
30840         (Makefile.am): Update string.h rule.
30841
30842         stdlib: Avoid #define replacements in C++ mode.
30843         * lib/stdlib.in.h: Include c++defs.h.
30844         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
30845         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
30846         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
30847         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
30848         symbol.
30849         * modules/stdlib (Depends-on): Add c++defs.
30850         (Makefile.am): Update stdlib.h rule.
30851
30852         stdio: Avoid #define replacements in C++ mode.
30853         * lib/stdio.in.h: Include c++defs.h.
30854         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
30855         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
30856         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
30857         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
30858         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
30859         namespaced alias symbol.
30860         * modules/stdio (Depends-on): Add c++defs.
30861         (Makefile.am): Update stdio.h rule.
30862
30863         spawn: Avoid #define replacements in C++ mode.
30864         * lib/spawn.in.h: Include c++defs.h.
30865         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30866         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30867         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30868         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30869         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30870         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30871         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30872         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30873         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30874         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30875         In C++, define a namespaced alias symbol.
30876         * modules/spawn (Depends-on): Add c++defs.
30877         (Makefile.am): Update spawn.h rule.
30878
30879         signal: Avoid #define replacements in C++ mode.
30880         * lib/signal.in.h: Include c++defs.h.
30881         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30882         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
30883         namespaced alias symbol.
30884         * modules/signal (Depends-on): Add c++defs.
30885         (Makefile.am): Update signal.h rule.
30886
30887         search: Avoid #define replacements in C++ mode.
30888         * lib/search.in.h: Include c++defs.h.
30889         (_gl_search_compar_fn, _gl_search_action_fn): New types.
30890         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
30891         symbol.
30892         * modules/search (Depends-on): Add c++defs.
30893         (Makefile.am): Update search.h rule.
30894
30895         math: Avoid #define replacements in C++ mode.
30896         * lib/math.in.h: Include c++defs.h.
30897         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
30898         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
30899         trunc, truncl): In C++, define a namespaced alias symbol.
30900         * modules/math (Depends-on): Add c++defs.
30901         (Makefile.am): Update math.h rule.
30902
30903         locale: Avoid #define replacements in C++ mode.
30904         * lib/locale.in.h: Include c++defs.h.
30905         (duplocale): In C++, define a namespaced alias symbol.
30906         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
30907         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
30908         * modules/locale (Depends-on): Add c++defs.
30909         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
30910
30911         langinfo: Avoid #define replacements in C++ mode.
30912         * lib/langinfo.in.h: Include c++defs.h.
30913         (nl_langinfo): In C++, define a namespaced alias symbol.
30914         * modules/langinfo (Depends-on): Add c++defs.
30915         (Makefile.am): Update langinfo.h rule.
30916
30917         iconv-h: Avoid #define replacements in C++ mode.
30918         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
30919         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
30920         symbol.
30921         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30922         whenever iconv is present.
30923         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
30924         (Makefile.am): Update iconv.h rule.
30925
30926         glob: Avoid #define replacements in C++ mode.
30927         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
30928         (_gl_glob_errfunc_fn): New type.
30929         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
30930         symbol.
30931         * modules/glob (Depends-on): Add c++defs, warn-on-use.
30932         (Makefile.am): Update glob.h rule.
30933
30934         fcntl-h: Avoid #define replacements in C++ mode.
30935         * lib/fcntl.in.h: Include c++defs.h.
30936         (fcntl, open, openat): In C++, define a namespaced alias symbol.
30937         * modules/fcntl-h (Depends-on): Add c++defs.
30938         (Makefile.am): Update fcntl.h rule.
30939
30940         dirent: Avoid #define replacements in C++ mode.
30941         * lib/dirent.in.h: Include c++defs.h.
30942         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
30943         namespaced alias symbol.
30944         (dirfd): Update declaration.
30945         * modules/dirent (Depends-on): Add c++defs.
30946         (Makefile.am): Update dirent.h rule.
30947
30948         ctype: Make it usable in C++ code.
30949         * lib/ctype.in.h: Include c++defs.h.
30950         (isblank): Declare as extern "C".
30951         * modules/ctype (Depends-on): Add c++defs.
30952         (Makefile.am): Update ctype.h rule.
30953
30954         New module 'c++defs'.
30955         * modules/c++defs: New file.
30956         * build-aux/c++defs.h: New file.
30957         Reported by John W. Eaton <jwe@gnu.org>.
30958
30959 2010-03-07  Bruno Haible  <bruno@clisp.org>
30960
30961         logb: Provide missing declaration for Cygwin.
30962         * lib/math.in.h (logb): New declaration.
30963         * m4/logb.m4: New file.
30964         * modules/logb (Files): Add m4/logb.m4.
30965         (Depends-on): Add math.
30966         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30967         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30969         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30970         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30971
30972 2010-03-07  Bruno Haible  <bruno@clisp.org>
30973
30974         Fix test-cond link error.
30975         * tests/test-cond.c: Include <stdio.h>.
30976
30977 2010-03-07  Bruno Haible  <bruno@clisp.org>
30978
30979         Fix test-dirent-safer link error.
30980         * modules/dirent-safer-tests (Makefile.am): Define
30981         test_dirent_safer_LDADD.
30982
30983 2010-03-07  Bruno Haible  <bruno@clisp.org>
30984
30985         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30986         among default module list.
30987
30988 2010-03-07  Bruno Haible  <bruno@clisp.org>
30989
30990         Fix link error on platforms with GNU libiconv.
30991         * modules/unistr/u8-strcoll-tests (Makefile): Define
30992         test_u8_strcoll_LDADD.
30993         * modules/unistr/u16-strcoll-tests (Makefile): Define
30994         test_u16_strcoll_LDADD.
30995         * modules/unistr/u32-strcoll-tests (Makefile): Define
30996         test_u32_strcoll_LDADD.
30997
30998 2010-03-07  Bruno Haible  <bruno@clisp.org>
30999
31000         Use POSIX declarations for socket functions.
31001         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31002         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31003         rpl_sendto): Change declaration to match POSIX.
31004         * lib/connect.c (rpl_connect): Likewise.
31005         * lib/accept.c (rpl_accept): Likewise.
31006         * lib/bind.c (rpl_bind): Likewise.
31007         * lib/getpeername.c (rpl_getpeername): Likewise.
31008         * lib/getsockname.c (rpl_getsockname): Likewise.
31009         * lib/recv.c (rpl_recv): Likewise.
31010         * lib/send.c (rpl_send): Likewise.
31011         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31012         * lib/sendto.c (rpl_sendto): Likewise.
31013
31014 2010-03-06  Bruno Haible  <bruno@clisp.org>
31015
31016         Clarify access, euidaccess, faccessat.
31017         * doc/posix-functions/faccessat.texi: Mention security problem under
31018         "Other problems", not "Portability problems".
31019         * doc/posix-functions/access.texi: Likewise. Mention a related security
31020         problem.
31021         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31022         * lib/euidaccess.c: Add comments about platforms.
31023         * lib/unistd.in.h (access, euidaccess): Add warnings.
31024
31025 2010-03-07  Bruno Haible  <bruno@clisp.org>
31026
31027         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31028         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31029         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31030         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31031         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31032         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31033         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31034         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31035         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31036         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31037         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31038         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31039         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31040         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31041         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31042         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31043         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31044         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31045         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31046         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31047         Likewise.
31048         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31049         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31050         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31051         Likewise.
31052         * tests/test-spawn.c (main): Make it work when
31053         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31054
31055 2010-03-07  Bruno Haible  <bruno@clisp.org>
31056
31057         Fix incorrect Makefile.am generation in German locale.
31058         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31059         Execute sed command with character range in C locale.
31060
31061 2010-03-06  Bruno Haible  <bruno@clisp.org>
31062
31063         Tests for module 'iconv-h'.
31064         * modules/iconv-h-tests: New file.
31065         * tests/test-iconv-h.c: New file.
31066
31067         New module 'iconv-h'.
31068         * modules/iconv-h: New file.
31069         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31070         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31071         (configure.ac): Remove gl_ICONV_H.
31072         (Makefile.am): Remove rule for iconv.h.
31073
31074 2010-03-06  Bruno Haible  <bruno@clisp.org>
31075
31076         More consistent naming of *.m4 files.
31077         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31078         * modules/wctype (Files): Update.
31079
31080         More consistent naming of *.m4 files.
31081         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31082         * modules/wchar (Files): Update.
31083
31084 2010-03-06  Jim Meyering  <meyering@redhat.com>
31085
31086         euidaccess: relax license to LGPLv2+
31087         * modules/euidaccess (License): Relax to LGPLv2+.
31088
31089 2010-03-06  Bruno Haible  <bruno@clisp.org>
31090
31091         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31092         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31093         (Makefile.am): Augment lib_SOURCES instead.
31094
31095 2010-03-04  Jim Meyering  <meyering@redhat.com>
31096
31097         utime: remove obsolete module
31098         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31099         unnecessary for years, and has been marked as obsolete for 10 months.
31100         * modules/utime: Remove file.
31101         * lib/utime.c: Remove file.
31102         * m4/utime.m4: Remove file.
31103         * m4/utimes-null.m4: Remove file.
31104         * doc/posix-functions/utime.texi (utime): Remove reference to
31105         the module.  Move the sole "fixed by gnulib" item into the
31106         "problems not fixed by Gnulib" list.
31107         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31108
31109 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31110
31111         * modules/exit (License): Relax license to LGPLv2+.
31112         (Status): Mark as obsolete.
31113         * NEWS: Mention deprecated 'exit' module.
31114         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31115         of now obsolete 'exit'.
31116
31117 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31118
31119         fts-lgpl: remove unused module
31120         * modules/fts-lgpl: Remove.
31121         * MODULES.html.sh (func_all_modules): Adjust.
31122         * check-module (find_included_lib_files): Adjust.
31123         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31124
31125 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31126
31127         copy-acl: enhance Solaris ACL error handling
31128         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31129         * lib/set-mode-acl.c (qset_acl): Likewise.
31130
31131 2010-03-02  Bruno Haible  <bruno@clisp.org>
31132
31133         spawn: Don't override the system defined values on FreeBSD 8.
31134         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31135         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31136         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31137         if HAVE_POSIX_SPAWN is 1.
31138         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31139
31140 2010-03-01  Bruno Haible  <bruno@clisp.org>
31141
31142         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31143         regarding Automake.
31144
31145 2010-02-25  Bruno Haible  <bruno@clisp.org>
31146
31147         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31148         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31149         setting, not afterwards.
31150         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31151
31152 2010-02-24  Eric Blake  <eblake@redhat.com>
31153
31154         bootstrap, git-version-gen: use timestamp
31155         * build-aux/git-version-gen (scriptversion): Force UTC.
31156         * build-aux/bootstrap (scriptversion): New variable.
31157
31158         bootstrap: allow older git
31159         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31160         older than 1.6.4.  Requested by the libvirt project.
31161
31162 2010-02-23  Eric Blake  <eblake@redhat.com>
31163
31164         warn-on-use: work with old autoconf
31165         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31166         AS_VAR semantics of autoconf 2.60.
31167         Reported by Bruno Haible.
31168
31169         bootstrap: improve some comments
31170         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31171         clarification comments.
31172
31173         gettimeofday: provide correct function
31174         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31175         when replacement is declared, otherwise provide gettimeofday.
31176         Reported by Michael Goffioul.
31177
31178 2010-02-23  Jim Meyering  <meyering@redhat.com>
31179
31180         lib-ignore: relax license to "unlimited", not LGPLv2+
31181         * modules/lib-ignore (License): Relax to "unlimited".
31182
31183 2010-02-23  Jim Meyering  <meyering@redhat.com>
31184
31185         lib-ignore: relax license to LGPLv2+
31186         * modules/lib-ignore (License): Relax to LGPLv2+.
31187
31188 2010-02-22  Eric Blake  <eblake@redhat.com>
31189
31190         lseek: avoid bash 3.2 broken pipe bug
31191         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31192         warning from bash 3.2.
31193         Reported by Ben Pfaff, with analysis from Bruno Haible.
31194
31195         bootstrap: support non-FSF copyright holder
31196         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31197         bootstrap.conf override of COPYRIGHT_HOLDER.
31198         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31199
31200         bootstrap: interoperate with gettext 0.14.1
31201         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31202
31203         bootstrap: allow for alternate submodule location
31204         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31205         hardcoding submodule location.
31206         (gnulib_mk): Allow direct use of Makefile.am.
31207
31208         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31209         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31210         rather than reconfiguring where the submodule points.
31211
31212         gettimeofday: restore support for platforms that lack function
31213         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31214         replacement if function is missing.
31215         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31216         * modules/sys_time (Makefile.am): Substitute it.
31217         * lib/sys_time.in.h (gettimeofday): Check it.
31218         Reported by Michael Goffioul.
31219
31220 2010-02-21  Bruno Haible  <bruno@clisp.org>
31221
31222         * lib/stdio.in.h (obstack_printf): Fix typo.
31223
31224 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31225
31226         vc-list-files: use bzr ls's -R option
31227         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31228         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31229
31230 2010-02-21  Jim Meyering  <meyering@redhat.com>
31231
31232         init.sh: fix EXEEXT shims to work also for names like test-prog
31233         * tests/init.sh: Re-exec a better shell, when needed.
31234         If the current shell lacks support for posix $(...), an init.sh-using
31235         test will now try to find a shell that supports that.  If EXEEXT is
31236         nonempty, we also require support for hyphen-in-alias-name and shell
31237         substitutions like ${var#glob}.  Failure to find such a shell results
31238         in a skipped test.
31239
31240 2010-02-21  Bruno Haible  <bruno@clisp.org>
31241
31242         Really work around around "broken pipe" error message from bash 3.2.
31243         * gnulib-tool (func_reset_sigpipe): Remove function.
31244         (echo): In bash 3.2, define to a function that uses printf.
31245         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31246
31247 2010-02-20  Bruno Haible  <bruno@clisp.org>
31248
31249         Restore support for automake 1.9.6 with autoconf 2.61.
31250         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31251         Reported by James Youngman <jay@gnu.org>.
31252
31253 2010-02-20  Bruno Haible  <bruno@clisp.org>
31254
31255         Improve *printf warning condition.
31256         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31257         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31258         and the function is overridden due to SIGPIPE emulation.
31259
31260 2010-02-20  Bruno Haible  <bruno@clisp.org>
31261
31262         * lib/stdio.in.h: Tweak comments.
31263
31264 2010-02-19  Bruno Haible  <bruno@clisp.org>
31265
31266         Make it easier to find modules. New gnulib-tool option '--find'.
31267         * gnulib-tool: New option --find.
31268         (func_usage): Document it.
31269         (func_sanitize_modulelist): New function, extracted from
31270         func_all_modules.
31271         (func_all_modules): Invoke it.
31272         * doc/gnulib-tool.texi (Which modules?): New node.
31273
31274 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31275
31276         * lib/sys_select.in.h: Provide select replacement even if
31277         sys/select.h exists on a system, for Interix.
31278
31279 2010-02-18  Jim Meyering  <meyering@redhat.com>
31280
31281         init.sh: don't use $(...) just yet
31282         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31283         to accommodate e.g., Solaris' /bin/sh.
31284
31285 2010-02-17  Bruno Haible  <bruno@clisp.org>
31286
31287         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31288         Reported by Ludovic Courtès <ludo@gnu.org>.
31289
31290 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31291
31292         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31293         linking with -lintl.
31294
31295 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31296
31297         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31298         if not provided by the system's netdb.h.  Reported by
31299         ludo@gnu.org (Ludovic Courtès).
31300
31301 2010-02-15  Jim Meyering  <meyering@redhat.com>
31302
31303         init.sh: improve portability and efficiency
31304         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31305         "dummy" in a for loop.
31306         Use '!', not '^' to select the complement of a character set used
31307         in a "case" statement.
31308         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31309         Suggestions from Eric Blake.
31310
31311         init.sh: automatically accommodate programs with the .exe suffix
31312         Automatically arrange for an invocation of "prog" to execute the
31313         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31314         may use the simpler "prog", yet still work when built on a system
31315         that requires specifying the added suffix.
31316         Do this by constructing a function named "prog" that invokes
31317         "prog.exe" for each .exe file in selected directories.
31318         * tests/init.sh (find_exe_basenames_): New function.
31319         (create_exe_shim_functions_): New function.
31320         (path_prepend_): Use it.
31321
31322         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31323         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31324         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31325
31326 2010-02-14  Jim Meyering  <meyering@redhat.com>
31327
31328         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31329         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31330         (sc_prohibit_hash_pjw_without_use): New rule.
31331
31332         maint.mk: allow the default upload destination dir to be overridden
31333         * top/maint.mk (upload_dest_dir_): Define with a default that
31334         preserves the status quo.
31335         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31336         Reported by Peter Simons.
31337
31338         maint.mk: prohibit inclusion of "hash.h" without_use
31339         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31340
31341 2010-02-10  Jim Meyering  <meyering@redhat.com>
31342
31343         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31344         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31345
31346 2010-02-09  Eric Blake  <ebb9@byu.net>
31347         and Bruno Haible  <bruno@clisp.org>
31348
31349         obstack-printf-posix: ensure declaration
31350         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31351         extracted from gl_FUNC_OBSTACK_PRINTF.
31352         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31353         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31354         Likewise.
31355         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31356         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31357         0.
31358
31359 2010-02-08  Bruno Haible  <bruno@clisp.org>
31360
31361         gnulib-tool: Fix typo in 2010-02-07 commit.
31362         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31363         Reported by Eric Blake.
31364
31365 2010-02-07  Bruno Haible  <bruno@clisp.org>
31366
31367         gnulib-tool: Fix up caching patches.
31368         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31369         option --no-cache. Use associative arrays when supported by the shell.
31370         (sed_comments): New variable.
31371         (modcache): Renamed from do_cache.
31372         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31373         abbreviate unnecessarily.
31374         (have_associative): New variable.
31375         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31376         way also for ksh and zsh.
31377         (func_init_sed_convert_to_cache_statements): New function, extracted
31378         from func_cache_lookup_module. Add support for associative arrays.
31379         Don't set the c_MODULE_cached variable here. Ignore all lines before
31380         the first field header. Remove only the final newline, not all trailing
31381         newlines. Support empty fields correctly. Limit the use of 'eval' to
31382         assignments.
31383         (func_get_description, func_get_status, func_get_notice,
31384         func_get_applicability, func_get_filelist, func_get_dependencies,
31385         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31386         func_get_automake_snippet, func_get_include_directive,
31387         func_get_link_directive, func_get_license, func_get_maintainer):
31388         Update documentation. List the unoptimized code first. Add support for
31389         associative arrays. Limit the use of 'eval' to assignments.
31390         (func_get_applicability): Undo stylistic pessimisations.
31391         (func_get_automake_snippet, func_get_include_directive): Reduce code
31392         duplication.
31393         (func_modules_transitive_closure, func_modules_add_dummy,
31394         func_modules_notice, func_modules_to_filelist, func_add_file,
31395         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31396         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31397         func_create_testdir, func_create_megatestdir): Update documentation.
31398
31399 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31400
31401         * gnulib-tool (func_cache_lookup_module): Store the module name
31402         belonging to the cache variable; error out if two different
31403         module names map to the same cache variable name.
31404
31405 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31406
31407         gnulib-tool: Make caching optional.
31408         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31409         Update matching short versions of --no-changelog.
31410         (func_usage): Update.
31411         (sed_extract_cache_prog): Renamed from ...
31412         (sed_extract_prog): ... this; revert to old extraction script.
31413         (func_get_description, func_get_status)
31414         (func_get_notice, func_get_applicability, func_get_filelist)
31415         (func_get_dependencies, func_get_autoconf_early_snippet)
31416         (func_get_autoconf_snippet, func_get_automake_snippet)
31417         (func_get_include_directive, func_get_link_directive)
31418         (func_get_license, func_get_maintainer): If $do_cache is false,
31419         use old, non-caching extraction scripts.
31420         Suggestion by Bruno Haible.
31421
31422 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31423
31424         gnulib-tool: cache module metainformation.
31425         * gnulib-tool (sed_extract_prog): Match newline before each
31426         header, and rewrite header to a shell variable suffix.
31427         (func_cache_var, func_cache_lookup_module): New functions,
31428         to turn a module name into a cache variable prefix, and to
31429         look up and cache module metainformation.
31430         (func_get_description, func_get_status)
31431         (func_get_notice, func_get_applicability, func_get_filelist)
31432         (func_get_dependencies, func_get_autoconf_early_snippet)
31433         (func_get_autoconf_snippet, func_get_automake_snippet)
31434         (func_get_include_directive, func_get_link_directive)
31435         (func_get_license, func_get_maintainer): Use
31436         func_cache_lookup_module.
31437
31438 2010-02-07  Bruno Haible  <bruno@clisp.org>
31439
31440         fnctl: Fix missing dependency.
31441         * modules/fcntl (Depends-on): Add getdtablesize.
31442         Reported by John W. Eaton <jwe@gnu.org>.
31443
31444 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31445
31446         Argp: fix recognition of short alias options.
31447
31448         * lib/argp-parse.c (convert_options): Fix improper use of
31449         `|' between character values.
31450         * tests/test-argp.c (group1_option): New alias option
31451         --read (-r).
31452         (group1_parser): Special handling for 'r'.
31453         (test15): New test case.
31454         (test_fun): Add test15.
31455         * tests/test-argp-2.sh: Update expected --help and --usage
31456         outputs.
31457
31458 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31459
31460         * tests/test-argp.c: Fix indentation.
31461
31462 2010-02-04  Eric Blake  <ebb9@byu.net>
31463
31464         gettimeofday: expose type of second argument
31465         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31466         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31467         * tests/test-gettimeofday.c: Use it to silence warning.
31468         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31469         the issue.
31470
31471 2010-02-03  Jim Meyering  <meyering@redhat.com>
31472
31473         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31474         * lib/regcomp.c (TYPE_SIGNED): Define.
31475         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31476
31477         regcomp.c: avoid a new -Wshadow warning
31478         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31479
31480 2010-02-01  Jim Meyering  <meyering@redhat.com>
31481
31482         removing useless parentheses in cpp #define directives
31483         For motivation, see commit c0221df4, "define STREQ(a,b)
31484         consistently, removing useless parentheses"
31485         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31486         * lib/mountlist.c (MNT_IGNORE): Likewise.
31487         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31488
31489 2010-02-01  Eric Blake  <ebb9@byu.net>
31490
31491         sys_time: use link-warning
31492         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31493         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31494         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31495         * modules/sys_time (Depends-on): Add warn-on-use.
31496         (Makefile.am): Always build replacement.
31497         (configure.ac): Update substitutions.
31498         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31499         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31500         bother with SYS_TIME_H.
31501         * modules/gettimeofday (configure.ac): Declare indicator.
31502         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31503         in use.
31504
31505         closein-tests: silence compiler warning
31506         * tests/test-closein.c (main): Ignore fread result.
31507         * modules/closein-tests (Depends-on): Add ignore-value.
31508
31509         tests: silence warning about system return
31510         * tests/test-areadlink-with-size.c (main): Ignore system result.
31511         * tests/test-areadlink.c (main): Likewise.
31512         * tests/test-areadlinkat-with-size.c (main): Likewise.
31513         * tests/test-areadlinkat.c (main): Likewise.
31514         * tests/test-canonicalize-lgpl.c (main): Likewise.
31515         * tests/test-canonicalize.c (main): Likewise.
31516         * tests/test-chown.c (main): Likewise.
31517         * tests/test-fchownat.c (main): Likewise.
31518         * tests/test-fdutimensat.c (main): Likewise.
31519         * tests/test-fstatat.c (main): Likewise.
31520         * tests/test-futimens.c (main): Likewise.
31521         * tests/test-lchown.c (main): Likewise.
31522         * tests/test-link.c (main): Likewise.
31523         * tests/test-linkat.c (main): Likewise.
31524         * tests/test-lstat.c (main): Likewise.
31525         * tests/test-mkdir.c (main): Likewise.
31526         * tests/test-mkdirat.c (main): Likewise.
31527         * tests/test-mkfifo.c (main): Likewise.
31528         * tests/test-mkfifoat.c (main): Likewise.
31529         * tests/test-mknod.c (main): Likewise.
31530         * tests/test-readlink.c (main): Likewise.
31531         * tests/test-remove.c (main): Likewise.
31532         * tests/test-rename.c (main): Likewise.
31533         * tests/test-renameat.c (main): Likewise.
31534         * tests/test-rmdir.c (main): Likewise.
31535         * tests/test-symlink.c (main): Likewise.
31536         * tests/test-symlinkat.c (main): Likewise.
31537         * tests/test-unlink.c (main): Likewise.
31538         * tests/test-unlinkat.c (main): Likewise.
31539         * tests/test-utimens.c (main): Likewise.
31540         * tests/test-utimensat.c (main): Likewise.
31541         * modules/areadlink-tests (Depends-on): Add ignore-value.
31542         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31543         * modules/areadlinkat-tests (Depends-on): Likewise.
31544         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31545         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31546         * modules/canonicalize-tests (Depends-on): Likewise.
31547         * modules/chown-tests (Depends-on): Likewise.
31548         * modules/fdutimensat-tests (Depends-on): Likewise.
31549         * modules/futimens-tests (Depends-on): Likewise.
31550         * modules/lchown-tests (Depends-on): Likewise.
31551         * modules/link-tests (Depends-on): Likewise.
31552         * modules/linkat-tests (Depends-on): Likewise.
31553         * modules/lstat-tests (Depends-on): Likewise.
31554         * modules/mkdir-tests (Depends-on): Likewise.
31555         * modules/mkfifo-tests (Depends-on): Likewise.
31556         * modules/mkfifoat-tests (Depends-on): Likewise.
31557         * modules/mknod-tests (Depends-on): Likewise.
31558         * modules/openat-tests (Depends-on): Likewise.
31559         * modules/readlink-tests (Depends-on): Likewise.
31560         * modules/remove-tests (Depends-on): Likewise.
31561         * modules/rename-tests (Depends-on): Likewise.
31562         * modules/renameat-tests (Depends-on): Likewise.
31563         * modules/rmdir-tests (Depends-on): Likewise.
31564         * modules/symlink-tests (Depends-on): Likewise.
31565         * modules/symlinkat-tests (Depends-on): Likewise.
31566         * modules/unlink-tests (Depends-on): Likewise.
31567         * modules/utimens-tests (Depends-on): Likewise.
31568         * modules/utimensat-tests (Depends-on): Likewise.
31569
31570 2010-01-31  Bruno Haible  <bruno@clisp.org>
31571
31572         Perform the same test for many <math.h> functions.
31573         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31574         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31575         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31576         of gl_MATHFUNC.
31577         * modules/acos (configure.ac): Likewise.
31578         * modules/asin (configure.ac): Likewise.
31579         * modules/atan (configure.ac): Likewise.
31580         * modules/atan2 (configure.ac): Likewise.
31581         * modules/cbrt (configure.ac): Likewise.
31582         * modules/copysign (configure.ac): Likewise.
31583         * modules/cos (configure.ac): Likewise.
31584         * modules/cosh (configure.ac): Likewise.
31585         * modules/erf (configure.ac): Likewise.
31586         * modules/erfc (configure.ac): Likewise.
31587         * modules/exp (configure.ac): Likewise.
31588         * modules/fmod (configure.ac): Likewise.
31589         * modules/hypot (configure.ac): Likewise.
31590         * modules/j0 (configure.ac): Likewise.
31591         * modules/j1 (configure.ac): Likewise.
31592         * modules/jn (configure.ac): Likewise.
31593         * modules/lgamma (configure.ac): Likewise.
31594         * modules/log (configure.ac): Likewise.
31595         * modules/log10 (configure.ac): Likewise.
31596         * modules/log1p (configure.ac): Likewise.
31597         * modules/pow (configure.ac): Likewise.
31598         * modules/remainder (configure.ac): Likewise.
31599         * modules/sin (configure.ac): Likewise.
31600         * modules/sinh (configure.ac): Likewise.
31601         * modules/tan (configure.ac): Likewise.
31602         * modules/tanh (configure.ac): Likewise.
31603         * modules/y0 (configure.ac): Likewise.
31604         * modules/y1 (configure.ac): Likewise.
31605         * modules/yn (configure.ac): Likewise.
31606         Suggested by Paolo Bonzini.
31607
31608 2010-01-31  Bruno Haible  <bruno@clisp.org>
31609
31610         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
31611
31612 2010-01-31  Bruno Haible  <bruno@clisp.org>
31613
31614         Work around getdelim() bug on FreeBSD 8.0.
31615         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
31616         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
31617         not work.
31618         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
31619         is 1.
31620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
31621         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
31622         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
31623         a non-zero size.
31624         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
31625
31626 2010-01-31  Bruno Haible  <bruno@clisp.org>
31627
31628         Work around getline() bug on FreeBSD 8.0.
31629         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
31630         and a non-zero size.
31631         * tests/test-getline.c (main): Likewise.
31632         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
31633         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
31634
31635 2010-01-28  Eric Blake  <ebb9@byu.net>
31636
31637         regex: fix build failure
31638         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
31639         platforms.
31640
31641 2010-01-28  Jim Meyering  <meyering@redhat.com>
31642
31643         regex: do not ignore memory allocation failure
31644         * lib/regex_internal.c (create_cd_newstate): Detect
31645         re_node_set_init_copy failure.   Extracted from glibc commit
31646         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31647
31648         regex: sync more white-space changes from libc
31649         * lib/regex_internal.c: White-space only changes.
31650         * lib/regexec.c: Likewise.
31651
31652         regex: add many uses of __attribute_warn_unused_result__
31653         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
31654         * lib/regexec.c: Likewise.
31655         Extracted from a messy glibc commit.
31656
31657         regcomp.c: spelling and merge-artifact from glibc
31658         * lib/regcomp.c: Merge remainder of glibc's
31659         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31660
31661         regcomp.c: sync white-space changes from glibc
31662         * lib/regcomp.c: Merge to accommodate white space
31663         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31664
31665         regcomp.c: do not ignore internal return values
31666         * lib/regcomp.c: Do not ignore internal return values.
31667         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
31668         but without its white-space changes and spelling fixes.
31669
31670         regex_internal.h: define __attribute_warn_unused_result__
31671         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
31672
31673         maint: add a syntax-check rule to check for vulnerable Makefile.in
31674         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
31675
31676 2010-01-27  Jim Meyering  <meyering@redhat.com>
31677
31678         ncftpput-ftp: clean up spaces
31679         * build-aux/ncftpput-ftp: Make Copyright line consistent.
31680         Remove trailing blanks.
31681
31682 2010-01-27  Simon Josefsson  <simon@josefsson.org>
31683
31684         * build-aux/git-version-gen: Fix copyright statement.
31685         * build-aux/gnupload: Likewise.
31686         * tests/test-arcfour.c: Likewise.
31687         * tests/test-arctwo.c: Likewise.
31688         * tests/test-count-one-bits.c: Likewise.
31689         * tests/test-crc.c: Likewise.
31690         * tests/test-des.c: Likewise.
31691         * tests/test-gc-arcfour.c: Likewise.
31692         * tests/test-gc-arctwo.c: Likewise.
31693         * tests/test-gc-des.c: Likewise.
31694         * tests/test-gc-hmac-md5.c: Likewise.
31695         * tests/test-gc-hmac-sha1.c: Likewise.
31696         * tests/test-gc-md2.c: Likewise.
31697         * tests/test-gc-md4.c: Likewise.
31698         * tests/test-gc-md5.c: Likewise.
31699         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31700         * tests/test-gc-rijndael.c: Likewise.
31701         * tests/test-gc-sha1.c: Likewise.
31702         * tests/test-gc.c: Likewise.
31703         * tests/test-gethostname.c: Likewise.
31704         * tests/test-gettimeofday.c: Likewise.
31705         * tests/test-hash.c: Likewise.
31706         * tests/test-hmac-md5.c: Likewise.
31707         * tests/test-hmac-sha1.c: Likewise.
31708         * tests/test-md2.c: Likewise.
31709         * tests/test-md4.c: Likewise.
31710         * tests/test-md5.c: Likewise.
31711         * tests/test-memchr.c: Likewise.
31712         * tests/test-memchr2.c: Likewise.
31713         * tests/test-memcmp.c: Likewise.
31714         * tests/test-memmem.c: Likewise.
31715         * tests/test-memrchr.c: Likewise.
31716         * tests/test-rawmemchr.c: Likewise.
31717         * tests/test-read-file.c: Likewise.
31718         * tests/test-rijndael.c: Likewise.
31719         * tests/test-sockets.c: Likewise.
31720         * tests/test-strchrnul.c: Likewise.
31721         * tests/test-strstr.c: Likewise.
31722         * tests/test-strtod.c: Likewise.
31723         * build-aux/ncftpput-ftp: Likewise.
31724
31725 2010-01-26  Eric Blake  <ebb9@byu.net>
31726
31727         ignore-value: update recommended header name
31728         * modules/ignore-value (Include): Only use <> for headers that
31729         exist in glibc.
31730
31731 2010-01-26  Jim Meyering  <meyering@redhat.com>
31732
31733         test-userspec.c: avoid compiler warnings
31734         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
31735         and "initialization discards qualifiers..." warnings.
31736         Put the first "uid" in its own scope, and make char* members "const".
31737
31738 2010-01-25  Bruno Haible  <bruno@clisp.org>
31739
31740         gnulib-tool: Make warning diagnostics consistent.
31741         * gnulib-tool (func_warning): New function.
31742         Use it everywhere where gnulib-tool produces output to stderr and it is
31743         not a fatal error.
31744
31745 2010-01-25  Bruno Haible  <bruno@clisp.org>
31746
31747         Fix test dependencies.
31748         * modules/xstrtol-tests (Depends-on): Add inttypes.
31749         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
31750
31751 2010-01-25 Pádraig Brady <P@draigBrady.com>
31752
31753         syntax-check: detect incorrect boolean macro values in config.h
31754         * modules/maintainer-makefile (configure.ac): Parameterize the location
31755         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
31756         The logic is from Eric Blake and the location indicated by Jim Meyering.
31757         Note the more natural CONFIG_HEADER name is prohibited by automake
31758         for backwards compatibility reasons.
31759         * top/maint.mk (sc_Wundef_boolean): New rule.
31760
31761 2010-01-25  Jim Meyering  <meyering@redhat.com>
31762
31763         bootstrap: detect MacOS 10.6's shasum, too
31764         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
31765         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
31766
31767 2010-01-23  Jim Meyering  <meyering@redhat.com>
31768
31769         xstrtoll: new module
31770         * modules/xstrtoll: New file.
31771         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
31772         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
31773         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
31774         ./configure fails if you use this module and lack "long long".
31775         * modules/xstrtoll-tests: New module.
31776         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
31777         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
31778         new init.sh-based test framework.
31779
31780 2010-01-24  Bruno Haible  <bruno@clisp.org>
31781
31782         Tests for module 'yn'.
31783         * modules/yn-tests: New file.
31784         * tests/test-yn.c: New file.
31785
31786         Tests for module 'y1'.
31787         * modules/y1-tests: New file.
31788         * tests/test-y1.c: New file.
31789
31790         Tests for module 'y0'.
31791         * modules/y0-tests: New file.
31792         * tests/test-y0.c: New file.
31793
31794         Tests for module 'tanh'.
31795         * modules/tanh-tests: New file.
31796         * tests/test-tanh.c: New file.
31797
31798         Tests for module 'tan'.
31799         * modules/tan-tests: New file.
31800         * tests/test-tan.c: New file.
31801
31802         Tests for module 'sqrt'.
31803         * modules/sqrt-tests: New file.
31804         * tests/test-sqrt.c: New file.
31805
31806         Tests for module 'sinh'.
31807         * modules/sinh-tests: New file.
31808         * tests/test-sinh.c: New file.
31809
31810         Tests for module 'sin'.
31811         * modules/sin-tests: New file.
31812         * tests/test-sin.c: New file.
31813
31814         Tests for module 'rint'.
31815         * modules/rint-tests: New file.
31816         * tests/test-rint.c: New file.
31817
31818         Tests for module 'remainder'.
31819         * modules/remainder-tests: New file.
31820         * tests/test-remainder.c: New file.
31821
31822         Tests for module 'pow'.
31823         * modules/pow-tests: New file.
31824         * tests/test-pow.c: New file.
31825
31826         Tests for module 'nextafter'.
31827         * modules/nextafter-tests: New file.
31828         * tests/test-nextafter.c: New file.
31829
31830         Tests for module 'modf'.
31831         * modules/modf-tests: New file.
31832         * tests/test-modf.c: New file.
31833
31834         Tests for module 'logb'.
31835         * modules/logb-tests: New file.
31836         * tests/test-logb.c: New file.
31837
31838         Tests for module 'log1p'.
31839         * modules/log1p-tests: New file.
31840         * tests/test-log1p.c: New file.
31841
31842         Tests for module 'log10'.
31843         * modules/log10-tests: New file.
31844         * tests/test-log10.c: New file.
31845
31846         Tests for module 'log'.
31847         * modules/log-tests: New file.
31848         * tests/test-log.c: New file.
31849
31850         Tests for module 'lgamma'.
31851         * modules/lgamma-tests: New file.
31852         * tests/test-lgamma.c: New file.
31853
31854         Tests for module 'ldexp'.
31855         * modules/ldexp-tests: New file.
31856         * tests/test-ldexp.c: New file.
31857
31858         Tests for module 'jn'.
31859         * modules/jn-tests: New file.
31860         * tests/test-jn.c: New file.
31861
31862         Tests for module 'j1'.
31863         * modules/j1-tests: New file.
31864         * tests/test-j1.c: New file.
31865
31866         Tests for module 'j0'.
31867         * modules/j0-tests: New file.
31868         * tests/test-j0.c: New file.
31869
31870         Tests for module 'hypot'.
31871         * modules/hypot-tests: New file.
31872         * tests/test-hypot.c: New file.
31873
31874         Tests for module 'fmod'.
31875         * modules/fmod-tests: New file.
31876         * tests/test-fmod.c: New file.
31877
31878         Tests for module 'fabs'.
31879         * modules/fabs-tests: New file.
31880         * tests/test-fabs.c: New file.
31881
31882         Tests for module 'exp'.
31883         * modules/exp-tests: New file.
31884         * tests/test-exp.c: New file.
31885
31886         Tests for module 'erfc'.
31887         * modules/erfc-tests: New file.
31888         * tests/test-erfc.c: New file.
31889
31890         Tests for module 'erf'.
31891         * modules/erf-tests: New file.
31892         * tests/test-erf.c: New file.
31893
31894         Tests for module 'cosh'.
31895         * modules/cosh-tests: New file.
31896         * tests/test-cosh.c: New file.
31897
31898         Tests for module 'cos'.
31899         * modules/cos-tests: New file.
31900         * tests/test-cos.c: New file.
31901
31902         Tests for module 'copysign'.
31903         * modules/copysign-tests: New file.
31904         * tests/test-copysign.c: New file.
31905
31906         Tests for module 'cbrt'.
31907         * modules/cbrt-tests: New file.
31908         * tests/test-cbrt.c: New file.
31909
31910         Tests for module 'atan2'.
31911         * modules/atan2-tests: New file.
31912         * tests/test-atan2.c: New file.
31913
31914         Tests for module 'atan'.
31915         * modules/atan-tests: New file.
31916         * tests/test-atan.c: New file.
31917
31918         Tests for module 'asin'.
31919         * modules/asin-tests: New file.
31920         * tests/test-asin.c: New file.
31921
31922         Tests for module 'acos'.
31923         * modules/acos-tests: New file.
31924         * tests/test-acos.c: New file.
31925
31926 2010-01-24  Bruno Haible  <bruno@clisp.org>
31927
31928         Fix tests for common <math.h> functions.
31929         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
31930         code snippet that references the function pointer, rather than merely
31931         calling the function. Substitute the FUNC_LIBM variable.
31932         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
31933         * modules/acos (configure.ac): Likewise.
31934         * modules/asin (configure.ac): Likewise.
31935         * modules/atan (configure.ac): Likewise.
31936         * modules/atan2 (configure.ac): Likewise.
31937         * modules/cbrt (configure.ac): Likewise.
31938         * modules/copysign (configure.ac): Likewise.
31939         * modules/cos (configure.ac): Likewise.
31940         * modules/cosh (configure.ac): Likewise.
31941         * modules/erf (configure.ac): Likewise.
31942         * modules/erfc (configure.ac): Likewise.
31943         * modules/exp (configure.ac): Likewise.
31944         * modules/fabs (configure.ac): Likewise.
31945         * modules/fmod (configure.ac): Likewise.
31946         * modules/hypot (configure.ac): Likewise.
31947         * modules/j0 (configure.ac): Likewise.
31948         * modules/j1 (configure.ac): Likewise.
31949         * modules/jn (configure.ac): Likewise.
31950         * modules/ldexp (configure.ac): Likewise.
31951         * modules/lgamma (configure.ac): Likewise.
31952         * modules/log (configure.ac): Likewise.
31953         * modules/log10 (configure.ac): Likewise.
31954         * modules/log1p (configure.ac): Likewise.
31955         * modules/logb (configure.ac): Likewise.
31956         * modules/modf (configure.ac): Likewise.
31957         * modules/nextafter (configure.ac): Likewise.
31958         * modules/pow (configure.ac): Likewise.
31959         * modules/remainder (configure.ac): Likewise.
31960         * modules/rint (configure.ac): Likewise.
31961         * modules/sin (configure.ac): Likewise.
31962         * modules/sinh (configure.ac): Likewise.
31963         * modules/tan (configure.ac): Likewise.
31964         * modules/tanh (configure.ac): Likewise.
31965         * modules/y0 (configure.ac): Likewise.
31966         * modules/y1 (configure.ac): Likewise.
31967         * modules/yn (configure.ac): Likewise.
31968
31969 2010-01-24  Bruno Haible  <bruno@clisp.org>
31970
31971         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31972         * tests/test-acosl.c (x): New variable.
31973         (main): Store argument in x and fetch it from x.
31974         * tests/test-asinl.c (x): New variable.
31975         (main): Store argument in x and fetch it from x.
31976         * tests/test-atanl.c (x): New variable.
31977         (main): Store argument in x and fetch it from x.
31978         * tests/test-cosl.c (x): New variable.
31979         (main): Store argument in x and fetch it from x.
31980         * tests/test-expl.c (x): New variable.
31981         (main): Store argument in x and fetch it from x.
31982         * tests/test-logl.c (x): New variable.
31983         (main): Store argument in x and fetch it from x.
31984         * tests/test-sinl.c (x): New variable.
31985         (main): Store argument in x and fetch it from x.
31986         * tests/test-sqrtl.c (x): New variable.
31987         (main): Store argument in x and fetch it from x.
31988         * tests/test-tanl.c (x): New variable.
31989         (main): Store argument in x and fetch it from x.
31990
31991 2010-01-24  Bruno Haible  <bruno@clisp.org>
31992
31993         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31994         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31995         assignments to the initial TESTS_ENVIRONMENT.
31996         * doc/gnulib.texi (Unit test modules): Document it.
31997         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31998         TESTS_ENVIRONMENT.
31999         * modules/btowc-tests (Makefile.am): Likewise.
32000         * modules/c-stack-tests (Makefile.am): Likewise.
32001         * modules/c-strcase-tests (Makefile.am): Likewise.
32002         * modules/copy-file-tests (Makefile.am): Likewise.
32003         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32004         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32005         * modules/mbrtowc-tests (Makefile.am): Likewise.
32006         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32007         * modules/mbscasestr-tests (Makefile.am): Likewise.
32008         * modules/mbschr-tests (Makefile.am): Likewise.
32009         * modules/mbscspn-tests (Makefile.am): Likewise.
32010         * modules/mbsinit-tests (Makefile.am): Likewise.
32011         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32012         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32013         * modules/mbspbrk-tests (Makefile.am): Likewise.
32014         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32015         * modules/mbsrchr-tests (Makefile.am): Likewise.
32016         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32017         * modules/mbsspn-tests (Makefile.am): Likewise.
32018         * modules/mbsstr-tests (Makefile.am): Likewise.
32019         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32020         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32021         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32022         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32023         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32024         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32025         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32026         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32027         * modules/wcrtomb-tests (Makefile.am): Likewise.
32028         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32029         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32030         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32031         assignments from TESTS_ENVIRONMENT.
32032         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32033         augmentation.
32034         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32035         * modules/atexit-tests (Makefile.am): Likewise.
32036         * modules/binary-io-tests (Makefile.am): Likewise.
32037         * modules/closein-tests (Makefile.am): Likewise.
32038         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32039         * modules/exclude-tests (Makefile.am): Likewise.
32040         * modules/fflush-tests (Makefile.am): Likewise.
32041         * modules/fpending-tests (Makefile.am): Likewise.
32042         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32043         * modules/freadahead-tests (Makefile.am): Likewise.
32044         * modules/freadptr-tests (Makefile.am): Likewise.
32045         * modules/freadseek-tests (Makefile.am): Likewise.
32046         * modules/fseek-tests (Makefile.am): Likewise.
32047         * modules/fseeko-tests (Makefile.am): Likewise.
32048         * modules/ftell-tests (Makefile.am): Likewise.
32049         * modules/ftello-tests (Makefile.am): Likewise.
32050         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32051         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32052         * modules/lseek-tests (Makefile.am): Likewise.
32053         * modules/parse-duration-tests (Makefile.am): Likewise.
32054         * modules/perror-tests (Makefile.am): Likewise.
32055         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32056         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32057         * modules/pipe-tests (Makefile.am): Likewise.
32058         * modules/pread-tests (Makefile.am): Likewise.
32059         * modules/printf-posix-tests (Makefile.am): Likewise.
32060         * modules/select-tests (Makefile.am): Likewise.
32061         * modules/sigpipe-tests (Makefile.am): Likewise.
32062         * modules/tsearch-tests (Makefile.am): Likewise.
32063         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32064         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32065         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32066         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32067         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32068         * modules/version-etc-tests (Makefile.am): Likewise.
32069         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32070         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32071         * modules/xalloc-die-tests (Makefile.am): Likewise.
32072         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32073         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32074         * modules/xstrtol-tests (Makefile.am): Likewise.
32075         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32076         * modules/yesno-tests (Makefile.am): Likewise.
32077         Suggested by Jim Meyering.
32078
32079 2010-01-24  Bruno Haible  <bruno@clisp.org>
32080
32081         More documentation.
32082         * doc/gnulib.texi (Writing modules): New chapter.
32083         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32084         the new chapter.
32085
32086 2010-01-24  Jim Meyering  <meyering@redhat.com>
32087
32088         maint.mk: do not prepend "./" after filtering
32089         * top/maint.mk (_prepend_srcdir_prefix): New variable
32090         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32091         "./" when $(srcdir) is ".".
32092
32093         define STREQ(a,b) consistently, removing useless parentheses
32094         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32095         since the only risk is that "a" or "b" contains an unparenthesized
32096         comma, but if either did that, STREQ would have 3 or more arguments.
32097         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32098         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32099         * lib/hash-triple.c (STREQ): Likewise.
32100         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32101         * lib/getugroups.c (STREQ): Likewise.
32102
32103 2010-01-23  Jim Meyering  <meyering@redhat.com>
32104
32105         maint.mk: fix syntax-check in a non-srcdir build directory
32106         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32107         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32108
32109 2010-01-22  Jim Meyering  <meyering@redhat.com>
32110
32111         userspec: add unit tests
32112         * tests/test-userspec.c: New file.
32113         * modules/userspec-tests: Likewise.
32114
32115 2010-01-21  Jim Meyering  <meyering@redhat.com>
32116
32117         maint.mk: handle source file names containing "." robustly
32118         * top/maint.mk (_dot_escaped_srcdir): Define.
32119         (VC_LIST): Use it in LHS of sed substitution.
32120
32121 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32122
32123         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32124         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32125         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32126         from a non-srcdir build.
32127
32128 2010-01-20  Eric Blake  <ebb9@byu.net>
32129
32130         warn-on-use: use instead of link-warning
32131         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32132         * modules/unistd (Depends-on, Makefile.am): Likewise.
32133         * modules/arpa_inet (Depends-on): Replace link-warning with
32134         warn-on-use.
32135         (Makefile.am): Update rules accordingly.
32136         * modules/ctype (Depends-on, Makefile.am): Likewise.
32137         * modules/dirent (Depends-on, Makefile.am): Likewise.
32138         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32139         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32140         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32141         * modules/locale (Depends-on, Makefile.am): Likewise.
32142         * modules/math (Depends-on, Makefile.am): Likewise.
32143         * modules/search (Depends-on, Makefile.am): Likewise.
32144         * modules/signal (Depends-on, Makefile.am): Likewise.
32145         * modules/spawn (Depends-on, Makefile.am): Likewise.
32146         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32147         * modules/string (Depends-on, Makefile.am): Likewise.
32148         * modules/strings (Depends-on, Makefile.am): Likewise.
32149         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32150         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32151         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32152         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32153         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32154         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32155         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32156         * modules/wchar (Depends-on, Makefile.am): Likewise.
32157         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32158         should be poisoned.
32159         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32160         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32161         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32162         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32163         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32164         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32165         * m4/math_h.m4 (gl_MATH_H): Likewise.
32166         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32167         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32168         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32169         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32170         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32171         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32172         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32173         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32174         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32175         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32176         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32177         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32178         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32179         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32180         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32181         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32182         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32183         GL_LINK_WARNING.
32184         * lib/ctype.in.h: Likewise.
32185         * lib/dirent.in.h: Likewise.
32186         * lib/fcntl.in.h: Likewise.
32187         * lib/inttypes.in.h: Likewise.
32188         * lib/langinfo.in.h: Likewise.
32189         * lib/locale.in.h: Likewise.
32190         * lib/math.in.h: Likewise.
32191         * lib/search.in.h: Likewise.
32192         * lib/signal.in.h: Likewise.
32193         * lib/spawn.in.h: Likewise.
32194         * lib/stdio.in.h: Likewise.
32195         * lib/stdlib.in.h: Likewise.
32196         * lib/string.in.h: Likewise.
32197         * lib/strings.in.h: Likewise.
32198         * lib/sys_file.in.h: Likewise.
32199         * lib/sys_ioctl.in.h: Likewise.
32200         * lib/sys_select.in.h: Likewise.
32201         * lib/sys_socket.in.h: Likewise.
32202         * lib/sys_stat.in.h: Likewise.
32203         * lib/sys_times.in.h: Likewise.
32204         * lib/sys_utsname.in.h: Likewise.
32205         * lib/unistd.in.h: Likewise.
32206         * lib/wchar.in.h: Likewise.
32207
32208 2010-01-20  Bruno Haible  <bruno@clisp.org>
32209
32210         Avoid duplicate -lm.
32211         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32212         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32213         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32214         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32215         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32216         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32217         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32218         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32219         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32220         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32221         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32222         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32223         Reported by Paolo Bonzini.
32224
32225 2010-01-19  Bruno Haible  <bruno@clisp.org>
32226
32227         langinfo, nl_langinfo: Relicense under LGPLv2+.
32228         * modules/langinfo (License): Change to LGPLv2+.
32229         * modules/nl_langinfo (License): Likewise.
32230         Patch by David Lutterkort <lutter@redhat.com>.
32231
32232 2010-01-19  Bruno Haible  <bruno@clisp.org>
32233
32234         Avoid compilation error with cc on OSF/1 5.1.
32235         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32236         statement, not before.
32237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32238
32239 2010-01-18  Bruno Haible  <bruno@clisp.org>
32240
32241         Avoid a link error due to the __printf__ symbol.
32242         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32243         and 2.6.x.
32244         (__format__, __printf__): Remove definitions.
32245         * lib/argp-fmtstream.h: Likewise.
32246         * lib/argp.h: Likewise.
32247         * lib/error.h: Likewise.
32248         * lib/vasnprintf.h: Likewise.
32249         * lib/xprintf.h: Likewise.
32250         * lib/xvasprintf.h: Likewise.
32251         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32252
32253 2010-01-18  Bruno Haible  <bruno@clisp.org>
32254
32255         Tests for module 'tanl'.
32256         * modules/tanl-tests: New file.
32257         * tests/test-tanl.c: New file.
32258
32259         Tests for module 'sqrtl'.
32260         * modules/sqrtl-tests: New file.
32261         * tests/test-sqrtl.c: New file.
32262
32263         Tests for module 'sinl'.
32264         * modules/sinl-tests: New file.
32265         * tests/test-sinl.c: New file.
32266
32267         Tests for module 'logl'.
32268         * modules/logl-tests: New file.
32269         * tests/test-logl.c: New file.
32270
32271         Tests for module 'expl'.
32272         * modules/expl-tests: New file.
32273         * tests/test-expl.c: New file.
32274
32275         Tests for module 'cosl'.
32276         * modules/cosl-tests: New file.
32277         * tests/test-cosl.c: New file.
32278
32279         Tests for module 'atanl'.
32280         * modules/atanl-tests: New file.
32281         * tests/test-atanl.c: New file.
32282
32283         Tests for module 'asinl'.
32284         * modules/asinl-tests: New file.
32285         * tests/test-asinl.c: New file.
32286
32287         Tests for module 'acosl'.
32288         * modules/acosl-tests: New file.
32289         * tests/test-acosl.c: New file.
32290
32291         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32292         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32293         tanl): Use the standard gnulib idiom.
32294         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32295         * lib/sinl.c: Likewise.
32296         * lib/tanl.c: Don't include trigl.c.
32297         (kernel_tanl): Make static.
32298         * lib/sincosl.c: Include trigl.h first.
32299         * lib/trigl.c: Likewise.
32300         * m4/acosl.m4: New file.
32301         * m4/asinl.m4: New file.
32302         * m4/atanl.m4: New file.
32303         * m4/cosl.m4: New file.
32304         * m4/expl.m4: New file.
32305         * m4/logl.m4: New file.
32306         * m4/sinl.m4: New file.
32307         * m4/sqrtl.m4: New file.
32308         * m4/tanl.m4: New file.
32309         * m4/mathl.m4: Remove file.
32310         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32311         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32312         Don't initialize GNULIB_MATHL.
32313         * modules/acosl: New file.
32314         * modules/asinl: New file.
32315         * modules/atanl: New file.
32316         * modules/cosl: New file.
32317         * modules/expl: New file.
32318         * modules/logl: New file.
32319         * modules/sinl: New file.
32320         * modules/sqrtl: New file.
32321         * modules/tanl: New file.
32322         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32323         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32324         substitute GNULIB_MATHL.
32325         * modules/mathl: Rewritten.
32326         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32327         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32328         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32329         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32330         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32331         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32332         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32333         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32334         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32335
32336 2010-01-18  Bruno Haible  <bruno@clisp.org>
32337
32338         sqrt: Make gl_FUNC_SQRT requirable.
32339         * m4/sqrt.m4: New file.
32340         * modules/sqrt (Files): Add it.
32341         (configure.ac): Invoke gl_FUNC_SQRT.
32342
32343 2010-01-18  Bruno Haible  <bruno@clisp.org>
32344
32345         New modules for common <math.h> functions.
32346         * m4/mathfunc.m4: New file.
32347         * modules/acos: New file.
32348         * modules/asin: New file.
32349         * modules/atan: New file.
32350         * modules/atan2: New file.
32351         * modules/cbrt: New file.
32352         * modules/copysign: New file.
32353         * modules/cos: New file.
32354         * modules/cosh: New file.
32355         * modules/erf: New file.
32356         * modules/erfc: New file.
32357         * modules/exp: New file.
32358         * modules/fabs: New file.
32359         * modules/fmod: New file.
32360         * modules/hypot: New file.
32361         * modules/j0: New file.
32362         * modules/j1: New file.
32363         * modules/jn: New file.
32364         * modules/ldexp: New file.
32365         * modules/lgamma: New file.
32366         * modules/log: New file.
32367         * modules/log10: New file.
32368         * modules/log1p: New file.
32369         * modules/logb: New file.
32370         * modules/modf: New file.
32371         * modules/nextafter: New file.
32372         * modules/pow: New file.
32373         * modules/remainder: New file.
32374         * modules/rint: New file.
32375         * modules/sin: New file.
32376         * modules/sinh: New file.
32377         * modules/sqrt: New file.
32378         * modules/tan: New file.
32379         * modules/tanh: New file.
32380         * modules/y0: New file.
32381         * modules/y1: New file.
32382         * modules/yn: New file.
32383         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32384         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32385         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32386         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32387         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32388         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32389         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32390         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32391         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32392         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32393         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32394         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32395         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32396         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32397         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32398         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32399         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32400         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32401         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32402         * doc/posix-functions/log.texi: Mention the 'log' module.
32403         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32404         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32405         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32406         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32407         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32408         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32409         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32410         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32411         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32412         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32413         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32414         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32415         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32416         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32417         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32418         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32419
32420 2010-01-18  Jim Meyering  <meyering@redhat.com>
32421
32422         ignore-value: relax license to LGPLv2+
32423         * modules/ignore-value (License): Relax to LGPLv2+.
32424
32425         getdate: don't leak when TZ contains two or more '"'s
32426         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32427         double quote in TZ after the first one.
32428
32429         readtokens: do not leak internal token_lengths buffer
32430         * lib/readtokens.c (readtokens): Free the local, lengths,
32431         when the supplied "token_lengths" parameter is NULL.
32432
32433 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32434
32435         Fix a couple of missing LIBTHREAD link failures on AIX.
32436         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32437         $(LIBTHREAD).
32438         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32439
32440         Link test-poll against INET_PTON_LIB.
32441         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32442         for inet_pton on Solaris 10.
32443
32444 2010-01-17  Bruno Haible  <bruno@clisp.org>
32445
32446         unistdio/*-sprintf: Fix typo in module description.
32447         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32448         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32449         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32450         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32451         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32452         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32453         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32454         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32455
32456 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32457
32458         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32459         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32460         variables in shell case patterns, for AIX and HP-UX ksh.
32461
32462         Split large sed scripts, for HP-UX sed.
32463         * modules/stdio: Split sed scripts around 50 sed commands,
32464         to avoid HP-UX limit of 99 commands, in the near future.
32465         * modules/string: Likewise.
32466         * modules/unistd: Likewise.
32467
32468         gnulib-tool: avoid writing in the current directory.
32469         * gnulib-tool (func_emit_lib_Makefile_am)
32470         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32471         not in the current directory, so concurrent gnulib-tool
32472         instances do not interfere.
32473
32474 2010-01-16  Jim Meyering  <meyering@redhat.com>
32475
32476         doc: update users.txt
32477         * users.txt: Add grep.
32478         (diffutils, gzip): Update URLs.
32479
32480 2010-01-12  Bruno Haible  <bruno@clisp.org>
32481
32482         posix_spawn: Avoid test failure on Cygwin.
32483         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32484         characters.
32485         Reported by Simon Josefsson.
32486
32487 2010-01-12  Bruno Haible  <bruno@clisp.org>
32488
32489         * tests/test-cond.c (main): When skipping the test, show the reason.
32490
32491 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32492
32493         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32494
32495 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32496
32497         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32498         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32499
32500 2010-01-12  Eric Blake  <ebb9@byu.net>
32501
32502         build: guarantee AS_VAR_IF
32503         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32504         (gl_AS_VAR_IF): Move...
32505         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32506         Reported by Simon Josefsson.
32507
32508 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32509
32510         * lib/stdio.in.h: Fix typo.
32511
32512 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32513
32514         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32515         libgpg-error.
32516
32517 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32518
32519         * tests/test-xalloc-die.sh: Use $EXEEXT.
32520
32521 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32522             Bruno Haible  <bruno@clisp.org>
32523
32524         getlogin, getlogin_r: Avoid test failure.
32525         * tests/test-getlogin.c: Include <stdio.h>.
32526         (main): Skip the test when the function fails because stdin is not a
32527         tty.
32528         * tests/test-getlogin_r.c: Include <stdio.h>.
32529         (main): Skip the test when the function fails because stdin is not a
32530         tty.
32531
32532 2010-01-11  Eric Blake  <ebb9@byu.net>
32533
32534         tests: avoid more large file warnings
32535         * tests/test-fflush.c: Avoid warning about ftell use.
32536         * tests/test-fseek.c: Avoid warning about fseek use.
32537
32538 2010-01-10  Bruno Haible  <bruno@clisp.org>
32539
32540         nproc: Work better on Linux when /proc and /sys are not mounted.
32541         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32542         as lower bound when, on glibc/Linux systems,
32543         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32544         Suggested by Pádraig Brady <P@draigbrady.com>.
32545         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32546
32547         nproc: Refactor.
32548         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32549         extracted from num_processors.
32550         (num_processors): Call it.
32551
32552 2010-01-11  Jim Meyering  <meyering@redhat.com>
32553
32554         utimecmp: avoid new warning from upcoming gcc-4.5.0
32555         * lib/utimecmp.c (BILLION): Define using #define rather than an
32556         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32557
32558 2010-01-11  Eric Blake  <ebb9@byu.net>
32559
32560         math: add portability warnings for classification macros
32561         * modules/math (Depends-on): Add warn-on-use.
32562         (Makefile.am): Provide new substitutions.
32563         * m4/math_h.m4 (gl_MATH_H): Require inline.
32564         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32565         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32566         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32567         implement warnings.
32568
32569         unistd: warn on use of environ without module
32570         * modules/unistd (Depends-on): Add warn-on-use.
32571         (Makefile.am): Provide new substitutions.
32572         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32573         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32574
32575         stdio: warn on suspicious uses
32576         * modules/stdio (Depends-on): Add warn-on-use.
32577         (Makefile.am): Provide new substitutions.
32578         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32579         fseeko.
32580         * lib/stdio.in.h (gets): Always warn on use.
32581         (fseek, ftell): Adjust when warnings are issued, and honor
32582         _GL_NO_LARGE_FILES as a way to silence the warning.
32583         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32584         any warning about large file offsets.
32585         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32586         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32587         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32588         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32589         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32590         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32591         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32592         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32593
32594         warn-on-use: new module
32595         * modules/warn-on-use: New file.
32596         * build-aux/warn-on-use.h: Likewise.
32597         * m4/warn-on-use.m4: Likewise.
32598         * MODULES.html.sh (Support for building): Mention it.
32599
32600 2010-01-10  Bruno Haible  <bruno@clisp.org>
32601
32602         Tests for module 'unistr/u32-strdup'.
32603         * modules/unistr/u32-strdup-tests: New file.
32604         * tests/unistr/test-u32-strdup.c: New file.
32605
32606         Tests for module 'unistr/u16-strdup'.
32607         * modules/unistr/u16-strdup-tests: New file.
32608         * tests/unistr/test-u16-strdup.c: New file.
32609
32610         Tests for module 'unistr/u8-strdup'.
32611         * modules/unistr/u8-strdup-tests: New file.
32612         * tests/unistr/test-u8-strdup.c: New file.
32613         * tests/unistr/test-strdup.h: New file.
32614
32615         Tests for module 'unistr/u32-strncmp'.
32616         * modules/unistr/u32-strncmp-tests: New file.
32617         * tests/unistr/test-u32-strncmp.c: New file.
32618
32619         Tests for module 'unistr/u16-strncmp'.
32620         * modules/unistr/u16-strncmp-tests: New file.
32621         * tests/unistr/test-u16-strncmp.c: New file.
32622
32623         Tests for module 'unistr/u8-strncmp'.
32624         * modules/unistr/u8-strncmp-tests: New file.
32625         * tests/unistr/test-u8-strncmp.c: New file.
32626         * tests/unistr/test-strncmp.h: New file.
32627
32628         Tests for module 'unistr/u32-strcoll'.
32629         * modules/unistr/u32-strcoll-tests: New file.
32630         * tests/unistr/test-u32-strcoll.c: New file.
32631
32632         Tests for module 'unistr/u16-strcoll'.
32633         * modules/unistr/u16-strcoll-tests: New file.
32634         * tests/unistr/test-u16-strcoll.c: New file.
32635
32636         Tests for module 'unistr/u8-strcoll'.
32637         * modules/unistr/u8-strcoll-tests: New file.
32638         * tests/unistr/test-u8-strcoll.c: New file.
32639
32640         Tests for module 'unistr/u32-strcmp'.
32641         * modules/unistr/u32-strcmp-tests: New file.
32642         * tests/unistr/test-u32-strcmp.c: New file.
32643         * tests/unistr/test-u32-strcmp.h: New file.
32644
32645         Tests for module 'unistr/u16-strcmp'.
32646         * modules/unistr/u16-strcmp-tests: New file.
32647         * tests/unistr/test-u16-strcmp.c: New file.
32648         * tests/unistr/test-u16-strcmp.h: New file.
32649
32650         Tests for module 'unistr/u8-strcmp'.
32651         * modules/unistr/u8-strcmp-tests: New file.
32652         * tests/unistr/test-u8-strcmp.c: New file.
32653         * tests/unistr/test-u8-strcmp.h: New file.
32654         * tests/unistr/test-strcmp.h: New file.
32655
32656         Tests for module 'unistr/u32-strncat'.
32657         * modules/unistr/u32-strncat-tests: New file.
32658         * tests/unistr/test-u32-strncat.c: New file.
32659
32660         Tests for module 'unistr/u16-strncat'.
32661         * modules/unistr/u16-strncat-tests: New file.
32662         * tests/unistr/test-u16-strncat.c: New file.
32663
32664         Tests for module 'unistr/u8-strncat'.
32665         * modules/unistr/u8-strncat-tests: New file.
32666         * tests/unistr/test-u8-strncat.c: New file.
32667         * tests/unistr/test-strncat.h: New file.
32668
32669         Tests for module 'unistr/u32-strcat'.
32670         * modules/unistr/u32-strcat-tests: New file.
32671         * tests/unistr/test-u32-strcat.c: New file.
32672
32673         Tests for module 'unistr/u16-strcat'.
32674         * modules/unistr/u16-strcat-tests: New file.
32675         * tests/unistr/test-u16-strcat.c: New file.
32676
32677         Tests for module 'unistr/u8-strcat'.
32678         * modules/unistr/u8-strcat-tests: New file.
32679         * tests/unistr/test-u8-strcat.c: New file.
32680         * tests/unistr/test-strcat.h: New file.
32681
32682         Tests for module 'unistr/u32-stpncpy'.
32683         * modules/unistr/u32-stpncpy-tests: New file.
32684         * tests/unistr/test-u32-stpncpy.c: New file.
32685
32686         Tests for module 'unistr/u16-stpncpy'.
32687         * modules/unistr/u16-stpncpy-tests: New file.
32688         * tests/unistr/test-u16-stpncpy.c: New file.
32689
32690         Tests for module 'unistr/u8-stpncpy'.
32691         * modules/unistr/u8-stpncpy-tests: New file.
32692         * tests/unistr/test-u8-stpncpy.c: New file.
32693         * tests/unistr/test-stpncpy.h: New file.
32694
32695         Tests for module 'unistr/u32-strncpy'.
32696         * modules/unistr/u32-strncpy-tests: New file.
32697         * tests/unistr/test-u32-strncpy.c: New file.
32698
32699         Tests for module 'unistr/u16-strncpy'.
32700         * modules/unistr/u16-strncpy-tests: New file.
32701         * tests/unistr/test-u16-strncpy.c: New file.
32702
32703         Tests for module 'unistr/u8-strncpy'.
32704         * modules/unistr/u8-strncpy-tests: New file.
32705         * tests/unistr/test-u8-strncpy.c: New file.
32706         * tests/unistr/test-strncpy.h: New file.
32707
32708         Tests for module 'unistr/u32-stpcpy'.
32709         * modules/unistr/u32-stpcpy-tests: New file.
32710         * tests/unistr/test-u32-stpcpy.c: New file.
32711
32712         Tests for module 'unistr/u16-stpcpy'.
32713         * modules/unistr/u16-stpcpy-tests: New file.
32714         * tests/unistr/test-u16-stpcpy.c: New file.
32715
32716         Tests for module 'unistr/u8-stpcpy'.
32717         * modules/unistr/u8-stpcpy-tests: New file.
32718         * tests/unistr/test-u8-stpcpy.c: New file.
32719         * tests/unistr/test-stpcpy.h: New file.
32720
32721         Tests for module 'unistr/u32-strcpy'.
32722         * modules/unistr/u32-strcpy-tests: New file.
32723         * tests/unistr/test-u32-strcpy.c: New file.
32724
32725         Tests for module 'unistr/u16-strcpy'.
32726         * modules/unistr/u16-strcpy-tests: New file.
32727         * tests/unistr/test-u16-strcpy.c: New file.
32728
32729         Tests for module 'unistr/u8-strcpy'.
32730         * modules/unistr/u8-strcpy-tests: New file.
32731         * tests/unistr/test-u8-strcpy.c: New file.
32732         * tests/unistr/test-strcpy.h: New file.
32733
32734         Tests for module 'unistr/u32-strnlen'.
32735         * modules/unistr/u32-strnlen-tests: New file.
32736         * tests/unistr/test-u32-strnlen.c: New file.
32737
32738         Tests for module 'unistr/u16-strnlen'.
32739         * modules/unistr/u16-strnlen-tests: New file.
32740         * tests/unistr/test-u16-strnlen.c: New file.
32741
32742         Tests for module 'unistr/u8-strnlen'.
32743         * modules/unistr/u8-strnlen-tests: New file.
32744         * tests/unistr/test-u8-strnlen.c: New file.
32745         * tests/unistr/test-strnlen.h: New file.
32746
32747         Tests for module 'unistr/u32-strlen'.
32748         * modules/unistr/u32-strlen-tests: New file.
32749         * tests/unistr/test-u32-strlen.c: New file.
32750
32751         Tests for module 'unistr/u16-strlen'.
32752         * modules/unistr/u16-strlen-tests: New file.
32753         * tests/unistr/test-u16-strlen.c: New file.
32754
32755         Tests for module 'unistr/u8-strlen'.
32756         * modules/unistr/u8-strlen-tests: New file.
32757         * tests/unistr/test-u8-strlen.c: New file.
32758
32759         Tests for module 'unistr/u32-prev'.
32760         * modules/unistr/u32-prev-tests: New file.
32761         * tests/unistr/test-u32-prev.c: New file.
32762
32763         Tests for module 'unistr/u16-prev'.
32764         * modules/unistr/u16-prev-tests: New file.
32765         * tests/unistr/test-u16-prev.c: New file.
32766
32767         Tests for module 'unistr/u8-prev'.
32768         * modules/unistr/u8-prev-tests: New file.
32769         * tests/unistr/test-u8-prev.c: New file.
32770
32771         Tests for module 'unistr/u32-next'.
32772         * modules/unistr/u32-next-tests: New file.
32773         * tests/unistr/test-u32-next.c: New file.
32774
32775         Tests for module 'unistr/u16-next'.
32776         * modules/unistr/u16-next-tests: New file.
32777         * tests/unistr/test-u16-next.c: New file.
32778
32779         Tests for module 'unistr/u8-next'.
32780         * modules/unistr/u8-next-tests: New file.
32781         * tests/unistr/test-u8-next.c: New file.
32782
32783         Tests for module 'unistr/u32-strmbtouc'.
32784         * modules/unistr/u32-strmbtouc-tests: New file.
32785         * tests/unistr/test-u32-strmbtouc.c: New file.
32786
32787         Tests for module 'unistr/u16-strmbtouc'.
32788         * modules/unistr/u16-strmbtouc-tests: New file.
32789         * tests/unistr/test-u16-strmbtouc.c: New file.
32790
32791         Tests for module 'unistr/u8-strmbtouc'.
32792         * modules/unistr/u8-strmbtouc-tests: New file.
32793         * tests/unistr/test-u8-strmbtouc.c: New file.
32794
32795         Tests for module 'unistr/u32-strmblen'.
32796         * modules/unistr/u32-strmblen-tests: New file.
32797         * tests/unistr/test-u32-strmblen.c: New file.
32798
32799         Tests for module 'unistr/u16-strmblen'.
32800         * modules/unistr/u16-strmblen-tests: New file.
32801         * tests/unistr/test-u16-strmblen.c: New file.
32802
32803         Tests for module 'unistr/u8-strmblen'.
32804         * modules/unistr/u8-strmblen-tests: New file.
32805         * tests/unistr/test-u8-strmblen.c: New file.
32806
32807         Tests for module 'unistr/u32-cpy-alloc'.
32808         * modules/unistr/u32-cpy-alloc-tests: New file.
32809         * tests/unistr/test-u32-cpy-alloc.c: New file.
32810
32811         Tests for module 'unistr/u16-cpy-alloc'.
32812         * modules/unistr/u16-cpy-alloc-tests: New file.
32813         * tests/unistr/test-u16-cpy-alloc.c: New file.
32814
32815         Tests for module 'unistr/u8-cpy-alloc'.
32816         * modules/unistr/u8-cpy-alloc-tests: New file.
32817         * tests/unistr/test-u8-cpy-alloc.c: New file.
32818         * tests/unistr/test-cpy-alloc.h: New file.
32819
32820         Tests for module 'unistr/u32-mbsnlen'.
32821         * modules/unistr/u32-mbsnlen-tests: New file.
32822         * tests/unistr/test-u32-mbsnlen.c: New file.
32823
32824         Tests for module 'unistr/u16-mbsnlen'.
32825         * modules/unistr/u16-mbsnlen-tests: New file.
32826         * tests/unistr/test-u16-mbsnlen.c: New file.
32827
32828         Tests for module 'unistr/u8-mbsnlen'.
32829         * modules/unistr/u8-mbsnlen-tests: New file.
32830         * tests/unistr/test-u8-mbsnlen.c: New file.
32831
32832         Tests for module 'unistr/u32-chr'.
32833         * modules/unistr/u32-chr-tests: New file.
32834         * tests/unistr/test-u32-chr.c: New file.
32835
32836         Tests for module 'unistr/u16-chr'.
32837         * modules/unistr/u16-chr-tests: New file.
32838         * tests/unistr/test-u16-chr.c: New file.
32839
32840         Tests for module 'unistr/u8-chr'.
32841         * modules/unistr/u8-chr-tests: New file.
32842         * tests/unistr/test-u8-chr.c: New file.
32843         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
32844
32845         Tests for module 'unistr/u32-cmp2'.
32846         * modules/unistr/u32-cmp2-tests: New file.
32847         * tests/unistr/test-u32-cmp2.c: New file.
32848
32849         Tests for module 'unistr/u16-cmp2'.
32850         * modules/unistr/u16-cmp2-tests: New file.
32851         * tests/unistr/test-u16-cmp2.c: New file.
32852
32853         Tests for module 'unistr/u8-cmp2'.
32854         * modules/unistr/u8-cmp2-tests: New file.
32855         * tests/unistr/test-u8-cmp2.c: New file.
32856         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
32857
32858         Tests for module 'unistr/u32-cmp'.
32859         * modules/unistr/u32-cmp-tests: New file.
32860         * tests/unistr/test-u32-cmp.c: New file.
32861
32862         Tests for module 'unistr/u16-cmp'.
32863         * modules/unistr/u16-cmp-tests: New file.
32864         * tests/unistr/test-u16-cmp.c: New file.
32865
32866         Tests for module 'unistr/u8-cmp'.
32867         * modules/unistr/u8-cmp-tests: New file.
32868         * tests/unistr/test-u8-cmp.c: New file.
32869         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
32870
32871         Tests for module 'unistr/u32-set'.
32872         * modules/unistr/u32-set-tests: New file.
32873         * tests/unistr/test-u32-set.c: New file.
32874
32875         Tests for module 'unistr/u16-set'.
32876         * modules/unistr/u16-set-tests: New file.
32877         * tests/unistr/test-u16-set.c: New file.
32878
32879         Tests for module 'unistr/u8-set'.
32880         * modules/unistr/u8-set-tests: New file.
32881         * tests/unistr/test-u8-set.c: New file.
32882         * tests/unistr/test-set.h: New file.
32883
32884         Tests for module 'unistr/u32-move'.
32885         * modules/unistr/u32-move-tests: New file.
32886         * tests/unistr/test-u32-move.c: New file.
32887
32888         Tests for module 'unistr/u16-move'.
32889         * modules/unistr/u16-move-tests: New file.
32890         * tests/unistr/test-u16-move.c: New file.
32891
32892         Tests for module 'unistr/u8-move'.
32893         * modules/unistr/u8-move-tests: New file.
32894         * tests/unistr/test-u8-move.c: New file.
32895         * tests/unistr/test-move.h: New file.
32896
32897         Tests for module 'unistr/u32-cpy'.
32898         * modules/unistr/u32-cpy-tests: New file.
32899         * tests/unistr/test-u32-cpy.c: New file.
32900
32901         Tests for module 'unistr/u16-cpy'.
32902         * modules/unistr/u16-cpy-tests: New file.
32903         * tests/unistr/test-u16-cpy.c: New file.
32904
32905         Tests for module 'unistr/u8-cpy'.
32906         * modules/unistr/u8-cpy-tests: New file.
32907         * tests/unistr/test-u8-cpy.c: New file.
32908         * tests/unistr/test-cpy.h: New file.
32909
32910 2010-01-09  Bruno Haible  <bruno@clisp.org>
32911
32912         Tests for module 'unistr/u32-uctomb'.
32913         * modules/unistr/u32-uctomb-tests: New file.
32914         * tests/unistr/test-u32-uctomb.c: New file.
32915
32916         Tests for module 'unistr/u16-uctomb'.
32917         * modules/unistr/u16-uctomb-tests: New file.
32918         * tests/unistr/test-u16-uctomb.c: New file.
32919
32920         Tests for module 'unistr/u8-uctomb'.
32921         * modules/unistr/u8-uctomb-tests: New file.
32922         * tests/unistr/test-u8-uctomb.c: New file.
32923
32924         Tests for module 'unistr/u32-mbtoucr'.
32925         * modules/unistr/u32-mbtoucr-tests: New file.
32926         * tests/unistr/test-u32-mbtoucr.c: New file.
32927
32928         Tests for module 'unistr/u16-mbtoucr'.
32929         * modules/unistr/u16-mbtoucr-tests: New file.
32930         * tests/unistr/test-u16-mbtoucr.c: New file.
32931
32932         Tests for module 'unistr/u8-mbtoucr'.
32933         * modules/unistr/u8-mbtoucr-tests: New file.
32934         * tests/unistr/test-u8-mbtoucr.c: New file.
32935
32936         Tests for module 'unistr/u32-mbtouc'.
32937         * modules/unistr/u32-mbtouc-tests: New file.
32938         * tests/unistr/test-u32-mbtouc.c: New file.
32939
32940         Tests for module 'unistr/u16-mbtouc'.
32941         * modules/unistr/u16-mbtouc-tests: New file.
32942         * tests/unistr/test-u16-mbtouc.c: New file.
32943
32944         Tests for module 'unistr/u8-mbtouc'.
32945         * modules/unistr/u8-mbtouc-tests: New file.
32946         * tests/unistr/test-u8-mbtouc.c: New file.
32947
32948         Tests for module 'unistr/u32-mbtouc-unsafe'.
32949         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32950         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32951         * tests/unistr/test-u32-mbtouc.h: New file.
32952
32953         Tests for module 'unistr/u16-mbtouc-unsafe'.
32954         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32955         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32956         * tests/unistr/test-u16-mbtouc.h: New file.
32957
32958         Tests for module 'unistr/u8-mbtouc-unsafe'.
32959         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32960         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32961         * tests/unistr/test-u8-mbtouc.h: New file.
32962
32963         Tests for module 'unistr/u32-mblen'.
32964         * modules/unistr/u32-mblen-tests: New file.
32965         * tests/unistr/test-u32-mblen.c: New file.
32966
32967         Tests for module 'unistr/u16-mblen'.
32968         * modules/unistr/u16-mblen-tests: New file.
32969         * tests/unistr/test-u16-mblen.c: New file.
32970
32971         Tests for module 'unistr/u8-mblen'.
32972         * modules/unistr/u8-mblen-tests: New file.
32973         * tests/unistr/test-u8-mblen.c: New file.
32974
32975         Tests for module 'unistr/u32-to-u16'.
32976         * modules/unistr/u32-to-u16-tests: New file.
32977         * tests/unistr/test-u32-to-u16.c: New file.
32978
32979         Tests for module 'unistr/u32-to-u8'.
32980         * modules/unistr/u32-to-u8-tests: New file.
32981         * tests/unistr/test-u32-to-u8.c: New file.
32982
32983         Tests for module 'unistr/u16-to-u32'.
32984         * modules/unistr/u16-to-u32-tests: New file.
32985         * tests/unistr/test-u16-to-u32.c: New file.
32986
32987         Tests for module 'unistr/u16-to-u8'.
32988         * modules/unistr/u16-to-u8-tests: New file.
32989         * tests/unistr/test-u16-to-u8.c: New file.
32990
32991         Tests for module 'unistr/u8-to-u32'.
32992         * modules/unistr/u8-to-u32-tests: New file.
32993         * tests/unistr/test-u8-to-u32.c: New file.
32994
32995         Tests for module 'unistr/u8-to-u16'.
32996         * modules/unistr/u8-to-u16-tests: New file.
32997         * tests/unistr/test-u8-to-u16.c: New file.
32998
32999         Tests for module 'unistr/u32-check'.
33000         * modules/unistr/u32-check-tests: New file.
33001         * tests/unistr/test-u32-check.c: New file.
33002
33003         Tests for module 'unistr/u16-check'.
33004         * modules/unistr/u16-check-tests: New file.
33005         * tests/unistr/test-u16-check.c: New file.
33006
33007         Tests for module 'unistr/u8-check'.
33008         * modules/unistr/u8-check-tests: New file.
33009         * tests/unistr/test-u8-check.c: New file.
33010
33011         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33012         (category_equals): New function.
33013         (main): Add more tests.
33014         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33015
33016         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33017
33018 2010-01-10  Bruno Haible  <bruno@clisp.org>
33019
33020         unistr/u*-strcoll: Try harder to distinguish different strings.
33021         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33022         compare s1 and s2 to see if they are different.
33023
33024 2010-01-10  Bruno Haible  <bruno@clisp.org>
33025
33026         unistr/u*-stpncpy: Fix the return value.
33027         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33028         description of the return value consistent with stpncpy in glibc.
33029         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33030         written non-NUL unit.
33031
33032 2010-01-10  Bruno Haible  <bruno@clisp.org>
33033
33034         unistr/u*-next: Add missing dependencies.
33035         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33036         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33037         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33038
33039 2010-01-10  Bruno Haible  <bruno@clisp.org>
33040
33041         unistr/u8-mbsnlen: Fix return value for incomplete character.
33042         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33043         u8_mblen.
33044         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33045         Remove unistr/u8-mblen.
33046         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33047         u16_mblen.
33048         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33049         Remove unistr/u16-mblen.
33050
33051 2010-01-10  Bruno Haible  <bruno@clisp.org>
33052
33053         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33054         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33055         Reported by Brian Gough <bjg@gnu.org> and
33056         Chris Clayton <chris2553@googlemail.com> via
33057         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33058
33059 2010-01-09  Bruno Haible  <bruno@clisp.org>
33060
33061         unistr/u16-to-u32: Reject invalid input.
33062         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33063         u16_mbtouc.
33064         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33065         Remove unistr/u16-mbtouc.
33066
33067         unistr/u16-to-u8: Reject invalid input.
33068         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33069         u16_mbtouc.
33070         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33071         Remove unistr/u16-mbtouc.
33072
33073         unistr/u8-to-u32: Reject invalid input.
33074         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33075         u8_mbtouc.
33076         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33077         Remove unistr/u8-mbtouc.
33078
33079         unistr/u8-to-u16: Reject invalid input.
33080         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33081         u8_mbtouc.
33082         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33083         Remove unistr/u8-mbtouc.
33084
33085 2010-01-09  Bruno Haible  <bruno@clisp.org>
33086
33087         Tests for module 'getlogin'.
33088         * modules/getlogin-tests: New file.
33089         * tests/test-getlogin.c: New file.
33090
33091         New module 'getlogin'.
33092         * lib/unistd.in.h (getlogin): New declaration.
33093         * lib/getlogin.c: New file.
33094         * m4/getlogin.m4: New file.
33095         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33096         HAVE_GETLOGIN.
33097         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33098         HAVE_GETLOGIN.
33099         * modules/getlogin: New file.
33100         * doc/posix-functions/getlogin.texi: Mention the new module.
33101         Reported by John W. Eaton <jwe@gnu.org>.
33102
33103 2010-01-09  Bruno Haible  <bruno@clisp.org>
33104
33105         getlogin_r: Support for native Windows.
33106         * lib/getlogin_r.c: Include <windows.h>
33107         (getlogin_r): Implement for native Windows.
33108         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33109         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33110         via John W. Eaton <jwe@gnu.org>.
33111
33112 2010-01-09  Bruno Haible  <bruno@clisp.org>
33113
33114         getlogin_r: Small fixes.
33115         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33116         succeeds.
33117         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33118         before testing whether getlogin_r is declared. No need to set
33119         HAVE_DECL_GETLOGIN_R to 1.
33120         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33121
33122 2010-01-09  Bruno Haible  <bruno@clisp.org>
33123
33124         * lib/unistd.in.h (getlogin_r): Add comment.
33125
33126 2010-01-09  Bruno Haible  <bruno@clisp.org>
33127
33128         Tests for module 'getlogin_r'.
33129         * modules/getlogin_r-tests: New file.
33130         * tests/test-getlogin_r.c: New file.
33131
33132 2010-01-09  Jim Meyering  <meyering@redhat.com>
33133
33134         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33135         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33136         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33137
33138 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33139
33140         * lib/dup2.c (rpl_dup2): Improve comment.
33141
33142 2010-01-08  Eric Blake  <ebb9@byu.net>
33143
33144         maint.mk: allow packages to add makefile @@ exceptions
33145         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33146         (sc_makefile_check): Rename...
33147         (sc_makefile_at_at_check): ...to this, and use hook.
33148
33149         dup2: work around mingw bug
33150         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33151         Reported by Simon Josefsson.
33152
33153 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33154
33155         glob: Fix C++ compilation.
33156         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33157         C++.
33158
33159 2010-01-07  Bruno Haible  <bruno@clisp.org>
33160
33161         Fix indentation of wctype.in.h, broken since 2007-01-06.
33162         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33163
33164 2010-01-07  Bruno Haible  <bruno@clisp.org>
33165
33166         mbslen: Avoid collision with system function.
33167         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33168         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33169         * m4/mbslen.m4: New file.
33170         * modules/mbslen (Files): Add it.
33171         (configure.ac): Invoke gl_MBSLEN.
33172         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33173         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33174         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33175         via Ian Beckwith <ianb@erislabs.net>.
33176
33177 2010-01-07  Bruno Haible  <bruno@clisp.org>
33178
33179         dirent: Document the last fix.
33180         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33181
33182 2010-01-07  Bruno Haible  <bruno@clisp.org>
33183
33184         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33185         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33186         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33187         va_list are defined.
33188         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33189         Reported by Eric Blake.
33190
33191 2010-01-07  Bruno Haible  <bruno@clisp.org>
33192
33193         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33194         * modules/xlist (Depends-on): Add 'list',
33195         * modules/xoset (Depends-on): Add 'oset'.
33196         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33197
33198 2010-01-07  Bruno Haible  <bruno@clisp.org>
33199
33200         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33201         * doc/posix-functions/strncasecmp.texi: Likewise.
33202
33203 2010-01-07  Bruno Haible  <bruno@clisp.org>
33204
33205         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33206
33207 2010-01-07  John W. Eaton  <jwe@octave.org>
33208
33209         wctype: allow C++ use
33210         * lib/wctype.in.h: Add extern "C" block for C++.
33211
33212 2010-01-06  Eric Blake  <ebb9@byu.net>
33213
33214         maint.mk: detect incorrect GFDL usage
33215         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33216
33217 2010-01-06  Jim Meyering  <meyering@redhat.com>
33218         and Eric Blake  <ebb9@byu.net>
33219
33220         maint.mk: ignore multi-line copyright in NEWS
33221         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33222
33223 2010-01-06  Eric Blake  <ebb9@byu.net>
33224
33225         select: add missing dependency
33226         * modules/select-tests (Depends-on): Move sockets dependency...
33227         * modules/select (Depends-on): ...here.
33228         Reported by Ian Beckwith.
33229
33230         doc: regenerate INSTALL
33231         * doc/INSTALL: Reflect recent autoconf update.
33232         * doc/INSTALL.ISO: Likewise.
33233         * doc/INSTALL.UTF-8: Likewise.
33234
33235         pread: fix compilation on glibc
33236         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33237         Reported by Ralf Wildenhues.
33238
33239         dirent: fix test failure
33240         * lib/dirent.in.h (includes): Guarantee ino_t.
33241         Reported by Ralf Wildenhues.
33242
33243 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33244
33245         linkat, renameat: avoid bad free
33246         * lib/at-func2.c (at_func2): Fix typo.
33247         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33248
33249 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33250
33251         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33252         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33253         to avoid failure of symlink test later.
33254
33255 2010-01-06  Eric Blake  <ebb9@byu.net>
33256
33257         stdio, unistd: guarantee ssize_t
33258         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33259         2008 are exposed when needed.
33260         * lib/stdio.in.h (includes): Likewise.
33261         Reported by Ralf Wildenhues.
33262
33263 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33264
33265         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33266         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33267         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33268
33269 2010-01-06  Jim Meyering  <meyering@redhat.com>
33270
33271         readtokens: this module *does* require xalloc.h
33272         It uses only functions that were omitted by the old syntax-check rule.
33273         * lib/readtokens.c: Include "xalloc.h" once again.
33274         * modules/readtokens (Depends-on): Add xalloc.
33275         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33276
33277 2010-01-05  Eric Blake  <ebb9@byu.net>
33278
33279         maint: support 'make announcement' from a VPATH build
33280         * top/maint.mk (announcement): Look for correct NEWS file.
33281
33282 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33283
33284         utimens (fdutimens): ignore a negative FD, per contract
33285         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33286         when we have a valid file descriptor.  Otherwise, using a brand
33287         new glibc (with just-patched futimens that now fails with EBADF)
33288         would cause this function to fail with ENOSYS.
33289         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33290         See also http://bugzilla.redhat.com/552320.
33291
33292 2010-01-05  Eric Blake  <ebb9@byu.net>
33293
33294         strcase: document what it provides
33295         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33296         gnulib module.
33297         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33298         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33299
33300 2010-01-05  Jim Meyering  <meyering@redhat.com>
33301
33302         maint: remove useless inclusions of "xalloc.h"
33303         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33304         * lib/readtokens.c: Likewise.
33305         * lib/same.c: Likewise.
33306         * modules/getloadavg (Depends-on): Remove xalloc.
33307         * modules/readtokens: Likewise.
33308         * modules/same: Likewise.
33309
33310         maint.mk: include 4 more function names in alloca.h-checking regexp
33311         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33312         regexp.  Before, we would give a false-positive (saying alloca.h
33313         is included unnecessarily) when the only uses involved omitted symbols.
33314
33315         xalloc.h: use consistent formatting
33316         * lib/xalloc.h: Move declarations to start in the first column.
33317
33318 2010-01-05  Eric Blake  <ebb9@byu.net>
33319
33320         mkdir: avoid xalloc
33321         * lib/mkdir.c (includes): Drop unused header.
33322         Reported by John W. Eaton.
33323
33324 2010-01-04  Jim Meyering  <meyering@redhat.com>
33325
33326         nl_langinfo: avoid configure-time syntax error
33327         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33328         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33329         the empty string.  Don't let that provoke a shell syntax error.
33330
33331         regcomp, regexec, fnmatch: avoid array bounds read error
33332         * lib/regcomp.c (build_equiv_class): From glibc:
33333         Use only the low 24 bits of a findidx return value as an index
33334         into the weights array.  Patch by Ulrich Drepper:
33335         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33336         * lib/regexec.c (check_node_accept_bytes): Likewise.
33337         * lib/fnmatch_loop.c (FCT): Likewise.
33338
33339         regcomp: skip collseq lookup when there are no rules
33340         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33341         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33342
33343         regcomp: recognize ill-formed { } expressions
33344         * lib/regcomp.c (parse_dup_op): From glibc:
33345         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33346
33347         regcomp: fix typo in comment
33348         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33349         s/satisfy/satisfies/.
33350
33351         regcomp: sync from glibc: remove dead store
33352         * lib/regcomp.c (duplicate_node_closure): Remove useless
33353         search_duplicated_node call and dead store.
33354
33355         regcomp: sync from glibc; always use nl_langinfo
33356         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33357         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33358         * modules/regex (Depends-on): Add nl_langinfo.
33359
33360 2010-01-04  Eric Blake  <ebb9@byu.net>
33361
33362         fdopendir: fix configure test
33363         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33364
33365 2010-01-01  Bruno Haible  <bruno@clisp.org>
33366
33367         wchar: Remove unused configure check.
33368         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33369
33370 2010-01-01  Eric Blake  <ebb9@byu.net>
33371
33372         headers: make check of system header explicit
33373         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33374         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33375         ourselves.
33376         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33377         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33378         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33379         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33380         internals.
33381         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33382         missing.
33383         Suggested by Bruno Haible.
33384
33385 2010-01-01  Jim Meyering  <meyering@redhat.com>
33386
33387         ChangeLog: tweak to eliminate unnecessary copyright line
33388         * ChangeLog: Remove a copyright line that was mistakenly updated
33389         by today's update-copyright run.  Reported by Eric Blake.
33390
33391         test-update-copyright: don't let envvar setting cause test failure
33392         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33393
33394 2010-01-01  Bruno Haible  <bruno@clisp.org>
33395
33396         localename: Avoid gcc warning.
33397         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33398         function if it is not used.
33399
33400 2010-01-01  Jim Meyering  <meyering@redhat.com>
33401
33402         update nearly all FSF copyright year lists to include 2010
33403         Use the same procedure as for 2009, outlined in
33404         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33405
33406         version-etc: set COPYRIGHT_YEAR to 2010
33407         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33408
33409 2009-12-31  Eric Blake  <ebb9@byu.net>
33410
33411         doc: correct availability of cygwin 1.5.x getopt
33412         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33413         variables.
33414         * doc/posix-functions/opterr.texi (opterr): Likewise.
33415         * doc/posix-functions/optind.texi (optind): Likewise.
33416         * doc/posix-functions/optopt.texi (optopt): Likewise.
33417         * doc/posix-functions/tzname.texi (tzname): Likewise.
33418
33419         openat: update maintainer
33420         * modules/openat (Maintainer): Add myself.
33421
33422         utimens: avoid shadowing warning
33423         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33424         buffers into one, to avoid shadowing, as well as avoiding a
33425         redundant stat.
33426         Reported by Jim Meyering.
33427
33428         test-dup2: avoid compiler warning
33429         * tests/test-dup2.c (is_inheritable): Only define if used.
33430
33431 2010-01-01  Bruno Haible  <bruno@clisp.org>
33432
33433         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33434         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33435         defined, use wctomb instead of wcrtomb.
33436
33437 2010-01-01  Bruno Haible  <bruno@clisp.org>
33438
33439         iconv: Reject native Solaris iconv.
33440         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33441         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33442
33443 2009-12-31  Bruno Haible  <bruno@clisp.org>
33444
33445         * tests/test-signal.c (main): Remove test of 'SIG'.
33446
33447 2009-12-31  Bruno Haible  <bruno@clisp.org>
33448
33449         spawn: Fix incomplete fix.
33450         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33451         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33452         warnings for GNULIB_POSIXCHECK again.
33453         Reported by Eric Blake.
33454
33455 2009-12-31  Bruno Haible  <bruno@clisp.org>
33456
33457         Avoid namespace pollution on glibc systems.
33458         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33459         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33460         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33461         glibc systems.
33462
33463 2009-12-31  Bruno Haible  <bruno@clisp.org>
33464
33465         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33466         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33467         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33468         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33469         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33470         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33471         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33472
33473 2009-12-31  Bruno Haible  <bruno@clisp.org>
33474
33475         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33476         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33477         afterwards.
33478
33479 2009-12-31  Bruno Haible  <bruno@clisp.org>
33480
33481         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33482         SYS_UTSNAME_H.
33483
33484 2009-12-31  Bruno Haible  <bruno@clisp.org>
33485
33486         spawn: Fix misapplied patch.
33487         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33488         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33489         warnings for GNULIB_POSIXCHECK.
33490
33491 2009-12-31  Bruno Haible  <bruno@clisp.org>
33492
33493         times: Update after sys_times changed.
33494         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33495         * modules/times (Files): Add it.
33496         (configure.ac): Invoke gl_FUNC_TIMES.
33497
33498 2009-12-31  Bruno Haible  <bruno@clisp.org>
33499
33500         Use AC_C_INLINE where necessary.
33501         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33502         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33503         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33504         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33505         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33506         * m4/mbiter.m4 (gl_MBITER): Likewise.
33507         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33508         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33509         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33510         * modules/u64 (configure.ac): Likewise.
33511
33512 2009-12-31  Bruno Haible  <bruno@clisp.org>
33513
33514         Use AC_C_INLINE instead of module 'inline' where possible.
33515         * modules/inline (Description): Clarify purpose.
33516         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33517         * modules/count-one-bits (Depends-on): Remove inline.
33518         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33519         * modules/openat (Depends-on): Remove inline.
33520         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33521         instead of depending on module 'inline'.
33522         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33523         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33524         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33525         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33526         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33527         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33528         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33529         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33530         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33531         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33532         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33533         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33534         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33535         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33536         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33537         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33538         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33539         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33540         Likewise.
33541         * modules/unictype/property-ascii-hex-digit (Depends-on,
33542         configure.ac): Likewise.
33543         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33544         configure.ac): Likewise.
33545         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33546         configure.ac): Likewise.
33547         * modules/unictype/property-bidi-block-separator (Depends-on,
33548         configure.ac): Likewise.
33549         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33550         configure.ac): Likewise.
33551         * modules/unictype/property-bidi-common-separator (Depends-on,
33552         configure.ac): Likewise.
33553         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33554         Likewise.
33555         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33556         configure.ac): Likewise.
33557         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33558         configure.ac): Likewise.
33559         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33560         configure.ac): Likewise.
33561         * modules/unictype/property-bidi-european-digit (Depends-on,
33562         configure.ac): Likewise.
33563         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33564         configure.ac): Likewise.
33565         * modules/unictype/property-bidi-left-to-right (Depends-on,
33566         configure.ac): Likewise.
33567         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33568         configure.ac): Likewise.
33569         * modules/unictype/property-bidi-other-neutral (Depends-on,
33570         configure.ac): Likewise.
33571         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33572         Likewise.
33573         * modules/unictype/property-bidi-segment-separator (Depends-on,
33574         configure.ac): Likewise.
33575         * modules/unictype/property-bidi-whitespace (Depends-on,
33576         configure.ac): Likewise.
33577         * modules/unictype/property-combining (Depends-on, configure.ac):
33578         Likewise.
33579         * modules/unictype/property-composite (Depends-on, configure.ac):
33580         Likewise.
33581         * modules/unictype/property-currency-symbol (Depends-on,
33582         configure.ac): Likewise.
33583         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33584         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33585         Likewise.
33586         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33587         configure.ac): Likewise.
33588         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33589         Likewise.
33590         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33591         Likewise.
33592         * modules/unictype/property-extender (Depends-on, configure.ac):
33593         Likewise.
33594         * modules/unictype/property-format-control (Depends-on, configure.ac):
33595         Likewise.
33596         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
33597         Likewise.
33598         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
33599         Likewise.
33600         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
33601         Likewise.
33602         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
33603         Likewise.
33604         * modules/unictype/property-hyphen (Depends-on, configure.ac):
33605         Likewise.
33606         * modules/unictype/property-id-continue (Depends-on, configure.ac):
33607         Likewise.
33608         * modules/unictype/property-id-start (Depends-on, configure.ac):
33609         Likewise.
33610         * modules/unictype/property-ideographic (Depends-on, configure.ac):
33611         Likewise.
33612         * modules/unictype/property-ids-binary-operator (Depends-on,
33613         configure.ac): Likewise.
33614         * modules/unictype/property-ids-trinary-operator (Depends-on,
33615         configure.ac): Likewise.
33616         * modules/unictype/property-ignorable-control (Depends-on,
33617         configure.ac): Likewise.
33618         * modules/unictype/property-iso-control (Depends-on, configure.ac):
33619         Likewise.
33620         * modules/unictype/property-join-control (Depends-on, configure.ac):
33621         Likewise.
33622         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
33623         Likewise.
33624         * modules/unictype/property-line-separator (Depends-on, configure.ac):
33625         Likewise.
33626         * modules/unictype/property-logical-order-exception (Depends-on,
33627         configure.ac): Likewise.
33628         * modules/unictype/property-lowercase (Depends-on, configure.ac):
33629         Likewise.
33630         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
33631         * modules/unictype/property-non-break (Depends-on, configure.ac):
33632         Likewise.
33633         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
33634         Likewise.
33635         * modules/unictype/property-numeric (Depends-on, configure.ac):
33636         Likewise.
33637         * modules/unictype/property-other-alphabetic (Depends-on,
33638         configure.ac): Likewise.
33639         * modules/unictype/property-other-default-ignorable-code-point
33640         (Depends-on, configure.ac): Likewise.
33641         * modules/unictype/property-other-grapheme-extend (Depends-on,
33642         configure.ac): Likewise.
33643         * modules/unictype/property-other-id-continue (Depends-on,
33644         configure.ac): Likewise.
33645         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
33646         Likewise.
33647         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
33648         Likewise.
33649         * modules/unictype/property-other-math (Depends-on, configure.ac):
33650         Likewise.
33651         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
33652         Likewise.
33653         * modules/unictype/property-paired-punctuation (Depends-on,
33654         configure.ac): Likewise.
33655         * modules/unictype/property-paragraph-separator (Depends-on,
33656         configure.ac): Likewise.
33657         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
33658         Likewise.
33659         * modules/unictype/property-pattern-white-space (Depends-on,
33660         configure.ac): Likewise.
33661         * modules/unictype/property-private-use (Depends-on, configure.ac):
33662         Likewise.
33663         * modules/unictype/property-punctuation (Depends-on, configure.ac):
33664         Likewise.
33665         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
33666         Likewise.
33667         * modules/unictype/property-radical (Depends-on, configure.ac):
33668         Likewise.
33669         * modules/unictype/property-sentence-terminal (Depends-on,
33670         configure.ac): Likewise.
33671         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
33672         Likewise.
33673         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
33674         * modules/unictype/property-terminal-punctuation (Depends-on,
33675         configure.ac): Likewise.
33676         * modules/unictype/property-titlecase (Depends-on, configure.ac):
33677         Likewise.
33678         * modules/unictype/property-unassigned-code-value (Depends-on,
33679         configure.ac): Likewise.
33680         * modules/unictype/property-unified-ideograph (Depends-on,
33681         configure.ac): Likewise.
33682         * modules/unictype/property-uppercase (Depends-on, configure.ac):
33683         Likewise.
33684         * modules/unictype/property-variation-selector (Depends-on,
33685         configure.ac): Likewise.
33686         * modules/unictype/property-white-space (Depends-on, configure.ac):
33687         Likewise.
33688         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
33689         Likewise.
33690         * modules/unictype/property-xid-start (Depends-on, configure.ac):
33691         Likewise.
33692         * modules/unictype/property-zero-width (Depends-on, configure.ac):
33693         Likewise.
33694         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
33695         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
33696         Likewise.
33697
33698 2009-12-31  Bruno Haible  <bruno@clisp.org>
33699
33700         Remove unnecessary AC_C_INLINE invocation.
33701         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
33702         since 2009-08-21.
33703
33704 2009-12-31  Jim Meyering  <meyering@redhat.com>
33705
33706         maint.mk: don't require explicit gpg_key_ID in cfg.mk
33707         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
33708         With this change, we can all remove the gpg_key_ID = ... definition
33709         from our respective cfg.mk files.
33710
33711         maint.mk: create announcement template in ~/, not in /tmp
33712         * top/maint.mk (emit_upload_commands): Adjust.
33713         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
33714         Remove temporary file, .ci-msg.
33715
33716 2009-12-31  Eric Blake  <ebb9@byu.net>
33717
33718         link-warning: always build headers with link warnings
33719         * modules/arpa_inet (Makefile.am): Always build replacement
33720         header.
33721         * modules/ctype (Makefile.am): Likewise.
33722         * modules/dirent (Makefile.am): Likewise.
33723         * modules/inttypes (Makefile.am): Likewise.
33724         * modules/langinfo (Makefile.am): Likewise.
33725         * modules/locale (Makefile.am): Likewise.
33726         * modules/spawn (Makefile.am): Likewise.
33727         * modules/sys_file (Makefile.am): Likewise.
33728         * modules/sys_ioctl (Makefile.am): Likewise.
33729         * modules/sys_select (Makefile.am): Likewise.
33730         * modules/sys_socket (Makefile.am): Likewise.
33731         * modules/sys_times (Makefile.am): Likewise.
33732         * modules/sys_utsname (Makefile.am): Likewise.
33733         * modules/sys_wait (Makefile.am): Likewise.
33734         * modules/wchar (Makefile.am): Likewise.
33735         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
33736         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
33737         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33738         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33739         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33740         Likewise.
33741         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33742         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33743         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
33744         Likewise.
33745         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
33746         Likewise.
33747         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
33748         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
33749         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
33750         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33751         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33752         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33753         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33754         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
33755         (gl_WCHAR_H_DEFAULTS): Likewise.
33756
33757 2009-12-31  Eric Blake  <ebb9@byu.net>
33758
33759         signal, spawn: use link warnings
33760         * lib/signal.in.h (sigset_t): Make unconditional.
33761         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
33762         (sigpending, sigprocmask, sigaction): Add link warnings.
33763         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
33764         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
33765         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
33766         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
33767         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
33768         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
33769         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
33770         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
33771         (posix_spawn_file_actions_destroy)
33772         (posix_spawn_file_actions_addopen)
33773         (posix_spawn_file_actions_addclose)
33774         (posix_spawn_file_actions_adddup2): Likewise.
33775         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
33776         * tests/test-signal.c (main): Enhance test.
33777
33778         spawn: improve wrapper support
33779         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
33780         (gl_SPAWN_H_DEFAULTS): New defaults.
33781         * modules/spawn (Makefile.am): Substitute them.
33782         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
33783         Only declare if missing or broken.
33784
33785         sys_times, sys_utsname: use include_next
33786         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
33787         header.
33788         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
33789         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33790         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33791         * modules/sys_times (Depends-on): Add include_next.
33792         (Makefile.am): Substitute additional values.
33793         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33794         * lib/sys_times.in.h (includes): Include native header, if
33795         available.
33796         * lib/sys_utsname.in.h (includes): Likewise.
33797         * tests/test-sys_times.c (main): Enhance test.
33798
33799         fdutimensat: revert prior patch
33800         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
33801         utimens.h.
33802         Reported by Bruno Haible.
33803
33804 2009-12-30  Eric Blake  <ebb9@byu.net>
33805
33806         sys_wait: drop link-warning dependency
33807         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
33808         link-warning efforts.
33809         * lib/sys_wait.in.h: Likewise.
33810
33811         fdutimensat: remove bogus dependency
33812         * modules/fdutimensat (Depends-on): Drop inline.
33813
33814         unistd: fix typo
33815         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
33816
33817 2009-12-30  Bruno Haible  <bruno@clisp.org>
33818
33819         Fix compilation error with Solaris cc.
33820         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
33821         * lib/unicase/u16-is-invariant.c: Likewise.
33822         * lib/unicase/u32-is-invariant.c: Likewise.
33823         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33824
33825 2009-12-30  Bruno Haible  <bruno@clisp.org>
33826
33827         Fix test crash.
33828         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
33829         locales.
33830         Reported by Simon Josefsson <simon@josefsson.org>.
33831
33832 2009-12-30  Bruno Haible  <bruno@clisp.org>
33833
33834         Fix compilation error on most platforms.
33835         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
33836         Reported by Simon Josefsson <simon@josefsson.org>
33837         and Nelson H. F. Beebe <beebe@math.utah.edu>.
33838
33839 2009-12-30  Eric Blake  <ebb9@byu.net>
33840
33841         futimens, utimensat: work around ntfs-3g bug
33842         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
33843         a ctime bug is present, and expand workaround to cover ntfs-3g.
33844         * lib/utimens.c (fdutimens, lutimens): Likewise.
33845         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
33846         (validate_timespec): Adjust return value.
33847         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
33848         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33849         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
33850
33851 2009-12-29  Eric Blake  <ebb9@byu.net>
33852
33853         link-warning: make usage consistent
33854         * modules/ctype (Depends-on): Add link-warning.
33855         (Makefile.am): Update rules accordingly.
33856         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33857         * modules/locale (Depends-on, Makefile.am): Likewise.
33858         * modules/sys_file (Makefile.am): Likewise.
33859         * modules/getopt-posix (Makefile.am): Delete unused link warning
33860         efforts.
33861         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
33862         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
33863         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
33864         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
33865
33866         stdio: remove unused variables
33867         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
33868         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
33869         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
33870
33871         tests: test more substitute headers
33872         * modules/ctype-tests: New file.
33873         * modules/dirent-tests: Likewise.
33874         * modules/spawn-tests: Likewise.
33875         * modules/sys_file-tests: Likewise.
33876         * modules/sys_ioctl-tests: Likewise.
33877         * modules/sys_wait-tests: Likewise.
33878         * tests/test-ctype.c: Likewise.
33879         * tests/test-dirent.c: Likewise.
33880         * tests/test-spawn.c: Likewise.
33881         * tests/test-sys_file.c: Likewise.
33882         * tests/test-sys_ioctl.c: Likewise.
33883         * tests/test-sys_wait.c: Likewise.
33884         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
33885         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
33886         whether or not flock is in use.
33887
33888         tests: remove License section from module
33889         * modules/arpa_inet-tests: Remove unneeded section.
33890         * modules/byteswap-tests: Likewise.
33891         * modules/ceilf-tests: Likewise.
33892         * modules/ceill-tests: Likewise.
33893         * modules/crypto/des-tests: Likewise.
33894         * modules/crypto/gc-arcfour-tests: Likewise.
33895         * modules/crypto/gc-arctwo-tests: Likewise.
33896         * modules/crypto/gc-des-tests: Likewise.
33897         * modules/crypto/gc-hmac-md5-tests: Likewise.
33898         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33899         * modules/crypto/gc-md2-tests: Likewise.
33900         * modules/crypto/gc-md4-tests: Likewise.
33901         * modules/crypto/gc-md5-tests: Likewise.
33902         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33903         * modules/crypto/gc-rijndael-tests: Likewise.
33904         * modules/crypto/gc-sha1-tests: Likewise.
33905         * modules/crypto/gc-tests: Likewise.
33906         * modules/crypto/md2-tests: Likewise.
33907         * modules/crypto/md4-tests: Likewise.
33908         * modules/fcntl-h-tests: Likewise.
33909         * modules/floorf-tests: Likewise.
33910         * modules/floorl-tests: Likewise.
33911         * modules/frexp-nolibm-tests: Likewise.
33912         * modules/frexp-tests: Likewise.
33913         * modules/frexpl-nolibm-tests: Likewise.
33914         * modules/frexpl-tests: Likewise.
33915         * modules/getaddrinfo-tests: Likewise.
33916         * modules/inttypes-tests: Likewise.
33917         * modules/isfinite-tests: Likewise.
33918         * modules/isinf-tests: Likewise.
33919         * modules/ldexpl-tests: Likewise.
33920         * modules/locale-tests: Likewise.
33921         * modules/math-tests: Likewise.
33922         * modules/netdb-tests: Likewise.
33923         * modules/netinet_in-tests: Likewise.
33924         * modules/printf-frexp-tests: Likewise.
33925         * modules/printf-frexpl-tests: Likewise.
33926         * modules/priv-set-tests: Likewise.
33927         * modules/random_r-tests: Likewise.
33928         * modules/round-tests: Likewise.
33929         * modules/roundf-tests: Likewise.
33930         * modules/roundl-tests: Likewise.
33931         * modules/search-tests: Likewise.
33932         * modules/select-tests: Likewise.
33933         * modules/signal-tests: Likewise.
33934         * modules/stdbool-tests: Likewise.
33935         * modules/stddef-tests: Likewise.
33936         * modules/stdint-tests: Likewise.
33937         * modules/stdio-tests: Likewise.
33938         * modules/stdlib-tests: Likewise.
33939         * modules/string-tests: Likewise.
33940         * modules/strings-tests: Likewise.
33941         * modules/sys_select-tests: Likewise.
33942         * modules/sys_socket-tests: Likewise.
33943         * modules/sys_stat-tests: Likewise.
33944         * modules/sys_time-tests: Likewise.
33945         * modules/sys_utsname-tests: Likewise.
33946         * modules/sysexits-tests: Likewise.
33947         * modules/time-tests: Likewise.
33948         * modules/trunc-tests: Likewise.
33949         * modules/truncf-tests: Likewise.
33950         * modules/truncl-tests: Likewise.
33951         * modules/tsearch-tests: Likewise.
33952         * modules/unistd-tests: Likewise.
33953         * modules/wchar-tests: Likewise.
33954         * modules/wctype-tests: Likewise.
33955
33956         tests: fix license on several tests
33957         * tests/test-des.c: Update to GPLv3+.
33958         * tests/test-flock.c: Likewise.
33959         * tests/test-fsync.c: Likewise.
33960         * tests/test-futimens.h: Likewise.
33961         * tests/test-gc-arcfour.c: Likewise.
33962         * tests/test-gc-arctwo.c: Likewise.
33963         * tests/test-gc-des.c: Likewise.
33964         * tests/test-gc-hmac-md5.c: Likewise.
33965         * tests/test-gc-hmac-sha1.c: Likewise.
33966         * tests/test-gc-md2.c: Likewise.
33967         * tests/test-gc-md4.c: Likewise.
33968         * tests/test-gc-md5.c: Likewise.
33969         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33970         * tests/test-gc-rijndael.c: Likewise.
33971         * tests/test-gc-sha1.c: Likewise.
33972         * tests/test-gc.c: Likewise.
33973         * tests/test-getcwd.c: Likewise.
33974         * tests/test-link.c: Likewise.
33975         * tests/test-link.h: Likewise.
33976         * tests/test-lutimens.h: Likewise.
33977         * tests/test-md2.c: Likewise.
33978         * tests/test-md4.c: Likewise.
33979         * tests/test-mkdir.h: Likewise.
33980         * tests/test-rename.c: Likewise.
33981         * tests/test-rename.h: Likewise.
33982         * tests/test-safe-alloc.c: Likewise.
33983         * tests/test-utimens-common.h: Likewise.
33984         * tests/test-utimens.h: Likewise.
33985
33986         maint: sync license texts
33987         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33988         * doc/gpl-3.0.texi: Revert copyright year update.
33989         * doc/lgpl-3.0.texi: Likewise.
33990
33991 2009-12-29  Jim Meyering  <meyering@redhat.com>
33992
33993         update nearly all FSF copyright year lists to include 2009
33994         The files named by the following are exempted:
33995             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33996               test -f "$dst" && { echo "$dst"; continue; }
33997               test -d "$dst" || continue
33998               echo "$dst"/$(basename "$src")
33999             done > exempt
34000             git ls-files tests/unictype >> exempt
34001         In the remaining files, convert to all-interval notation if
34002         - there is already at least one year interval like 2000-2003
34003         - the file is maintained by me
34004         - the file is in lib/uni*/, where that style already prevails
34005         Otherwise, use update-copyright's default.
34006
34007 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34008         and Eric Blake  <ebb9@byu.net>
34009
34010         tests: don't require debug system() to pass
34011         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34012         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34013         * tests/test-unlink.h (test_unlink_func): Likewise.
34014         * tests/test-fstatat.c (main): ...into callers.
34015         * tests/test-lstat.c (main): Likewise.
34016         * tests/test-rmdir.c (main): Likewise.
34017         * tests/test-unlink.c (main): Likewise.
34018         * tests/test-unlinkat.c (main): Likewise.
34019         * tests/test-areadlink-with-size.c (main): Don't require a
34020         debug-only system call to pass, aiding cross-testing to mingw.
34021         * tests/test-areadlink.c (main): Likewise.
34022         * tests/test-areadlinkat-with-size.c (main): Likewise.
34023         * tests/test-areadlinkat.c (main): Likewise.
34024         * tests/test-canonicalize-lgpl.c (main): Likewise.
34025         * tests/test-canonicalize.c (main): Likewise.
34026         * tests/test-chown.c (main): Likewise.
34027         * tests/test-fchownat.c (main): Likewise.
34028         * tests/test-lchown.c (main): Likewise.
34029         * tests/test-fdutimensat.c (main): Likewise.
34030         * tests/test-futimens.c (main): Likewise.
34031         * tests/test-link.c (main): Likewise.
34032         * tests/test-linkat.c (main): Likewise.
34033         * tests/test-mkdir.c (main): Likewise.
34034         * tests/test-mkdirat.c (main): Likewise.
34035         * tests/test-mkfifo.c (main): Likewise.
34036         * tests/test-mkfifoat.c (main): Likewise.
34037         * tests/test-mknod.c (main): Likewise.
34038         * tests/test-readlink.c (main): Likewise.
34039         * tests/test-remove.c (main): Likewise.
34040         * tests/test-rename.c (main): Likewise.
34041         * tests/test-renameat.c (main): Likewise.
34042         * tests/test-symlink.c (main): Likewise.
34043         * tests/test-symlinkat.c (main): Likewise.
34044         * tests/test-utimens.c (main): Likewise.
34045         * tests/test-utimensat.c (main): Likewise.
34046
34047 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34048
34049         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34050         on $(UNUSED_PARAMETER_H) to avoid build failure.
34051
34052 2009-12-28  Jim Meyering  <meyering@redhat.com>
34053
34054         update-copyright: you may specify a max. line length other than 72
34055         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34056
34057         maint: use consistent FSF copyright line syntax
34058         * lib/posixtm.c: Add missing comma in FSF copyright line.
34059         * lib/posixtm.h: Likewise.
34060         * lib/getugroups.c: Add missing ", Inc.".
34061
34062         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34063         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34064         FSF copyright line.  Remove trailing blanks.
34065
34066 2009-12-28  Eric Blake  <ebb9@byu.net>
34067
34068         test-dup2: reduce dependencies
34069         * modules/cloexec (Configure.ac): Set witness.
34070         * modules/dup2-tests (Depends-on): Drop cloexec.
34071         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34072         not present.
34073         Suggested by Bruno Haible.
34074
34075 2009-12-26  Bruno Haible  <bruno@clisp.org>
34076
34077         Remove an unneeded dependency.
34078         * modules/fseterr (Depends-on): Remove dup2.
34079
34080 2009-12-26  Eric Blake  <ebb9@byu.net>
34081
34082         tests: use macros.h in more places
34083         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34084         (ASSERT_STREAM): Provide default of stderr.
34085         * tests/test-dirent-safer.c: Include macros.h, using alternate
34086         stream for assertions.
34087         * tests/test-dup-safer.c: Likewise.
34088         * tests/test-freopen-safer.c: Likewise.
34089         * tests/test-getopt.c: Likewise.
34090         * tests/test-openat-safer.c: Likewise.
34091         * tests/test-pipe.c: Likewise.
34092         * tests/test-popen-safer.c: Likewise.
34093         * modules/dirent-safer-tests (Files): Include macros.h.
34094         * modules/unistd-safer-tests (Files): Likewise.
34095         * modules/freopen-safer-tests (Files): Likewise.
34096         * modules/getopt-posix-tests (Files): Likewise.
34097         * modules/openat-safer-tests (Files): Likewise.
34098         * modules/pipe-tests (Files): Likewise.
34099
34100 2009-12-26  Bruno Haible  <bruno@clisp.org>
34101
34102         javacomp: Portability fix.
34103         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34104         that it also works on Solaris.
34105
34106 2009-12-26  Bruno Haible  <bruno@clisp.org>
34107
34108         localename: Fix storage allocation of gl_locale_name_thread's result.
34109         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34110         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34111         all platforms that have 'uselocale'.
34112         (gl_locale_name_thread_unsafe): New function, extracted from
34113         gl_locale_name_thread.
34114         (gl_locale_name_thread): Call struniq on all platforms that have
34115         'uselocale'.
34116         * tests/test-localename.c (test_locale_name_thread): Check that the
34117         resulting strings are permanently allocated.
34118         * modules/localename-tests (Depends-on): Add strdup.
34119
34120 2009-12-26  Bruno Haible  <bruno@clisp.org>
34121
34122         * tests/test-localename.c (categories): Fill in the strings.
34123
34124 2009-12-26  Jim Meyering  <meyering@redhat.com>
34125
34126         isdir: complete the removal of m4/isdir.m4
34127         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34128
34129         isdir: clean up, since at least grep still uses it
34130         * lib/isdir.c: Include "isdir.h".
34131         (S_ISDIR): Remove now-unneeded definition.
34132         * modules/isdir (Files): Add lib/isdir.h.
34133         * lib/isdir.h: New file, with declaration.
34134         * m4/isdir.m4: Remove file -- unneeded.
34135
34136 2009-12-25  Bruno Haible  <bruno@clisp.org>
34137
34138         selinux-h: Make generated .h files standalone.
34139         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34140         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34141         * lib/se-selinux.in.h: Likewise.
34142         * modules/selinux-h (Depends-on): Add unused-parameter.
34143         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34144         selinux/selinux.h and selinux/context.h.
34145         Suggested by Eric Blake.
34146
34147 2009-12-25  Bruno Haible  <bruno@clisp.org>
34148
34149         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34150         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34151         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34152         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34153         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34154
34155 2009-12-24  Bruno Haible  <bruno@clisp.org>
34156
34157         openat: Fix warning.
34158         * lib/openat-proc.c: Include <unistd.h>.
34159
34160 2009-12-24  Bruno Haible  <bruno@clisp.org>
34161
34162         New module 'unused-parameter'.
34163         * build-aux/unused-parameter.h: New file, extracted from earlier
34164         gnulib-common.m4.
34165         * modules/unused-parameter: New file.
34166         * lib/unistr.h: Include unused-parameter.h.
34167         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34168         _GL_UNUSED.
34169         * modules/unistr/base (Depends-on): Add unused-parameter.
34170
34171 2009-12-24  Bruno Haible  <bruno@clisp.org>
34172
34173         Add missing dependencies to 'extensions' module.
34174         * m4/extensions.m4: Add comment.
34175         * modules/accept4 (Depends-on): Add extensions.
34176         * modules/dup3 (Depends-on): Likewise.
34177         * modules/fcntl (Depends-on): Likewise.
34178         * modules/futimens (Depends-on): Likewise.
34179         * modules/mknod (Depends-on): Likewise.
34180         * modules/pipe2 (Depends-on): Likewise.
34181         * modules/stat-time (Depends-on): Likewise.
34182         * modules/strcasestr-simple (Depends-on): Likewise.
34183         * modules/strsignal (Depends-on): Likewise.
34184         * modules/utimensat (Depends-on): Likewise.
34185         * modules/localcharset (Depends-on): Likewise. Needed because of
34186         gl_FCNTL_O_FLAGS.
34187         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34188         AC_TYPE_MBSTATE_T.
34189         * modules/wcsnrtombs (Depends-on): Likewise.
34190         * modules/wcsrtombs (Depends-on): Likewise.
34191
34192 2009-12-24  Bruno Haible  <bruno@clisp.org>
34193
34194         binary-io: Avoid gcc warning due to SET_BINARY.
34195         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34196         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34197
34198 2009-12-24  Bruno Haible  <bruno@clisp.org>
34199
34200         Avoid future namespace pollution on glibc systems.
34201         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34202         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34203         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34204         glibc systems.
34205
34206 2009-12-24  Bruno Haible  <bruno@clisp.org>
34207
34208         Refactor common macros used in tests.
34209         * tests/macros.h: New file.
34210         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34211         and/or <stdlib.h>, if appropriate.
34212         (ASSERT, SIZEOF): Remove macros.
34213         * tests/test-areadlink-with-size.c: Likewise.
34214         * tests/test-areadlinkat.c: Likewise.
34215         * tests/test-areadlinkat-with-size.c: Likewise.
34216         * tests/test-argmatch.c: Likewise.
34217         * tests/test-argv-iter.c: Likewise.
34218         * tests/test-array-mergesort.c: Likewise.
34219         * tests/test-array_list.c: Likewise.
34220         * tests/test-array_oset.c: Likewise.
34221         * tests/test-avltree_list.c: Likewise.
34222         * tests/test-avltree_oset.c: Likewise.
34223         * tests/test-avltreehash_list.c: Likewise.
34224         * tests/test-base64.c: Likewise.
34225         * tests/test-binary-io.c: Likewise.
34226         * tests/test-bitrotate.c: Likewise.
34227         * tests/test-btowc.c: Likewise.
34228         * tests/test-byteswap.c: Likewise.
34229         * tests/test-c-ctype.c: Likewise.
34230         * tests/test-c-stack.c: Likewise.
34231         * tests/test-c-strcasecmp.c: Likewise.
34232         * tests/test-c-strcasestr.c: Likewise.
34233         * tests/test-c-strncasecmp.c: Likewise.
34234         * tests/test-c-strstr.c: Likewise.
34235         * tests/test-canonicalize-lgpl.c: Likewise.
34236         * tests/test-canonicalize.c: Likewise.
34237         * tests/test-carray_list.c: Likewise.
34238         * tests/test-ceilf1.c: Likewise.
34239         * tests/test-ceilf2.c: Likewise.
34240         * tests/test-ceill.c: Likewise.
34241         * tests/test-chown.c: Likewise.
34242         * tests/test-cloexec.c: Likewise.
34243         * tests/test-copy-acl.c: Likewise.
34244         * tests/test-copy-file.c: Likewise.
34245         * tests/test-count-one-bits.c: Likewise.
34246         * tests/test-dprintf-posix.c: Likewise.
34247         * tests/test-dup2.c: Likewise.
34248         * tests/test-dup3.c: Likewise.
34249         * tests/test-duplocale.c: Likewise.
34250         * tests/test-fbufmode.c: Likewise.
34251         * tests/test-fchdir.c: Likewise.
34252         * tests/test-fchownat.c: Likewise.
34253         * tests/test-fcntl-safer.c: Likewise.
34254         * tests/test-fcntl.c: Likewise.
34255         * tests/test-fdopendir.c: Likewise.
34256         * tests/test-fdutimensat.c: Likewise.
34257         * tests/test-fflush2.c: Likewise.
34258         * tests/test-file-has-acl.c: Likewise.
34259         * tests/test-filevercmp.c: Likewise.
34260         * tests/test-flock.c: Likewise.
34261         * tests/test-floorf1.c: Likewise.
34262         * tests/test-floorf2.c: Likewise.
34263         * tests/test-floorl.c: Likewise.
34264         * tests/test-fnmatch.c: Likewise.
34265         * tests/test-fopen.h: Likewise.
34266         * tests/test-fpending.c: Likewise.
34267         * tests/test-fprintf-posix.c: Likewise.
34268         * tests/test-fpurge.c: Likewise.
34269         * tests/test-freadable.c: Likewise.
34270         * tests/test-freadahead.c: Likewise.
34271         * tests/test-freading.c: Likewise.
34272         * tests/test-freadptr.c: Likewise.
34273         * tests/test-freadptr2.c: Likewise.
34274         * tests/test-freadseek.c: Likewise.
34275         * tests/test-freopen.c: Likewise.
34276         * tests/test-frexp.c: Likewise.
34277         * tests/test-frexpl.c: Likewise.
34278         * tests/test-fseek.c: Likewise.
34279         * tests/test-fseeko.c: Likewise.
34280         * tests/test-fstatat.c: Likewise.
34281         * tests/test-fstrcmp.c: Likewise.
34282         * tests/test-fsync.c: Likewise.
34283         * tests/test-ftell.c: Likewise.
34284         * tests/test-ftello.c: Likewise.
34285         * tests/test-func.c: Likewise.
34286         * tests/test-futimens.c: Likewise.
34287         * tests/test-fwritable.c: Likewise.
34288         * tests/test-fwriting.c: Likewise.
34289         * tests/test-getcwd.c: Likewise.
34290         * tests/test-getdate.c: Likewise.
34291         * tests/test-getdelim.c: Likewise.
34292         * tests/test-getdtablesize.c: Likewise.
34293         * tests/test-getgroups.c: Likewise.
34294         * tests/test-getline.c: Likewise.
34295         * tests/test-getndelim2.c: Likewise.
34296         * tests/test-glob.c: Likewise.
34297         * tests/test-hash.c: Likewise.
34298         * tests/test-i-ring.c: Likewise.
34299         * tests/test-iconv-utf.c: Likewise.
34300         * tests/test-iconv.c: Likewise.
34301         * tests/test-idpriv-drop.c: Likewise.
34302         * tests/test-idpriv-droptemp.c: Likewise.
34303         * tests/test-inet_ntop.c: Likewise.
34304         * tests/test-inet_pton.c: Likewise.
34305         * tests/test-isblank.c: Likewise.
34306         * tests/test-isfinite.c: Likewise.
34307         * tests/test-isinf.c: Likewise.
34308         * tests/test-isnan.c: Likewise.
34309         * tests/test-isnand.h: Likewise.
34310         * tests/test-isnanf.h: Likewise.
34311         * tests/test-isnanl.h: Likewise.
34312         * tests/test-lchown.c: Likewise.
34313         * tests/test-ldexpl.c: Likewise.
34314         * tests/test-link.c: Likewise.
34315         * tests/test-linkat.c: Likewise.
34316         * tests/test-linked_list.c: Likewise.
34317         * tests/test-linkedhash_list.c: Likewise.
34318         * tests/test-localename.c: Likewise.
34319         * tests/test-lseek.c: Likewise.
34320         * tests/test-lstat.c: Likewise.
34321         * tests/test-mbmemcasecmp.c: Likewise.
34322         * tests/test-mbmemcasecoll.c: Likewise.
34323         * tests/test-mbrtowc.c: Likewise.
34324         * tests/test-mbscasecmp.c: Likewise.
34325         * tests/test-mbscasestr1.c: Likewise.
34326         * tests/test-mbscasestr2.c: Likewise.
34327         * tests/test-mbscasestr3.c: Likewise.
34328         * tests/test-mbscasestr4.c: Likewise.
34329         * tests/test-mbschr.c: Likewise.
34330         * tests/test-mbscspn.c: Likewise.
34331         * tests/test-mbsinit.c: Likewise.
34332         * tests/test-mbsncasecmp.c: Likewise.
34333         * tests/test-mbsnrtowcs.c: Likewise.
34334         * tests/test-mbspbrk.c: Likewise.
34335         * tests/test-mbspcasecmp.c: Likewise.
34336         * tests/test-mbsrchr.c: Likewise.
34337         * tests/test-mbsrtowcs.c: Likewise.
34338         * tests/test-mbsspn.c: Likewise.
34339         * tests/test-mbsstr1.c: Likewise.
34340         * tests/test-mbsstr2.c: Likewise.
34341         * tests/test-mbsstr3.c: Likewise.
34342         * tests/test-memchr.c: Likewise.
34343         * tests/test-memchr2.c: Likewise.
34344         * tests/test-memcmp.c: Likewise.
34345         * tests/test-memmem.c: Likewise.
34346         * tests/test-memrchr.c: Likewise.
34347         * tests/test-mkdir.c: Likewise.
34348         * tests/test-mkdirat.c: Likewise.
34349         * tests/test-mkfifo.c: Likewise.
34350         * tests/test-mkfifoat.c: Likewise.
34351         * tests/test-mknod.c: Likewise.
34352         * tests/test-nanosleep.c: Likewise.
34353         * tests/test-nl_langinfo.c: Likewise.
34354         * tests/test-obstack-printf.c: Likewise.
34355         * tests/test-open.c: Likewise.
34356         * tests/test-openat.c: Likewise.
34357         * tests/test-pipe-filter-gi1.c: Likewise.
34358         * tests/test-pipe-filter-gi2-main.c: Likewise.
34359         * tests/test-pipe-filter-ii1.c: Likewise.
34360         * tests/test-pipe-filter-ii2-main.c: Likewise.
34361         * tests/test-pipe2.c: Likewise.
34362         * tests/test-popen.h: Likewise.
34363         * tests/test-posixtm.c: Likewise.
34364         * tests/test-pread.c: Likewise.
34365         * tests/test-printf-frexp.c: Likewise.
34366         * tests/test-printf-frexpl.c: Likewise.
34367         * tests/test-printf-posix.c: Likewise.
34368         * tests/test-priv-set.c: Likewise.
34369         * tests/test-quotearg.c: Likewise.
34370         * tests/test-random_r.c: Likewise.
34371         * tests/test-rawmemchr.c: Likewise.
34372         * tests/test-rbtree_list.c: Likewise.
34373         * tests/test-rbtree_oset.c: Likewise.
34374         * tests/test-rbtreehash_list.c: Likewise.
34375         * tests/test-readlink.c: Likewise.
34376         * tests/test-remove.c: Likewise.
34377         * tests/test-rename.c: Likewise.
34378         * tests/test-renameat.c: Likewise.
34379         * tests/test-rmdir.c: Likewise.
34380         * tests/test-round1.c: Likewise.
34381         * tests/test-roundf1.c: Likewise.
34382         * tests/test-roundl.c: Likewise.
34383         * tests/test-safe-alloc.c: Likewise.
34384         * tests/test-sameacls.c: Likewise.
34385         * tests/test-set-mode-acl.c: Likewise.
34386         * tests/test-setenv.c: Likewise.
34387         * tests/test-sigaction.c: Likewise.
34388         * tests/test-signbit.c: Likewise.
34389         * tests/test-sleep.c: Likewise.
34390         * tests/test-snprintf-posix.c: Likewise.
34391         * tests/test-snprintf.c: Likewise.
34392         * tests/test-sprintf-posix.c: Likewise.
34393         * tests/test-stat-time.c: Likewise.
34394         * tests/test-stat.c: Likewise.
34395         * tests/test-strcasestr.c: Likewise.
34396         * tests/test-strchrnul.c: Likewise.
34397         * tests/test-strerror.c: Likewise.
34398         * tests/test-striconv.c: Likewise.
34399         * tests/test-striconveh.c: Likewise.
34400         * tests/test-striconveha.c: Likewise.
34401         * tests/test-strsignal.c: Likewise.
34402         * tests/test-strstr.c: Likewise.
34403         * tests/test-strtod.c: Likewise.
34404         * tests/test-strverscmp.c: Likewise.
34405         * tests/test-symlink.c: Likewise.
34406         * tests/test-symlinkat.c: Likewise.
34407         * tests/test-trunc1.c: Likewise.
34408         * tests/test-trunc2.c: Likewise.
34409         * tests/test-truncf1.c: Likewise.
34410         * tests/test-truncf2.c: Likewise.
34411         * tests/test-truncl.c: Likewise.
34412         * tests/test-uname.c: Likewise.
34413         * tests/test-unlink.c: Likewise.
34414         * tests/test-unlinkat.c: Likewise.
34415         * tests/test-unsetenv.c: Likewise.
34416         * tests/test-usleep.c: Likewise.
34417         * tests/test-utimens.c: Likewise.
34418         * tests/test-utimensat.c: Likewise.
34419         * tests/test-vasnprintf-posix.c: Likewise.
34420         * tests/test-vasnprintf-posix2.c: Likewise.
34421         * tests/test-vasnprintf.c: Likewise.
34422         * tests/test-vasprintf-posix.c: Likewise.
34423         * tests/test-vasprintf.c: Likewise.
34424         * tests/test-vdprintf-posix.c: Likewise.
34425         * tests/test-vfprintf-posix.c: Likewise.
34426         * tests/test-vprintf-posix.c: Likewise.
34427         * tests/test-vsnprintf-posix.c: Likewise.
34428         * tests/test-vsnprintf.c: Likewise.
34429         * tests/test-vsprintf-posix.c: Likewise.
34430         * tests/test-wcrtomb.c: Likewise.
34431         * tests/test-wcsnrtombs.c: Likewise.
34432         * tests/test-wcsrtombs.c: Likewise.
34433         * tests/test-wctype.c: Likewise.
34434         * tests/test-wcwidth.c: Likewise.
34435         * tests/test-xfprintf-posix.c: Likewise.
34436         * tests/test-xmemdup0.c: Likewise.
34437         * tests/test-xprintf-posix.c: Likewise.
34438         * tests/test-xvasprintf.c: Likewise.
34439         * tests/unicase/test-locale-language.c: Likewise.
34440         * tests/unicase/test-mapping-part1.h: Likewise.
34441         * tests/unicase/test-predicate-part1.h: Likewise.
34442         * tests/unicase/test-u8-casecmp.c: Likewise.
34443         * tests/unicase/test-u8-casecoll.c: Likewise.
34444         * tests/unicase/test-u8-casefold.c: Likewise.
34445         * tests/unicase/test-u8-is-cased.c: Likewise.
34446         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34447         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34448         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34449         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34450         * tests/unicase/test-u8-tolower.c: Likewise.
34451         * tests/unicase/test-u8-totitle.c: Likewise.
34452         * tests/unicase/test-u8-toupper.c: Likewise.
34453         * tests/unicase/test-u16-casecmp.c: Likewise.
34454         * tests/unicase/test-u16-casecoll.c: Likewise.
34455         * tests/unicase/test-u16-casefold.c: Likewise.
34456         * tests/unicase/test-u16-is-cased.c: Likewise.
34457         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34458         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34459         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34460         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34461         * tests/unicase/test-u16-tolower.c: Likewise.
34462         * tests/unicase/test-u16-totitle.c: Likewise.
34463         * tests/unicase/test-u16-toupper.c: Likewise.
34464         * tests/unicase/test-u32-casecmp.c: Likewise.
34465         * tests/unicase/test-u32-casecoll.c: Likewise.
34466         * tests/unicase/test-u32-casefold.c: Likewise.
34467         * tests/unicase/test-u32-is-cased.c: Likewise.
34468         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34469         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34470         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34471         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34472         * tests/unicase/test-u32-tolower.c: Likewise.
34473         * tests/unicase/test-u32-totitle.c: Likewise.
34474         * tests/unicase/test-u32-toupper.c: Likewise.
34475         * tests/unicase/test-ulc-casecmp.c: Likewise.
34476         * tests/unicase/test-ulc-casecoll.c: Likewise.
34477         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34478         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34479         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34480         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34481         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34482         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34483         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34484         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34485         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34486         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34487         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34488         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34489         * tests/unictype/test-bidi_byname.c: Likewise.
34490         * tests/unictype/test-bidi_name.c: Likewise.
34491         * tests/unictype/test-bidi_of.c: Likewise.
34492         * tests/unictype/test-bidi_test.c: Likewise.
34493         * tests/unictype/test-block_list.c: Likewise.
34494         * tests/unictype/test-block_of.c: Likewise.
34495         * tests/unictype/test-block_test.c: Likewise.
34496         * tests/unictype/test-categ_and.c: Likewise.
34497         * tests/unictype/test-categ_and_not.c: Likewise.
34498         * tests/unictype/test-categ_byname.c: Likewise.
34499         * tests/unictype/test-categ_name.c: Likewise.
34500         * tests/unictype/test-categ_none.c: Likewise.
34501         * tests/unictype/test-categ_of.c: Likewise.
34502         * tests/unictype/test-categ_or.c: Likewise.
34503         * tests/unictype/test-categ_test_withtable.c: Likewise.
34504         * tests/unictype/test-combining.c: Likewise.
34505         * tests/unictype/test-decdigit.c: Likewise.
34506         * tests/unictype/test-digit.c: Likewise.
34507         * tests/unictype/test-mirror.c: Likewise.
34508         * tests/unictype/test-numeric.c: Likewise.
34509         * tests/unictype/test-pr_byname.c: Likewise.
34510         * tests/unictype/test-pr_test.c: Likewise.
34511         * tests/unictype/test-predicate-part1.h: Likewise.
34512         * tests/unictype/test-scripts.c: Likewise.
34513         * tests/unictype/test-sy_c_ident.c: Likewise.
34514         * tests/unictype/test-sy_java_ident.c: Likewise.
34515         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34516         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34517         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34518         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34519         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34520         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34521         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34522         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34523         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34524         * tests/uninorm/test-compat-decomposition.c: Likewise.
34525         * tests/uninorm/test-composition.c: Likewise.
34526         * tests/uninorm/test-decomposing-form.c: Likewise.
34527         * tests/uninorm/test-decomposition.c: Likewise.
34528         * tests/uninorm/test-u8-nfc.c: Likewise.
34529         * tests/uninorm/test-u8-nfd.c: Likewise.
34530         * tests/uninorm/test-u8-nfkc.c: Likewise.
34531         * tests/uninorm/test-u8-nfkd.c: Likewise.
34532         * tests/uninorm/test-u8-normcmp.c: Likewise.
34533         * tests/uninorm/test-u8-normcoll.c: Likewise.
34534         * tests/uninorm/test-u16-nfc.c: Likewise.
34535         * tests/uninorm/test-u16-nfd.c: Likewise.
34536         * tests/uninorm/test-u16-nfkc.c: Likewise.
34537         * tests/uninorm/test-u16-nfkd.c: Likewise.
34538         * tests/uninorm/test-u16-normcmp.c: Likewise.
34539         * tests/uninorm/test-u16-normcoll.c: Likewise.
34540         * tests/uninorm/test-u32-nfc.c: Likewise.
34541         * tests/uninorm/test-u32-nfd.c: Likewise.
34542         * tests/uninorm/test-u32-nfkc.c: Likewise.
34543         * tests/uninorm/test-u32-nfkd.c: Likewise.
34544         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34545         * tests/uninorm/test-u32-normcmp.c: Likewise.
34546         * tests/uninorm/test-u32-normcoll.c: Likewise.
34547         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34548         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34549         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34550         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34551         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34552         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34553         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34554         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34555         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34556         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34557         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34558         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34559         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34560         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34561         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34562         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34563         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34564         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34565         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34566         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34567         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34568         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34569         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34570         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34571         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34572         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34573         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34574         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34575         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34576         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34577         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34578         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34579         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34580         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34581         * tests/uniwidth/test-u8-width.c: Likewise.
34582         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34583         * tests/uniwidth/test-u16-width.c: Likewise.
34584         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34585         * tests/uniwidth/test-u32-width.c: Likewise.
34586         * tests/uniwidth/test-uc_width.c: Likewise.
34587         * tests/uniwidth/test-uc_width2.c: Likewise.
34588         * modules/acl-tests (Files): Add tests/macros.h.
34589         * modules/areadlink-tests (Files): Likewise.
34590         * modules/areadlink-with-size-tests (Files): Likewise.
34591         * modules/areadlinkat-tests (Files): Likewise.
34592         * modules/areadlinkat-with-size-tests (Files): Likewise.
34593         * modules/argmatch-tests (Files): Likewise.
34594         * modules/argv-iter-tests (Files): Likewise.
34595         * modules/array-list-tests (Files): Likewise.
34596         * modules/array-mergesort-tests (Files): Likewise.
34597         * modules/array-oset-tests (Files): Likewise.
34598         * modules/avltree-list-tests (Files): Likewise.
34599         * modules/avltree-oset-tests (Files): Likewise.
34600         * modules/avltreehash-list-tests (Files): Likewise.
34601         * modules/base64-tests (Files): Likewise.
34602         * modules/binary-io-tests (Files): Likewise.
34603         * modules/bitrotate-tests (Files): Likewise.
34604         * modules/btowc-tests (Files): Likewise.
34605         * modules/byteswap-tests (Files): Likewise.
34606         * modules/c-ctype-tests (Files): Likewise.
34607         * modules/c-stack-tests (Files): Likewise.
34608         * modules/c-strcase-tests (Files): Likewise.
34609         * modules/c-strcasestr-tests (Files): Likewise.
34610         * modules/c-strstr-tests (Files): Likewise.
34611         * modules/canonicalize-lgpl-tests (Files): Likewise.
34612         * modules/canonicalize-tests (Files): Likewise.
34613         * modules/carray-list-tests (Files): Likewise.
34614         * modules/ceilf-tests (Files): Likewise.
34615         * modules/ceill-tests (Files): Likewise.
34616         * modules/chown-tests (Files): Likewise.
34617         * modules/cloexec-tests (Files): Likewise.
34618         * modules/copy-file-tests (Files): Likewise.
34619         * modules/count-one-bits-tests (Files): Likewise.
34620         * modules/dprintf-posix-tests (Files): Likewise.
34621         * modules/dup2-tests (Files): Likewise.
34622         * modules/dup3-tests (Files): Likewise.
34623         * modules/duplocale-tests (Files): Likewise.
34624         * modules/fbufmode-tests (Files): Likewise.
34625         * modules/fchdir-tests (Files): Likewise.
34626         * modules/fcntl-safer-tests (Files): Likewise.
34627         * modules/fcntl-tests (Files): Likewise.
34628         * modules/fdopendir-tests (Files): Likewise.
34629         * modules/fdutimensat-tests (Files): Likewise.
34630         * modules/fflush-tests (Files): Likewise.
34631         * modules/filevercmp-tests (Files): Likewise.
34632         * modules/flock-tests (Files): Likewise.
34633         * modules/floorf-tests (Files): Likewise.
34634         * modules/floorl-tests (Files): Likewise.
34635         * modules/fnmatch-tests (Files): Likewise.
34636         * modules/fopen-safer-tests (Files): Likewise.
34637         * modules/fopen-tests (Files): Likewise.
34638         * modules/fpending-tests (Files): Likewise.
34639         * modules/fprintf-posix-tests (Files): Likewise.
34640         * modules/fpurge-tests (Files): Likewise.
34641         * modules/freadable-tests (Files): Likewise.
34642         * modules/freadahead-tests (Files): Likewise.
34643         * modules/freading-tests (Files): Likewise.
34644         * modules/freadptr-tests (Files): Likewise.
34645         * modules/freadseek-tests (Files): Likewise.
34646         * modules/freopen-tests (Files): Likewise.
34647         * modules/frexp-nolibm-tests (Files): Likewise.
34648         * modules/frexp-tests (Files): Likewise.
34649         * modules/frexpl-nolibm-tests (Files): Likewise.
34650         * modules/frexpl-tests (Files): Likewise.
34651         * modules/fseek-tests (Files): Likewise.
34652         * modules/fseeko-tests (Files): Likewise.
34653         * modules/fstrcmp-tests (Files): Likewise.
34654         * modules/fsync-tests (Files): Likewise.
34655         * modules/ftell-tests (Files): Likewise.
34656         * modules/ftello-tests (Files): Likewise.
34657         * modules/func-tests (Files): Likewise.
34658         * modules/futimens-tests (Files): Likewise.
34659         * modules/fwritable-tests (Files): Likewise.
34660         * modules/fwriting-tests (Files): Likewise.
34661         * modules/getcwd-tests (Files): Likewise.
34662         * modules/getdate-tests (Files): Likewise.
34663         * modules/getdelim-tests (Files): Likewise.
34664         * modules/getdtablesize-tests (Files): Likewise.
34665         * modules/getgroups-tests (Files): Likewise.
34666         * modules/getline-tests (Files): Likewise.
34667         * modules/getndelim2-tests (Files): Likewise.
34668         * modules/glob-tests (Files): Likewise.
34669         * modules/hash-tests (Files): Likewise.
34670         * modules/i-ring-tests (Files): Likewise.
34671         * modules/iconv-tests (Files): Likewise.
34672         * modules/iconv_open-utf-tests (Files): Likewise.
34673         * modules/idpriv-drop-tests (Files): Likewise.
34674         * modules/idpriv-droptemp-tests (Files): Likewise.
34675         * modules/inet_ntop-tests (Files): Likewise.
34676         * modules/inet_pton-tests (Files): Likewise.
34677         * modules/isblank-tests (Files): Likewise.
34678         * modules/isfinite-tests (Files): Likewise.
34679         * modules/isinf-tests (Files): Likewise.
34680         * modules/isnan-tests (Files): Likewise.
34681         * modules/isnand-nolibm-tests (Files): Likewise.
34682         * modules/isnand-tests (Files): Likewise.
34683         * modules/isnanf-nolibm-tests (Files): Likewise.
34684         * modules/isnanf-tests (Files): Likewise.
34685         * modules/isnanl-nolibm-tests (Files): Likewise.
34686         * modules/isnanl-tests (Files): Likewise.
34687         * modules/lchown-tests (Files): Likewise.
34688         * modules/ldexpl-tests (Files): Likewise.
34689         * modules/link-tests (Files): Likewise.
34690         * modules/linkat-tests (Files): Likewise.
34691         * modules/linked-list-tests (Files): Likewise.
34692         * modules/linkedhash-list-tests (Files): Likewise.
34693         * modules/localename-tests (Files): Likewise.
34694         * modules/lseek-tests (Files): Likewise.
34695         * modules/lstat-tests (Files): Likewise.
34696         * modules/mbmemcasecmp-tests (Files): Likewise.
34697         * modules/mbmemcasecoll-tests (Files): Likewise.
34698         * modules/mbrtowc-tests (Files): Likewise.
34699         * modules/mbscasecmp-tests (Files): Likewise.
34700         * modules/mbscasestr-tests (Files): Likewise.
34701         * modules/mbschr-tests (Files): Likewise.
34702         * modules/mbscspn-tests (Files): Likewise.
34703         * modules/mbsinit-tests (Files): Likewise.
34704         * modules/mbsncasecmp-tests (Files): Likewise.
34705         * modules/mbsnrtowcs-tests (Files): Likewise.
34706         * modules/mbspbrk-tests (Files): Likewise.
34707         * modules/mbspcasecmp-tests (Files): Likewise.
34708         * modules/mbsrchr-tests (Files): Likewise.
34709         * modules/mbsrtowcs-tests (Files): Likewise.
34710         * modules/mbsspn-tests (Files): Likewise.
34711         * modules/mbsstr-tests (Files): Likewise.
34712         * modules/memchr-tests (Files): Likewise.
34713         * modules/memchr2-tests (Files): Likewise.
34714         * modules/memcmp-tests (Files): Likewise.
34715         * modules/memmem-tests (Files): Likewise.
34716         * modules/memrchr-tests (Files): Likewise.
34717         * modules/mkdir-tests (Files): Likewise.
34718         * modules/mkfifo-tests (Files): Likewise.
34719         * modules/mkfifoat-tests (Files): Likewise.
34720         * modules/mknod-tests (Files): Likewise.
34721         * modules/nanosleep-tests (Files): Likewise.
34722         * modules/nl_langinfo-tests (Files): Likewise.
34723         * modules/obstack-printf-tests (Files): Likewise.
34724         * modules/open-tests (Files): Likewise.
34725         * modules/openat-tests (Files): Likewise.
34726         * modules/pipe-filter-gi-tests (Files): Likewise.
34727         * modules/pipe-filter-ii-tests (Files): Likewise.
34728         * modules/pipe2-tests (Files): Likewise.
34729         * modules/popen-safer-tests (Files): Likewise.
34730         * modules/popen-tests (Files): Likewise.
34731         * modules/posixtm-tests (Files): Likewise.
34732         * modules/pread-tests (Files): Likewise.
34733         * modules/printf-frexp-tests (Files): Likewise.
34734         * modules/printf-frexpl-tests (Files): Likewise.
34735         * modules/printf-posix-tests (Files): Likewise.
34736         * modules/priv-set-tests (Files): Likewise.
34737         * modules/quotearg-tests (Files): Likewise.
34738         * modules/random_r-tests (Files): Likewise.
34739         * modules/rawmemchr-tests (Files): Likewise.
34740         * modules/rbtree-list-tests (Files): Likewise.
34741         * modules/rbtree-oset-tests (Files): Likewise.
34742         * modules/rbtreehash-list-tests (Files): Likewise.
34743         * modules/readlink-tests (Files): Likewise.
34744         * modules/remove-tests (Files): Likewise.
34745         * modules/rename-tests (Files): Likewise.
34746         * modules/renameat-tests (Files): Likewise.
34747         * modules/rmdir-tests (Files): Likewise.
34748         * modules/round-tests (Files): Likewise.
34749         * modules/roundf-tests (Files): Likewise.
34750         * modules/roundl-tests (Files): Likewise.
34751         * modules/safe-alloc-tests (Files): Likewise.
34752         * modules/setenv-tests (Files): Likewise.
34753         * modules/sigaction-tests (Files): Likewise.
34754         * modules/signbit-tests (Files): Likewise.
34755         * modules/sleep-tests (Files): Likewise.
34756         * modules/snprintf-posix-tests (Files): Likewise.
34757         * modules/snprintf-tests (Files): Likewise.
34758         * modules/sprintf-posix-tests (Files): Likewise.
34759         * modules/stat-tests (Files): Likewise.
34760         * modules/stat-time-tests (Files): Likewise.
34761         * modules/strcasestr-tests (Files): Likewise.
34762         * modules/strchrnul-tests (Files): Likewise.
34763         * modules/strerror-tests (Files): Likewise.
34764         * modules/striconv-tests (Files): Likewise.
34765         * modules/striconveh-tests (Files): Likewise.
34766         * modules/striconveha-tests (Files): Likewise.
34767         * modules/strsignal-tests (Files): Likewise.
34768         * modules/strstr-tests (Files): Likewise.
34769         * modules/strtod-tests (Files): Likewise.
34770         * modules/strverscmp-tests (Files): Likewise.
34771         * modules/symlink-tests (Files): Likewise.
34772         * modules/symlinkat-tests (Files): Likewise.
34773         * modules/trunc-tests (Files): Likewise.
34774         * modules/truncf-tests (Files): Likewise.
34775         * modules/truncl-tests (Files): Likewise.
34776         * modules/uname-tests (Files): Likewise.
34777         * modules/unicase/cased-tests (Files): Likewise.
34778         * modules/unicase/ignorable-tests (Files): Likewise.
34779         * modules/unicase/locale-language-tests (Files): Likewise.
34780         * modules/unicase/tolower-tests (Files): Likewise.
34781         * modules/unicase/totitle-tests (Files): Likewise.
34782         * modules/unicase/toupper-tests (Files): Likewise.
34783         * modules/unicase/u8-casecmp-tests (Files): Likewise.
34784         * modules/unicase/u8-casecoll-tests (Files): Likewise.
34785         * modules/unicase/u8-casefold-tests (Files): Likewise.
34786         * modules/unicase/u8-is-cased-tests (Files): Likewise.
34787         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
34788         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
34789         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
34790         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
34791         * modules/unicase/u8-tolower-tests (Files): Likewise.
34792         * modules/unicase/u8-totitle-tests (Files): Likewise.
34793         * modules/unicase/u8-toupper-tests (Files): Likewise.
34794         * modules/unicase/u16-casecmp-tests (Files): Likewise.
34795         * modules/unicase/u16-casecoll-tests (Files): Likewise.
34796         * modules/unicase/u16-casefold-tests (Files): Likewise.
34797         * modules/unicase/u16-is-cased-tests (Files): Likewise.
34798         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
34799         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
34800         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
34801         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
34802         * modules/unicase/u16-tolower-tests (Files): Likewise.
34803         * modules/unicase/u16-totitle-tests (Files): Likewise.
34804         * modules/unicase/u16-toupper-tests (Files): Likewise.
34805         * modules/unicase/u32-casecmp-tests (Files): Likewise.
34806         * modules/unicase/u32-casecoll-tests (Files): Likewise.
34807         * modules/unicase/u32-casefold-tests (Files): Likewise.
34808         * modules/unicase/u32-is-cased-tests (Files): Likewise.
34809         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
34810         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
34811         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
34812         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
34813         * modules/unicase/u32-tolower-tests (Files): Likewise.
34814         * modules/unicase/u32-totitle-tests (Files): Likewise.
34815         * modules/unicase/u32-toupper-tests (Files): Likewise.
34816         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
34817         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
34818         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
34819         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
34820         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
34821         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
34822         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
34823         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
34824         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
34825         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
34826         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
34827         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
34828         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
34829         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
34830         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
34831         * modules/unictype/bidicategory-name-tests (Files): Likewise.
34832         * modules/unictype/bidicategory-of-tests (Files): Likewise.
34833         * modules/unictype/bidicategory-test-tests (Files): Likewise.
34834         * modules/unictype/block-list-tests (Files): Likewise.
34835         * modules/unictype/block-of-tests (Files): Likewise.
34836         * modules/unictype/block-test-tests (Files): Likewise.
34837         * modules/unictype/category-C-tests (Files): Likewise.
34838         * modules/unictype/category-Cc-tests (Files): Likewise.
34839         * modules/unictype/category-Cf-tests (Files): Likewise.
34840         * modules/unictype/category-Cn-tests (Files): Likewise.
34841         * modules/unictype/category-Co-tests (Files): Likewise.
34842         * modules/unictype/category-Cs-tests (Files): Likewise.
34843         * modules/unictype/category-L-tests (Files): Likewise.
34844         * modules/unictype/category-Ll-tests (Files): Likewise.
34845         * modules/unictype/category-Lm-tests (Files): Likewise.
34846         * modules/unictype/category-Lo-tests (Files): Likewise.
34847         * modules/unictype/category-Lt-tests (Files): Likewise.
34848         * modules/unictype/category-Lu-tests (Files): Likewise.
34849         * modules/unictype/category-M-tests (Files): Likewise.
34850         * modules/unictype/category-Mc-tests (Files): Likewise.
34851         * modules/unictype/category-Me-tests (Files): Likewise.
34852         * modules/unictype/category-Mn-tests (Files): Likewise.
34853         * modules/unictype/category-N-tests (Files): Likewise.
34854         * modules/unictype/category-Nd-tests (Files): Likewise.
34855         * modules/unictype/category-Nl-tests (Files): Likewise.
34856         * modules/unictype/category-No-tests (Files): Likewise.
34857         * modules/unictype/category-P-tests (Files): Likewise.
34858         * modules/unictype/category-Pc-tests (Files): Likewise.
34859         * modules/unictype/category-Pd-tests (Files): Likewise.
34860         * modules/unictype/category-Pe-tests (Files): Likewise.
34861         * modules/unictype/category-Pf-tests (Files): Likewise.
34862         * modules/unictype/category-Pi-tests (Files): Likewise.
34863         * modules/unictype/category-Po-tests (Files): Likewise.
34864         * modules/unictype/category-Ps-tests (Files): Likewise.
34865         * modules/unictype/category-S-tests (Files): Likewise.
34866         * modules/unictype/category-Sc-tests (Files): Likewise.
34867         * modules/unictype/category-Sk-tests (Files): Likewise.
34868         * modules/unictype/category-Sm-tests (Files): Likewise.
34869         * modules/unictype/category-So-tests (Files): Likewise.
34870         * modules/unictype/category-Z-tests (Files): Likewise.
34871         * modules/unictype/category-Zl-tests (Files): Likewise.
34872         * modules/unictype/category-Zp-tests (Files): Likewise.
34873         * modules/unictype/category-Zs-tests (Files): Likewise.
34874         * modules/unictype/category-and-not-tests (Files): Likewise.
34875         * modules/unictype/category-and-tests (Files): Likewise.
34876         * modules/unictype/category-byname-tests (Files): Likewise.
34877         * modules/unictype/category-name-tests (Files): Likewise.
34878         * modules/unictype/category-none-tests (Files): Likewise.
34879         * modules/unictype/category-of-tests (Files): Likewise.
34880         * modules/unictype/category-or-tests (Files): Likewise.
34881         * modules/unictype/category-test-withtable-tests (Files): Likewise.
34882         * modules/unictype/combining-class-tests (Files): Likewise.
34883         * modules/unictype/ctype-alnum-tests (Files): Likewise.
34884         * modules/unictype/ctype-alpha-tests (Files): Likewise.
34885         * modules/unictype/ctype-blank-tests (Files): Likewise.
34886         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
34887         * modules/unictype/ctype-digit-tests (Files): Likewise.
34888         * modules/unictype/ctype-graph-tests (Files): Likewise.
34889         * modules/unictype/ctype-lower-tests (Files): Likewise.
34890         * modules/unictype/ctype-print-tests (Files): Likewise.
34891         * modules/unictype/ctype-punct-tests (Files): Likewise.
34892         * modules/unictype/ctype-space-tests (Files): Likewise.
34893         * modules/unictype/ctype-upper-tests (Files): Likewise.
34894         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
34895         * modules/unictype/decimal-digit-tests (Files): Likewise.
34896         * modules/unictype/digit-tests (Files): Likewise.
34897         * modules/unictype/mirror-tests (Files): Likewise.
34898         * modules/unictype/numeric-tests (Files): Likewise.
34899         * modules/unictype/property-alphabetic-tests (Files): Likewise.
34900         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
34901         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
34902         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
34903         Likewise.
34904         * modules/unictype/property-bidi-block-separator-tests (Files):
34905         Likewise.
34906         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
34907         Likewise.
34908         * modules/unictype/property-bidi-common-separator-tests (Files):
34909         Likewise.
34910         * modules/unictype/property-bidi-control-tests (Files): Likewise.
34911         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
34912         Likewise.
34913         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
34914         Likewise.
34915         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
34916         Likewise.
34917         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
34918         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
34919         Likewise.
34920         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
34921         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
34922         Likewise.
34923         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
34924         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
34925         * modules/unictype/property-bidi-segment-separator-tests (Files):
34926         Likewise.
34927         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
34928         * modules/unictype/property-byname-tests (Files): Likewise.
34929         * modules/unictype/property-combining-tests (Files): Likewise.
34930         * modules/unictype/property-composite-tests (Files): Likewise.
34931         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
34932         * modules/unictype/property-dash-tests (Files): Likewise.
34933         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
34934         * modules/unictype/property-default-ignorable-code-point-tests (Files):
34935         Likewise.
34936         * modules/unictype/property-deprecated-tests (Files): Likewise.
34937         * modules/unictype/property-diacritic-tests (Files): Likewise.
34938         * modules/unictype/property-extender-tests (Files): Likewise.
34939         * modules/unictype/property-format-control-tests (Files): Likewise.
34940         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
34941         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
34942         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
34943         * modules/unictype/property-hex-digit-tests (Files): Likewise.
34944         * modules/unictype/property-hyphen-tests (Files): Likewise.
34945         * modules/unictype/property-id-continue-tests (Files): Likewise.
34946         * modules/unictype/property-id-start-tests (Files): Likewise.
34947         * modules/unictype/property-ideographic-tests (Files): Likewise.
34948         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34949         * modules/unictype/property-ids-trinary-operator-tests (Files):
34950         Likewise.
34951         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34952         * modules/unictype/property-iso-control-tests (Files): Likewise.
34953         * modules/unictype/property-join-control-tests (Files): Likewise.
34954         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34955         * modules/unictype/property-line-separator-tests (Files): Likewise.
34956         * modules/unictype/property-logical-order-exception-tests (Files):
34957         Likewise.
34958         * modules/unictype/property-lowercase-tests (Files): Likewise.
34959         * modules/unictype/property-math-tests (Files): Likewise.
34960         * modules/unictype/property-non-break-tests (Files): Likewise.
34961         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34962         * modules/unictype/property-numeric-tests (Files): Likewise.
34963         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34964         * modules/unictype/property-other-default-ignorable-code-point-tests
34965         (Files): Likewise.
34966         * modules/unictype/property-other-grapheme-extend-tests (Files):
34967         Likewise.
34968         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34969         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34970         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34971         * modules/unictype/property-other-math-tests (Files): Likewise.
34972         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34973         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34974         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34975         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34976         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34977         * modules/unictype/property-private-use-tests (Files): Likewise.
34978         * modules/unictype/property-punctuation-tests (Files): Likewise.
34979         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34980         * modules/unictype/property-radical-tests (Files): Likewise.
34981         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34982         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34983         * modules/unictype/property-space-tests (Files): Likewise.
34984         * modules/unictype/property-terminal-punctuation-tests (Files):
34985         Likewise.
34986         * modules/unictype/property-test-tests (Files): Likewise.
34987         * modules/unictype/property-titlecase-tests (Files): Likewise.
34988         * modules/unictype/property-unassigned-code-value-tests (Files):
34989         Likewise.
34990         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34991         * modules/unictype/property-uppercase-tests (Files): Likewise.
34992         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34993         * modules/unictype/property-white-space-tests (Files): Likewise.
34994         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34995         * modules/unictype/property-xid-start-tests (Files): Likewise.
34996         * modules/unictype/property-zero-width-tests (Files): Likewise.
34997         * modules/unictype/scripts-tests (Files): Likewise.
34998         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34999         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35000         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35001         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35002         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35003         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35004         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35005         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35006         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35007         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35008         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35009         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35010         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35011         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35012         * modules/uninorm/composition-tests (Files): Likewise.
35013         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35014         * modules/uninorm/decomposition-tests (Files): Likewise.
35015         * modules/uninorm/filter-tests (Files): Likewise.
35016         * modules/uninorm/nfc-tests (Files): Likewise.
35017         * modules/uninorm/nfd-tests (Files): Likewise.
35018         * modules/uninorm/nfkc-tests (Files): Likewise.
35019         * modules/uninorm/nfkd-tests (Files): Likewise.
35020         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35021         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35022         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35023         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35024         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35025         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35026         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35027         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35028         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35029         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35030         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35031         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35032         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35033         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35034         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35035         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35036         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35037         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35038         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35039         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35040         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35041         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35042         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35043         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35044         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35045         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35046         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35047         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35048         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35049         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35050         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35051         * modules/uniwidth/u8-width-tests (Files): Likewise.
35052         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35053         * modules/uniwidth/u16-width-tests (Files): Likewise.
35054         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35055         * modules/uniwidth/u32-width-tests (Files): Likewise.
35056         * modules/uniwidth/width-tests (Files): Likewise.
35057         * modules/unlink-tests (Files): Likewise.
35058         * modules/unsetenv-tests (Files): Likewise.
35059         * modules/usleep-tests (Files): Likewise.
35060         * modules/utimens-tests (Files): Likewise.
35061         * modules/utimensat-tests (Files): Likewise.
35062         * modules/vasnprintf-posix-tests (Files): Likewise.
35063         * modules/vasnprintf-tests (Files): Likewise.
35064         * modules/vasprintf-posix-tests (Files): Likewise.
35065         * modules/vasprintf-tests (Files): Likewise.
35066         * modules/vdprintf-posix-tests (Files): Likewise.
35067         * modules/vfprintf-posix-tests (Files): Likewise.
35068         * modules/vprintf-posix-tests (Files): Likewise.
35069         * modules/vsnprintf-posix-tests (Files): Likewise.
35070         * modules/vsnprintf-tests (Files): Likewise.
35071         * modules/vsprintf-posix-tests (Files): Likewise.
35072         * modules/wcrtomb-tests (Files): Likewise.
35073         * modules/wcsnrtombs-tests (Files): Likewise.
35074         * modules/wcsrtombs-tests (Files): Likewise.
35075         * modules/wctype-tests (Files): Likewise.
35076         * modules/wcwidth-tests (Files): Likewise.
35077         * modules/xmemdup0-tests (Files): Likewise.
35078         * modules/xprintf-posix-tests (Files): Likewise.
35079         * modules/xvasprintf-tests (Files): Likewise.
35080
35081 2009-12-24  Eric Blake  <ebb9@byu.net>
35082
35083         test-nanosleep: fix typo
35084         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35085         patch.
35086         Reported by Bruno Haible.
35087
35088 2009-12-24  Bruno Haible  <bruno@clisp.org>
35089
35090         Reduce namespace pollution on glibc systems.
35091         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35092         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35093         systems.
35094         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35095         <getopt.h> on glibc systems.
35096         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35097         systems.
35098         * lib/fcntl.c: Include <unistd.h> here instead.
35099
35100 2009-12-24  Bruno Haible  <bruno@clisp.org>
35101
35102         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35103
35104 2009-12-24  Eric Blake  <ebb9@byu.net>
35105
35106         tests: add signature checks
35107         * tests/signature.h (SIGNATURE_CHECK): New file.
35108         * modules/atexit-tests (Files): Use it.
35109         * modules/btowc-tests (Files): Likewise.
35110         * modules/canonicalize-lgpl-tests (Files): Likewise.
35111         * modules/ceilf-tests (Files): Likewise.
35112         * modules/ceill-tests (Files): Likewise.
35113         * modules/chown-tests (Files): Likewise.
35114         * modules/dprintf-posix-tests (Files): Likewise.
35115         * modules/dup2-tests (Files): Likewise.
35116         * modules/dup3-tests (Files): Likewise.
35117         * modules/duplocale-tests (Files): Likewise.
35118         * modules/fchdir-tests (Files): Likewise.
35119         * modules/fcntl-tests (Files): Likewise.
35120         * modules/fdopendir-tests (Files): Likewise.
35121         * modules/fflush-tests (Files): Likewise.
35122         * modules/flock-tests (Files): Likewise.
35123         * modules/floorf-tests (Files): Likewise.
35124         * modules/floorl-tests (Files): Likewise.
35125         * modules/fnmatch-tests (Files): Likewise.
35126         * modules/fopen-tests (Files): Likewise.
35127         * modules/fprintf-posix-tests (Files): Likewise.
35128         * modules/freopen-tests (Files): Likewise.
35129         * modules/frexp-nolibm-tests (Files): Likewise.
35130         * modules/frexp-tests (Files): Likewise.
35131         * modules/frexpl-nolibm-tests (Files): Likewise.
35132         * modules/frexpl-tests (Files): Likewise.
35133         * modules/fseek-tests (Files): Likewise.
35134         * modules/fseeko-tests (Files): Likewise.
35135         * modules/fsync-tests (Files): Likewise.
35136         * modules/ftell-tests (Files): Likewise.
35137         * modules/ftello-tests (Files): Likewise.
35138         * modules/futimens-tests (Files): Likewise.
35139         * modules/getaddrinfo-tests (Files): Likewise.
35140         * modules/getcwd-tests (Files): Likewise.
35141         * modules/getdelim-tests (Files): Likewise.
35142         * modules/getdtablesize-tests (Files): Likewise.
35143         * modules/getgroups-tests (Files): Likewise.
35144         * modules/gethostname-tests (Files): Likewise.
35145         * modules/getline-tests (Files): Likewise.
35146         * modules/getopt-posix-tests (Files): Likewise.
35147         * modules/gettimeofday-tests (Files): Likewise.
35148         * modules/glob-tests (Files): Likewise.
35149         * modules/iconv-tests (Files): Likewise.
35150         * modules/inet_ntop-tests (Files): Likewise.
35151         * modules/inet_pton-tests (Files): Likewise.
35152         * modules/isblank-tests (Files): Likewise.
35153         * modules/lchown-tests (Files): Likewise.
35154         * modules/ldexpl-tests (Files): Likewise.
35155         * modules/link-tests (Files): Likewise.
35156         * modules/linkat-tests (Files): Likewise.
35157         * modules/lseek-tests (Files): Likewise.
35158         * modules/lstat-tests (Files): Likewise.
35159         * modules/mbrtowc-tests (Files): Likewise.
35160         * modules/mbsinit-tests (Files): Likewise.
35161         * modules/mbsnrtowcs-tests (Files): Likewise.
35162         * modules/mbsrtowcs-tests (Files): Likewise.
35163         * modules/memchr-tests (Files): Likewise.
35164         * modules/memcmp-tests (Files): Likewise.
35165         * modules/memmem-tests (Files): Likewise.
35166         * modules/memrchr-tests (Files): Likewise.
35167         * modules/mkdir-tests (Files): Likewise.
35168         * modules/mkfifo-tests (Files): Likewise.
35169         * modules/mkfifoat-tests (Files): Likewise.
35170         * modules/mknod-tests (Files): Likewise.
35171         * modules/nanosleep-tests (Files): Likewise.
35172         * modules/nl_langinfo-tests (Files): Likewise.
35173         * modules/obstack-printf-tests (Files): Likewise.
35174         * modules/open-tests (Files): Likewise.
35175         * modules/openat-tests (Files): Likewise.
35176         * modules/perror-tests (Files): Likewise.
35177         * modules/pipe2-tests (Files): Likewise.
35178         * modules/poll-tests (Files): Likewise.
35179         * modules/popen-tests (Files): Likewise.
35180         * modules/posix_spawn-tests (Files): Likewise.
35181         * modules/posix_spawnp-tests (Files): Likewise.
35182         * modules/pread-tests (Files): Likewise.
35183         * modules/printf-posix-tests (Files): Likewise.
35184         * modules/pty-tests (Files): Likewise.
35185         * modules/random_r-tests (Files): Likewise.
35186         * modules/rawmemchr-tests (Files): Likewise.
35187         * modules/readlink-tests (Files): Likewise.
35188         * modules/remove-tests (Files): Likewise.
35189         * modules/rename-tests (Files): Likewise.
35190         * modules/renameat-tests (Files): Likewise.
35191         * modules/rmdir-tests (Files): Likewise.
35192         * modules/round-tests (Files): Likewise.
35193         * modules/roundf-tests (Files): Likewise.
35194         * modules/roundl-tests (Files): Likewise.
35195         * modules/select-tests (Files): Likewise.
35196         * modules/setenv-tests (Files): Likewise.
35197         * modules/sigaction-tests (Files): Likewise.
35198         * modules/sleep-tests (Files): Likewise.
35199         * modules/snprintf-posix-tests (Files): Likewise.
35200         * modules/snprintf-tests (Files): Likewise.
35201         * modules/sprintf-posix-tests (Files): Likewise.
35202         * modules/stat-tests (Files): Likewise.
35203         * modules/strcasestr-tests (Files): Likewise.
35204         * modules/strchrnul-tests (Files): Likewise.
35205         * modules/strerror-tests (Files): Likewise.
35206         * modules/strsignal-tests (Files): Likewise.
35207         * modules/strstr-tests (Files): Likewise.
35208         * modules/strtod-tests (Files): Likewise.
35209         * modules/strverscmp-tests (Files): Likewise.
35210         * modules/symlink-tests (Files): Likewise.
35211         * modules/symlinkat-tests (Files): Likewise.
35212         * modules/times-tests (Files): Likewise.
35213         * modules/trunc-tests (Files): Likewise.
35214         * modules/truncf-tests (Files): Likewise.
35215         * modules/truncl-tests (Files): Likewise.
35216         * modules/tsearch-tests (Files): Likewise.
35217         * modules/uname-tests (Files): Likewise.
35218         * modules/unlink-tests (Files): Likewise.
35219         * modules/unsetenv-tests (Files): Likewise.
35220         * modules/usleep-tests (Files): Likewise.
35221         * modules/utimensat-tests (Files): Likewise.
35222         * modules/vasprintf-tests (Files): Likewise.
35223         * modules/vdprintf-posix-tests (Files): Likewise.
35224         * modules/vfprintf-posix-tests (Files): Likewise.
35225         * modules/vprintf-posix-tests (Files): Likewise.
35226         * modules/vsnprintf-posix-tests (Files): Likewise.
35227         * modules/vsnprintf-tests (Files): Likewise.
35228         * modules/vsprintf-posix-tests (Files): Likewise.
35229         * modules/wcrtomb-tests (Files): Likewise.
35230         * modules/wcsnrtombs-tests (Files): Likewise.
35231         * modules/wcsrtombs-tests (Files): Likewise.
35232         * modules/wcwidth-tests (Files): Likewise.
35233         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35234         * tests/test-isinf.c (isinf): Likewise.
35235         * tests/test-isnan.c (isnan): Likewise.
35236         * tests/test-signbit.c (signbit): Likewise.
35237         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35238         declaration, either as macro or with correct signature.
35239         (select): Ensure function under test is declared with correct
35240         signature in correct header.
35241         * tests/test-atexit.c (atexit): Likewise.
35242         * tests/test-btowc.c (btowc): Likewise.
35243         * tests/test-canonicalize-lgpl.c (realpath)
35244         (canonicalize_file_name): Likewise.
35245         * tests/test-ceilf1.c (ceilf): Likewise.
35246         * tests/test-ceill.c (ceill): Likewise.
35247         * tests/test-chown.c (chown): Likewise.
35248         * tests/test-dprintf-posix.c (dprintf): Likewise.
35249         * tests/test-dup2.c (dup2): Likewise.
35250         * tests/test-dup3.c (dup3): Likewise.
35251         * tests/test-duplocale.c (duplocale): Likewise.
35252         * tests/test-fchdir.c (fchdir): Likewise.
35253         * tests/test-fchownat.c (fchownat): Likewise.
35254         * tests/test-fcntl.c (fcntl): Likewise.
35255         * tests/test-fdopendir.c (fdopendir): Likewise.
35256         * tests/test-fflush.c (fflush): Likewise.
35257         * tests/test-flock.c (flock): Likewise.
35258         * tests/test-floorf1.c (floorf): Likewise.
35259         * tests/test-floorl.c (floorl): Likewise.
35260         * tests/test-fnmatch.c (fnmatch): Likewise.
35261         * tests/test-fopen.c (fopen): Likewise.
35262         * tests/test-fprintf-posix.c (fprintf): Likewise.
35263         * tests/test-freopen.c (freopen): Likewise.
35264         * tests/test-frexp.c (frexp): Likewise.
35265         * tests/test-frexpl.c (frexpl): Likewise.
35266         * tests/test-fseek.c (fseek): Likewise.
35267         * tests/test-fseeko.c (fseeko): Likewise.
35268         * tests/test-fstatat.c (fstatat): Likewise.
35269         * tests/test-fsync.c (fsync): Likewise.
35270         * tests/test-ftell.c (ftell): Likewise.
35271         * tests/test-ftello.c (ftello): Likewise.
35272         * tests/test-futimens.c (futimens): Likewise.
35273         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35274         (gai_strerror): Likewise.
35275         * tests/test-getcwd.c (getcwd): Likewise.
35276         * tests/test-getdelim.c (getdelim): Likewise.
35277         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35278         * tests/test-getgroups.c (getgroups): Likewise.
35279         * tests/test-gethostname.c (gethostname): Likewise.
35280         * tests/test-getline.c (getline): Likewise.
35281         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35282         Likewise.
35283         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35284         * tests/test-glob.c (glob, globfree): Likewise.
35285         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35286         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35287         * tests/test-inet_pton.c (inet_pton): Likewise.
35288         * tests/test-isblank.c (isblank): Likewise.
35289         * tests/test-lchown.c (lchown): Likewise.
35290         * tests/test-ldexpl.c (ldexpl): Likewise.
35291         * tests/test-link.c (link): Likewise.
35292         * tests/test-linkat.c (linkat): Likewise.
35293         * tests/test-lseek.c (lseek): Likewise.
35294         * tests/test-lstat.c (lstat): Likewise.
35295         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35296         * tests/test-mbsinit.c (mbsinit): Likewise.
35297         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35298         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35299         * tests/test-memchr.c (memchr): Likewise.
35300         * tests/test-memcmp.c (memcmp): Likewise.
35301         * tests/test-memmem.c (memmem): Likewise.
35302         * tests/test-memrchr.c (memrchr): Likewise.
35303         * tests/test-mkdir.c (mkdir): Likewise.
35304         * tests/test-mkdirat.c (mkdirat): Likewise.
35305         * tests/test-mkfifo.c (mkfifo): Likewise.
35306         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35307         * tests/test-mknod.c (mknod): Likewise.
35308         * tests/test-nanosleep.c (nanosleep): Likewise.
35309         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35310         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35311         Likewise.
35312         * tests/test-open.c (open): Likewise.
35313         * tests/test-openat.c (openat): Likewise.
35314         * tests/test-perror.c (perror): Likewise.
35315         * tests/test-pipe2.c (pipe2): Likewise.
35316         * tests/test-poll.c (poll): Likewise.
35317         * tests/test-popen.c (popen, pclose): Likewise.
35318         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35319         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35320         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35321         (posix_spawn_file_actions_destroy)
35322         (posix_spawn_file_actions_addclose)
35323         (posix_spawn_file_actions_addopen)
35324         (posix_spawn_file_actions_adddup2): Likewise.
35325         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35326         * tests/test-pread.c (pread): Likewise.
35327         * tests/test-printf-posix.c (printf): Likewise.
35328         * tests/test-pty.c (openpty, forkpty): Likewise.
35329         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35330         (random_r): Likewise.
35331         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35332         * tests/test-readlink.c (readlink): Likewise.
35333         * tests/test-remove.c (remove): Likewise.
35334         * tests/test-rename.c (rename): Likewise.
35335         * tests/test-renameat.c (renameat): Likewise.
35336         * tests/test-rmdir.c (rmdir): Likewise.
35337         * tests/test-round1.c (round): Likewise.
35338         * tests/test-roundf1.c (roundf): Likewise.
35339         * tests/test-roundl.c (roundl): Likewise.
35340         * tests/test-setenv.c (setenv): Likewise.
35341         * tests/test-sigaction.c (sigaction): Likewise.
35342         * tests/test-sleep.c (sleep): Likewise.
35343         * tests/test-snprintf.c (snprintf): Likewise.
35344         * tests/test-sprintf-posix.c (sprintf): Likewise.
35345         * tests/test-stat.c (stat): Likewise.
35346         * tests/test-stpncpy.c (stpncpy): Likewise.
35347         * tests/test-strcasestr.c (strcasestr): Likewise.
35348         * tests/test-strchrnul.c (strchrnul): Likewise.
35349         * tests/test-strerror.c (strerror): Likewise.
35350         * tests/test-strsignal.c (strsignal): Likewise.
35351         * tests/test-strstr.c (strstr): Likewise.
35352         * tests/test-strtod.c (strtod): Likewise.
35353         * tests/test-strverscmp.c (strverscmp): Likewise.
35354         * tests/test-symlink.c (symlink): Likewise.
35355         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35356         * tests/test-times.c (times): Likewise.
35357         * tests/test-trunc1.c (trunc): Likewise.
35358         * tests/test-truncf1.c (truncf): Likewise.
35359         * tests/test-truncl.c (truncl): Likewise.
35360         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35361         Likewise.
35362         * tests/test-uname.c (uname): Likewise.
35363         * tests/test-unlink.c (unlink): Likewise.
35364         * tests/test-unlinkat.c (unlinkat): Likewise.
35365         * tests/test-unsetenv.c (unsetenv): Likewise.
35366         * tests/test-usleep.c (usleep): Likewise.
35367         * tests/test-utimensat.c (utimensat): Likewise.
35368         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35369         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35370         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35371         * tests/test-vprintf-posix.c (vprintf): Likewise.
35372         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35373         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35374         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35375         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35376         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35377         * tests/test-wcwidth.c (wcwidth): Likewise.
35378
35379         build: pull in conditional headers during GNULIB_POSIXCHECK
35380         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35381         definitions from any conditionally-included headers.
35382         * lib/stdlib.in.h (includes): Likewise.
35383         * lib/unistd.in.h (includes): Likewise.
35384
35385 2009-12-24  Bruno Haible  <bruno@clisp.org>
35386
35387         * tests/test-argv-iter.c: Include header file being tested immediately
35388         after config.h.
35389         * tests/test-base64.c: Likewise.
35390         * tests/test-flock.c: Likewise.
35391         * tests/test-fsync.c: Likewise.
35392         * tests/test-getdate.c: Likewise.
35393         * tests/test-getndelim2.c: Likewise.
35394         * tests/test-isfinite.c: Likewise.
35395         * tests/test-isinf.c: Likewise.
35396         * tests/test-strerror.c: Likewise.
35397         * tests/test-strsignal.c: Likewise.
35398
35399 2009-12-23  Eric Blake  <ebb9@byu.net>
35400
35401         unistd: work around cygwin bug
35402         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35403         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35404         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35405
35406 2009-12-23  Bruno Haible  <bruno@clisp.org>
35407
35408         localename: More tests.
35409         * tests/test-localename.c (SIZEOF): New macro.
35410         (categories): New variable.
35411         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35412         test_locale_name_default): Add test w.r.t. thread locale.
35413         (test_locale_name_thread): New function.
35414         (main): Invoke it.
35415
35416         localename: Make aware of thread locale.
35417         * lib/localename.h (gl_locale_name_thread): New declaration.
35418         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35419         behaviour with respect to thread locale.
35420         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35421         <langinfo.h>, glthread/lock.h.
35422         (SIZE_BITS): New macro.
35423         (string_hash): New function.
35424         (struct hash_node): New type.
35425         (HASH_TABLE_SIZE): New macro.
35426         (struniq_hash_table, struniq_lock): New variables.
35427         (struniq): New function.
35428         (gl_locale_name_thread): New function.
35429         (gl_locale_name): Invoke it.
35430         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35431         * modules/localename (Depends-on): Add lock.
35432         Reported by Mike Gran <spk121@yahoo.com>.
35433
35434 2009-12-23  Eric Blake  <ebb9@byu.net>
35435
35436         va-args: new module
35437         * modules/va-args: New file.
35438         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35439         * MODULES.html.sh (Core language properties): Mention it.
35440
35441         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35442         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35443         named alias for __attribute__((__unused__)).
35444         * lib/chown.c: Update client.
35445         * lib/fchmodat.c: Likewise.
35446         * lib/fts.c: Likewise.
35447         * lib/getdate.y: Likewise.
35448         * lib/getgroups.c: Likewise.
35449         * lib/getopt.c: Likewise.
35450         * lib/getugroups.c: Likewise.
35451         * lib/mkdir.c: Likewise.
35452         * lib/mkfifo.c: Likewise.
35453         * lib/mkfifoat.c: Likewise.
35454         * lib/mknod.c: Likewise.
35455         * lib/mknodat.c: Likewise.
35456         * lib/readlink.c: Likewise.
35457         * lib/se-context.in.h: Likewise.
35458         * lib/se-selinux.in.h: Likewise.
35459         * lib/sockets.c: Likewise.
35460         * lib/symlink.c: Likewise.
35461         * lib/symlinkat.c: Likewise.
35462         * lib/unicodeio.c: Likewise.
35463         * lib/unistr.h: Likewise.
35464         * tests/test-areadlink.c: Likewise.
35465         * tests/test-areadlinkat.c: Likewise.
35466         * tests/test-filenamecat.c: Likewise.
35467         * tests/test-fseeko.c: Likewise.
35468         * tests/test-ftello.c: Likewise.
35469         * tests/test-getdate.c: Likewise.
35470         * tests/test-getgroups.c: Likewise.
35471         * tests/test-gethostname.c: Likewise.
35472         * tests/test-quotearg.c: Likewise.
35473         * tests/test-version-etc.c: Likewise.
35474         * tests/test-xalloc-die.c: Likewise.
35475         * tests/test-xfprintf-posix.c: Likewise.
35476         * tests/test-xprintf-posix.c: Likewise.
35477         * tests/test-xvasprintf.c: Likewise.
35478
35479         tests: avoid compiler warnings
35480         * tests/test-fcntl.c (main): Delete unused parameters.
35481         * tests/test-freopen-safer.c (main): Likewise.
35482         * tests/test-xalloc-die.c (main): Mark unused parameters.
35483         * tests/test-fseeko.c (main): Likewise.
35484         * tests/test-ftello.c (main): Likewise.
35485         * tests/test-nanosleep.c (main): Avoid declaration warning.
35486         * tests/test-sleep.c (main): Likewise.
35487         * tests/test-unsetenv.c (main): Silence warning about string
35488         literal.
35489         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35490
35491 2009-12-23  Bruno Haible  <bruno@clisp.org>
35492
35493         * tests/test-localename.c (test_locale_name): New function, extracted
35494         from main. Also test mixed situations.
35495         (test_locale_name_posix, test_locale_name_environ,
35496         test_locale_name_default): New functions.
35497         (main): Invoke them all.
35498         * modules/localename-tests (configure.ac): Test for newlocale.
35499
35500 2009-12-23  Bruno Haible  <bruno@clisp.org>
35501
35502         unistd: Ensure getcwd gets declared before being overridden.
35503         * lib/unistd.in.h: Conditionally include <io.h>.
35504
35505 2009-12-22  Bruno Haible  <bruno@clisp.org>
35506
35507         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35508         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35509         (gl_WCHAR_H): Invoke it.
35510         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35511         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35512         Reported by Karl Berry <karl@freefriends.org>.
35513
35514 2009-12-22  Eric Blake  <ebb9@byu.net>
35515
35516         math, unistd: avoid redundant includes
35517         * lib/math.in.h (isnan): No need to re-include <math.h>.
35518         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35519
35520         getsubopt: work around cygwin bug
35521         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35522         avoid conflicting with system getsubopt.
35523         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35524         bug.
35525
35526         getopt: synchronize from glibc
35527         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35528         parameter order.  Adjust all callers.
35529         (_getopt_internal_r, main): Adjust quoting in error messages.
35530         Drop considerations for outdated POSIX 1003.2 error message.
35531         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35532         callers.
35533         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35534
35535         test-getopt: test stderr behavior
35536         * modules/getopt-posix-tests (Depends-on): Add dup2.
35537         * tests/test-getopt.c (ASSERT): Avoid stderr.
35538         (main): Move stderr to a temporary file.
35539         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35540         Instead, add parameter to inform caller if output occurred.
35541         (test_getopt): Adjust all existing tests to expect silence, and
35542         add new tests of leading ":".
35543         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35544         glibc shortcomings with leading "-:" or "+:" in optstring.
35545         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35546         Likewise.
35547         * doc/posix-functions/getopt.texi (getopt): Likewise.
35548
35549         test-getopt: enhance test
35550         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35551         supports optind=0.
35552         * tests/test-getopt.c (OPTIND_MIN): Move...
35553         * tests/test-getopt.h (OPTIND_MIN): ...here.
35554         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35555         Require that optind=0 works, since modern BSD supports it in
35556         addition to optreset, and since coreutils expects it.
35557         (test_getopt_long_only): New test.
35558         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35559         glibc shortcomings with 'W;', and enforcement of optind=0.
35560         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35561         Likewise.
35562
35563 2009-12-21  Bruno Haible  <bruno@clisp.org>
35564
35565         localename: Improvements for MacOS X and Cygwin.
35566         * lib/localename.h (gl_locale_name_environ): New declaration.
35567         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35568         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35569         (gl_locale_name_posix): Invoke it.
35570         (gl_locale_name_default): Add comments. Use Windows native API also on
35571         Cygwin.
35572
35573 2009-12-21  Bruno Haible  <bruno@clisp.org>
35574
35575         Update list of Win32 locale ids.
35576         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35577         (LANG_SAMI): Renamed from LANG_SAAMI.
35578         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35579         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35580         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35581         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35582         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35583         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35584         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35585         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35586         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35587         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35588         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35589         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35590         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35591         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35592         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35593         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35594         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35595         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35596         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
35597         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
35598         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
35599         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
35600         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
35601         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
35602         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
35603         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
35604         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
35605         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
35606         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
35607         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
35608         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
35609         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
35610         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
35611         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
35612         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
35613         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
35614         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
35615         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
35616         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
35617         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
35618         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
35619         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
35620         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
35621         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
35622         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
35623         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
35624         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
35625         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
35626         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
35627         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
35628         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
35629         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
35630         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
35631         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
35632         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
35633         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
35634         Add more languages and countries for Sami, Sorbian. Add more countries
35635         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
35636         for Pashto. Change country for Syriac, Tswana.
35637
35638 2009-12-21  Eric Blake  <ebb9@byu.net>
35639
35640         test-utimens: avoid spurious failure
35641         * tests/test-chown.h (nap): Factor...
35642         * tests/nap.h: ...into new file.
35643         * tests/test-lchown.h (nap): Avoid duplication.
35644         * tests/test-utimens-common.h (nap): Use shared implementation,
35645         necessary on file systems with 1-second resolution.
35646         * modules/chown-tests (Files): Include new file.
35647         * modules/fdutimensat-tests (Files): Likewise.
35648         * modules/futimens-tests (Files): Likewise.
35649         * modules/lchown-tests (Files): Likewise.
35650         * modules/openat-tests (Files): Likewise.
35651         * modules/utimens-tests (Files): Likewise.
35652         * modules/utimensat-tests (Files): Likewise.
35653
35654 2009-12-19  Eric Blake  <ebb9@byu.net>
35655
35656         futimens, utimensat: work around Linux bug
35657         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
35658         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35659         * lib/utimensat.c (rpl_utimensat): Work around it.
35660         * lib/futimens.c (rpl_futimens): Adjust comment.
35661
35662         utimens: work around Linux ctime bug
35663         * lib/utimens.c (detect_ctime_bug): New helper function.
35664         (update_timespec): Differentiate between workaround needed for
35665         this bug vs. what is needed for systems that lack utimensat.
35666         (fdutimens, lutimens): Work around bug.
35667
35668         utimens: check for ctime update
35669         * tests/test-utimens-common.h (check_ctime): Define.
35670         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
35671         * tests/test-futimens.h (test_futimens): Likewise.
35672         * tests/test-lutimens.h (test_lutimens): Likewise.
35673         * doc/posix-functions/futimens.texi (futimens): Document the bug.
35674         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35675
35676 2009-12-19  Bruno Haible  <bruno@clisp.org>
35677
35678         dprintf-posix: Check against memory leak fixed on 2009-12-15.
35679         * tests/test-dprintf-posix2.sh: New file.
35680         * tests/test-dprintf-posix2.c: New file.
35681         * modules/dprintf-posix-tests (Files): Add them.
35682         (configure.ac): Check for getrlimit and setrlimit.
35683         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35684
35685 2009-12-19  Bruno Haible  <bruno@clisp.org>
35686
35687         fprintf-posix: Check against memory leak fixed on 2009-12-15.
35688         * tests/test-fprintf-posix3.sh: New file.
35689         * tests/test-fprintf-posix3.c: New file.
35690         * modules/fprintf-posix-tests (Files): Add them.
35691         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35692
35693 2009-12-19  Eric Blake  <ebb9@byu.net>
35694
35695         dirfd: fix prototype
35696         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
35697         * lib/dirfd.c (dirfd): Likewise.
35698
35699         canonicalize: reduce memory usage
35700         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
35701         allocation to size.
35702         Reported by Solar Designer <solar@openwall.com>.
35703
35704 2009-12-19  Bruno Haible  <bruno@clisp.org>
35705
35706         New module attribute 'Applicability'.
35707         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
35708         * gnulib-tool: New option --extract-applicability.
35709         (func_usage): Document it.
35710         (sed_extract_prog): Recognize it.
35711         (func_get_applicability): New function.
35712         (func_import): Generalize handling of 'link-warning' module.
35713         * modules/link-warning (Applicability): New section.
35714         * modules/arg-nonnull (Applicability): New section.
35715         Repoted by Simon Josefsson <simon@josefsson.org>.
35716
35717 2009-12-19  Bruno Haible  <bruno@clisp.org>
35718
35719         fflush: tweak
35720         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
35721         * lib/fseeko.c (rpl_fseeko): Likewise.
35722
35723 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
35724
35725         * lib/gl_list.h: Fix typo in comment.
35726
35727 2009-12-16  Eric Blake  <ebb9@byu.net>
35728
35729         fcntl: use to simplify other modules
35730         * modules/cloexec (Depends-on): Add fcntl.
35731         * modules/fchdir (Depends-on): Likewise.
35732         * modules/fd-safer-flag (Depends-on): Likewise.
35733         * modules/unistd-safer (Depends-on): Likewise.
35734         * modules/dup3 (configure.ac): Set module indicator.
35735         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
35736         missing.
35737         * lib/fchdir.c (_gl_register_dup): Fix comment.
35738         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35739         * lib/dup-safer.c (dup_safer): Likewise.
35740         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35741         * lib/dup3.c (dup3): Likewise.
35742         * tests/test-fchdir.c (main): Enhance test.
35743         Fixes a dup_cloexec bug reported by Ondřej Vašík.
35744
35745         fcntl: port portions of fcntl to mingw
35746         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
35747         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
35748         replacement for mingw.
35749         * modules/fcntl (Description): Update.
35750         (Depends-on): Add dup2.
35751         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
35752         * modules/fcntl-h (Makefile.am): Substitute it.
35753         * lib/fcntl.in.h (fcntl): Update declaration.
35754         (F_DUPFD, F_GETFD): New macros, when needed.
35755         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35756         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
35757         * tests/test-fcntl.c (check_flags, main): Enhance test for items
35758         we now guarantee.
35759
35760         fcntl: work around cygwin bug in F_DUPFD
35761         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
35762         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
35763         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
35764         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
35765         * doc/posix-functions/fcntl.texi (fcntl): Document it.
35766
35767         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
35768         * modules/fcntl (Files): List new files.
35769         (configure.ac): Run a test.
35770         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
35771         * lib/fcntl.c (rpl_fcntl): Likewise.
35772         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
35773         (gl_FCNTL_H): Always replace fcntl.h.
35774         * modules/fcntl-h (Makefile.am): Substitute witnesses.
35775         * lib/fcntl.in.h (fcntl): Declare replacement.
35776         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
35777         needed, plus a witness.
35778         * doc/posix-functions/fcntl.texi (fcntl): Document this.
35779         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35780         * tests/test-fcntl.c: New file.
35781         * modules/fcntl-tests: Likewise.
35782
35783         binary-io: avoid potential compilation warning
35784         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
35785         directives.
35786
35787         fflush: avoid compilation error on NetBSD
35788         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
35789         between off_t and fpos_t, since the latter is sometimes a struct.
35790         * lib/fseeko.c (rpl_fseeko): Likewise.
35791         Reported by Alexander Nasonov <alnsn@yandex.ru>.
35792
35793 2009-12-15  Eric Blake  <ebb9@byu.net>
35794
35795         fcntl-h, stdio, sys_ioctl: fix declarations
35796         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
35797         function must not take arguments.
35798         * lib/sys_ioctl.in.h (ioctl): Likewise.
35799         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
35800         (open): Add a link warning.
35801
35802 2009-12-15  Jim Meyering  <meyering@redhat.com>
35803
35804         areadlink, areadlink-with-size: relax license to LGPLv2+
35805         * modules/areadlink (License): Relax to LGPLv2+.
35806         * modules/areadlink-with-size (License): Likewise.
35807
35808 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
35809             Bruno Haible  <bruno@clisp.org>
35810
35811         *printf: Fix memory leak.
35812         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
35813         * lib/vfprintf.c (vfprintf): Likewise.
35814         * lib/dprintf.c (dprintf): Likewise.
35815         * lib/vdprintf.c (vdprintf): Likewise.
35816
35817 2009-12-14  Eric Blake  <ebb9@byu.net>
35818
35819         accept4: adjust module dependencies
35820         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
35821
35822         utimens: one more try at avoiding compiler warning
35823         * lib/utimens.c (lutimens): Lower scope of result.
35824
35825 2009-12-13  Bruno Haible  <bruno@clisp.org>
35826
35827         Move the malloc checking from module 'list' to new module 'xlist'.
35828         * modules/xlist: New file.
35829         * lib/gl_xlist.h: New file.
35830         * lib/gl_xlist.c: New file.
35831         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
35832         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
35833         gl_list_add_last, gl_list_add_before, gl_list_add_after,
35834         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
35835         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
35836         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
35837         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
35838         gl_sortedlist_nx_add): New declarations.
35839         (struct gl_list_implementation): Rename and change methods accordingly.
35840         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
35841         (gl_list_nx_create): Renamed from gl_list_create.
35842         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35843         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35844         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35845         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35846         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35847         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35848         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35849         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35850         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
35851         gl_list_create_empty.
35852         (gl_list_nx_create): Renamed from gl_list_create.
35853         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35854         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35855         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35856         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35857         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35858         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35859         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35860         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35861         * lib/gl_array_list.c: Don't include xalloc.h.
35862         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
35863         NULL upon out-of-memory.
35864         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
35865         out-of-memory.
35866         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
35867         Change return type to 'int'.
35868         (gl_array_nx_set_at): Renamed from gl_array_set_at.
35869         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35870         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
35871         upon out-of-memory.
35872         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
35873         upon out-of-memory.
35874         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
35875         upon out-of-memory.
35876         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
35877         upon out-of-memory.
35878         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
35879         out-of-memory.
35880         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
35881         Update.
35882         (gl_array_list_implementation): Update.
35883         * lib/gl_carray_list.c: Don't include xalloc.h.
35884         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
35885         Return NULL upon out-of-memory.
35886         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
35887         out-of-memory.
35888         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
35889         Change return type to 'int'.
35890         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
35891         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35892         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
35893         upon out-of-memory.
35894         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
35895         upon out-of-memory.
35896         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
35897         out-of-memory.
35898         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
35899         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
35900         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
35901         Update.
35902         (gl_carray_list_implementation): Update.
35903         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
35904         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
35905         gl_linked_create_empty. Return NULL upon out-of-memory.
35906         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
35907         out-of-memory.
35908         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
35909         Change return type to 'int'. Return -1 upon out-of-memory.
35910         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
35911         out-of-memory.
35912         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
35913         upon out-of-memory.
35914         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
35915         upon out-of-memory.
35916         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
35917         NULL upon out-of-memory.
35918         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
35919         upon out-of-memory.
35920         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
35921         out-of-memory.
35922         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
35923         Update.
35924         * lib/gl_linked_list.c: Don't include xalloc.h.
35925         (gl_linked_list_implementation): Update.
35926         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
35927         (add_to_bucket): Change return type to 'int'.
35928         (gl_linkedhash_list_implementation): Update.
35929         * lib/gl_anytree_list1.h (free_subtree): New function.
35930         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
35931         gl_tree_create_empty. Return NULL upon out-of-memory.
35932         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
35933         Change return type to 'int'. Return -1 upon out-of-memory.
35934         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
35935         out-of-memory.
35936         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
35937         (gl_tree_remove_node): New function, moved here from
35938         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
35939         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
35940         Update.
35941         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
35942         malloc, not xmalloc. Return NULL upon out-of-memory.
35943         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35944         out-of-memory.
35945         (gl_tree_remove_node_from_tree): New function, extracted from
35946         gl_tree_remove_node.
35947         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35948         upon out-of-memory.
35949         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35950         out-of-memory.
35951         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35952         upon out-of-memory.
35953         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35954         upon out-of-memory.
35955         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35956         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35957         not xmalloc. Return NULL upon out-of-memory.
35958         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35959         out-of-memory.
35960         (gl_tree_remove_node_from_tree): New function, extracted from
35961         gl_tree_remove_node.
35962         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35963         upon out-of-memory.
35964         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35965         out-of-memory.
35966         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35967         upon out-of-memory.
35968         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35969         upon out-of-memory.
35970         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35971         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35972         gl_anytree_list1.h before gl_anyavltree_list2.h.
35973         (gl_avltree_list_implementation): Update.
35974         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35975         gl_anytree_list1.h before gl_anyavltree_list2.h.
35976         (gl_rbtree_list_implementation): Update.
35977         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35978         Change return type to 'int'. Return -1 upon out-of-memory. Use
35979         __builtin_expect.
35980         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35981         (gl_avltreehash_list_implementation): Update.
35982         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35983         (gl_rbtreehash_list_implementation): Update.
35984         * modules/array-list (Depends-on): Remove xalloc.
35985         * modules/carray-list (Depends-on): Likewise.
35986         * modules/linked-list (Depends-on): Likewise.
35987         * modules/linkedhash-list (Depends-on): Likewise.
35988         * modules/avltree-list (Depends-on): Likewise.
35989         * modules/rbtree-list (Depends-on): Likewise.
35990         * modules/avltreehash-list (Depends-on): Likewise.
35991         * modules/rbtreehash-list (Depends-on): Likewise.
35992
35993         * modules/xsublist: New file.
35994         * lib/gl_xsublist.h: New file.
35995         * lib/gl_xsublist.c: New file.
35996         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35997         (gl_sublist_nx_create): New declaration.
35998         * lib/gl_sublist.c: Don't include xalloc.h.
35999         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36000         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36001         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36002         Change return type to 'int'. Return -1 upon out-of-memory.
36003         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36004         upon out-of-memory.
36005         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36006         NULL upon out-of-memory.
36007         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36008         upon out-of-memory.
36009         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36010         NULL upon out-of-memory.
36011         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36012         NULL upon out-of-memory.
36013         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36014         upon out-of-memory.
36015         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36016         (gl_sublist_list_implementation): Update.
36017         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36018         upon out-of-memory.
36019         * modules/sublist (Depends-on): Remove xalloc.
36020
36021         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36022         * tests/test-carray_list.c: Likewise.
36023         * tests/test-linked_list.c: Likewise.
36024         * tests/test-linkedhash_list.c: Likewise.
36025         * tests/test-avltree_list.c: Likewise.
36026         * tests/test-rbtree_list.c: Likewise.
36027         * tests/test-avltreehash_list.c: Likewise.
36028         * tests/test-rbtreehash_list.c: Likewise.
36029         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36030         * modules/carray-list-tests (Makefile.am): Likewise.
36031         * modules/linked-list-tests (Makefile.am): Likewise.
36032         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36033         * modules/avltree-list-tests (Makefile.am): Likewise.
36034         * modules/rbtree-list-tests (Makefile.am): Likewise.
36035         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36036         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36037
36038         * NEWS: Mention the changes.
36039
36040         * lib/clean-temp.c: Include gl_xlist.h.
36041         * modules/clean-temp (Depends-on): Add xlist.
36042
36043         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36044         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36045
36046         * tests/test-array_oset.c: Include gl_xlist.h.
36047         * modules/array-oset-tests (Depends-on): Add xlist.
36048
36049         Reported by José E. Marchesi <jemarch@gnu.org>.
36050
36051 2009-12-13  Bruno Haible  <bruno@clisp.org>
36052
36053         Move the malloc checking from module 'oset' to new module 'xoset'.
36054         * modules/xoset: New file.
36055         * lib/gl_xoset.h: New file.
36056         * lib/gl_xoset.c: New file.
36057         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36058         declarations.
36059         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36060         (struct gl_oset_implementation): Rename and change methods accordingly.
36061         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36062         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36063         'int'. Mark as __warn_unused_result__.
36064         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36065         gl_oset_create_empty.
36066         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36067         'int'.
36068         * lib/gl_array_oset.c: Don't include xalloc.h.
36069         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36070         malloc, not xmalloc.
36071         (grow): Change return type to 'int'. Don't call xalloc_die.
36072         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36073         to 'int'.
36074         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36075         'int'.
36076         (gl_array_oset_implementation): Update.
36077         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36078         gl_tree_create_empty.
36079         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36080         'int'.
36081         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36082         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36083         xmalloc.
36084         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36085         not xmalloc.
36086         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36087         xmalloc.
36088         (gl_avltree_oset_implementation): Update.
36089         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36090         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36091         xmalloc.
36092         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36093         not xmalloc.
36094         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36095         xmalloc.
36096         (gl_rbtree_oset_implementation): Update.
36097         * modules/array-oset (Depends-on): Remove xalloc.
36098         * modules/avltree-oset (Depends-on): Likewise.
36099         * modules/rbtree-oset (Depends-on): Likewise.
36100         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36101         * tests/test-avltree_oset.c: Likewise.
36102         * tests/test-rbtree_oset.c: Likewise.
36103         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36104         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36105         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36106         * NEWS: Mention the change.
36107
36108 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36109
36110         maint.mk: allow a project to override release-prep commands
36111         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36112         commands into a new rule.
36113         (release-prep): New rule.
36114         (release-prep-hook): New overridable variable.
36115
36116 2009-12-13  Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36119
36120 2009-12-13  Jim Meyering  <meyering@redhat.com>
36121
36122         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36123         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36124
36125 2009-12-12  Bruno Haible  <bruno@clisp.org>
36126
36127         duplocale: Tweak.
36128         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36129
36130 2009-12-12  Karl Berry  <karl@gnu.org>
36131
36132         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36133
36134 2009-12-12  Bruno Haible  <bruno@clisp.org>
36135
36136         * m4/po.m4: Undo incorrect untabification.
36137
36138 2009-12-12  Bruno Haible  <bruno@clisp.org>
36139
36140         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36141         * modules/c-strtod (Depends-on): Add locale.
36142         * modules/c-strtold (Depends-on): Likewise.
36143
36144 2009-12-12  Bruno Haible  <bruno@clisp.org>
36145
36146         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36147
36148 2009-12-11  Eric Blake  <ebb9@byu.net>
36149
36150         setenv: relax requirement in light of POSIX ruling
36151         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36152         not NULL.
36153         * tests/test-setenv.c (main): Relax test.
36154         * tests/test-unsetenv.c (main): Likewise.
36155         * doc/posix-functions/setenv.texi (setenv): Document this.
36156         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36157
36158 2009-12-11  Bruno Haible  <bruno@clisp.org>
36159
36160         New module 'fd-safer-flag'.
36161         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36162         * lib/dup-safer.c (dup_safer_flag): Remove function.
36163         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36164         * lib/fd-safer.c (fd_safer_flag): Remove function.
36165         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36166         * modules/cloexec (configure.ac): Drop indicator macro.
36167         * modules/fd-safer-flag: New file.
36168         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36169         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36170         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36171
36172 2009-12-11  Bruno Haible  <bruno@clisp.org>
36173
36174         Tests for module 'nl_langinfo'.
36175         * modules/nl_langinfo-tests: New file.
36176         * tests/test-nl_langinfo.sh: New file.
36177         * tests/test-nl_langinfo.c: New file.
36178
36179         New module 'nl_langinfo'.
36180         * lib/nl_langinfo.c: New file.
36181         * m4/nl_langinfo.m4: New file.
36182         * modules/nl_langinfo: New file.
36183         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36184
36185 2009-12-11  Bruno Haible  <bruno@clisp.org>
36186
36187         Tests for module 'langinfo'.
36188         * modules/langinfo-tests: New file.
36189         * tests/test-langinfo.c: New file.
36190
36191         New module 'langinfo'.
36192         * lib/langinfo.in.h: New file.
36193         * m4/langinfo_h.m4: New file.
36194         * modules/langinfo: New file.
36195         * doc/posix-headers/langinfo.texi: Mention the new module.
36196
36197 2009-12-11  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/config.charset: Untabify.
36200
36201 2009-12-11  Bruno Haible  <bruno@clisp.org>
36202
36203         * modules/unistd-safer (configure.ac): Drop indicator macro.
36204
36205 2009-12-11  Bruno Haible  <bruno@clisp.org>
36206
36207         Move pipe2-safer code to its own file.
36208         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36209         * lib/pipe-safer.c (pipe2_safer): Remove function.
36210         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36211         (Makefile.am): Add it to lib_SOURCES.
36212
36213 2009-12-10  Bruno Haible  <bruno@clisp.org>
36214
36215         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36216
36217 2009-12-10  Bruno Haible  <bruno@clisp.org>
36218
36219         Declare which arguments expect non-NULL values, for GCC and clang.
36220         * build-aux/arg-nonnull.h: New file.
36221         * modules/arg-nonnull: New file.
36222         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36223         (inet_ntop, inet_pton): Use it.
36224         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36225         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36226         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36227         (open, openat): Use it.
36228         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36229         (fnmatch): Use it.
36230         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36231         (getopt, getopt_long, getopt_long_only): Use it.
36232         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36233         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36234         Use it.
36235         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36236         (iconv_open): Use it.
36237         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36238         (strtoimax, strtoumax): Use it.
36239         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36240         (duplocale): Use it.
36241         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36242         (frexp, frexpl): Use it.
36243         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36244         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36245         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36246         (tsearch, tfind, tdelete, twalk): Use it.
36247         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36248         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36249         sigpending): Use it.
36250         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36251         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36252         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36253         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36254         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36255         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36256         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36257         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36258         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36259         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36260         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36261         Use it.
36262         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36263         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36264         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36265         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36266         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36267         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36268         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36269         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36270         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36271         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36272         strtoull, unsetenv): Use it.
36273         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36274         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36275         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36276         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36277         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36278         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36279         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36280         (strcasecmp, strncasecmp): Use it.
36281         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36282         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36283         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36284         rpl_setsockopt): Use it.
36285         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36286         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36287         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36288         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36289         (gettimeofday): Use it.
36290         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36291         (times): Use it.
36292         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36293         (uname): Use it.
36294         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36295         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36296         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36297         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36298         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36299         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36300         unlinkat, write): Use it.
36301         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36302         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36303         * lib/argv-iter.h: Include arg-nonnull.h.
36304         (_ATTRIBUTE_NONNULL_): Remove macro.
36305         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36306         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36307         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36308         optimization.
36309         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36310         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36311         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36312         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36313         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36314         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36315         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36316         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36317         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36318         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36319         * modules/dirent (Depends-on): Add arg-nonnull.
36320         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36321         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36322         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36323         * modules/fnmatch (Depends-on): Add arg-nonnull.
36324         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36325         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36326         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36327         * modules/glob (Depends-on): Add arg-nonnull.
36328         (Makefile.am): Insert arg-nonnull.h into glob.h.
36329         * modules/iconv_open (Depends-on): Add arg-nonnull.
36330         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36331         * modules/inttypes (Depends-on): Add arg-nonnull.
36332         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36333         * modules/locale (Depends-on): Add arg-nonnull.
36334         (Makefile.am): Insert arg-nonnull.h into locale.h.
36335         * modules/math (Depends-on): Add arg-nonnull.
36336         (Makefile.am): Insert arg-nonnull.h into math.h.
36337         * modules/netdb (Depends-on): Add arg-nonnull.
36338         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36339         * modules/search (Depends-on): Add arg-nonnull.
36340         (Makefile.am): Insert arg-nonnull.h into search.h.
36341         * modules/signal (Depends-on): Add arg-nonnull.
36342         (Makefile.am): Insert arg-nonnull.h into signal.h.
36343         * modules/spawn (Depends-on): Add arg-nonnull.
36344         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36345         * modules/stdio (Depends-on): Add arg-nonnull.
36346         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36347         * modules/stdlib (Depends-on): Add arg-nonnull.
36348         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36349         * modules/string (Depends-on): Add arg-nonnull.
36350         (Makefile.am): Insert arg-nonnull.h into string.h.
36351         * modules/strings (Depends-on): Add arg-nonnull.
36352         (Makefile.am): Insert arg-nonnull.h into strings.h.
36353         * modules/sys_socket (Depends-on): Add arg-nonnull.
36354         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36355         * modules/sys_stat (Depends-on): Add arg-nonnull.
36356         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36357         * modules/sys_time (Depends-on): Add arg-nonnull.
36358         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36359         * modules/sys_times (Depends-on): Add arg-nonnull.
36360         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36361         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36362         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36363         * modules/time (Depends-on): Add arg-nonnull.
36364         (Makefile.am): Insert arg-nonnull.h into time.h.
36365         * modules/unistd (Depends-on): Add arg-nonnull.
36366         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36367         * modules/wchar (Depends-on): Add arg-nonnull.
36368         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36369         * modules/argv-iter (Depends-on): Add arg-nonnull.
36370         * tests/test-canonicalize.c (null_ptr): New function.
36371         (main): Use it.
36372         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36373         (main): Use it.
36374         * tests/test-memmem.c (null_ptr): New function.
36375         (main): Use it.
36376         Reported by Jim Meyering.
36377
36378 2009-12-10  Bruno Haible  <bruno@clisp.org>
36379
36380         Use spaces for indentation, not tabs.
36381         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36382         * m4/*.m4: Untabify.
36383         * build-aux/*.h: Untabify.
36384         * tests/**/*.[hc]: Untabify.
36385         * README: New section "Indent with spaces, not TABs", based on
36386         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36387         * NEWS: Mention the change.
36388
36389 2009-12-10  Bruno Haible  <bruno@clisp.org>
36390
36391         pty test: Fix link error.
36392         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36393         test_pty_LDADD.
36394
36395 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36396
36397         * modules/pty: New file.
36398         * modules/pty-tests: New file.
36399         * m4/pty.m4: New file.
36400         * tests/test-pty.c: New file.
36401         * doc/glibc-headers/pty.texi: Modified.
36402         * doc/glibc-functions/forkpty.texi: Modified.
36403         * doc/glibc-functions/openpty.texi: Modified.
36404
36405 2009-12-10  Bruno Haible  <bruno@clisp.org>
36406
36407         Avoid syntax error in C++ mode.
36408         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36409
36410 2009-12-10  Bruno Haible  <bruno@clisp.org>
36411
36412         Use sed with option -e.
36413         * gnulib-tool (func_version, func_emit_copyright_notice,
36414         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36415         option -e to sed.
36416         * modules/link-warning (Makefile.am): Likewise.
36417
36418 2009-12-10  Jim Meyering  <meyering@redhat.com>
36419
36420         mgetgroups: do not write bytes beyond end of malloc'd buffer
36421         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36422         username, we call getgroups with a one-element-shorter buffer,
36423         but still told it the length was original, max_n_groups.
36424
36425 2009-12-09  Eric Blake  <ebb9@byu.net>
36426
36427         cloexec: relax license
36428         * modules/cloexec (Maintainer): Add myself.
36429         (License): Use LGPL, not GPL.
36430
36431         link-warning: optimize generation
36432         * modules/link-warning (Makefile.am): Reduce process usage.
36433
36434 2009-12-09  Bruno Haible  <bruno@clisp.org>
36435
36436         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36437         workaround was added on 2009-11-17.
36438
36439 2009-12-09  Jim Meyering  <meyering@redhat.com>
36440             Bruno Haible  <bruno@clisp.org>
36441
36442         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36443         * modules/link-warning (Makefile.am): Make the comment-removing sed
36444         command more robust in the face of bootstrap-prepended comment lines.
36445
36446 2009-12-09  Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36449         most one group.
36450
36451 2009-12-09  Simon Josefsson <simon@josefsson.org>
36452             Bruno Haible  <bruno@clisp.org>
36453
36454         * build-aux/link-warning.h: Add copyright notice.
36455         * modules/link-warning (Makefile.am): Generate link-warning.h from
36456         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36457         * NEWS: Mention change in link-warning module.
36458         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36459         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36460         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36461         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36462         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36463         * modules/math (Makefile.am): Add dependency to math.h.
36464         * modules/search (Makefile.am): Add dependency to search.h.
36465         * modules/signal (Makefile.am): Add dependency to signal.h.
36466         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36467         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36468         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36469         * modules/string (Makefile.am): Add dependency to string.h.
36470         * modules/strings (Makefile.am): Add dependency to strings.h.
36471         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36472         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36473         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36474         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36475         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36476         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36477         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36478         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36479         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36480
36481 2009-12-09  Bruno Haible  <bruno@clisp.org>
36482
36483         fchdir: Optimize away rpl_fstat when possible.
36484         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36485         REPLACE_OPEN_DIRECTORY.
36486         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36487
36488 2009-12-09  Bruno Haible  <bruno@clisp.org>
36489
36490         * lib/fchdir.c: Update comment.
36491
36492 2009-12-09  Bruno Haible  <bruno@clisp.org>
36493
36494         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36495
36496 2009-12-08  Eric Blake  <ebb9@byu.net>
36497
36498         fchdir: avoid memory leak on re-registration.
36499         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36500
36501 2009-12-08  Jim Meyering  <meyering@redhat.com>
36502
36503         init.sh: avoid Solaris 10 /bin/sh portability problem
36504         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36505         sourced script:
36506           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36507           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36508           bar
36509         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36510         and two tests used that idiom.
36511         * tests/init.sh: Update suggested usage comments.
36512         (path_prepend_): New function, to be used in place
36513         of the --src-path=DIR option.
36514         (setup_): Move PATH-prepending code into path_prepend_.
36515         * tests/test-pread.sh: Adapt to new usage.
36516         * tests/test-xalloc-die.sh: Likewise.
36517
36518 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36519
36520         * doc/gnulib.texi (Glibc pty.h): Add.
36521         * doc/glibc-functions/forkpty.texi: Add.
36522         * doc/glibc-functions/openpty.texi: Add.
36523         Suggested by Bruno Haible.
36524
36525 2009-12-08  Eric Blake  <ebb9@byu.net>
36526
36527         fchdir: fix logic bugs
36528         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36529         * tests/test-fchdir.c (main): Enhance test.
36530         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36531         is in use.
36532
36533         dup2: fix logic bugs
36534         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36535         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36536         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36537         exists.
36538         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36539
36540 2009-12-07  Eric Blake  <ebb9@byu.net>
36541
36542         unlink: fix m4 detection
36543         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36544
36545         unistd-safer: add unit test
36546         * modules/unistd-safer-tests: New file.
36547         * tests/test-dup-safer.c: Likewise.
36548         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36549         * tests/test-dup2.c (setmode): Likewise.
36550         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36551
36552         cloexec: preserve text vs. binary across dup_cloexec
36553         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36554         mode.
36555         * modules/dup2-tests (Depends-on): Add binary-io.
36556         * modules/cloexec-tests (Depends-on): Likewise.
36557         * tests/test-dup2.c (setmode, is_mode): New helpers.
36558         (main): Add tests that translation mode is preserved.
36559         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36560         Reported by Bruno Haible.
36561
36562         mgetgroups: reduce duplicate listings
36563         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36564         resulting array.
36565         * tests/test-chown.h (test_chown): Simplify client.
36566         * tests/test-lchown.h (test_lchown): Likewise.
36567
36568 2009-12-06  Bruno Haible  <bruno@clisp.org>
36569
36570         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36571         value.
36572
36573 2009-12-06  Bruno Haible  <bruno@clisp.org>
36574
36575         * lib/progname.c: Include stdio.h, stdlib.h.
36576         (set_program_name): Reject a NULL argument.
36577
36578 2009-12-05  Eric Blake  <ebb9@byu.net>
36579
36580         pipe2-safer: new module
36581         * modules/pipe2-safer: New file.
36582         * lib/unistd-safer.h (pipe2_safer): New prototype.
36583         * lib/unistd--.h (pipe2): New wrapper.
36584         * lib/pipe-safer.c (pipe2_safer): New function.
36585         * modules/pipe (Depends-on): Add pipe2-safer.
36586         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36587
36588         stdlib-safer: preserve cloexec flag for mkostemp[s]
36589         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36590         fd_safer_flag.
36591
36592         unistd-safer: allow preservation of cloexec status via flag
36593         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36594         prototypes.
36595         * lib/dup-safer.c (dup_safer_flag): New function.
36596         * lib/fd-safer.c (fd_safer_flag): Likewise.
36597         * modules/cloexec (configure.ac): Set witness.
36598
36599         test-dup2: enhance test
36600         * modules/dup2-tests (Depends-on): Add cloexec.
36601         * tests/test-dup2.c (main): Enhance test.
36602
36603         cloexec: add dup_cloexec
36604         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
36605         header and comments.
36606         * lib/cloexec.c (set_cloexec_flag): Add comments.
36607         (dup_cloexec): New function, with mingw implementation borrowed
36608         from...
36609         * lib/w32spawn.h (dup_noinherit): ...here.
36610         * modules/execute (Depends-on): Add cloexec.
36611         * modules/pipe (Depends-on): Likewise.
36612         * modules/cloexec (Depends-on): Add dup2.
36613         * modules/cloexec-tests (Files): New file.
36614         * tests/test-cloexec.c: Likewise.
36615
36616         test-xalloc-die: fix test for mingw
36617         * modules/xalloc-die-tests (Files): Add tests/init.sh.
36618         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
36619         directory and .exe suffix off argv[0] output.
36620
36621         test-fseeko: fix test for mingw
36622         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
36623         than undefining fseek, so test will pass on mingw.
36624
36625 2009-12-05  Bruno Haible  <bruno@clisp.org>
36626
36627         * lib/progname.h (set_program_name): Clarify specification.
36628         * lib/progname.c (set_program_name): Likewise.
36629         Reported by Jim Meyering.
36630
36631 2009-12-05  Jim Meyering  <meyering@redhat.com>
36632
36633         maint.mk: backslash-escape parens in default regexp
36634         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
36635         backslash-escape the literal parentheses.
36636
36637         maint.mk: news-date-check: use grep -E
36638         * top/maint.mk (today): Define a Make variable, not a...
36639         (news-date-check): ...shell variable.
36640         (news-date-regexp): Use the Make variable.
36641         Use grep's -E option.  Change the failing diagnostic to mention
36642         the variable, $(news-date-regexp).
36643
36644 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
36645
36646         maintainer-makefile: allow customization of NEWS entry format
36647         * top/maint.mk (news-date-regexp): New overridable variable.
36648         (news-date-check): Use it.
36649
36650 2009-12-04  Eric Blake  <ebb9@byu.net>
36651
36652         mgetgroups: add xgetgroups, and avoid ENOSYS failures
36653         * lib/mgetgroups.h (xgetgroups): New prototype.
36654         * lib/mgetgroups.c (xgetgroups): New wrapper.
36655         (mgetgroups): Handle ENOSYS.
36656         * modules/mgetgroups (Depends-on): Add realloc.
36657         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
36658
36659         mgetgroups: avoid argument promotion issues with -1
36660         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
36661         for invalid gid_t.
36662         * tests/test-chown.h (getegid, test_chown): Likewise.
36663         * tests/test-lchown.h (getegid, test_lchown): Likewise.
36664
36665 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
36666
36667         exclude: Fix header file problems.
36668         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
36669
36670 2009-12-01  Jim Meyering  <meyering@redhat.com>
36671
36672         fts: fts_open: do not let an empty string cause immediate failure
36673         This is required in support of GNU rm, for which the command
36674         "rm A '' B" must process and remove both A and B, in spite of
36675         the empty string argument.
36676         * lib/fts.c (fts_open): Do not let the presence of an empty string
36677         cause fts_open to fail immediately.  Most fts-using tools must be
36678         able to process all arguments, in order, and can be expected to
36679         diagnose such arguments themselves.
36680
36681 2009-11-30  Eric Blake  <ebb9@byu.net>
36682
36683         utimens: fix compilation error
36684         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
36685         Declare variable at right scope.
36686
36687 2009-11-29  Jim Meyering  <meyering@redhat.com>
36688
36689         bootstrap: handle perl-5.11's changed --version output
36690         * build-aux/bootstrap (get_version): Handle perl separately,
36691         since perl-5.11's --version output is different.
36692
36693 2009-11-28  Jim Meyering  <meyering@redhat.com>
36694
36695         userspec: depend on the inttostr module, too
36696         * modules/userspec (Depends-on): Add inttostr.
36697
36698         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
36699         * lib/userspec.c (parse_with_separator): Do not accept a user ID
36700         number of MAXUID when it evaluates to (uid_t) -1.
36701         Likewise for group ID.  Reported by Matt McCutchen in
36702         <http://savannah.gnu.org/bugs/?28113>
36703
36704         userspec: reformat to use spaces, not TABs
36705         * lib/userspec.c: Expand TABs to spaces.
36706         Add Emacs' "indent-tabs-mode: nil" hint.
36707
36708 2009-11-27  Eric Blake  <ebb9@byu.net>
36709
36710         getopt-gnu: flush out another BSD bug
36711         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
36712         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
36713         flush out BSD bug.
36714         * tests/test-getopt.h (test_getopt): End lists with NULL.
36715         * tests/test-getopt_long.h (test_getopt_long): Likewise.
36716         (test_getopt_long_posix): Enhance test.
36717         * modules/getopt-posix-tests (Depends-on): Add stdbool.
36718         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
36719         getopt-gnu.
36720         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36721         Likewise.
36722
36723 2009-11-27  Simon Josefsson  <simon@josefsson.org>
36724
36725         * modules/idpriv-droptemp-tests (Notice): Fix text.
36726
36727 2009-11-27  Jim Meyering  <meyering@redhat.com>
36728
36729         test-xalloc-die: avoid spurious failure due to libtool argv difference
36730         In a libtool-enabled project, this test would fail due to a difference
36731         in the emitted program name, e.g.,
36732         -test-xalloc-die: memory exhausted
36733         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
36734         Use program to avoid that.
36735         * modules/xalloc-die-tests (Depends-on): Add progname.
36736         * tests/test-xalloc-die.c: Include progname.h".
36737         (program_name): Remove decl.
36738         (main): Call set_program_name.
36739         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36740
36741 2009-11-26  Richard Jones  <rjones@redhat.com>
36742
36743         w32sock: leave win32 error in place.
36744         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
36745
36746 2009-11-26  Eric Blake  <ebb9@byu.net>
36747
36748         init.sh: suggest to use skip_ and fail_ functions in comments
36749         * tests/init.sh: Add a sentence.
36750
36751 2009-11-25  Bruno Haible  <bruno@clisp.org>
36752
36753         init.sh: add documentation in comments
36754         * tests/init.sh: Add some developer and user documentation.
36755
36756 2009-11-26  Jim Meyering  <meyering@redhat.com>
36757
36758         init.sh: accommodate even those who specify bogus srcdir manually
36759         * tests/init.sh: Normally, srcdir is guaranteed by automake and
36760         configure-time tests to be sanitized, so that there is no need to
36761         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
36762         (with no double quotes) suffices.  However, since tests may be
36763         invoked manually, and since you may explicitly set srcdir to the
36764         name of a directory containing spaces, do quote its uses here.
36765         * tests/test-pread.sh: Likewise.
36766         Suggested by Bruno Haible.
36767
36768         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
36769         * tests/test-pread.sh: Write no data into the pipe, because
36770         test-pread actually reads none.  This avoids a diagnostic,
36771         "bash: echo: write error: Broken pipe", that arises in the unusual
36772         event something is ignoring SIGPIPE, and might be interpreted
36773         as some sort of failure.  Reported by Bruno Haible.
36774
36775 2009-11-25  Jim Meyering  <meyering@redhat.com>
36776
36777         test-pread: cover failure with ESPIPE and EINVAL
36778         * tests/test-pread.c (main): Test for failure, too.
36779         * tests/test-pread.sh: Invoke with stdin on a pipe.
36780         Suggested by Eric Blake.
36781
36782         pread: improvement and fix
36783         * modules/pread (Depends-on): Depend on lseek, for portability to
36784         e.g., mingw.  Suggested by Eric Blake.
36785         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
36786
36787         unistd.in.h: correct declaration of pread
36788         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
36789         Reported by Richard W.M. Jones.
36790
36791         test-pread.sh: distribute the test script
36792         * modules/pread-tests (Files): Include test-pread.sh.
36793
36794         test-pread.sh: clean up
36795         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
36796         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
36797         That is unnecessary, since it's always ".".
36798         Suggestion from Eric Blake.
36799
36800         test-pread.sh: make executable
36801         * tests/test-pread.sh: Set executable bit.
36802         Reported by Eric Blake.
36803
36804         correct typo in test-pread.sh
36805         * tests/test-pread.sh: Add #! line.
36806
36807         test pread
36808         * tests/test-pread.c: New file.
36809         * tests/test-pread.sh: Likewise.
36810         * modules/pread-tests: Likewise.
36811
36812         pread: new module
36813         * modules/pread: New file.
36814         * lib/unistd.in.h (pread): Define/declare.
36815         * lib/pread.c (pread): New file.
36816         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
36817         * modules/unistd (Makefile.am): Substitute witnesses.
36818         * doc/posix-functions/pread.texi (pread): Update.
36819         * MODULES.html.sh: Add pread.
36820
36821 2009-11-25  Jim Meyering  <meyering@redhat.com>
36822
36823         tests/init.sh: new file to be used via most *.sh tests
36824         * tests/init.sh: New file.
36825
36826 2009-11-25  Eric Blake  <ebb9@byu.net>
36827
36828         utimens: work around older Linux failure with symlinks
36829         * lib/utimens.c (lutimensat_works_really): New variable.
36830         (fdutimens, lutimens): Use it to manage kernels that support
36831         nanosecond times on files, but not on symlinks.
36832         Reported by Ondřej Vašík.
36833
36834         utimes: fix configure grammar
36835         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
36836
36837 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
36838
36839         regex: Fix fastmap for multibyte character ranges.
36840         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
36841         characters when a multibyte character range is included.
36842
36843 2009-11-22  Andy Wingo  <wingo@pobox.com>
36844
36845         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
36846         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
36847
36848 2009-11-24  Bruno Haible  <bruno@clisp.org>
36849
36850         doc: Most *_l functions exist in MacOS X 10.5.
36851         * doc/posix-functions/duplocale.texi: Update platforms list.
36852         * doc/posix-functions/freelocale.texi: Likewise.
36853         * doc/posix-functions/newlocale.texi: Likewise.
36854         * doc/posix-functions/uselocale.texi: Likewise.
36855         * doc/posix-functions/isalnum_l.texi: Likewise.
36856         * doc/posix-functions/isalpha_l.texi: Likewise.
36857         * doc/posix-functions/isblank_l.texi: Likewise.
36858         * doc/posix-functions/iscntrl_l.texi: Likewise.
36859         * doc/posix-functions/isdigit_l.texi: Likewise.
36860         * doc/posix-functions/isgraph_l.texi: Likewise.
36861         * doc/posix-functions/islower_l.texi: Likewise.
36862         * doc/posix-functions/isprint_l.texi: Likewise.
36863         * doc/posix-functions/ispunct_l.texi: Likewise.
36864         * doc/posix-functions/isspace_l.texi: Likewise.
36865         * doc/posix-functions/isupper_l.texi: Likewise.
36866         * doc/posix-functions/iswalnum_l.texi: Likewise.
36867         * doc/posix-functions/iswalpha_l.texi: Likewise.
36868         * doc/posix-functions/iswblank_l.texi: Likewise.
36869         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36870         * doc/posix-functions/iswctype_l.texi: Likewise.
36871         * doc/posix-functions/iswdigit_l.texi: Likewise.
36872         * doc/posix-functions/iswgraph_l.texi: Likewise.
36873         * doc/posix-functions/iswlower_l.texi: Likewise.
36874         * doc/posix-functions/iswprint_l.texi: Likewise.
36875         * doc/posix-functions/iswpunct_l.texi: Likewise.
36876         * doc/posix-functions/iswspace_l.texi: Likewise.
36877         * doc/posix-functions/iswupper_l.texi: Likewise.
36878         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36879         * doc/posix-functions/isxdigit_l.texi: Likewise.
36880         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
36881         * doc/posix-functions/strcasecmp_l.texi: Likewise.
36882         * doc/posix-functions/strcoll_l.texi: Likewise.
36883         * doc/posix-functions/strfmon_l.texi: Likewise.
36884         * doc/posix-functions/strftime_l.texi: Likewise.
36885         * doc/posix-functions/strncasecmp_l.texi: Likewise.
36886         * doc/posix-functions/strxfrm_l.texi: Likewise.
36887         * doc/posix-functions/tolower_l.texi: Likewise.
36888         * doc/posix-functions/toupper_l.texi: Likewise.
36889         * doc/posix-functions/towctrans_l.texi: Likewise.
36890         * doc/posix-functions/towlower_l.texi: Likewise.
36891         * doc/posix-functions/towupper_l.texi: Likewise.
36892         * doc/posix-functions/wcscoll_l.texi: Likewise.
36893         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36894         * doc/posix-functions/wctrans_l.texi: Likewise.
36895         * doc/posix-functions/wctype_l.texi: Likewise.
36896         * doc/glibc-functions/strptime_l.texi: Likewise.
36897         * doc/glibc-functions/strtod_l.texi: Likewise.
36898         * doc/glibc-functions/strtof_l.texi: Likewise.
36899         * doc/glibc-functions/strtol_l.texi: Likewise.
36900         * doc/glibc-functions/strtold_l.texi: Likewise.
36901         * doc/glibc-functions/strtoll_l.texi: Likewise.
36902         * doc/glibc-functions/strtoul_l.texi: Likewise.
36903         * doc/glibc-functions/strtoull_l.texi: Likewise.
36904         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36905         * doc/glibc-functions/wcstod_l.texi: Likewise.
36906         * doc/glibc-functions/wcstof_l.texi: Likewise.
36907         * doc/glibc-functions/wcstol_l.texi: Likewise.
36908         * doc/glibc-functions/wcstold_l.texi: Likewise.
36909         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36910         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36911         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36912
36913 2009-11-24  Bruno Haible  <bruno@clisp.org>
36914
36915         duplocale: Fix logic bug.
36916         * lib/duplocale.c: Don't include <langinfo.h>.
36917         (_NL_LOCALE_NAME): Remove macro.
36918         (rpl_duplocale): Use setlocale instead of nl_langinfo.
36919         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
36920
36921 2009-11-23  Jim Meyering  <meyering@redhat.com>
36922
36923         test-update-copyright: don't hard-code /usr/bin/perl
36924         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
36925         perl to print the current year.  Gilles Espinasse reported that
36926         the replaced use of perl was hard-coded as /usr/bin/perl.
36927
36928 2009-11-23  Bruno Haible  <bruno@clisp.org>
36929
36930         duplocale: Add support for glibc 2.3.x.
36931         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
36932
36933 2009-11-22  Bruno Haible  <bruno@clisp.org>
36934
36935         vasnprintf: Tiny optimization.
36936         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
36937         MacOS X.
36938
36939 2009-11-22  Bruno Haible  <bruno@clisp.org>
36940
36941         Tests for module 'duplocale'.
36942         * modules/duplocale-tests: New file.
36943         * tests/test-duplocale.c: New file.
36944
36945         New module 'duplocale'.
36946         * m4/duplocale.m4: New file.
36947         * lib/locale.in.h (duplocale): New declaration.
36948         * lib/duplocale.c: New file.
36949         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36950         gl_LOCALE_H_DEFAULTS): New macros.
36951         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36952         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36953         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36954         REPLACE_DUPLOCALE.
36955         * modules/duplocale: New file.
36956         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36957
36958 2009-11-22  Bruno Haible  <bruno@clisp.org>
36959
36960         * modules/locale-tests (configure.ac): Test for newlocale function.
36961         * tests/test-locale.c: When the system has extended locale functions,
36962         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36963
36964         locale: Make locale_t available when possible.
36965         * lib/locale.in.h: Include <xlocale.h> when it exists.
36966         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36967         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36968         * modules/locale (Depends-on): Add extensions.
36969         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36970         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36971
36972 2009-11-22  Bruno Haible  <bruno@clisp.org>
36973
36974         Add comments.
36975         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36976         invocation.
36977         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36978         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36979         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36980
36981 2009-11-22  Bruno Haible  <bruno@clisp.org>
36982
36983         error: account for the possibility of freopen (stdout).
36984         * lib/error.c: Include <unistd.h>.
36985         (flush_stdout): New function, extracted from error and error_at_line.
36986         Determine stdout's fd dynamically.
36987         (error, error_at_line): Invoke flush_stdout.
36988         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36989         * modules/error (Depends-on): Add unistd.
36990
36991 2009-11-22  Bruno Haible  <bruno@clisp.org>
36992
36993         diffseq: Add comment.
36994         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36995
36996 2009-11-22  Jim Meyering  <meyering@redhat.com>
36997
36998         c-stack: avoid defining an unused static function
36999         * lib/c-stack.c (find_stack_direction): Do not define this function
37000         when it will not be used.
37001
37002         diffseq: avoid spurious gcc warnings
37003         * lib/diffseq.h (IF_LINT2): Define.
37004         (compareseq): Use it to initialize two members of "part".
37005         This avoids two used-uninitialized warnings.
37006
37007 2009-11-21  Jim Meyering  <meyering@redhat.com>
37008
37009         c-stack: avoid "ignoring return value of `write'" warning
37010         * lib/c-stack.c: Include "ignore-value.h".
37011         (die): Explicitly ignore each write return value.
37012         * modules/c-stack (Depends-on): Add ignore-value.
37013
37014 2009-11-21  Bruno Haible  <bruno@clisp.org>
37015
37016         diffseq: reduce scope of variable 'best'.
37017         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37018         variable, earlier used for two different purposes.
37019
37020 2009-11-21  Jim Meyering  <meyering@redhat.com>
37021
37022         diffseq: remove useless assignment to "best"
37023         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37024         assignment.  At that point "best" is already guaranteed to be zero.
37025
37026 2009-11-20  Eric Blake  <ebb9@byu.net>
37027
37028         build: mention ftp redirector in release announcements
37029         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37030         values that used to come from cfg.mk; mention FTP redirect URL.
37031         * build-aux/announce-gen: Mention the mirror list.
37032         Suggested by Karl Berry.
37033
37034         nanosleep: improve port to mingw
37035         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37037         LIB_NANOSLEEP, but only when needed.
37038         * modules/select (Link): Document LIBSOCKET.
37039         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37040         enough.
37041
37042         nanosleep: work around cygwin bug
37043         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37044         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37045         bug.
37046         (getnow): Delete, not needed.
37047         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37048         LIB_CLOCK_GETTIME.
37049         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37050         clock-time, gettime.
37051         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37052         bug.
37053         * modules/nanosleep-tests: New test.
37054         * tests/test-nanosleep.c: New file.
37055
37056         sleep: work around cygwin bug
37057         * lib/sleep.c (rpl_sleep): Work around the bug.
37058         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37059         (gl_PREREQ_SLEEP): Delete unused macro.
37060         * modules/sleep (Depends-on): Add verify.
37061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37062         * modules/unistd (Makefile.am): Substitute witness.
37063         * lib/unistd.in.h (sleep): Update prototype.
37064         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37065         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37066         * modules/sleep-tests (Depends-on): Check for alarm.
37067
37068 2009-11-20  Jim Meyering  <meyering@redhat.com>
37069
37070         maint.mk: improve sc_prohibit_magic_number_exit
37071         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37072         so it does not match uses like System.exit(1).
37073         Add comments showing how to correct all offenders.
37074
37075 2009-11-19  Eric Blake  <ebb9@byu.net>
37076
37077         xalloc-die-tests: add missing library
37078         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37079
37080         test-xvasprintf: silence compiler warnings
37081         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37082         empty string from gcc.
37083
37084 2009-11-19  Jim Meyering  <meyering@redhat.com>
37085
37086         xfreopen: new module, from coreutils
37087         * modules/xfreopen: New module.
37088         * lib/xfreopen.c: New file.
37089         * lib/xfreopen.h: New file.
37090         * MODULES.html.sh (File stream based Input/Output"): Add it.
37091
37092 2009-11-19  Eric Blake  <ebb9@byu.net>
37093
37094         manywarnings: depend on warnings
37095         * modules/manywarnings (Depends-on): Add warnings.
37096
37097         build: avoid compiler warnings
37098         * lib/select.c (rpl_select): Delete unused variable.
37099         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37100
37101 2009-11-18  Eric Blake  <ebb9@byu.net>
37102
37103         tests: avoid false negative with --with-packager
37104         * tests/test-version-etc.sh: Discard packager information.
37105         * tests/test-argp-version-etc-1.sh: Likewise.
37106         Reported by Mike Frysinger.
37107
37108         utimens: fix regression on Solaris
37109         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37110         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37111         can only change fd timestamps via futimesat.  Instead, use an
37112         additional witness macro to avoid BSD bug.
37113         Reported by Jim Meyering.
37114
37115 2009-11-17  Eric Blake  <ebb9@byu.net>
37116
37117         usleep: use it to simplify tests
37118         * modules/stat-time-tests (Depends-on): Add usleep.
37119         (configure.ac): Drop usleep check.
37120         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37121         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37122         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37123         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37124         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37125         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37126         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37127         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37128         Likewise.
37129         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37130         * tests/test-lchown.h (nap): Likewise.
37131         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37132         * tests/test-stat-time.c (nap): Likewise.
37133         * tests/test-utimens-common.h (nap): Update comments.
37134
37135         usleep: new module
37136         * modules/usleep: New file.
37137         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37138         * lib/usleep.c (usleep): Likewise.
37139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37140         * modules/unistd (Makefile.am): Substitute witnesses.
37141         * lib/unistd.in.h (usleep): Add declaration.
37142         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37143         * MODULES.html.sh (Date and time): Likewise.
37144         * modules/usleep-tests (Depends-on): New test.
37145         * tests/test-usleep.c: New file.
37146
37147         chown: work around OpenBSD bug
37148         * lib/chown.c (rpl_chown): Work around the bug.
37149         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37150         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37151         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37152         * modules/chown (Depends-on): Add stdbool.
37153         * modules/lchown (Depends-on): Likewise.
37154         * doc/posix-functions/chown.texi (chown): Document the bug.
37155         * doc/posix-functions/lchown.texi (lchown): Likewise.
37156         * tests/test-lchown.h (test_chown): Relax test.
37157
37158         mkstemp: avoid conflict with C++ keyword template
37159         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37160         * lib/mkostemp.c (mkostemp): Likewise.
37161         * lib/mkostemps.c (mkostemps): Likewise.
37162         * lib/mkstemp.c (mkstemp): Likewise.
37163         * lib/mkstemps.c (mkstemps): Likewise.
37164
37165         xalloc-die-tests: optimize
37166         * tests/test-xalloc-die.sh: Reduce number of processes.
37167
37168 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37169
37170         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37171         patch from ludo@gnu.org (Ludovic Courtès).
37172
37173 2009-11-17  Jim Meyering  <meyering@redhat.com>
37174
37175         version-etc: use proper license string
37176         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37177         * modules/version-etc-fsf: Likewise.
37178
37179 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37180
37181         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37182         printed to stdout.  Deal with EOL differences.
37183
37184 2009-11-17  Eric Blake  <ebb9@byu.net>
37185
37186         unsetenv: work around Solaris bug
37187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37188         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37189         Reported by Jim Meyering.
37190
37191         vasnprintf: avoid compiler warnings
37192         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37193         variables.
37194         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37195
37196 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37197
37198         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37199         settings since xalloc-die is no longer the self test,
37200         xalloc-die.sh is.
37201
37202 2009-11-17  Jim Meyering  <meyering@redhat.com>
37203
37204         test-xalloc-die.sh: make the code agree with the commit log
37205         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37206         at the end, just in case you happen to have a test-xalloc-die
37207         program in some other PATH directory.
37208
37209         test-xalloc-die.sh: fix a portability bug
37210         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37211         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37212         Otherwise, argv[0] (as often seen in diagnostics) would be too
37213         system-dependent, sometimes with, and sometimes without the leading "./".
37214
37215         version-etc-fsf: relax license to LGPLv3+
37216         * modules/version-etc-fsf (License): Relax license.
37217
37218 2009-11-16  Eric Blake  <ebb9@byu.net>
37219
37220         xalloc-die-tests: avoid printing null pointer
37221         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37222         shell script.
37223         * tests/test-xalloc-die.c (program_name): Declare.
37224         * tests/test-xalloc-die.sh (tmpfiles): New file.
37225
37226         setenv, unsetenv: work around various bugs
37227         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37228         (setenv) [HAVE_SETENV]: Work around bugs.
37229         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37230         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37231         for bugs.
37232         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37233         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37235         * modules/stdlib (Makefile.am): Update substitutions.
37236         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37237         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37238         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37239         * modules/setenv-tests: New test.
37240         * modules/unsetenv-tests: Likewise.
37241         * tests/test-setenv.c: New file.
37242         * tests/test-unsetenv.c: Likewise.
37243
37244 2009-11-16  Jim Meyering  <meyering@redhat.com>
37245
37246         version-etc: relax license to LGPLv3+
37247         * modules/version-etc (License): Relax license.
37248
37249         better AC_REQUIRE expanded-before-required-warning avoidance
37250         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37251         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37252         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37253         which is no longer needed.
37254
37255 2009-11-16  Eric Blake  <ebb9@byu.net>
37256
37257         test-freading: clean up temporary file
37258         * tests/test-freading.c (main): Remove file on success, and use
37259         ASSERT more liberally.
37260         Reported by Jim Meyering.
37261
37262 2009-11-16  Jim Meyering  <meyering@redhat.com>
37263
37264         avoid new AC_REQUIRE expanded-before-required warnings
37265         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37266         merely using it.
37267         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37268         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37269
37270 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37271
37272         * tests/test-xalloc-die.c: New file.
37273         * modules/xalloc-die-tests: New file.
37274         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37275         XFAIL_TESTS so it can be appended by modules.
37276
37277 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37278
37279         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37280         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37281
37282 2009-11-14  Eric Blake  <ebb9@byu.net>
37283
37284         fnmatch: avoid compiler warning
37285         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37286         to silence compiler warning about mismatch signedness in ?:.
37287         Reported by Robert Millan.
37288
37289         intprops: add double-inclusion guard
37290         * lib/intprops.h: Allow idempotent includes.
37291         Suggested by Bruce Korb.
37292
37293         openat: detect Solaris fchownat bug
37294         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37295         penalizing glibc chownat when only lchownat is broken.
37296         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37297         trailing slash bugs.
37298         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37299         * modules/openat-tests (Files): Include more files.
37300         (Depends-on): Add mgetgroups, sleep, stat-time.
37301         (configure.ac): Add additional checks.
37302         (Makefile.am): Build new test.
37303         * tests/test-fchownat.c: New file.
37304
37305         lchown: detect Solaris and FreeBSD bug
37306         * lib/lchown.c (rpl_lchown): Work around bug.
37307         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37308         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37309         * modules/unistd (Makefile.am): Populate it.
37310         * lib/unistd.in.h (lchown): Update declaration.
37311         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37312         * modules/lchown-tests: New file.
37313         * tests/test-lchown.h (test_lchown): Likewise.
37314         * tests/test-lchown.c (main): Likewise.
37315
37316         chown: detect Solaris and FreeBSD bug
37317         * lib/chown.c (rpl_chown): Work around bug.
37318         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37319         (gl_PREREQ_CHOWN): Delete.
37320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37321         * modules/unistd (Makefile.am): Populate it.
37322         * lib/unistd.in.h (chown): Update declaration.
37323         * lib/lchown.c (chown): Update client.
37324         * modules/lchown (Depends-on): Add lstat.
37325         * doc/posix-functions/chown.texi (chown): Document the bug.
37326         * doc/posix-functions/getgroups.texi (getgroups): Document
37327         getgroups pitfall.
37328         * modules/chown-tests: New file.
37329         * tests/test-chown.h (test_chown): Likewise.
37330         * tests/test-chown.c (main): Likewise.
37331
37332 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37333
37334         gnulib-tool: correctly detect absence of m4 directories
37335         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37336
37337 2009-11-14  Jim Meyering  <meyering@redhat.com>
37338
37339         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37340         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37341
37342 2009-11-14  John W. Eaton  <jwe@gnu.org>
37343
37344         strftime.h: wrap funtion declaration in extern "C" block
37345         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37346
37347 2009-11-13  Eric Blake  <ebb9@byu.net>
37348
37349         getgroups: avoid compiler warning
37350         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37351
37352         getgroups: work around FreeBSD bug
37353         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37354         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37355         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37356         * tests/test-getgroups.c (main): Fix buffer overrun.
37357
37358         getgroups: avoid compilation failure
37359         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37360         * modules/getgroups (Depends-on): Add stdint.
37361
37362 2009-11-13  Jim Meyering  <meyering@redhat.com>
37363
37364         test-getgroups: avoid compilation failure
37365         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37366
37367 2009-11-13  Eric Blake  <ebb9@byu.net>
37368
37369         mgetgroups: new module, taken from coreutils
37370         * modules/mgetgroups: New file.
37371         * lib/mgetgroups.h: Likewise.
37372         * lib/mgetgroups.c (mgetgroups): Likewise.
37373         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37374         * MODULES.html.sh (Users and groups): Mention it.
37375
37376         getgroups: don't expose GETGROUPS_T to user
37377         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37378         an element at a time if GETGROUPS_T is wrong size.
37379         * lib/getugroups.h (getugroups): Change signature.
37380         * lib/unistd.in.h (getgroups): Likewise.
37381         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37382         signature needs fixing.
37383         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37384         AC_TYPE_GETGROUPS.
37385         * modules/group-member (Depends-on): Add getgroups.
37386         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37387         (group_member): Rely on getgroups replacement.
37388         * lib/getugroups.c (getugroups): Use gid_t.
37389         * tests/test-getgroups.c (main): Likewise.
37390         * NEWS: Mention the signature change.
37391         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37392         problem with signature.
37393         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37394         GETGROUPS_T is still useful for setgroups.
37395
37396         getgroups, getugroups: provide stubs for mingw
37397         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37398         * lib/getugroups.c (getugroups): Likewise.
37399         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37400         function.  Modernize replacement scheme.
37401         (gl_PREREQ_GETGROUPS): Delete.
37402         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37403         * modules/getgroups (configure.ac): Declare witness.
37404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37405         * modules/unistd (Depends-on): Substitute witness.
37406         * lib/unistd.in.h (getgroups): Declare replacement.
37407
37408         getgroups: avoid calling exit
37409         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37410         drop xalloc.
37411         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37412         dependencies.
37413         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37414         exiting, in the rare case of malloc failure.
37415
37416         getgroups: fix logic error
37417         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37418         has more than 20 groups.
37419         * modules/getgroups-tests: New test.
37420         * tests/test-getgroups.c: New file.
37421
37422 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37423
37424         * tests/test-base64.c: Improve.
37425
37426 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37427
37428         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37429         Blake <ebb9@byu.net>.
37430
37431 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37432
37433         * tests/test-xvasprintf.c: Add %s%s related checks.
37434
37435 2009-11-12  Eric Blake  <ebb9@byu.net>
37436
37437         version-etc: match standards.texi style
37438         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37439         and use <> only for URLs.
37440
37441 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37442
37443         fts: do not fail on a submount during traversal
37444         * lib/fts.c (fts_build): Read the stat info again after opening
37445         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37446         Original report at http://bugzilla.redhat.com/501848.
37447
37448 2009-11-12  Jim Meyering  <meyering@redhat.com>
37449
37450         bootstrap: sync from coreutils
37451         * build-aux/bootstrap (bootstrap_epilogue): New function.
37452         Use git_modules_config in one more place.  This make bootstrap's
37453         --gnulib-srcdir option more useful for testing.
37454
37455         bootstrap: generalize autoheader check
37456         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37457         AC_CONFIG_HEADERS.
37458
37459 2009-11-11  Eric Blake  <ebb9@byu.net>
37460
37461         mkfifoat: use new modules for Solaris and BSD bugs
37462         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37463         * lib/mkfifoat.c (mknodat): Split...
37464         * lib/mknodat.c (mknodat): ...into new file.
37465         * modules/mkfifoat (Files): Ship new file.
37466         (Depends-on): Add mkfifo, mknod.
37467         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37468         (Depends-on): Add symlink.
37469         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37470         redundant with test_mkfifo.h.
37471         (do_mkfifoat, do_mknodat): New helpers.
37472
37473         mknod: new module
37474         * modules/mknod: New file.
37475         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37476         * lib/mknod.c (mknod): Likewise.
37477         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37478         defaults.
37479         * modules/sys_stat (Makefile.am): Substitute them.
37480         * lib/sys_stat.in.h (mknod): Declare replacement.
37481         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37482         Document it.
37483         * doc/posix-functions/mknod.texi (mknod): Likewise.
37484         * modules/mknod-tests: New test.
37485         * tests/test-mknod.c: Likewise.
37486
37487         mkfifo: new module
37488         * modules/mkfifo: New file.
37489         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37490         * lib/mkfifo.c (mkfifo): Likewise.
37491         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37492         defaults.
37493         * modules/sys_stat (Makefile.am): Substitute them.
37494         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37495         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37496         Document it.
37497         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37498         * modules/mkfifo-tests: New test.
37499         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37500         from test-mkfifoat.c.
37501         * tests/test-mkfifo.c: New file.
37502
37503         readlink: detect FreeBSD bug
37504         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37505         slash on symlink.
37506         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37507         * tests/test-readlink.h (test_readlink): Enhance test.
37508
37509         symlink: detect FreeBSD bug
37510         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37511         slash on symlink.
37512         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37513         * tests/test-symlink.h (test_symlink): Enhance test.
37514
37515 2009-11-10  Eric Blake  <ebb9@byu.net>
37516
37517         link: detect FreeBSD bug
37518         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37519         symlink.
37520         * doc/posix-functions/link.texi (link): Document the bug.
37521         * tests/test-link.h (test_link): Enhance test.
37522         * tests/test-linkat.c (main): Update caller.
37523
37524         unlink, remove: detect FreeBSD bug
37525         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37526         slash on symlink.
37527         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37528         * doc/posix-functions/remove.texi (remove): Likewise.
37529         * tests/test-unlink.h (test_unlink): Enhance test.
37530         * tests/test-remove.c (main): Likewise.
37531
37532 2009-11-09  Eric Blake  <ebb9@byu.net>
37533
37534         rename: detect FreeBSD bug
37535         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37536         slash on symlink.
37537         * modules/renameat-tests (Depends-on): Add filenamecat.
37538         * tests/test-rename.h (test_rename): Allow one more errno.
37539         * tests/test-renameat.c (main): Likewise.
37540         * doc/posix-functions/rename.texi (rename): Document the bug.
37541
37542         open: detect FreeBSD bug
37543         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37544         symlink.
37545         * doc/posix-functions/open.texi (open): Document the bug.
37546         * doc/posix-functions/utimes.texi (utimes): Likewise.
37547         * tests/test-open.h (test_open): Add parameters, and test symlink
37548         handling.
37549         * tests/test-open.c (main): Adjust caller.
37550         * tests/test-fcntl-safer.c (main): Likewise.
37551         * modules/open-tests (Depends-on): Add stdbool, symlink.
37552         * modules/fcntl-safer-tests (Depends-on): Likewise.
37553         * tests/test-openat.c (main): Add test-open tests.
37554
37555         stat: detect FreeBSD bug
37556         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37557         symlink.
37558         * doc/posix-functions/stat.texi (stat): Document the bug.
37559         * tests/test-stat.h (test_stat_func): Add argument.
37560         * tests/test-stat.c (main): Adjust caller.
37561         * tests/test-fstatat.c (main): Likewise.
37562         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37563         Reported by Jim Meyering.
37564
37565 2009-11-09  James Youngman  <jay@gnu.org>
37566
37567         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37568         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37569
37570 2009-11-08  Jim Meyering  <meyering@redhat.com>
37571
37572         utimens: remove invalid futimesat call
37573         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37574         It used the file descriptor of the target file as the DIR_FD
37575         parameter and NULL as the file name.  That caused failure with
37576         errno == EFAULT on FreeBSD-8.0-rc2
37577
37578 2009-11-07  Eric Blake  <ebb9@byu.net>
37579
37580         fflush, freadseek: use fseeko, not fseek
37581         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37582         (clear_ungetc_buffer): Avoid potential problems on large files.
37583         * lib/freadseek.c (freadseek): Likewise.
37584         * modules/freadseek (Depends-on): Add fseeko.
37585         * modules/fseek (configure.ac): Set a witness.
37586         * tests/test-fflush.c (main): Use fseeko.
37587         * tests/test-fpurge.c (fseek): Disable link warning.
37588         * tests/test-freadable.c (fseek): Likewise.
37589         * tests/test-freading.c (fseek): Likewise.
37590         * tests/test-fseeko.c (fseek): Likewise.
37591         * tests/test-ftell.c (fseek): Likewise.
37592         * tests/test-ftello.c (fseek): Likewise.
37593         * tests/test-fwritable.c (fseek): Likewise.
37594         * tests/test-fwriting.c (fseek): Likewise.
37595
37596 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37597
37598         * modules/memchr (Depends-on): Drop getpagesize dependency.
37599
37600 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37601
37602         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
37603         Reported by Ludovic Courtès.
37604         * build-aux/pmccabe2html: Improve example usage.
37605         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
37606
37607 2009-11-06  Jim Meyering  <meyering@redhat.com>
37608
37609         do-release-commit-and-tag: New module.
37610         Automate the release-commit and tag process.
37611         * build-aux/do-release-commit-and-tag: New script, from coreutils.
37612         * modules/do-release-commit-and-tag: New file.
37613         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37614
37615 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37616
37617         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
37618         because test-select.c uses inet_pton.
37619
37620 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37621
37622         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
37623         GETADDRINFO_LIB.  Bump serial number.
37624         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
37625         Suggested by Eric Blake <ebb9@byu.net>.
37626
37627 2009-11-05  Eric Blake  <ebb9@byu.net>
37628
37629         strtod: detect darwin bug
37630         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
37631         Reported by Leo Davis.
37632
37633         freopen-safer: new module
37634         * modules/freopen-safer: New module.
37635         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
37636         * lib/freopen-safer.c (freopen_safer): New file.
37637         * lib/stdio-safer.h (freopen_safer): New declaration.
37638         * lib/stdio--.h (freopen): New override.
37639         * MODULES.html.sh (File stream based Input/Output): Mention it.
37640         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
37641         freopen-safer module.
37642         * doc/posix-functions/stderr.texi (stderr): Likewise.
37643         * doc/posix-functions/stdin.texi (stdin): Likewise.
37644         * doc/posix-functions/stdout.texi (stdout): Likewise.
37645         * modules/freopen-safer-tests: New test.
37646         * tests/test-reopen-safer.c: New file.
37647
37648 2009-11-05  Jim Meyering  <meyering@redhat.com>
37649
37650         maint.mk: Prohibit inclusion of "close-stream.h" without use.
37651         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37652
37653 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37654
37655         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
37656
37657 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37658
37659         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
37660
37661 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37662
37663         Fix link error.
37664         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37665         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37666
37667 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37668
37669         * tests/test-func.c: Also test value of __func__.
37670
37671 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37672
37673         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
37674         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
37675
37676 2009-11-05  Bruno Haible  <bruno@clisp.org>
37677
37678         Fix link error.
37679         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37680         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37681         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
37682
37683 2009-11-05  Bruno Haible  <bruno@clisp.org>
37684
37685         Tests for module 'inet_pton'.
37686         * modules/inet_pton-tests: New file.
37687         * tests/test-inet_pton.c: New file.
37688
37689 2009-11-05  Bruno Haible  <bruno@clisp.org>
37690
37691         Tests for module 'inet_ntop'.
37692         * modules/inet_ntop-tests: New file.
37693         * tests/test-inet_ntop.c: New file.
37694
37695 2009-11-04  Eric Blake  <ebb9@byu.net>
37696
37697         stdlib-safer: wrap all mkstemp variants
37698         * modules/mkostemp (configure.ac): Set witness.
37699         * modules/mkostemps (configure.ac): Likewise.
37700         * modules/mkstemps (configure.ac): Likewise.
37701         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
37702         (mkstemps_safer): Wrap more functions.
37703         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
37704         wrapping.
37705         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
37706         (mkstemps_safer): Implement the wrappers.
37707
37708         mkstemps, mkostemps: new modules
37709         * modules/mkostemps: New module.
37710         * modules/mkstemps: Likewise.
37711         * lib/mkostemps.c (mkostemps): New file.
37712         * lib/mkstemps.c (mkstemps): Likewise.
37713         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
37714         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
37715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
37716         * modules/stdlib (Makefile.am): Substitute them.
37717         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
37718         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
37719         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
37720         * doc/gnulib.texi (Glibc stdlib.h): Include them.
37721         * MODULES.html.sh (File system functions): Mention them.
37722
37723         tempname: resync from glibc
37724         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
37725         same values for __GT_FILE as glibc.  Abort even when assertions
37726         are disabled.
37727         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
37728         match its value otherwise.  Allow idempotent inclusion.
37729         * lib/mkdtemp.c (mkdtemp): Adjust caller.
37730         * lib/mkostemp.c (mkostemp): Likewise.
37731         * lib/mkstemp.c (mkstemp): Likewise.
37732         * lib/tmpfile.c (tmpfile): Likewise.
37733         * NEWS: Document this.
37734
37735         utimens: fix use of futimens on older Linux
37736         * lib/utimens.c (fdutimens): Use updated, rather than original,
37737         timespec to avoid bug in older Linux kernel.
37738         Reported by Simon Josefsson.
37739
37740 2009-11-04  Bruno Haible  <bruno@clisp.org>
37741
37742         Make num_processors more flexible and consistent.
37743         * lib/nproc.h (enum nproc_query): New type.
37744         (num_processors): Add a 'query' argument.
37745         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
37746         (num_processors): Add a 'query' argument. Test the value of the
37747         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
37748         mingw, count the number of CPUs available for the current process.
37749         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
37750         Check for sched_getaffinity and sched_getaffinity_np.
37751         * modules/nproc (Depends-on): Add c-ctype, extensions.
37752         * NEWS: Mention the change.
37753
37754 2009-11-03  Bruno Haible  <bruno@clisp.org>
37755
37756         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
37757
37758 2009-11-03  Jim Meyering  <meyering@redhat.com>
37759
37760         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
37761         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
37762         if it is defined.
37763
37764 2009-11-02  Eric Blake  <ebb9@byu.net>
37765
37766         mktime, timegm: share common declaration
37767         * lib/mktime-internal.h: New file.
37768         * lib/mktime.c: Use it rather than open-coding a declaration.
37769         * lib/timegm.c: Likewise.
37770         * modules/mktime (Files): Ship it.
37771         * modules/timegm (Files): Likewise.
37772         Suggested by Bruno Haible.
37773
37774         test-update-copyright: update test to match script changes
37775         * tests/test-update-copyright.sh: Avoid hard-coding perl
37776         location.  Don't update *.bak created by earlier runs.
37777
37778 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
37779             Simon Josefsson  <simon@josefsson.org>
37780             Bruno Haible  <bruno@clisp.org>
37781
37782         Fix link error on Solaris 8.
37783         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
37784         also in libnsl. Define also INET_PTON_LIB.
37785         * modules/inet_pton (Link): New section.
37786
37787 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37788             Bruno Haible  <bruno@clisp.org>
37789
37790         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
37791         * modules/inet_ntop (Link): New section.
37792         Reported by Boyan Kasarov <bkasarov@gmail.com>.
37793
37794 2009-11-02  Eric Blake  <ebb9@byu.net>
37795
37796         maint: avoid compiler warnings in m4 macros
37797         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
37798         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
37799
37800 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37801
37802         * m4/pmccabe2html.m4: Remove file.
37803         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
37804         function.  Change maintainer.
37805         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
37806         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
37807         Courtès).
37808
37809 2009-10-31  Eric Blake  <ebb9@byu.net>
37810
37811         fseeko: fix m4 regression
37812         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
37813         regression from 2009-10-27.
37814         Reported by Ralf Wildenhues.
37815
37816 2009-10-31  Jim Meyering  <meyering@redhat.com>
37817
37818         inttostr: aesthetics and improved (compile-time) safety
37819         Define inttype_is_signed rather than inttype_is_unsigned,
37820         since the sole use is via "#if inttype_is_signed".
37821         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
37822         inttype_is_unsigned.
37823         * lib/offtostr.c (inttype_is_signed): Likewise.
37824         * lib/uinttostr.c (inttype_is_signed): Likewise.
37825         * lib/umaxtostr.c (inttype_is_signed): Likewise.
37826         * lib/inttostr.c (inttostr): Use verify to cross-check the
37827         inttype_is_signed value and the signedness of the actual type.
37828         * modules/inttostr (Depends-on): Add verify.
37829
37830 2009-10-30  Eric Blake  <ebb9@byu.net>
37831
37832         build: avoid compiler warnings
37833         * lib/fchmodat.c (lchmod): Mark unused variables.
37834         * lib/getopt.c (_getopt_initialize): Likewise.
37835         * lib/mktime.c (__mktime_internal): Provide prototype.
37836         * lib/inttostr.c (inttostr): Avoid compiler warning even with
37837         older gcc that do not understand #pragma GCC diagnostic.
37838         * lib/uinttostr.c (inttype_is_unsigned): Define.
37839         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
37840
37841 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37842
37843         stat: fix compilation on AIX
37844         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
37845         only see struct stat64.
37846
37847 2009-10-30  Eric Blake  <ebb9@byu.net>
37848
37849         exclude: make more robust
37850         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
37851         rather than masking a coding bug.
37852         Suggested by Bruno Haible.
37853
37854 2009-10-30  Jim Meyering  <meyering@redhat.com>
37855
37856         perl scripts: remove #!/usr/bin/perl in favor of more portable...
37857         Rather than putting #!/usr/bin/perl on the first line,
37858         start with a variant of what's recommended by "man perlrun" that
37859         invokes the first "perl" program from your shell's search path.
37860         * build-aux/gitlog-to-changelog: Replace #!... as above.
37861         Add a "Local Variables" perl mode setting.
37862         Prompted by a patch from Ludovic Courtès.
37863         Improved by Eric Blake.
37864         * build-aux/useless-if-before-free: Likewise.
37865         * build-aux/announce-gen: Likewise.
37866         * build-aux/update-copyright: Likewise.
37867
37868 2009-10-29  Eric Blake  <ebb9@byu.net>
37869
37870         filenamecat-lgpl: adjust clients
37871         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
37872         filenamecat.
37873         * modules/renameat (Depends-on): Likewise.
37874
37875         filenamecat: split into filenamecat-lgpl
37876         * modules/filenamecat-lgpl: New module.
37877         * modules/filenamecat (Files): Move library-safe files into
37878         filenamecat-lgpl.
37879         (Depends-on): Add filenamecat-lgpl.
37880         (configure.ac): Declare witness.
37881         * lib/filenamecat.h (file_name_concat): Only declare when using
37882         GPL module.
37883         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
37884         Move...
37885         * lib/filenamecat-lgpl.c: ...into new file.
37886         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
37887         (gl_FILE_NAME_CONCAT): Use it.
37888         * MODULES.html.sh (File system functions): Mention new module.
37889
37890         argp: avoid memory leak
37891         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
37892         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
37893         base_name, since the latter malloc()s and can call exit().
37894         Leak introduced 2006-07-03.
37895
37896         dirname-lgpl: adjust clients that don't need full dirname
37897         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
37898         * modules/filenamecat (Depends-on): Likewise.
37899         * modules/linkat (Depends-on): Likewise.
37900         * modules/mkancesdirs (Depends-on): Likewise.
37901         * modules/mkdir (Depends-on): Likewise.
37902         * modules/openat (Depends-on): Likewise.
37903         * modules/savewd (Depends-on): Likewise.
37904         * modules/rename (Depends-on): Likewise.
37905         (License): Relax license.
37906         * modules/mkdir-tests (Depends-on): Drop progname.
37907         (Makefile.am): Delete unneeded LDADD.
37908         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
37909
37910         dirname: split into dirname-lgpl
37911         * modules/dirname-lgpl: New module.
37912         * modules/dirname (Files): Move library-safe files into
37913         dirname-lgpl.
37914         (Depends-on): Add dirname-lgpl.
37915         (configure.ac): Declare witness.
37916         * modules/double-slash-root (License): Relax license.
37917         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
37918         module.
37919         * lib/dirname.c (dir_len, mdir_name): Move...
37920         * lib/dirname-lgpl.c: ...into new file.
37921         * lib/basename.c (last_component, base_len): Move...
37922         * lib/basename-lgpl.c: ...into new file.
37923         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37924         (gl_DIRNAME): Use it.
37925         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
37926         Mention new module.
37927         * modules/dirname-tests (Depends-on): Add progname.
37928         * tests/test-dirname.c (program_name): Delete.
37929
37930         mkdir: make safe for libraries
37931         * modules/mkdir (Depends-on): Drop xalloc.
37932         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
37933         exit.
37934
37935         tests: avoid some compiler warnings
37936         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
37937         literals.
37938         * tests/test-memchr.c (main): Avoid type mismatch.
37939         * tests/test-arpa_inet.c (main): Avoid unused parameters.
37940         * tests/test-base64.c (main): Likewise.
37941         * tests/test-getdelim.c (main): Likewise.
37942         * tests/test-gethostname.c (main): Likewise.
37943         * tests/test-getline.c (main): Likewise.
37944         * tests/test-netinet_in.c (main): Likewise.
37945         * tests/test-select.c (open_server_socket, main): Likewise.
37946         * tests/test-select-stdin.c (main): Likewise.
37947         * tests/test-sockets.c (main): Likewise.
37948         * tests/test-strsignal.c (main): Likewise.
37949         * tests/test-sys_select.c (main): Likewise.
37950         * tests/test-sys_socket.c (main): Likewise.
37951         * tests/test-u64.c (main): Likewise.
37952         * tests/test-xfprintf-posix.c (main): Likewise.
37953         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37954
37955         sockets: avoid compiler warning
37956         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37957
37958         maint: detect usage(1) and other suspicious exits
37959         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37960
37961 2009-10-29  Jim Meyering  <meyering@redhat.com>
37962
37963         timespec: long-to-int truncation could make timespec_cmp malfunction
37964         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37965         a multiple of 2^32 nanoseconds as no difference.
37966
37967 2009-10-28  Jim Meyering  <meyering@redhat.com>
37968
37969         fprintftime: wrap macro code argument in "do {...} while(0)"
37970         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37971         cpy macro must be a statement that can be followed by a semicolon.
37972         Now that the else clause contains a comment and is hence longer
37973         than one line, I require curly braces.  That in turn requires
37974         that we wrap this code block in the standard do...while(0).
37975
37976         fprintftime: remove stray semicolon from previous change
37977         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37978
37979         fprintftime: avoid a warning about ignored fwrite return value
37980         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37981         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37982         that is unsafe.
37983         * modules/fprintftime (Depends-on): Add ignore-value.
37984
37985         exclude: avoid an unwarranted warning
37986         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37987
37988 2009-10-27  Eric Blake  <ebb9@byu.net>
37989
37990         fseek: avoid compilation failure when fflush is replaced
37991         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37992         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37993         module is in use.
37994         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37995         module is not in use; since REPLACE_FSEEK worked otherwise.
37996         (GNULIB_FTELLO): Likewise for ftell.
37997         Reported by Ian Beckwith and others.
37998
37999 2009-10-27  Bruno Haible  <bruno@clisp.org>
38000
38001         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38002         Reported by Jim Meyering.
38003
38004 2009-10-27  Jim Meyering  <jim@meyering.net>
38005             Bruno Haible  <bruno@clisp.org>
38006
38007         Avoid warning despite dropping the return value of fwrite.
38008         * lib/unicodeio.c: Include ignore-value.h.
38009         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38010         * modules/unicodeio (Depends-on): Add ignore-value.
38011
38012 2009-10-26  Eric Blake  <ebb9@byu.net>
38013
38014         areadlinkat: fix fallback path
38015         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38016         pointer and zero.
38017
38018 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38019
38020         Use a better IO block size for modern systems
38021         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38022         * lib/md2.c: Likewise.
38023         * lib/md4.c: Likewise.
38024         * lib/md5.c: Likewise.
38025         * lib/sha1.c: Likewise.
38026         * lib/sha256.c: Likewise.
38027         * lib/sha512.c: Likewise.
38028
38029 2009-10-22  Eric Blake  <ebb9@byu.net>
38030
38031         tests: avoid several compiler warnings
38032         * tests/test-getcwd.c (main): Avoid buffer underflow.
38033         * tests/test-getdate.c (main): String literals are not safe with
38034         putenv, so use setenv.  Declare unused argument.
38035         * modules/getdate-tests (Depends-on): Add setenv.
38036         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38037         problems with string literals in char *.
38038         * tests/test-hash.c (main): Avoid shadowing declaration.
38039         (insert_new): Treat string literals as char const *.
38040         * tests/test-getopt.h (test_getopt): Likewise.
38041         (getopt_loop): Alter types to minimize casting elsewhere.
38042         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38043         (test_getopt_long_posix): Likewise.
38044         (do_getopt_long): Add wrapper to minimize casting.
38045         * tests/test-atexit.c (clear_temp_file): Use void.
38046         * tests/test-areadlink-with-size.c (main): Declare unused
38047         arguments.
38048         * tests/test-areadlink.c (main): Likewise.
38049         * tests/test-areadlinkat-with-size.c (main): Likewise.
38050         * tests/test-areadlinkat.c (main): Likewise.
38051         * tests/test-canonicalize-lgpl.c (main): Likewise.
38052         * tests/test-canonicalize.c (main): Likewise.
38053         * tests/test-dirent-safer.c (main): Likewise.
38054         * tests/test-dirname.c (main): Likewise.
38055         * tests/test-dup2.c (main): Likewise.
38056         * tests/test-fchdir.c (main): Likewise.
38057         * tests/test-fcntl-h.c (main): Likewise.
38058         * tests/test-fcntl-safer.c (main): Likewise.
38059         * tests/test-fdopendir.c (main): Likewise.
38060         * tests/test-fdutimensat.c (main): Likewise.
38061         * tests/test-fflush.c (main): Likewise.
38062         * tests/test-filenamecat.c (main): Likewise.
38063         * tests/test-filevercmp.c (main): Likewise.
38064         * tests/test-fopen-safer.c (main): Likewise.
38065         * tests/test-fopen.c (main): Likewise.
38066         * tests/test-fpending.c (main): Likewise.
38067         * tests/test-fpurge.c (main): Likewise.
38068         * tests/test-freading.c (main): Likewise.
38069         * tests/test-fstatat.c (main): Likewise.
38070         * tests/test-fsync.c (main): Likewise.
38071         * tests/test-futimens.c (main): Likewise.
38072         * tests/test-getndelim2.c (main): Likewise.
38073         * tests/test-gettimeofday.c (main): Likewise.
38074         * tests/test-getopt.c (main): Likewise.
38075         * tests/test-i-ring.c (main): Likewise.
38076         * tests/test-inttypes.c (main): Likewise.
38077         * tests/test-link.c (main): Likewise.
38078         * tests/test-lstat.c (main): Likewise.
38079         * tests/test-math.c (main): Likewise.
38080         * tests/test-md5.c (main): Likewise.
38081         * tests/test-memchr2.c (main): Likewise.
38082         * tests/test-memrchr.c (main): Likewise.
38083         * tests/test-mkdir.c (main): Likewise.
38084         * tests/test-mkdirat.c (main): Likewise.
38085         * tests/test-mkfifoat.c (main): Likewise.
38086         * tests/test-open.c (main): Likewise.
38087         * tests/test-openat-safer.c (main): Likewise.
38088         * tests/test-openat.c (main): Likewise.
38089         * tests/test-quotearg.c (main): Likewise.
38090         * tests/test-rawmemchr.c (main): Likewise.
38091         * tests/test-readlink.c (main): Likewise.
38092         * tests/test-remove.c (main): Likewise.
38093         * tests/test-rename.c (main): Likewise.
38094         * tests/test-renameat.c (main): Likewise.
38095         * tests/test-rmdir.c (main): Likewise.
38096         * tests/test-sha1.c (main): Likewise.
38097         * tests/test-signal.c (main): Likewise.
38098         * tests/test-sigaction.c (main): Likewise.
38099         * tests/test-stat.c (main): Likewise.
38100         * tests/test-stat-time.c (main): Likewise.
38101         * tests/test-stddef.c (main): Likewise.
38102         * tests/test-stdint.c (main): Likewise.
38103         * tests/test-stdio.c (main): Likewise.
38104         * tests/test-stdlib.c (main): Likewise.
38105         * tests/test-strchrnul.c (main): Likewise.
38106         * tests/test-strerror.c (main): Likewise.
38107         * tests/test-string.c (main): Likewise.
38108         * tests/test-strtod.c (main): Likewise.
38109         * tests/test-strverscmp.c (main): Likewise.
38110         * tests/test-symlink.c (main): Likewise.
38111         * tests/test-symlinkat.c (main): Likewise.
38112         * tests/test-sys_stat.c (main): Likewise.
38113         * tests/test-sys_time.c (main): Likewise.
38114         * tests/test-time.c (main): Likewise.
38115         * tests/test-unistd.c (main): Likewise.
38116         * tests/test-unlink.c (main): Likewise.
38117         * tests/test-unlinkat.c (main): Likewise.
38118         * tests/test-utimens.c (main): Likewise.
38119         * tests/test-utimensat.c (main): Likewise.
38120         * tests/test-version-etc.c (main): Likewise.
38121         * tests/test-wchar.c (main): Likewise.
38122         * tests/test-wctype.c (main): Likewise.
38123         * tests/test-xprintf-posix.c (main): Likewise.
38124         * tests/test-posixtm.c (main): Likewise.
38125         (STREQ): Delete unused macro.
38126         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38127         shadowed variables.
38128         * tests/test-memchr.c (main): Likewise.
38129
38130 2009-10-21  Eric Blake  <ebb9@byu.net>
38131
38132         areadlinkat: avoid failure on older glibc
38133         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38134         rather than mis-comparing 0 against FUNC_RESULT of char*.
38135
38136 2009-10-21  Bruno Haible  <bruno@clisp.org>
38137
38138         * modules/stpncpy (License): Relicense under LGPLv2+.
38139         Reported by David Lutterkort <lutter@redhat.com>.
38140
38141 2009-10-20  Eric Blake  <ebb9@byu.net>
38142
38143         utimensat: work around Solaris 9 bug
38144         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38145         has trailing slash bugs.
38146         * tests/test-lutimens.h (test_lutimens): Enhance test.
38147         * tests/test-utimens.h (test_utimens): Likewise.
38148         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38149         * doc/posix-functions/utimes.texi (utimes): Likewise.
38150         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38151         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38152         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38153         * doc/posix-functions/futimens.texi (futimens): Likewise.
38154
38155         fdutimensat: new module
38156         * modules/fdutimensat: New file.
38157         * lib/fdutimensat.c (fdutimensat): Likewise.
38158         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38159         * MODULES.html.sh (File system functions): Mention module.
38160         * modules/fdutimensat-tests: New test.
38161         * tests/test-fdutimensat.c: Likewise.
38162
38163         doc: regenerate INSTALL
38164         * doc/INSTALL: Reflect recent autoconf update.
38165         * doc/INSTALL.ISO: Likewise.
38166         * doc/INSTALL.UTF-8: Likewise.
38167
38168 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38169
38170         acl: warn if ACL support is not detected
38171         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38172
38173 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38174
38175         * lib/nproc.h: Add extern "C" block for C++.
38176
38177 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38178             Bruno Haible  <bruno@clisp.org>
38179
38180         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38181         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38182         * doc/posix-functions/isalpha.texi: Likewise.
38183         * doc/posix-functions/isblank.texi: Likewise.
38184         * doc/posix-functions/iscntrl.texi: Likewise.
38185         * doc/posix-functions/isdigit.texi: Likewise.
38186         * doc/posix-functions/isgraph.texi: Likewise.
38187         * doc/posix-functions/islower.texi: Likewise.
38188         * doc/posix-functions/isprint.texi: Likewise.
38189         * doc/posix-functions/ispunct.texi: Likewise.
38190         * doc/posix-functions/isspace.texi: Likewise.
38191         * doc/posix-functions/isupper.texi: Likewise.
38192         * doc/posix-functions/isxdigit.texi: Likewise.
38193
38194 2009-10-18  Bruno Haible  <bruno@clisp.org>
38195
38196         Tests for module 'isblank'.
38197         * modules/isblank-tests: New file.
38198         * tests/test-isblank.c: New file.
38199
38200         New module 'isblank'.
38201         * lib/isblank.c: New file.
38202         * m4/isblank.m4: New file.
38203         * modules/isblank: New file.
38204         * doc/posix-functions/isblank.texi: Mention the new module.
38205
38206 2009-10-18  Bruno Haible  <bruno@clisp.org>
38207
38208         New module 'ctype'.
38209         * lib/ctype.in.h: New file.
38210         * m4/ctype.m4: New file.
38211         * modules/ctype: New file.
38212         * doc/posix-headers/ctype.texi: Mention the new module.
38213
38214 2009-10-18  Jim Meyering  <meyering@redhat.com>
38215
38216         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38217         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38218         right after its initialization, rather than farther down.
38219         Keeping these in close proximity makes it easier to ensure
38220         that each such variable is initialized.  E.g.,
38221
38222             LIB_CLOCK_GETTIME=
38223             AC_SUBST([LIB_CLOCK_GETTIME])
38224
38225         This change also increments these serial numbers.
38226         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38227         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38229
38230 2009-10-18  Bruno Haible  <bruno@clisp.org>
38231
38232         Don't let environment variables perturb build.
38233         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38234         (gl_PREREQ_GETHRXTIME): ... not here.
38235
38236 2009-10-18  Bruno Haible  <bruno@clisp.org>
38237
38238         Avoid symlink attack in localcharset module.
38239         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38240         (O_NOFOLLOW): Define fallback.
38241         (get_charset_aliases): Don't open the file if it is a symbolic link.
38242         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38243         gl_FCNTL_H.
38244         (gl_FCNTL_H): Require it.
38245         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38246         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38247         Reported by Fergal Glynn <fglynn@veracode.com>.
38248
38249 2009-10-18  Bruno Haible  <bruno@clisp.org>
38250
38251         Implement nproc for mingw.
38252         * lib/nproc.c: Include <windows.h>
38253         (num_processors): On native Windows platforms, try GetSystemInfo.
38254
38255 2009-10-18  Bruno Haible  <bruno@clisp.org>
38256
38257         Implement nproc for IRIX.
38258         * lib/nproc.c: Include <sys/sysmp.h>.
38259         (num_processors): On IRIX systems, try sysmp.
38260         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38261
38262 2009-10-18  Bruno Haible  <bruno@clisp.org>
38263
38264         Implement nproc for HP-UX.
38265         * lib/nproc.c: Include <sys/pstat.h>
38266         (num_processors): On HP-UX systems, try pstat_getdynamic.
38267         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38268         pstat_getdynamic.
38269
38270 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38271             Bruno Haible  <bruno@clisp.org>
38272
38273         Implement nproc for NetBSD, OpenBSD.
38274         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38275         (ARRAY_SIZE): New macro.
38276         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38277         * m4/nproc.m4: New file.
38278         * modules/nproc (Files): Add m4/nproc.m4.
38279         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38280         (Makefile.am): Instead, augment lib_SOURCES.
38281
38282 2009-10-18  Bruno Haible  <bruno@clisp.org>
38283
38284         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38285         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38286         sys/param.h.
38287
38288 2009-10-16  Eric Blake  <ebb9@byu.net>
38289
38290         utimensat: new module
38291         * modules/utimensat: New file.
38292         * lib/utimensat.c (utimensat): Likewise.
38293         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38294         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38295         so we can work around Linux bugs.
38296         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38297         * modules/sys_stat (Makefile.am): Substitute them.
38298         * lib/sys_stat.in.h (utimensat): Declare it.
38299         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38300         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38301         * modules/utimensat-tests: New test.
38302         * tests/test-utimensat.c: Likewise.
38303
38304         utimens: let lutimens work on non-symlinks
38305         * lib/utimens.c (lutimens): Fall back to utimens rather than
38306         failing with ENOSYS, when file is not a symlink.
38307         (utimens): Reduce redirection.
38308         * tests/test-lutimens.h (test_lutimens): Update test to cover
38309         non-symlinks.
38310         * tests/test-utimens.h (test_utimens): Update test to cover
38311         symlinks.
38312         * tests/test-utimens.c (main): Update caller.
38313
38314         utimens: cache whether utimensat syscall works
38315         * lib/utimens.c (utimensat_works_really): New cache variable.
38316         (fdutimens, lutimens): Use it to avoid failing syscall.
38317
38318         test-stat-time, test-utimens: improve portability
38319         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38320         ext4 on alpha, and for cygwin.
38321         * tests/test-utimens-common.h: New file.
38322         (nap): Factor delays into single function.
38323         * tests/test-lutimens.h (test_lutimens): Use new header.
38324         * tests/test-futimens.h (test_futimens): Likewise.
38325         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38326         timestamps to occur from same machine, as was done previously for
38327         test_utimens.
38328         * modules/utimens-tests (Files): Ship new file.
38329         * modules/futimens-tests (Files): Likewise.
38330         Reported in part by Jim Meyering.
38331
38332         sys_stat: sort replacement declarations
38333         * lib/sys_stat.in.h: Sort declarations.
38334         * lib/futimens.c (futimens): Fix typo.
38335
38336 2009-10-15  Jim Meyering  <meyering@redhat.com>
38337
38338         don't let environment settings perturb build
38339         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38340         could cause a configure-time and/or build-time malfunction.
38341         Typically, a configure-time function-in-library test is performed
38342         via code like this:
38343
38344           LIB_VAR=
38345           AC_SUBST([LIB_VAR])
38346           prefix_saved_LIBS=$LIBS
38347             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38348                        [test "$ac_cv_search_FUNC" = "none required" ||
38349                         LIB_VAR=$ac_cv_search_FUNC])
38350           LIBS=$prefix_saved_LIBS
38351
38352         However, in each of the files affected by this change, the LIB_VAR=
38353         initialization was omitted.  Thus, when set in the environment, its
38354         value would propagate into generated Makefiles when FUNC is not found
38355         in LIB_NAME.
38356         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38357         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38358         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38359
38360 2009-10-14  Eric Blake  <ebb9@byu.net>
38361
38362         fchdir: avoid infinite recursion in mingw
38363         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38364         recursing.
38365
38366         test-stat-time: port to mingw
38367         * tests/test-stat-time.c (force_unlink): Return a value.
38368         (test_ctime) [W32]: Fix compilation error.
38369         (nap): Don't call usleep with too large an argument.  Use
38370         force_unlink.
38371         * doc/pastposix-functions/usleep.texi (usleep): Document the
38372         portability issue.
38373
38374 2009-10-13  Jim Meyering  <meyering@redhat.com>
38375
38376         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38377         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38378         * modules/pipe-filter-ii: Likewise.
38379         * modules/sys_socket-tests: Likewise.
38380         * modules/tsearch-tests: Likewise.
38381         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38382         (check): Depend on it.
38383
38384 2009-10-12  Eric Blake  <ebb9@byu.net>
38385
38386         utimens-tests: port to NFS file systems
38387         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38388         comparisons to avoid spurious failures from timestamp drift
38389         between NFS machines.
38390
38391 2009-10-12  Eric Blake  <ebb9@byu.net>
38392
38393         stat-time-tests: minor cleanups
38394         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38395         * tests/test-stat-time.c (nap): Separate assignment from call.
38396         Suggested by Paolo Bonzini and Bruno Haible.
38397
38398         sys_stat: guarantee struct timespec
38399         * lib/sys_stat.in.h (includes): Always include <time.h>
38400         * modules/sys_stat (Depends-on): Add time.
38401         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38402         mode_t permission values.
38403         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38404         get at subsecond timestamps.
38405
38406 2009-10-10  Eric Blake  <ebb9@byu.net>
38407
38408         futimens: new module
38409         * modules/futimens: New file.
38410         * lib/futimens.c (futimens): Likewise.
38411         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38412         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38413         we can work around Linux bugs.
38414         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38415         * modules/sys_stat (Makefile.am): Substitute them.
38416         * lib/sys_stat.in.h (futimens): Declare it.
38417         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38418         * doc/posix-functions/futimens.texi (futimens): Likewise.
38419         * modules/futimens-tests: New test.
38420         * tests/test-futimens.c: Likewise.
38421
38422         utimens: introduce fdutimens
38423         * lib/utimens.h (fdutimens): New prototype.
38424         * lib/utimens.c (gl_futimens): Move guts...
38425         (fdutimens): ...to new interface.
38426         * tests/test-utimens.c (do_fdutimens): Use it.
38427
38428         utimens: add UTIME_NOW and UTIME_OMIT support
38429         * lib/utimens.c (validate_timespec, update_timespec): New helper
38430         functions.
38431         (gl_futimens, lutimens): Use them.
38432         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38433         stdbool, sys_stat.
38434         (Link): Mention resulting library dependency.
38435         * modules/utimecmp (Link): Likewise.
38436         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38437         (Makefile.am): Pick up library dependency.
38438         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38439         definition.
38440         * tests/test-sys_stat.c: Test the definitions.
38441         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38442         * NEWS: Document library dependency.
38443
38444         utimecmp: support symlink timestamps
38445         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38446         hashing when possible.  Use pathconf when available.
38447         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38448         * modules/utimecmp (Depends-on): Add lstat.
38449
38450         utimens: add lutimens interface
38451         * lib/utimens.c (lutimens): New function.
38452         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38453         * lib/utimens.h (lutimens): Declare new interface.
38454         * tests/test-utimens.c (main): Enhance test.
38455         * tests/test-lutimens.h (test_lutimens): New file.
38456         * modules/utimens-tests (Files): Distribute it.
38457         (Depends-on): Add symlink.
38458         (configure.ac): Check for usleep.
38459
38460         utimens: validate futimens usage
38461         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38462         fewer syscalls on failure later on.  Avoid compiler warning on
38463         mingw.
38464         * modules/utimens (Depends-on): Add dup2.
38465
38466         utimens: add test
38467         * modules/utimens-tests: New test.
38468         * tests/test-utimens.h: New file.
38469         * tests/test-futimens.h: Likewise.
38470         * tests/test-utimens.c: Likewise.
38471
38472         doc: mention timestamp portability issues
38473         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38474         instead.
38475         * doc/posix-functions/utime.texi (utime): Likewise.
38476         * doc/posix-functions/utimes.texi (utimes): Likewise.
38477         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38478         instead.
38479         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38480         module.
38481         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38482         Mention weakness with symlink timestamps.
38483         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38484         to utimensat/futimens instead.
38485         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38486
38487         test-dup2: enhance test
38488         * tests/test-dup2.c (main): Also check AT_FDCWD.
38489
38490         test-stat-time: avoid more spurious failures
38491         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38492         xfs; and avoid race if the two timestamps cross quantization edge.
38493
38494         relocatable: prefer 'file system' over 'filesystem'
38495         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38496         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38497         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38498         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38499         * lib/relocatable.c (compute_curr_prefix): Likewise.
38500
38501 2009-10-10  Jim Meyering  <meyering@redhat.com>
38502
38503         stat-time-tests: check for the usleep function
38504         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38505
38506 2009-10-10  Bruno Haible  <bruno@clisp.org>
38507
38508         * modules/xnanosleep: Put the Link section after the Include section.
38509
38510 2009-10-09  Eric Blake  <ebb9@byu.net>
38511
38512         dup2: work around FreeBSD 6.1 bug
38513         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38514         * doc/posix-functions/dup2.texi (dup2): Document it.
38515         Reported by Nelson H. F. Beebe and Jim Meyering.
38516
38517         test-stat-time: port to buggy NFS clients
38518         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38519         (test_ctime): Also skip test if mtime and ctime are skewed.
38520
38521         maint: prefer 'file system' over 'filesystem'
38522         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38523         * doc/posix-functions/lstat.texi (lstat): Likewise.
38524         * lib/file-has-acl.c (file_has_acl): Likewise.
38525         * lib/fwriteerror.c [TEST]: Likewise.
38526         * tests/test-areadlink.h (test_areadlink): Likewise.
38527         * tests/test-areadlinkat-with-size.c (main): Likewise.
38528         * tests/test-areadlinkat.c (main): Likewise.
38529         * tests/test-canonicalize-lgpl.c (main): Likewise.
38530         * tests/test-canonicalize.c (main): Likewise.
38531         * tests/test-fstatat.c (main): Likewise.
38532         * tests/test-linkat.c (main): Likewise.
38533         * tests/test-lstat.h (test_lstat_func): Likewise.
38534         * tests/test-mkdir.h (test_mkdir): Likewise.
38535         * tests/test-readlink.h (test_readlink): Likewise.
38536         * tests/test-remove.c (main): Likewise.
38537         * tests/test-rename.h (test_rename): Likewise.
38538         * tests/test-renameat.c (main): Likewise.
38539         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38540         * tests/test-symlink.h (test_symlink): Likewise.
38541         * tests/test-symlinkat.c (main): Likewise.
38542         * tests/test-unlink.h (test_unlink_func): Likewise.
38543         * tests/test-unlinkat.c (main): Likewise.
38544
38545         maint: make realtime library usage explicit
38546         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38547         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38548         * modules/settime (Link): Likewise.
38549         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38550
38551         test-stat-time: speed up execution
38552         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38553         warning on mingw.
38554         (nap): New helper function.
38555         (prepare_test): Use it to reduce sleep time.
38556         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38557         execution.
38558         * modules/stat-time-tests (configure.ac): Check for usleep.
38559
38560 2009-10-09  Jim Meyering  <meyering@redhat.com>
38561
38562         selinux-h: always use getfilecon wrappers
38563         * lib/getfilecon.c: New file.
38564         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38565         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38566         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38567         (fgetfilecon): Provide a stub.
38568         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38569         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38570         file unconditionally.
38571         When <selinux/selinux.h> is found, arrange to use wrappers.
38572         * modules/selinux-h (Files): Add getfilecon.c.
38573         (Makefile.am): Substitute include-next-related bits
38574         into the now-always-generated selinux/selinux.h file.
38575         * doc/glibc-functions/lgetfilecon.texi: New file.
38576         * doc/glibc-functions/fgetfilecon.texi: New file.
38577         * doc/glibc-functions/getfilecon.texi: New file.
38578         * doc/glibc-functions/getfilecon-desc.texi: New file.
38579         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38580         which to pull in the new files.
38581         * MODULES.html.sh (Misc): Add selinux-h.
38582
38583 2009-10-08  Jim Meyering  <meyering@redhat.com>
38584
38585         unistd: fix comment typo
38586         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38587
38588 2009-10-08  Eric Blake  <ebb9@byu.net>
38589
38590         areadlink: use SIZE_MAX consistently
38591         * modules/areadlink (Depends-on): Add stdint.
38592         * modules/areadlink-with-size (Depends-on): Likewise.
38593         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38594         gives NULL; drop sys/types, since unistd gives size_t; and add
38595         stdint for SIZE_MAX.
38596         (SIZE_MAX): Rely on headers.
38597         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
38598         and add stdint.
38599         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
38600         (SIZE_MAX): Likewise.
38601         (INITIAL_BUF_SIZE): Turn into enum.
38602         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
38603
38604 2009-10-08  Jim Meyering  <meyering@redhat.com>
38605
38606         areadlinkat: avoid compilation failure
38607         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
38608         Fix typo in comment.
38609
38610 2009-10-07  Eric Blake  <ebb9@byu.net>
38611
38612         areadlinkat-with-size: new module
38613         * modules/areadlinkat-with-size: New module.
38614         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
38615         * lib/areadlink.h (areadlinkat): Declare it.
38616         * MODULES.html.sh (File system functions): Mention it.
38617         * modules/areadlinkat-with-size-tests: New test.
38618         * tests/test-areadlinkat-with-size.c: New file.
38619
38620         xreadlinkat: new module
38621         * modules/xreadlinkat: New module.
38622         * lib/xreadlinkat.c (xreadlinkat): New file.
38623         * lib/xreadlink.h (xreadlinkat): Declare it.
38624         * MODULES.html.sh (File system functions): Mention it.
38625
38626         areadlinkat: new module
38627         * lib/at-func.c (FUNC_FAIL): New define.
38628         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
38629         * modules/areadlinkat: New module.
38630         * lib/linkat.c (areadlinkat): Move...
38631         * lib/areadlinkat.c (areadlinkat): ...to new file.
38632         * lib/areadlink.h (areadlinkat): Declare it.
38633         * modules/linkat (Depends-on): Add areadlinkat.
38634         * MODULES.html.sh (File system functions): Mention it.
38635         * modules/areadlinkat-tests: New test.
38636         * tests/test-areadlinkat.c: New file.
38637
38638         areadlink, areadlink-with-size: add tests
38639         * modules/areadlink-tests: New test.
38640         * modules/areadlink-with-size-tests: Likewise.
38641         * tests/test-areadlink.h: New file.
38642         * tests/test-areadlink.c: Likewise.
38643         * tests/test-areadlink-with-size.c: Likewise.
38644
38645         maint: minor cleanups
38646         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
38647         _UNUSED_PARAMETER_ instead.
38648         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
38649         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
38650         * modules/linkat-tests (Files): Distribute test-link.h.
38651
38652         openat, utimens: whitespace cleanup
38653         * lib/openat.c: Prefer space throughout, rather than mix of 8
38654         spaces vs. tabs.
38655         * lib/at-func.c: Likewise.
38656         * lib/utimens.c: Likewise.
38657
38658         openat: avoid using wrong fd
38659         * lib/openat.c (openat_permissive): Reject user's fd if saving the
38660         working directory chooses same fd.
38661         * lib/at-func.c (AT_FUNC_NAME): Likewise.
38662
38663         mkdir, mkdirat: fix cygwin 1.5.x bug
38664         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
38665         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
38666         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
38667         bug.
38668         (gl_PREREQ_MKDIR): Delete unused macro.
38669         * modules/mkdir (Files): Track file rename.
38670         (configure.ac): Update macro name.
38671         * modules/openat (Depends-on): Add mkdir.
38672         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
38673
38674         mkdir, mkdirat: add tests
38675         * modules/mkdir-tests: New test.
38676         * tests/test-mkdir.h: New file.
38677         * tests/test-mkdir.c: Likewise.
38678         * tests/test-mkdirat.c: Likewise.
38679         * modules/openat-tests (Files): Add new files.
38680         (Makefile.am): Run new test.
38681
38682 2009-10-06  Eric Blake  <ebb9@byu.net>
38683
38684         doc: tweak *at function documentation
38685         * doc/posix-functions/faccessat.texi (faccessat): Mention
38686         known issue with replacement.
38687         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
38688         * doc/posix-functions/linkat.texi (linkat): Likewise.
38689         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38690         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38691         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38692         * doc/posix-functions/renameat.texi (renameat): Likewise.
38693         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38694
38695         openat: fix GNU/Hurd bug in unlinkat
38696         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
38697         broken.
38698         * doc/posix-functions/unlink.texi (unlink): Document this.
38699         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
38700
38701         fdopendir: fix GNU/Hurd bug
38702         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
38703         allowing non-directory fds.
38704         * lib/fdopendir.c (rpl_fdopendir): Work around it.
38705         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
38706         * modules/dirent (Makefile.am): Substitute it.
38707         * lib/dirent.in.h (fdopendir): Declare replacement.
38708         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
38709         * tests/test-fdopendir.c (main): Test something other than
38710         /dev/null, since on Hurd that behaves like a directory.
38711
38712         test-symlink: port to GNU/Hurd
38713         * tests/test-symlink.h (test_symlink): Relax expected errno.
38714
38715         doc: tweak more cygwin information
38716         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
38717         now compatible with glibc.
38718         * doc/posix-functions/getopt.texi (getopt): Likewise.
38719
38720         getopt-gnu: add another test
38721         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
38722         guarantee behavior relied on by m4.
38723         * tests/test-getopt.c (main): Use it.
38724         * modules/getopt-posix-tests (Depends-on): Add setenv.
38725         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
38726
38727         getopt: fix compilation on darwin
38728         * lib/getopt.in.h (includes): Leave breadcrumbs during system
38729         include.
38730         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
38731         Reported by Ludovic Courtès.
38732
38733 2009-10-06  Bruno Haible  <bruno@clisp.org>
38734
38735         * modules/size_max (Description): Discourage its use.
38736         Reported by Simon Josefsson.
38737
38738 2009-10-06  Jim Meyering  <meyering@redhat.com>
38739
38740         linkat: avoid compilation failure
38741         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38742
38743 2009-10-05  Eric Blake  <ebb9@byu.net>
38744
38745         linkat: support Linux 2.6.17
38746         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
38747         linkat on Linux, but allow cache variable override.
38748         * lib/linkat.c (rpl_linkat): Define override.
38749         * modules/linkat (Depends-on): Add symlinkat.
38750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
38751         * modules/unistd (Makefile.am): Substitute it.
38752         * lib/unistd.in.h (linkat): Declare replacement.
38753         Reported by Pádraig Brady.
38754
38755         quotearg: port test to systems with C.UTF-8 locale
38756         * tests/test-quotearg.c (struct result_strings): Add another
38757         member, differentiating between C.ASCII and C.UTF-8 handling.
38758         (compare_strings): Add parameter.
38759         (main): Adjust all callers.
38760
38761         getopt: avoid clash with FreeBSD _getopt_internal
38762         * lib/getopt.in.h (_getopt_internal): Override the name.
38763         * lib/getopt_int.h (includes): Pick up any overrides.
38764         Reported by Reuben Thomas.
38765
38766         hash: allow C89 compilation
38767         * lib/hash.c (check_tuning): Move declaration before statement.
38768         Reported by Reuben Thomas.
38769
38770 2009-10-05  Karl Berry  <karl@gnu.org>
38771
38772         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
38773
38774 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
38775             Bruno Haible  <bruno@clisp.org>
38776
38777         * lib/uname.c (uname): Use a table-driven algorithm to compute
38778         Windows NT versions.
38779
38780 2009-10-04  Bruno Haible  <bruno@clisp.org>
38781
38782         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
38783         program_invocation_short_name.
38784         * modules/progname (configure.ac): Test for presence of
38785         program_invocation_short_name.
38786         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38787
38788 2009-10-04  Bruno Haible  <bruno@clisp.org>
38789
38790         * lib/progname.c (set_program_name): Fix comment.
38791         Reported by Jim Meyering.
38792
38793 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38794             Bruno Haible  <bruno@clisp.org>
38795
38796         * lib/uname.c: Include <string.h>.
38797         (uname): Do only one call to GetVersionEx in the common case.
38798
38799 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38800             Bruno Haible  <bruno@clisp.org>
38801
38802         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
38803         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
38804         (uname): Add support for Windows CE and various non-x86 CPU types.
38805
38806 2009-10-03  Bruno Haible  <bruno@clisp.org>
38807
38808         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
38809         invocation to tests/configure.ac.
38810         Reported by Ian Beckwith <ianb@erislabs.net>.
38811
38812 2009-10-02  Eric Blake  <ebb9@byu.net>
38813
38814         fchdir: avoid compiler warning
38815         * lib/fchdir.c (canonicalize_file_name)
38816         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
38817
38818         test-open: support mingw errno values
38819         * tests/test-open.h (test_open): Relax test.
38820         * tests/test-fopen.h (test_fopen): Likewise.
38821         * tests/test-openat-safer.c (main): Likewise.
38822
38823         open: fix opening directory on mingw
38824         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
38825
38826         test-open: on GNU/Hurd, /dev/null is a directory
38827         * tests/test-fopen.h (main): Rename...
38828         (test_fopen): ...to this.  Use a guaranteed non-directory when
38829         confirming open behavior on trailing slash.
38830         * tests/test-openat-safer.c (main): Likewise.
38831         * tests/test-open.h (main): Likewise....
38832         (test_open): ...to this.
38833         * tests/test-fopen.c (main): Adjust caller.
38834         * tests/test-fopen-safer.c (main): Likewise.
38835         * tests/test-open.c (main): Likewise.
38836         * tests/test-fcntl-safer.c (main): Likewise.
38837         Reported by Samuel Thibault.
38838
38839         rename, fchdir: don't ignore chdir failure
38840         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
38841         * lib/rename.c (rpl_rename) [W32]: Likewise.
38842         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
38843         an empty destination directory if source cannot be renamed,
38844         although there is still possibility for failure.
38845         * doc/posix-functions/rename.texi (rename): Document the race.
38846         Reported by Jim Meyering.
38847
38848         maint: cleanup whitespace in recent commits
38849         * lib/rename.c (rpl_rename): Remove tabs.
38850         * tests/test-link.h (test_link): Likewise.
38851         * lib/fchdir.c (get_name): Likewise.
38852         Reported by Jim Meyering.
38853
38854 2009-10-02  Ben Pfaff  <blp@gnu.org>
38855
38856         relocatable-prog-wrapper: Add missing dependency on
38857         double-slash-root.
38858         * modules/relocatable-prog-wrapper: Add dependency.
38859         Reported by Ian Beckwith <ianb@erislabs.net>.
38860
38861 2009-10-02  Eric Blake  <ebb9@byu.net>
38862
38863         renameat: fix Solaris bugs
38864         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
38865         needed fixing.
38866         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
38867         * modules/stdio (Makefile.am): Substitute it.
38868         * lib/stdio.in.h (renameat): Declare replacement.
38869         * lib/renameat.c (rpl_renameat): Implement fix.
38870
38871         renameat: new module
38872         * modules/renameat: New file.
38873         * lib/renameat.c (renameat): Likewise.
38874         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
38875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38876         * modules/stdio (Makefile.am): Substitute them.
38877         * lib/stdio.in.h (renameat): Declare it.
38878         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38879         * doc/posix-functions/renameat.texi (renameat): Likewise.
38880         * modules/renameat-tests: New test.
38881         * tests/test-renameat.c: Likewise.
38882
38883         rename: fix mingw bugs
38884         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
38885         directory overwrite bugs.
38886
38887         rename: fix another cygwin 1.5 bug
38888         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
38889         checks.
38890         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
38891         unnecessary cygwin workarounds.  Also work around bug with moving
38892         full directory onto an empty one.
38893         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
38894
38895         rename-dest-slash: merge into rename module
38896         * modules/rename-dest-slash (Status): Mark obsolete.
38897         (Depends-on): Add rename.
38898         (Files): Let rename do it all.
38899         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
38900         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
38901         * m4/rename-dest-slash.m4: ...so this file can be deleted.
38902         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
38903         * lib/rename.c (rpl_rename): Update comments.
38904
38905         rename: fix cygwin 1.5.x bugs
38906         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
38907         * lib/rename.c (rpl_rename): Work around them.
38908         * modules/rename (Depends-on): Add same-inode.
38909
38910         rename: fix Solaris 10 bug
38911         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38912         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
38913         was the only bug.
38914
38915         rename: fix Solaris 9 bug
38916         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
38917         on non-directory.  Avoid calling exit.
38918         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
38919         strdup.
38920         * modules/rename-tests (Depends-on): Drop lstat.
38921         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38922         (gl_PREREQ_RENAME): Delete unused macro.
38923
38924         rename-dest-slash: fix NetBSD bug
38925         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
38926         links.
38927         * modules/rename-dest-slash (Depends-on): Add same-inode.
38928
38929         rename-tests: new test, exposes several platform bugs
38930         * modules/rename-tests: New file.
38931         * tests/test-rename.h: Likewise.
38932         * tests/test-rename.c: Likewise.
38933         * doc/posix-functions/rename.texi (rename): Improve documentation,
38934         including bugs that will eventually be fixed in gnulib.
38935
38936 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
38937
38938         * lib/uname.c: Include <stdlib.h>
38939         (uname): Assume version info is available.
38940
38941 2009-10-02  Jim Meyering  <meyering@redhat.com>
38942
38943         gnu-web-doc-update: correct --help output
38944         * build-aux/gnu-web-doc-update: Make --help output relevant.
38945
38946         gnu-web-doc-update: add standard options
38947         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38948
38949         gnu-web-doc-update: New module.
38950         Use this script to automatically update the on-line web documentation
38951         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38952         * modules/gnu-web-doc-update: New file, from coreutils.
38953         * build-aux/gnu-web-doc-update: New script.
38954
38955 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38956
38957         link: LoadLibrary is not needed.
38958         * lib/link.c: Use GetModuleHandle.
38959
38960 2009-10-01  Eric Blake  <ebb9@byu.net>
38961
38962         getopt: bump serial number
38963         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38964         change.
38965
38966         tests: tighten link, rmdir, and remove tests
38967         * tests/test-link.h (includes): No need to use <config.h> here.
38968         Clean up if directory hard link was created, otherwise test for
38969         trailing '.'.
38970         * tests/test-linkat.c (main): Simplify.
38971         * tests/test-remove.c (main): Enhance test for trailing '.'.
38972         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38973
38974 2009-10-01  Jim Meyering  <meyering@redhat.com>
38975
38976         maint.mk: requiring "make major" was annoying, for a "minor" release.
38977         What is intended is "stable", to contrast with alpha and beta,
38978         so require "make stable", not "make major".
38979         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38980         (get_tool_versions): Likewise.
38981         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38982
38983 2009-09-30  Ben Pfaff  <blp@gnu.org>
38984
38985         Fix broken build of replacement for Windows tmpfile().
38986         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38987         flags argument added along with the 'mkostemp' module.
38988
38989 2009-09-28  Bruno Haible  <bruno@clisp.org>
38990
38991         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38992         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38993         to 'remove_elt'.
38994         (gl_list_remove): Update.
38995         * lib/gl_list.c (gl_list_remove): Update.
38996         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38997         to 'remove_elt'.
38998         (gl_oset_remove): Update.
38999         * lib/gl_list.c (gl_oset_remove): Update.
39000         Reported by Eric Blake.
39001
39002 2009-09-28  Eric Blake  <ebb9@byu.net>
39003
39004         doc: mention yet more cygwin 1.7 status
39005         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39006         cygwin.
39007         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39008         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39009
39010         argp: fix test failure
39011         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39012         that are not upper-case.  Pass correct range to tolower.
39013
39014 2009-09-27  Jim Meyering  <meyering@redhat.com>
39015
39016         test-yesno: work around sparc-dash here-document infelicity
39017         Without this change, the literal \177 byte in a here document
39018         would make dash 0.5.5.1-3 access uninitialized memory.
39019         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39020         Instead, use a marker, "@", and filter through tr to create the desired
39021         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39022
39023 2009-09-27  Bruno Haible  <bruno@clisp.org>
39024
39025         Disable untested support for new flavours of ACLs on AIX.
39026         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39027         progress.
39028         * lib/set-mode-acl.c (qset_acl): Likewise.
39029
39030 2008-12-07  Bruno Haible  <bruno@clisp.org>
39031
39032         Add support for new flavours of ACLs on AIX. (Untested.)
39033         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39034         (file_has_acl): Add support for newer AIX.
39035         * lib/set-mode-acl.c (qset_acl): Likewise.
39036         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39037         Rainer Tammer <tammer@tammer.net>.
39038
39039 2009-09-26  Eric Blake  <ebb9@byu.net>
39040
39041         argp: fix compilation of getopt
39042         * lib/getopt.in.h (includes): Use different guard than glibc.
39043         Reported by Sergey Poznyakoff.
39044
39045         doc: mention more cygwin 1.7 status
39046         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39047         bug.
39048         * doc/posix-functions/execl.texi (execl): Likewise.
39049         * doc/posix-functions/execle.texi (execle): Likewise.
39050         * doc/posix-functions/execlp.texi (execlp): Likewise.
39051         * doc/posix-functions/execv.texi (execv): Likewise.
39052         * doc/posix-functions/execve.texi (execve): Likewise.
39053         * doc/posix-functions/execvp.texi (execvp): Likewise.
39054         * doc/glibc-functions/canonicalize_file_name.texi
39055         (canonicalize_file_name): Cygwin 1.7 now provides this.
39056         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39057         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39058         on AT_SYMLINK_NOFOLLOW.
39059
39060 2009-09-24  Eric Blake  <ebb9@byu.net>
39061
39062         test-linkat: make test more robust
39063         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39064
39065         getopt: fix inclusion guards for cygwin
39066         * modules/getopt-posix (Depends-on): Add include-next.
39067         (Makefile.am): Substitute more items in replacement header.
39068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39069         <getopt.h>.
39070         * lib/getopt.in.h (includes): Use split inclusion guard, and
39071         prefer <getopt.h> over include <unistd.h> when one is present.
39072         (option): Also override name of 'struct option'.
39073
39074         same-inode: revert prior change; it is not yet ready
39075         * NEWS: Undo mention of this change.
39076         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39077         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39078         * lib/cycle-check.c (cycle_check): Likewise.
39079         * lib/same.c (same_name): Likewise.
39080         * lib/at-func2.c (at_func2): Likewise.
39081
39082 2009-09-23  Eric Blake  <ebb9@byu.net>
39083
39084         linkat: new module
39085         * modules/linkat: New file.
39086         * lib/at-func2.c (at_func2): Likewise.
39087         * lib/linkat.c (linkat): Likewise.
39088         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39089         * lib/openat-priv.h (at_func2): Add declaration.
39090         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39091         * modules/unistd (Makefile.am): Substitute them.
39092         * lib/unistd.in.h (linkat): Declare it.
39093         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39094         * doc/posix-functions/linkat.texi (linkat): Likewise.
39095         * doc/posix-functions/link.texi (link): Tweak wording.
39096         * tests/test-link.c (main): Move guts...
39097         * tests/test-link.h (test_link): ...into new file.
39098         * modules/linkat-tests: New test.
39099         * tests/test-linkat.c: Likewise.
39100         * modules/link-tests (Files): Ship new file.
39101         (Depends-on): Add stdbool.
39102
39103         dirname: add library-safe mdir_name
39104         * lib/dirname.h (mdir_name): New prototype.
39105         * lib/dirname.c (dir_name): Move guts...
39106         (mdir_name): ...to new function that avoids xalloc_die.
39107
39108         fchdir: another mingw fix
39109         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39110         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39111         on mingw (where it has not yet been ported), and make it optional
39112         elsewhere.
39113         (_gl_register_fd): Use it.
39114
39115         same-inode: make SAME_INODE tri-state, to port to mingw
39116         * NEWS: Mention this change.
39117         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39118         st_ino always being 0.
39119         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39120         * lib/cycle-check.c (cycle_check): Likewise.
39121         * lib/same.c (same_name): Likewise.
39122
39123         lstat: avoid mingw compilation error
39124         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39125         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39126         lstat ourselves.
39127         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39128         was adequate.
39129         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39130         the checks for lstat.
39131         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39132
39133         link: fix test failure on Solaris 9
39134         * lib/link.c (rpl_link): Don't assume link will catch bogus
39135         trailing slash on source.
39136
39137         test-symlinkat: enhance test
39138         * tests/test-readlink.c (main): Move guts...
39139         * tests/test-readlink.h (test_readlink): ...into new file.
39140         * tests/test-symlink.c (main): Move guts...
39141         * tests/test-symlink.h (test_symlink): ...into new file.
39142         * tests/test-symlinkat.c (main): Use new files for further
39143         coverage.
39144         (do_symlink, do_readlink): New helper functions.
39145         * modules/symlink-tests (Files): Ship new file.
39146         (Depends-on): Add stdbool.
39147         * modules/readlink-tests (Files): Ship new file.
39148         (Depends-on): Add stdbool.
39149         * modules/symlinkat-tests (Files): Use new files.
39150
39151 2009-09-23  Eric Blake  <ebb9@byu.net>
39152
39153         readlink: document portability issue with symlink length
39154         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39155         systems have bogus st_size on symlinks, and mention the
39156         areadlink-with-size module.
39157         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39158         * doc/posix-functions/readlink.texi (readlink): Mention the
39159         areadlink module, and ERANGE failure.
39160         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39161         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39162
39163         readlink: fix Solaris 9 bug with trailing slash
39164         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39165         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39166         * doc/posix-functions/readlink.texi (readlink): Document this.
39167         * modules/readlink-tests: New test.
39168         * tests/test-readlink.c: Likewise.
39169
39170         readlink: fix cygwin 1.5.x bug with return type
39171         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39172         * lib/unistd.in.h (readlink): Use ssize_t.
39173         * lib/readlink.c (readlink): Likewise.
39174         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39175         * modules/unistd (Makefile.am): Substitute it.
39176         * lib/unistd.in.h (readlink): Declare replacement.
39177         * doc/posix-functions/readlink.texi (readlink): Document this.
39178
39179         symlink: use throughout gnulib
39180         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39181         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39182         symlink is not used.
39183         * modules/symlinkat (Depends-on): Add symlink.
39184         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39185         * modules/canonicalize-tests (Depends-on): Likewise.
39186         * modules/lstat-tests (Depends-on): Likewise.
39187         * modules/openat-tests (Depends-on): Likewise.
39188         * modules/remove-tests (Depends-on): Likewise.
39189         * modules/rmdir-tests (Depends-on): Likewise.
39190         * modules/unlink-tests (Depends-on): Likewise.
39191         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39192         * tests/test-canonicalize.c (symlink): Likewise.
39193         * tests/test-fstatat.c (symlink): Likewise.
39194         * tests/test-lstat.c (symlink): Likewise.
39195         * tests/test-remove.c (symlink): Likewise.
39196         * tests/test-rmdir.c (symlink): Likewise.
39197         * tests/test-unlink.c (symlink): Likewise.
39198         * tests/test-unlinkat.c (symlink): Likewise.
39199
39200         symlink: new module, for Solaris 9 bug
39201         * modules/symlink: New file.
39202         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39203         * lib/symlink.c: Likewise.
39204         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39205         * modules/unistd (Makefile.am): Substitute them.
39206         * lib/unistd.in.h (symlink): Declare replacement.
39207         * MODULES.html.sh (File system functions): Mention it.
39208         * doc/posix-functions/symlink.texi (symlink): Likewise.
39209         * modules/symlink-tests: New test.
39210         * tests/test-symlink.c: Likewise.
39211
39212 2009-09-23  Bruno Haible  <bruno@clisp.org>
39213
39214         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39215         when needed.
39216         Test case: gnulib-tool --import --with-tests atexit inttypes.
39217         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39218
39219 2009-09-23  Bruno Haible  <bruno@clisp.org>
39220
39221         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39222         subcommand, not in a subshell.
39223
39224 2009-09-22  Eric Blake  <ebb9@byu.net>
39225
39226         unistd: sort replacement declarations
39227         * lib/unistd.in.h: Sort declarations.
39228
39229         open, openat: minor optimization
39230         * lib/open.c (open): If open succeeded, len is non-zero.
39231         * lib/openat.c (rpl_openat): Likewise.
39232
39233         link-follow: ensure correct result
39234         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39235         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39236         distinguish between possible failures.
39237
39238 2009-09-21  Eric Blake  <ebb9@byu.net>
39239
39240         fts: avoid compiler warning
39241         * lib/fts.c (dirent_inode_sort_may_be_useful)
39242         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39243
39244 2009-09-19  Bruno Haible  <bruno@clisp.org>
39245
39246         * lib/progreloc.c (canonicalize_file_name): New declaration.
39247
39248 2009-09-19  Eric Blake  <ebb9@byu.net>
39249
39250         link: fix quoting
39251         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39252
39253         openat: fix openat bugs on Solaris 9
39254         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39255         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39256         * modules/openat (Depends-on): Add open.
39257         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39258         * modules/fcntl-h (Makefile.am): Substitute it.
39259         * lib/fcntl.in.h (openat): Declare replacement.
39260         * doc/posix-functions/openat.texi (openat): Document this.
39261
39262         openat: move fstatat and unlinkat into correct files
39263         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39264         compiled.
39265         * lib/openat.c (fstatat, unlinkat): Move...
39266         * lib/fstatat.c (fstatat): ...into correct files.
39267         * lib/unlinkat.c (unlinkat): Likewise.
39268
39269         openat: fix unlinkat bugs on Solaris 9
39270         * lib/unlinkat.c (unlinkat): New file.
39271         * modules/openat (Depends-on): Add unlink.
39272         (Files): Distribute it.
39273         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39274         trailing slash behavior is broken.
39275         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39276         * modules/unistd (Makefile.am): Substitute it.
39277         * lib/unistd.in.h (unlinkat): Declare replacement.
39278         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39279
39280         openat: fix fstatat bugs on Solaris 9
39281         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39282         stat.
39283         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39284
39285         test-unlinkat: enhance test, to expose Solaris 9 bug
39286         * tests/test-unlink.c (main): Factor guts...
39287         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39288         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39289         * tests/test-rmdir.c (main): Adjust caller.
39290         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39291         (unlinker): New helper function.
39292         (rmdirat): Enhance check.
39293         * modules/rmdir-tests (Depends-on): Add stdbool.
39294         * modules/unlink-tests (Depends-on): Likewise.
39295         (Files): Add test-unlink.h.
39296         * modules/openat-tests (Files): Likewise.
39297         (Depends-on): Add unlinkdir.
39298
39299         test-fstatat: new test, to expose Solaris 9 bugs
39300         * tests/test-stat.c (main): Factor guts...
39301         * tests/test-stat.h (test_stat_func): ...into new file.
39302         * tests/test-lstat.c (main): Factor guts...
39303         * tests/test-lstat.h (test_lstat_func): ...into new file.
39304         * tests/test-fstatat.c: New file.
39305         * modules/stat-tests (Files): Add test-stat.h.
39306         * modules/lstat-tests (Files): Add test-lstat.h.
39307         (Depends-on): Add stdbool.
39308         * modules/openat-tests (Depends-on): Add pathmax.
39309         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39310         (Makefile.am): Run new test.
39311
39312         remove: new module, for mingw and Solaris 9 bugs
39313         * modules/remove: New file.
39314         * lib/remove.c: Likewise.
39315         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39317         * modules/stdio (Makefile.am): Use them.
39318         * lib/stdio.in.h (remove): Declare replacement.
39319         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39320         * doc/posix-functions/remove.texi (remove): Likewise.
39321         * modules/remove-tests: New test.
39322         * tests/test-remove.c: Likewise.
39323
39324         unlink: new module, for Solaris 9 bug
39325         * modules/unlink: New file.
39326         * lib/unlink.c: Likewise.
39327         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39329         * modules/unistd (Makefile.am): Use them.
39330         * lib/unistd.in.h (stat): Declare replacement.
39331         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39332         * doc/posix-functions/unlink.texi (unlink): Likewise.
39333         * modules/unlink-tests: New test.
39334         * tests/test-unlink.c: Likewise.
39335
39336         lstat: fix Solaris 9 bug
39337         * lib/lstat.c (lstat): Also check for trailing slash on
39338         non-symlink, non-directories.  Use stat module to simplify logic.
39339         * doc/posix-functions/lstat.texi (lstat): Document it.
39340         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39341         (configure.ac): Check for symlink.
39342         * tests/test-lstat.c (main): Add more tests.
39343
39344         stat: add as dependency to other modules
39345         * modules/chown (Depends-on): Add stat.
39346         * modules/euidaccess (Depends-on): Likewise.
39347         * modules/fchdir (Depends-on): Likewise.
39348         * modules/isdir (Depends-on): Likewise.
39349         * modules/link (Depends-on): Likewise.
39350         * modules/lstat (Depends-on): Likewise.
39351         * modules/mkdir-p (Depends-on): Likewise.
39352         * modules/modechange (Depends-on): Likewise.
39353         * modules/open (Depends-on): Likewise.
39354         * modules/readlink (Depends-on): Likewise.
39355         * modules/same (Depends-on): Likewise.
39356
39357         stat: fix Solaris 9 bug
39358         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39359         slash.
39360         * lib/stat.c (rpl_stat): Work around it.
39361         * doc/posix-functions/stat.texi (stat): Update documentation.
39362
39363         stat: new module, for mingw bug
39364         * modules/stat: New file.
39365         * lib/stat.c: Likewise.
39366         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39368         * modules/sys_stat (Makefile.am): Use them.
39369         * lib/sys_stat.in.h (stat): Declare replacement.
39370         * lib/openat.c (fstatat): Deal with lstat and stat being function
39371         macros.
39372         * modules/openat (Depends-on): Add inline.
39373         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39374         * doc/posix-functions/stat.texi (stat): Likewise.
39375         * modules/stat-tests: New test.
39376         * tests/test-stat.c: Likewise.
39377
39378 2009-09-19  Jim Meyering  <meyering@redhat.com>
39379
39380         syntax-check: detect unnecessary inclusion of canonicalize.h
39381         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39382
39383 2009-09-19  Eric Blake  <ebb9@byu.net>
39384
39385         canonicalize-lgpl: adjust clients to use correct header
39386         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39387         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39388         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39389         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39390         * lib/progreloc.c (includes): Likewise.
39391
39392 2009-09-19  Jim Meyering  <meyering@redhat.com>
39393
39394         test-posixtm.c: correct a comment
39395         * tests/test-posixtm.c: Correct first-line comment.
39396         Spotted by Eric Blake.
39397
39398 2009-09-16  Jim Meyering  <meyering@redhat.com>
39399
39400         posixtm-tests: make T const-correct; add a test case
39401         * tests/test-posixtm.c (T): Declare const.
39402         Add a test for -(2^31+1).
39403         Remove useless can-succeed-only-in-2002 test.
39404
39405         posixtm-tests: adjust the sole failing test
39406         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39407         expected output matches what mktime now produces.  Cross-checked via
39408         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39409
39410         posixtm: move #ifdef'd tests into a new module
39411         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39412         * tests/test-posixtm.c: ... this new file.
39413         * modules/posixtm-tests: New module.
39414
39415 2009-09-19  Eric Blake  <ebb9@byu.net>
39416
39417         openat: simplify use of at-func.c
39418         * lib/at-func.c (includes): Include prerequisites here, to
39419         simplify requirements on client files.
39420         * lib/openat-priv.h: Add double-inclusion guard.
39421         * lib/faccessat.c (includes): Simplify.
39422         * lib/fchmodat.c (includes): Likewise.
39423         * lib/fchownat.c (includes): Likewise.
39424         * lib/mkdirat.c (includes): Likewise.
39425         * lib/mkfifoat.c (includes): Likewise.
39426         * lib/symlinkat.c (includes): Likewise.
39427
39428         openat: allow return of fd 0
39429         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39430         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39431         unistd-safer.
39432         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39433         <fcntl.h>; this module does not leak fds.
39434         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39435         must be allowed to return 0, leaving openat_safer to add the
39436         safety.
39437         (openat_permissive): Avoid writing to just-opened fd 2 if
39438         restoring the current directory fails.
39439         * lib/openat-die.c (openat_restore_fail): Add comment.
39440         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39441         (save_cwd): Guarantee safe fd, but without use of open_safer.
39442         * tests/test-openat.c: New test.
39443         * modules/openat-tests (Files, Makefile.am): Distribute and build
39444         new file.
39445
39446         relocatable-prog-wrapper: fix build
39447         * modules/relocatable-prog-wrapper (Files): Update name of
39448         canonicalize m4 file, broken on 2009-09-17.
39449         Reported by emad hajjar <aleppos@hotmail.com>.
39450
39451 2009-09-19  Bruno Haible  <bruno@clisp.org>
39452
39453         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39454         * lib/safe-alloc.c: Likewise.
39455         Reported by Ian Beckwith <ianb@erislabs.net>.
39456
39457 2009-09-18  Bruno Haible  <bruno@clisp.org>
39458
39459         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39460         Reported by <erobles@sensacd.com.mx>.
39461
39462 2009-09-17  Eric Blake  <ebb9@byu.net>
39463
39464         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39465         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39466         slashes when checking if last component is missing.
39467         * tests/test-canonicalize.c (main): Test this.
39468
39469         canonicalize, canonicalize-lgpl: honor // if distinct from /
39470         * modules/canonicalize (Files): Add double-slash-root.m4.
39471         * modules/canonicalize-lgpl (Files): Likewise.
39472         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39473         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39474         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39475         fallback definition.
39476         (canonicalize_filename_mode): Use it to protect //.
39477         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39478         (__realpath): Likewise.
39479         * tests/test-canonicalize.c (main): Test this.
39480         * tests/test-canonicalize-lgpl.c (main): Likewise.
39481         * modules/canonicalize-tests (Depends-on): Add same-inode.
39482         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39483
39484         canonicalize-lgpl: fix glibc bug with trailing slash
39485         * m4/canonicalize-lgpl.m4: Move contents...
39486         * m4/canonicalize.m4: ...here.
39487         (gl_CANONICALIZE_LGPL): Factor realpath check...
39488         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39489         glibc 2.3.5 bug, fixed 2005-04-27.
39490         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39491         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39492         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39493         * modules/canonicalize-lgpl (Files): Manage file rename.
39494         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39495         * modules/stdlib (Makefile.am): Substitute witness.
39496         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39497         is needed.
39498         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39499         replacement is required.
39500         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39501         * doc/glibc-functions/canonicalize_file_name.texi
39502         (canonicalize_file_name): Document this.
39503         * doc/posix-functions/realpath.texi (realpath): Likewise.
39504
39505         canonicalize-lgpl: reject non-directory with trailing slash
39506         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39507         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39508         catches failures in glibc 2.3.5.
39509         * tests/test-canonicalize.c (main): Likewise.
39510
39511         canonicalize-lgpl: use native realpath if it works
39512         * lib/canonicalize-lgpl.c (realpath): Guard with
39513         FUNC_REALPATH_WORKS.
39514         * lib/stdlib.in.h (realpath): Make declaration optional based on
39515         HAVE_REALPATH.
39516         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39517         native realpath works.
39518         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39519         * modules/stdlib (Makefile.am): Substitute witness.
39520
39521         canonicalize, canonicalize-lgpl: use <stdlib.h>
39522         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39523         (Include): Mention <stdlib.h>.
39524         (configure.ac): Mention functions we provide.
39525         * modules/canonicalize (configure.ac): Likewise.
39526         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39527         realpath if canonicalize_file_name is missing.
39528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39529         * modules/stdlib (Makefile.am): Substitute witnesses.
39530         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39531         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39532         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39533         * NEWS: Document this.
39534         * doc/glibc-functions/canonicalize_file_name.texi
39535         (canonicalize_file_name): Likewise.
39536         * doc/posix-functions/realpath.texi (realpath): Likewise.
39537         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39538
39539         test-canonicalize: consolidate into single C program
39540         * tests/test-canonicalize.sh: Delete; move setup into...
39541         * tests/test-canonicalize.c (main): ...the program, making it
39542         easier to run in debugger.  Add some tests.
39543         * modules/canonicalize-tests (Files): Remove unused file.
39544         (Depends-on): Add progname.
39545         (configure.ac, Makefile.am): Simplify.
39546
39547         test-canonicalize-lgpl: consolidate into single C program
39548         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39549         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39550         easier to run in debugger.  Add some tests.
39551         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39552         (configure.ac, Makefile.am): Simplify.
39553
39554         canonicalize: avoid resolvepath
39555         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39556         unnecessary checks.
39557         * lib/canonicalize.c (includes): Simplify.
39558         (canonicalize_file_name): Drop resolvepath implementation.
39559         * modules/canonicalize (Depends-on): Drop filenamecat.
39560
39561         canonicalize: don't lose errno
39562         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39563         over calls to free.
39564
39565         canonicalize: simplify errno handling
39566         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39567         assignment.
39568
39569         canonicalize, canonicalize-lgpl: update module dependencies
39570         * modules/canonicalize (Depends-on): Add extensions, lstat,
39571         pathmax, stdlib.
39572         (Files): Drop pathmax.h.
39573         (configure.ac): Adjust macro name.
39574         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39575         lstat, stdlib, sys_stat.
39576         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39577         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39578         extensions.
39579         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39580         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39581         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39582         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39583         declaration, if available.
39584         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39585         we can rely on the readlink module.
39586         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39587         (includes): Use <unistd.h> unconditionally.
39588
39589 2009-09-17  Eric Blake  <ebb9@byu.net>
39590
39591         maint: make Include sections of modules consistent
39592         * modules/alloca: Use only header name; no need to list #include.
39593         * modules/alloca-opt: Likewise.
39594         * modules/arpa_inet: Likewise.
39595         * modules/canon-host: Likewise.
39596         * modules/configmake: Likewise.
39597         * modules/dirent: Likewise.
39598         * modules/eealloc: Likewise.
39599         * modules/environ: Likewise.
39600         * modules/fchdir: Likewise.
39601         * modules/fcntl: Likewise.
39602         * modules/fcntl-h: Likewise.
39603         * modules/gethrxtime: Likewise.
39604         * modules/gettime: Likewise.
39605         * modules/ignore-value: Likewise.
39606         * modules/inet_ntop: Likewise.
39607         * modules/inet_pton: Likewise.
39608         * modules/inttypes: Likewise.
39609         * modules/isnand-nolibm: Likewise.
39610         * modules/isnanf-nolibm: Likewise.
39611         * modules/mbchar: Likewise.
39612         * modules/mbfile: Likewise.
39613         * modules/mbiter: Likewise.
39614         * modules/mbuiter: Likewise.
39615         * modules/netdb: Likewise.
39616         * modules/netinet_in: Likewise.
39617         * modules/nproc: Likewise.
39618         * modules/pagealign_alloc: Likewise.
39619         * modules/poll: Likewise.
39620         * modules/printf-frexp: Likewise.
39621         * modules/pthread: Likewise.
39622         * modules/putenv: Likewise.
39623         * modules/random_r: Likewise.
39624         * modules/relocatable-prog: Likewise.
39625         * modules/search: Likewise.
39626         * modules/select: Likewise.
39627         * modules/selinux-h: Likewise.
39628         * modules/settime: Likewise.
39629         * modules/signal: Likewise.
39630         * modules/size_max: Likewise.
39631         * modules/socklen: Likewise.
39632         * modules/ssize_t: Likewise.
39633         * modules/stdarg: Likewise.
39634         * modules/stdbool: Likewise.
39635         * modules/stddef: Likewise.
39636         * modules/stdint: Likewise.
39637         * modules/stdio: Likewise.
39638         * modules/stdlib: Likewise.
39639         * modules/string: Likewise.
39640         * modules/strings: Likewise.
39641         * modules/sys_file: Likewise.
39642         * modules/sys_ioctl: Likewise.
39643         * modules/sys_select: Likewise.
39644         * modules/sys_socket: Likewise.
39645         * modules/sys_stat: Likewise.
39646         * modules/sys_time: Likewise.
39647         * modules/sys_times: Likewise.
39648         * modules/sys_utsname: Likewise.
39649         * modules/sys_wait: Likewise.
39650         * modules/sysexits: Likewise.
39651         * modules/time: Likewise.
39652         * modules/times: Likewise.
39653         * modules/tmpfile: Likewise.
39654         * modules/trim: Likewise.
39655         * modules/unistd: Likewise.
39656         * modules/wchar: Likewise.
39657         * modules/wctype: Likewise.
39658
39659 2009-09-17  Bruno Haible  <bruno@clisp.org>
39660
39661         Make getdate.y compile on QNX and NetBSD 5 / i386.
39662         * m4/getdate.m4 (gl_GETDATE): Conditionally define
39663         TIME_T_FITS_IN_LONG_INT.
39664         * lib/getdate.y (long_time_t): New type.
39665         (relative_time): Change type of 'seconds' field to long_time_t.
39666         (get_date): Update types of local variables. Check against overflow
39667         during conversion from long_time_t to time_t.
39668         Reported by Matt Kraai <kraai@ftbfs.org>
39669         and Hasso Tepper <hasso@netbsd.org>.
39670
39671 2009-09-17  Bruno Haible  <bruno@clisp.org>
39672
39673         * modules/COPYING: Update copyright years.
39674         * modules/README: Likeiwse.
39675         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
39676         Reported by Ian Beckwith <ianb@erislabs.net>.
39677
39678 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39679
39680         * users.txt: Update references for gnuit package.
39681
39682 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39683
39684         * m4/getdelim.m4: Fix typo in copyright line.
39685
39686 2009-09-17  Bruno Haible  <bruno@clisp.org>
39687
39688         * lib/atoll.c: Use the standard header with GPL copyright.
39689         * lib/argz.in.h: Likewise.
39690         * lib/glob.c: Likewise.
39691         * lib/glob-libc.h: Likewise.
39692         * lib/random_r.c: Likewise.
39693         * lib/siglist.h: Likewise.
39694         * lib/strsignal.c: Likewise.
39695         Reported by Ian Beckwith <ianb@erislabs.net>.
39696
39697 2009-09-17  Eric Blake  <ebb9@byu.net>
39698
39699         rmdir: ensure correct dependency order
39700         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
39701
39702 2009-09-17  Bruno Haible  <bruno@clisp.org>
39703
39704         Disable assertion that fails on NetBSD 5 / i386.
39705         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
39706         Reported by Sam Steingold <sds@gnu.org>
39707         and Hasso Tepper <hasso@netbsd.org>.
39708
39709 2009-09-16  Eric Blake  <ebb9@byu.net>
39710
39711         unlinkdir: port to mingw
39712         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
39713         on which no one can unlink a directory.
39714
39715         stdlib: sort witness names
39716         * modules/stdlib (Makefile.am): Sort replacements.
39717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39718         * lib/stdlib.in.h: Likewise.
39719
39720         parse-duration-tests: avoid link failure
39721         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
39722         LIBINTL.
39723         Reported by Tom G. Christensen.
39724
39725         openat-tests: ensure unlinkat behaves like rmdir
39726         * tests/test-rmdir.c (main): Factor guts...
39727         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
39728         * modules/rmdir-tests (Files): Ship new file.
39729         * modules/openat-tests: New test.
39730         * tests/test-unlinkat.c: Likewise.
39731
39732         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
39733         * modules/rmdir-errno (Status, Notice): Now obsolete.
39734
39735         rmdir: work around cygwin 1.5.x and mingw bugs
39736         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
39737         * lib/rmdir.c (rmdir): Work around it.
39738         * modules/rmdir (Status, Notice): No longer obsolete.
39739         (Files): Add dos.m4.
39740         (Depends-on): Add unistd.
39741         (configure.ac): Set witnesses.
39742         (License): Relax to LGPLv2+.
39743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
39744         * modules/unistd (Makefile.am): Substitute witnesses.
39745         * lib/unistd.in.h (rmdir): Declare replacement.
39746         * doc/posix-functions/rmdir.texi (rmdir): Document this.
39747         * modules/rmdir-tests: New tests.
39748         * tests/test-rmdir.c: Likewise.
39749
39750 2009-09-15  Eric Blake  <ebb9@byu.net>
39751
39752         fchdir: improve use of replacement functions
39753         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
39754         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
39755         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
39756         REPLACE_CLOSEDIR.
39757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
39758         * modules/sys_stat (Makefile.am): Substitute correct witness.
39759         * modules/dirent (Makefile.am): Likewise.
39760         * modules/unistd (Makefile.am): Likewise.
39761         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
39762         * lib/unistd.in.h (dup): Likewise.
39763         * lib/sys_stat.in.h (fstat): Likewise.
39764
39765         maint: ignore gnulib-tool temp files
39766         * .gitignore: Ignore files created during gnulib-tool --test.
39767
39768 2009-09-13  Jim Meyering  <meyering@redhat.com>
39769
39770         posixtm: don't reject a time that specify "60" as the number of seconds
39771         * lib/posixtm.c (posixtime): The code to reject invalid dates
39772         would also reject a time specified with the .60 suffix.
39773         But POSIX allows that, in order to accommodate leap seconds.
39774         So don't reject it.
39775         (main): Adjust tests accordingly.
39776         * modules/posixtm (Depends-on): Add stpcpy.
39777
39778 2009-09-11  Jim Meyering  <meyering@redhat.com>
39779
39780         announce-gen: include [$release_type] in emitted Subject:
39781         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
39782         e.g., [stable] in the emitted Subject: line.
39783
39784 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39785
39786         Remove obsolete macros from several modules.
39787         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
39788         obsolete Autoconf macros with their modern counterparts.
39789         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
39790         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
39791         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
39792         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39793         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
39794         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39796         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39797         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39798         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
39799         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39800         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39801         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
39802         * m4/sockets.m4 (gl_SOCKETS): Likewise.
39803         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
39804         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
39805         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39806         * m4/time_r.m4 (gl_TIME_R): Likewise.
39807         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39808         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
39809         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39810
39811         Fix copyright header in build-aux scripts.
39812         * build-aux/git-version-gen: Fix copyright header to match GPLv3
39813         recommendation.
39814         * build-aux/ncftpput-ftp: Likewise.
39815         * build-aux/update-copyright: Likewise.
39816
39817 2009-09-09  Eric Blake  <ebb9@byu.net>
39818
39819         test-link: allow Linux choice of errno
39820         * tests/test-link.c (main): Relax test for alternate error.
39821
39822         strndup: fix improper m4 caching
39823         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
39824         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
39825         (gl_PREREQ_STRNDUP): Delete.
39826         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
39827         * modules/string (Makefile.am): Substitute it.
39828         * lib/string.in.h (strndup): Modernize prototype.
39829
39830         getcwd: port to mingw
39831         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
39832         different from the POSIX assumptions made throughout the getcwd
39833         module; fortunately, the mingw getcwd does not need replacement.
39834         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
39835         * modules/getcwd-tests: New test.
39836         * tests/test-getcwd.c: Likewise.
39837
39838         link: fix platform bugs
39839         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
39840         * lib/link.c (link): Work around them.  Fix related mingw bug.
39841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
39842         * modules/unistd (Makefile.am): Substitute it.
39843         * lib/unistd.in.h (link): Declare replacement.
39844         * doc/posix-functions/link.texi (link): Document this.
39845         * modules/link (Depends-on): Add strdup-posix, sys_stat.
39846
39847         test-link: consolidate into single C program, test more cases
39848         * tests/test-link.sh: Delete.
39849         * tests/test-link.c: Test more error conditions.  Exposes bugs on
39850         at least Cygwin and Solaris.
39851         * modules/link-tests (Files): Remove unused file.
39852         (Depends-on): Add errno, sys_stat.
39853         (Makefile.am): Simplify.
39854
39855 2009-09-08  Bruno Haible  <bruno@clisp.org>
39856
39857         Work around towlower, towupper bug on mingw.
39858         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
39859         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
39860         * doc/posix-functions/towlower.texi: Mention the mingw bug.
39861         * doc/posix-functions/towupper.texi: Likewise.
39862         Reported by Eric Blake.
39863
39864 2009-09-08  Jim Meyering  <meyering@redhat.com>
39865
39866         build: don't try to run autoheader if we don't use it
39867         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
39868         is not used in configure.ac.
39869
39870 2009-09-08  Eric Blake  <ebb9@byu.net>
39871
39872         euidaccess: fix compilation error
39873         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
39874
39875         rawmemchr: relax license
39876         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
39877         okay.
39878         Reported by Jim Meyering.
39879
39880         mkfifoat: new module
39881         * modules/mkfifoat: New file.
39882         * lib/mkfifoat.c: Likewise.
39883         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
39884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39885         * modules/sys_stat (Makefile.am): Use them.
39886         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
39887         * MODULES.html.sh (File system functions): Mention module.
39888         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39889         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39890         * modules/mkfifoat-tests: New test.
39891         * tests/test-mkfifoat.c: Likewise.
39892
39893         strchrnul: relax license
39894         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
39895         okay.
39896         Reported by Jim Meyering.
39897
39898 2009-09-08  Eric Blake  <ebb9@byu.net>
39899
39900         fstatat: fix compilation on Solaris
39901         * lib/fstatat.c (includes): Add fcntl.h.
39902         Reported by Pádraig Brady.
39903
39904 2009-09-07  Eric Blake  <ebb9@byu.net>
39905
39906         rename: modernize replacement
39907         * modules/rename (Depends-on): Add stdio.
39908         (configure.ac): Declare witness.
39909         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
39910         stdio take care of replacement.
39911         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39912         * modules/stdio (Makefile.am): Substitute them.
39913         * lib/stdio.in.h (rename): Declare replacement.
39914         * lib/rename.c (includes): Allow cross-compilation to non-windows
39915         machines.
39916         * doc/posix-functions/rename.texi (rename): Improve
39917         documentation.
39918
39919         stdio: sort witness names
39920         * modules/stdio (Makefile.am): Sort replacements.
39921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39922         * lib/stdio.in.h: Likewise.
39923
39924         getcwd: minor cleanups
39925         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
39926         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
39927
39928         openat: provide more convenience names
39929         * modules/faccessat (configure.ac): Add C witness.
39930         * lib/unistd.in.h (readlinkat): Fix typo.
39931         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
39932         convenience wrappers.
39933         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
39934         wrappers in syntax checks.
39935
39936 2009-09-06  Eric Blake  <ebb9@byu.net>
39937
39938         doc: fix comments in recent patches
39939         * lib/faccessat.c: Mention correct function.
39940         * lib/fchmodat.c: Likewise.
39941         * lib/fchownat.c: Likewise.
39942         * lib/symlinkat.c: Likewise.
39943         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
39944         constants.
39945
39946         faccessat, symlinkat: continue cleanup of previous patch
39947         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39948         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39949         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39951         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39952         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39953         set.
39954
39955 2009-09-06  Bruno Haible  <bruno@clisp.org>
39956
39957         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39958         (fstatat): Declare if GNULIB_FSTATAT is set.
39959         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39960         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39961         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39962         * modules/fcntl-h (Files): Remove m4/openat.m4.
39963         * modules/sys_stat (Files): Remove m4/openat.m4.
39964         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39965         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39966         * modules/unistd (Files): Remove m4/openat.m4.
39967         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39968         GNULIB_OPENAT.
39969         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39970         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39971         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39972         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39973         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39974         gl_OPENAT_DEFAULTS.
39975         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39976         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39977         Don't require gl_OPENAT_DEFAULTS.
39978         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39979         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39980         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39981         (gl_OPENAT_DEFAULTS): Remove macro.
39982
39983 2009-09-06  Bruno Haible  <bruno@clisp.org>
39984
39985         * modules/openat (configure.ac): Remove unneeded witness.
39986
39987 2009-09-06  Bruno Haible  <bruno@clisp.org>
39988
39989         Set errno to ENOSYS when a function is entirely unsupported.
39990         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39991         EOPNOTSUPP.
39992         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39993         * modules/chown (Depends-on): Remove errno.
39994
39995 2009-09-06  Bruno Haible  <bruno@clisp.org>
39996
39997         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39998
39999 2009-09-06  Bruno Haible  <bruno@clisp.org>
40000
40001         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40002
40003 2009-09-06  Ben Pfaff  <blp@gnu.org>
40004             Bruno Haible  <bruno@clisp.org>
40005
40006         Work around a glibc bug in strtok_r.
40007         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40008         Undefine if UNDEFINE_STRTOK_R is set.
40009         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40010         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40011         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40013         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40014         UNDEFINE_STRTOK_R.
40015         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40016
40017 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40018
40019         exclude: minor fix
40020         * lib/exclude.c: Include wctype.h
40021
40022 2009-09-06  Akim Demaille  <demaille@gostai.com>
40023
40024         bootstrap: improve error message
40025         * build-aux/bootstrap (find_tool): Upon failure, report the list
40026         of candidates.
40027         Honor the initial value of the envvar.
40028
40029 2009-09-05  Eric Blake  <ebb9@byu.net>
40030
40031         symlinkat: new module
40032         * modules/symlinkat: New file.
40033         * lib/symlinkat.c: Likewise.
40034         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40036         * modules/unistd (Makefile.am): Use them.
40037         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40038         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40039         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40040         * MODULES.html.sh (File system functions): Mention module.
40041         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40042         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40043         * modules/symlinkat-tests: New test.
40044         * tests/test-symlinkat.c: Likewise.
40045
40046         test-openat-safer: add more checks
40047         * tests/test-openat-safer.c (main): Check more code paths.
40048
40049 2009-09-05  Jim Meyering  <meyering@redhat.com>
40050
40051         syntax-check: detect unnecessary inclusion of openat.h
40052         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40053
40054 2009-09-05  Bruno Haible  <bruno@clisp.org>
40055
40056         Support towlower, towupper.
40057         * doc/posix-functions/towlower.texi: Mention module wctype.
40058         * doc/posix-functions/towupper.texi: Likewise.
40059         * lib/wctype.in.h (towlower, towupper): New functions.
40060         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40061         (ASSERT): New macro.
40062         (e): New variable.
40063         (main): Test also towlower, towupper. Test WEOF argument.
40064         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40065
40066 2009-09-05  Bruno Haible  <bruno@clisp.org>
40067
40068         Fix conversion behaviour when the input is invalid.
40069         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40070         mark occurring in first pass of indirect conversion.
40071         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40072         input.
40073         Found by clang's static analyzer.
40074
40075 2009-09-05  Bruno Haible  <bruno@clisp.org>
40076
40077         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40078         where direct conversion is possible.
40079
40080 2009-09-04  Eric Blake  <ebb9@byu.net>
40081
40082         openat: fail with ENOENT on empty name
40083         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40084         buffer.
40085
40086         link-follow: fix logic bug in prior patch
40087         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40088         reversed sense of yes and no in prior patch.  Avoid confusing
40089         compilation failure with desired semantics.
40090
40091         link-follow: accomodate mingw and cross-compilation
40092         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40093         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40094         cross-compilation results to -1, to make linkat easier to
40095         implement when cross-compiling.  Trivially support mingw.
40096         * modules/link-follow (configure.ac): Call new name.
40097         * NEWS: Mention this.
40098
40099 2009-09-03  Eric Blake  <ebb9@byu.net>
40100
40101         faccessat: compile replacement
40102         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40103         needed.
40104
40105         fts: fix compilation error
40106         * lib/fts.c (includes): Re-add "openat.h", for
40107         openat_needs_fchdir.
40108
40109         faccessat: new module
40110         * modules/faccessat: New file.
40111         * lib/faccessat.c: Likewise.
40112         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40114         * modules/unistd (Makefile.am): Use it.
40115         * lib/unistd.in.h (faccessat): Declare it.
40116         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40117         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40118         * MODULES.html.sh (File system functions): Mention it.
40119         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40120         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40121
40122         euidaccess: prefer POSIX over non-standard implementation
40123         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40124         * lib/euidaccess.c (euidaccess): Use it if available.
40125
40126         openat: make template easier to use
40127         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40128         AT_FUNC_F2 to be undefined.
40129         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40130         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40131         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40132         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40133         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40134         Likewise.
40135         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40136         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40137         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40138         Likewise.
40139
40140         openat: declare in POSIX headers
40141         * NEWS: Mention this.
40142         * modules/openat (configure.ac): Declare witnesses.
40143         (Depends-on): Add fcntl-h, sys_stat, unistd.
40144         (Include): Mention correct headers.
40145         * modules/fcntl-h (Depends-on): Add link-warning.
40146         (Files): Add openat.m4.
40147         (Makefile.am): Substitute witnesses.
40148         * modules/sys_stat (Files, Makefile.am): Likewise.
40149         * modules/unistd (Files, Makefile.am): Likewise.
40150         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40151         (gl_OPENAT_DEFAULTS): New macro.
40152         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40154         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40155         (SYS_STAT_H): Remove unused variable.
40156         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40157         * lib/fcntl--.h (includes): Remove unneeded header.
40158         * lib/openat-safer.c (includes): Likewise.
40159         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40160         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40161         appropriate headers.
40162         (__OPENAT_PREFIX): Delete.
40163         * lib/fcntl.in.h (openat): Provide declaration.
40164         (AT_FDCWD): Fix Solaris bug.
40165         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40166         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40167         * lib/fchmodat.c (includes):  Adjust to find declaration.
40168         * lib/fchownat.c (includes): Likewise.
40169         * lib/mkdirat.c (includes): Likewise.
40170         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40171         still visible.
40172
40173 2009-09-02  Eric Blake  <ebb9@byu.net>
40174
40175         errno: use consistently
40176         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40177         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40178         * lib/canonicalize.c (ELOOP): Likewise.
40179         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40180         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40181         * lib/lchown.c (EOPNOTSUPP): Likewise.
40182         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40183         * lib/savewd.c (ESTALE): Likewise.
40184         * lib/settime.c (ENOSYS): Likewise.
40185         * lib/utimens.c (ENOSYS): Likewise.
40186         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40187         * lib/chdir-safer.c (ELOOP): Likewise.
40188         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40189         * modules/c-stack (Depends-on): Add errno.
40190         * modules/canonicalize (Depends-on): Likewise.
40191         * modules/chdir-safer (Depends-on): Likewise.
40192         * modules/fdopendir (Depends-on): Likewise.
40193         * modules/inet_ntop (Depends-on): Likewise.
40194         * modules/inet_pton (Depends-on): Likewise.
40195         * modules/lchown (Depends-on): Likewise.
40196         * modules/openat (Depends-on): Likewise.
40197         * modules/savewd (Depends-on): Likewise.
40198         * modules/settime (Depends-on): Likewise.
40199         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40200
40201         fts: avoid leaking fds
40202         * modules/fts (Depends-on): Add cloexec.
40203         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40204         flag.
40205
40206         fts: make directory fds more robust
40207         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40208         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40209
40210         backupfile, chdir-long, fts, savedir: make safer
40211         * lib/backupfile.c (includes): Use "dirent--.h", since
40212         numbered_backup can write to stderr during readdir.
40213         * lib/savedir.c (includes): Likewise.
40214         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40215         emulation can write to stderr on failure.
40216         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40217         * lib/getcwd.c: Document why opendir_safer is unused.
40218         * lib/glob.c: Likewise.
40219         * lib/scandir.c: Likewise.
40220         * lib/openat-proc.c: Likewise, for open_safer.
40221         * modules/backupfile (Depends-on): Add dirent-safer.
40222         * modules/savedir (Depends-on): Likewise.
40223         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40224         * modules/chdir-long (Depends-on): Add openat-safer.
40225
40226         openat-safer: new module
40227         * modules/openat-safer: New file.
40228         * lib/openat-safer.c: Likewise.
40229         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40230         * lib/fcntl-safer.h (openat_safer): Declare.
40231         * lib/fcntl--.h (openat): Override.
40232         * MODULES.html.sh (File descriptor based I/O): Mention it.
40233         * lib/openat.h: Add double-inclusion guards.
40234         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40235         "fcntl--.h", so we can implement openat.
40236         * modules/openat-safer-tests: New test.
40237         * tests/test-openat-safer.c: New file.
40238
40239         dirent-safer: new module
40240         * modules/dirent-safer: New file.
40241         * lib/dirent--.h: Likewise.
40242         * lib/dirent-safer.h: Likewise.
40243         * lib/opendir-safer.c: Likewise.
40244         * m4/dirent-safer.m4: Likewise.
40245         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40246         * modules/dirent-safer-tests: New test.
40247         * tests/test-dirent-safer.c: New file.
40248         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40249
40250         fdopendir: optimize on mingw
40251         * lib/unistd.in.h (_gl_directory_name): New prototype.
40252         * lib/fchdir.c (_gl_directory_name): Implement it.
40253         (fchdir): Use it to simplify implementation.
40254         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40255         fchdir, when available, to avoid calling [f]chdir().
40256
40257         fdopendir: split into its own module
40258         * lib/openat.c (fdopendir): Move...
40259         * lib/fdopendir.c: ...into new file.
40260         * modules/fdopendir: New module.
40261         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40262         * modules/openat (Depends-on): Add fdopendir.
40263         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40264         fdopendir here.
40265         * modules/savedir (Depends-on): Only need fdopendir, not full
40266         openat.
40267         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40268         * lib/openat.h (fdopendir): Drop prototype.
40269         * lib/dirent.in.h (fdopendir): Provide prototype.
40270         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40271         * modules/dirent (Makefile.am): Substitute them.
40272         * MODULES.html.sh (File system functions): Mention it.
40273         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40274         * modules/fdopendir-tests: New file.
40275         * tests/test-fdopendir.c: Likewise.
40276
40277         fchdir: use more consistent macro convention
40278         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40279         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40280         REPLACE_FCHDIR, rather than relying on config.h macros.
40281         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40282         inside a single make-time REPLACE_FCHDIR block, rather than using
40283         the config.h FCHDIR_REPLACEMENT.
40284         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40285         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40286         Manage fstat replacement.
40287         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40288         REPLACE_FCHDIR.
40289         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40290         (Makefile.am): Substitute REPLACE_FCHDIR.
40291         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40292         FCHDIR_REPLACEMENT.
40293         * lib/dup-safer.c (dup_safer): Likewise.
40294         * lib/dup2.c (rpl_dup2): Likewise.
40295         * lib/dup3.c (rpl_dup3): Likewise.
40296         * lib/open.c (rpl_open): Likewise.
40297
40298         fchdir: simplify error handling, and support dup3
40299         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40300         stdbool, malloc-posix, realloc-posix.
40301         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40302         (ensure_dirs_slot): Return false on allocation failure.
40303         (rpl_dup2): Delete.
40304         (_gl_register_dup): New function.
40305         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40306         (_gl_register_fd): Close fd on allocation failure.
40307         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40308         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40309         prototype.
40310         (rpl_dup2_fchdir): Delete prototype.
40311         * lib/open.c (open): Update caller.
40312         * lib/dup2.c (dup2): Track fchdir metadata.
40313         * lib/dup3.c (dup3): Likewise.
40314         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40315         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40316
40317 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40318
40319         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40320         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40321         don't pass arguments to AC_OUTPUT.
40322
40323 2009-09-02  Bruno Haible  <bruno@clisp.org>
40324
40325         * modules/mkdtemp (License): Relicense under LGPLv2+.
40326         Reported by Paolo Bonzini.
40327
40328 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40329
40330         Replace uses of obsolete autoconf macros in Jim's modules.
40331         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40332         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40333         can evoke a warning from autoconf when run with -Wobsolete
40334         enabled.  They were declared obsolete for good reasons (see
40335         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40336         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40337         should not continue using the deprecated macros.
40338         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40339         obsolete Autoconf macros with modern counterparts.
40340         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40341         * m4/dos.m4 (gl_AC_DOS): Likewise.
40342         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40343         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40344         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40345         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40346         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40347         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40348         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40349         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40350         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40351         Likewise.
40352         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40353         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40354         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40355         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40356         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40357         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40358
40359 2009-09-01  Eric Blake  <ebb9@byu.net>
40360
40361         fchdir: fix off-by-one bug in previous patch
40362         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40363         (_gl_unregister_fd): Delete useless if.
40364
40365 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40366
40367         maint.mk: sort the list of syntax-check rules
40368         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40369         easier to get a sense of progress when the rules are run sequentially
40370         and take a long time.
40371
40372 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40373
40374         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40375         * modules/netinet_in: Likewise.
40376         * modules/sys_file: Likewise.
40377         * modules/sys_ioctl: Likewise.
40378         * modules/sys_select: Likewise.
40379         * modules/sys_socket: Likewise.
40380         * modules/sys_stat: Likewise.
40381         * modules/sys_time: Likewise.
40382         * modules/sys_times: Likewise.
40383         * modules/sys_utsname: Likewise.
40384         * modules/sys_wait: Likewise.
40385
40386 2009-09-01  Jim Meyering  <meyering@redhat.com>
40387
40388         fts: help ensure that return values are not ignored
40389         * lib/fts_.h (__GNUC_PREREQ): Define.
40390         (__attribute_warn_unused_result__): Define.
40391         (fts_children, fts_close, fts_open, fts_read): Declare with
40392         __attribute_warn_unused_result__.
40393
40394         fts: fts_close now fails also when closing a dir file descriptor fails
40395         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40396         and propagate to caller, along with errno.
40397
40398         announce-gen: correct formatting in --help output
40399         * build-aux/announce-gen (usage): Move the one-line description in
40400         --help output "up", to where it belongs, just after Usage:.
40401
40402 2009-08-31  Eric Blake  <ebb9@byu.net>
40403
40404         fchdir: port to mingw
40405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40406         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40407         opened, then use a substitute.
40408         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40409         replacement.
40410         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40411         (_gl_register_fd): No need to check stat if open already filters
40412         all directories.
40413         (fchdir): Fix error condition to match POSIX.
40414         * modules/fchdir (Depends-on): Add sys_stat.
40415         * doc/posix-functions/open.texi (open): Document the limitation.
40416         * modules/fchdir-tests: New file.
40417         * tests/test-fchdir.c: Likewise.
40418
40419         canonicalize: allow cross-testing from cygwin to mingw
40420         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40421         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40422         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40423         Likewise.
40424         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40425         target does not support symlinks.
40426         * tests/test-canonicalize-lgpl.sh: Likewise.
40427
40428         chown: avoid compilation warning on mingw
40429         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40430         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40431         mingw.
40432         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40433         * modules/chown (Depends-on): Add errno.
40434
40435 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40436
40437         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40438         command.
40439
40440 2009-08-31  Jim Meyering  <meyering@redhat.com>
40441
40442         canonicalize: remove useless initialization
40443         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40444         initialization of local, "end".
40445
40446 2009-08-30  Bruno Haible  <bruno@clisp.org>
40447
40448         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40449         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40450         ENOSYS.
40451
40452 2009-08-30  Bruno Haible  <bruno@clisp.org>
40453
40454         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40455         /usr/xpg4/bin/tr when it exists.
40456         * tests/test-pipe-filter-gi1.sh: Likewise.
40457
40458 2009-08-30  Bruno Haible  <bruno@clisp.org>
40459
40460         Work around deficient /usr/bin/id program on Solaris.
40461         * tests/test-file-has-acl.sh (ID): New variable.
40462         * tests/test-set-mode-acl.sh (ID): Likewise.
40463         * tests/test-copy-acl.sh (ID): Likewise.
40464         * tests/test-copy-file.sh (ID): Likewise.
40465
40466 2009-08-30  Bruno Haible  <bruno@clisp.org>
40467
40468         New module 'xstriconveh'.
40469         * lib/xstriconveh.h: New file.
40470         * lib/xstriconveh.c: New file.
40471         * modules/xstriconveh: New file.
40472
40473 2009-08-30  Bruno Haible  <bruno@clisp.org>
40474
40475         Make it easier to use mem_cd_iconveh.
40476         * lib/striconveh.h (iconveh_t): New type.
40477         (iconveh_open, iconveh_close): New declarations.
40478         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40479         with a single 'const iconveh_t *' argument.
40480         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40481         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40482         with a single 'const iconveh_t *' argument.
40483         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40484         * tests/test-striconveh.c (main): Update.
40485         * NEWS: Mention the change.
40486
40487 2009-08-30  Bruno Haible  <bruno@clisp.org>
40488
40489         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40490         problem.
40491
40492 2009-08-30  Bruno Haible  <bruno@clisp.org>
40493
40494         Work around iconv_open problem on Solaris.
40495         * lib/iconv_open-solaris.gperf: New file.
40496         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40497         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40498         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40499         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40500         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40501         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40502
40503 2009-08-29  Jim Meyering  <meyering@redhat.com>
40504
40505         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40506         * top/maint.mk (cvs-check): Remove target; it was just an alias
40507         to the better-named vc-diff-check.
40508         (maintainer-distcheck): Remove rule.  It was used only from
40509         the (alpha/beta/major) target, and all of its commands but one
40510         were coreutils-specific.
40511         (vc-dist): Remove rule.
40512         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40513         Run vc-diff-check, not vc-dist.
40514         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40515
40516 2009-08-27  Bruno Haible  <bruno@clisp.org>
40517
40518         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40519         of 0.
40520
40521 2009-08-27  Bruno Haible  <bruno@clisp.org>
40522
40523         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40524         compilers.
40525         * doc/func.texi: Document the SunPRO C bug.
40526
40527 2009-08-27  Bruno Haible  <bruno@clisp.org>
40528
40529         Fix link error on Solaris.
40530         * tests/test-parse-duration.c (xstrdup): Remove function.
40531
40532 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40533
40534         ignore-value: handle pointer types, too
40535         * lib/ignore-value.h (__attribute__): Remove definition.
40536         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40537         of a more concise and more-often effective "(void) i" statement.
40538         (ignore_ptr): New function to suppress warnings from functions that
40539         return pointers, and to make it explicit that one function doesn't
40540         handle all cases.
40541
40542 2009-08-25  Bruno Haible  <bruno@clisp.org>
40543
40544         dup2: work around a Linux bug.
40545         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40546         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40547         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40548         Reported by Simon Josefsson.
40549
40550 2009-08-25  Jim Meyering  <meyering@redhat.com>
40551
40552         libguestfs uses gnulib
40553         * users.txt: Add libguestfs.
40554
40555 2009-08-24  Eric Blake  <ebb9@byu.net>
40556
40557         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40558         * lib/pipe2.c (includes): Add binary-io.h.
40559         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40560
40561 2009-08-24  Bruno Haible  <bruno@clisp.org>
40562
40563         Tolerate declared but missing accept4 syscall.
40564         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40565         available.
40566         * lib/sys_socket.in.h (accept4): If the function is already present,
40567         override it.
40568         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40569         * modules/accept4 (Makefile.am): Compile accept4.c always.
40570         Reported by Paolo Bonzini and Eric Blake.
40571
40572 2009-08-23  Bruno Haible  <bruno@clisp.org>
40573
40574         New module 'accept4'.
40575         * lib/sys_socket.in.h (accept4): New declaration.
40576         * lib/accept4.c: New file.
40577         * m4/accept4.m4: New file.
40578         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40579         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40580         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40581         HAVE_ACCEPT4.
40582         * modules/accept4: New file.
40583         * doc/glibc-functions/accept4.texi: Mention the new module.
40584
40585 2009-08-24  Jim Meyering  <meyering@redhat.com>
40586
40587         progname: also set global program_invocation_name, when possible
40588         Before this change, a libtool-enabled program that calls glibc's
40589         error function would report the program name as
40590         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40591         * modules/progname (configure.ac): Check for a declaration of
40592         program_invocation_name.
40593         * lib/progname.c:  Include <errno.h>.
40594         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40595         Set program_invocation_name.
40596
40597 2009-08-23  Bruno Haible  <bruno@clisp.org>
40598
40599         * lib/dup3.c: Include <string.h>.
40600
40601 2009-08-23  Bruno Haible  <bruno@clisp.org>
40602
40603         * lib/dup3.c (dup3): Test only once whether the system actually exists.
40604         * lib/pipe2.c (pipe2): Likewise.
40605         Suggested by Eric Blake.
40606
40607 2009-08-23  Bruno Haible  <bruno@clisp.org>
40608
40609         Tolerate declared but missing dup3 syscall.
40610         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
40611         * lib/unistd.in.h (dup3): If the function is already present,
40612         override it.
40613         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
40614         * modules/dup3 (Makefile.am): Compile dup3.c always.
40615         Reported by Paolo Bonzini.
40616
40617 2009-08-23  Bruno Haible  <bruno@clisp.org>
40618
40619         Tolerate declared but missing pipe2 syscall.
40620         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
40621         available.
40622         * lib/unistd.in.h (pipe2): If the function is already present,
40623         override it.
40624         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
40625         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
40626         Reported by Paolo Bonzini.
40627
40628 2009-08-23  Bruno Haible  <bruno@clisp.org>
40629
40630         * lib/pipe2.c (pipe2): Move #ifs inside function.
40631
40632 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40633
40634         quotearg: document limitations of quote_these_too
40635         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
40636         those limitations are created.
40637         * lib/quotearg.h (set_char_quoting): Document that digits and
40638         letters that are special after backslash are not permitted.
40639         (quotearg_char): Cross-reference set_char_quoting documentation.
40640
40641 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
40642
40643         quotearg: implement custom_quoting_style
40644         * lib/quotearg.c: (struct quoting_options): Add left_quote and
40645         right_quote fields.
40646         (set_custom_quoting): New public function.
40647         (quotearg_buffer_restyled): Add left_quote and right_quote
40648         arguments, handle them very much like locale quoting, and update
40649         all uses.
40650         (quotearg_n_custom): New public function.
40651         (quotearg_n_custom_mem): New public function.
40652         (quotearg_custom): New public function.
40653         (quotearg_custom_mem): New public function.
40654         * lib/quotearg.h: Prototype and document new public functions.
40655         (enum quoting_style): For escape_quoting_style and
40656         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
40657         ignored even though they're otherwise like c_quoting_style.
40658         Add custom_quoting_style member and document with comparison to
40659         clocale_quoting_style.
40660         * tests/test-quotearg.c (custom_quotes): New array.
40661         (custom_results): New array.
40662         (main): Extend to test custom quoting.
40663
40664 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40665
40666         quotearg: fix right quote escaping when it's in quote_these_too
40667         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
40668         quote, be sure to prepend only one backslash.
40669         * tests/test-quotearg.c (use_quote_double_quotes): New function.
40670         (main): Test it.
40671
40672 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40673
40674         quotearg-tests: test escaping of embedded locale quotes
40675         * tests/test-quotearg.c (struct result_strings): Add member for
40676         new input.
40677         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
40678         (inputs): Add new input.
40679         (results_g): Add expected results.
40680         (flag_results): Likewise.
40681         (locale_results): Likewise.
40682         (compare_strings): Check those.
40683
40684 2009-08-23  Bruno Haible  <bruno@clisp.org>
40685
40686         Tests for module 'dup3'.
40687         * modules/dup3-tests: New file.
40688         * tests/test-dup3.c: New file.
40689
40690         New module 'dup3'.
40691         * lib/unistd.in.h (dup3): New declaration.
40692         * lib/dup3.c: New file.
40693         * m4/dup3.m4: New file.
40694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
40695         HAVE_DUP3.
40696         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
40697         * modules/dup3: New file.
40698         * doc/glibc-functions/dup3.texi: Mention the new module.
40699
40700 2009-08-23  Bruno Haible  <bruno@clisp.org>
40701
40702         Tweak the dup2 test.
40703         * tests/test-dup2.c (main): Create the test file empty. Verify that an
40704         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
40705         the test file is still empty. Fix argument order of lseek.
40706
40707 2009-08-23  Bruno Haible  <bruno@clisp.org>
40708
40709         Avoid test link errors when the modules getopt-gnu, gettext are used.
40710         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
40711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40712
40713 2009-08-23  Bruno Haible  <bruno@clisp.org>
40714
40715         Fix getdtablesize() on mingw.
40716         * lib/getdtablesize.c (getdtablesize): Implement differently.
40717         * lib/unistd.in.h (getdtablesize): Improve comment.
40718
40719 2009-08-23  Bruno Haible  <bruno@clisp.org>
40720
40721         New module 'mkostemp'.
40722         Based on Ulrich Drepper's 2007-08-10 change in glibc.
40723         * lib/stdlib.in.h (mksotemp): New declaration.
40724         * lib/mkostemp.c: New file, from glibc with modifications.
40725         * lib/tempname.h (GT_FILE): Remove outdated comment.
40726         (gen_tempname): Add flags argument.
40727         * lib/tempname.c (__GT_BIGFILE): Remove macro.
40728         (__GT_FILE): Map to 1.
40729         (small_open, large_open): Remove macros.
40730         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
40731         * lib/mkstemp.c (mkstemp): Update.
40732         * lib/mkdtemp.c (mkdtemp): Likewise.
40733         * m4/mkostemp.m4: New file.
40734         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
40735         HAVE_MKOSTEMP.
40736         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
40737         HAVE_MKOSTEMP.
40738         * modules/mkostemp: New file, based on modules/mkstemp.
40739         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40740         * NEWS: Mention the change.
40741
40742 2009-08-23  Bruno Haible  <bruno@clisp.org>
40743
40744         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
40745         Reported by Eric Blake.
40746
40747 2009-08-23  Bruno Haible  <bruno@clisp.org>
40748
40749         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
40750         Reported by Eric Blake.
40751
40752 2009-08-23  Bruno Haible  <bruno@clisp.org>
40753
40754         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
40755         * modules/pipe2 (Depends-on): Likewise.
40756
40757 2009-08-23  Eric Blake  <ebb9@byu.net>
40758
40759         fcntl-h: add O_TTY_INIT support
40760         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
40761         * tests/test-fcntl-h.c (o): Test it.
40762         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40763
40764         fcntl-h: rename from fcntl, in preparation for fcntl(2)
40765         * modules/fcntl: Move <fcntl.h> header replacement...
40766         * modules/fcntl-h: ...to new name, so as not to collide with
40767         like-named function.
40768         * tests/test-fcntl.c: Rename...
40769         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
40770         * modules/fcntl-tests: Rename...
40771         * modules/fcntl-h-tests: ...to this.  Update test file name.
40772         * modules/chdir-long (Depends-on): Update clients.
40773         * modules/chdir-safer (Depends-on): Likewise.
40774         * modules/fcntl-safer (Depends-on): Likewise.
40775         * modules/fts (Depends-on): Likewise.
40776         * modules/mkancesdirs (Depends-on): Likewise.
40777         * modules/mkdir-p (Depends-on): Likewise.
40778         * modules/open (Depends-on): Likewise.
40779         * modules/savewd (Depends-on): Likewise.
40780         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
40781         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40782
40783 2009-08-22  Bruno Haible  <bruno@clisp.org>
40784
40785         * modules/binary-io (License): Relicense under LGPL.
40786         * modules/pipe2 (License): Likewise.
40787
40788 2009-08-22  Bruno Haible  <bruno@clisp.org>
40789
40790         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
40791         return value.
40792         * lib/pipe-filter-gi.c (filter_init): Likewise.
40793         Reported by Eric Blake.
40794
40795 2009-08-22  Bruno Haible  <bruno@clisp.org>
40796
40797         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
40798         * modules/pipe (Depends-on): Add pipe2.
40799
40800 2009-08-22  Bruno Haible  <bruno@clisp.org>
40801
40802         Tests for module 'pipe2'.
40803         * modules/pipe2-tests: New file.
40804         * tests/test-pipe2.c: New file.
40805
40806         New module 'pipe2'.
40807         * lib/unistd.in.h (pipe2): New declaration.
40808         * lib/pipe2.c: New file.
40809         * m4/pipe2.m4: New file.
40810         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
40811         HAVE_PIPE2.
40812         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
40813         * modules/pipe2: New file.
40814         * doc/glibc-functions/pipe2.texi: Mention the new module.
40815
40816 2009-08-22  Bruno Haible  <bruno@clisp.org>
40817
40818         Reference some new glibc functions.
40819         * doc/glibc-functions/accept4.texi: New file.
40820         * doc/glibc-functions/dup3.texi: New file.
40821         * doc/glibc-functions/mkostemp.texi: New file.
40822         * doc/glibc-functions/pipe2.texi: New file.
40823         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
40824         (Glibc sys/socket.h): Refer to accept4.
40825         (Glibc unistd.h): Refer to dup3, pipe2.
40826         Reported by Eric Blake.
40827
40828 2009-08-22  Jim Meyering  <meyering@redhat.com>
40829             Bruno Haible  <bruno@clisp.org>
40830
40831         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
40832         This makes it so packages using automake-1.11's silent-rules option
40833         can print e.g., a single "GEN    configmake.h" line, rather than
40834         the 30+ statements that perform the job.  If you want to see the
40835         actual commands, you can still run "make V=1".
40836         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
40837         so that make output is abbreviated when those variables are defined
40838         appropriately.
40839         * modules/argz: Likewise.
40840         * modules/arpa_inet: Likewise.
40841         * modules/byteswap: Likewise.
40842         * modules/configmake: Likewise.
40843         * modules/dirent: Likewise.
40844         * modules/errno: Likewise.
40845         * modules/fcntl: Likewise.
40846         * modules/float: Likewise.
40847         * modules/fnmatch: Likewise.
40848         * modules/getopt-posix: Likewise.
40849         * modules/glob: Likewise.
40850         * modules/iconv_open: Likewise.
40851         * modules/inttypes: Likewise.
40852         * modules/localcharset: Likewise.
40853         * modules/locale: Likewise.
40854         * modules/math: Likewise.
40855         * modules/netdb: Likewise.
40856         * modules/netinet_in: Likewise.
40857         * modules/poll: Likewise.
40858         * modules/posix_spawnp-tests: Likewise.
40859         * modules/sched: Likewise.
40860         * modules/search: Likewise.
40861         * modules/selinux-h: Likewise.
40862         * modules/signal: Likewise.
40863         * modules/spawn: Likewise.
40864         * modules/stdarg: Likewise.
40865         * modules/stdbool: Likewise.
40866         * modules/stddef: Likewise.
40867         * modules/stdint: Likewise.
40868         * modules/stdio: Likewise.
40869         * modules/stdlib: Likewise.
40870         * modules/string: Likewise.
40871         * modules/strings: Likewise.
40872         * modules/sys_file: Likewise.
40873         * modules/sys_ioctl: Likewise.
40874         * modules/sys_select: Likewise.
40875         * modules/sys_socket: Likewise.
40876         * modules/sys_stat: Likewise.
40877         * modules/sys_time: Likewise.
40878         * modules/sys_times: Likewise.
40879         * modules/sys_utsname: Likewise.
40880         * modules/sys_wait: Likewise.
40881         * modules/sysexits: Likewise.
40882         * modules/time: Likewise.
40883         * modules/unistd: Likewise.
40884         * modules/wchar: Likewise.
40885         * modules/wctype: Likewise.
40886
40887 2009-08-22  Jim Meyering  <meyering@redhat.com>
40888
40889         announce-gen: detect write failure
40890         * build-aux/announce-gen: Add Coda at end.
40891         Remove equivalent-but-more-verbose block at top.
40892
40893 2009-08-19  Akim Demaille  <demaille@gostai.com>
40894
40895         bootstrap: --help to stdout.
40896         * bootstrap (usage): Don't send --help to stderr.
40897         Use a here doc instead of a long string.
40898
40899 2009-08-21  Eric Blake  <ebb9@byu.net>
40900
40901         test-popen-safer: split from test-popen
40902         * tests/test-popen.c (main): Move...
40903         * tests/test-popen.h: ...into new file.
40904         * tests/test-popen-safer2.c: New file.
40905         * modules/popen-tests (Files): Add test-popen.h.
40906         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
40907         Suggested by Bruno Haible.
40908
40909         test-fcntl-safer: split from test-open
40910         * tests/test-open.c (main): Move...
40911         * tests/test-open.h: ...into new file.
40912         * tests/test-fcntl-safer.c: New file.
40913         * modules/open-tests (Files): Add test-open.h.
40914         * modules/fcntl-safer-tests: New file.
40915         Suggested by Bruno Haible.
40916
40917         test-fopen-safer: split from test-fopen
40918         * tests/test-fopen.c (main): Move...
40919         * tests/test-fopen.h: ...into new file.
40920         * tests/test-fopen-safer.c: New file.
40921         * modules/fopen-tests (Files): Add test-fopen.h.
40922         * modules/fopen-safer-tests: New file.
40923         Suggested by Bruno Haible.
40924
40925 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40926
40927         popen-safer: test O_CLOEXEC at run-time.
40928         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
40929
40930 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40931
40932         fcntl: move more flags to the header
40933         * lib/cloexec.c: Do not define FD_CLOEXEC here.
40934         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
40935         * lib/fcntl.in.h: Do both things here.
40936
40937 2009-08-21  Jim Meyering  <meyering@redhat.com>
40938
40939         consistently remove $@-t before redirecting to it
40940         * modules/argz: Remove $@-t and $@ before redirecting to the former.
40941         * modules/alloca-opt: Likewise.
40942         * modules/byteswap: Likewise.
40943         * modules/fnmatch: Likewise.
40944         * modules/getopt-posix: Likewise.
40945         * modules/glob: Likewise.
40946         * modules/poll: Likewise.
40947         * modules/posix_spawnp-tests: Likewise.
40948         * modules/sys_socket: Likewise.
40949         * modules/sysexits: Likewise.
40950
40951 2009-08-21  Eric Blake  <ebb9@byu.net>
40952
40953         popen: simplify access to original popen
40954         * lib/popen.c (rpl_popen): No need to worry about popen being a
40955         macro.
40956         Reported by Bruno Haible.
40957
40958 2009-08-20  Eric Blake  <ebb9@byu.net>
40959
40960         build: avoid some compiler warnings
40961         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40962         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40963         type.
40964         (new_exclude_segment, excluded_file_pattern_p)
40965         (excluded_file_name_p): Reduce scope.
40966         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40967         old-style declaration.
40968
40969 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40970
40971         * tests/test-exclude1.sh: Handle Windows EOL.
40972         * tests/test-exclude2.sh: Likewise.
40973         * tests/test-exclude3.sh: Likewise.
40974         * tests/test-exclude4.sh: Likewise.
40975         * tests/test-exclude5.sh: Likewise.
40976         * tests/test-exclude6.sh: Likewise.
40977         * tests/test-exclude7.sh: Likewise.
40978
40979 2009-08-19  Akim Demaille  <demaille@gostai.com>
40980
40981         bootstrap: find sha1sum when named gsha1sum.
40982         * bootstrap (find_tool): New.
40983         ($SHA1SUM): New.
40984         Use it.
40985
40986 2009-08-20  Jim Meyering  <meyering@redhat.com>
40987
40988         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40989         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40990         expression that converts "." in a file name to "\." in the resulting
40991         regexp.  Start with a dummy statement, so that prior shell variable
40992         definitions are expanded portably.  Reported by Simon Josefsson.
40993
40994 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40995
40996         Fix polling for writeability of a screen buffer.
40997         * lib/poll.c: Distinguish input and screen buffers for the
40998         Win32 implementation.
40999         * lib/select.c: Likewise.
41000
41001 2009-08-19  Eric Blake  <ebb9@byu.net>
41002
41003         popen-safer: prevent popen from clobbering std descriptors
41004         * modules/popen-safer: New file.
41005         * lib/popen-safer.c: Likewise.
41006         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41007         * lib/stdio--.h (popen): Provide override.
41008         * lib/stdio-safer.h (popen_safer): Provide declaration.
41009         * tests/test-popen.c (includes): Partially test this.
41010         * modules/popen-safer-tests: New file, for more tests.
41011         * tests/test-popen-safer.c: Likewise.
41012         * MODULES.html.sh (file stream based Input/Output): Mention it.
41013
41014         tests: test some of the *-safer modules
41015         * modules/fopen-safer (Depends-on): Add fopen.
41016         * modules/fcntl-safer (Depends-on): Add fcntl.
41017         * modules/stdlib-safer (Depends-on): Add stdlib.
41018         (configure.ac): Set indicator.
41019         * modules/unistd-safer (configure.ac): Likewise.
41020         * modules/tmpfile-safer (configure.ac): Likewise.
41021         (Depends-on): Add tmpfile.
41022         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41023         active.
41024         * tests/test-fopen.c (includes): Test safer versions when they are
41025         in use.
41026         * tests/test-open.c (includes): Likewise.
41027
41028         popen: fix cygwin 1.5 bug when stdin closed
41029         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41030         * modules/popen: New file.
41031         * modules/popen-tests: Likewise.
41032         * tests/test-popen.c: Likewise.
41033         * m4/popen.m4: Likewise.
41034         * lib/popen.c: Likewise.
41035         * lib/stdio.in.h (popen): New declaration.
41036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41037         * modules/stdio (Makefile.am): Likewise.
41038         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41039
41040 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41041
41042         maint.mk: give full control over update-copyright exclusions
41043         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41044         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41045         (update-copyright): Don't force inclusion of top-level
41046         ChangeLog.  Don't force exclusion of all COPYING files, but make
41047         them the default exclusion instead.
41048
41049 2009-08-16  Bruno Haible  <bruno@clisp.org>
41050
41051         Fix test failures on Solaris 10.
41052         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41053         tests when Solaris iconv() is used.
41054         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41055         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41056         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41057         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41058         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41059
41060 2009-08-16  Bruno Haible  <bruno@clisp.org>
41061
41062         Fix test failures on Solaris 10.
41063         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41064         'tr' program and pass it as first argument.
41065         * tests/test-pipe-filter-gi1.sh: Likewise.
41066         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41067         program as first argument.
41068         * tests/test-pipe-filter-gi1.c (main): Likewise.
41069
41070 2009-08-16  Eric Blake  <ebb9@byu.net>
41071
41072         fpurge: fix previous commits
41073         * modules/fpurge (Makefile.am): Make replacement conditional,
41074         partially reverting 2007-04-29 change; missed in previous
41075         attempt.
41076         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41077         is missing.
41078
41079 2009-08-16  Bruno Haible  <bruno@clisp.org>
41080
41081         Clarify fpurge's effect on the file position.
41082         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41083         * tests/test-fpurge.c (main): Make a second pass for checking the file
41084         position.
41085
41086 2009-08-16  Bruno Haible  <bruno@clisp.org>
41087
41088         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41089         declaration of fpurge is missing.
41090         * tests/test-fpurge.c (main): Check that the file has not more contents
41091         than expected. Close the file before removing it.
41092
41093 2009-08-15  Eric Blake  <ebb9@byu.net>
41094
41095         fpurge: don't wrap working cygwin implementation
41096         * lib/fpurge.c (fpurge): Fix comment typo.
41097         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41098         1.7 to avoid replacement.
41099         * tests/test-fpurge.c (main): Enhance test.
41100
41101 2009-08-15  Eric Blake  <ebb9@byu.net>
41102         and Jim Meyering  <meyering@redhat.com>
41103
41104         test-update-copyright: skip if perl is insufficient
41105         * tests/test-update-copyright.sh: Failure to run maintainer tool
41106         should not cause testsuite failure on cygwin 1.5.
41107
41108 2009-08-14  Eric Blake  <ebb9@byu.net>
41109
41110         doc: mention more functions added in cygwin 1.7.0
41111         * doc/posix-headers/limits.texi (limits.h): Update for recent
41112         cygwin additions.
41113         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41114         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41115         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41116         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41117         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41118
41119 2009-08-14  Eric Blake  <ebb9@byu.net>
41120
41121         maint.mk: simplify update-copyright rule
41122         * top/maint.mk (update-copyright-local): Delete, and document how
41123         to do it in cfg.mk instead.
41124         (update-copyright-exclude-regexp): Delete, and document how to do
41125         it in .x-update-copyright instead.
41126         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41127         exclude ChangeLog.
41128
41129 2009-08-14  Bruno Haible  <bruno@clisp.org>
41130
41131         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41132
41133 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41134
41135         maint.mk: support update-copyright-env
41136         * top/maint.mk (update-copyright-env): Define place-holder.
41137         (update-copyright): Expand $(update-copyright-env) before
41138         invoking update-copyright.
41139
41140 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41141
41142         update-copyright: implement forced reformatting
41143         * build-aux/update-copyright: Implement and document
41144         UPDATE_COPYRIGHT_FORCE.
41145         * tests/test-update-copyright.sh: Test it.
41146
41147 2009-08-14  Eric Blake  <ebb9@byu.net>
41148         and Bruno Haible  <bruno@clisp.org>
41149
41150         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41151         * tests/test-locale.c: Revert previous patch related to NULL.
41152         * tests/test-stdio.c: Likewise.
41153         * tests/test-stdlib.c: Likewise.
41154         * tests/test-string.c: Likewise.
41155         * tests/test-unistd.c: Likewise.
41156         * modules/time-tests (Depends-on): Add verify.
41157         * modules/wchar-tests (Depends-on): Likewise.
41158         * tests/test-time.c: Test for NULL compliance.
41159         * tests/test-wchar.c: Likewise.
41160         * modules/locale (Depends-on): Add stddef.
41161         * modules/stdio (Depends-on): Likewise.
41162         * modules/stdlib (Depends-on): Likewise.
41163         * modules/string (Depends-on): Likewise.
41164         * modules/time (Depends-on): Likewise.
41165         * modules/unistd (Depends-on): Likewise.
41166         * modules/wchar (Depends-on): Likewise.
41167         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41168         * lib/stdlib.in.h (includes): Likewise.
41169         * lib/string.in.h (includes): Likewise.
41170         * lib/time.in.h (includes): Likewise.
41171         * lib/unistd.in.h (includes): Likewise.
41172         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41173         replaced.
41174         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41175         * m4/stddef_h.m4: New file.
41176         * modules/stddef: Likewise.
41177         * lib/stddef.in.h: Likewise.
41178         * modules/stddef-tests: Likewise.
41179         * tests/test-stddef.c: Likewise.
41180         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41181         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41182         * doc/posix-headers/locale.texi (locale.h): Likewise.
41183         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41184         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41185         * doc/posix-headers/string.texi (string.h): Likewise.
41186         * doc/posix-headers/time.texi (time.h): Likewise.
41187         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41188         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41189
41190 2009-08-14  Eric Blake  <ebb9@byu.net>
41191
41192         doc: improve git diff of texinfo files
41193         * .gitattributes: Add rule for *.texi files, with hint on how to
41194         use it.
41195         Copied from m4, and based on a report by Bruno Haible.
41196
41197 2009-08-14  Bruno Haible  <bruno@clisp.org>
41198
41199         Disable multithread support by default on Cygwin 1.5.x for real.
41200         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41201
41202 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41203
41204         update-copyright: much ado about intervals
41205         * build-aux/update-copyright: Implement and document
41206         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41207         of copyright year intervals.
41208         Also, document UPDATE_COPYRIGHT_YEAR.
41209         * tests/test-update-copyright.sh: Test it.
41210
41211         update-copyright: convert 2-digit to 4-digit years
41212         * build-aux/update-copyright: Implement and document.
41213         * tests/test-update-copyright.sh: Update.
41214
41215 2009-08-14  Jim Meyering  <meyering@redhat.com>
41216
41217         test-exclude: avoid coreutils "make check" failure
41218         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41219         just as in test-argmatch.c.
41220
41221 2009-08-13  Eric Blake  <ebb9@byu.net>
41222
41223         test-dup2: fix bad assumption
41224         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41225         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41226
41227         test-version-etc: fix CRLF portability issue
41228         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41229         recognize \r.
41230         * tests/test-argp-version-etc-1.sh: Likewise.
41231
41232         getopt: update client modules
41233         * modules/argp (Depends-on): Use getopt-gnu.
41234         * modules/git-merge-changelog (Depends-on): Likewise.
41235         * modules/long-options (Depends-on): Likewise.
41236         * modules/xstrtol (Depends-on): Likewise.
41237
41238 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41239
41240         * tests/test-version-etc.sh: Don't fail on different
41241         project/version.  Don't fail on CRLF differences.  Rewrite to use
41242         multiple -e instead of multiple sed forks, suggested by Eric Blake
41243         <ebb9@byu.net>.
41244         * tests/test-argp-version-etc-1.sh: Likewise.
41245
41246 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41247
41248         * tests/test-version-etc.sh: Don't fail on different
41249         project/version.
41250
41251 2009-08-12  Bruno Haible  <bruno@clisp.org>
41252
41253         Tests for modules 'getopt-posix', 'getopt-gnu'.
41254         * modules/getopt-posix-tests: New file.
41255         * tests/test-getopt.c: New file.
41256         * tests/test-getopt.h: New file.
41257         * tests/test-getopt_long.h: New file.
41258
41259         New modules 'getopt-posix', 'getopt-gnu'.
41260         * modules/getopt-gnu: New file, renamed from modules/getopt.
41261         * modules/getopt-posix: New file.
41262         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41263         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41264         (gl_GETOPT): Remove macro.
41265         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41266         Disable the test against BSD systems that declare optreset. Test
41267         against mingw bug. Test against lack of support of optional arguments
41268         on many platforms.
41269         * doc/glibc-headers/getopt.texi: Update module name and list of
41270         relevant platforms.
41271         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41272         'getopt-gnu' and more portability problems.
41273         * NEWS: Mention the changes.
41274
41275 2009-08-12  Bruno Haible  <bruno@clisp.org>
41276
41277         Ensure that optarg etc. get declared by <unistd.h>.
41278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41279         AC_USE_SYSTEM_EXTENSIONS.
41280         * modules/getopt (Depends-on): Add 'extensions'.
41281
41282 2009-08-12  Bruno Haible  <bruno@clisp.org>
41283
41284         Avoid test link errors.
41285         * modules/pipe-filter-ii-tests (Makefile.am): Define
41286         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41287         * modules/pipe-filter-gi-tests (Makefile.am): Define
41288         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41289         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41290
41291 2009-08-12  Bruno Haible  <bruno@clisp.org>
41292
41293         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41294         gl_GETOPT_SUBSTITUTE before.
41295         (gl_GETOPT): Use it.
41296         * m4/argp.m4 (gl_ARGP): Update.
41297         Reported by Sergey Poznyakoff.
41298
41299         * m4/getopt.m4: Reorder macros.
41300         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41301         (gl_GETOPT_SUBSTITUTE): Remove macro.
41302
41303 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41304
41305         Minor improvement in gitlog-to-changelog
41306
41307         * build-aux/gitlog-to-changelog: New option `--format' makes
41308         output format string configurable.
41309
41310 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41311
41312         Optimize exclude: use hash tables for non-wildcard patterns.
41313
41314         * lib/exclude.c: Include hash.h and mbuiter.h
41315         (struct exclude_pattern, exclude_segment): New data types.
41316         (struct exclude): Rewrite.
41317         (fnmatch_pattern_has_wildcards): New function.
41318         (new_exclude_segment, free_exclude_segment): New functions.
41319         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41320         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41321         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41322         * modules/exclude: Depend on hash and mbuiter.
41323
41324         * modules/exclude-tests: New file.
41325         * tests/test-exclude.c: New file.
41326         * tests/test-exclude1.sh: New file.
41327         * tests/test-exclude2.sh: New file.
41328         * tests/test-exclude3.sh: New file.
41329         * tests/test-exclude4.sh: New file.
41330         * tests/test-exclude5.sh: New file.
41331         * tests/test-exclude6.sh: New file.
41332         * tests/test-exclude7.sh: New file.
41333
41334 2009-08-12  Bruno Haible  <bruno@clisp.org>
41335
41336         Ensure that getopt() gets declared by <unistd.h>.
41337         * lib/unistd.in.h: Conditionally include getopt.h.
41338         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41339         Set GNULIB_UNISTD_H_GETOPT.
41340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41341         GNULIB_UNISTD_H_GETOPT.
41342         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41343
41344 2009-08-12  Bruno Haible  <bruno@clisp.org>
41345
41346         Clarify logic.
41347         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41348         gl_replace_getopt instead of GETOPT_H.
41349
41350 2009-08-12  Bruno Haible  <bruno@clisp.org>
41351
41352         * m4/getopt.m4: Add comments.
41353
41354 2009-08-12  Bruno Haible  <bruno@clisp.org>
41355
41356         Disable multithread support by default on Cygwin 1.5.x.
41357         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41358         set gl_use_threads=no if not specified otherwise.
41359
41360 2009-08-11  Bruno Haible  <bruno@clisp.org>
41361
41362         Avoid compilation error on NetBSD 5.0.
41363         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41364         * tests/test-stdio.c: Likewise.
41365         * tests/test-stdlib.c: Likewise.
41366         * tests/test-string.c: Likewise.
41367         * tests/test-unistd.c: Likewise.
41368         Reported by Greg Troxel <gdt@ir.bbn.com>
41369         at <https://savannah.gnu.org/support/?106973>.
41370
41371 2009-08-11  Bruno Haible  <bruno@clisp.org>
41372
41373         * modules/dup2-tests (Depends-on): Remove close.
41374
41375         Undo 2009-07-19 commit.
41376         * modules/acl-tests (Depends-on): Remove close.
41377         * modules/binary-io-tests (Depends-on): Likewise.
41378         * modules/closein-tests (Depends-on): Likewise.
41379         * modules/flock-tests (Depends-on): Likewise.
41380         * modules/fsync-tests (Depends-on): Likewise.
41381         * modules/lseek-tests (Depends-on): Likewise.
41382         * modules/pipe-tests (Depends-on): Likewise.
41383         * modules/posix_spawn-tests (Depends-on): Likewise.
41384         * modules/posix_spawnp-tests (Depends-on): Likewise.
41385         * modules/stat-time-tests (Depends-on): Likewise.
41386         * modules/yesno-tests (Depends-on): Likewise.
41387
41388 2009-08-10  Bruno Haible  <bruno@clisp.org>
41389
41390         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41391
41392 2009-08-10  Bruno Haible  <bruno@clisp.org>
41393
41394         Fix a gcc warning.
41395         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41396
41397 2009-08-10  Bruno Haible  <bruno@clisp.org>
41398
41399         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41400         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41401         not only the first time.
41402         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41403         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41404         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41405         is 1, not only the the first time.
41406
41407 2009-08-10  Bruno Haible  <bruno@clisp.org>
41408
41409         Make it possible to use module 'gethostname' without module 'close'.
41410         * lib/unistd.in.h (close): Evoke a link error only if
41411         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41413         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41414         * modules/unistd (Makefile.am): Substitute
41415         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41416         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41417         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41418         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41419         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41420         * modules/sys_ioctl (Makefile.am): Substitute
41421         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41422         * modules/socket (configure.ac): On native Windows, set
41423         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41424         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41425         Reported by Sam Steingold <sds@gnu.org>.
41426
41427 2009-08-10  Bruno Haible  <bruno@clisp.org>
41428
41429         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41430         * modules/ioctl (configure.ac): Likewise.
41431
41432 2009-08-10  Bruno Haible  <bruno@clisp.org>
41433
41434         Avoid collision between gnulib wrapper and libintl wrapper.
41435         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41436         already defined in intl/printf.c.
41437         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41438         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41439
41440 2009-08-09  Bruno Haible  <bruno@clisp.org>
41441
41442         Make <sys/select.h> really self-contained, also on Solaris 10.
41443         * lib/sys_select.in.h: Include <string.h>.
41444         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41445         Solaris 10 problem.
41446         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41447         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41448         Reported by Jim Meyering.
41449
41450 2009-08-09  Bruno Haible  <bruno@clisp.org>
41451
41452         Avoid warnings from 'aclocal' that are due to a use of macro name
41453         AM_XGETTEXT_OPTION that is not defined in automake.
41454         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41455         automake.
41456         * modules/error (configure.ac): Likewise.
41457         * modules/propername (configure.ac): Likewise.
41458         * modules/vasprintf (configure.ac): Likewise.
41459         * modules/verror (configure.ac): Likewise.
41460         * modules/xprintf (configure.ac): Likewise.
41461         * modules/xvasprintf (configure.ac): Likewise.
41462
41463 2009-08-08  Bruno Haible  <bruno@clisp.org>
41464
41465         Avoid compilation error in C++ mode.
41466         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41467         Reported by Sam Steingold <sds@gnu.org>.
41468
41469 2009-08-08  Bruno Haible  <bruno@clisp.org>
41470
41471         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41472         for the various Unix platforms.
41473         * doc/posix-headers/limits.texi: Update platforms list regarding
41474         HOST_NAME_MAX.
41475         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41476
41477 2009-08-07  Jim Meyering  <meyering@redhat.com>
41478
41479         selinux-at: fix typo in a comment
41480         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41481         Spotted by Paolo Bonzini.
41482
41483         selinux-at: remove redundant m4 code, add documentation
41484         * modules/selinux-at (configure.ac): Remove redundant code.
41485         LIB_SELINUX is already set via the dependent module, selinux-h.
41486         (Include): Add quotes around selinux-at.h.
41487         * lib/selinux-at.h: Add documentation.
41488         Reported by Bruno Haible in
41489         http://marc.info/?l=gnulib-bug&m=124958988300749
41490
41491 2009-08-07  Bruno Haible  <bruno@clisp.org>
41492
41493         Avoid link error on MacOS X 10.3 and 10.4.
41494         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41495         on non-ELF systems.
41496         * lib/argp-pv.c (argp_program_version): Likewise.
41497         Reported by Simon Josefsson.
41498
41499 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41500
41501         * tests/test-version-etc.sh: Use $EXEEXT.
41502
41503 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41504
41505         update-copyright: update documentation to point to maint.mk
41506         * build-aux/update-copyright: Here.
41507
41508 2009-08-06  Jim Meyering  <meyering@redhat.com>
41509
41510         maint.mk: support update-copyright-local
41511         * top/maint.mk (update-copyright-local): Define place-holder.
41512         (update-copyright): Depend on $(update-copyright-local).
41513
41514 2009-08-06  Jim Meyering  <meyering@redhat.com>
41515
41516         selinux-at: new module
41517         Initially written for coreutils, this module will soon be
41518         used by findutils, too.
41519         * MODULES.html.sh [Misc]: Add selinux-at.
41520         * lib/selinux-at.h: New file, from coreutils.
41521         * lib/selinux-at.c: Likewise.
41522         * modules/selinux-at: Likewise.
41523         (License): Change from LGPL to GPL, since it depends
41524         on the GPL'd openat module.
41525
41526         doc: update README
41527         * README: Remove references to cogito.
41528         Remove cvs-repo-updating instructions from 2007.
41529         Don't imply that CVS is better if you have limited disk space.
41530
41531 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41532
41533         update-copyright: support C-style comments
41534         * build-aux/update-copyright: Implement and document.
41535         * tests/test-update-copyright.sh: Test.
41536
41537 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41538
41539         update-copyright: support omitted "(C)"
41540         * build-aux/update-copyright: Implement and document.  Also,
41541         allow variable whitespace before "(C)".
41542         * tests/test-update-copyright.sh: Test.
41543
41544 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41545
41546         update-copyright: don't trip on non-FSF copyright statements
41547         * build-aux/update-copyright: Fix so that the first correctly
41548         formatted FSF copyright statement is recognized no matter what
41549         appears before it.  Update documentation.
41550         * tests/test-update-copyright.sh: Test that.
41551
41552 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41553
41554         update-copyright: clean up code a little
41555         * build-aux/update-copyright: Append "_re" to the name of any
41556         variable holding a regular expression.
41557         Replace "old" and "new" with "stmt" in variable names.
41558         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41559         handled correctly.
41560         Format code more consistently.
41561
41562 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41563
41564         update-copyright-tests: improve portability
41565         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41566         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41567
41568 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41569
41570         update-copyright: support @copyright{} and &copy;
41571         * build-aux/update-copyright: Implement and document.
41572         * tests/test-update-copyright.sh: Test.
41573
41574 2009-08-04  Jim Meyering  <meyering@redhat.com>
41575
41576         update-copyright-tests: correctly test EOL=\r\n handling
41577         * tests/test-update-copyright.sh: Put \r at the end of some lines
41578         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41579
41580         maint.mk: make update-copyright exclusion list more configurable
41581         * top/maint.mk (update-copyright): Default to excluding COPYING,
41582         but allow an override, in case someone does want to update that file.
41583
41584         maint.mk: don't update copyright date in COPYING
41585         * top/maint.mk (update-copyright): Exclude COPYING.
41586
41587         maint.mk: add a copyright-updating rule
41588         * top/maint.mk (update-copyright): New rule.
41589         Derived from coreutils/Makefile.am.
41590
41591         update-copyright: rename some variables
41592         * build-aux/update-copyright: Rename a few variables for clarity.
41593         Tweak syntax.  List Joel E. Denny as coauthor.
41594
41595 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41596
41597         update-copyright: fix bug for 2-digit last year and add tests
41598         * build-aux/update-copyright: Fix bug.
41599         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
41600         specified.
41601         * modules/update-copyright-tests: New
41602         * tests/test-update-copyright.sh: New.
41603
41604 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41605
41606         update-copyright: handle leading tabs in line prefix
41607         * build-aux/update-copyright: Count leading tabs as 8 spaces
41608         when computing margin.  This helps with the formatting of
41609         ChangeLogs, for example.
41610         Fix documentation a little.
41611
41612 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41613
41614         update-copyright: support EOL=\r\n
41615         * build-aux/update-copyright: Implement that.
41616
41617 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41618
41619         update-copyright: automatically format copyright statements
41620         * build-aux/update-copyright: Implement that.
41621         Also, be a little more predictable and safer by always failing
41622         when the full copyright format is not perfectly recognized as an
41623         unbroken whole.  Discussed at
41624         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
41625         Rewrite documentation.
41626
41627 2009-08-03  Bruno Haible  <bruno@clisp.org>
41628
41629         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
41630
41631 2009-08-02  Bruno Haible  <bruno@clisp.org>
41632
41633         Tests for module 'uname'.
41634         * modules/uname-tests: New file.
41635         * tests/test-uname.c: New file.
41636
41637         New module 'uname'.
41638         * lib/uname.c: New file.
41639         * m4/uname.m4: New file.
41640         * modules/uname: New file.
41641         * doc/posix-functions/uname.texi: Mention the new module.
41642
41643 2009-08-02  Bruno Haible  <bruno@clisp.org>
41644
41645         Tests for module 'sys_utsname'.
41646         * modules/sys_utsname-tests: New file.
41647         * tests/test-sys_utsname.c: New file.
41648
41649         New module 'sys_utsname'.
41650         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
41651         * m4/sys_utsname_h.m4: New file.
41652         * modules/sys_utsname: New file.
41653         * doc/posix-headers/sys_utsname.texi: Mention the new module.
41654
41655 2009-08-02  Bruno Haible  <bruno@clisp.org>
41656
41657         Implicitly initialize the sockets library.
41658         * lib/gethostname.c: Include sockets.h.
41659         (rpl_gethostname): Invoke gl_sockets_startup.
41660         * lib/socket.c: Include sockets.h.
41661         (rpl_socket): Invoke gl_sockets_startup.
41662         * modules/gethostname (Depends-on): Add sockets.
41663         * modules/socket (Depends-on): Likewise.
41664         * tests/test-poll.c: Don't include sockets.h.
41665         (main): Don't invoke gl_sockets_startup.
41666         * tests/test-select.c: Don't include sockets.h.
41667         (main): Don't invoke gl_sockets_startup.
41668
41669 2009-08-02  Bruno Haible  <bruno@clisp.org>
41670
41671         Allow multiple calls to gl_sockets_startup.
41672         * lib/sockets.c (initialized_sockets_version): New variable.
41673         (gl_sockets_startup): Do nothing if already called for this or a higher
41674         version.
41675         (gl_sockets_cleanup): Reset initialized_sockets_version.
41676
41677 2009-08-03  Simon Josefsson  <simon@josefsson.org>
41678
41679         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
41680         different project/version.
41681
41682 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
41683             Bruno Haible  <bruno@clisp.org>
41684
41685         Tests for module 'pipe-filter-gi'.
41686         * modules/pipe-filter-gi-tests: New file.
41687         * tests/test-pipe-filter-gi1.sh: New file.
41688         * tests/test-pipe-filter-gi1.c: New file.
41689         * tests/test-pipe-filter-gi2.sh: New file.
41690         * tests/test-pipe-filter-gi2-main.c: New file.
41691         * tests/test-pipe-filter-gi2-child.c: New file.
41692
41693         New module 'pipe-filter-gi'.
41694         * lib/pipe-filter-gi.c: New file.
41695         * modules/pipe-filter-gi: New file.
41696
41697 2009-08-02  Bruno Haible  <bruno@clisp.org>
41698             Paolo Bonzini  <bonzini@gnu.org>
41699
41700         Tests for module 'pipe-filter-ii'.
41701         * modules/pipe-filter-ii-tests: New file.
41702         * tests/test-pipe-filter-ii1.sh: New file.
41703         * tests/test-pipe-filter-ii1.c: New file.
41704         * tests/test-pipe-filter-ii2.sh: New file.
41705         * tests/test-pipe-filter-ii2-main.c: New file.
41706         * tests/test-pipe-filter-ii2-child.c: New file.
41707
41708         New module 'pipe-filter-ii'.
41709         * lib/pipe-filter.h: New file.
41710         * lib/pipe-filter-ii.c: New file.
41711         * lib/pipe-filter-aux.h: New file.
41712         * modules/pipe-filter-ii: New file.
41713
41714 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41715
41716         * lib/gc-libgcrypt.c: Change copyright to FSF.
41717         * lib/gc-gnulib.c: Likewise.
41718
41719 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
41720
41721         * lib/gethostname.c: Include limits.h.
41722
41723 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41724             Bruno Haible  <bruno@clisp.org>
41725
41726         Ensure HOST_NAME_MAX as part of the gethostname module.
41727         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
41728         define also HOST_NAME_MAX.
41729         * tests/test-gethostname.c: Include <limits.h>.
41730         (main): Check also HOST_NAME_MAX.
41731         * doc/posix-headers/limits.texi: Document the mingw problem.
41732
41733 2009-08-02  Bruno Haible  <bruno@clisp.org>
41734
41735         * lib/gethostname.c (gethostname): Fix handling of large len argument.
41736         Add comments.
41737
41738 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41739
41740         * lib/gethostname.c: Add Windows wrapper.
41741         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41742         * modules/gethostname: Depend on sys_socket & errno, for also
41743         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
41744         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
41745
41746 2009-07-31  Jim Meyering  <meyering@redhat.com>
41747
41748         getloadavg: fix symbol name in comment
41749         * lib/getloadavg.c: Correct a typo I introduced when adding
41750         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
41751         Matt Kraai spotted the problem.
41752
41753 2009-07-29  Matt Kraai  <mkraai@beckman.com>
41754
41755         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
41756         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
41757         code also if ! defined N_NAME_POINTER.
41758         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
41759         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
41760         but the n_name member is a 12-byte array.
41761
41762 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
41763
41764         update-copyright: generalize comment handling
41765         * build-aux/update-copyright: Handle copyright statements
41766         within more comment styles.
41767         Document usage.
41768         Report any file with an external copyright holder or parse failure.
41769
41770 2009-07-29  Jim Meyering  <meyering@redhat.com>
41771
41772         mktime: correct setting of REPLACE_MKTIME
41773         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
41774
41775         update-copyright: new module
41776         * modules/update-copyright: New file.
41777         * build-aux/update-copyright: New file.
41778         * MODULES.html.sh (maint+release support): Add update-copyright.
41779
41780 2009-07-27  Bruno Haible  <bruno@clisp.org>
41781
41782         Fix compilation error when <ctime> is used and mktime is replaced.
41783         * lib/time.in.h (mktime): New declaration.
41784         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
41785         REPLACE_MKTIME instead of defining mktime in config.h.
41786         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
41787         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
41788         Reported by Ross McFarland <rwmcfa1@neces.com>.
41789
41790 2009-07-27  Bruno Haible  <bruno@clisp.org>
41791
41792         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
41793         Reported by Matt Kraai <mkraai@beckman.com>.
41794
41795 2009-07-25  Jim Meyering  <meyering@redhat.com>
41796
41797         maint.mk: avoid warnings about missing files
41798         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
41799         diagnostic when .prev-version does not exist.
41800         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
41801         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
41802         nonexistent cfg.mk.
41803         Suggestions from Simon Josefsson.
41804
41805 2009-07-25  Bruno Haible  <bruno@clisp.org>
41806
41807         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
41808         defined as macros. Needed on QNX 6.4.1.
41809         Reported by Matt Kraai <mkraai@beckman.com>.
41810
41811 2009-07-23  Jim Meyering  <meyering@redhat.com>
41812
41813         maint.mk: invoke "make dist" with a working value of XZ_OPT
41814         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
41815
41816 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
41817
41818         Make fseeko.c compile on QNX.
41819         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
41820
41821 2009-07-22  Peter Simons  <simons@cryp.to>
41822
41823         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
41824         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
41825         * lib/md4.h: Likewise.
41826         * lib/md5.h: Likewise.
41827         * lib/sha1.h: Likewise.
41828         * lib/sha256.h: Likewise.
41829         * lib/sha512.h: Likewise.
41830
41831         tests-sha1: don't assign literal string to 'char *' variable
41832         * tests/test-sha1.c (main): Declare locals with "const" to match
41833         attributes of the right hand side.
41834
41835 2009-07-21  Eric Blake  <ebb9@byu.net>
41836
41837         dup2: fix more mingw problems
41838         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
41839         fd to itself.
41840         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41841         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
41842         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
41843         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
41844         care of mingw bugs.
41845
41846 2009-07-21  Jim Meyering  <meyering@redhat.com>
41847
41848         vc-list-files: avoid failure when /bin/sh is dash
41849         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
41850         On some Debian based systems, /bin/sh is a symlink to dash, and running
41851         this command would omit the "/" following each 'tests' prefix:
41852           dash -x build-aux/vc-list-files -C . tests
41853         That is because bash and dash work differently:
41854           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
41855           bash ok
41856           dash odd
41857
41858 2009-07-21  Eric Blake  <ebb9@byu.net>
41859
41860         dup2-tests: test previous patch
41861         * modules/dup2-tests: New file.
41862         * tests/test-dup2.c: Likewise.
41863         * tests/test-open.c (main): Avoid unspecified behavior.
41864         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
41865         test.
41866
41867         dup2: work around mingw and cygwin 1.5 bug
41868         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
41869         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41870         * modules/unistd (Makefile.am): Substitute it.
41871         * lib/unistd.in.h (dup2): Declare the replacement.
41872         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
41873         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
41874         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
41875         * modules/execute (Depends-on): Add dup2.
41876         * modules/fseterr (Depends-on): Likewise.
41877         * modules/pipe (Depends-on): Likewise.
41878         * modules/posix_spawn-internal (Depends-on): Likewise.
41879
41880 2009-07-21  Bruno Haible  <bruno@clisp.org>
41881
41882         * modules/.gitattributes: New file.
41883
41884 2009-07-20  Bruno Haible  <bruno@clisp.org>
41885
41886         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
41887         (main): Use it.
41888
41889 2009-07-20  Eric Blake  <ebb9@byu.net>
41890
41891         test-pipe: make a bit more robust.
41892         * tests/test-pipe.c (myerr): Allow error messages regardless of
41893         what we do to stderr.
41894         (test_pipe): Rearrange to avoid deadlock.
41895         (child_main): Try a larger read, to ensure we avoided deadlock.
41896         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
41897         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
41898         if misused.
41899
41900 2009-07-19  Jim Meyering  <meyering@redhat.com>
41901
41902         fts: avoid false-positive cycle-detection
41903         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
41904         for each new command line argument.
41905
41906 2009-07-19  Bruno Haible  <bruno@clisp.org>
41907
41908         Fix build error on mingw with the modules sys_select and unistd.
41909         * modules/acl-tests (Depends-on): Add close.
41910         * modules/binary-io-tests (Depends-on): Likewise.
41911         * modules/closein-tests (Depends-on): Likewise.
41912         * modules/flock-tests (Depends-on): Likewise.
41913         * modules/fsync-tests (Depends-on): Likewise.
41914         * modules/lseek-tests (Depends-on): Likewise.
41915         * modules/pipe-tests (Depends-on): Likewise.
41916         * modules/posix_spawn-tests (Depends-on): Likewise.
41917         * modules/posix_spawnp-tests (Depends-on): Likewise.
41918         * modules/stat-time-tests (Depends-on): Likewise.
41919         * modules/yesno-tests (Depends-on): Likewise.
41920
41921 2009-07-19  Bruno Haible  <bruno@clisp.org>
41922
41923         Unify conditionals.
41924         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
41925         macros, not at the compiler macros.
41926         * lib/pipe.c: Likewise.
41927         * lib/execute.c: Likewise.
41928         * lib/spawni.c: Likewise.
41929
41930 2009-07-19  Bruno Haible  <bruno@clisp.org>
41931
41932         Fix handling of closed stdin/stdout/stderr on mingw.
41933         * lib/w32spawn.h: Include unistd.h.
41934         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
41935         file descriptor with O_NOINHERIT flag.
41936         (fd_safer_noinherit): New function, based on fd-safer.c.
41937         (dup_safer_noinherit): New function, based on dup-safer.c.
41938         (undup_safer_noinherit): New function.
41939         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
41940         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
41941         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
41942         instead of fd_safer.
41943         * tests/test-pipe.c: Include <windows.h>.
41944         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
41945         result.
41946
41947         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41948         from main.
41949         (test_pipe): Pass an extra argument for disambiguation.
41950         (main): Invoke parent_main or child_main.
41951
41952         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41953         consistently.
41954
41955 2009-07-18  Eric Blake  <ebb9@byu.net>
41956
41957         test-pipe: fix mingw build
41958         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41959
41960 2009-07-18  Bruno Haible  <bruno@clisp.org>
41961
41962         * modules/pipe-tests (Makefile.am): Fix typo.
41963
41964 2009-07-18  Eric Blake  <ebb9@byu.net>
41965
41966         error: fix mingw build
41967         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41968         Reported by Bruno Haible.
41969
41970         error: avoid undefined use of stdout
41971         * lib/error.c (error, error_at_line): Check that fd 1 is open
41972         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41973         is handling faults and the close_stdout module wants to report the
41974         detection of closed stdout as an error.
41975
41976 2009-07-17  Eric Blake  <ebb9@byu.net>
41977
41978         pipe: be robust in face of closed fds
41979         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41980         should cause child to misbehave.
41981         * modules/pipe-tests: New module.
41982         * tests/test-pipe.c: New file.
41983         * tests/test-pipe.sh: New file.
41984         Reported by Akim Demaille.
41985
41986 2009-07-14  Bruno Haible  <bruno@clisp.org>
41987
41988         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41989         Reported by anonymous kc.
41990
41991 2009-07-07  Jim Meyering  <meyering@redhat.com>
41992
41993         maint.mk: don't look for translatable strings in *.m4 or *.mk
41994         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41995         when searching for translatable strings.
41996
41997 2009-07-05  Jim Meyering  <meyering@redhat.com>
41998
41999         remove superfluous parentheses in STREQ definition
42000         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42001         * lib/getugroups.c (STREQ): Likewise.
42002         * lib/fnmatch.c (STREQ): Likewise.
42003         Spotted by Bruno Haible.
42004
42005 2009-07-04  Jim Meyering  <meyering@redhat.com>
42006
42007         argv-iter: new module
42008         * MODULES.html.sh: Add argv-iter.
42009         * lib/argv-iter.c, lib/argv-iter.h: New files.
42010         * modules/argv-iter: New file.
42011         * modules/argv-iter-tests: New file.
42012         * tests/test-argv-iter.c: Test it.
42013
42014 2009-07-04  Bruno Haible  <bruno@clisp.org>
42015
42016         Fix assertion.
42017         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42018         contains more exact copies of a given entry than file2, leave the extra
42019         copies unpaired rather than aborting.
42020         Reported by Eric Blake.
42021
42022 2009-07-02  Bruno Haible  <bruno@clisp.org>
42023
42024         Speedup git-merge-changelog for git cherry-pick.
42025         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42026         (entries_mapping_get): New function, extracted from compute_mapping.
42027         (entries_mapping_reverse_get): New function.
42028         (compute_mapping): Add a 'full' argument. Return the result in a
42029         'struct entries_mapping'.
42030         (main): Update. Access the mappings through entries_mapping_get.
42031         Reported by Eric Blake.
42032
42033 2009-07-02  Bruno Haible  <bruno@clisp.org>
42034
42035         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42036         best_i.
42037
42038 2009-07-02  Bruno Haible  <bruno@clisp.org>
42039
42040         Speed up approximate search for matching ChangeLog entries.
42041         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42042         argument. Call fstrcmp_bounded instead of fstrcmp.
42043         (compute_mapping, try_split_merged_entry, main): Update callers.
42044
42045 2009-07-02  Bruno Haible  <bruno@clisp.org>
42046
42047         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42048
42049 2009-06-30  Bruno Haible  <bruno@clisp.org>
42050
42051         Reduce the number of uc_is_cased calls.
42052         * lib/unicase.h (casing_suffix_context_t): Add
42053         'first_char_except_ignorable' field.
42054         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42055         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42056         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42057         Update initializer.
42058         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42059         case-ignorable characters.
42060         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42061         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42062         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42063         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42064         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42065
42066 2009-06-30  Bruno Haible  <bruno@clisp.org>
42067
42068         Tests for module 'unicase/ignorable'.
42069         * modules/unicase/ignorable-tests: New file.
42070         * tests/unicase/test-ignorable.c: New file, generated by
42071         gen-uni-tables.
42072
42073         Tests for module 'unicase/cased'.
42074         * modules/unicase/cased-tests: New file.
42075         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42076         * tests/unicase/test-predicate-part1.h: New file, derived from
42077         tests/unictype/test-predicate-part1.h.
42078         * tests/unicase/test-predicate-part2.h: New file, same as
42079         tests/unictype/test-predicate-part2.h.
42080
42081         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42082         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42083         (output_casing_properties): New function.
42084         (main): Call it.
42085         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42086         * lib/unicase/cased.c: Include unictype/bitmap.h.
42087         (uc_is_cased): Define through a bitmap lookup.
42088         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42089         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42090         (uc_is_case_ignorable): Define through a bitmap lookup.
42091         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42092         lib/unictype/bitmap.h.
42093         (Depends-on): Add inline. Clean up.
42094         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42095         lib/unictype/bitmap.h.
42096         (Depends-on): Add inline. Clean up.
42097         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42098         recognition.
42099         * tests/unicase/test-u16-tolower.c (main): Likewise.
42100         * tests/unicase/test-u32-tolower.c (main): Likewise.
42101
42102 2009-06-30  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42105         * lib/unicase/u16-casemap.c: Likewise.
42106         * lib/unicase/u32-casemap.c: Likewise.
42107
42108 2009-06-29  Bruno Haible  <bruno@clisp.org>
42109
42110         Define u32_casefold as a wrapper around u32_ct_casefold.
42111         * lib/unicase/u32-casefold.c: Update.
42112         * modules/unicase/u32-casefold (Depends-on): Add
42113         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42114         unicase/empty-suffix-context. Clean up.
42115
42116         Define u16_casefold as a wrapper around u16_ct_casefold.
42117         * lib/unicase/u16-casefold.c: Update.
42118         * modules/unicase/u16-casefold (Depends-on): Add
42119         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42120         unicase/empty-suffix-context. Clean up.
42121
42122         Define u8_casefold as a wrapper around u8_ct_casefold.
42123         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42124         * lib/unicase/u8-casefold.c: Update.
42125         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42126         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42127
42128         Define u32_totitle as a wrapper around u32_ct_totitle.
42129         * lib/unicase/u32-totitle.c: Update.
42130         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42131         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42132
42133         Define u16_totitle as a wrapper around u16_ct_totitle.
42134         * lib/unicase/u16-totitle.c: Update.
42135         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42136         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42137
42138         Define u8_totitle as a wrapper around u8_ct_totitle.
42139         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42140         functions.
42141         (FUNC): Delegate to U_CT_TOTITLE.
42142         * lib/unicase/u8-totitle.c: Update.
42143         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42144         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42145
42146         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42147         invocation.
42148         * modules/unicase/u32-tolower (Depends-on): Add
42149         unicase/empty-prefix-context, unicase/empty-suffix-context.
42150
42151         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42152         invocation.
42153         * modules/unicase/u16-tolower (Depends-on): Add
42154         unicase/empty-prefix-context, unicase/empty-suffix-context.
42155
42156         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42157         * modules/unicase/u8-tolower (Depends-on): Add
42158         unicase/empty-prefix-context, unicase/empty-suffix-context.
42159
42160         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42161         invocation.
42162         * modules/unicase/u32-toupper (Depends-on): Add
42163         unicase/empty-prefix-context, unicase/empty-suffix-context.
42164
42165         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42166         invocation.
42167         * modules/unicase/u16-toupper (Depends-on): Add
42168         unicase/empty-prefix-context, unicase/empty-suffix-context.
42169
42170         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42171         * modules/unicase/u8-toupper (Depends-on): Add
42172         unicase/empty-prefix-context, unicase/empty-suffix-context.
42173
42174         New module 'unicase/u32-ct-casefold'.
42175         * lib/unicase/u32-ct-casefold.c: New file.
42176         * modules/unicase/u32-ct-casefold: New file.
42177
42178         New module 'unicase/u16-ct-casefold'.
42179         * lib/unicase/u16-ct-casefold.c: New file.
42180         * modules/unicase/u16-ct-casefold: New file.
42181
42182         New module 'unicase/u8-ct-casefold'.
42183         * lib/unicase/u8-ct-casefold.c: New file.
42184         * lib/unicase/u-ct-casefold.h: New file, derived from
42185         lib/unicase/u-casefold.h.
42186         * modules/unicase/u8-ct-casefold: New file.
42187
42188         New module 'unicase/u32-ct-totitle'.
42189         * lib/unicase/u32-ct-totitle.c: New file.
42190         * modules/unicase/u32-ct-totitle: New file.
42191
42192         New module 'unicase/u16-ct-totitle'.
42193         * lib/unicase/u16-ct-totitle.c: New file.
42194         * modules/unicase/u16-ct-totitle: New file.
42195
42196         New module 'unicase/u8-ct-totitle'.
42197         * lib/unicase/u8-ct-totitle.c: New file.
42198         * lib/unicase/u-ct-totitle.h: New file, derived from
42199         lib/unicase/u-totitle.h.
42200         * modules/unicase/u8-ct-totitle: New file.
42201
42202         New module 'unicase/u32-ct-tolower'.
42203         * lib/unicase/u32-ct-tolower.c: New file.
42204         * modules/unicase/u32-ct-tolower: New file.
42205
42206         New module 'unicase/u16-ct-tolower'.
42207         * lib/unicase/u16-ct-tolower.c: New file.
42208         * modules/unicase/u16-ct-tolower: New file.
42209
42210         New module 'unicase/u8-ct-tolower'.
42211         * lib/unicase/u8-ct-tolower.c: New file.
42212         * modules/unicase/u8-ct-tolower: New file.
42213
42214         New module 'unicase/u32-ct-toupper'.
42215         * lib/unicase/u32-ct-toupper.c: New file.
42216         * modules/unicase/u32-ct-toupper: New file.
42217
42218         New module 'unicase/u16-ct-toupper'.
42219         * lib/unicase/u16-ct-toupper.c: New file.
42220         * modules/unicase/u16-ct-toupper: New file.
42221
42222         New module 'unicase/u8-ct-toupper'.
42223         * lib/unicase/u8-ct-toupper.c: New file.
42224         * modules/unicase/u8-ct-toupper: New file.
42225
42226         Add context arguments to u*_casemap functions.
42227         * lib/unicase/unicasemap.h: Include unicase.h.
42228         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42229         suffix_context arguments.
42230         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42231         functions.
42232         (FUNC): Add prefix_context and suffix_context arguments. Use
42233         uc_is_cased and uc_is_case_ignorable.
42234         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42235         * lib/unicase/u16-casemap.c: Likewise.
42236         * lib/unicase/u32-casemap.c: Likewise.
42237         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42238         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42239         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42240         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42241         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42242         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42243
42244         New module 'unicase/u32-suffix-context'.
42245         * lib/unicase/u32-suffix-context.c: New file.
42246         * modules/unicase/u32-suffix-context: New file.
42247
42248         New module 'unicase/u16-suffix-context'.
42249         * lib/unicase/u16-suffix-context.c: New file.
42250         * modules/unicase/u16-suffix-context: New file.
42251
42252         New module 'unicase/u8-suffix-context'.
42253         * lib/unicase/u8-suffix-context.c: New file.
42254         * lib/unicase/u-suffix-context.h: New file.
42255         * modules/unicase/u8-suffix-context: New file.
42256
42257         New module 'unicase/empty-suffix-context'.
42258         * lib/unicase/empty-suffix-context.c: New file.
42259         * modules/unicase/empty-suffix-context: New file.
42260
42261         New module 'unicase/u32-prefix-context'.
42262         * lib/unicase/u32-prefix-context.c: New file.
42263         * modules/unicase/u32-prefix-context: New file.
42264
42265         New module 'unicase/u16-prefix-context'.
42266         * lib/unicase/u16-prefix-context.c: New file.
42267         * modules/unicase/u16-prefix-context: New file.
42268
42269         New module 'unicase/u8-prefix-context'.
42270         * lib/unicase/u8-prefix-context.c: New file.
42271         * lib/unicase/u-prefix-context.h: New file.
42272         * lib/unicase/context.h: New file.
42273         * modules/unicase/u8-prefix-context: New file.
42274
42275         New module 'unicase/empty-prefix-context'.
42276         * lib/unicase/empty-prefix-context.c: New file.
42277         * modules/unicase/empty-prefix-context: New file.
42278
42279         New module 'unicase/ignorable'.
42280         * lib/unicase/ignorable.c: New file.
42281         * modules/unicase/ignorable: New file.
42282
42283         New module 'unicase/cased'.
42284         * lib/unicase/caseprop.h: New file.
42285         * lib/unicase/cased.c: New file.
42286         * modules/unicase/cased: New file.
42287
42288         New functions for case mapping of substrings.
42289         * lib/unicase.h (casing_prefix_context_t): New type.
42290         (unicase_empty_prefix_context): New variable.
42291         (u8_casing_prefix_context, u16_casing_prefix_context,
42292         u32_casing_prefix_context, u8_casing_prefixes_context,
42293         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42294         declarations.
42295         (casing_suffix_context_t): New type.
42296         (unicase_empty_suffix_context): New variable.
42297         (u8_casing_suffix_context, u16_casing_suffix_context,
42298         u32_casing_suffix_context, u8_casing_suffixes_context,
42299         u16_casing_suffixes_context, u32_casing_suffixes_context,
42300         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42301         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42302         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42303         declarations.
42304
42305 2009-06-28  Jim Meyering  <meyering@redhat.com>
42306
42307         boostrap: indent only with spaces
42308         * build-aux/bootstrap: Indent only with spaces, never TABs.
42309
42310         bootstrap: split long lines
42311         * build-aux/bootstrap: Keep line length < 80.
42312
42313         bootstrap: sync from coreutils
42314         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42315         just as autoreconf does.  Verify a list of prerequisite
42316         package-name,version-number pairs if defined in bootstrap.conf.
42317         Refer to README-prereq, if prerequisites are not satisfied.
42318
42319 2009-06-27  Eric Blake  <ebb9@byu.net>
42320
42321         tests: add test for bogus NULL definition
42322         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42323         * tests/test-stdlib.c: Likewise.
42324         * tests/test-string.c: Likewise.
42325         * tests/test-locale.c: Likewise.
42326         * tests/test-unistd.c: Likewise.
42327         * modules/stdio-tests (Depends-on): Add verify.
42328         * modules/stdlib-tests (Depends-on): Likewise.
42329         * modules/string-tests (Depends-on): Likewise.
42330         * modules/locale-tests (Depends-on): Likewise.
42331         * modules/unistd-tests (Depends-on): Likewise.
42332
42333 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42334
42335         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42336         self-explaining comment.
42337         * m4/selinux-selinux-h: Update serial.
42338         (gl_LIBSELINUX): New macro, adding a warning for missing development
42339         packages to code extracted from...
42340         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42341         Add warning for missing development packages here, too.
42342
42343 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42344
42345         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42346
42347 2009-06-25  Eric Blake  <ebb9@byu.net>
42348
42349         version-etc: fix regression
42350         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42351         gcc.
42352         (version_etc): Use it, to catch bugs with trailing NULL.
42353         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42354         (version_etc_va): Fix logic bug.
42355         * modules/version-etc-tests: Add test.
42356         * tests/test-version-etc.c: New file.
42357         * tests/test-version-etc.sh: Likewise.
42358
42359 2009-06-25  Sam Steingold  <sds@gnu.org>
42360
42361         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42362         mbtowc declaration.
42363
42364 2009-06-25  Eric Blake  <ebb9@byu.net>
42365
42366         fpurge: migrate into <stdio.h>
42367         * lib/fpurge.h: Delete...
42368         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42369         * lib/fpurge.c (fpurge): Change declaring header.
42370         * modules/fpurge (Files): Drop deleted file.
42371         (Depends-on): Add stdio.
42372         (configure.ac): Set witness.
42373         * modules/stdio (Makefile.am): Support fpurge macros.
42374         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42375         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42376         * lib/fflush.c: Update client.
42377         * tests/test-fpurge.c: Likewise.
42378         * NEWS: Mention the change.
42379
42380 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42381
42382         * lib/argp-version-etc.c (program_authors): Add const
42383         qualifier.
42384         * lib/version-etc.c: Fix typos in the comments.
42385         * modules/argp-version-etc: Depends on version-etc.
42386
42387 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42388
42389         argp-version-etc: new module.
42390
42391         * lib/argp-version-etc.c: New file.
42392         * lib/argp-version-etc.h: New file.
42393         * modules/argp-version-etc: New file.
42394         * modules/argp-version-etc-tests: New file.
42395         * tests/test-argp-version-etc.c: New test.
42396         * tests/test-argp-version-etc-1.sh: New test.
42397
42398 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42399
42400         Provide additional interfaces and documentation for version-etc
42401         module.
42402
42403         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42404         interfaces.
42405         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42406         prototypes.
42407
42408 2009-06-24  Bruno Haible  <bruno@clisp.org>
42409
42410         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42411         HAVE_LIB${NAME} macro.
42412         Reported by Sam Steingold <sds@gnu.org>.
42413
42414 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42415
42416         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42417         needed.
42418
42419 2009-06-21  Bruno Haible  <bruno@clisp.org>
42420
42421         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42422         work.
42423         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42424         together with LIB${NAME}, LTLIB${NAME}.
42425         Reported by Sam Steingold <sds@gnu.org>.
42426
42427 2009-06-20  Jim Meyering  <meyering@redhat.com>
42428
42429         tests: make sc_require_test_exit_idiom more generic
42430         * top/maint.mk (Exit_witness_file): New overridable variable.
42431         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42432         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42433
42434 2009-06-19  Jim Meyering  <meyering@redhat.com>
42435
42436         hash: reverse order of src/dst parameters in an internal interface
42437         * lib/hash.c (transfer_entries): Reverse order of parameters to
42438         put DST before SRC.  Adjust callers.
42439
42440         tests: test-hash: avoid wholesale duplication
42441         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42442         Instead, use a loop and add a single conditional.
42443
42444         tests: test-hash: allow seed selection via a command line argument
42445         * tests/test-hash.c (get_seed): New function.
42446         (main): Use it.
42447
42448 2009-06-19  Eric Blake  <ebb9@byu.net>
42449
42450         hash: avoid memory leak on allocation failure
42451         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42452         failure.  Factor repeated algorithm...
42453         (transfer_entries): ...into new helper routine.
42454         (hash_delete): React to hash_rehash return value.
42455
42456         hash: reduce memory pressure in hash_rehash no-op case
42457         * lib/hash.c (next_prime): Avoid overflow.
42458         (hash_initialize): Factor bucket size computation...
42459         (compute_bucket_size): ...into new helper function.
42460         (hash_rehash): Use new function and open coding to reduce memory
42461         pressure, and avoid a memory leak in USE_OBSTACK code.
42462         Reported by Jim Meyering.
42463
42464 2009-06-18  Eric Blake  <ebb9@byu.net>
42465
42466         hash: make rotation more obvious
42467         * modules/hash (Depends-on): Add bitrotate and stdint.
42468         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42469         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42470         (SIZE_MAX): Rely on headers for definition.
42471         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42472         (raw_hasher): Use rotr_sz.
42473         Suggested by Jim Meyering.
42474
42475         hash: fix memory leak in last patch
42476         * lib/hash.c (hash_rehash): Avoid memory leak.
42477
42478         hash: avoid no-op rehashing
42479         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42480
42481         hash: provide default callback functions
42482         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42483         (hash_initialize): Use them as defaults.
42484         * tests/test-hash.c (main): Test this.
42485
42486         hash: minor optimization
42487         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42488         when possible.
42489         (hash_initialize): Document this promise.
42490         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42491         * tests/test-hash.c (hash_compare_strings): Test this.
42492
42493 2009-06-18  Bruno Haible  <bruno@clisp.org>
42494
42495         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42496         going to be replaced anyway.
42497
42498 2009-06-18  Bruno Haible  <bruno@clisp.org>
42499
42500         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42501         in one place.
42502         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42503         be replaced anyway.
42504
42505 2009-06-18  Eric Blake  <ebb9@byu.net>
42506
42507         hash: check for resize before insertion
42508         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42509         threshold before insertion, so that a pathological hash_rehash
42510         that fills every bucket can still trigger another rehash.
42511
42512 2009-06-18  Jim Meyering  <meyering@redhat.com>
42513
42514         hash-tests: add a loop around the small tests
42515         * tests/test-hash.c (main): Repeat small tests with selected
42516         small initial table sizes.
42517
42518 2009-06-17  Eric Blake  <ebb9@byu.net>
42519
42520         hash: minor cleanups
42521         * lib/hash.h (hash_entry): Make opaque, by moving...
42522         * lib/hash.c (hash_entry): ...here.
42523         (hash_insert): Clarify restrictions on what can be inserted.
42524         (hash_get_next): Clarify when it is safe to remove an element
42525         during traversal.
42526         (check_tuning): Skip verification when tuning is known safe.
42527         (hash_initialize): Clarify restrictions on tuning.
42528
42529 2009-06-17  Jim Meyering  <jim@meyering.net>
42530         and Eric Blake  <ebb9@byu.net>
42531
42532         hash-tests: new module
42533         * modules/hash-tests: New file.
42534         * tests/test-hash.c: New file.
42535
42536 2009-06-17  Eric Blake  <ebb9@byu.net>
42537
42538         strstr-simple: document new module
42539         * MODULES.html.sh: Document new module.
42540
42541         strstr, strcasestr: replace on platforms with broken memchr
42542         * modules/strstr: Split into...
42543         * modules/strstr-simple: ...new module that does not care about
42544         performance, but does care about glibc bug.
42545         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42546         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42547         if platform memchr is broken, per Debian bug 521737.
42548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42549         memchr.
42550         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42551         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42552         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42553         * modules/mountlist (Depends-on): Add strstr-simple.
42554         * modules/gen-uni-tables (Depends-on): Likewise.
42555         * modules/argz (Depends-on): Add strstr.
42556
42557 2009-06-17  Bruno Haible  <bruno@clisp.org>
42558
42559         * modules/posix_spawn-internal (Depends-on): Add errno.
42560
42561 2009-06-17  Bruno Haible  <bruno@clisp.org>
42562
42563         Define missing ESTALE on Interix 3.5.
42564         * lib/errno.in.h (ESTALE): Assign a value if missing.
42565         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42566         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42567         missing.
42568         * doc/posix-headers/errno.texi: Mention the Interix bug.
42569         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42570
42571 2009-06-15  Eric Blake  <ebb9@byu.net>
42572
42573         memchr, memchr2: add valgrind exception
42574         * lib/memchr.valgrind: New file.
42575         * lib/memchr2.valgrind: New file.
42576         * modules/memchr (Files): Distribute valgrind file.
42577         * modules/memchr2 (Files): Likewise.
42578
42579         docs: memchr is no longer obsolete
42580         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42581         * lib/string.in.h (memchr): Simplify logic.
42582
42583 2009-06-14  Jim Meyering  <meyering@redhat.com>
42584
42585         link-follow: fix the "checking..." message to not mention trailing slash
42586         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42587         never considered trailing slashes.
42588
42589 2009-06-14  Bruno Haible  <bruno@clisp.org>
42590
42591         * m4/memchr.m4: Mention also the bug on IA-64.
42592         * doc/posix-functions/memchr.texi: Likewise.
42593
42594 2009-06-12  Eric Blake  <ebb9@byu.net>
42595
42596         memchr: detect broken x86_64 and alpha implementations
42597         * modules/memchr-tests (Depends-on): Move mmap detection...
42598         * modules/memchr (Depends-on): ...here.
42599         (configure.ac): Set indicator.
42600         * lib/string.in.h (memchr): Declare replacement.
42601         * modules/string (Makefile.am): Trigger replacement.
42602         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42603         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
42604         bugs.
42605         * doc/posix-functions/memchr.texi (memchr): Document the bug.
42606         * modules/getpagesize (License): Relax license.
42607
42608 2009-06-11  Bruno Haible  <bruno@clisp.org>
42609
42610         * lib/idpriv.h: Add more references.
42611
42612 2009-06-08  Bruno Haible  <bruno@clisp.org>
42613
42614         Tests for module 'idpriv-droptemp'.
42615         * modules/idpriv-droptemp-tests: New file.
42616         * tests/test-idpriv-droptemp.sh: New file.
42617         * tests/test-idpriv-droptemp.su.sh: New file.
42618         * tests/test-idpriv-droptemp.c: New file.
42619
42620         New module 'idpriv-droptemp'.
42621         * lib/idpriv-droptemp.c: New file.
42622         * modules/idpriv-droptemp: New file.
42623
42624 2009-06-08  Bruno Haible  <bruno@clisp.org>
42625
42626         Tests for module 'idpriv-drop'.
42627         * modules/idpriv-drop-tests: New file.
42628         * tests/test-idpriv-drop.sh: New file.
42629         * tests/test-idpriv-drop.su.sh: New file.
42630         * tests/test-idpriv-drop.c: New file.
42631
42632         New module 'idpriv-drop'.
42633         * lib/idpriv.h: New file.
42634         * lib-idpriv-drop.c: New file.
42635         * m4/idpriv.m4: New file.
42636         * modules/idpriv-drop: New file.
42637
42638 2009-06-08  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
42641         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42642         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42643         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42644         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42645         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42646         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42647
42648 2009-06-08  Eric Blake  <ebb9@byu.net>
42649
42650         test-strstr: use memory fence, when possible
42651         * tests/test-strstr.c (main): Use memory fence, in order to be
42652         more likely to trigger Debian bug 521737.
42653         * modules/strstr-tests (Files): Pull in additional files.
42654
42655         memchr: no longer obsolete, for wider field testing
42656         * modules/memchr (Status, Notice): Delete, this module is no
42657         longer obsolete.
42658         * modules/vasnprintf (Depends-on): Add memchr.
42659
42660 2009-06-07  Jim Meyering  <meyering@redhat.com>
42661
42662         hash: declare some functions with the warn_unused_result attribute
42663         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
42664
42665 2009-06-07  Bruno Haible  <bruno@clisp.org>
42666
42667         * tests/test-alignof.c: Don't test int64_t if it does not exist.
42668         Reported by Eric Blake.
42669
42670 2009-06-06  Eric Blake  <ebb9@byu.net>
42671
42672         test-alignof: fix typo with long double
42673         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
42674         compiler error.
42675
42676 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
42677
42678         Escape non-texinfo { and }s.
42679         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
42680         markup error.
42681
42682 2009-06-04  Jim Meyering  <meyering@redhat.com>
42683
42684         gitlog-to-changelog: don't infloop on an empty commit log
42685         * build-aux/gitlog-to-changelog: Warn about an empty log message.
42686         Reported by Boris Petersen <transacid@centerim.org>.
42687
42688 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
42689
42690         version-etc: extend for packagers
42691         Add three new configure options, intended for packagers:
42692           --with-packager="packager name"
42693           --with-packager-version="packager-specific version"
42694           --with-packager-bug-reports="packager bug reporting"
42695         An example with coreutils:
42696           $ ./configure \
42697             --with-packager=Gentoo \
42698             --with-packager-bug-report=http://bugs.gentoo.org/ \
42699             --with-packager-version="patchset 1.6"
42700           $ ./src/ls --version | head -n2
42701           ls (GNU coreutils) 7.1-dirty
42702           Packaged by Gentoo (patchset 1.6)
42703         Note that the bug reporting info via --help doesn't show up because
42704         coreutils uses its own custom emit_bug_reporting_address() implementation
42705         in src/system.h.  If it didn't, it'd look like:
42706           $ ./src/ls --help | tail -n4
42707           Report bugs to <bug-coreutils@gnu.org>.
42708           Report Gentoo bugs to <http://bugs.gentoo.org/>.
42709           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
42710           General help using GNU software: <http://www.gnu.org/gethelp/>.
42711         * lib/version-etc.c: Print new information, if provided.
42712         * m4/version-etc.m4: New file.
42713         * modules/version-etc (Files): Add m4/version-etc.m4.
42714         (configure.ac): Add gl_VERSION_ETC.
42715
42716 2009-05-31  Bruno Haible  <bruno@clisp.org>
42717
42718         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
42719         and 'int64_t'.
42720         * modules/alignof-tests (Dependencies): Add stdint.
42721         Reported by Eric Blake.
42722
42723 2009-05-31  Bruno Haible  <bruno@clisp.org>
42724
42725         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
42726         restriction due to compiler bugs.
42727         Reported by Eric Blake.
42728
42729 2009-05-31  Simon Josefsson  <simon@josefsson.org>
42730             Bruno Haible  <bruno@clisp.org>
42731
42732         Fix test-alignof failure.
42733         * lib/alignof.h (alignof_slot): New macro.
42734         (alignof_type): New macro, with the same semantics as the previous
42735         'alignof'.
42736         (alignof): Alias to alignof_slot.
42737         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42738         check that the results are usable as constant expressions.
42739
42740 2009-05-31  Bruno Haible  <bruno@clisp.org>
42741
42742         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42743         * tests/test-memchr.c (main): Check that memchr does not read past the
42744         first occurrence of the byte.
42745         * tests/test-strstr.c (main): Update comment.
42746         Suggested by Eric Blake.
42747
42748 2009-05-30  Bruno Haible  <bruno@clisp.org>
42749
42750         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
42751         detail how to use dumpbin.
42752         Reported by David Byron <dbyron@dbyron.com>.
42753
42754 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42755
42756         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
42757
42758 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42759
42760         * m4/manywarnings.m4: Add GCC 4.4 warnings.
42761
42762 2009-05-28  Bruno Haible  <bruno@clisp.org>
42763
42764         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
42765         build-aux/ files.
42766
42767 2009-05-28  Simon Josefsson  <simon@josefsson.org>
42768
42769         * gnulib-tool (func_import): Transform license on build-aux/ files too.
42770
42771 2009-05-27  Simon Josefsson  <simon@josefsson.org>
42772
42773         * gnulib-tool (sed_transform_main_lib_file)
42774         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
42775         regexps.
42776
42777 2009-05-26  Simon Josefsson  <simon@josefsson.org>
42778
42779         * tests/test-strstr.c: Add another self-test.
42780         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
42781         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
42782
42783 2009-05-23  Bruno Haible  <bruno@clisp.org>
42784
42785         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
42786         change.
42787
42788 2009-05-21  Bruno Haible  <bruno@clisp.org>
42789
42790         Simplify use of mode_t varargs.
42791         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
42792         uses 'mode_t' or 'int'.
42793         * lib/openat.c (openat): Likewise.
42794         * lib/open-safer.c (open_safer): Likewise.
42795         * m4/mode_t.m4: New file.
42796         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
42797         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
42798         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
42799         * modules/open (Files): Add m4/mode_t.m4.
42800         * modules/openat (Files): Likewise.
42801         * modules/fcntl-safer (Files): Likewise.
42802         Suggested by Eric Blake.
42803
42804 2009-05-21  Pádraig Brady  <P@draigbrady.com>
42805
42806         * doc/glibc-functions/fallocate.texi: New file.
42807         * doc/gnulib.texi: Include it.
42808
42809 2009-05-21  Eric Blake  <ebb9@byu.net>
42810             Bruno Haible  <bruno@clisp.org>
42811
42812         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
42813         invocations.
42814         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42815
42816 2009-05-21  Eric Blake  <ebb9@byu.net>
42817             Bruno Haible  <bruno@clisp.org>
42818
42819         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
42820         include_next. Fix of 2008-11-20 commit.
42821         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
42822         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
42823         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
42824         NEXT_MATH_H.
42825         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
42826         instead of NEXT_MATH_H.
42827
42828 2009-05-21  Bruno Haible  <bruno@clisp.org>
42829
42830         Avoid redefinition warnings for SIZE_MAX.
42831         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
42832         Reported by Simon Josefsson.
42833
42834 2009-05-21  Bruno Haible  <bruno@clisp.org>
42835
42836         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
42837         AC_CACHE_VAL.
42838
42839 2009-05-20  Bruno Haible  <bruno@clisp.org>
42840
42841         Make zeroptr.h work on mingw.
42842         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
42843         mprotect.
42844         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
42845         * modules/memchr2-tests (configure.ac): Likewise.
42846         * modules/memcmp-tests (configure.ac): Likewise.
42847         * modules/memmem-tests (configure.ac): Likewise.
42848         * modules/memrchr-tests (configure.ac): Likewise.
42849         Reported by Simon Josefsson.
42850
42851 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42852
42853         * tests/test-glob.c: Include string.h for strcmp prototype.
42854
42855 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42856
42857         * modules/getdelim (Depends-on): Add explicit stdint, although it
42858         was implicitly already pulled in via realloc-posix.
42859         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
42860
42861 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42862
42863         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
42864         G. Christensen" <tgc@jupiterrise.com>.
42865         * m4/sys_socket_h.m4: Check for sa_family_t.
42866         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
42867         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
42868         * tests/test-sys_socket.c: Check that sa_family_t works.
42869
42870 2009-05-18  Eric Blake  <ebb9@byu.net>
42871
42872         maint.mk: allow gnulib_dir in VPATH build
42873         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
42874
42875 2009-05-15  Jim Meyering  <meyering@redhat.com>
42876
42877         maint.mk: Give gnulib_dir a default definition.
42878         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
42879         Thus, most packages no longer need to specify this variable in cfg.mk
42880
42881 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
42882
42883         rename.m4: fix typos that would make non-mingw cross-configure fail
42884         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
42885
42886 2009-05-13  Eric Blake  <ebb9@byu.net>
42887
42888         mmap-anon: avoid out-of-order autoconf expansion
42889         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
42890         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
42891         * modules/memchr-tests (Depends-on): Add extensions.
42892         * modules/memchr2-tests (Depends-on): Add extensions.
42893         * modules/memcmp-tests (Depends-on): Add extensions.
42894         * modules/memmem-tests (Depends-on): Add extensions.
42895         * modules/memrchr-tests (Depends-on): Add extensions.
42896
42897 2009-05-13  Bruno Haible  <bruno@clisp.org>
42898
42899         Make some tests ISO C 99 compliant.
42900         * tests/zerosize-ptr.h: New file.
42901         * tests/test-memchr.c: Include zerosize-ptr.h.
42902         (main): Use a zero-size object pointer instead of NULL.
42903         * tests/test-memchr2.c: Include zerosize-ptr.h.
42904         (main): Use a zero-size object pointer instead of NULL.
42905         * tests/test-memcmp.c: Include zerosize-ptr.h.
42906         (main): Use a zero-size object pointer instead of NULL.
42907         * tests/test-memmem.c: Include zerosize-ptr.h.
42908         (main): Use a zero-size object pointer instead of NULL.
42909         * tests/test-memrchr.c: Include zerosize-ptr.h.
42910         (main): Use a zero-size object pointer instead of NULL.
42911         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
42912         m4/mmap-anon.m4.
42913         (Depends-on): Add getpagesize.
42914         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42915         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
42916         m4/mmap-anon.m4.
42917         (Depends-on): Add getpagesize.
42918         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42919         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
42920         m4/mmap-anon.m4.
42921         (Depends-on): Add getpagesize.
42922         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42923         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
42924         m4/mmap-anon.m4.
42925         (Depends-on): Add getpagesize.
42926         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42927         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
42928         m4/mmap-anon.m4.
42929         (Depends-on): Add getpagesize.
42930         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42931
42932 2009-05-12  Bruno Haible  <bruno@clisp.org>
42933
42934         Tests for module 'alignof'.
42935         * modules/alignof-tests: New file.
42936         * tests/test-alignof.c: New file.
42937
42938 2009-05-12  Bruno Haible  <bruno@clisp.org>
42939
42940         Fix alignof macro.
42941         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
42942         vendor compilers that are always correct.
42943
42944 2009-05-12  Bruno Haible  <bruno@clisp.org>
42945
42946         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42947         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42948         not whether its fully works.
42949
42950 2009-05-12  Bruno Haible  <bruno@clisp.org>
42951
42952         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42953
42954 2009-05-12  Jim Meyering  <meyering@redhat.com>
42955
42956         * top/maint.mk: Adjust backslash alignment.
42957
42958 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42959
42960         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42961
42962 2009-05-11  Eric Blake  <ebb9@byu.net>
42963
42964         argp: avoid undefined behavior
42965         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42966         macros.
42967
42968 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42969
42970         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42971         user.name to prevent git commit from complaining.
42972
42973 2009-05-10  Bruno Haible  <bruno@clisp.org>
42974
42975         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42976         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42977         it rewrites every file name only once.
42978         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42979
42980 2009-05-08  Bruno Haible  <bruno@clisp.org>
42981
42982         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42983         instead of 'max'.
42984
42985 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42986
42987         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42988         sockaddr_storage test.
42989
42990 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42991
42992         * modules/sys_socket (Makefile.am): Substitute
42993         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42994         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42995         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42996         * tests/test-sys_socket.c: Check sockaddr_storage.
42997
42998 2009-05-08  Bruno Haible  <bruno@clisp.org>
42999
43000         New module 'alignof'.
43001         * lib/alignof.h: New file.
43002         * modules/alignof: New file.
43003
43004 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43005             Bruno Haible  <bruno@clisp.org>
43006
43007         Fix test-file-has-acl on FreeBSD.
43008         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43009         mask is implicitly added.
43010         * tests/test-file-has-acl.c: Include <signal.h>.
43011         (main): Terminate the test after 5 seconds.
43012         * modules/acl-tests (configure.ac): Check for alarm function.
43013
43014 2009-05-04  Bruno Haible  <bruno@clisp.org>
43015
43016         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43017         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43018         * modules/errno (configure.ac): Drop AC_REQUIRE.
43019         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43020         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43021
43022 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43023
43024         * modules/glob-tests: New module.
43025         * tests/test-glob.c: Add.
43026
43027 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43028
43029         * modules/fnmatch-tests: New module.
43030         * tests/test-fnmatch.c: Add.
43031
43032 2009-05-04  Eric Blake  <ebb9@byu.net>
43033
43034         maint: make the new no-submodule-changes rule VPATH-safe
43035         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43036
43037 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43038             Bruno Haible  <bruno@clisp.org>
43039
43040         acl: Fix infinite loop on FreeBSD.
43041         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43042         of return value from acl_get_entry.
43043         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43044         Likewise.
43045
43046 2009-05-03  Bruno Haible  <bruno@clisp.org>
43047
43048         * lib/acl-internal.h (acl_entries): Clarify return value.
43049         * lib/acl_entries.c (acl_entries): Likewise.
43050
43051 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43052
43053         Bug fix in acl module.
43054         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43055
43056 2009-05-03  Bruno Haible  <bruno@clisp.org>
43057
43058         Create gperf-generated file in the source dir, not in the build dir.
43059         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43060         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43061         * modules/unicase/locale-language (unicase/locale-languages.h):
43062         Likewise.
43063         * modules/unicase/special-casing (unicase/special-casing-table.h):
43064         Likewise.
43065         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43066         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43067         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43068         Reported by Ralf Wildenhues.
43069
43070 2009-05-03  Bruno Haible  <bruno@clisp.org>
43071
43072         * modules/fnmatch (Description, configure.ac): Taken from
43073         fnmatch-posix.
43074         * modules/fnmatch-posix: Turn into a symbolic reference to the
43075         'fnmatch' module, and deprecate.
43076         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43077
43078 2009-05-03  Bruno Haible  <bruno@clisp.org>
43079
43080         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43081         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43082         Reported by Ralf Wildenhues.
43083
43084 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43085
43086         * m4/fnmatch.m4: Fix fnmatch re-define.
43087
43088 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43089
43090         priv-set: new module and tests; adapt write-any-file
43091         * lib/priv-set.c: New file.
43092         * lib/priv-set.h: New file.
43093         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43094         * lib/write-any-file.c: Simplify by using priv-set module.
43095         * m4/priv-set.m4: New file.
43096         * modules/priv-set: New file.
43097         * modules/unlinkdir: Add dependency on priv-set module.
43098         * modules/write-any-file: Likewise.
43099
43100         Tests for module 'priv-set'.
43101         * modules/priv-set-tests: New file.
43102         * tests/test-priv-set.c: New file.
43103
43104 2009-05-03  Jim Meyering  <meyering@redhat.com>
43105             Bruno Haible  <bruno@clisp.org>
43106
43107         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43108         use the converted UTF-8 variant of the name instead.
43109
43110 2009-05-03  Jim Meyering  <meyering@redhat.com>
43111
43112         tests: tighten some getdate tests
43113         * tests/test-getdate.c (main): Tighten tests: require equality,
43114         not just greater than.  Set TZ envvar to UTC0.
43115
43116 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43117
43118         getdate: correctly interpret "next monday" when run on a Monday
43119         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43120         that e.g., "next tues" (when run on a tuesday) results in a date
43121         that is one week in the future, and not today's date.
43122         I.e., add a week when the wday is the same as the current one.
43123         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43124         and earlier by Martin Bernreuther and Jan Minář.
43125         * tests/test-getdate.c (main): Check that "next DAY" is always in
43126         the future and that "last DAY" is always in the past.
43127
43128 2009-05-02  Jim Meyering  <meyering@redhat.com>
43129
43130         build: ensure that a release build fails when a submodule is unclean
43131         * top/maint.mk (no-submodule-changes): New rule.
43132         (alpha beta major): Depend on it.
43133
43134 2009-05-02  Bruno Haible  <bruno@clisp.org>
43135
43136         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43137         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43138         shell variable gl_fnmatch_required to detect which variant is
43139         requested.
43140         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43141         gl_FUNC_FNMATCH_POSIX.
43142         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43143         exclude fnmatch-posix.
43144
43145 2009-05-02  Bruno Haible  <bruno@clisp.org>
43146
43147         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43148         * modules/mbsrtowcs (License): Change to LGPLv2+.
43149         * modules/strnlen1 (License): Likewise.
43150         Reported by Simon Josefsson.
43151
43152 2009-05-02  Bruno Haible  <bruno@clisp.org>
43153
43154         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43155         "cross".
43156         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43157         gnulib-tool was called with option --source-base=lib.
43158
43159 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43160
43161         Use automake *-local hooks without commands, for extensibility.
43162         * modules/localcharset (Makefile.am): Rename install-exec-local
43163         rule to install-exec-localcharset, and make it a prerequisite of
43164         install-exec-local.  Likewise, rename the uninstall-local rule to
43165         uninstall-localcharset, and make it a prerequisite of the former.
43166
43167 2009-05-01  Bruno Haible  <bruno@clisp.org>
43168
43169         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43170         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43171         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43172         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43173         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43174         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43175         m4/locale-zh.m4, m4/codeset.m4.
43176
43177         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43178         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43179         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43180         m4/locale-zh.m4.
43181
43182         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43183         REPLACE_WCRTOMB if mbstate_t must be replaced.
43184         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43185         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43186
43187 2009-05-01  Bruno Haible  <bruno@clisp.org>
43188
43189         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43190         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43191         dngettext, dcngettext, textdomain, bindtextdomain,
43192         bind_textdomain_codeset): Undefine before redefining.
43193
43194 2009-04-30  Bruno Haible  <bruno@clisp.org>
43195
43196         Fix bug introduced on 2009-04-25.
43197         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43198         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43199         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43200         is defined.
43201         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43202         is defined.
43203         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43204         is defined.
43205         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43206
43207 2009-04-28  Bruno Haible  <bruno@clisp.org>
43208
43209         Comment tweaks.
43210         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43211         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43212         * lib/unicase.h (u*_casexfrm): Likewise.
43213         Reported by Paolo Bonzini.
43214
43215 2009-04-28  Bruno Haible  <bruno@clisp.org>
43216
43217         Fix a compilation error.
43218         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43219         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43220         Reported by Jim Meyering.
43221
43222 2009-04-27  Bruno Haible  <bruno@clisp.org>
43223
43224         New module 'libunistring'.
43225         * modules/libunistring: New file.
43226         * m4/libunistring.m4: New file.
43227         * MODULES.html.sh (Unicode string functions): Add it.
43228
43229 2009-04-27  Eric Blake  <ebb9@byu.net>
43230
43231         maint.mk: allow package-specific header to provide <config.h>
43232         * top/maint.mk (sc_require_config_h): New variable.
43233         (sc_require_config_h, sc_require_config_h_first): Use it.
43234
43235 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43236
43237         * top/maint.mk (sc_avoid_if_before_free): Except
43238         useless-if-before-free script.
43239
43240 2009-04-27  Eric Blake  <ebb9@byu.net>
43241
43242         maintainer-makefile: depend on all required helper scripts
43243         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43244         useless-if-before-free.
43245         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43246         version, rather than assuming gnulib checkout is available.
43247         Reported by Simen Josefsson.
43248
43249 2009-04-26  Bruno Haible  <bruno@clisp.org>
43250
43251         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43252         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43253         "../" or "..".
43254
43255 2009-04-26  Bruno Haible  <bruno@clisp.org>
43256
43257         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43258         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43259         AC_LIB_HAVE_LINKFLAGS.
43260
43261 2009-04-26  Bruno Haible  <bruno@clisp.org>
43262
43263         Simplify calling convention of u*_conv_from_encoding.
43264         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43265         u32_conv_from_encoding): Expect a resultbuf argument and return the
43266         result directly as a pointer.
43267         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43268         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43269         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43270         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43271         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43272         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43273         Update.
43274         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43275         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43276         * lib/vasnprintf.c (VASNPRINTF): Update.
43277         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43278         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43279         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43280         * NEWS: Mention the change.
43281
43282 2009-04-26  Bruno Haible  <bruno@clisp.org>
43283
43284         Simplify calling convention of u*_conv_to_encoding.
43285         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43286         u32_conv_to_encoding): Expect a resultbuf argument and return the
43287         result directly as a pointer.
43288         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43289         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43290         freeing scaled_offsets if mem_iconveha failed.
43291         * lib/unicase/u-casexfrm.h (FUNC): Update.
43292         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43293         * lib/vasnprintf.c (VASNPRINTF): Update.
43294         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43295         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43296         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43297         * NEWS: Mention the change.
43298
43299 2009-04-26  Bruno Haible  <bruno@clisp.org>
43300
43301         Avoid test failures on AIX and OSF/1.
43302         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43303         malloc(0).
43304         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43305         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43306         Likewise.
43307         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43308         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43309         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43310         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43311         * doc/posix-functions/malloc.texi: Document the portability problem
43312         related to malloc(0).
43313
43314 2009-04-26  Bruno Haible  <bruno@clisp.org>
43315
43316         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43317         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43318         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43319
43320 2009-04-25  Bruno Haible  <bruno@clisp.org>
43321
43322         Avoid link error when creating a namespace clean library.
43323         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43324         as macro with arguments if already defined as an alias.
43325         * lib/signbitf.c (gl_signbitf): Don't undefine.
43326         * lib/signbitd.c (gl_signbitd): Don't undefine.
43327         * lib/signbitl.c (gl_signbitl): Don't undefine.
43328
43329 2009-04-25  Jim Meyering  <meyering@redhat.com>
43330
43331         vc-list-files: fix another quoting bug
43332         * build-aux/vc-list-files: Avoid sed backslash expansion
43333         of pathological directory names.
43334
43335 2009-04-25  Eric Blake  <ebb9@byu.net>
43336
43337         vc-list-files: fix shell quoting error
43338         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43339         timestamp.
43340
43341 2009-04-25  Jim Meyering  <meyering@redhat.com>
43342
43343         vc-list-files: restore lost functionality with subdir argument
43344         * build-aux/vc-list-files: When given a non-"." sub-directory
43345         argument, substitute the $dir/ prefix back onto each resulting name.
43346         Otherwise, coreutils' root_tests check would fail.
43347
43348 2009-04-24  Eric Blake  <ebb9@byu.net>
43349
43350         vc-list-files: ignore git symlinks
43351         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43352         than ls-files, to ignore git symlinks.
43353
43354         maint.mk: import improvements from m4
43355         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43356         (move_if_change): Delete unused macro.
43357         (news-date-check, vc-diff-check): Support VPATH builds.
43358         (announcement): Likewise.  Split --bootstrap-tools list...
43359         (boostrap-tools): ...into separate list, which can be overridden
43360         in cfg.mk.
43361         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43362         requiring dependency on useless-if-before-free module.
43363         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43364         Support VPATH builds.
43365
43366 2009-04-24  Jim Meyering  <meyering@redhat.com>
43367
43368         maint.mk: remove coreutils-specific rules and variables
43369         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43370         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43371         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43372
43373         maint.mk: remove obsolete rule
43374         * top/maint.mk (rel-check): Remove rule.
43375         (WGET, WGETFLAGS): Remove now-unused variables.
43376
43377 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43378
43379         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43380         consistency.
43381
43382         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43383         '$(PATH_SEPARATOR)' instead of ':'.
43384
43385 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43386
43387         * lib/getopt1.c (main): Use 'const' for static array.
43388
43389 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43390
43391         * top/maint.mk: Sync with coreutils.
43392         * NEWS: Explain incompatibilities.
43393
43394 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43395             Bruno Haible  <bruno@clisp.org>
43396
43397         Fix cross-compilation results.
43398         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43399         statement, as third argument of AC_TRY_RUN.
43400         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43401         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43402         Likewise.
43403         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43404         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43405         Likewise.
43406         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43407         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43408         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43409
43410 2009-04-20  Bruno Haible  <bruno@clisp.org>
43411
43412         Avoid test failure on mingw.
43413         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43414
43415 2009-04-20  Bruno Haible  <bruno@clisp.org>
43416
43417         Avoid compilation error on mingw.
43418         * modules/localename-tests (Depends-on): Add locale.
43419
43420 2009-04-19  Bruno Haible  <bruno@clisp.org>
43421
43422         Support for building a shared library on Windows platforms.
43423         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43424         (main): Test the presence of UNINORM_NFC here.
43425         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43426         (main): Test the presence of UNINORM_NFD here.
43427         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43428         (main): Test the presence of UNINORM_NFKC here.
43429         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43430         (main): Test the presence of UNINORM_NFKD here.
43431
43432 2009-04-19  Bruno Haible  <bruno@clisp.org>
43433
43434         Avoid a compiler warning.
43435         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43436         Change type of variable 'sequence'.
43437
43438 2009-04-19  Bruno Haible  <bruno@clisp.org>
43439
43440         * modules/configmake (Makefile.am): When the contents of configmake.h
43441         does not change, arrange to preserve its modification time.
43442
43443 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43444
43445         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43446         gettext domain.
43447
43448 2009-04-16  Jim Meyering  <meyering@redhat.com>
43449
43450         useless-if-before-free: improve conversion code
43451         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43452         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43453
43454 2009-04-14  Bruno Haible  <bruno@clisp.org>
43455
43456         * modules/fcntl (Depends-on): Add extensions.
43457         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43458
43459 2009-04-12  Ben Pfaff  <blp@gnu.org>
43460
43461         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43462         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43463
43464 2009-03-20  Ben Pfaff  <blp@gnu.org>
43465
43466         Make rename replace existing destinations on Windows.
43467         * m4/rename.m4: Add test for Mingw.
43468         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43469         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43470         * doc/posix-functions/rename.texi: Document.
43471
43472 2009-04-10  Bruno Haible  <bruno@clisp.org>
43473
43474         New include file "iconveh.h".
43475         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43476         * lib/striconveh.h: Include it.
43477         (enum iconv_ilseq_handler): Remove definition.
43478         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43479         striconveh.h.
43480         * lib/striconveha.c: Include striconveh.h.
43481         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43482         * modules/striconveh (Files): Add lib/iconveh.h.
43483         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43484         lib/striconveh.h.
43485
43486 2009-04-10  Bruno Haible  <bruno@clisp.org>
43487
43488         * lib/uniconv.h: Update comment.
43489
43490 2009-04-10  Bruno Haible  <bruno@clisp.org>
43491
43492         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43493         always.
43494         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43495         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43496         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43497         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43498         "unistring-notinline.h", so that the function gets defined always.
43499         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43500         * lib/unistr/u8-uctomb.c: Likewise.
43501         * lib/unistr/u16-mbtouc.c: Likewise.
43502         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43503         * lib/unistr/u16-uctomb.c: Likewise.
43504         * lib/unistr/u32-mbtouc.c: Likewise.
43505         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43506         * lib/unistr/u32-uctomb.c: Likewise.
43507
43508 2009-04-10  Bruno Haible  <bruno@clisp.org>
43509
43510         Mark 'utime' obsolete.
43511         * modules/utime (Status, Notice): New sections.
43512         Suggested by Jim Meyering.
43513
43514         Fix cross-compile guess for utime test.
43515         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43516         autoconf.
43517         * doc/posix-functions/utime.texi: Give more precisions.
43518         Reported by Jan <ipif@ymail.com>.
43519
43520 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43521
43522         filevercmp: correct today's change
43523         * lib/filevercmp.c: Also handle coreutils' test inputs.
43524         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43525
43526         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43527         for reporting it.
43528         * lib/filevercmp.c: Special handle for "", "." and "..".
43529         * tests/test-filevercmp.c: Enlarge the set suite.
43530
43531 2009-04-07  Jim Meyering  <meyering@redhat.com>
43532
43533         useless-if-before-free: show how to remove braced useless free, too
43534         * build-aux/useless-if-before-free: still only in a comment, though.
43535
43536 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43537
43538         maint.mk: import changes to syntax-check macros from coreutils
43539         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43540         Use them in the relevant macros.
43541
43542 2009-04-06  Bruno Haible  <bruno@clisp.org>
43543
43544         Fix unportable use of bit-fields.
43545         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43546         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43547         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43548
43549 2009-04-06  Bruno Haible  <bruno@clisp.org>
43550
43551         Avoid test failures on AIX and OSF/1.
43552         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43553         that malloc(0) = NULL.
43554         * tests/unicase/test-u8-tolower.c (check): Likewise.
43555         * tests/unicase/test-u8-totitle.c (check): Likewise.
43556         * tests/unicase/test-u8-toupper.c (check): Likewise.
43557         * tests/unicase/test-u16-casefold.c (check): Likewise.
43558         * tests/unicase/test-u16-tolower.c (check): Likewise.
43559         * tests/unicase/test-u16-totitle.c (check): Likewise.
43560         * tests/unicase/test-u16-toupper.c (check): Likewise.
43561         * tests/unicase/test-u32-casefold.c (check): Likewise.
43562         * tests/unicase/test-u32-tolower.c (check): Likewise.
43563         * tests/unicase/test-u32-totitle.c (check): Likewise.
43564         * tests/unicase/test-u32-toupper.c (check): Likewise.
43565         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43566         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43567         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43568         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43569         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43570         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43571         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43572         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43573         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43574         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43575         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43576         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43577
43578 2009-04-05  Bruno Haible  <bruno@clisp.org>
43579
43580         Work around an autoconf limitation.
43581         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43582         comment line if it would be longer than 3 KB.
43583
43584 2009-04-05  Bruno Haible  <bruno@clisp.org>
43585
43586         Avoid test failure with libiconv-1.13.
43587         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43588         of the expected test results.
43589
43590 2009-04-05  Bruno Haible  <bruno@clisp.org>
43591
43592         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43593         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43594         that it should be installed.
43595
43596 2009-04-05  Bruno Haible  <bruno@clisp.org>
43597
43598         * gnulib-tool: New option --copy-file.
43599         (func_usage): Document it.
43600         (func_dest_tmpfilename): Moved out of func_import.
43601         (func_add_file, func_update_file): New functions, extracted from
43602         func_import.
43603         (func_import): Update.
43604
43605 2009-04-05  Karl Berry  <karl@gnu.org>
43606
43607         * README: prominently mention gnulib-tool.
43608         Rearrange sections so getting the code is near the top.
43609
43610 2009-04-05  Bruno Haible  <bruno@clisp.org>
43611
43612         * lib/unicase.h: Mention u*_cmp2.
43613         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43614         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
43615         * lib/unicase/ulc-casecmp.c: Likewise.
43616         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
43617         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
43618         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
43619         unistr/u8-cmp.
43620         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
43621         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
43622         unistr/u16-cmp.
43623         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
43624         unistr/u32-cmp.
43625
43626         * lib/uninorm.h: Mention u*_cmp2.
43627         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43628         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
43629         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
43630         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
43631         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
43632         unistr/u8-cmp.
43633         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
43634         unistr/u16-cmp.
43635         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
43636         unistr/u32-cmp.
43637
43638         New module 'unistr/u32-cmp2'.
43639         * lib/unistr/u32-cmp2.c: New file.
43640         * modules/unistr/u32-cmp2: New file.
43641
43642         New module 'unistr/u16-cmp2'.
43643         * lib/unistr/u16-cmp2.c: New file.
43644         * modules/unistr/u16-cmp2: New file.
43645
43646         New module 'unistr/u8-cmp2'.
43647         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
43648         * lib/unistr/u8-cmp2.c: New file.
43649         * lib/unistr/u-cmp2.h: New file.
43650         * modules/unistr/u8-cmp2: New file.
43651
43652 2009-04-05  Bruno Haible  <bruno@clisp.org>
43653
43654         * lib/unictype.h (uc_property_is_valid): New macro.
43655         * tests/unictype/test-pr_byname.c (main): Use it.
43656
43657         * lib/unistr.h: Doc fixes.
43658         * lib/uniconv.h: Doc fixes.
43659         * lib/unictype.h: Doc fixes.
43660
43661 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
43662
43663         Port coreutils 7.2 to Solaris 8.
43664
43665         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
43666         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
43667         for Solaris 8.  This is a bit of a hack, as it means it's the
43668         caller's responsibility to add -lnsl if needed, but most likely it
43669         won't be needed since only getaddrinfo uses this and getaddrinfo
43670         isn't needed on Solaris 8.
43671
43672         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
43673         problem to Solaris 8 encountered with coreutils 7.2, which
43674         resulted in a message "fnmatch.c:292: warning: passing argument 4
43675         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
43676         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
43677
43678 2009-04-03  Simon Josefsson  <simon@josefsson.org>
43679
43680         * m4/ld-version-script.m4: Add FIXME comment.
43681
43682 2009-04-02  Simon Josefsson  <simon@josefsson.org>
43683
43684         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
43685         SOVERSION variable.
43686
43687 2009-04-02  Bruno Haible  <bruno@clisp.org>
43688
43689         * Makefile (info, html, dvi, pdf): Combine the rules.
43690         Suggested by Jim Meyering.
43691
43692 2009-04-01  Bruno Haible  <bruno@clisp.org>
43693
43694         * Makefile (info, html, dvi, pdf): New targets.
43695         Reported by Reuben Thomas <rrt@sc3d.org>.
43696
43697 2009-04-01  Bruno Haible  <bruno@clisp.org>
43698
43699         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
43700         can be put into PATH.
43701         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
43702
43703 2009-04-01  Bruno Haible  <bruno@clisp.org>
43704
43705         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
43706
43707 2009-04-01  Bruno Haible  <bruno@clisp.org>
43708
43709         Rename module 'visibility'.
43710         * modules/lib-symbol-visibility: Renamed from modules/visibility.
43711         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
43712         * doc/gnulib.texi: Update.
43713         * MODULES.html.sh (Misc): Update.
43714         * NEWS: Mention the change.
43715
43716 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43717
43718         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
43719         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
43720         Eric Blake <ebb9@byu.net> for review.
43721         * MODULES.html.sh: Add lib-msvc-compat.
43722         * doc/gnulib.texi: Link to new section.
43723         * m4/ld-output-def.m4: New file.
43724         * doc/ld-output-def.texi: New file.
43725
43726 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43727
43728         Rename ld-version-script to lib-symbol-versions.  Suggested by
43729         Bruno Haible <bruno@clisp.org>.
43730         * modules/ld-version-script: Renamed to lib-symbol-versions.
43731         * doc/ld-version-script.texi: Fix module name.
43732         * MODULES.html.sh: Add lib-symbol-versions.
43733
43734 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43735
43736         * modules/u64-tests: New file.
43737         * tests/test-u64.c: New file.
43738
43739 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43740
43741         * MODULES.html.sh: Mention u64.
43742         * modules/u64: New module.
43743         * modules/crypto/sha512: Depend on u64 module instead of providing
43744         u64.h.
43745
43746 2009-03-27  Eric Blake  <ebb9@byu.net>
43747
43748         test-strerror: make debugging EAI_SYSTEM easier
43749         * modules/getaddrinfo-tests (Depends-on): Add strerror.
43750         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
43751         failure was EAI_SYSTEM.
43752
43753 2009-03-25  Bruno Haible  <bruno@clisp.org>
43754
43755         Fix a problem with --enable-relocatable on Solaris 7.
43756         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
43757         since 2008-02-24.
43758
43759 2009-03-25  Eric Blake  <ebb9@byu.net>
43760
43761         test-sockets: avoid gcc warning
43762         * tests/test-sockets.c (main): Silence compiler warning.
43763
43764 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43765
43766         New modules nproc, pthread, contributed by Glen Lenker.
43767
43768         * MODULES.html.sh: Add pthread, nproc.
43769         * lib/nproc.c: New file.
43770         * lib/nproc.h: New file.
43771         * lib/pthread.in.h: New file.
43772         * m4/pthread.m4: New file.
43773         * modules/nproc: New file.
43774         * modules/pthread: New file.
43775
43776 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43777
43778         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
43779         New variable.
43780
43781 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
43782
43783         filevercmp: handle simple~ and numbered.~3~ backup suffixes
43784         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
43785         * tests/test-filevercmp.c: Add tests for backup suffixes.
43786
43787 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43788
43789         * modules/stdlib (Depends-on): Add stdint, needed when defining
43790         struct random_data on, for example, HP-UX 10.20.  Reported by
43791         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43792
43793 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43794
43795         * lib/readline.c (readline): Call fflush on stdout after printing
43796         prompt.
43797
43798 2009-03-20  Bruno Haible  <bruno@clisp.org>
43799
43800         Remove dependency from 'close' module to -lws2_32 on native Windows.
43801         * lib/close-hook.h: New file.
43802         * lib/close-hook.c: New file.
43803         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
43804         w32sock.h.
43805         (_gl_close_fd_maybe_socket): Remove function.
43806         (rpl_close): Invoke execute_all_close_hooks instead of
43807         _gl_close_fd_maybe_socket.
43808         * lib/sockets.c: Include close-hook.h, w32sock.h.
43809         (close_fd_maybe_socket): New function, essentially from lib/close.c.
43810         (close_sockets_hook): New variable.
43811         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
43812         (gl_sockets_cleanup): Unregister it.
43813         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
43814         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
43815         * modules/close-hook: New file.
43816         * modules/close (Files): Remove lib/w32sock.h.
43817         (Depends-on): Add close-hook.
43818         (Link): Remove section.
43819         * modules/sockets (Files): Add lib/w32sock.h.
43820         (Depends-on): Add close-hook.
43821         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
43822         invocation.
43823         * NEWS: Mention that LIB_CLOSE is gone.
43824
43825 2009-03-23  Eric Blake  <ebb9@byu.net>
43826
43827         signal-tests: test previous patch
43828         * tests/test-signal.c: New file.
43829         * modules/signal-tests: Likewise.
43830
43831         signal.h: always support 'volatile sig_atomic_t'
43832         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
43833         (gl_SIGNAL_H_DEFAULTS): Add a default.
43834         * modules/signal (Makefile.am): Substitute if needed.
43835         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
43836         users can blindly add volatile.
43837         * doc/posix-headers/signal.texi (signal.h): Document it.
43838         Reported by Matthew Woehlke.
43839
43840 2009-03-23  Jim Meyering  <meyering@redhat.com>
43841
43842         pathmax: PATH_MAX: use pathconf only when available
43843         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
43844         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
43845         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
43846         This avoids a link failure in a PSP cross-compilation environment
43847         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
43848
43849         * lib/vasnprintf.c (divide): Fix typo in comment.
43850
43851 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43852
43853         * gnulib-tool (func_filter_filelist): Fix comment.
43854
43855 2009-03-20  Bruno Haible  <bruno@clisp.org>
43856
43857         Make sockets.h self-contained.
43858         * lib/sockets.c: Include sockets.h first.
43859         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
43860
43861 2009-03-19  Eric Blake  <ebb9@byu.net>
43862
43863         doc: mention more functions added in cygwin 1.7.0
43864         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
43865         addition.
43866         * doc/posix-functions/log2f.texi: Likewise.
43867
43868 2009-03-19  Jim Meyering  <meyering@redhat.com>
43869
43870         fsusage: avoid syntax error due to statement-before-declaration
43871         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
43872         after all declarations.  Reported by Matthew Woehlke in
43873         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
43874
43875 2009-03-18  Eric Blake  <ebb9@byu.net>
43876
43877         build-aux/compile: sync from automake
43878         * build-aux/compile: New file, from automake.
43879         * config/srclist.txt: Mention build-aux/compile.
43880
43881 2009-03-17  Bruno Haible  <bruno@clisp.org>
43882
43883         * lib/git-merge-changelog.c: Fix typo in comment.
43884         Reported by Reuben Thomas <rrt@sc3d.org>.
43885
43886 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
43887
43888         * m4/regex.m4: update and improve help for
43889         --without-included-regex.
43890
43891 2009-03-17  Simon Josefsson  <simon@josefsson.org>
43892
43893         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
43894         failure on missing include files.
43895
43896 2009-03-17  Eric Blake  <ebb9@byu.net>
43897
43898         doc: mention more functions added in cygwin 1.7.0
43899         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
43900         addition.
43901         * doc/posix-functions/fwscanf.texi: Likewise.
43902         * doc/posix-functions/swprintf.texi: Likewise.
43903         * doc/posix-functions/swscanf.texi: Likewise.
43904         * doc/posix-functions/vfwprintf.texi: Likewise.
43905         * doc/posix-functions/vfwscanf.texi: Likewise.
43906         * doc/posix-functions/vswprintf.texi: Likewise.
43907         * doc/posix-functions/vswscanf.texi: Likewise.
43908         * doc/posix-functions/vwprintf.texi: Likewise.
43909         * doc/posix-functions/vwscanf.texi: Likewise.
43910         * doc/posix-functions/wcscasecmp.texi: Likewise.
43911         * doc/posix-functions/wcsdup.texi: Likewise.
43912         * doc/posix-functions/wcsftime.texi: Likewise.
43913         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43914         * doc/posix-functions/wprintf.texi: Likewise.
43915         * doc/posix-functions/wscanf.texi: Likewise.
43916         * doc/glibc-functions/gethostbyname2.texi: Likewise.
43917
43918 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43919
43920         maint.mk: really add $(AM_MAKEFLAGS)
43921         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
43922         was inadvertently omitted in the last commit.
43923         Spotted by Bruno Haible.
43924
43925         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
43926         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
43927         $(AM_MAKEFLAGS)' rather than plain `make'.
43928
43929         gnulib-tool: execute $MAKE not make
43930         * gnulib-tool: Default $MAKE to 'make'.
43931         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
43932         than make.  Initialize $MAKE in the do-autobuild script.
43933
43934         gnulib-tool: use $MAKE not make in generated files
43935         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
43936         make, in generated files.  Initialize $MAKE in the do-autobuild
43937         script.
43938
43939         * top/GNUmakefile (_have-git-version-gen): Fix typo.
43940
43941         GNUmakefile: disable parallelism only for multiple, recursive targets
43942         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
43943         additions in the Makefile.
43944         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
43945         by Automake.
43946         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43947         are listed on the command line and at least one of them is
43948         listed in $(ALL_RECURSIVE_TARGETS).
43949
43950 2009-03-14  Bruno Haible  <bruno@clisp.org>
43951
43952         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43953         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43954         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43955         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43956         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43957         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43958         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43959         unistr/u8-uctomb.
43960         * modules/unistr/u8-strchr (Depends-on): Likewise.
43961         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43962         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43963         unistr/u16-uctomb.
43964         * modules/unistr/u16-strchr (Depends-on): Likewise.
43965         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43966
43967 2009-03-12  Bruno Haible  <bruno@clisp.org>
43968
43969         Work around select() bug on Interix 3.5.
43970         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43971         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43972         * m4/select.m4: New file.
43973         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43974         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43975         * modules/select (Files): Add m4/select.m4.
43976         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43977         * modules/nanosleep (Depends-on): Add select.
43978         * modules/poll (Depends-on): Likewise.
43979         * doc/posix-functions/select.texi: Mention the Interix bug.
43980         Reported by Markus Duft <mduft@gentoo.org>.
43981
43982         * lib/select.c: Renamed from lib/winsock-select.c.
43983         * modules/select (Files): Add lib/select.c, remove
43984         lib/winsock-select.c.
43985         (configure.ac): Update.
43986
43987 2009-03-12  Jim Meyering  <meyering@redhat.com>
43988
43989         avoid gcc warnings about unused macro definitions
43990         * lib/readtokens.c (STREQ): Remove unused definition.
43991         * lib/xmalloc.c (SIZE_MAX): Likewise.
43992         * lib/openat-die.c (N_): Likewise.
43993         * lib/mountlist.c (SIZE_MAX): Remove definition.
43994         Instead, include <stdint.h>.
43995         * lib/readutmp.c: Likewise.
43996         * modules/readutmp (Depends-on): Add stdint.
43997         * modules/mountlist (Depends-on): Add stdint.
43998         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43999
44000 2009-03-10  Bruno Haible  <bruno@clisp.org>
44001
44002         Tests for module 'mbmemcasecoll'.
44003         * modules/mbmemcasecoll-tests: New file.
44004         * tests/test-mbmemcasecoll1.sh: New file.
44005         * tests/test-mbmemcasecoll2.sh: New file.
44006         * tests/test-mbmemcasecoll3.sh: New file.
44007         * tests/test-mbmemcasecoll.c: New file.
44008
44009         New module 'mbmemcasecoll'.
44010         * lib/mbmemcasecoll.h: New file.
44011         * lib/mbmemcasecoll.c: New file.
44012         * modules/mbmemcasecoll: New file.
44013
44014         * tests/test-mbmemcasecmp.h: New file, extracted from
44015         tests/test-mbmemcasecmp.c.
44016         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44017         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44018         (main): Update.
44019         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44020
44021 2009-03-09  Bruno Haible  <bruno@clisp.org>
44022
44023         Tests for module 'mbmemcasecmp'.
44024         * modules/mbmemcasecmp-tests: New file.
44025         * tests/test-mbmemcasecmp1.sh: New file.
44026         * tests/test-mbmemcasecmp2.sh: New file.
44027         * tests/test-mbmemcasecmp3.sh: New file.
44028         * tests/test-mbmemcasecmp.c: New file.
44029
44030         New module 'mbmemcasecmp'.
44031         * lib/mbmemcasecmp.h: New file.
44032         * lib/mbmemcasecmp.c: New file.
44033         * modules/mbmemcasecmp: New file.
44034
44035 2009-03-09  Bruno Haible  <bruno@clisp.org>
44036
44037         Tests for module 'unicase/ulc-casecoll'.
44038         * modules/unicase/ulc-casecoll-tests: New file.
44039         * tests/unicase/test-ulc-casecoll1.sh: New file.
44040         * tests/unicase/test-ulc-casecoll2.sh: New file.
44041         * tests/unicase/test-ulc-casecoll.c: New file.
44042
44043         New module 'unicase/ulc-casecoll'.
44044         * lib/unicase.h (ulc_casecoll): New declaration.
44045         * lib/unicase/ulc-casecoll.c: New file.
44046         * modules/unicase/ulc-casecoll: New file.
44047
44048         New module 'unicase/ulc-casexfrm'.
44049         * lib/unicase.h (ulc_casexfrm): New declaration.
44050         * lib/unicase/ulc-casexfrm.c: New file.
44051         * modules/unicase/ulc-casexfrm: New file.
44052
44053 2009-03-09  Bruno Haible  <bruno@clisp.org>
44054
44055         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44056         invocations.
44057
44058         * m4/mbscasecmp.m4: Remove file.
44059         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44060         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44061
44062         * m4/mbscasestr.m4: Remove file.
44063         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44064         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44065
44066         * m4/mbschr.m4: Remove file.
44067         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44068         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44069
44070         * m4/mbscspn.m4: Remove file.
44071         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44072         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44073
44074         * m4/mbslen.m4: Remove file.
44075         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44076         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44077
44078         * m4/mbsncasecmp.m4: Remove file.
44079         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44080         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44081
44082         * m4/mbsnlen.m4: Remove file.
44083         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44084         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44085
44086         * m4/mbspbrk.m4: Remove file.
44087         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44088         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44089
44090         * m4/mbspcasecmp.m4: Remove file.
44091         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44092         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44093
44094         * m4/mbsrchr.m4: Remove file.
44095         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44096         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44097
44098         * m4/mbssep.m4: Remove file.
44099         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44100         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44101
44102         * m4/mbsspn.m4: Remove file.
44103         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44104         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44105
44106         * m4/mbsstr.m4: Remove file.
44107         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44108         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44109
44110         * m4/mbstok_r.m4: Remove file.
44111         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44112         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44113
44114         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44115
44116         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44117         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44118
44119         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44120
44121 2009-03-08  Bruno Haible  <bruno@clisp.org>
44122
44123         Tests for module 'unicase/ulc-casecmp'.
44124         * modules/unicase/ulc-casecmp-tests: New file.
44125         * tests/unicase/test-ulc-casecmp1.sh: New file.
44126         * tests/unicase/test-ulc-casecmp2.sh: New file.
44127         * tests/unicase/test-ulc-casecmp.c: New file.
44128
44129         New module 'unicase/ulc-casecmp'.
44130         * lib/unicase.h (ulc_casecmp): New declaration.
44131         * lib/unicase/ulc-casecmp.c: New file.
44132         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44133         'const SRC_UNIT *'.
44134         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44135         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44136         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44137         * modules/unicase/ulc-casecmp: New file.
44138
44139         Tests for module 'unicase/u32-is-cased'.
44140         * modules/unicase/u32-is-cased-tests: New file.
44141         * tests/unicase/test-u32-is-cased.c: New file.
44142
44143         Tests for module 'unicase/u16-is-cased'.
44144         * modules/unicase/u16-is-cased-tests: New file.
44145         * tests/unicase/test-u16-is-cased.c: New file.
44146
44147         Tests for module 'unicase/u8-is-cased'.
44148         * modules/unicase/u8-is-cased-tests: New file.
44149         * tests/unicase/test-u8-is-cased.c: New file.
44150         * tests/unicase/test-is-cased.h: New file.
44151
44152         New module 'unicase/u32-is-cased'.
44153         * lib/unicase/u32-is-cased.c: New file.
44154         * modules/unicase/u32-is-cased: New file.
44155
44156         New module 'unicase/u16-is-cased'.
44157         * lib/unicase/u16-is-cased.c: New file.
44158         * modules/unicase/u16-is-cased: New file.
44159
44160         New module 'unicase/u8-is-cased'.
44161         * lib/unicase/u8-is-cased.c: New file.
44162         * lib/unicase/u-is-cased.h: New file.
44163         * modules/unicase/u8-is-cased: New file.
44164
44165         Tests for module 'unicase/u32-is-casefolded'.
44166         * modules/unicase/u32-is-casefolded-tests: New file.
44167         * tests/unicase/test-u32-is-casefolded.c: New file.
44168
44169         Tests for module 'unicase/u16-is-casefolded'.
44170         * modules/unicase/u16-is-casefolded-tests: New file.
44171         * tests/unicase/test-u16-is-casefolded.c: New file.
44172
44173         Tests for module 'unicase/u8-is-casefolded'.
44174         * modules/unicase/u8-is-casefolded-tests: New file.
44175         * tests/unicase/test-u8-is-casefolded.c: New file.
44176         * tests/unicase/test-is-casefolded.h: New file.
44177
44178         New module 'unicase/u32-is-casefolded'.
44179         * lib/unicase/u32-is-casefolded.c: New file.
44180         * modules/unicase/u32-is-casefolded: New file.
44181
44182         New module 'unicase/u16-is-casefolded'.
44183         * lib/unicase/u16-is-casefolded.c: New file.
44184         * modules/unicase/u16-is-casefolded: New file.
44185
44186         New module 'unicase/u8-is-casefolded'.
44187         * lib/unicase/u8-is-casefolded.c: New file.
44188         * modules/unicase/u8-is-casefolded: New file.
44189
44190         Tests for module 'unicase/u32-is-titlecase'.
44191         * modules/unicase/u32-is-titlecase-tests: New file.
44192         * tests/unicase/test-u32-is-titlecase.c: New file.
44193
44194         Tests for module 'unicase/u16-is-titlecase'.
44195         * modules/unicase/u16-is-titlecase-tests: New file.
44196         * tests/unicase/test-u16-is-titlecase.c: New file.
44197
44198         Tests for module 'unicase/u8-is-titlecase'.
44199         * modules/unicase/u8-is-titlecase-tests: New file.
44200         * tests/unicase/test-u8-is-titlecase.c: New file.
44201         * tests/unicase/test-is-titlecase.h: New file.
44202
44203         New module 'unicase/u32-is-titlecase'.
44204         * lib/unicase/u32-is-titlecase.c: New file.
44205         * modules/unicase/u32-is-titlecase: New file.
44206
44207         New module 'unicase/u16-is-titlecase'.
44208         * lib/unicase/u16-is-titlecase.c: New file.
44209         * modules/unicase/u16-is-titlecase: New file.
44210
44211         New module 'unicase/u8-is-titlecase'.
44212         * lib/unicase/u8-is-titlecase.c: New file.
44213         * modules/unicase/u8-is-titlecase: New file.
44214
44215         Tests for module 'unicase/u32-is-lowercase'.
44216         * modules/unicase/u32-is-lowercase-tests: New file.
44217         * tests/unicase/test-u32-is-lowercase.c: New file.
44218
44219         Tests for module 'unicase/u16-is-lowercase'.
44220         * modules/unicase/u16-is-lowercase-tests: New file.
44221         * tests/unicase/test-u16-is-lowercase.c: New file.
44222
44223         Tests for module 'unicase/u8-is-lowercase'.
44224         * modules/unicase/u8-is-lowercase-tests: New file.
44225         * tests/unicase/test-u8-is-lowercase.c: New file.
44226         * tests/unicase/test-is-lowercase.h: New file.
44227
44228         New module 'unicase/u32-is-lowercase'.
44229         * lib/unicase/u32-is-lowercase.c: New file.
44230         * modules/unicase/u32-is-lowercase: New file.
44231
44232         New module 'unicase/u16-is-lowercase'.
44233         * lib/unicase/u16-is-lowercase.c: New file.
44234         * modules/unicase/u16-is-lowercase: New file.
44235
44236         New module 'unicase/u8-is-lowercase'.
44237         * lib/unicase/u8-is-lowercase.c: New file.
44238         * modules/unicase/u8-is-lowercase: New file.
44239
44240         Tests for module 'unicase/u32-is-uppercase'.
44241         * modules/unicase/u32-is-uppercase-tests: New file.
44242         * tests/unicase/test-u32-is-uppercase.c: New file.
44243
44244         Tests for module 'unicase/u16-is-uppercase'.
44245         * modules/unicase/u16-is-uppercase-tests: New file.
44246         * tests/unicase/test-u16-is-uppercase.c: New file.
44247
44248         Tests for module 'unicase/u8-is-uppercase'.
44249         * modules/unicase/u8-is-uppercase-tests: New file.
44250         * tests/unicase/test-u8-is-uppercase.c: New file.
44251         * tests/unicase/test-is-uppercase.h: New file.
44252
44253         New module 'unicase/u32-is-uppercase'.
44254         * lib/unicase/u32-is-uppercase.c: New file.
44255         * modules/unicase/u32-is-uppercase: New file.
44256
44257         New module 'unicase/u16-is-uppercase'.
44258         * lib/unicase/u16-is-uppercase.c: New file.
44259         * modules/unicase/u16-is-uppercase: New file.
44260
44261         New module 'unicase/u8-is-uppercase'.
44262         * lib/unicase/u8-is-uppercase.c: New file.
44263         * modules/unicase/u8-is-uppercase: New file.
44264
44265         New module 'unicase/u32-is-invariant'.
44266         * lib/unicase/u32-is-invariant.c: New file.
44267         * modules/unicase/u32-is-invariant: New file.
44268
44269         New module 'unicase/u16-is-invariant'.
44270         * lib/unicase/u16-is-invariant.c: New file.
44271         * modules/unicase/u16-is-invariant: New file.
44272
44273         New module 'unicase/u8-is-invariant'.
44274         * lib/unicase/u8-is-invariant.c: New file.
44275         * lib/unicase/invariant.h: New file.
44276         * lib/unicase/u-is-invariant.h: New file.
44277         * modules/unicase/u8-is-invariant: New file.
44278
44279         Tests for module 'unicase/u32-casecoll'.
44280         * modules/unicase/u32-casecoll-tests: New file.
44281         * tests/unicase/test-u32-casecoll.c: New file.
44282
44283         Tests for module 'unicase/u16-casecoll'.
44284         * modules/unicase/u16-casecoll-tests: New file.
44285         * tests/unicase/test-u16-casecoll.c: New file.
44286
44287         Tests for module 'unicase/u8-casecoll'.
44288         * modules/unicase/u8-casecoll-tests: New file.
44289         * tests/unicase/test-u8-casecoll.c: New file.
44290
44291         New module 'unicase/u32-casecoll'.
44292         * lib/unicase/u32-casecoll.c: New file.
44293         * modules/unicase/u32-casecoll: New file.
44294
44295         New module 'unicase/u16-casecoll'.
44296         * lib/unicase/u16-casecoll.c: New file.
44297         * modules/unicase/u16-casecoll: New file.
44298
44299         New module 'unicase/u8-casecoll'.
44300         * lib/unicase/u8-casecoll.c: New file.
44301         * lib/unicase/u-casecoll.h: New file.
44302         * modules/unicase/u8-casecoll: New file.
44303
44304         New module 'unicase/u32-casexfrm'.
44305         * lib/unicase/u32-casexfrm.c: New file.
44306         * modules/unicase/u32-casexfrm: New file.
44307
44308         New module 'unicase/u16-casexfrm'.
44309         * lib/unicase/u16-casexfrm.c: New file.
44310         * modules/unicase/u16-casexfrm: New file.
44311
44312         New module 'unicase/u8-casexfrm'.
44313         * lib/unicase/u8-casexfrm.c: New file.
44314         * lib/unicase/u-casexfrm.h: New file.
44315         * modules/unicase/u8-casexfrm: New file.
44316
44317         Tests for module 'unicase/u32-casecmp'.
44318         * modules/unicase/u32-casecmp-tests: New file.
44319         * tests/unicase/test-u32-casecmp.c: New file.
44320
44321         Tests for module 'unicase/u16-casecmp'.
44322         * modules/unicase/u16-casecmp-tests: New file.
44323         * tests/unicase/test-u16-casecmp.c: New file.
44324
44325         Tests for module 'unicase/u8-casecmp'.
44326         * modules/unicase/u8-casecmp-tests: New file.
44327         * tests/unicase/test-u8-casecmp.c: New file.
44328         * tests/unicase/test-casecmp.h: New file.
44329
44330         New module 'unicase/u32-casecmp'.
44331         * lib/unicase/u32-casecmp.c: New file.
44332         * modules/unicase/u32-casecmp: New file.
44333
44334         New module 'unicase/u16-casecmp'.
44335         * lib/unicase/u16-casecmp.c: New file.
44336         * modules/unicase/u16-casecmp: New file.
44337
44338         New module 'unicase/u8-casecmp'.
44339         * lib/unicase/u8-casecmp.c: New file.
44340         * lib/unicase/u-casecmp.h: New file.
44341         * modules/unicase/u8-casecmp: New file.
44342
44343         Tests for module 'unicase/u32-casefold'.
44344         * modules/unicase/u32-casefold-tests: New file.
44345         * tests/unicase/test-u32-casefold.c: New file.
44346
44347         Tests for module 'unicase/u16-casefold'.
44348         * modules/unicase/u16-casefold-tests: New file.
44349         * tests/unicase/test-u16-casefold.c: New file.
44350
44351         Tests for module 'unicase/u8-casefold'.
44352         * modules/unicase/u8-casefold-tests: New file.
44353         * tests/unicase/test-u8-casefold.c: New file.
44354
44355         New module 'unicase/u32-casefold'.
44356         * lib/unicase/u32-casefold.c: New file.
44357         * modules/unicase/u32-casefold: New file.
44358
44359         New module 'unicase/u16-casefold'.
44360         * lib/unicase/u16-casefold.c: New file.
44361         * modules/unicase/u16-casefold: New file.
44362
44363         New module 'unicase/u8-casefold'.
44364         * lib/unicase/u8-casefold.c: New file.
44365         * lib/unicase/u-casefold.h: New file.
44366         * modules/unicase/u8-casefold: New file.
44367
44368         New module 'unicase/tocasefold'.
44369         * lib/unicase/casefold.h: New file.
44370         * lib/unicase/tocasefold.c: New file.
44371         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44372         * modules/unicase/tocasefold: New file.
44373
44374         Tests for module 'unicase/u32-totitle'.
44375         * modules/unicase/u32-totitle-tests: New file.
44376         * tests/unicase/test-u32-totitle.c: New file.
44377
44378         Tests for module 'unicase/u16-totitle'.
44379         * modules/unicase/u16-totitle-tests: New file.
44380         * tests/unicase/test-u16-totitle.c: New file.
44381
44382         Tests for module 'unicase/u8-totitle'.
44383         * modules/unicase/u8-totitle-tests: New file.
44384         * tests/unicase/test-u8-totitle.c: New file.
44385
44386         New module 'unicase/u32-totitle'.
44387         * lib/unicase/u32-totitle.c: New file.
44388         * modules/unicase/u32-totitle: New file.
44389
44390         New module 'unicase/u16-totitle'.
44391         * lib/unicase/u16-totitle.c: New file.
44392         * modules/unicase/u16-totitle: New file.
44393
44394         New module 'unicase/u8-totitle'.
44395         * lib/unicase/u8-totitle.c: New file.
44396         * lib/unicase/u-totitle.h: New file.
44397         * modules/unicase/u8-totitle: New file.
44398
44399         Tests for module 'unicase/u32-tolower'.
44400         * modules/unicase/u32-tolower-tests: New file.
44401         * tests/unicase/test-u32-tolower.c: New file.
44402
44403         Tests for module 'unicase/u16-tolower'.
44404         * modules/unicase/u16-tolower-tests: New file.
44405         * tests/unicase/test-u16-tolower.c: New file.
44406
44407         Tests for module 'unicase/u8-tolower'.
44408         * modules/unicase/u8-tolower-tests: New file.
44409         * tests/unicase/test-u8-tolower.c: New file.
44410
44411         New module 'unicase/u32-tolower'.
44412         * lib/unicase/u32-tolower.c: New file.
44413         * modules/unicase/u32-tolower: New file.
44414
44415         New module 'unicase/u16-tolower'.
44416         * lib/unicase/u16-tolower.c: New file.
44417         * modules/unicase/u16-tolower: New file.
44418
44419         New module 'unicase/u8-tolower'.
44420         * lib/unicase/u8-tolower.c: New file.
44421         * modules/unicase/u8-tolower: New file.
44422
44423         Tests for module 'unicase/u32-toupper'.
44424         * modules/unicase/u32-toupper-tests: New file.
44425         * tests/unicase/test-u32-toupper.c: New file.
44426
44427         Tests for module 'unicase/u16-toupper'.
44428         * modules/unicase/u16-toupper-tests: New file.
44429         * tests/unicase/test-u16-toupper.c: New file.
44430
44431         Tests for module 'unicase/u8-toupper'.
44432         * modules/unicase/u8-toupper-tests: New file.
44433         * tests/unicase/test-u8-toupper.c: New file.
44434
44435         New module 'unicase/u32-toupper'.
44436         * lib/unicase/u32-toupper.c: New file.
44437         * modules/unicase/u32-toupper: New file.
44438
44439         New module 'unicase/u16-toupper'.
44440         * lib/unicase/u16-toupper.c: New file.
44441         * modules/unicase/u16-toupper: New file.
44442
44443         New module 'unicase/u8-toupper'.
44444         * lib/unicase/u8-toupper.c: New file.
44445         * modules/unicase/u8-toupper: New file.
44446
44447         New module 'unicase/u32-casemap'.
44448         * lib/unicase/u32-casemap.c: New file.
44449         * modules/unicase/u32-casemap: New file.
44450
44451         New module 'unicase/u16-casemap'.
44452         * lib/unicase/u16-casemap.c: New file.
44453         * modules/unicase/u16-casemap: New file.
44454
44455         New module 'unicase/u8-casemap'.
44456         * lib/unicase/unicasemap.h: New file.
44457         * lib/unicase/u8-casemap.c: New file.
44458         * lib/unicase/u-casemap.h: New file.
44459         * modules/unicase/u8-casemap: New file.
44460
44461         New module 'unicase/special-casing'.
44462         * lib/unicase/special-casing.h: New file.
44463         * lib/unicase/special-casing.c: New file.
44464         * lib/unicase/special-casing-table.gperf: New file, generated by
44465         gen-uni-tables.c.
44466         * modules/unicase/special-casing: New file.
44467
44468         Tests for module 'unicase/locale-language'.
44469         * modules/unicase/locale-language-tests: New file.
44470         * tests/unicase/test-locale-language.sh: New file.
44471         * tests/unicase/test-locale-language.c: New file.
44472
44473         New module 'unicase/locale-language'.
44474         * lib/unicase/locale-language.c: New file.
44475         * lib/unicase/locale-languages.gperf: New file.
44476         * modules/unicase/locale-language: New file.
44477
44478         Generate more tables for case conversion and case folding.
44479         * lib/gen-uni-tables.c (SCC_*): New enum items.
44480         (struct special_casing_rule): New type.
44481         (casing_rules, num_casing_rules, allocated_casing_rules): New
44482         variables.
44483         (add_casing_rule, fill_casing_rules): New functions.
44484         (struct casefold_rule): New type.
44485         (casefolding_rules, num_casefolding_rules,
44486         allocated_casefolding_rules): New variables.
44487         (fill_casefolding_rules): New function.
44488         (unicode_casefold): New variable.
44489         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44490         sort_casing_rules, output_casing_rules): New functions.
44491         (main): Accept to more arguments: SpecialCasing.txt and
44492         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44493         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44494         Output mapping for casefolding.
44495
44496         * lib/unicase.h: Include stdbool.h, uninorm.h.
44497         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44498         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44499         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44500         arguments.
44501         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44502         resultp arguments.
44503         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44504         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44505         resultp arguments.
44506         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44507         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44508         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44509         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44510         declarations.
44511         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44512
44513 2009-03-08  Bruno Haible  <bruno@clisp.org>
44514
44515         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44516         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44517         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44518         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44519
44520 2009-03-07  Bruno Haible  <bruno@clisp.org>
44521
44522         Adjust u*_normcmp, u*_normcoll API.
44523         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44524         u16_normcoll, u32_normcoll): Change failure conventions.
44525         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44526         errno and return -1.
44527         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44528
44529 2009-03-07  Bruno Haible  <bruno@clisp.org>
44530
44531         Tests for module 'uninorm/u32-normcoll'.
44532         * modules/uninorm/u32-normcoll-tests: New file.
44533         * tests/uninorm/test-u32-normcoll.c: New file.
44534
44535         Tests for module 'uninorm/u16-normcoll'.
44536         * modules/uninorm/u16-normcoll-tests: New file.
44537         * tests/uninorm/test-u16-normcoll.c: New file.
44538
44539         Tests for module 'uninorm/u8-normcoll'.
44540         * modules/uninorm/u8-normcoll-tests: New file.
44541         * tests/uninorm/test-u8-normcoll.c: New file.
44542
44543 2009-03-07  Bruno Haible  <bruno@clisp.org>
44544
44545         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44546         tests/uninorm/test-u32-normcmp.c.
44547         * tests/uninorm/test-u32-normcmp.c: Include it.
44548         (test_nonascii): New function, extracted from main. Add some more
44549         tests.
44550         (main): Invoke test_ascii and test_nonascii.
44551         * modules/uninorm/u32-normcmp-tests (Files): Add
44552         tests/uninorm/test-u32-normcmp.h.
44553         (Depends-on): Remove uninorm/u32-normcmp.
44554
44555         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44556         tests/uninorm/test-u16-normcmp.c.
44557         * tests/uninorm/test-u16-normcmp.c: Include it.
44558         (test_nonascii): New function, extracted from main. Add some more
44559         tests.
44560         (main): Invoke test_ascii and test_nonascii.
44561         * modules/uninorm/u16-normcmp-tests (Files): Add
44562         tests/uninorm/test-u16-normcmp.h.
44563         (Depends-on): Remove uninorm/u16-normcmp.
44564
44565         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44566         tests/uninorm/test-u8-normcmp.c.
44567         * tests/uninorm/test-u8-normcmp.c: Include it.
44568         (test_nonascii): New function, extracted from main. Add some more
44569         tests.
44570         (main): Invoke test_ascii and test_nonascii.
44571         * modules/uninorm/u8-normcmp-tests (Files): Add
44572         tests/uninorm/test-u8-normcmp.h.
44573         (Depends-on): Remove uninorm/u8-normcmp.
44574
44575 2009-03-07  Bruno Haible  <bruno@clisp.org>
44576
44577         New module 'uninorm/u32-normcoll'.
44578         * lib/uninorm/u32-normcoll.c: New file.
44579         * modules/uninorm/u32-normcoll: New file.
44580
44581         New module 'uninorm/u16-normcoll'.
44582         * lib/uninorm/u16-normcoll.c: New file.
44583         * modules/uninorm/u16-normcoll: New file.
44584
44585         New module 'uninorm/u8-normcoll'.
44586         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44587         declarations.
44588         * lib/uninorm/u8-normcoll.c: New file.
44589         * lib/uninorm/u-normcoll.h: New file.
44590         * modules/uninorm/u8-normcoll: New file.
44591
44592         New module 'uninorm/u32-normxfrm'.
44593         * lib/uninorm/u32-normxfrm.c: New file.
44594         * modules/uninorm/u32-normxfrm: New file.
44595
44596         New module 'uninorm/u16-normxfrm'.
44597         * lib/uninorm/u16-normxfrm.c: New file.
44598         * modules/uninorm/u16-normxfrm: New file.
44599
44600         New module 'uninorm/u8-normxfrm'.
44601         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
44602         declarations.
44603         * lib/uninorm/u8-normxfrm.c: New file.
44604         * lib/uninorm/u-normxfrm.h: New file.
44605         * modules/uninorm/u8-normxfrm: New file.
44606
44607 2009-03-07  Bruno Haible  <bruno@clisp.org>
44608
44609         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
44610         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
44611         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
44612
44613 2009-03-07  Bruno Haible  <bruno@clisp.org>
44614
44615         New module 'memxfrm'.
44616         * lib/memxfrm.h: New file.
44617         * lib/memxfrm.c: New file.
44618         * modules/memxfrm: New file.
44619
44620 2009-03-07  Bruno Haible  <bruno@clisp.org>
44621
44622         New module 'memcmp2'.
44623         * lib/memcmp2.h: New file.
44624         * lib/memcmp2.c: New file.
44625         * modules/memcmp2: New file.
44626
44627 2009-03-07  Bruno Haible  <bruno@clisp.org>
44628
44629         Tests for module 'uninorm/decomposing-form'.
44630         * modules/uninorm/decomposing-form-tests: New file.
44631         * tests/uninorm/test-decomposing-form.c: New file.
44632
44633         New module 'uninorm/decomposing-form'.
44634         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
44635         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
44636         Add 'decomposing_variant' field.
44637         * lib/uninorm/decomposing-form.c: New file.
44638         * lib/uninorm/nfc.c (uninorm_nfc): Update.
44639         * lib/uninorm/nfd.c (uninorm_nfd): Update.
44640         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
44641         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
44642         * modules/uninorm/decomposing-form: New file.
44643         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
44644         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
44645
44646 2009-03-07  Bruno Haible  <bruno@clisp.org>
44647
44648         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
44649         strings.
44650
44651 2009-03-06  Bruno Haible  <bruno@clisp.org>
44652
44653         Tests for module 'uninorm/u32-normcmp'.
44654         * tests/uninorm/test-u32-normcmp.c: New file.
44655         * modules/uninorm/u32-normcmp-tests: New file.
44656
44657         Tests for module 'uninorm/u16-normcmp'.
44658         * tests/uninorm/test-u16-normcmp.c: New file.
44659         * modules/uninorm/u16-normcmp-tests: New file.
44660
44661         Tests for module 'uninorm/u8-normcmp'.
44662         * tests/uninorm/test-u8-normcmp.c: New file.
44663         * modules/uninorm/u8-normcmp-tests: New file.
44664
44665         New module 'uninorm/u32-normcmp'.
44666         * lib/uninorm/u32-normcmp.c: New file.
44667         * modules/uninorm/u32-normcmp: New file.
44668
44669         New module 'uninorm/u16-normcmp'.
44670         * lib/uninorm/u16-normcmp.c: New file.
44671         * modules/uninorm/u16-normcmp: New file.
44672
44673         New module 'uninorm/u8-normcmp'.
44674         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
44675         declarations.
44676         * lib/uninorm/u8-normcmp.c: New file.
44677         * lib/uninorm/u-normcmp.h: New file.
44678         * modules/uninorm/u8-normcmp: New file.
44679
44680 2009-03-06  Bruno Haible  <bruno@clisp.org>
44681
44682         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
44683         Reported by Eric Blake.
44684
44685 2009-03-06  Eric Blake  <ebb9@byu.net>
44686             Bruno Haible  <bruno@clisp.org>
44687
44688         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
44689         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
44690         condition.
44691         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44692         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
44693         condition.
44694         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44695
44696 2009-03-06  Eric Blake  <ebb9@byu.net>
44697
44698         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
44699         to avoid compiler warnings.
44700         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
44701
44702 2009-03-05  Bruno Haible  <bruno@clisp.org>
44703
44704         * tests/test-ftell.c (main): Disable test beyond end of file on
44705         FreeMiNT.
44706         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44707
44708 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
44709
44710         * lib/filevercmp.c: Move hidden files up in ordering.
44711         * tests/test-filevercmp.c: Add tests for hidden files.
44712
44713 2009-03-04  Bruno Haible  <bruno@clisp.org>
44714
44715         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
44716         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
44717         AM_CFLAGS.
44718         Reported by Simon Josefsson.
44719
44720 2009-03-03  Bruno Haible  <bruno@clisp.org>
44721
44722         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
44723         Reported by Simon Josefsson.
44724
44725         * doc/ld-version-script.texi: Update node reference.
44726
44727 2009-03-03  Bruno Haible  <bruno@clisp.org>
44728
44729         * modules/visibility (License): Change to 'unlimited'.
44730         Suggested by Simon Josefsson.
44731
44732 2009-03-03  Jim Meyering  <meyering@redhat.com>
44733
44734         unlinkdir: cannot_unlink_dir may modify process state
44735         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
44736         it's neither thread-safe nor appropriate for use in a library.
44737
44738 2009-03-03  Eric Blake  <ebb9@byu.net>
44739
44740         test-closein: silence test under Darwin
44741         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44742         care if it dies from EPIPE or EBADF.
44743
44744 2009-03-03  Bruno Haible  <bruno@clisp.org>
44745
44746         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
44747         earlier.
44748         * doc/visibility.texi: Fix @node and @section.
44749
44750 2009-03-03  Simon Josefsson  <simon@josefsson.org>
44751
44752         * doc/gnulib.texi: Link to sections for ld version script and
44753         visibility.
44754         * doc/visibility.texi: Add @node and @section.
44755         * modules/ld-version-script: New module.
44756         * m4/ld-version-script.m4: New file.
44757         * doc/ld-version-script.texi: New file.
44758
44759 2009-03-02  David Lutterkort  <lutter@redhat.com>
44760
44761         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
44762         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44763
44764 2009-03-02  Bruno Haible  <bruno@clisp.org>
44765
44766         * doc/visibility.texi: Mention libtool's -export-symbols option.
44767
44768 2009-03-02  Jim Meyering  <meyering@redhat.com>
44769
44770         announce-gen: new option: --no-print-checksums
44771         * build-aux/announce-gen (usage): Describe it.
44772         (print_checksums): Print a newline here, not in the [*] footnote.
44773         (main): Honor it.
44774
44775 2009-03-01  Bruno Haible  <bruno@clisp.org>
44776
44777         Use socklen_t in the native Windows replacements prototypes.
44778         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
44779         instead of 'int'.
44780         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44781         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44782         * modules/getsockopt (Depends-on): Add socklen.
44783         * modules/setsockopt (Depends-on): Add socklen.
44784
44785 2009-03-01  Bruno Haible  <bruno@clisp.org>
44786
44787         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
44788         least 4.2.
44789
44790 2009-03-01  Eric Blake  <ebb9@byu.net>
44791             Bruno Haible  <bruno@clisp.org>
44792
44793         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
44794         error messages.
44795         * lib/wait-process.c (wait_subprocess): Omit error message about
44796         deadly signal sent to the child of termsigp != NULL.
44797
44798 2009-03-01  Eric Blake  <ebb9@byu.net>
44799
44800         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
44801
44802 2009-03-01  Bruno Haible  <bruno@clisp.org>
44803
44804         Avoid a gcc warning.
44805         * tests/test-sched.c (b): Make global.
44806         Reported by Eric Blake.
44807
44808 2009-01-19  Martin Lambers  <marlam@marlam.de>
44809
44810         Provide POSIX semantics for socket timeout options on W32.
44811         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
44812         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
44813         * modules/setsockopt: Depend on sys_time module for struct timeval.
44814         * modules/getsockopt: Depend on sys_time module for struct timeval.
44815
44816 2009-03-01  Simon Josefsson  <simon@josefsson.org>
44817
44818         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
44819         __USE_GNU, for consistency with netdb.in.h.
44820         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44821
44822 2009-03-01  Bruno Haible  <bruno@clisp.org>
44823
44824         More support for FreeMiNT.
44825         * lib/fseeko.c (rpl_fseeko): Complete last commit.
44826         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44827
44828 2009-03-01  Bruno Haible  <bruno@clisp.org>
44829
44830         More support for FreeMiNT.
44831         * lib/fpurge.c (fpurge): Correct last commit.
44832         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44833
44834 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44835
44836         Fix unportable awk script in vc-list-files.
44837         * build-aux/vc-list-files: In the replacement awk script, use
44838         substr with a second argument of 1, not zero.
44839         Report by Simon Josefsson.
44840
44841 2009-02-28  Bruno Haible  <bruno@clisp.org>
44842
44843         More support for FreeMiNT.
44844         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
44845         to FreeMiNT today.
44846         * lib/fwriting.c (fwriting): Likewise.
44847         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
44848
44849 2009-02-28  Bruno Haible  <bruno@clisp.org>
44850
44851         * tests/test-freadseek.c (main): Disable test beyond end of file on
44852         FreeMiNT.
44853         * tests/test-ftello.c (main): Likewise.
44854         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44855
44856 2009-02-28  Bruno Haible  <bruno@clisp.org>
44857
44858         Add tentative support for FreeMiNT.
44859         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
44860         * lib/fpurge.c (fpurge): Likewise.
44861         * lib/freadable.c (freadable): Likewise.
44862         * lib/freading.c (freading): Likewise.
44863         * lib/freadptr.c (freadptr): Likewise.
44864         * lib/freadseek.c (freadptrinc): Likewise.
44865         * lib/fseeko.c (rpl_fseeko): Likewise.
44866         * lib/fseterr.c (fseterr): Likewise.
44867         * lib/fwritable.c (fwritable): Likewise.
44868         * lib/fwriting.c (fwriting): Likewise.
44869         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
44870         Hourihane.
44871         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44872
44873 2009-02-28  Bruno Haible  <bruno@clisp.org>
44874
44875         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
44876         SIGCHLD.
44877         Reported by Jim Meyering.
44878
44879 2009-02-28  Bruno Haible  <bruno@clisp.org>
44880
44881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
44882         Mention the results of these tests on various platforms.
44883         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
44884         order.
44885         * doc/posix-functions/printf.texi: Likewise.
44886         * doc/posix-functions/snprintf.texi: Likewise.
44887         * doc/posix-functions/sprintf.texi: Likewise.
44888         * doc/posix-functions/vfprintf.texi: Likewise.
44889         * doc/posix-functions/vprintf.texi: Likewise.
44890         * doc/posix-functions/vsnprintf.texi: Likewise.
44891         * doc/posix-functions/vsprintf.texi: Likewise.
44892         * doc/glibc-functions/obstack_printf.texi: Likewise.
44893         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44894
44895 2009-02-28  Bruno Haible  <bruno@clisp.org>
44896
44897         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
44898         Reported by Loïc Minier <lool@dooz.org>.
44899
44900 2009-02-27  Bruno Haible  <bruno@clisp.org>
44901
44902         * gnulib-tool (func_import): Make the sed expression used to create the
44903         sed script for updating the .gitignore file POSIX compliant.
44904         Reported by Eric Blake.
44905
44906 2009-02-27  Bruno Haible  <bruno@clisp.org>
44907
44908         * gnulib-tool (sed): Don't alias as "sed --posix".
44909         Reported by Eric Blake.
44910
44911 2009-02-27  Bruno Haible  <bruno@clisp.org>
44912
44913         Avoid test link errors.
44914         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
44915         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
44916         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
44917         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
44918         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44919
44920 2009-02-27  Bruno Haible  <bruno@clisp.org>
44921
44922         Avoid spurious "(cached)" in configure output.
44923         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
44924         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
44925         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44926         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44927         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44928         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44929         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44930         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44931         Reported by Eric Blake.
44932
44933 2009-02-27  Eric Blake  <ebb9@byu.net>
44934
44935         printf: fix regression in previous patch
44936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
44937
44938 2009-02-27  Bruno Haible  <bruno@clisp.org>
44939
44940         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
44941         value.
44942         * lib/stdint.in.h: Likewise.
44943         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
44944
44945 2009-02-27  Eric Blake  <ebb9@byu.net>
44946
44947         doc: mention more functions added in cygwin 1.7.0
44948         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44949         addition.
44950         * doc/posix-functions/open_wmemstream.texi: Likewise.
44951         * doc/posix-functions/wcsnlen.texi: Likewise.
44952         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44953         * doc/posix-functions/wcstod.texi: Likewise.
44954         * doc/posix-functions/wcstof.texi: Likewise.
44955         * doc/posix-functions/wcstoimax.texi: Likewise.
44956         * doc/posix-functions/wcstok.texi: Likewise.
44957         * doc/posix-functions/wcstoumax.texi: Likewise.
44958
44959         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44960         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44961         * doc/posix-functions/fprintf.texi: Update.
44962         * doc/posix-functions/printf.texi: Update.
44963         * doc/posix-functions/snprintf.texi: Update.
44964         * doc/posix-functions/sprintf.texi: Update.
44965         * doc/posix-functions/vfprintf.texi: Update.
44966         * doc/posix-functions/vprintf.texi: Update.
44967         * doc/posix-functions/vsnprintf.texi: Update.
44968         * doc/posix-functions/vsprintf.texi: Update.
44969         * doc/glibc-functions/obstack_printf.texi: Update.
44970         * doc/glibc-functions/obstack_vprintf.texi: Update.
44971
44972 2009-02-26  Eric Blake  <ebb9@byu.net>
44973
44974         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44975         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44976         compilation bug by using runtime conversion.
44977         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44978         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44979         * modules/ceill-tests (Files): Use nan.h.
44980         * modules/floorl-tests (Files): Likewise.
44981         * modules/frexpl-tests (Files): Likewise.
44982         * modules/isnanl-tests (Files): Likewise.
44983         * modules/ldexpl-tests (Files): Likewise.
44984         * modules/roundl-tests (Files): Likewise.
44985         * modules/truncl-tests (Files): Likewise.
44986         * tests/test-ceill.c (main): Use a working NaN.
44987         * tests/test-floorl.c (main): Likewise.
44988         * tests/test-frexpl.c (main): Likewise.
44989         * tests/test-isnan.c (test_long_double): Likewise.
44990         * tests/test-isnanl.h (main): Likewise.
44991         * tests/test-ldexpl.h (main): Likewise.
44992         * tests/test-roundl.h (main): Likewise.
44993         * tests/test-truncl.h (main): Likewise.
44994         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44995
44996 2009-02-26  Eric Blake  <ebb9@byu.net>
44997             Bruno Haible  <bruno@clisp.org>
44998
44999         Work around a *printf bug with %ls on Solaris.
45000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45001         precision is specified, sprintf stops converting the wide string
45002         argument when the number of bytes that have been produced by this
45003         conversion equals or exceeds the precision.
45004         * doc/posix-functions/fprintf.texi: Update.
45005         * doc/posix-functions/printf.texi: Update.
45006         * doc/posix-functions/snprintf.texi: Update.
45007         * doc/posix-functions/sprintf.texi: Update.
45008         * doc/posix-functions/vfprintf.texi: Update.
45009         * doc/posix-functions/vprintf.texi: Update.
45010         * doc/posix-functions/vsnprintf.texi: Update.
45011         * doc/posix-functions/vsprintf.texi: Update.
45012         * doc/glibc-functions/obstack_printf.texi: Update.
45013         * doc/glibc-functions/obstack_vprintf.texi: Update.
45014
45015 2009-02-26  Eric Blake  <ebb9@byu.net>
45016
45017         stdlib: favor compiler check of random.h
45018         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45019         to avoid an ObjC random.h installed by Swarm.
45020
45021 2009-02-26  Bruno Haible  <bruno@clisp.org>
45022
45023         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45024         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45025         Reported by Gary V. Vaughan <gary@gnu.org>.
45026
45027 2009-02-26  Bruno Haible  <bruno@clisp.org>
45028
45029         Fix *printf behaviour regarding the %ls directive.
45030         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45031         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45032         NEED_PRINTF_DIRECTIVE_LS.
45033         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45034         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45035         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45036         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45037         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45038         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45039         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45040         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45041         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45042         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45043         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45044         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45045         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45046         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45047         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45048         * doc/posix-functions/fprintf.texi: Update.
45049         * doc/posix-functions/printf.texi: Update.
45050         * doc/posix-functions/snprintf.texi: Update.
45051         * doc/posix-functions/sprintf.texi: Update.
45052         * doc/posix-functions/vfprintf.texi: Update.
45053         * doc/posix-functions/vprintf.texi: Update.
45054         * doc/posix-functions/vsnprintf.texi: Update.
45055         * doc/posix-functions/vsprintf.texi: Update.
45056         * doc/glibc-functions/obstack_printf.texi: Update.
45057         * doc/glibc-functions/obstack_vprintf.texi: Update.
45058         Reported by Eric Blake.
45059
45060 2009-02-25  Bruno Haible  <bruno@clisp.org>
45061
45062         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45063         with known value.
45064         Reported by Gary V. Vaughan <gary@gnu.org>.
45065
45066 2009-02-25  Bruno Haible  <bruno@clisp.org>
45067
45068         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45069         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45070         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45071         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45072         Reported by Gary V. Vaughan <gary@gnu.org>.
45073
45074 2009-02-25  Bruno Haible  <bruno@clisp.org>
45075
45076         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45077         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45078         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45079         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45080         Reported by Gary V. Vaughan <gary@gnu.org>.
45081
45082 2009-02-25  Eric Blake  <ebb9@byu.net>
45083
45084         tests: skip fseek/ftell tests if ungetc is broken
45085         * m4/ungetc.m4: New file.
45086         * modules/fseek-tests: Split test, so ungetc dependency is
45087         separate from rest of test.
45088         * modules/fseeko-tests: Likewise.
45089         * modules/ftell-tests: Likewise.
45090         * modules/ftello-tests: Likewise.
45091         * tests/test-fseek.c (main): Isolate ungetc dependency.
45092         * tests/test-fseeko.c (main): Likewise.
45093         * tests/test-ftell.c (main): Likewise.
45094         * tests/test-ftello.c (main): Likewise.
45095         * tests/test-fseek2.sh: New file.
45096         * tests/test-fseeko2.sh: Likewise.
45097         * tests/test-ftell2.sh: Likewise.
45098         * tests/test-ftello2.sh: Likewise.
45099
45100 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
45101
45102         test-getaddrinfo: fix usage of skip return code 77
45103         * tests/test-gettaddrinfo.c: Return skip code 77 only
45104         for first occurance of skip (4x77 is not 77)
45105
45106 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45107
45108         strtod: avoid C99 decl-after-statement
45109         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45110
45111 2009-02-24  Eric Blake  <ebb9@byu.net>
45112
45113         strtod: detect HP-UX 11.31 bug
45114         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45115         Reported by Gary V. Vaughan.
45116
45117 2009-02-23  Bruno Haible  <bruno@clisp.org>
45118
45119         Fix invalid read past end of memory block.
45120         * lib/vasnprintf.c (DCHAR_SET): Define.
45121         (local_wcslen): Define only when needed.
45122         (local_strnlen, local_wcsnlen): New functions.
45123         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45124         directives that involve a conversion ourselves.
45125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45126         wcsnlen, mbrtowc, wcrtomb.
45127         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45128         * tests/test-vasprintf-posix.c (test_function): Likewise.
45129         * tests/test-snprintf-posix.h (test_function): Likewise.
45130         * tests/test-sprintf-posix.h (test_function): Likewise.
45131         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45132
45133 2009-02-22  Bruno Haible  <bruno@clisp.org>
45134
45135         Implement new clarified decomposition of Hangul syllables.
45136         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45137         of type LTV, return only a pairwise decomposition.
45138         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45139         Likewise.
45140         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45141         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45142         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45143
45144 2009-02-22  Bruno Haible  <bruno@clisp.org>
45145
45146         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45147         zero-length results and shrink excess allocated memory.
45148         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45149         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45150         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45151         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45152         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45153         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45154         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45155         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45156         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45157         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45158         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45159         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45160
45161 2009-02-21  Bruno Haible  <bruno@clisp.org>
45162
45163         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45164         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45165         spaces after a period. Put a space between a macro name and its
45166         argument list. Trivial rewordings.
45167         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45168         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45169         (main): Return 0 explicitly.
45170
45171 2009-02-21  Bruno Haible  <bruno@clisp.org>
45172
45173         Tests for module 'uninorm/filter'.
45174         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45175         * modules/uninorm/filter-tests: New file.
45176
45177         New module 'uninorm/filter'.
45178         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45179         uninorm_filter_flush, uninorm_filter_free): New declarations.
45180         * lib/uninorm/uninorm-filter.c: New file.
45181         * modules/uninorm/filter: New file.
45182
45183 2009-02-21  Bruno Haible  <bruno@clisp.org>
45184
45185         Tests for module 'uninorm/nfkc'.
45186         * tests/uninorm/test-nfkc.c: New file.
45187         * tests/uninorm/test-u8-nfkc.c: New file.
45188         * tests/uninorm/test-u16-nfkc.c: New file.
45189         * tests/uninorm/test-u32-nfkc.c: New file.
45190         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45191         * tests/uninorm/test-u32-nfkc-big.c: New file.
45192         * modules/uninorm/nfkc-tests: New file.
45193
45194         New module 'uninorm/nfkc'.
45195         * lib/uninorm/nfkc.c: New file.
45196         * modules/uninorm/nfkc: New file.
45197
45198         Tests for module 'uninorm/nfkd'.
45199         * tests/uninorm/test-nfkd.c: New file.
45200         * tests/uninorm/test-u8-nfkd.c: New file.
45201         * tests/uninorm/test-u16-nfkd.c: New file.
45202         * tests/uninorm/test-u32-nfkd.c: New file.
45203         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45204         * tests/uninorm/test-u32-nfkd-big.c: New file.
45205         * modules/uninorm/nfkd-tests: New file.
45206
45207         New module 'uninorm/nfkd'.
45208         * lib/uninorm/nfkd.c: New file.
45209         * modules/uninorm/nfkd: New file.
45210
45211         Tests for module 'uninorm/nfc'.
45212         * tests/uninorm/test-nfc.c: New file.
45213         * tests/uninorm/test-u8-nfc.c: New file.
45214         * tests/uninorm/test-u16-nfc.c: New file.
45215         * tests/uninorm/test-u32-nfc.c: New file.
45216         * tests/uninorm/test-u32-nfc-big.sh: New file.
45217         * tests/uninorm/test-u32-nfc-big.c: New file.
45218         * modules/uninorm/nfc-tests: New file.
45219
45220         New module 'uninorm/nfc'.
45221         * lib/uninorm/nfc.c: New file.
45222         * modules/uninorm/nfc: New file.
45223
45224         Tests for module 'uninorm/nfd'.
45225         * tests/uninorm/test-nfd.c: New file.
45226         * tests/uninorm/test-u8-nfd.c: New file.
45227         * tests/uninorm/test-u16-nfd.c: New file.
45228         * tests/uninorm/test-u32-nfd.c: New file.
45229         * tests/uninorm/test-u32-nfd-big.sh: New file.
45230         * tests/uninorm/test-u32-nfd-big.c: New file.
45231         * tests/uninorm/test-u32-normalize-big.h: New file.
45232         * tests/uninorm/test-u32-normalize-big.c: New file.
45233         * tests/uninorm/NormalizationTest.txt: New file, created from
45234         Unicode 5.1.0 NormalizationTest.txt.
45235         * modules/uninorm/nfd-tests: New file.
45236
45237         New module 'uninorm/nfd'.
45238         * lib/uninorm/nfd.c: New file.
45239         * modules/uninorm/nfd: New file.
45240
45241         New module 'uninorm/u32-normalize'.
45242         * lib/uninorm/u32-normalize.c: New file.
45243         * modules/uninorm/u32-normalize: New file.
45244
45245         New module 'uninorm/u16-normalize'.
45246         * lib/uninorm/u16-normalize.c: New file.
45247         * modules/uninorm/u16-normalize: New file.
45248
45249         New module 'uninorm/u8-normalize'.
45250         * lib/uninorm/u8-normalize.c: New file.
45251         * lib/uninorm/normalize-internal.h: New file.
45252         * lib/uninorm/u-normalize-internal.h: New file.
45253         * modules/uninorm/u8-normalize: New file.
45254
45255         New module 'uninorm/decompose-internal'.
45256         * lib/uninorm/decompose-internal.c: New file.
45257         * modules/uninorm/decompose-internal: New file.
45258
45259         Tests for module 'uninorm/composition'.
45260         * tests/uninorm/test-composition.c: New file.
45261         * modules/uninorm/composition-tests: New file.
45262
45263         New module 'uninorm/composition'.
45264         * lib/uninorm/composition.c: New file.
45265         * lib/uninorm/composition-table.gperf: New file, generated by
45266         gen-uni-tables.
45267         * modules/uninorm/composition: New file.
45268
45269         Tests for module 'uninorm/compat-decomposition'.
45270         * tests/uninorm/test-compat-decomposition.c: New file.
45271         * modules/uninorm/compat-decomposition-tests: New file.
45272
45273         New module 'uninorm/compat-decomposition'.
45274         * lib/uninorm/decompose-internal.h: New file.
45275         * lib/uninorm/compat-decomposition.c: New file.
45276         * modules/uninorm/compat-decomposition: New file.
45277
45278         Tests for module 'uninorm/canonical-decomposition'.
45279         * tests/uninorm/test-canonical-decomposition.c: New file.
45280         * modules/uninorm/canonical-decomposition-tests: New file.
45281
45282         New module 'uninorm/canonical-decomposition'.
45283         * lib/uninorm/canonical-decomposition.c: New file.
45284         * modules/uninorm/canonical-decomposition: New file.
45285
45286         Tests for module 'uninorm/decomposition'.
45287         * tests/uninorm/test-decomposition.c: New file.
45288         * modules/uninorm/decomposition-tests: New file.
45289
45290         New module 'uninorm/decomposition'.
45291         * lib/uninorm/decomposition.c: New file.
45292         * modules/uninorm/decomposition: New file.
45293
45294         New module 'uninorm/decomposition-table'.
45295         * lib/uninorm/decomposition-table.h: New file.
45296         * lib/uninorm/decomposition-table.c: New file.
45297         * lib/uninorm/decomposition-table1.h: New file, generated by
45298         gen-uni-tables.
45299         * lib/uninorm/decomposition-table2.h: New file, generated by
45300         gen-uni-tables.
45301         * modules/uninorm/decomposition-table: New file.
45302
45303         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45304         (UC_DECOMP_*): New enumeration items.
45305         (get_decomposition): New function.
45306         (struct decomp_table): New type.
45307         (output_decomposition, output_decomposition_tables): New functions.
45308         (unicode_composition_exclusions): New variable.
45309         (fill_composition_exclusions, debug_output_composition_tables): New
45310         functions.
45311         (main): Accept one more argument. Invoke fill_composition_exclusions.
45312         Output decomposition and composition tables.
45313
45314         New module 'uninorm/base'.
45315         * lib/uninorm.h: New file.
45316         * lib/unictype.h: Update comment.
45317         * modules/uninorm/base: New file.
45318
45319 2009-02-21  David Lutterkort  <lutter@redhat.com>
45320
45321         Tests for module 'safe-alloc'.
45322         * tests/test-safe-alloc.c: New file.
45323         * modules/safe-alloc-tests: New file.
45324
45325         New module 'safe-alloc'.
45326         * lib/safe-alloc.h: New file.
45327         * lib/safe-alloc.c: New file.
45328         * m4/safe-alloc.m4: New file.
45329         * modules/safe-alloc: New file.
45330         * doc/safe-alloc.texi: New file.
45331         * doc/gnulib.texi: Include it.
45332         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45333         safe-alloc.
45334
45335 2009-02-18  Bruno Haible  <bruno@clisp.org>
45336
45337         Fix link error on non-glibc systems.
45338         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45339         variable.
45340         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45341
45342 2009-02-18  Jim Meyering  <meyering@redhat.com>
45343
45344         fts: avoid used-uninitialized error due to recent change
45345         * lib/fts.c (fts_read): Guard uses of the new member,
45346         parent->fts_n_dirs_remaining, since it's not relevant for
45347         the parent of a directory specified on the command-line.
45348
45349 2009-02-17  James Youngman  <jay@gnu.org>
45350             Bruno Haible  <bruno@clisp.org>
45351
45352         * m4/include_next.m4: Reformulate comment.
45353
45354 2009-02-16  Jim Meyering  <meyering@redhat.com>
45355
45356         fts: add #if guards so that the fts_lgpl module still builds
45357         * lib/fts.c: Guard just-added hash-table-using parts with
45358         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45359         Reported by Simon Josefsson.
45360
45361 2009-02-15  Bruno Haible  <bruno@clisp.org>
45362
45363         * modules/array-mergesort-tests: New file.
45364         * tests/test-array-mergesort.c: New file.
45365
45366         New module 'array-mergesort'.
45367         * modules/array-mergesort: New file.
45368         * lib/array-mergesort.h: New file.
45369
45370 2009-02-15  Bruno Haible  <bruno@clisp.org>
45371
45372         Fix 2009-02-07 commit.
45373         * lib/gen-uni-tables.c (output_predicate, output_category,
45374         output_combclass, output_bidi_category, output_decimal_digit,
45375         output_digit, output_numeric, output_mirror, output_scripts,
45376         output_ident_category, output_simple_mapping): Fix format directives.
45377         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45378
45379 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45380
45381         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45382         fixes are available from IBM.
45383
45384 2009-02-13  Jim Meyering  <meyering@redhat.com>
45385
45386         fts: arrange not to stat non-directories in more cases
45387         This makes GNU find (when it doesn't need to stat each file)
45388         *much* more efficient at traversing reiserfs file systems.
45389         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45390         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45391         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45392         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45393         (leaf_optimization_applies): New function.
45394         (LCO_hash, LCO_compare): New helper functions.
45395         (link_count_optimize_ok): New function.
45396         (fts_stat): Initialize new member (if dir).
45397         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45398         we've just stat'ed a directory.  Skip the stat call when possible.
45399         ---
45400         Note this AFS-related exchange:
45401         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45402         and note find's pioctl call in find/fstype.c.
45403         But that is necessary only if you want to enable the
45404         optimization for AFS, and for now, I don't.
45405
45406         fts: move a function definition "up" (no semantic change)
45407         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45408         "up" to precede upcoming use of a related function.
45409
45410 2009-02-11  Jim Meyering  <meyering@redhat.com>
45411
45412         fts: correct internal computation of nlinks (optimization-related)
45413         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45414         whether the current entry is a directory, so don't test it.
45415
45416 2009-02-10  Bruno Haible  <bruno@clisp.org>
45417
45418         Tests for module 'uniwbrk/ulc-wordbreaks'.
45419         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45420         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45421         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45422
45423         Tests for module 'uniwbrk/u32-wordbreaks'.
45424         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45425         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45426
45427         Tests for module 'uniwbrk/u16-wordbreaks'.
45428         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45429         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45430
45431         Tests for module 'uniwbrk/u8-wordbreaks'.
45432         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45433         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45434
45435 2009-02-10  Bruno Haible  <bruno@clisp.org>
45436
45437         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45438         property.
45439         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45440         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45441         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45442
45443 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45444
45445         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45446         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45447
45448 2009-02-10  Bruno Haible  <bruno@clisp.org>
45449
45450         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45451         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45452         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45453         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45454         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45455         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45456
45457 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45458
45459         * lib/sockets.h (gl_fd_to_handle): New function.
45460
45461         * tests/test-sockets.c: Call gl_fd_to_handle.
45462
45463 2009-02-09  Bruno Haible  <bruno@clisp.org>
45464
45465         * doc/havelib.texi: Document the conventions on bi-arch systems.
45466
45467 2009-02-08  Bruno Haible  <bruno@clisp.org>
45468
45469         Document the AC_LIB_LINKFLAGS macro.
45470         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45471         * doc/gnulib.texi: Include it.
45472
45473 2009-02-08  Bruno Haible  <bruno@clisp.org>
45474
45475         Fix wrong order of sections, compared to TOC.
45476         * doc/gnulib.texi: Include relocatable-maint.texi after the
45477         "Regular expressions" node, not before.
45478
45479 2009-02-08  Bruno Haible  <bruno@clisp.org>
45480
45481         Tests for module 'unicase/totitle'.
45482         * modules/unicase/totitle-tests: New file.
45483
45484         Tests for module 'unicase/tolower'.
45485         * modules/unicase/tolower-tests: New file.
45486
45487         Tests for module 'unicase/toupper'.
45488         * modules/unicase/toupper-tests: New file.
45489         * tests/unicase/test-mapping-part1.h: New file.
45490         * tests/unicase/test-mapping-part2.h: New file.
45491
45492         New module 'unicase/totitle'.
45493         * modules/unicase/totitle: New file.
45494         * lib/unicase/totitle.c: New file.
45495
45496         New module 'unicase/tolower'.
45497         * modules/unicase/tolower: New file.
45498         * lib/unicase/tolower.c: New file.
45499
45500         New module 'unicase/toupper'.
45501         * modules/unicase/toupper: New file.
45502         * lib/unicase/toupper.c: New file.
45503         * lib/unicase/simple-mapping.h: New file.
45504
45505         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45506         (mapping_table): New structure.
45507         (output_simple_mapping): New function.
45508         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45509         * modules/gen-uni-tables (Description): Update.
45510         * lib/unicase/toupper.h: New file, automatically generated by
45511         gen-uni-tables.
45512         * lib/unicase/tolower.h: New file, automatically generated by
45513         gen-uni-tables.
45514         * lib/unicase/totitle.h: New file, automatically generated by
45515         gen-uni-tables.
45516         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45517         gen-uni-tables.
45518         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45519         gen-uni-tables.
45520         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45521         gen-uni-tables.
45522
45523         New module 'unicase/base'.
45524         * modules/unicase/base: New file.
45525         * lib/unicase.h: New file.
45526
45527 2009-02-08  Bruno Haible  <bruno@clisp.org>
45528
45529         New module 'uniwbrk/ulc-wordbreaks'.
45530         * modules/uniwbrk/ulc-wordbreaks: New file.
45531         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45532
45533         New module 'uniwbrk/u32-wordbreaks'.
45534         * modules/uniwbrk/u32-wordbreaks: New file.
45535         * lib/uniwbrk/u32-wordbreaks.c: New file.
45536
45537         New module 'uniwbrk/u16-wordbreaks'.
45538         * modules/uniwbrk/u16-wordbreaks: New file.
45539         * lib/uniwbrk/u16-wordbreaks.c: New file.
45540
45541         New module 'uniwbrk/u8-wordbreaks'.
45542         * modules/uniwbrk/u8-wordbreaks: New file.
45543         * lib/uniwbrk/u8-wordbreaks.c: New file.
45544         * lib/uniwbrk/u-wordbreaks.h: New file.
45545
45546         New module 'uniwbrk/table'.
45547         * modules/uniwbrk/table: New file.
45548         * lib/uniwbrk/wbrktable.h: New file.
45549         * lib/uniwbrk/wbrktable.c: New file.
45550
45551         New module 'uniwbrk/wordbreak-property'.
45552         * modules/uniwbrk/wordbreak-property: New file.
45553         * lib/uniwbrk/wordbreak-property.c: New file.
45554
45555         * lib/gen-uni-tables.c (WBP_*): New enum items.
45556         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45557         (unicode_org_wbp): New variable.
45558         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45559         New functions.
45560         (wbp_table): New structure.
45561         (output_wbp, output_wbrk_tables): New functions.
45562         (main): Accept additional argument. Invoke fill_org_wbp,
45563         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45564         output_wbrk_tables.
45565         * modules/gen-uni-tables (Description): Update.
45566         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45567         gen-uni-tables.
45568
45569         New module 'uniwbrk/base'.
45570         * modules/uniwbrk/base: New file.
45571         * lib/uniwbrk.h: New file.
45572
45573 2009-02-08  Bruno Haible  <bruno@clisp.org>
45574
45575         Update to Unicode 5.1.0.
45576         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45577         U+2185..U+2188.
45578         (is_property_default_ignorable_code_point): Don't include characters
45579         of category Cc or Cs and not-a-characters.
45580         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45581         U+0D79, U+109E, U+109F, U+A60C.
45582         * lib/unictype/bidi_of.h: Regenerated.
45583         * lib/unictype/blocks.h: Regenerated.
45584         * lib/unictype/categ_C.h: Regenerated.
45585         * lib/unictype/categ_Cf.h: Regenerated.
45586         * lib/unictype/categ_Cn.h: Regenerated.
45587         * lib/unictype/categ_L.h: Regenerated.
45588         * lib/unictype/categ_Ll.h: Regenerated.
45589         * lib/unictype/categ_Lm.h: Regenerated.
45590         * lib/unictype/categ_Lo.h: Regenerated.
45591         * lib/unictype/categ_Lu.h: Regenerated.
45592         * lib/unictype/categ_M.h: Regenerated.
45593         * lib/unictype/categ_Mc.h: Regenerated.
45594         * lib/unictype/categ_Me.h: Regenerated.
45595         * lib/unictype/categ_Mn.h: Regenerated.
45596         * lib/unictype/categ_N.h: Regenerated.
45597         * lib/unictype/categ_Nd.h: Regenerated.
45598         * lib/unictype/categ_Nl.h: Regenerated.
45599         * lib/unictype/categ_No.h: Regenerated.
45600         * lib/unictype/categ_P.h: Regenerated.
45601         * lib/unictype/categ_Pd.h: Regenerated.
45602         * lib/unictype/categ_Pe.h: Regenerated.
45603         * lib/unictype/categ_Pf.h: Regenerated.
45604         * lib/unictype/categ_Pi.h: Regenerated.
45605         * lib/unictype/categ_Po.h: Regenerated.
45606         * lib/unictype/categ_Ps.h: Regenerated.
45607         * lib/unictype/categ_S.h: Regenerated.
45608         * lib/unictype/categ_Sk.h: Regenerated.
45609         * lib/unictype/categ_Sm.h: Regenerated.
45610         * lib/unictype/categ_So.h: Regenerated.
45611         * lib/unictype/categ_of.h: Regenerated.
45612         * lib/unictype/combining.h: Regenerated.
45613         * lib/unictype/ctype_alnum.h: Regenerated.
45614         * lib/unictype/ctype_alpha.h: Regenerated.
45615         * lib/unictype/ctype_graph.h: Regenerated.
45616         * lib/unictype/ctype_lower.h: Regenerated.
45617         * lib/unictype/ctype_print.h: Regenerated.
45618         * lib/unictype/ctype_punct.h: Regenerated.
45619         * lib/unictype/ctype_upper.h: Regenerated.
45620         * lib/unictype/decdigit.h: Regenerated.
45621         * lib/unictype/digit.h: Regenerated.
45622         * lib/unictype/mirror.h: Regenerated.
45623         * lib/unictype/numeric.h: Regenerated.
45624         * lib/unictype/pr_alphabetic.h: Regenerated.
45625         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
45626         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
45627         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
45628         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
45629         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
45630         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
45631         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
45632         * lib/unictype/pr_combining.h: Regenerated.
45633         * lib/unictype/pr_dash.h: Regenerated.
45634         * lib/unictype/pr_decimal_digit.h: Regenerated.
45635         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
45636         * lib/unictype/pr_deprecated.h: Regenerated.
45637         * lib/unictype/pr_diacritic.h: Regenerated.
45638         * lib/unictype/pr_extender.h: Regenerated.
45639         * lib/unictype/pr_format_control.h: Regenerated.
45640         * lib/unictype/pr_grapheme_base.h: Regenerated.
45641         * lib/unictype/pr_grapheme_extend.h: Regenerated.
45642         * lib/unictype/pr_grapheme_link.h: Regenerated.
45643         * lib/unictype/pr_id_continue.h: Regenerated.
45644         * lib/unictype/pr_id_start.h: Regenerated.
45645         * lib/unictype/pr_ideographic.h: Regenerated.
45646         * lib/unictype/pr_ignorable_control.h: Regenerated.
45647         * lib/unictype/pr_lowercase.h: Regenerated.
45648         * lib/unictype/pr_math.h: Regenerated.
45649         * lib/unictype/pr_numeric.h: Regenerated.
45650         * lib/unictype/pr_other_alphabetic.h: Regenerated.
45651         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
45652         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
45653         * lib/unictype/pr_other_id_continue.h: Regenerated.
45654         * lib/unictype/pr_other_lowercase.h: Regenerated.
45655         * lib/unictype/pr_other_math.h: Regenerated.
45656         * lib/unictype/pr_punctuation.h: Regenerated.
45657         * lib/unictype/pr_sentence_terminal.h: Regenerated.
45658         * lib/unictype/pr_soft_dotted.h: Regenerated.
45659         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
45660         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
45661         * lib/unictype/pr_unified_ideograph.h: Regenerated.
45662         * lib/unictype/pr_uppercase.h: Regenerated.
45663         * lib/unictype/pr_xid_continue.h: Regenerated.
45664         * lib/unictype/pr_xid_start.h: Regenerated.
45665         * lib/unictype/pr_zero_width.h: Regenerated.
45666         * lib/unictype/scripts.h: Regenerated.
45667         * lib/unictype/scripts_byname.gperf: Regenerated.
45668         * lib/unictype/sy_java_ident.h: Regenerated.
45669         * lib/unilbrk/lbrkprop1.h: Regenerated.
45670         * lib/unilbrk/lbrkprop2.h: Regenerated.
45671         * tests/unictype/test-categ_C.c: Regenerated.
45672         * tests/unictype/test-categ_Cf.c: Regenerated.
45673         * tests/unictype/test-categ_Cn.c: Regenerated.
45674         * tests/unictype/test-categ_L.c: Regenerated.
45675         * tests/unictype/test-categ_Ll.c: Regenerated.
45676         * tests/unictype/test-categ_Lm.c: Regenerated.
45677         * tests/unictype/test-categ_Lo.c: Regenerated.
45678         * tests/unictype/test-categ_Lu.c: Regenerated.
45679         * tests/unictype/test-categ_M.c: Regenerated.
45680         * tests/unictype/test-categ_Mc.c: Regenerated.
45681         * tests/unictype/test-categ_Me.c: Regenerated.
45682         * tests/unictype/test-categ_Mn.c: Regenerated.
45683         * tests/unictype/test-categ_N.c: Regenerated.
45684         * tests/unictype/test-categ_Nd.c: Regenerated.
45685         * tests/unictype/test-categ_Nl.c: Regenerated.
45686         * tests/unictype/test-categ_No.c: Regenerated.
45687         * tests/unictype/test-categ_P.c: Regenerated.
45688         * tests/unictype/test-categ_Pd.c: Regenerated.
45689         * tests/unictype/test-categ_Pe.c: Regenerated.
45690         * tests/unictype/test-categ_Pf.c: Regenerated.
45691         * tests/unictype/test-categ_Pi.c: Regenerated.
45692         * tests/unictype/test-categ_Po.c: Regenerated.
45693         * tests/unictype/test-categ_Ps.c: Regenerated.
45694         * tests/unictype/test-categ_S.c: Regenerated.
45695         * tests/unictype/test-categ_Sk.c: Regenerated.
45696         * tests/unictype/test-categ_Sm.c: Regenerated.
45697         * tests/unictype/test-categ_So.c: Regenerated.
45698         * tests/unictype/test-ctype_alnum.c: Regenerated.
45699         * tests/unictype/test-ctype_alpha.c: Regenerated.
45700         * tests/unictype/test-ctype_graph.c: Regenerated.
45701         * tests/unictype/test-ctype_lower.c: Regenerated.
45702         * tests/unictype/test-ctype_print.c: Regenerated.
45703         * tests/unictype/test-ctype_punct.c: Regenerated.
45704         * tests/unictype/test-ctype_upper.c: Regenerated.
45705         * tests/unictype/test-decdigit.h: Regenerated.
45706         * tests/unictype/test-digit.h: Regenerated.
45707         * tests/unictype/test-numeric.h: Regenerated.
45708         * tests/unictype/test-pr_alphabetic.c: Regenerated.
45709         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
45710         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
45711         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
45712         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
45713         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
45714         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
45715         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
45716         * tests/unictype/test-pr_combining.c: Regenerated.
45717         * tests/unictype/test-pr_dash.c: Regenerated.
45718         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
45719         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
45720         * tests/unictype/test-pr_deprecated.c: Regenerated.
45721         * tests/unictype/test-pr_diacritic.c: Regenerated.
45722         * tests/unictype/test-pr_extender.c: Regenerated.
45723         * tests/unictype/test-pr_format_control.c: Regenerated.
45724         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
45725         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
45726         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
45727         * tests/unictype/test-pr_id_continue.c: Regenerated.
45728         * tests/unictype/test-pr_id_start.c: Regenerated.
45729         * tests/unictype/test-pr_ideographic.c: Regenerated.
45730         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
45731         * tests/unictype/test-pr_lowercase.c: Regenerated.
45732         * tests/unictype/test-pr_math.c: Regenerated.
45733         * tests/unictype/test-pr_numeric.c: Regenerated.
45734         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
45735         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
45736         Regenerated.
45737         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45738         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45739         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45740         * tests/unictype/test-pr_other_math.c: Regenerated.
45741         * tests/unictype/test-pr_punctuation.c: Regenerated.
45742         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45743         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
45744         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
45745         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
45746         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
45747         * tests/unictype/test-pr_uppercase.c: Regenerated.
45748         * tests/unictype/test-pr_xid_continue.c: Regenerated.
45749         * tests/unictype/test-pr_xid_start.c: Regenerated.
45750         * tests/unictype/test-pr_zero_width.c: Regenerated.
45751
45752         Update to Unicode 5.1.0.
45753         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
45754         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
45755         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
45756         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
45757         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
45758         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
45759         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
45760         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
45761         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
45762         (nonspacing_table_ind): Update.
45763         * tests/uniwidth/test-uc_width2.sh: Update expected result.
45764
45765         Update to Unicode 5.1.0.
45766         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
45767         code transform.
45768         * lib/uniname/uniname.c (unicode_character_name,
45769         unicode_name_character): Add the range 0x1Fxxx to the code transform.
45770         * lib/uniname/uninames.h: Regenerated.
45771         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
45772
45773 2009-02-07  Bruno Haible  <bruno@clisp.org>
45774
45775         Merge gen-ctype and gen-lbrk into a single program.
45776         * lib/gen-uni-tables.c: New file, incorporating
45777         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
45778         Add directory prefixes to the names of the generated files.
45779         * lib/unictype/gen-ctype.c: Remove file.
45780         * lib/unilbrk/gen-lbrk.c: Remove file.
45781         * modules/gen-uni-tables: New file.
45782         * modules/unictype/gen-ctype: Remove file.
45783         * modules/unilbrk/gen-lbrk: Remove file.
45784
45785 2009-02-07  Bruno Haible  <bruno@clisp.org>
45786
45787         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
45788
45789         New module 'unistr/u32-strcoll'.
45790         * modules/unistr/u32-strcoll: New file.
45791         * lib/unistr/u32-strcoll.c: New file.
45792
45793         New module 'unistr/u16-strcoll'.
45794         * modules/unistr/u16-strcoll: New file.
45795         * lib/unistr/u16-strcoll.c: New file.
45796
45797         New module 'unistr/u8-strcoll'.
45798         * modules/unistr/u8-strcoll: New file.
45799         * lib/unistr/u8-strcoll.c: New file.
45800         * lib/unistr/u-strcoll.h: New file.
45801
45802 2009-02-07  Bruno Haible  <bruno@clisp.org>
45803
45804         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
45805         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45806         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45807         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
45808         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
45809         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
45810
45811 2009-02-07  Bruno Haible  <bruno@clisp.org>
45812
45813         Make 64-bit clean.
45814         * lib/unictype/gen-ctype.c (output_predicate, output_category,
45815         output_combclass, output_bidi_category, output_decimal_digit,
45816         output_digit, output_numeric, output_mirror, output_scripts,
45817         output_ident_category): Use proper width specifier in format strings.
45818
45819 2009-02-07  Bruno Haible  <bruno@clisp.org>
45820
45821         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
45822         failure behaviour.
45823
45824 2009-02-07  Jim Meyering  <meyering@redhat.com>
45825
45826         regex: avoid compilation failure with upcoming gcc-4.4
45827         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
45828         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
45829         "... error: integer overflow in preprocessor expression".
45830
45831 2009-02-05  Ben Pfaff  <blp@gnu.org>
45832
45833         Fix link errors on Windows when close module is used.
45834         * modules/close: Add $(LIB_CLOSE) to Link section.
45835         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
45836         $(LIB_CLOSE) on Windows.
45837
45838 2009-02-05  Jim Meyering  <meyering@redhat.com>
45839
45840         still avoid unused-parameter warnings, but do it cleanly
45841         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
45842         (get_fs_usage): Cast to void instead.
45843         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
45844         (dev_from_mount_options, read_file_system_list): Cast to void.
45845         Prompted by Bruno Haible.
45846
45847 2009-02-04  Jim Meyering  <meyering@redhat.com>
45848
45849         fsusage.c: correct copyright year
45850         * lib/fsusage.c: Reflect year in which the change is pushed into
45851
45852         avoid misc. warnings
45853         * lib/fsusage.c (UNUSED_PARAM): Define.
45854         (get_fs_usage): Mark parameter "disk" as unused.
45855         * lib/getugroups.c (getgrent): Use "void" in prototype.
45856         * lib/mountlist.c: Mark unused parameters.
45857         (read_file_system_list): Declare a local with "const".
45858         * lib/nanosleep.c (getnow): Declare static.
45859         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
45860
45861         dirfd: set errno upon failure
45862         * lib/dirfd.c: Include <errno.h>.
45863         Set errno to ENOTSUP when returning -1.
45864         * modules/dirfd (Depends-on): Add errno.
45865         Suggested by John Kodis <kodis@comcast.net>.
45866
45867 2009-02-01  Bruno Haible  <bruno@clisp.org>
45868
45869         Don't assume sizeof (long) >= sizeof (void *).
45870         * lib/memcmp.c: Include stdint.h.
45871         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
45872         srcp2 to 'const byte *'.
45873         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
45874         types to uintptr_t.
45875         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
45876         * modules/memcmp (Depends-on): Add stdint.
45877         Reported by Ozkan Sezer <sezeroz@gmail.com>.
45878
45879 2009-01-30  Eric Blake  <ebb9@byu.net>
45880
45881         fix more require-before-expand issues
45882         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
45883         expand, AC_PROG_AWK.
45884         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
45885
45886 2009-01-28  Eric Blake  <ebb9@byu.net>
45887
45888         version-etc: use consistent URL formatting
45889         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
45890         Improve formatting.  Use fputs for string without %.
45891
45892 2009-01-28  Jim Meyering  <meyering@redhat.com>
45893
45894         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
45895         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
45896         "underquoted definition of NAME" from autoconf-2.59.
45897
45898 2009-01-28  Bruno Haible  <bruno@clisp.org>
45899
45900         * doc/gnulib.texi: Add "Obsolete modules" to index.
45901
45902 2009-01-28  Jim Meyering  <meyering@redhat.com>
45903
45904         useless-if-before-free: recognize more variants
45905         * build-aux/useless-if-before-free: Also recognize e.g.,
45906         if (NULL != p) free (p);
45907
45908 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
45909
45910         test-getaddrinfo: skip (don't fail) this test when there's no network
45911         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
45912         on the presumption that it means you lack network access.
45913
45914 2009-01-26  Jim Meyering  <meyering@redhat.com>
45915
45916         fflush: avoid warnings on modern systems
45917         * lib/fflush.c (rpl_fflush): Move declarations of locals,
45918         pos and result, into scopes where they're used.
45919
45920 2009-01-26  Eric Blake  <ebb9@byu.net>
45921
45922         Silence warning reintroduced by recent extensions patch.
45923         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
45924         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
45925         autoconf.
45926
45927         Backport improved autoconf semantics of AC_DEFUN_ONCE.
45928         * m4/00gnulib.m4: New file.
45929         * gnulib-tool (func_get_filelist): Always use it.
45930         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
45931         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
45932
45933 2009-01-25  Bruno Haible  <bruno@clisp.org>
45934
45935         Make test-quotearg work on MacOS X and AIX.
45936         * tests/test-quotearg.sh: New file.
45937         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
45938         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
45939         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
45940         include <libintl.h>.
45941         (fake_locale): Remove variable.
45942         (gettext, dgettext, dcgettext): Remove functions.
45943         (main): Instead of setting a fake locale, set a real locale. Call
45944         textdomain and bindtextdomain.
45945         * modules/quotearg-tests (Files): Add the new files.
45946         (Depends-on): Add gettext, setenv, unsetenv.
45947         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45948         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45949         Augment TESTS_ENVIRONMENT.
45950
45951 2009-01-25  Bruno Haible  <bruno@clisp.org>
45952
45953         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45954         fr_FR.ISO8859-1 locale on MacOS X.
45955         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45956         ja_JP.eucJP locale on MacOS X.
45957         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45958         zh_CN.GB18030 locale on MacOS X.
45959
45960 2009-01-25  Bruno Haible  <bruno@clisp.org>
45961
45962         Avoid link errors on MacOS X 10.3.
45963         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45964         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45965
45966 2009-01-25  Bruno Haible  <bruno@clisp.org>
45967
45968         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45969         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45970         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45971         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45972         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45973         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45974         posix_spawnattr_init, posix_spawnattr_setsigmask,
45975         posix_spawnattr_setflags, posix_spawnattr_destroy.
45976
45977         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45978         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45979         * modules/execute (Files): Remove m4/posix_spawn.m4.
45980         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45981         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45982         posix_spawnattr_init, posix_spawnattr_setsigmask,
45983         posix_spawnattr_setflags, posix_spawnattr_destroy.
45984
45985 2009-01-25  Bruno Haible  <bruno@clisp.org>
45986
45987         * lib/glthread/threadlib.c: Include <stdlib.h>.
45988
45989 2009-01-25  Bruno Haible  <bruno@clisp.org>
45990
45991         * lib/glthread/threadlib.c (dummy): New declaration.
45992
45993 2009-01-25  Bruno Haible  <bruno@clisp.org>
45994
45995         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45996         multibyte characters also for the GB18030 encoding. Don't crash when
45997         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45998
45999 2009-01-25  Bruno Haible  <bruno@clisp.org>
46000
46001         Avoid redefining 'struct random_data' on OSF/1 5.1.
46002         * lib/stdlib.in.h: Include <random.h> if it exists.
46003         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46004         HAVE_RANDOM_H. Include <random.h> when testing whether
46005         'struct random_data' exists.
46006         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46007
46008 2009-01-25  Bruno Haible  <bruno@clisp.org>
46009
46010         Don't install charset.alias on MacOS X >= 10.3.
46011         * lib/localcharset.c (DARWIN7): New macro.
46012         (get_charset_aliases): Hardcode the result for Darwin7.
46013         * modules/localcharset (install-exec-local): Don't install
46014         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46015
46016 2009-01-25  Bruno Haible  <bruno@clisp.org>
46017
46018         Don't install charset.alias on mingw and Cygwin.
46019         * modules/localcharset (install-exec-local): Don't install
46020         charset.alias on mingw and Cygwin, if the file does not yet exist.
46021         The result for these platforms is hardcoded in localcharset.c.
46022
46023 2009-01-25  Bruno Haible  <bruno@clisp.org>
46024
46025         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46026         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46027         before requiring AC_USE_SYSTEM_EXTENSIONS.
46028
46029 2009-01-25  Jim Meyering  <meyering@redhat.com>
46030
46031         c-strtod: avoid warnings
46032         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46033         "assignment discards qualifiers from pointer target type" warnings.
46034
46035 2009-01-24  Bruno Haible  <bruno@clisp.org>
46036
46037         Add support for non-UTF-8 locales on MacOS X.
46038         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46039         canonical encodings. For Darwin 7 and newer, don't map traditional
46040         encodings to UTF-8.
46041         Reported by Vincent Lefevre <vincent@vinc17.org>
46042         at <http://savannah.gnu.org/bugs/?25235>.
46043
46044 2009-01-24  Bruno Haible  <bruno@clisp.org>
46045
46046         * doc/gnulib.texi (Obsolete modules): New section.
46047         Reported by Mike Frysinger <vapier@gentoo.org>.
46048
46049 2009-01-24  Bruno Haible  <bruno@clisp.org>
46050
46051         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46052         (%.dvi): New rule.
46053
46054 2009-01-24  Bruno Haible  <bruno@clisp.org>
46055
46056         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46057         Reported by Eric Blake.
46058
46059 2009-01-24  Bruno Haible  <bruno@clisp.org>
46060
46061         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46062         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46063         Reported by Gary V. Vaughan <gary@gnu.org>.
46064
46065 2009-01-24  Bruno Haible  <bruno@clisp.org>
46066
46067         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46068
46069 2009-01-23  Bruno Haible  <bruno@clisp.org>
46070
46071         Make c-strtod, c-strtold usable in libraries.
46072         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46073         (C_STRTOD): Call strdup instead of xstrdup.
46074         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46075         * modules/c-strtold (Depends-on): Likewise.
46076         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46077         * NEWS: Mention the change.
46078         Reported by Michael Gold <mgold@ncf.ca>.
46079
46080 2009-01-23  Jim Meyering  <meyering@redhat.com>
46081
46082         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46083         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46084         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46085
46086 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46087
46088         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46089         GNU CoreUtils.
46090         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46091         * modules/version-etc (Description): Update.
46092
46093 2009-01-22  Bruno Haible  <bruno@clisp.org>
46094
46095         Cache the C locale object.
46096         * lib/c-strtod.c (c_locale_cache): New variable.
46097         (c_locale): New function.
46098         (C_STRTOD): Use it, and don't call freelocale.
46099         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46100         Suggested by Paolo Bonzini.
46101
46102 2009-01-21  Bruno Haible  <bruno@clisp.org>
46103
46104         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46105         conditions other than overflow.
46106
46107 2009-01-21  Bruno Haible  <bruno@clisp.org>
46108
46109         * lib/c-strtod.c: Include errno.h.
46110         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46111         value from STRTOD_L and STRTOD.
46112
46113 2009-01-21  Bruno Haible  <bruno@clisp.org>
46114         and Jim Meyering  <meyering@redhat.com>
46115
46116         nanosleep: skip configure test (fail it) for apple universal builds
46117         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46118         universal builds, assume that nanosleep does not work.
46119         * modules/nanosleep (Depends-on): Add multiarch.
46120
46121         mktime: skip configure test (fail it) for apple universal builds
46122         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46123         universal builds, assume that mktime does not work.
46124         * modules/mktime (Depends-on): Add multiarch.
46125
46126 2009-01-21  Eric Blake  <ebb9@byu.net>
46127
46128         multiarch: avoid expand-before-require warning
46129         * modules/multiarch (configure.ac): Require, rather than expand,
46130         gl_MULTIARCH.
46131         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46132         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46133         enforce that all clients require it.  Partial reversion of
46134         2008-12-29 patch.
46135
46136         error: avoid expand-before-require warning
46137         * modules/errno (configure.ac): Require, rather than expand,
46138         gl_HEADER_ERRNO_H.
46139         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46140         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46141         enforce that all clients require it.
46142
46143         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46144         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46145         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46146         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46147
46148 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46149
46150         Revert:
46151         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46152
46153         regex: do not depend on obsolete modules.
46154         * modules/regex: Remove memcmp and memmove.
46155
46156 2009-01-20  Bruno Haible  <bruno@clisp.org>
46157
46158         Make the 'link' module link on Windows NT 4.
46159         * lib/link.c (_WIN32_WINNT): Don't define.
46160         (CreateHardLinkFuncType): New type.
46161         (CreateHardLinkFunc, initialized): New variables.
46162         (initialize): New function.
46163         (link): Invoke CreateHardLink indirectly through the function pointer.
46164
46165 2009-01-20  Bruno Haible  <bruno@clisp.org>
46166
46167         Fix compilation failure on mingw.
46168         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46169
46170 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46171
46172         * doc/c-strtod.texi: Mention a couple of restrictions.
46173
46174 2009-01-20  Jim Meyering  <meyering@redhat.com>
46175
46176         gettimeofday: move more declarations out of functions
46177         * lib/gettimeofday.c: Move extern declarations of tzset and
46178         gmtime out of containing functions.  Prompted by Bruno Haible.
46179
46180 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46181
46182         regex: do not depend on obsolete modules.
46183         * modules/regex: Remove memcmp and memmove.
46184
46185 2009-01-19  Bruno Haible  <bruno@clisp.org>
46186
46187         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46188         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46189         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46190         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46191         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46192
46193 2009-01-19  Bruno Haible  <bruno@clisp.org>
46194
46195         * tests/test-link.c: Include <errno.h>.
46196         (main): Exit with code 77 when a hard link cannot be created due to
46197         the file system.
46198         * tests/test-link.sh: Skip test when a hard link cannot be created due
46199         to the file system.
46200         Suggested by Eric Blake.
46201
46202 2009-01-19  Martin Lambers  <marlam@marlam.de>
46203
46204         * modules/link-tests: New file.
46205         * tests/test-link.sh: New file.
46206         * tests/test-link.c: New file.
46207
46208 2009-01-19  Eric Blake  <ebb9@byu.net>
46209
46210         doc: mention another function added in cygwin 1.7.0
46211         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46212         Another new function in cygwin 1.7.
46213
46214 2009-01-19  Bruno Haible  <bruno@clisp.org>
46215
46216         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46217         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46218         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46219         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46220         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46221         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46222         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46223         * m4/md4.m4 (gl_MD4): Likewise.
46224         * m4/md5.m4 (gl_MD5): Likewise.
46225         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46226         * m4/sha1.m4 (gl_SHA1): Likewise.
46227         * m4/sha256.m4 (gl_SHA256): Likewise.
46228         * m4/sha512.m4 (gl_SHA512): Likewise.
46229
46230 2009-01-19  Bruno Haible  <bruno@clisp.org>
46231
46232         * modules/uniname/uniname-tests (Depends-on): Add progname.
46233         * tests/uniname/test-uninames.c: Include progname.h.
46234         (main): Call set_program_name.
46235
46236         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46237         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46238         (main): Call set_program_name.
46239
46240         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46241         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46242         (main): Call set_program_name.
46243
46244         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46245         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46246         (main): Call set_program_name.
46247
46248         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46249         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46250         (main): Call set_program_name.
46251
46252         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46253         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46254         (main): Call set_program_name.
46255
46256         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46257         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46258         (main): Call set_program_name.
46259
46260         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46261         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46262         (main): Call set_program_name.
46263
46264         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46265         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46266         (main): Call set_program_name.
46267
46268 2009-01-19  Eric Blake  <ebb9@byu.net>
46269
46270         test-unistd: test previous patch
46271         * tests/test-unistd.c: Test *_FILENO macros.
46272
46273         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46274         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46275         Guarantee a definition.
46276         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46277         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46278         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46279         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46280         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46281         Likewise.
46282         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46283         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46284         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46285         Likewise.
46286         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46287         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46288         (STDERR_FILENO): Likewise.
46289         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46290         (STDERR_FILENO): Likewise.
46291         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46292         (STDERR_FILENO): Likewise.
46293         Reported by Elbert Pol.
46294
46295 2009-01-19  Eric Blake  <ebb9@byu.net>
46296
46297         doc: mention more functions added in cygwin 1.7.0
46298         * doc/posix-functions/abort.texi (abort): Update wording related
46299         to cygwin.
46300         * doc/posix-functions/daylight.texi (daylight): Likewise.
46301         * doc/posix-functions/optarg.texi (optarg): Likewise.
46302         * doc/posix-functions/optarg.texi (opterr): Likewise.
46303         * doc/posix-functions/optarg.texi (optind): Likewise.
46304         * doc/posix-functions/optarg.texi (optopt): Likewise.
46305         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46306         worked in 1.5.x, and was withdrawn in 1.7.
46307         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46308         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46309         cygwin versions.
46310         * doc/posix-functions/perror.texi (perror): Likewise.
46311         * doc/posix-functions/printf.texi (printf): Likewise.
46312         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46313         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46314         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46315         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46316         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46317         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46318         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46319         Likewise.
46320         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46321         Likewise.
46322         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46323         this function.
46324         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46325         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46326         Likewise.
46327         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46328         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46329         * doc/posix-functions/confstr.texi (confstr): Likewise.
46330         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46331         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46332         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46333         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46334         * doc/posix-functions/fputws.texi (fputws): Likewise.
46335         * doc/posix-functions/fwide.texi (fwide): Likewise.
46336         * doc/posix-functions/getwc.texi (getwc): Likewise.
46337         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46338         * doc/posix-functions/putwc.texi (putwc): Likewise.
46339         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46340         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46341         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46342         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46343         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46344         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46345         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46346         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46347         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46348         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46349         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46350
46351 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46352
46353         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46354         * lib/ioctl.c: Include <sys/ioctl.h>.
46355
46356 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46357
46358         * modules/getdate-tests (Depends-on): Add progname.
46359         * tests/test-getdate.c: Use progname module, to avoid link errors
46360         on non-glibc systems.
46361
46362 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46363
46364         * modules/filenamecat-tests (Depends-on): Add progname.
46365         * modules/fstrcmp-tests (Depends-on): Likewise.
46366
46367         * tests/test-filenamecat.c: Use progname module, to avoid link
46368         errors on non-glibc systems.
46369         * tests/test-fstrcmp.c: Likewise.
46370
46371 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46372
46373         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46374         * lib/gettimeofday.c: Move extern declaration out of function.
46375
46376 2009-01-18  Bruno Haible  <bruno@clisp.org>
46377
46378         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46379         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46380         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46381
46382 2009-01-18  Bruno Haible  <bruno@clisp.org>
46383
46384         * lib/strftime.c (MEMPCPY): Remove unused macro.
46385         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46386
46387 2009-01-18  Martin Lambers  <marlam@marlam.de>
46388
46389         New module 'link'.
46390         * lib/unistd.in.h (link): New declaration.
46391         * lib/link.c: New file.
46392         * m4/link.m4: New file.
46393         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46394         HAVE_LINK.
46395         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46396         * modules/link: New file.
46397         * doc/posix-functions/link.texi: Mention the new module.
46398
46399 2009-01-18  Bruno Haible  <bruno@clisp.org>
46400
46401         * tests/test-avltree_list.c (main): Call set_program_name.
46402         * tests/test-avltree_oset.c (main): Likewise.
46403         * tests/test-obstack-printf.c: Include progname.h.
46404         (main): Call set_program_name.
46405         * tests/test-quotearg.c: Include progname.h.
46406         (main): Call set_program_name.
46407         * tests/test-xmemdup0.c: Include progname.h.
46408         (main): Call set_program_name.
46409
46410 2009-01-18  Bruno Haible  <bruno@clisp.org>
46411
46412         New module 'alphasort'.
46413         * lib/dirent.in.h (alphasort): New declaration.
46414         * lib/alphasort.c: New file, from glibc with modifications.
46415         * m4/alphasort.m4: New file.
46416         * modules/alphasort: New file.
46417         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46418         HAVE_ALPHASORT.
46419         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46420         HAVE_ALPHASORT.
46421         * doc/posix-functions/alphasort.texi: Mention the new module and the
46422         portability problems.
46423
46424 2009-01-18  Bruno Haible  <bruno@clisp.org>
46425
46426         New module 'scandir'.
46427         * lib/dirent.in.h (scandir): New declaration.
46428         * lib/scandir.c: New file, from glibc with modifications.
46429         * m4/scandir.m4: New file.
46430         * modules/scandir: New file.
46431         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46432         HAVE_SCANDIR.
46433         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46434         HAVE_SCANDIR.
46435         * doc/posix-functions/scandir.texi: Mention the new module and the
46436         portability problems.
46437
46438 2009-01-17  Bruno Haible  <bruno@clisp.org>
46439
46440         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46441         Update documentation.
46442         (func_remove_suffix): Escape all dots in the suffix. Update
46443         documentation.
46444         (func_filter_filelist): Update documentation.
46445         Reported by Ralf Wildenhues.
46446
46447 2009-01-17  Bruno Haible  <bruno@clisp.org>
46448
46449         * modules/dprintf-posix-tests: New file.
46450         * tests/test-dprintf-posix.sh: New file.
46451         * tests/test-dprintf-posix.c: New file.
46452
46453         New modules 'dprintf', 'dprintf-posix'.
46454         * lib/stdio.in.h (dprintf): New declaration.
46455         * lib/dprintf.c: New file.
46456         * m4/dprintf.m4: New file.
46457         * m4/dprintf-posix.m4: New file.
46458         * modules/dprintf: New file.
46459         * modules/dprintf-posix: New file.
46460         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46461         HAVE_DPRINTF, REPLACE_DPRINTF.
46462         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46463         HAVE_DPRINTF, REPLACE_DPRINTF.
46464         * doc/posix-functions/dprintf.texi: Mention the new modules.
46465
46466 2009-01-17  Bruno Haible  <bruno@clisp.org>
46467
46468         * modules/vdprintf-posix-tests: New file.
46469         * tests/test-vdprintf-posix.sh: New file.
46470         * tests/test-vdprintf-posix.c: New file.
46471
46472         New modules 'vdprintf', 'vdprintf-posix'.
46473         * lib/stdio.in.h (vdprintf): New declaration.
46474         * lib/vdprintf.c: New file.
46475         * m4/vdprintf.m4: New file.
46476         * m4/vdprintf-posix.m4: New file.
46477         * modules/vdprintf: New file.
46478         * modules/vdprintf-posix: New file.
46479         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46480         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46481         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46482         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46483         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46484
46485 2009-01-17  Bruno Haible  <bruno@clisp.org>
46486
46487         Fix replacement of fopen on mingw.
46488         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46489         mingw.
46490
46491 2009-01-17  Bruno Haible  <bruno@clisp.org>
46492
46493         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46494         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46495
46496 2009-01-17  Bruno Haible  <bruno@clisp.org>
46497
46498         Avoid test-fflush2.sh failure on mingw.
46499         * tests/test-fflush2.c: Include binary-io.h.
46500         (main): Put standard input into binary mode.
46501         * modules/fflush-tests (Depends-on): Add binary-io.
46502
46503 2009-01-17  Bruno Haible  <bruno@clisp.org>
46504
46505         * lib/wchar.in.h: In another particular situation, include only the
46506         system's <wchar.h> file.
46507         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46508         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46509         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46510
46511 2009-01-17  Bruno Haible  <bruno@clisp.org>
46512
46513         Support for stripping executables in --enable-relocatable.
46514         * build-aux/install-reloc: Expect one more argument, or an environment
46515         variable RELOC_STRIP_PROG. If set, strip the destination program and
46516         its wrapper.
46517         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46518         RELOC_STRIP_PROG.
46519         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46520         to set RELOCATABLE_STRIP.
46521         * NEWS: Mention the new Makefile requirement.
46522
46523 2009-01-17  Bruno Haible  <bruno@clisp.org>
46524
46525         * build-aux/install-reloc: Remove debugging information left over by
46526         C compiler on MacOS X.
46527
46528 2009-01-17  Bruno Haible  <bruno@clisp.org>
46529
46530         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46531         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46532         _NSGetExecutablePath.
46533
46534 2009-01-16  Jim Meyering  <meyering@redhat.com>
46535
46536         strerror: avoid warnings about discarding "const"
46537         * lib/strerror.c (rpl_strerror): Instead of returning a const
46538         string from each and every "case", use a variable, and add a single
46539         cast after the switch.
46540
46541 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46542
46543         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46544
46545 2009-01-16  Bruno Haible  <bruno@clisp.org>
46546
46547         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46548         array initializer syntax that also works in C++ mode.
46549         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46550
46551 2009-01-16  Jim Meyering  <meyering@redhat.com>
46552
46553         poll: suppress a warning
46554         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46555         to ignore "...unsigned expression < 0 is always false" warnings.
46556
46557 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46558
46559         poll: remove declarations of unused variables
46560         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46561         sockbuf and optlen.
46562
46563 2009-01-15  Bruno Haible  <bruno@clisp.org>
46564
46565         Make fflush-after-ungetc POSIX compliant on BSD systems.
46566         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46567         (clear_ungetc_buffer): Implement also for other systems.
46568         (rpl_fflush): On glibc systems, invoke
46569         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46570         clear_ungetc_buffer after fetching the stream's position, not before.
46571
46572 2009-01-15  Bruno Haible  <bruno@clisp.org>
46573
46574         Make fflush-after-ungetc POSIX compliant on glibc systems.
46575         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46576         after ungetc.
46577         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46578         (rpl_fflush): On glibc systems, simply call the system's fflush
46579         function after clearing the ungetc buffer.
46580         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46581         Instead, lseek only to the end of file, then use the system's fseeko
46582         for the rest. On glibc systems, reset the EOF indicator bit.
46583
46584 2009-01-15  Jim Meyering  <meyering@redhat.com>
46585
46586         openmp.m4: revert quote-adding change, for portability to older autoconf
46587         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46588         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46589         Simon Josefsson noticed the problem when using autoconf-2.61.
46590
46591 2009-01-15  Bruno Haible  <bruno@clisp.org>
46592
46593         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46594         * tests/test-fflush2.c (ASSERT): Always fail.
46595         (main): Add two tests for fflush() after ungetc(), taking into account
46596         the Austin Group's clarification.
46597         Suggested by Eric Blake.
46598
46599 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
46600
46601         mktime.m4: remove K&R-style function prototypes
46602         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
46603         for the Sun C++ compiler.
46604
46605 2009-01-14  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
46608         while including <wchar.h>.
46609         * lib/wchar.in.h: In two particular situations on HP-UX, include only
46610         the system's <wchar.h> file.
46611         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46612
46613 2009-01-14  Bruno Haible  <bruno@clisp.org>
46614
46615         * m4/csharp.m4: Don't mention gettext on the serial number line.
46616         * m4/csharpexec.m4: Likewise.
46617         * m4/eaccess.m4: Likewise.
46618         * m4/javaexec.m4: Likewise.
46619         * m4/sig_atomic_t.m4: Likewise.
46620         * m4/tmpdir.m4: Likewise.
46621         * m4/intldir.m4: Bump gettext version.
46622         * m4/lib-ld.m4: Likewise.
46623
46624 2009-01-14  Bruno Haible  <bruno@clisp.org>
46625
46626         * lib/progname.c (set_program_name): Add more comments.
46627         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
46628
46629 2009-01-14  Simon Josefsson  <simon@josefsson.org>
46630
46631         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
46632         were sys/stat.h does not define it.
46633
46634 2009-01-14  Jim Meyering  <meyering@redhat.com>
46635
46636         many *.m4 files: improve m4 quoting
46637         99% of this change was performed by running the following commands:
46638         git ls-files | grep '\.m4$' | xargs perl -pi \
46639           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
46640           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46641           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46642           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
46643         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
46644         The remainder were to add Copyright dates, increment serial numbers,
46645         undo some changes in comments, exclude m4/intl.m4, and add quotes
46646         around the "1" in ",1" where the unusual spacing prohibited the
46647         above regexps from doing the job.  For more details, see
46648         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
46649         * m4/acl.m4: Modified.
46650         * m4/afs.m4: Likewise.
46651         * m4/alloca.m4: Likewise.
46652         * m4/argp.m4: Likewise.
46653         * m4/argz.m4: Likewise.
46654         * m4/atexit.m4: Likewise.
46655         * m4/bison-i18n.m4: Likewise.
46656         * m4/bison.m4: Likewise.
46657         * m4/byteswap.m4: Likewise.
46658         * m4/c-stack.m4: Likewise.
46659         * m4/c-strtod.m4: Likewise.
46660         * m4/calloc.m4: Likewise.
46661         * m4/canonicalize-lgpl.m4: Likewise.
46662         * m4/chown.m4: Likewise.
46663         * m4/clock_time.m4: Likewise.
46664         * m4/codeset.m4: Likewise.
46665         * m4/copy-file.m4: Likewise.
46666         * m4/csharp.m4: Likewise.
46667         * m4/csharpcomp.m4: Likewise.
46668         * m4/csharpexec.m4: Likewise.
46669         * m4/d-ino.m4: Likewise.
46670         * m4/d-type.m4: Likewise.
46671         * m4/dirfd.m4: Likewise.
46672         * m4/double-slash-root.m4: Likewise.
46673         * m4/eaccess.m4: Likewise.
46674         * m4/eealloc.m4: Likewise.
46675         * m4/environ.m4: Likewise.
46676         * m4/errno_h.m4: Likewise.
46677         * m4/euidaccess.m4: Likewise.
46678         * m4/execute.m4: Likewise.
46679         * m4/fatal-signal.m4: Likewise.
46680         * m4/fchdir.m4: Likewise.
46681         * m4/fcntl_h.m4: Likewise.
46682         * m4/fileblocks.m4: Likewise.
46683         * m4/filenamecat.m4: Likewise.
46684         * m4/findprog.m4: Likewise.
46685         * m4/flexmember.m4: Likewise.
46686         * m4/fnmatch.m4: Likewise.
46687         * m4/fopen.m4: Likewise.
46688         * m4/fpending.m4: Likewise.
46689         * m4/fprintf-posix.m4: Likewise.
46690         * m4/free.m4: Likewise.
46691         * m4/frexp.m4: Likewise.
46692         * m4/frexpl.m4: Likewise.
46693         * m4/fsusage.m4: Likewise.
46694         * m4/ftruncate.m4: Likewise.
46695         * m4/gc-camellia.m4: Likewise.
46696         * m4/gc-random.m4: Likewise.
46697         * m4/gc.m4: Likewise.
46698         * m4/getaddrinfo.m4: Likewise.
46699         * m4/getcwd-abort-bug.m4: Likewise.
46700         * m4/getcwd-path-max.m4: Likewise.
46701         * m4/getdate.m4: Likewise.
46702         * m4/getdomainname.m4: Likewise.
46703         * m4/getgroups.m4: Likewise.
46704         * m4/gethostname.m4: Likewise.
46705         * m4/gethrxtime.m4: Likewise.
46706         * m4/getline.m4: Likewise.
46707         * m4/getloadavg.m4: Likewise.
46708         * m4/getndelim2.m4: Likewise.
46709         * m4/getpass.m4: Likewise.
46710         * m4/gettext.m4: Likewise.
46711         * m4/gettime.m4: Likewise.
46712         * m4/gettimeofday.m4: Likewise.
46713         * m4/gnulib-common.m4: Likewise.
46714         * m4/group-member.m4: Likewise.
46715         * m4/host-os.m4: Likewise.
46716         * m4/iconv.m4: Likewise.
46717         * m4/iconv_open.m4: Likewise.
46718         * m4/inet_ntop.m4: Likewise.
46719         * m4/inet_pton.m4: Likewise.
46720         * m4/inline.m4: Likewise.
46721         * m4/intldir.m4: Likewise.
46722         * m4/intlmacosx.m4: Likewise.
46723         * m4/intmax.m4: Likewise.
46724         * m4/intmax_t.m4: Likewise.
46725         * m4/inttypes.m4: Likewise.
46726         * m4/inttypes_h.m4: Likewise.
46727         * m4/inttypes-pri.m4: Likewise.
46728         * m4/isapipe.m4: Likewise.
46729         * m4/isnand.m4: Likewise.
46730         * m4/isnanf.m4: Likewise.
46731         * m4/isnanl.m4: Likewise.
46732         * m4/javacomp.m4: Likewise.
46733         * m4/javaexec.m4: Likewise.
46734         * m4/jm-winsz1.m4: Likewise.
46735         * m4/jm-winsz2.m4: Likewise.
46736         * m4/lchown.m4: Likewise.
46737         * m4/lcmessage.m4: Likewise.
46738         * m4/ldexpl.m4: Likewise.
46739         * m4/lib-ld.m4: Likewise.
46740         * m4/lib-link.m4: Likewise.
46741         * m4/libsigsegv.m4: Likewise.
46742         * m4/link-follow.m4: Likewise.
46743         * m4/localcharset.m4: Likewise.
46744         * m4/locale-fr.m4: Likewise.
46745         * m4/locale-ja.m4: Likewise.
46746         * m4/locale-tr.m4: Likewise.
46747         * m4/locale-zh.m4: Likewise.
46748         * m4/lock.m4: Likewise.
46749         * m4/longlong.m4: Likewise.
46750         * m4/ls-mntd-fs.m4: Likewise.
46751         * m4/lstat.m4: Likewise.
46752         * m4/malloc.m4: Likewise.
46753         * m4/mathl.m4: Likewise.
46754         * m4/mbrtowc.m4: Likewise.
46755         * m4/mbstate_t.m4: Likewise.
46756         * m4/mbswidth.m4: Likewise.
46757         * m4/memchr.m4: Likewise.
46758         * m4/memcmp.m4: Likewise.
46759         * m4/memcpy.m4: Likewise.
46760         * m4/memmem.m4: Likewise.
46761         * m4/memmove.m4: Likewise.
46762         * m4/mempcpy.m4: Likewise.
46763         * m4/memrchr.m4: Likewise.
46764         * m4/memset.m4: Likewise.
46765         * m4/minmax.m4: Likewise.
46766         * m4/mkdir-slash.m4: Likewise.
46767         * m4/mkdtemp.m4: Likewise.
46768         * m4/mktime.m4: Likewise.
46769         * m4/mmap-anon.m4: Likewise.
46770         * m4/mountlist.m4: Likewise.
46771         * m4/nanosleep.m4: Likewise.
46772         * m4/nls.m4: Likewise.
46773         * m4/nocrash.m4: Likewise.
46774         * m4/open.m4: Likewise.
46775         * m4/openat.m4: Likewise.
46776         * m4/openmp.m4: Likewise.
46777         * m4/pathmax.m4: Likewise.
46778         * m4/perl.m4: Likewise.
46779         * m4/physmem.m4: Likewise.
46780         * m4/pipe.m4: Likewise.
46781         * m4/po.m4: Likewise.
46782         * m4/poll.m4: Likewise.
46783         * m4/posixtm.m4: Likewise.
46784         * m4/posixver.m4: Likewise.
46785         * m4/printf-frexp.m4: Likewise.
46786         * m4/printf-frexpl.m4: Likewise.
46787         * m4/printf-posix.m4: Likewise.
46788         * m4/printf-posix-rpl.m4: Likewise.
46789         * m4/printf.m4: Likewise.
46790         * m4/progtest.m4: Likewise.
46791         * m4/putenv.m4: Likewise.
46792         * m4/readline.m4: Likewise.
46793         * m4/readlink.m4: Likewise.
46794         * m4/readutmp.m4: Likewise.
46795         * m4/realloc.m4: Likewise.
46796         * m4/regex.m4: Likewise.
46797         * m4/relocatable.m4: Likewise.
46798         * m4/relocatable-lib.m4: Likewise.
46799         * m4/rename-dest-slash.m4: Likewise.
46800         * m4/rename.m4: Likewise.
46801         * m4/rmdir-errno.m4: Likewise.
46802         * m4/rmdir.m4: Likewise.
46803         * m4/roundf.m4: Likewise.
46804         * m4/roundl.m4: Likewise.
46805         * m4/rpmatch.m4: Likewise.
46806         * m4/save-cwd.m4: Likewise.
46807         * m4/selinux-selinux-h.m4: Likewise.
46808         * m4/setenv.m4: Likewise.
46809         * m4/settime.m4: Likewise.
46810         * m4/sig2str.m4: Likewise.
46811         * m4/sig_atomic_t.m4: Likewise.
46812         * m4/signalblocking.m4: Likewise.
46813         * m4/signbit.m4: Likewise.
46814         * m4/sigpipe.m4: Likewise.
46815         * m4/sockets.m4: Likewise.
46816         * m4/sockpfaf.m4: Likewise.
46817         * m4/st_dm_mode.m4: Likewise.
46818         * m4/stat-time.m4: Likewise.
46819         * m4/stdbool.m4: Likewise.
46820         * m4/stdint.m4: Likewise.
46821         * m4/stdint_h.m4: Likewise.
46822         * m4/stpcpy.m4: Likewise.
46823         * m4/stpncpy.m4: Likewise.
46824         * m4/strcase.m4: Likewise.
46825         * m4/strchrnul.m4: Likewise.
46826         * m4/strcspn.m4: Likewise.
46827         * m4/strdup.m4: Likewise.
46828         * m4/strftime.m4: Likewise.
46829         * m4/strndup.m4: Likewise.
46830         * m4/strnlen.m4: Likewise.
46831         * m4/strpbrk.m4: Likewise.
46832         * m4/strptime.m4: Likewise.
46833         * m4/strsep.m4: Likewise.
46834         * m4/strtod.m4: Likewise.
46835         * m4/strtoimax.m4: Likewise.
46836         * m4/strtok_r.m4: Likewise.
46837         * m4/strtol.m4: Likewise.
46838         * m4/strtoll.m4: Likewise.
46839         * m4/strtoul.m4: Likewise.
46840         * m4/strtoull.m4: Likewise.
46841         * m4/strtoumax.m4: Likewise.
46842         * m4/strverscmp.m4: Likewise.
46843         * m4/threadlib.m4: Likewise.
46844         * m4/timegm.m4: Likewise.
46845         * m4/tm_gmtoff.m4: Likewise.
46846         * m4/tmpdir.m4: Likewise.
46847         * m4/tmpfile.m4: Likewise.
46848         * m4/tzset.m4: Likewise.
46849         * m4/uintmax_t.m4: Likewise.
46850         * m4/unlinkdir.m4: Likewise.
46851         * m4/unlocked-io.m4: Likewise.
46852         * m4/uptime.m4: Likewise.
46853         * m4/userspec.m4: Likewise.
46854         * m4/utimbuf.m4: Likewise.
46855         * m4/utime.m4: Likewise.
46856         * m4/utimes-null.m4: Likewise.
46857         * m4/utimes.m4: Likewise.
46858         * m4/vararrays.m4: Likewise.
46859         * m4/vasnprintf.m4: Likewise.
46860         * m4/vfprintf-posix.m4: Likewise.
46861         * m4/vprintf-posix.m4: Likewise.
46862         * m4/wait-process.m4: Likewise.
46863         * m4/wchar_t.m4: Likewise.
46864         * m4/wint_t.m4: Likewise.
46865         * m4/write-any-file.m4: Likewise.
46866         * m4/yield.m4: Likewise.
46867
46868 2009-01-13  Bruno Haible  <bruno@clisp.org>
46869
46870         Avoid test-copy-file.sh failures when ACL support insufficient.
46871         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
46872         TESTS_ENVIRONMENT.
46873         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
46874         Reported by Jim Meyering.
46875
46876 2009-01-13  Bruno Haible  <bruno@clisp.org>
46877
46878         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
46879         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
46880         * modules/unistdio/u8-printf-parse (Files): Likewise.
46881         * modules/unistdio/u32-printf-parse (Files): Likewise.
46882         * modules/unistdio/ulc-printf-parse (Files): Likewise.
46883
46884 2009-01-13  Simon Josefsson  <simon@josefsson.org>
46885
46886         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
46887         and m4/inttypes_h.m4 too.
46888
46889 2009-01-12  Eric Blake  <ebb9@byu.net>
46890
46891         tests: IRIX 6.2 cc can't compile -0.0 into .data
46892         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
46893         rather than at compile-time.
46894         * tests/test-floorl.c (minus_zero): Likewise.
46895         * tests/test-frexpl.c (minus_zero): Likewise.
46896         * tests/test-isnan.c (minus_zerol): Likewise.
46897         * tests/test-isnanl.h (minus_zero): Likewise.
46898         * tests/test-ldexpl.c (minus_zero): Likewise.
46899         * tests/test-roundl.c (minus_zero): Likewise.
46900         * tests/test-signbit.c (minus_zerol): Likewise.
46901         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46902         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46903         * tests/test-truncl.c (minus_zero): Likewise.
46904         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46905         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46906         Reported by Tom G. Christensen and Nelson H. F. Beebe.
46907
46908 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46909
46910         regex: fix glibc bug 9697
46911         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
46912         handling.
46913
46914 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46915
46916         regex: fix glibc bug 697
46917         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
46918         being NULL also if there are no backreferences.
46919
46920 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46921
46922         regex: merge glibc changes
46923         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
46924         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
46925         re_string_skip_chars, re_string_reconstruct): Likewise.
46926         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
46927
46928 2009-01-07  Jim Meyering  <meyering@redhat.com>
46929
46930         poll: filter through cppi
46931         * lib/poll.c: Indent cpp directives to reflect nesting.
46932
46933 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
46934
46935         poll: don't return uninitialized
46936         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
46937
46938 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
46939
46940         avoid compile failure on AIX 6.1
46941         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
46942         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
46943
46944 2009-01-04  Jim Meyering  <meyering@redhat.com>
46945
46946         remove duplicate inclusion of <stdio.h>
46947         * tests/test-fprintf-posix.c: Likewise.
46948         * tests/test-printf-posix.c: Likewise.
46949         * tests/test-snprintf-posix.c: Likewise.
46950         * tests/test-sprintf-posix.c: Likewise.
46951         * tests/test-vasprintf-posix.c: Likewise.
46952         * tests/test-vfprintf-posix.c: Likewise.
46953         * tests/test-vprintf-posix.c: Likewise.
46954         * tests/test-vsnprintf-posix.c: Likewise.
46955         * tests/test-vsprintf-posix.c: Likewise.
46956
46957 2009-01-03  Jim Meyering  <meyering@redhat.com>
46958
46959         gnulib-tool: fix sed-based filtering
46960         * gnulib-tool (func_filter_filelist): Remove extra backslash
46961         in sed_fff_filter definition.
46962
46963 2009-01-02  Jim Meyering  <meyering@redhat.com>
46964
46965         strftime: avoid compilation failure on Solaris 2.6
46966         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46967         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46968         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46969         be available.  Reported by Tom G. Christensen.  Details in
46970         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46971
46972 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46973             Bruno Haible  <bruno@clisp.org>
46974
46975         Speed up gnulib-tool by doing more string processing through shell
46976         built-ins.
46977         * gnulib-tool (fast_func_append): New variable.
46978         (func_remove_prefix, func_remove_suffix): New functions.
46979         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46980         (func_filter_filelist): New function.
46981         (func_get_dependencies): Use func_remove_suffix instead of sed.
46982         (func_get_automake_snippet): Use func_filter_filelist instead of a
46983         subshell and sed invocation.
46984
46985 2009-01-01  Bruno Haible  <bruno@clisp.org>
46986
46987         Fix a security bug.
46988         * gnulib-tool (func_import, import, update): Don't allow the characters
46989         '"', '$', '`', '\' in macro arguments that become part of commands that
46990         are evaluated.
46991
46992 2009-01-01  Bruno Haible  <bruno@clisp.org>
46993
46994         * gnulib-tool (func_reset_sigpipe): Add more comments.
46995
46996 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46997
46998         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46999         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47000         already know the answer.
47001
47002 2009-01-01  Jim Meyering  <meyering@redhat.com>
47003
47004         * lib/version-etc.c (version_etc_va): Update copyright year.
47005
47006 2008-12-30  Bruno Haible  <bruno@clisp.org>
47007
47008         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47009         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47010         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47011
47012 2008-12-29  Eric Blake  <ebb9@byu.net>
47013
47014         multiarch: avoid autoconf AC_REQUIRE bug
47015         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47016         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47017         2.63 and older.
47018         Reported by Bruno Haible, and analyzed in
47019         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47020
47021 2008-12-29  Bruno Haible  <bruno@clisp.org>
47022
47023         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47024         files in subdirectories correctly.
47025         Reported by Ralf Wildenhues.
47026
47027 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47028
47029         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47030         rather than 'join FILE -', for Solaris join.
47031
47032 2008-12-29  Bruno Haible  <bruno@clisp.org>
47033
47034         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47035         quoting.
47036         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47037         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47038         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47039         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47040         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47041         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47042         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47043         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47044         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47045         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47046         * m4/nls.m4 (AM_NLS): Likewise.
47047         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47048         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47049         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47050         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47051         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47052         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47053         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47054         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47055         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47056         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47057         * m4/xsize.m4 (gl_XSIZE): Likewise.
47058         Suggested by Jim Meyering.
47059
47060 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47061
47062         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47063         * lib/parse-duration.c: use a switch instead of cascading if's.
47064
47065 2008-12-29  Eric Blake  <ebb9@byu.net>
47066
47067         wchar.h: supply WEOF on Irix 5.3
47068         * lib/wchar.in.h (wint_t): Also supply WEOF.
47069         * lib/wctype.in.h (wint_t): Likewise.
47070         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47071         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47072         Reported by Tom G. Christensen.
47073
47074 2008-12-26  Bruno Haible  <bruno@clisp.org>
47075
47076         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47077         i486, i586, i686.
47078
47079 2008-12-26  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47082
47083 2008-12-26  Bruno Haible  <bruno@clisp.org>
47084
47085         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47086         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47087         not __STDC_CONSTANT_MACROS.
47088         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47089
47090 2008-12-25  Bruno Haible  <bruno@clisp.org>
47091
47092         Add support for universal builds to vasnprintf.
47093         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47094         universal builds, guess no.
47095         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47096         * modules/vasprintf-posix (Depends-on): Likewise.
47097         * modules/fprintf-posix (Depends-on): Likewise.
47098         * modules/vfprintf-posix (Depends-on): Likewise.
47099         * modules/snprintf-posix (Depends-on): Likewise.
47100         * modules/vsnprintf-posix (Depends-on): Likewise.
47101         * modules/sprintf-posix (Depends-on): Likewise.
47102         * modules/vsprintf-posix (Depends-on): Likewise.
47103         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47104         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47105         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47106         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47107         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47108         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47109         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47110
47111         Add support for universal builds to <inttypes.h>.
47112         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47113         _SCNu64_PREFIX): In Apple
47114         universal builds, define directly, using _LP64.
47115         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47116         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47117         * modules/inttypes (Depends-on): Add multiarch.
47118         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47119
47120         Add support for universal builds to <stdint.h>.
47121         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47122         universal builds, define directly, using _LP64.
47123         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47124         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47125         and size_t.
47126         * modules/stdint (Depends-on): Add multiarch.
47127         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47128
47129         New module 'multiarch'.
47130         * modules/multiarch: New file.
47131         * m4/multiarch.m4: New file.
47132
47133 2008-12-25  Bruno Haible  <bruno@clisp.org>
47134
47135         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47136
47137 2008-12-25  Bruno Haible  <bruno@clisp.org>
47138
47139         * modules/btowc (License): Relicense under LGPLv2+.
47140         * modules/mbsinit (License): Likewise.
47141         * modules/mbrtowc (License): Likewise.
47142         * modules/wcrtomb (License): Likewise.
47143         * modules/streq (License): Likewise.
47144         Reported by David Lutterkort <lutter@redhat.com>.
47145
47146 2008-12-23  Bruno Haible  <bruno@clisp.org>
47147
47148         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47149
47150 2008-12-23  Bruno Haible  <bruno@clisp.org>
47151
47152         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47153         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47154         GETADDRINFO_LIB, not in LIBS.
47155         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47156         * modules/canon-host (Link): Likewise.
47157         * NEWS: Mention the change.
47158         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47159         GETADDRINFO_LIB.
47160
47161 2008-12-22  Bruno Haible  <bruno@clisp.org>
47162
47163         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47164         * doc/posix-functions/iswalpha_l.texi: Likewise.
47165         * doc/posix-functions/iswblank_l.texi: Likewise.
47166         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47167         * doc/posix-functions/iswctype_l.texi: Likewise.
47168         * doc/posix-functions/iswdigit_l.texi: Likewise.
47169         * doc/posix-functions/iswgraph_l.texi: Likewise.
47170         * doc/posix-functions/iswlower_l.texi: Likewise.
47171         * doc/posix-functions/iswprint_l.texi: Likewise.
47172         * doc/posix-functions/iswpunct_l.texi: Likewise.
47173         * doc/posix-functions/iswspace_l.texi: Likewise.
47174         * doc/posix-functions/iswupper_l.texi: Likewise.
47175         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47176         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47177         * doc/posix-functions/open_wmemstream.texi: Likewise.
47178         * doc/posix-functions/swscanf.texi: Likewise.
47179         * doc/posix-functions/towctrans_l.texi: Likewise.
47180         * doc/posix-functions/towlower.texi: Likewise.
47181         * doc/posix-functions/towlower_l.texi: Likewise.
47182         * doc/posix-functions/towupper.texi: Likewise.
47183         * doc/posix-functions/towupper_l.texi: Likewise.
47184         * doc/posix-functions/vfwprintf.texi: Likewise.
47185         * doc/posix-functions/vfwscanf.texi: Likewise.
47186         * doc/posix-functions/vswscanf.texi: Likewise.
47187         * doc/posix-functions/vwprintf.texi: Likewise.
47188         * doc/posix-functions/vwscanf.texi: Likewise.
47189         * doc/posix-functions/wcpcpy.texi: Likewise.
47190         * doc/posix-functions/wcpncpy.texi: Likewise.
47191         * doc/posix-functions/wcscasecmp.texi: Likewise.
47192         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47193         * doc/posix-functions/wcscoll_l.texi: Likewise.
47194         * doc/posix-functions/wcsdup.texi: Likewise.
47195         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47196         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47197         * doc/posix-functions/wcsnlen.texi: Likewise.
47198         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47199         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47200         * doc/posix-functions/wctrans_l.texi: Likewise.
47201         * doc/posix-functions/wctype_l.texi: Likewise.
47202         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47203         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47204         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47205         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47206         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47207         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47208         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47209         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47210         * doc/glibc-functions/wcschrnul.texi: Likewise.
47211         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47212         * doc/glibc-functions/wcstod_l.texi: Likewise.
47213         * doc/glibc-functions/wcstof_l.texi: Likewise.
47214         * doc/glibc-functions/wcstol_l.texi: Likewise.
47215         * doc/glibc-functions/wcstold_l.texi: Likewise.
47216         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47217         * doc/glibc-functions/wcstoq.texi: Likewise.
47218         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47219         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47220         * doc/glibc-functions/wcstouq.texi: Likewise.
47221         * doc/glibc-functions/wmempcpy.texi: Likewise.
47222
47223 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47224             Eric Blake  <ebb9@byu.net>
47225             Paolo Bonzini  <bonzini@gnu.org>
47226             Bruno Haible  <bruno@clisp.org>
47227
47228         Make c-stack work on Haiku.
47229         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47230         (c_stack_action): Use SA_ONSTACK flag.
47231
47232 2008-12-22  Bruno Haible  <bruno@clisp.org>
47233
47234         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47235
47236 2008-12-22  Bruno Haible  <bruno@clisp.org>
47237
47238         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47239         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47240         being overridden.
47241         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47242         New macros.
47243         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47244         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47245         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47246         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47247
47248 2008-12-22  Bruno Haible  <bruno@clisp.org>
47249
47250         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47251         from test code.
47252
47253 2008-12-22  Eric Blake  <ebb9@byu.net>
47254
47255         Avoid gcc warnings on cygwin.
47256         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47257         Avoid unused variable.
47258         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47259         Likewise.
47260
47261 2008-12-22  Bruno Haible  <bruno@clisp.org>
47262
47263         Remove HAVE_MBRTOWC conditionals.
47264         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47265         (mbscasecmp): Assume mbrtowc function.
47266         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47267         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47268         * lib/mbschr.c: Include mbuiter.h unconditionally.
47269         (mbschr): Assume mbrtowc function.
47270         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47271         (mbscspn): Assume mbrtowc function.
47272         * lib/mbslen.c: Include mbuiter.h unconditionally.
47273         (mbslen): Assume mbrtowc function.
47274         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47275         (mbsncasecmp): Assume mbrtowc function.
47276         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47277         (mbsnlen): Assume mbrtowc function.
47278         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47279         (mbspbrk): Assume mbrtowc function.
47280         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47281         (mbspcasecmp): Assume mbrtowc function.
47282         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47283         (mbsrchr): Assume mbrtowc function.
47284         * lib/mbssep.c: Include mbuiter.h unconditionally.
47285         (mbssep): Assume mbrtowc function.
47286         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47287         (mbsspn): Assume mbrtowc function.
47288         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47289         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47290         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47291         (mbstok_r): Assume mbrtowc function.
47292         * lib/propername.c: Include mbuiter.h unconditionally.
47293         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47294         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47295         (trim2): Assume mbrtowc function.
47296         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47297         (mbsnwidth): Assume mbrtowc function.
47298         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47299         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47300         fallback definitions.
47301         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47302
47303 2008-12-22  Bruno Haible  <bruno@clisp.org>
47304
47305         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47306
47307 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47308
47309         * modules/regex: Request emulations for the mb*/wc* functions we need.
47310         * m4/regex.m4: Don't look for those functions here.
47311         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47312
47313 2008-12-22  Bruno Haible  <bruno@clisp.org>
47314
47315         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47316
47317 2008-12-21  Bruno Haible  <bruno@clisp.org>
47318
47319         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47320         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47321         (Include): Remove conditionalization.
47322         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47323         (Include): Remove conditionalization.
47324         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47325         (Include): Remove conditionalization.
47326         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47327         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47328         * NEWS: Mention the change.
47329         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47330         via Sergey Poznyakoff <gray@gnu.org.ua>.
47331
47332 2008-12-21  Bruno Haible  <bruno@clisp.org>
47333
47334         * MODULES.html.sh (Extended multibyte and wide character utilities
47335         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47336         wcrtomb, wcsrtombs.
47337         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47338         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47339         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47340         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47341
47342 2008-12-21  Bruno Haible  <bruno@clisp.org>
47343
47344         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47345
47346 2008-12-21  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/wcsnrtombs-tests: New file.
47349         * tests/test-wcsnrtombs1.sh: New file.
47350         * tests/test-wcsnrtombs2.sh: New file.
47351         * tests/test-wcsnrtombs3.sh: New file.
47352         * tests/test-wcsnrtombs4.sh: New file.
47353         * tests/test-wcsnrtombs.c: New file.
47354
47355         New module 'wcsnrtombs'.
47356         * lib/wchar.in.h (wcsnrtombs): New declaration.
47357         * lib/wcsnrtombs.c: New file.
47358         * lib/wcsrtombs-state.c: New file.
47359         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47360         (internal_state): Remove variable.
47361         * m4/wcsnrtombs.m4: New file.
47362         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47363         compilation units.
47364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47365         HAVE_WCSNRTOMBS.
47366         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47367         HAVE_WCSNRTOMBS.
47368         * modules/wcsnrtombs: New file.
47369         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47370         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47371
47372 2008-12-21  Bruno Haible  <bruno@clisp.org>
47373
47374         * modules/wcsrtombs-tests: New file.
47375         * tests/test-wcsrtombs1.sh: New file.
47376         * tests/test-wcsrtombs2.sh: New file.
47377         * tests/test-wcsrtombs3.sh: New file.
47378         * tests/test-wcsrtombs4.sh: New file.
47379         * tests/test-wcsrtombs.c: New file.
47380
47381         New module 'wcsrtombs'.
47382         * lib/wchar.in.h (wcsrtombs): New declaration.
47383         * lib/wcsrtombs.c: New file.
47384         * m4/wcsrtombs.m4: New file.
47385         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47386         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47387         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47388         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47389         * modules/wcsrtombs: New file.
47390         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47391         bugs.
47392
47393 2008-12-21  Bruno Haible  <bruno@clisp.org>
47394
47395         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47396         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47397         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47398         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47399         if not correct.
47400         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47401         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47402         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47403         m4/locale-zh.m4, m4/codeset.m4.
47404         * doc/posix-functions/wcrtomb.texi: Document the bug.
47405
47406 2008-12-21  Bruno Haible  <bruno@clisp.org>
47407
47408         Work around a btowc() bug on IRIX 6.5.
47409         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47410         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47411         REPLACE_WTOBC if not.
47412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47413         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47414         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47415
47416 2008-12-21  Bruno Haible  <bruno@clisp.org>
47417
47418         * modules/wcrtomb-tests: New file.
47419         * tests/test-wcrtomb.sh: New file.
47420         * tests/test-wcrtomb.c: New file.
47421
47422         New module 'wcrtomb'.
47423         * lib/wchar.in.h (wcrtomb): New declaration.
47424         * lib/wcrtomb.c: New file.
47425         * m4/wcrtomb.m4: New file.
47426         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47427         HAVE_WCRTOMB.
47428         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47429         HAVE_WCRTOMB.
47430         * modules/wcrtomb: New file.
47431         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47432
47433 2008-12-21  Bruno Haible  <bruno@clisp.org>
47434
47435         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47436         * modules/mbsrtowcs (Files): Likewise.
47437         * modules/wctob (Files): Likewise.
47438         * modules/c-strcase-tests (Files): Likewise.
47439         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47440         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47441         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47442         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47443         * modules/vasnprintf-posix-tests (Files): Likewise.
47444
47445 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47446
47447         gitlog-to-changelog: pass all command-line arguments to git-log
47448         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47449         it is sometimes convenient to filter the commits in various ways.
47450         gitlog-to-changelog only allows --since to specify a start date,
47451         but git-log itself supports many other filtering mechanisms.
47452         At the moment, I want to filter by branch name.  Rather than
47453         adding a --branch option to gitlog-to-changelog, it seems more
47454         flexible to simply pass all options directly to git-log and let
47455         git do the work.  Notice that this effectively makes --since a
47456         redundant option for gitlog-to-changelog, but removing it would
47457         require current usage to change since calls would then require
47458         an additional '--'.
47459
47460 2008-12-21  Bruno Haible  <bruno@clisp.org>
47461
47462         * modules/mbsnrtowcs-tests: New file.
47463         * tests/test-mbsnrtowcs1.sh: New file.
47464         * tests/test-mbsnrtowcs2.sh: New file.
47465         * tests/test-mbsnrtowcs3.sh: New file.
47466         * tests/test-mbsnrtowcs4.sh: New file.
47467         * tests/test-mbsnrtowcs.c: New file.
47468
47469         New module 'mbsnrtowcs'.
47470         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47471         * lib/mbsnrtowcs.c: New file.
47472         * lib/mbsrtowcs-state.c: New file.
47473         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47474         (internal_state): Remove variable.
47475         * m4/mbsnrtowcs.m4: New file.
47476         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47477         compilation units.
47478         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47479         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47480         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47481         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47482         * modules/mbsnrtowcs: New file.
47483         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47484         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47485         portability problem.
47486
47487 2008-12-21  Bruno Haible  <bruno@clisp.org>
47488
47489         Work around mbsrtowcs bug.
47490         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47491         (gl_FUNC_MBSRTOWCS): Invoke it.
47492         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47493         m4/locale-zh.m4.
47494         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47495
47496 2008-12-21  Bruno Haible  <bruno@clisp.org>
47497
47498         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47499
47500 2008-12-21  Bruno Haible  <bruno@clisp.org>
47501
47502         Update doc for AIX.
47503         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47504         16-bit wchar_t type.
47505         * doc/posix-functions/btowc.texi: Likewise.
47506         * doc/posix-functions/fgetwc.texi: Likewise.
47507         * doc/posix-functions/fgetws.texi: Likewise.
47508         * doc/posix-functions/fputwc.texi: Likewise.
47509         * doc/posix-functions/fputws.texi: Likewise.
47510         * doc/posix-functions/fwide.texi: Likewise.
47511         * doc/posix-functions/fwprintf.texi: Likewise.
47512         * doc/posix-functions/fwscanf.texi: Likewise.
47513         * doc/posix-functions/getwchar.texi: Likewise.
47514         * doc/posix-functions/getwc.texi: Likewise.
47515         * doc/posix-functions/iswalnum.texi: Likewise.
47516         * doc/posix-functions/iswalpha.texi: Likewise.
47517         * doc/posix-functions/iswblank.texi: Likewise.
47518         * doc/posix-functions/iswcntrl.texi: Likewise.
47519         * doc/posix-functions/iswctype.texi: Likewise.
47520         * doc/posix-functions/iswdigit.texi: Likewise.
47521         * doc/posix-functions/iswgraph.texi: Likewise.
47522         * doc/posix-functions/iswlower.texi: Likewise.
47523         * doc/posix-functions/iswprint.texi: Likewise.
47524         * doc/posix-functions/iswpunct.texi: Likewise.
47525         * doc/posix-functions/iswspace.texi: Likewise.
47526         * doc/posix-functions/iswupper.texi: Likewise.
47527         * doc/posix-functions/iswxdigit.texi: Likewise.
47528         * doc/posix-functions/mbrtowc.texi: Likewise.
47529         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47530         * doc/posix-functions/mbstowcs.texi: Likewise.
47531         * doc/posix-functions/mbtowc.texi: Likewise.
47532         * doc/posix-functions/putwchar.texi: Likewise.
47533         * doc/posix-functions/putwc.texi: Likewise.
47534         * doc/posix-functions/swprintf.texi: Likewise.
47535         * doc/posix-functions/tolower.texi: Likewise.
47536         * doc/posix-functions/toupper.texi: Likewise.
47537         * doc/posix-functions/towctrans.texi: Likewise.
47538         * doc/posix-functions/ungetwc.texi: Likewise.
47539         * doc/posix-functions/vswprintf.texi: Likewise.
47540         * doc/posix-functions/wcrtomb.texi: Likewise.
47541         * doc/posix-functions/wcscat.texi: Likewise.
47542         * doc/posix-functions/wcschr.texi: Likewise.
47543         * doc/posix-functions/wcscmp.texi: Likewise.
47544         * doc/posix-functions/wcscoll.texi: Likewise.
47545         * doc/posix-functions/wcscpy.texi: Likewise.
47546         * doc/posix-functions/wcscspn.texi: Likewise.
47547         * doc/posix-functions/wcsftime.texi: Likewise.
47548         * doc/posix-functions/wcslen.texi: Likewise.
47549         * doc/posix-functions/wcsncat.texi: Likewise.
47550         * doc/posix-functions/wcsncmp.texi: Likewise.
47551         * doc/posix-functions/wcsncpy.texi: Likewise.
47552         * doc/posix-functions/wcspbrk.texi: Likewise.
47553         * doc/posix-functions/wcsrchr.texi: Likewise.
47554         * doc/posix-functions/wcsrtombs.texi: Likewise.
47555         * doc/posix-functions/wcsspn.texi: Likewise.
47556         * doc/posix-functions/wcsstr.texi: Likewise.
47557         * doc/posix-functions/wcstod.texi: Likewise.
47558         * doc/posix-functions/wcstof.texi: Likewise.
47559         * doc/posix-functions/wcstoimax.texi: Likewise.
47560         * doc/posix-functions/wcstok.texi: Likewise.
47561         * doc/posix-functions/wcstold.texi: Likewise.
47562         * doc/posix-functions/wcstoll.texi: Likewise.
47563         * doc/posix-functions/wcstol.texi: Likewise.
47564         * doc/posix-functions/wcstombs.texi: Likewise.
47565         * doc/posix-functions/wcstoull.texi: Likewise.
47566         * doc/posix-functions/wcstoul.texi: Likewise.
47567         * doc/posix-functions/wcstoumax.texi: Likewise.
47568         * doc/posix-functions/wcswidth.texi: Likewise.
47569         * doc/posix-functions/wcsxfrm.texi: Likewise.
47570         * doc/posix-functions/wctob.texi: Likewise.
47571         * doc/posix-functions/wctomb.texi: Likewise.
47572         * doc/posix-functions/wctrans.texi: Likewise.
47573         * doc/posix-functions/wctype.texi: Likewise.
47574         * doc/posix-functions/wcwidth.texi: Likewise.
47575         * doc/posix-functions/wmemchr.texi: Likewise.
47576         * doc/posix-functions/wmemcmp.texi: Likewise.
47577         * doc/posix-functions/wmemcpy.texi: Likewise.
47578         * doc/posix-functions/wmemmove.texi: Likewise.
47579         * doc/posix-functions/wmemset.texi: Likewise.
47580         * doc/posix-functions/wprintf.texi: Likewise.
47581         * doc/posix-functions/wscanf.texi: Likewise.
47582
47583 2008-12-21  Bruno Haible  <bruno@clisp.org>
47584
47585         Update doc for HP-UX 11.11.
47586         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47587         in HP-UX version 11.00, not in all versions of HP-UX 11.
47588         * doc/posix-functions/fwide.texi: Likewise.
47589         * doc/posix-functions/fwprintf.texi: Likewise.
47590         * doc/posix-functions/fwscanf.texi: Likewise.
47591         * doc/posix-functions/inet_ntop.texi: Likewise.
47592         * doc/posix-functions/inet_pton.texi: Likewise.
47593         * doc/posix-functions/mbrlen.texi: Likewise.
47594         * doc/posix-functions/mbrtowc.texi: Likewise.
47595         * doc/posix-functions/mbsinit.texi: Likewise.
47596         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47597         * doc/posix-functions/swprintf.texi: Likewise.
47598         * doc/posix-functions/swscanf.texi: Likewise.
47599         * doc/posix-functions/towctrans.texi: Likewise.
47600         * doc/posix-functions/vfwprintf.texi: Likewise.
47601         * doc/posix-functions/vswprintf.texi: Likewise.
47602         * doc/posix-functions/vwprintf.texi: Likewise.
47603         * doc/posix-functions/wcrtomb.texi: Likewise.
47604         * doc/posix-functions/wcsrtombs.texi: Likewise.
47605         * doc/posix-functions/wcsstr.texi: Likewise.
47606         * doc/posix-functions/wctob.texi: Likewise.
47607         * doc/posix-functions/wctrans.texi: Likewise.
47608         * doc/posix-functions/wmemchr.texi: Likewise.
47609         * doc/posix-functions/wmemcmp.texi: Likewise.
47610         * doc/posix-functions/wmemcpy.texi: Likewise.
47611         * doc/posix-functions/wmemmove.texi: Likewise.
47612         * doc/posix-functions/wmemset.texi: Likewise.
47613         * doc/posix-functions/wprintf.texi: Likewise.
47614         * doc/posix-functions/wscanf.texi: Likewise.
47615
47616 2008-12-21  Bruno Haible  <bruno@clisp.org>
47617
47618         Work around a portability problem.
47619         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
47620         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
47621
47622 2008-12-20  Bruno Haible  <bruno@clisp.org>
47623
47624         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
47625         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
47626         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
47627         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
47628         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
47629
47630         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
47631         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
47632         set.
47633         (GNULIB_defined_mbstate_t): New macro.
47634         (mbsinit): Redefine if REPLACE_MBSINIT is set.
47635         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
47636         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
47637         reuses the system's mbrtowc function but works around the bugs.
47638         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
47639         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
47640         macros.
47641         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
47642         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
47643         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
47644         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
47645         REPLACE_MBSINIT if mbsinit needs to be overridden.
47646         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
47647         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47648         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
47649         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47650         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47651         m4/locale-zh.m4.
47652         (Depends): Add mbsinit.
47653         * modules/mbsinit (Depends): Add mbrtowc.
47654         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
47655
47656 2008-12-20  Bruno Haible  <bruno@clisp.org>
47657
47658         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
47659         so that there are no conversion errors on AIX.
47660         * tests/test-mbsrtowcs.c (main): LIkewise.
47661
47662 2008-12-20  Bruno Haible  <bruno@clisp.org>
47663
47664         Work around wctob bug on Solaris <= 9.
47665         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
47666         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
47667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
47668         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
47669         * modules/wctob (Files): Add m4/locale-fr.m4.
47670         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
47671
47672 2008-12-20  Bruno Haible  <bruno@clisp.org>
47673
47674         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
47675         /dev/null.
47676         * tests/test-select-in.sh: Likewise.
47677         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47678
47679 2008-12-20  Bruno Haible  <bruno@clisp.org>
47680
47681         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
47682         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
47683         Cygwin 1.5.x.
47684
47685 2008-12-20  Bruno Haible  <bruno@clisp.org>
47686
47687         Ensure mbstate_t is defined on HP-UX 11.11.
47688         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
47689         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
47690         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
47691         AC_USE_SYSTEM_EXTENSIONS.
47692         * modules/fnmatch (Depends-on): Add extensions.
47693         * modules/mbrlen (Depends-on): Likewise.
47694         * modules/mbrtowc (Depends-on): Likewise.
47695         * modules/mbsinit (Depends-on): Likewise.
47696         * modules/mbsrtowcs (Depends-on): Likewise.
47697         * modules/mbswidth (Depends-on): Likewise.
47698         * modules/quotearg (Depends-on): Likewise.
47699         * modules/strftime (Depends-on): Likewise.
47700
47701 2008-12-20  Bruno Haible  <bruno@clisp.org>
47702
47703         Ensure wctob is declared on IRIX 6.5.
47704         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
47705         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
47706         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
47707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
47708         of HAVE_WCTOB.
47709         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
47710         HAVE_WCTOB.
47711         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
47712
47713 2008-12-19  Bruno Haible  <bruno@clisp.org>
47714
47715         * modules/mbsrtowcs-tests: New file.
47716         * tests/test-mbsrtowcs1.sh: New file.
47717         * tests/test-mbsrtowcs2.sh: New file.
47718         * tests/test-mbsrtowcs3.sh: New file.
47719         * tests/test-mbsrtowcs4.sh: New file.
47720         * tests/test-mbsrtowcs.c: New file.
47721
47722         New module 'mbsrtowcs'.
47723         * lib/wchar.in.h (mbsrtowcs): New declaration.
47724         * lib/mbsrtowcs.c: New file.
47725         * m4/mbsrtowcs.m4: New file.
47726         * modules/mbsrtowcs: New file.
47727         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
47728         HAVE_MBSRTOWCS.
47729         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
47730         HAVE_MBSRTOWCS.
47731         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
47732
47733 2008-12-19  Bruno Haible  <bruno@clisp.org>
47734
47735         New module 'mbrlen'.
47736         * lib/wchar.in.h (mbrlen): New declaration.
47737         * lib/mbrlen.c: New file.
47738         * m4/mbrlen.m4: New file.
47739         * modules/mbrlen: New file.
47740         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47741         HAVE_MBRLEN.
47742         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47743         HAVE_MBRLEN.
47744         * doc/posix-functions/mbrlen.texi: Document the new module.
47745
47746 2008-12-19  Bruno Haible  <bruno@clisp.org>
47747
47748         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
47749         * modules/mbrtowc (Depends-on): Add verify.
47750         Suggested by Paul Eggert.
47751
47752 2008-12-18  Bruno Haible  <bruno@clisp.org>
47753
47754         * modules/mbsinit-tests: New file.
47755         * tests/test-mbsinit.sh: New file.
47756         * tests/test-mbsinit.c: New file.
47757
47758 2008-12-18  Bruno Haible  <bruno@clisp.org>
47759
47760         * modules/mbrtowc-tests: New file.
47761         * tests/test-mbrtowc1.sh: New file.
47762         * tests/test-mbrtowc2.sh: New file.
47763         * tests/test-mbrtowc3.sh: New file.
47764         * tests/test-mbrtowc4.sh: New file.
47765         * tests/test-mbrtowc.c: New file.
47766
47767         New module 'mbrtowc'.
47768         * lib/wchar.in.h (mbstate_t): Override when the system does not have
47769         mbsinit and mbrtowc.
47770         (mbrtowc): New declaration.
47771         * lib/mbrtowc.c: New file.
47772         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
47773         * modules/mbrtowc: New file.
47774         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
47775         HAVE_MBRTOWC.
47776         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
47777         HAVE_MBRTOWC.
47778         * doc/posix-functions/mbrtowc.texi: Document the new module.
47779
47780 2008-12-18  Bruno Haible  <bruno@clisp.org>
47781
47782         New module 'wctob'.
47783         * lib/wchar.in.h (wctob): New declaration.
47784         * lib/wctob.c: New file.
47785         * m4/wctob.m4: New file.
47786         * modules/wctob: New file.
47787         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
47788         HAVE_WCTOB.
47789         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
47790         * doc/posix-functions/wctob.texi: Document the new module.
47791
47792 2008-12-18  Bruno Haible  <bruno@clisp.org>
47793
47794         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
47795         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
47796
47797 2008-12-18  Simon Josefsson  <simon@josefsson.org>
47798
47799         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
47800         G. Christensen" <tgc@jupiterrise.com>.
47801
47802         * lib/flock.c: Need to include errno.h.  Reported by "Tom
47803         G. Christensen" <tgc@jupiterrise.com>.
47804
47805         * lib/flock.c: Need to include string.h.  Reported by "Tom
47806         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
47807         <ebb9@byu.net>.
47808
47809 2008-12-18  Bruno Haible  <bruno@clisp.org>
47810
47811         * m4/locale-ja.m4: New file, from GNU gettext.
47812
47813 2008-12-17  Bruno Haible  <bruno@clisp.org>
47814
47815         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
47816         Suggested by Eric Blake.
47817
47818 2008-12-17  Bruno Haible  <bruno@clisp.org>
47819
47820         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
47821
47822 2008-12-17  Bruno Haible  <bruno@clisp.org>
47823
47824         * lib/mbsinit.c: Include verify.h. Verify an assumption.
47825         * modules/mbsinit (Depends-on): Add verify.
47826         Suggested by Paul Eggert.
47827
47828 2008-12-17  Bruno Haible  <bruno@clisp.org>
47829
47830         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
47831         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
47832         gl_FUNC_MBRTOWC.
47833         * m4/mbiter.m4 (gl_MBITER): LIkewise.
47834         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
47835         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
47836         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
47837         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
47838         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
47839         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
47840         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
47841         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
47842         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
47843         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
47844         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
47845         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
47846         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
47847         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
47848         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47849         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
47850         * modules/trim (configure.ac): Likewise.
47851
47852 2008-12-17  Bruno Haible  <bruno@clisp.org>
47853
47854         * modules/btowc-tests: New file.
47855         * tests/test-btowc1.sh: New file.
47856         * tests/test-btowc2.sh: New file.
47857         * tests/test-btowc.c: New file.
47858
47859         New module 'btowc'.
47860         * lib/wchar.in.h (btowc): New declaration.
47861         * lib/btowc.c: New file.
47862         * m4/btowc.m4: New file.
47863         * modules/btowc: New file.
47864         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
47865         HAVE_BTOWC.
47866         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
47867         * doc/posix-functions/btowc.texi: Document the new module.
47868
47869 2008-12-17  Bruno Haible  <bruno@clisp.org>
47870
47871         New module 'mbsinit'.
47872         * lib/wchar.in.h (mbsinit): New declaration.
47873         * lib/mbsinit.c: New file.
47874         * m4/mbsinit.m4: New file.
47875         * modules/mbsinit: New file.
47876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
47877         HAVE_MBSINIT.
47878         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
47879         HAVE_MBSINIT.
47880         * doc/posix-functions/mbsinit.texi: Document the new module.
47881
47882 2008-12-16  Bruno Haible  <bruno@clisp.org>
47883
47884         * lib/unistd.in.h: Add comment.
47885         * tests/test-environ.c: Don't include <stdlib.h>.
47886
47887 2008-12-16  Bruno Haible  <bruno@clisp.org>
47888
47889         * lib/parse-duration.h (parse_duration): Document return value
47890         convention.
47891         * lib/parse-duration.c: Include specification header first. Add
47892         comments.
47893         (_): Remove macro.
47894         (parse_year_month_day, parse_hour_minute_second): Move side effects
47895         outside of strchr call.
47896         (parse_non_iso8601): Move side effects outside of isspace call.
47897         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
47898         call.
47899
47900 2008-12-16  Bruno Haible  <bruno@clisp.org>
47901
47902         * tests/test-parse-duration.sh: Produce no output when the test
47903         succeeds.
47904
47905 2008-12-16  Bruno Haible  <bruno@clisp.org>
47906
47907         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
47908         expressions.
47909
47910 2008-12-15  Bruno Haible  <bruno@clisp.org>
47911
47912         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
47913         * doc/glibc-functions/flistxattr.texi: Likewise.
47914         * doc/glibc-functions/fopencookie.texi: Likewise.
47915         * doc/glibc-functions/fremovexattr.texi: Likewise.
47916         * doc/glibc-functions/fsetxattr.texi: Likewise.
47917         * doc/glibc-functions/getxattr.texi: Likewise.
47918         * doc/glibc-functions/lgetxattr.texi: Likewise.
47919         * doc/glibc-functions/listxattr.texi: Likewise.
47920         * doc/glibc-functions/llistxattr.texi: Likewise.
47921         * doc/glibc-functions/lremovexattr.texi: Likewise.
47922         * doc/glibc-functions/lsetxattr.texi: Likewise.
47923         * doc/glibc-functions/removexattr.texi: Likewise.
47924         * doc/glibc-functions/setxattr.texi: Likewise.
47925         * doc/posix-functions/open_memstream.texi: Likewise.
47926
47927 2008-12-15  Eric Blake  <ebb9@byu.net>
47928
47929         Update doc for cygwin 1.7.
47930         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
47931         functions.
47932         * doc/posix-functions/fchmodat.texi: Likewise.
47933         * doc/posix-functions/fchownat.texi: Likewise.
47934         * doc/posix-functions/fdopendir.texi: Likewise.
47935         * doc/posix-functions/fmemopen.texi: Likewise.
47936         * doc/posix-functions/freeaddrinfo.texi: Likewise.
47937         * doc/posix-functions/fstatat.texi: Likewise.
47938         * doc/posix-functions/futimens.texi: Likewise.
47939         * doc/posix-functions/gai_strerror.texi: Likewise.
47940         * doc/posix-functions/getaddrinfo.texi: Likewise.
47941         * doc/posix-functions/getnameinfo.texi: Likewise.
47942         * doc/posix-functions/if_freenameindex.texi: Likewise.
47943         * doc/posix-functions/if_indextoname.texi: Likewise.
47944         * doc/posix-functions/if_nameindex.texi: Likewise.
47945         * doc/posix-functions/if_nametoindex.texi: Likewise.
47946         * doc/posix-functions/insque.texi: Likewise.
47947         * doc/posix-functions/linkat.texi: Likewise.
47948         * doc/posix-functions/llrint.texi: Likewise.
47949         * doc/posix-functions/llrintf.texi: Likewise.
47950         * doc/posix-functions/llrintl.texi: Likewise.
47951         * doc/posix-functions/lockf.texi: Likewise.
47952         * doc/posix-functions/lrintl.texi: Likewise.
47953         * doc/posix-functions/mkdirat.texi: Likewise.
47954         * doc/posix-functions/mkfifoat.texi: Likewise.
47955         * doc/posix-functions/mknodat.texi: Likewise.
47956         * doc/posix-functions/mq_close.texi: Likewise.
47957         * doc/posix-functions/mq_getattr.texi: Likewise.
47958         * doc/posix-functions/mq_notify.texi: Likewise.
47959         * doc/posix-functions/mq_open.texi: Likewise.
47960         * doc/posix-functions/mq_receive.texi: Likewise.
47961         * doc/posix-functions/mq_send.texi: Likewise.
47962         * doc/posix-functions/mq_setattr.texi: Likewise.
47963         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47964         * doc/posix-functions/mq_timedsend.texi: Likewise.
47965         * doc/posix-functions/mq_unlink.texi: Likewise.
47966         * doc/posix-functions/open_memstream.texi: Likewise.
47967         * doc/posix-functions/openat.texi: Likewise.
47968         * doc/posix-functions/posix_fadvise.texi: Likewise.
47969         * doc/posix-functions/posix_fallocate.texi: Likewise.
47970         * doc/posix-functions/posix_madvise.texi: Likewise.
47971         * doc/posix-functions/posix_memalign.texi: Likewise.
47972         * doc/posix-functions/posix_openpt.texi: Likewise.
47973         * doc/posix-functions/readlinkat.texi: Likewise.
47974         * doc/posix-functions/remque.texi: Likewise.
47975         * doc/posix-functions/renameat.texi: Likewise.
47976         * doc/posix-functions/rintl.texi: Likewise.
47977         * doc/posix-functions/sem_unlink.texi: Likewise.
47978         * doc/posix-functions/shm_open.texi: Likewise.
47979         * doc/posix-functions/shm_unlink.texi: Likewise.
47980         * doc/posix-functions/signgam.texi: Likewise.
47981         * doc/posix-functions/sigset.texi: Likewise.
47982         * doc/posix-functions/stpcpy.texi: Likewise.
47983         * doc/posix-functions/stpncpy.texi: Likewise.
47984         * doc/posix-functions/strerror.texi: Likewise.
47985         * doc/posix-functions/strtod.texi: Likewise.
47986         * doc/posix-functions/symlinkat.texi: Likewise.
47987         * doc/posix-functions/unlinkat.texi: Likewise.
47988         * doc/posix-functions/utimensat.texi: Likewise.
47989         * doc/glibc-functions/bindresvport.texi: Likewise.
47990         * doc/glibc-functions/dn_expand.texi: Likewise.
47991         * doc/glibc-functions/exp10.texi: Likewise.
47992         * doc/glibc-functions/exp10f.texi: Likewise.
47993         * doc/glibc-functions/fgetxattr.texi: Likewise.
47994         * doc/glibc-functions/flistxattr.texi: Likewise.
47995         * doc/glibc-functions/fopencookie.texi: Likewise.
47996         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47997         * doc/glibc-functions/fremovexattr.texi: Likewise.
47998         * doc/glibc-functions/fsetxattr.texi: Likewise.
47999         * doc/glibc-functions/getifaddrs.texi: Likewise.
48000         * doc/glibc-functions/getxattr.texi: Likewise.
48001         * doc/glibc-functions/lgetxattr.texi: Likewise.
48002         * doc/glibc-functions/listxattr.texi: Likewise.
48003         * doc/glibc-functions/llistxattr.texi: Likewise.
48004         * doc/glibc-functions/lremovexattr.texi: Likewise.
48005         * doc/glibc-functions/lsetxattr.texi: Likewise.
48006         * doc/glibc-functions/pow10.texi: Likewise.
48007         * doc/glibc-functions/pow10f.texi: Likewise.
48008         * doc/glibc-functions/rcmd_af.texi: Likewise.
48009         * doc/glibc-functions/removexattr.texi: Likewise.
48010         * doc/glibc-functions/res_init.texi: Likewise.
48011         * doc/glibc-functions/res_mkquery.texi: Likewise.
48012         * doc/glibc-functions/res_query.texi: Likewise.
48013         * doc/glibc-functions/res_querydomain.texi: Likewise.
48014         * doc/glibc-functions/res_send.texi: Likewise.
48015         * doc/glibc-functions/rresvport_af.texi: Likewise.
48016         * doc/glibc-functions/setxattr.texi: Likewise.
48017         * doc/glibc-functions/strcasestr.texi: Likewise.
48018
48019 2008-12-15  Bruno Haible  <bruno@clisp.org>
48020
48021         Fix compilation error on OSF/1 4.0.
48022         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48023         <sys/time.h>, simply delegate to the system header.
48024         Reported by Daniel Richard G. <oss@teragram.com>.
48025
48026 2008-12-15  Bruno Haible  <bruno@clisp.org>
48027
48028         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48029         * doc/posix-functions/fchmodat.texi: Likewise.
48030         * doc/posix-functions/fchownat.texi: Likewise.
48031         * doc/posix-functions/fdopendir.texi: Likewise.
48032         * doc/posix-functions/fstatat.texi: Likewise.
48033         * doc/posix-functions/mkdirat.texi: Likewise.
48034         * doc/posix-functions/unlinkat.texi: Likewise.
48035
48036 2008-12-14  Bruno Haible  <bruno@clisp.org>
48037
48038         Update doc for POSIX:2008.
48039         * doc/posix-functions/faccessat.texi: New file.
48040         * doc/posix-functions/fchmodat.texi: New file.
48041         * doc/posix-functions/fchownat.texi: New file.
48042         * doc/posix-functions/fdopendir.texi: New file.
48043         * doc/posix-functions/fstatat.texi: New file.
48044         * doc/posix-functions/futimens.texi: New file.
48045         * doc/posix-functions/linkat.texi: New file.
48046         * doc/posix-functions/mkdirat.texi: New file.
48047         * doc/posix-functions/mkfifoat.texi: New file.
48048         * doc/posix-functions/mknodat.texi: New file.
48049         * doc/posix-functions/open_wmemstream.texi: New file.
48050         * doc/posix-functions/openat.texi: New file.
48051         * doc/posix-functions/psiginfo.texi: New file.
48052         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48053         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48054         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48055         * doc/posix-functions/readlinkat.texi: New file.
48056         * doc/posix-functions/renameat.texi: New file.
48057         * doc/posix-functions/strerror_l.texi: New file.
48058         * doc/posix-functions/symlinkat.texi: New file.
48059         * doc/posix-functions/unlinkat.texi: New file.
48060         * doc/posix-functions/utimensat.texi: New file.
48061         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48062
48063 2008-12-14  Bruno Haible  <bruno@clisp.org>
48064
48065         Update doc for POSIX:2008.
48066         * doc/posix-functions/alphasort.texi: Renamed from
48067         doc/glibc-functions/alphasort.texi.
48068         * doc/posix-functions/dirfd.texi: Renamed from
48069         doc/glibc-functions/dirfd.texi.
48070         * doc/posix-functions/dprintf.texi: Renamed from
48071         doc/glibc-functions/dprintf.texi.
48072         * doc/posix-functions/duplocale.texi: Renamed from
48073         doc/glibc-functions/duplocale.texi.
48074         * doc/posix-functions/fexecve.texi: Renamed from
48075         doc/glibc-functions/fexecve.texi.
48076         * doc/posix-functions/fmemopen.texi: Renamed from
48077         doc/glibc-functions/fmemopen.texi.
48078         * doc/posix-functions/freelocale.texi: Renamed from
48079         doc/glibc-functions/freelocale.texi.
48080         * doc/posix-functions/getdate_err.texi: Renamed from
48081         doc/glibc-functions/getdate_err.texi.
48082         * doc/posix-functions/isalnum_l.texi: Renamed from
48083         doc/glibc-functions/isalnum_l.texi.
48084         * doc/posix-functions/isalpha_l.texi: Renamed from
48085         doc/glibc-functions/isalpha_l.texi.
48086         * doc/posix-functions/isblank_l.texi: Renamed from
48087         doc/glibc-functions/isblank_l.texi.
48088         * doc/posix-functions/iscntrl_l.texi: Renamed from
48089         doc/glibc-functions/iscntrl_l.texi.
48090         * doc/posix-functions/isdigit_l.texi: Renamed from
48091         doc/glibc-functions/isdigit_l.texi.
48092         * doc/posix-functions/isgraph_l.texi: Renamed from
48093         doc/glibc-functions/isgraph_l.texi.
48094         * doc/posix-functions/islower_l.texi: Renamed from
48095         doc/glibc-functions/islower_l.texi.
48096         * doc/posix-functions/isprint_l.texi: Renamed from
48097         doc/glibc-functions/isprint_l.texi.
48098         * doc/posix-functions/ispunct_l.texi: Renamed from
48099         doc/glibc-functions/ispunct_l.texi.
48100         * doc/posix-functions/isspace_l.texi: Renamed from
48101         doc/glibc-functions/isspace_l.texi.
48102         * doc/posix-functions/isupper_l.texi: Renamed from
48103         doc/glibc-functions/isupper_l.texi.
48104         * doc/posix-functions/iswalnum_l.texi: Renamed from
48105         doc/glibc-functions/iswalnum_l.texi.
48106         * doc/posix-functions/iswalpha_l.texi: Renamed from
48107         doc/glibc-functions/iswalpha_l.texi.
48108         * doc/posix-functions/iswblank_l.texi: Renamed from
48109         doc/glibc-functions/iswblank_l.texi.
48110         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48111         doc/glibc-functions/iswcntrl_l.texi.
48112         * doc/posix-functions/iswctype_l.texi: Renamed from
48113         doc/glibc-functions/iswctype_l.texi.
48114         * doc/posix-functions/iswdigit_l.texi: Renamed from
48115         doc/glibc-functions/iswdigit_l.texi.
48116         * doc/posix-functions/iswgraph_l.texi: Renamed from
48117         doc/glibc-functions/iswgraph_l.texi.
48118         * doc/posix-functions/iswlower_l.texi: Renamed from
48119         doc/glibc-functions/iswlower_l.texi.
48120         * doc/posix-functions/iswprint_l.texi: Renamed from
48121         doc/glibc-functions/iswprint_l.texi.
48122         * doc/posix-functions/iswpunct_l.texi: Renamed from
48123         doc/glibc-functions/iswpunct_l.texi.
48124         * doc/posix-functions/iswspace_l.texi: Renamed from
48125         doc/glibc-functions/iswspace_l.texi.
48126         * doc/posix-functions/iswupper_l.texi: Renamed from
48127         doc/glibc-functions/iswupper_l.texi.
48128         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48129         doc/glibc-functions/iswxdigit_l.texi.
48130         * doc/posix-functions/isxdigit_l.texi: Renamed from
48131         doc/glibc-functions/isxdigit_l.texi.
48132         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48133         doc/glibc-functions/mbsnrtowcs.texi.
48134         * doc/posix-functions/mkdtemp.texi: Renamed from
48135         doc/glibc-functions/mkdtemp.texi.
48136         * doc/posix-functions/newlocale.texi: Renamed from
48137         doc/glibc-functions/newlocale.texi.
48138         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48139         doc/glibc-functions/nl_langinfo_l.texi.
48140         * doc/posix-functions/open_memstream.texi: Renamed from
48141         doc/glibc-functions/open_memstream.texi.
48142         * doc/posix-functions/opterr.texi: Renamed from
48143         doc/glibc-functions/opterr.texi.
48144         * doc/posix-functions/optind.texi: Renamed from
48145         doc/glibc-functions/optind.texi.
48146         * doc/posix-functions/optopt.texi: Renamed from
48147         doc/glibc-functions/optopt.texi.
48148         * doc/posix-functions/psignal.texi: Renamed from
48149         doc/glibc-functions/psignal.texi.
48150         * doc/posix-functions/scandir.texi: Renamed from
48151         doc/glibc-functions/scandir.texi.
48152         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48153         doc/glibc-functions/sched_get_priority_min.texi.
48154         * doc/posix-functions/signgam.texi: Renamed from
48155         doc/glibc-functions/signgam.texi.
48156         * doc/posix-functions/stpcpy.texi: Renamed from
48157         doc/glibc-functions/stpcpy.texi.
48158         * doc/posix-functions/stpncpy.texi: Renamed from
48159         doc/glibc-functions/stpncpy.texi.
48160         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48161         doc/glibc-functions/strcasecmp_l.texi.
48162         * doc/posix-functions/strcoll_l.texi: Renamed from
48163         doc/glibc-functions/strcoll_l.texi.
48164         * doc/posix-functions/strfmon_l.texi: Renamed from
48165         doc/glibc-functions/strfmon_l.texi.
48166         * doc/posix-functions/strftime_l.texi: Renamed from
48167         doc/glibc-functions/strftime_l.texi.
48168         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48169         doc/glibc-functions/strncasecmp_l.texi.
48170         * doc/posix-functions/strndup.texi: Renamed from
48171         doc/glibc-functions/strndup.texi.
48172         * doc/posix-functions/strnlen.texi: Renamed from
48173         doc/glibc-functions/strnlen.texi.
48174         * doc/posix-functions/strsignal.texi: Renamed from
48175         doc/glibc-functions/strsignal.texi.
48176         * doc/posix-functions/strxfrm_l.texi: Renamed from
48177         doc/glibc-functions/strxfrm_l.texi.
48178         * doc/posix-functions/timer_gettime.texi: Renamed from
48179         doc/glibc-functions/timer_gettime.texi.
48180         * doc/posix-functions/tolower_l.texi: Renamed from
48181         doc/glibc-functions/tolower_l.texi.
48182         * doc/posix-functions/toupper_l.texi: Renamed from
48183         doc/glibc-functions/toupper_l.texi.
48184         * doc/posix-functions/towctrans_l.texi: Renamed from
48185         doc/glibc-functions/towctrans_l.texi.
48186         * doc/posix-functions/towlower_l.texi: Renamed from
48187         doc/glibc-functions/towlower_l.texi.
48188         * doc/posix-functions/towupper_l.texi: Renamed from
48189         doc/glibc-functions/towupper_l.texi.
48190         * doc/posix-functions/uselocale.texi: Renamed from
48191         doc/glibc-functions/uselocale.texi.
48192         * doc/posix-functions/vdprintf.texi: Renamed from
48193         doc/glibc-functions/vdprintf.texi.
48194         * doc/posix-functions/wcpcpy.texi:
48195         Renamed from doc/glibc-functions/wcpcpy.texi.
48196         * doc/posix-functions/wcpncpy.texi: Renamed from
48197         doc/glibc-functions/wcpncpy.texi.
48198         * doc/posix-functions/wcscasecmp.texi: Renamed from
48199         doc/glibc-functions/wcscasecmp.texi.
48200         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48201         doc/glibc-functions/wcscasecmp_l.texi.
48202         * doc/posix-functions/wcscoll_l.texi: Renamed from
48203         doc/glibc-functions/wcscoll_l.texi.
48204         * doc/posix-functions/wcsdup.texi: Renamed from
48205         doc/glibc-functions/wcsdup.texi.
48206         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48207         doc/glibc-functions/wcsncasecmp.texi.
48208         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48209         doc/glibc-functions/wcsncasecmp_l.texi.
48210         * doc/posix-functions/wcsnlen.texi: Renamed from
48211         doc/glibc-functions/wcsnlen.texi.
48212         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48213         doc/glibc-functions/wcsnrtombs.texi.
48214         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48215         doc/glibc-functions/wcsxfrm_l.texi.
48216         * doc/posix-functions/wctrans_l.texi: Renamed from
48217         doc/glibc-functions/wctrans_l.texi.
48218         * doc/posix-functions/wctype_l.texi: Renamed from
48219         doc/glibc-functions/wctype_l.texi.
48220         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48221         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48222         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48223         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48224         these subsections.
48225         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48226         Remove sections.
48227
48228 2008-12-14  Bruno Haible  <bruno@clisp.org>
48229
48230         Update doc for POSIX:2008.
48231         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48232
48233 2008-12-14  Bruno Haible  <bruno@clisp.org>
48234
48235         Update doc for POSIX:2008.
48236         * doc/pastposix-functions/bcmp.texi: Renamed from
48237         doc/posix-functions/bcmp.texi.
48238         * doc/pastposix-functions/bcopy.texi: Renamed from
48239         doc/posix-functions/bcopy.texi.
48240         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48241         doc/posix-functions/bsd_signal.texi.
48242         * doc/pastposix-functions/bzero.texi: Renamed from
48243         doc/posix-functions/bzero.texi.
48244         * doc/pastposix-functions/ecvt.texi: Renamed from
48245         doc/posix-functions/ecvt.texi.
48246         * doc/pastposix-functions/fcvt.texi: Renamed from
48247         doc/posix-functions/fcvt.texi.
48248         * doc/pastposix-functions/ftime.texi: Renamed from
48249         doc/posix-functions/ftime.texi.
48250         * doc/pastposix-functions/gcvt.texi: Renamed from
48251         doc/posix-functions/gcvt.texi.
48252         * doc/pastposix-functions/getcontext.texi: Renamed from
48253         doc/posix-functions/getcontext.texi.
48254         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48255         doc/posix-functions/gethostbyaddr.texi.
48256         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48257         doc/posix-functions/gethostbyname.texi.
48258         * doc/pastposix-functions/getwd.texi: Renamed from
48259         doc/posix-functions/getwd.texi.
48260         * doc/pastposix-functions/h_errno.texi: Renamed from
48261         doc/posix-functions/h_errno.texi.
48262         * doc/pastposix-functions/index.texi: Renamed from
48263         doc/posix-functions/index.texi.
48264         * doc/pastposix-functions/makecontext.texi: Renamed from
48265         doc/posix-functions/makecontext.texi.
48266         * doc/pastposix-functions/mktemp.texi: Renamed from
48267         doc/posix-functions/mktemp.texi.
48268         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48269         doc/posix-functions/pthread_attr_getstackaddr.texi.
48270         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48271         doc/posix-functions/pthread_attr_setstackaddr.texi.
48272         * doc/pastposix-functions/rindex.texi: Renamed from
48273         doc/posix-functions/rindex.texi.
48274         * doc/pastposix-functions/scalb.texi: Renamed from
48275         doc/posix-functions/scalb.texi.
48276         * doc/pastposix-functions/setcontext.texi: Renamed from
48277         doc/posix-functions/setcontext.texi.
48278         * doc/pastposix-functions/swapcontext.texi: Renamed from
48279         doc/posix-functions/swapcontext.texi.
48280         * doc/pastposix-functions/ualarm.texi: Renamed from
48281         doc/posix-functions/ualarm.texi.
48282         * doc/pastposix-functions/usleep.texi: Renamed from
48283         doc/posix-functions/usleep.texi.
48284         * doc/pastposix-functions/vfork.texi: Renamed from
48285         doc/posix-functions/vfork.texi.
48286         * doc/pastposix-functions/wcswcs.texi: Renamed from
48287         doc/posix-functions/wcswcs.texi.
48288         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48289         (Function Substitutes): Update.
48290
48291 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48292
48293         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48294         m4/strerror.m4.
48295
48296 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48297             Bruno Haible  <bruno@clisp.org>
48298
48299         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48300
48301 2008-12-13  Bruno Haible  <bruno@clisp.org>
48302
48303         * modules/strtoull (Depends-on): Remove unistd.
48304
48305 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48306
48307         * modules/strtoull (Depends-on): Add stdlib.
48308
48309 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48310
48311         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48312
48313 2008-12-10  Jim Meyering  <meyering@redhat.com>
48314
48315         gl_ASSERT: don't say assertions are disabled when they're not
48316         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48317         "checking whether to enable assertions... no", when they are in
48318         fact enabled.  This is solely a bug in the output of configure.
48319         In spite of saying "no", NDEBUG was not defined in that case.
48320         Also, as noted by Eric Blake, leave assertions enabled upon
48321         --enable-assert=INVALID.
48322
48323 2008-12-10  Bruno Haible  <bruno@clisp.org>
48324
48325         Change MODULES.html to refer to POSIX:2008 where possible.
48326         * MODULES.html.sh (POSIX2008_URL): New variable.
48327         (posix_headers): Remove sys/timeb, ucontext.
48328         (posix2001_headers): New variable.
48329         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48330         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48331         index, makecontext, mktemp, pthread_attr_getstackaddr,
48332         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48333         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48334         (posix2001_functions): New variable.
48335         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48336         otherwise.
48337
48338 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48339
48340         add missing include to parse-duration.c
48341         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48342         * modules/parse-duration (Depends-on): Add xalloc.
48343
48344         fix sed script reading maint.mk
48345         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48346         (syntax-check-rules): Use it.
48347
48348 2008-12-09  Bruno Haible  <bruno@clisp.org>
48349
48350         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48351         MacOS X 10.4/PowerPC.
48352         Reported by Simon Josefsson.
48353
48354 2008-12-08  Jim Meyering  <meyering@redhat.com>
48355
48356         work around mingw's lack of some S_IF definitions
48357         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48358         Reported by Simon Josefsson.
48359
48360 2008-12-08  Bruno Haible  <bruno@clisp.org>
48361
48362         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48363         applied to variables. Needed on MacOS X 10.4/PowerPC.
48364         Reported by Simon Josefsson.
48365
48366 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48367         and Eric Blake  <ebb9@byu.net>
48368
48369         assert: honor --enable-assert
48370         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48371         order to honor --enable-assert, rather than treating it as a
48372         synonym for --disable-assert.
48373
48374 2008-12-08  Jim Meyering  <meyering@redhat.com>
48375
48376         * lib/posixtm.c: Remove now-useless declaration of mktime.
48377
48378         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48379
48380 2008-12-07  Bruno Haible  <bruno@clisp.org>
48381
48382         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48383         test_once): Mark functions as static.
48384         * tests/test-tls.c (test_tls): Likewise.
48385
48386 2008-12-07  Bruno Haible  <bruno@clisp.org>
48387
48388         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48389         iconv_register_autodetect.
48390
48391 2008-12-07  Jim Meyering  <meyering@redhat.com>
48392
48393         posixtm.c: avoid a warning
48394         * lib/posixtm.c (posixtime): Don't initialize tm0.
48395         It's no longer needed to placate gcc4's -Wuninitialized,
48396         and the attempt to placate would elicit a new warning.
48397
48398         unicodeio.c: mark unused parameters
48399         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48400         (fallback_failure_callback): Likewise.
48401
48402 2008-12-07  Bruno Haible  <bruno@clisp.org>
48403
48404         * gnulib-tool (func_create_testdir): When building the tests
48405         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48406         Reported by Simon Josefsson.
48407
48408 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48409
48410         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48411
48412 2008-12-06  Bruno Haible  <bruno@clisp.org>
48413
48414         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48415         Suggested by Eric Blake.
48416
48417 2008-12-06  Bruno Haible  <bruno@clisp.org>
48418
48419         Fix a c-stack test failure on MacOS X.
48420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48421         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48422         handler for SIGBUS as well.
48423         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48424         install a signal handler for SIGBUS as well.
48425         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48426
48427 2008-12-06  Bruno Haible  <bruno@clisp.org>
48428
48429         Advocacy documentation.
48430         * doc/gnulib-intro.texi (Benefits): New section.
48431         * doc/gnulib.texi: Update.
48432
48433 2008-12-06  Bruno Haible  <bruno@clisp.org>
48434
48435         Document the 'manywarnings' module.
48436         * doc/manywarnings.texi: New file.
48437         * doc/gnulib.texi: Include it.
48438
48439 2008-12-05  Eric Blake  <ebb9@byu.net>
48440
48441         tests: silence some gcc warnings
48442         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48443         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48444         type mismatches.
48445
48446 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48447             Bruno Haible  <bruno@clisp.org>
48448
48449         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48450
48451 2008-11-29  Jim Meyering  <meyering@redhat.com>
48452
48453         unicodeio.c: mark unused parameters
48454         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48455         (fallback_failure_callback): Likewise.
48456
48457         fts: fix a thinko
48458         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48459         (set_stat_type): Return S_IF*-valued "type" directly.
48460         Prompted by James Youngman's spotting a related bug.
48461         Confirmed by further testing through find.
48462
48463         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48464         * lib/fts.c (D_TYPE): Define.
48465         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48466         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48467         (s_ifmt_shift_bits): New function.
48468         (set_stat_type): New function.
48469         (fts_build): When not calling fts_stat, call set_stat_type
48470         to propagate dirent.d_type info to fts_read caller.
48471         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48472         fts_statp->st_mode type information may be valid.
48473
48474 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48475
48476         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48477         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48478         <sds@gnu.org>.
48479
48480 2008-11-20  Bruno Haible  <bruno@clisp.org>
48481
48482         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48483         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48484         INCLUDE_NEXT.
48485         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48486         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48487         * modules/math (Makefile.am): Substitute
48488         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48489         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48490
48491 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48492             Bruno Haible  <bruno@clisp.org>
48493
48494         * lib/stdint.in.h: Define all type macros so that their expansion is
48495         a single typedef'ed token. Fixes a compilation failure in Boost which
48496         does "using ::int8_t;".
48497
48498 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48499
48500         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48501         gl_MANYWARN_ALL_GCC.
48502         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48503         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48504         * modules/manywarnings: New file.
48505         * MODULES.html.sh: Mention manywarnings module.
48506
48507 2008-11-18  Bruno Haible  <bruno@clisp.org>
48508
48509         * doc/gnulib-tool.texi (Unit tests): New section.
48510
48511 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48512
48513         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48514         paths like 'lib/po/foo.po'.
48515
48516 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48517
48518         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48519         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48520
48521 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48522
48523         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48524         parameter works.
48525
48526 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48527
48528         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48529
48530 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48531
48532         * modules/parse-duration-tests: New file.
48533         * tests/test-parse-duration.sh: New file.
48534         * tests/test-parse-duration.c: New file.
48535
48536         New module 'parse-duration'.
48537         * lib/parse-duration.h: New file.
48538         * lib/parse-duration.c: New file.
48539         * modules/parse-duration: New file.
48540
48541 2008-11-17  Bruno Haible  <bruno@clisp.org>
48542
48543         * tests/test-select-out.sh: Comment out the first pipe test.
48544         Reported by Simon Josefsson.
48545
48546 2008-11-17  Bruno Haible  <bruno@clisp.org>
48547
48548         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48550         gl_HOSTENT.
48551
48552 2008-11-17  Bruno Haible  <bruno@clisp.org>
48553
48554         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48555         -lnetwork and -lnet. Needed for Haiku and BeOS.
48556
48557 2008-11-16  Bruno Haible  <bruno@clisp.org>
48558
48559         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48560
48561 2008-11-16  Bruno Haible  <bruno@clisp.org>
48562
48563         Avoid test failure on Haiku.
48564         * tests/test-fsync.c: Include <errno.h>.
48565         (main): Don't require that fsync (0) fails.
48566
48567 2008-11-15  Bruno Haible  <bruno@clisp.org>
48568
48569         New module 'hostent'.
48570         * modules/hostent: New file.
48571         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48572
48573 2008-11-15  Bruno Haible  <bruno@clisp.org>
48574
48575         New module 'servent'.
48576         * modules/servent: New file.
48577         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48578
48579 2008-11-15  Bruno Haible  <bruno@clisp.org>
48580
48581         Avoid generating same test program with two different rules.
48582         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48583         test-frexp to test-frexp-nolibm.
48584         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48585         test-frexpl to test-frexpl-nolibm.
48586
48587 2008-11-15  Bruno Haible  <bruno@clisp.org>
48588
48589         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48590         $(FREXPL_LIBM).
48591
48592 2008-11-15  Bruno Haible  <bruno@clisp.org>
48593
48594         * lib/netdb.in.h: Activate the definitions also when the system's
48595         <netdb.h> has 'struct addrinfo'.
48596         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
48597         EAI_OVERFLOW or AI_NUMERICSERV.
48598         * doc/posix-headers/netdb.texi: Document the problem.
48599
48600 2008-11-15  Bruno Haible  <bruno@clisp.org>
48601
48602         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
48603
48604         Make the 'sched' module work on platforms where <sched.h> exists but
48605         is incomplete (such as Haiku).
48606         * lib/sched.in.h; Include the system's <sched.h> if it exists.
48607         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
48608         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
48609         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
48610         HAVE_STRUCT_SCHED_PARAM.
48611         * modules/sched (Depends-on): Add include_next.
48612         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
48613         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
48614         * doc/posix-headers/sched.texi: Document the issue.
48615
48616 2008-11-13  Jim Meyering  <meyering@redhat.com>
48617
48618         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
48619         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
48620         test would fail due to the difference in the Report bugs to ...
48621         line.  The expected address is empty, "<>", while the actual
48622         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
48623
48624 2008-11-12  Bruno Haible  <bruno@clisp.org>
48625
48626         lstat: don't compile lstat.c on systems lacking lstat
48627         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
48628         which don't have lstat; this is handled by lib/sys_stat.in.h already.
48629         Reported by Daniel P. Berrange via Jim Meyering.
48630
48631 2008-11-12  Jim Meyering  <meyering@redhat.com>
48632
48633         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
48634
48635 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48636
48637         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
48638         instead.
48639
48640 2008-11-12  Bruno Haible  <bruno@clisp.org>
48641
48642         * lib/unicodeio.c: Include unistr.h.
48643         (utf8_wctomb): Remove function.
48644         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
48645
48646 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48647
48648         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
48649         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
48650         <bruno@clisp.org>.
48651         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
48652
48653 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48654
48655         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
48656         * doc/gnulib.texi: Add section for warnings.
48657
48658 2008-11-11  Bruno Haible  <bruno@clisp.org>
48659
48660         * lib/sockets.h: Add a comment.
48661
48662 2008-11-11  Karl Berry  <karl@gnu.org>
48663
48664         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
48665
48666 2008-11-11  Eric Blake  <ebb9@byu.net>
48667
48668         fdl.texi: avoid git symlinks
48669         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
48670
48671 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48672
48673         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
48674
48675 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48676
48677         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
48678         (gl_WARN_ADD): Substitute $2 if literal.
48679
48680 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48681
48682         * m4/warning.m4: Remove.
48683
48684 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48685
48686         * m4/warnings.m4: Almost complete rewrite. :-)
48687
48688 2008-11-10  Simon Josefsson  <simon@josefsson.org>
48689
48690         * modules/warnings: New module.
48691         * m4/warnings.m4: New file.
48692         * MODULES.html.sh: Mention warnings module.
48693         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
48694         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48695
48696 2008-11-10  Eric Blake  <ebb9@byu.net>
48697
48698         fdl.texi: make a symlink to the latest version
48699         * doc/standards.texi: Revert today's earlier change.
48700         * doc/fdl-1.2.texi: Rename from old fdl.texi...
48701         * doc/fdl.texi: ...and replace this with a symlink to the newer
48702         fdl-1.3.texi.
48703
48704 2008-11-10  Bruno Haible  <bruno@clisp.org>
48705
48706         * tests/test-select-fd.c (main): Accept the result file name as fourth
48707         argument.
48708         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
48709         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
48710
48711 2008-11-10  Bruno Haible  <bruno@clisp.org>
48712
48713         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
48714         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
48715         as autoconf-substituted macros.
48716         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
48717         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
48718         gl_NETDB_H_DEFAULTS. Set these variables.
48719         * modules/netdb (Makefile.am): Substitute these variables.
48720
48721 2008-11-10  Eric Blake  <ebb9@byu.net>
48722
48723         standards.texi: include correct file for FDL 1.3
48724         * doc/standards.texi (GNU Free Documentation License): Change
48725         include file to pull in FDL 1.3, not 1.2.
48726
48727         fdl.texi: revert accidental change to license
48728         * doc/fdl.texi: This is FDL 1.2, not 1.3.
48729
48730 2008-11-10  Bruno Haible  <bruno@clisp.org>
48731
48732         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
48733         cross-compiling guesses also when the native compile gives no result.
48734
48735 2008-11-10  Bruno Haible  <bruno@clisp.org>
48736
48737         * lib/spawni.c (__spawni): Force variable into the stack.
48738
48739 2008-11-10  Bruno Haible  <bruno@clisp.org>
48740
48741         Add support for Haiku.
48742         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48743         glibc and BeOS, but also on Haiku.
48744         * lib/fpurge.c (fpurge): Likewise.
48745         * lib/freadable.c (freadable): Likewise.
48746         * lib/freadahead.c (freadahead): Likewise.
48747         * lib/freading.c (freading): Likewise.
48748         * lib/freadptr.c (freadptr): Likewise.
48749         * lib/freadseek.c (freadptrinc): Likewise.
48750         * lib/fseeko.c (rpl_fseeko): Likewise.
48751         * lib/fseterr.c (fseterr): Likewise.
48752         * lib/fwritable.c (fwritable): Likewise.
48753         * lib/fwriting.c (fwriting): Likewise.
48754         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
48755
48756 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48757
48758         * lib/config.charset: Treat Haiku like BeOS.
48759
48760 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48761
48762         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
48763         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
48764
48765 2008-11-08  Bruno Haible  <bruno@clisp.org>
48766
48767         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
48768         AC_CACHE_CHECK.
48769
48770 2008-11-08  Bruno Haible  <bruno@clisp.org>
48771
48772         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
48773
48774 2008-11-08  Bruno Haible  <bruno@clisp.org>
48775
48776         * tests/test-select-fd.c: New file.
48777         * tests/test-select-in.sh: New file.
48778         * tests/test-select-out.sh: New file.
48779         * tests/test-select-stdin.c: New file.
48780         * modules/select-tests (Files): Add the new files.
48781         (Depends-on): Add gettimeofday.
48782         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
48783         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
48784         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
48785
48786 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
48787             Bruno Haible  <bruno@clisp.org>
48788
48789         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
48790
48791 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
48792
48793         * build-aux/pmccabe2html: Added support for C++ source files.
48794
48795 2008-11-05  Ben Pfaff  <blp@gnu.org>
48796
48797         Fix lib/close.c build on Windows.
48798         * modules/close (Files): Add lib/w32sock.h.
48799
48800 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
48801
48802         Accept Bison's NEWS format.
48803         * build-aux/announce-gen (print_news_deltas): Tweak
48804         $re_prefix.
48805
48806 2008-11-04  Bruno Haible  <bruno@clisp.org>
48807
48808         * modules/random_r (Maintainer): Add glibc.
48809
48810 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48811
48812         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
48813         by karl@freefriends.org (Karl Berry).
48814         * doc/alloca.texi: Likewise.
48815         * doc/c-ctype.texi: Likewise.
48816         * doc/c-strcase.texi: Likewise.
48817         * doc/c-strcaseeq.texi: Likewise.
48818         * doc/c-strcasestr.texi: Likewise.
48819         * doc/c-strstr.texi: Likewise.
48820         * doc/c-strtod.texi: Likewise.
48821         * doc/c-strtold.texi: Likewise.
48822         * doc/ctime.texi: Likewise.
48823         * doc/error.texi: Likewise.
48824         * doc/fdl.texi: Likewise.
48825         * doc/gcd.texi: Likewise.
48826         * doc/getdate.texi: Likewise.
48827         * doc/gnulib-intro.texi: Likewise.
48828         * doc/gnulib-tool.texi: Likewise.
48829         * doc/gnulib.texi: Likewise.
48830         * doc/inet_ntoa.texi: Likewise.
48831         * doc/maintain.texi: Likewise.
48832         * doc/make-stds.texi: Likewise.
48833         * doc/quote.texi: Likewise.
48834         * doc/regexprops-generic.texi: Likewise.
48835         * doc/standards.texi: Likewise.
48836         * doc/verify.texi: Likewise.
48837         * doc/visibility.texi: Likewise.
48838         * doc/gnulib.texi (GNU Free Documentation License): Include
48839         fdl-1.3.texi instead of fdl.texi.
48840
48841 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48842
48843         * doc/fdl-1.3.texi: New file, from
48844         <http://www.gnu.org/licenses/fdl-1.3.texi>.
48845         * modules/fdl-1.3: Add.
48846         * MODULES.html.sh: Add fdl-1.3.
48847
48848 2008-11-03  Bruno Haible  <bruno@clisp.org>
48849
48850         Make determination of absolute name of header file work with AIX xlc.
48851         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
48852         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
48853         preprocessing.
48854         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48855         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48856
48857 2008-11-03  Simon Josefsson  <simon@josefsson.org>
48858
48859         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
48860         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
48861         <ludo@gnu.org>.
48862
48863 2008-11-02  Bruno Haible  <bruno@clisp.org>
48864
48865         Mark 'strpbrk' obsolete.
48866         * modules/strpbrk (Status, Notice): New sections.
48867         * modules/strtok_r (Depends-on): Add strpbrk.
48868
48869 2008-11-02  Bruno Haible  <bruno@clisp.org>
48870
48871         Mark 'strdup' obsolete.
48872         * modules/strdup (Status, Notice): New sections.
48873         * modules/findprog (Depends-on): Add strdup.
48874         * modules/getaddrinfo (Depends-on): Likewise.
48875         * modules/localename (Depends-on): Likewise.
48876         * modules/relocatable-lib (Depends-on): Likewise.
48877         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
48878         * modules/relocatable-prog (Depends-on): Likewise.
48879         * modules/trim (Depends-on): Likewise.
48880         * modules/unictype/gen-ctype (Depends-on): Likewise.
48881         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48882
48883 2008-11-02  Bruno Haible  <bruno@clisp.org>
48884
48885         Mark 'strcspn' obsolete.
48886         * modules/strcspn (Status, Notice): New sections.
48887
48888 2008-11-02  Bruno Haible  <bruno@clisp.org>
48889
48890         Mark 'rmdir' obsolete.
48891         * modules/rmdir (Status, Notice): New sections.
48892         * modules/clean-temp (Depends-on): Add rmdir.
48893         * modules/openat (Depends-on): Likewise.
48894
48895 2008-11-02  Bruno Haible  <bruno@clisp.org>
48896
48897         Mark 'raise' obsolete.
48898         * modules/raise (Status, Notice): New sections.
48899         (Include): Specify <signal.h>.
48900         * modules/stdio (Depends-on): Add raise.
48901         * modules/write (Depends-on): Likewise.
48902
48903 2008-11-02  Bruno Haible  <bruno@clisp.org>
48904
48905         Mark 'memset' obsolete.
48906         * modules/memset (Status, Notice): New sections.
48907
48908 2008-11-02  Bruno Haible  <bruno@clisp.org>
48909
48910         Mark 'memmove' obsolete.
48911         * modules/memmove (Status, Notice): New sections.
48912         * modules/argp (Depends-on): Add memmove.
48913         * modules/argz (Depends-on): Likewise.
48914         * modules/canonicalize (Depends-on): Likewise.
48915         * modules/canonicalize-lgpl (Depends-on): Likewise.
48916         * modules/fts (Depends-on): Likewise.
48917         * modules/getcwd (Depends-on): Likewise.
48918         * modules/human (Depends-on): Likewise.
48919         * modules/regex (Depends-on): Likewise.
48920         * modules/striconveh (Depends-on): Likewise.
48921         * modules/trim (Depends-on): Likewise.
48922         * modules/unistr/u8-move (Depends-on): Likewise.
48923         * modules/unistr/u16-move (Depends-on): Likewise.
48924         * modules/unistr/u32-move (Depends-on): Likewise.
48925
48926 2008-11-02  Bruno Haible  <bruno@clisp.org>
48927
48928         Mark 'memcpy' obsolete.
48929         * modules/memcpy (Status, Notice): New sections.
48930
48931 2008-11-02  Bruno Haible  <bruno@clisp.org>
48932
48933         Mark 'memcmp' obsolete.
48934         * modules/memcmp (Status, Notice): New sections.
48935         * modules/argmatch (Depends-on): Add memchr.
48936         * modules/backupfile (Depends-on): Likewise.
48937         * modules/c-strcasestr (Depends-on): Likewise.
48938         * modules/crypto/des (Depends-on): Likewise.
48939         * modules/csharpcomp (Depends-on): Likewise.
48940         * modules/fnmatch (Depends-on): Likewise.
48941         * modules/git-merge-changelog (Depends-on): Likewise.
48942         * modules/isnand (Depends-on): Likewise.
48943         * modules/isnand-nolibm (Depends-on): Likewise.
48944         * modules/isnanf (Depends-on): Likewise.
48945         * modules/isnanf-nolibm (Depends-on): Likewise.
48946         * modules/isnanl (Depends-on): Likewise.
48947         * modules/isnanl-nolibm (Depends-on): Likewise.
48948         * modules/mbchar (Depends-on): Likewise.
48949         * modules/memcoll (Depends-on): Likewise.
48950         * modules/quotearg (Depends-on): Likewise.
48951         * modules/regex (Depends-on): Likewise.
48952         * modules/relocatable-prog (Depends-on): Likewise.
48953         * modules/same (Depends-on): Likewise.
48954         * modules/signbit (Depends-on): Likewise.
48955         * modules/strcasestr-simple (Depends-on): Likewise.
48956         * modules/unictype/gen-ctype (Depends-on): Likewise.
48957         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48958         * modules/uniname/uniname (Depends-on): Likewise.
48959         * modules/unistr/u8-cmp (Depends-on): Likewise.
48960
48961 2008-11-02  Bruno Haible  <bruno@clisp.org>
48962
48963         Mark 'memchr' obsolete.
48964         * modules/memchr (Status, Notice): New sections.
48965         * modules/argp (Depends-on): Add memchr.
48966         * modules/base64 (Depends-on): Likewise.
48967         * modules/c-strcasestr (Depends-on): Likewise.
48968         * modules/chdir-long (Depends-on): Likewise.
48969         * modules/fnmatch (Depends-on): Likewise.
48970         * modules/getsubopt (Depends-on): Likewise.
48971         * modules/git-merge-changelog (Depends-on): Likewise.
48972         * modules/glob (Depends-on): Likewise.
48973         * modules/strcasestr-simple (Depends-on): Likewise.
48974         * modules/strnlen (Depends-on): Likewise.
48975
48976 2008-11-02  Bruno Haible  <bruno@clisp.org>
48977
48978         Mark 'atexit' obsolete.
48979         * modules/atexit (Status, Notice): New sections.
48980         * modules/chdir-long (Depends-on): Add atexit.
48981         * modules/wait-process (Depends-on): Likewise.
48982
48983 2008-11-02  Bruno Haible  <bruno@clisp.org>
48984
48985         * gnulib-tool: New option --with-obsolete.
48986         (func_usage): Document it.
48987         (func_modules_transitive_closure): Drop obsolete dependencies if
48988         incobsolete is not true.
48989         (func_import): Read and save the incobsolete variable to the cache.
48990
48991 2008-11-02  Bruno Haible  <bruno@clisp.org>
48992
48993         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48994         * gnulib-tool: New option --extract-status.
48995         (func_usage): Document it.
48996         (sed_extract_prog): Recognize it.
48997         (func_get_status): New function.
48998
48999 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49000
49001         * modules/sockets (License): Change from LGPL to LGPLv2+.
49002
49003 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49004
49005         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49006
49007 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49008
49009         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49010         Mention times and sys_times.
49011         * modules/sys_times, modules/sys_times-tests: New modules.
49012         * modules/times, modules/times-tests: Likewise
49013         * m4/sys_times_h.m4: New file.
49014         * lib/sys_times.in.h: Likewise
49015         * lib/times.c: Likewise.
49016         * tests/test-sys_times.c: Likewise.
49017         * tests/test-times.c: Likewise.
49018         * doc/posix-headers/sys_times.texi: Update.
49019         * doc/posix-functions/times.texi: Update.
49020
49021 2008-10-28  Jim Meyering  <meyering@redhat.com>
49022
49023         * modules/tempname (Depends-on): Add lstat.
49024
49025         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49026
49027 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49028
49029         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49030         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49031         using idiom used elsewhere in gnulib.
49032
49033 2008-10-27  Jim Meyering  <meyering@redhat.com>
49034
49035         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49036
49037 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49038
49039         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49040         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49041         programs.
49042         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49043
49044 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49045
49046         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49047
49048 2008-10-27  Bruno Haible  <bruno@clisp.org>
49049
49050         * tests/test-lstat.c: Include <stdio.h>.
49051
49052 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49053
49054         * modules/lstat-tests: New module.
49055         * tests/test-lstat.c: New file.
49056
49057 2008-10-26  Jim Meyering  <meyering@redhat.com>
49058
49059         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49060
49061 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49062             Bruno Haible  <bruno@clisp.org>
49063
49064         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49065         * modules/configmake (Include): Add a note that the include must come
49066         after all system headers.
49067         * lib/javaversion.c: Include configmake.h after all other includes.
49068
49069 2008-10-26  Bruno Haible  <bruno@clisp.org>
49070
49071         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49072         HAVE_STRUCT_RANDOM_DATA to 1.
49073         (gl_STDLIB_H): Simplify.
49074
49075 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49076
49077         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49078         substitute HAVE_STRUCT_RANDOM_DATA.
49079         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49080         random_data.
49081         * modules/stdlib (Makefile.am): Substitute
49082         HAVE_STRUCT_RANDOM_DATA.
49083
49084 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49085
49086         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49087         * doc/gnulib-intro.texi (Copyright): Likewise.
49088
49089 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49090
49091         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49092         findings.
49093
49094 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49095             Bruno Haible  <bruno@clisp.org>
49096
49097         * lib/unistd.in.h: Include <winsock2.h>.
49098         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49099         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49100         Provide dummy declarations.
49101         (gethostname): Override.
49102         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49103         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49104         gl_PREREQ_SYS_H_WINSOCK2.
49105         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49106         * doc/posix-functions/gethostname.texi: More details.
49107
49108 2008-10-25  Bruno Haible  <bruno@clisp.org>
49109
49110         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49111         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49112         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49113
49114         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49115         here ...
49116         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49118         gl_UNISTD_H_DEFAULTS.
49119
49120 2008-10-25  Eric Blake  <ebb9@byu.net>
49121
49122         signbit: avoid spurious compiler failure
49123         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49124         declarations inside function.
49125
49126 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49127             Bruno Haible  <bruno@clisp.org>
49128
49129         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49130         * modules/random_r (Depends-on): Add stdint.
49131
49132 2008-10-24  Bruno Haible  <bruno@clisp.org>
49133
49134         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49135         Eggert.
49136         * modules/strerror (License): Likewise.
49137
49138 2008-10-24  Jim Meyering  <meyering@redhat.com>
49139
49140         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49141         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49142
49143 2008-10-24  Eric Blake  <ebb9@byu.net>
49144
49145         getgroups: fix compilation when getgroups is available
49146         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49147         but with <config.h> override of getgroups disabled.
49148
49149 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49150
49151         * doc/gnulib.texi (Header files): Add note about C++ problems.
49152         Explained by Bruno Haible <bruno@clisp.org>.
49153
49154 2008-10-23  Bruno Haible  <bruno@clisp.org>
49155
49156         Define a dummy SA_NODEFER macro on Interix.
49157         * lib/signal.in.h (SA_NODEFER): Define fallback.
49158         Reported by Aleksey Cheusov <cheusov@tut.by> via
49159         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49160
49161 2008-10-23  Bruno Haible  <bruno@clisp.org>
49162
49163         * modules/freadahead (License): Change to LGPLv2+.
49164         Suggested by Simon Josefsson.
49165
49166 2008-10-23  Jim Meyering  <meyering@redhat.com>
49167
49168         random_r: new module
49169         * modules/random_r: New file.
49170         * m4/random_r.m4: New file.
49171         * lib/random_r.c: New file, from glibc.
49172         * modules/random_r-tests: New file.
49173         * tests/test-random_r.c: New file.
49174         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49175          Declare.
49176         (RAND_MAX): Define.
49177         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49178         * modules/stdlib: Substitute them, too.
49179         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49180         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49181         * doc/glibc-functions/random_r.texi: Likewise.
49182         * doc/glibc-functions/setstate_r.texi: Likewise.
49183         * doc/glibc-functions/srandom_r.texi: Likewise.
49184         * config/srclist.txt: Mention it.
49185
49186 2008-10-23  David Lutterkort  <lutter@redhat.com>
49187
49188         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49189         link requirement
49190
49191 2008-10-23  Jim Meyering  <meyering@redhat.com>
49192
49193         selinux-h: mark parameters of stub functions as intentionally unused
49194         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49195         * lib/se-context.in.h: Likewise.
49196
49197 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49198
49199         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49200
49201 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49202
49203         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49204
49205 2008-10-22  Eric Blake  <ebb9@byu.net>
49206
49207         glthread/thread: avoid compiler warning
49208         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49209         Add unreachable abort to silence compiler.
49210
49211 2008-10-22  Eric Blake  <ebb9@byu.net>
49212
49213         netdb: also supply struct addrinfo for cygwin 1.5.x
49214         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49215         older cygwin.
49216         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49217         cygwin.
49218         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49219
49220 2008-10-22  Bruno Haible  <bruno@clisp.org>
49221
49222         * users.txt: Update entry about pspp.
49223
49224 2008-10-21  Bruno Haible  <bruno@clisp.org>
49225
49226         Simplification.
49227         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49228         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49229
49230         Simplification.
49231         * lib/ioctl.c (ioctl): Don't undefine.
49232         * lib/socket.c (socket): Don't undefine.
49233
49234         Remove unused module indicator macros.
49235         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49236         GNULIB_$1 as a C macro.
49237
49238         * doc/posix-functions/close.texi: Undo last change.
49239         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49240         Windows platforms.
49241
49242 2008-10-21  Bruno Haible  <bruno@clisp.org>
49243
49244         Add gethostname() declaration to <unistd.h>.
49245         * lib/unistd.in.h (gethostname): New declaration.
49246         * lib/gethostname.c: Include <unistd.h>.
49247         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49248         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49249         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49250         and HAVE_GETHOSTNAME.
49251         * modules/gethostname (Depends-on): Add unistd.
49252         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49253         (Include): Specify <unistd.h>.
49254         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49255         HAVE_GETHOSTNAME.
49256         * tests/test-gethostname.c: Include <unistd.h> first.
49257
49258 2008-10-21  Bruno Haible  <bruno@clisp.org>
49259
49260         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49261         * modules/select-tests (Depends-on): Likewise.
49262         Reported by Simon Josefsson.
49263
49264 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49265
49266         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49267         * lib/accept.c: New file, based on winsock.c.
49268         * lib/bind.c: New file, based on winsock.c.
49269         * lib/connect.c: New file, based on winsock.c.
49270         * lib/getpeername.c: New file, based on winsock.c.
49271         * lib/getsockname.c: New file, based on winsock.c.
49272         * lib/getsockopt.c: New file, based on winsock.c.
49273         * lib/ioctl.c: New file, based on winsock.c.
49274         * lib/listen.c: New file, based on winsock.c.
49275         * lib/recv.c: New file, based on winsock.c.
49276         * lib/recvfrom.c: New file, based on winsock.c.
49277         * lib/send.c: New file, based on winsock.c.
49278         * lib/sendto.c: New file, based on winsock.c.
49279         * lib/setsockopt.c: New file, based on winsock.c.
49280         * lib/shutdown.c: New file, based on winsock.c.
49281         * lib/socket.c: New file, based on winsock.c.
49282         * lib/w32sock.h: New file, based on winsock.c.
49283         * lib/winsock.c: Remove file.
49284         * modules/accept: Likewise.
49285         * modules/bind: Likewise.
49286         * modules/connect: Likewise.
49287         * modules/getpeername: Likewise.
49288         * modules/getsockname: Likewise.
49289         * modules/getsockopt: Likewise.
49290         * modules/ioctl: Likewise.
49291         * modules/listen: Likewise.
49292         * modules/recv: Likewise.
49293         * modules/recvfrom: Likewise.
49294         * modules/send: Likewise.
49295         * modules/sendto: Likewise.
49296         * modules/setsockopt: Likewise.
49297         * modules/shutdown: Likewise.
49298         * modules/socket: Use socket.c instead of winsock.c.
49299         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49300         * doc/posix-functions/accept.texi: Doc fix.
49301         * doc/posix-functions/bind.texi: Doc fix.
49302         * doc/posix-functions/close.texi: Doc fix.
49303         * doc/posix-functions/connect.texi: Doc fix.
49304         * doc/posix-functions/getpeername.texi: Doc fix.
49305         * doc/posix-functions/getsockname.texi: Doc fix.
49306         * doc/posix-functions/getsockopt.texi: Doc fix.
49307         * doc/posix-functions/ioctl.texi: Doc fix.
49308         * doc/posix-functions/listen.texi: Doc fix.
49309         * doc/posix-functions/recv.texi: Doc fix.
49310         * doc/posix-functions/recvfrom.texi: Doc fix.
49311         * doc/posix-functions/send.texi: Doc fix.
49312         * doc/posix-functions/sendto.texi: Doc fix.
49313         * doc/posix-functions/setsockopt.texi: Doc fix.
49314         * doc/posix-functions/shutdown.texi: Doc fix.
49315         * doc/posix-functions/socket.texi: Doc fix.
49316
49317 2008-10-20  Bruno Haible  <bruno@clisp.org>
49318
49319         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49320         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49321         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49322         as an alias for SIGABRT.
49323         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49324         (sigaction): Map it to SIGABRT.
49325         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49326
49327 2008-10-20  Bruno Haible  <bruno@clisp.org>
49328
49329         * lib/fts.c: Don't include lstat.h.
49330         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49331
49332         Move the lstat() declaration to <sys/stat.h>.
49333         * lib/lstat.h: Remove file.
49334         * lib/sys_stat.in.h: Add special invocation convention.
49335         (lstat): New declaration.
49336         * lib/lstat.c (orig_lstat): New function.
49337         (rpl_lstat): Use orig_lstat instead of lstat.
49338         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49339         AC_C_INLINE. Set REPLACE_LSTAT.
49340         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49341         and REPLACE_LSTAT.
49342         * modules/lstat (Files): Remove lib/lstat.h.
49343         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49344         (Include): Specify <sys/stat.h> instead of lstat.h.
49345         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49346         REPLACE_LSTAT.
49347         * NEWS: Mention the change.
49348
49349 2008-10-20  Bruno Haible  <bruno@clisp.org>
49350
49351         * modules/posix_spawn-tests: New file.
49352         * tests/test-posix_spawn3.c: New file.
49353
49354 2008-10-20  Bruno Haible  <bruno@clisp.org>
49355
49356         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49357         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49358         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49359         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49360         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49361
49362 2008-10-20  Bruno Haible  <bruno@clisp.org>
49363
49364         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49365         of posix_spawn on AIX 5.3.
49366
49367 2008-10-20  Bruno Haible  <bruno@clisp.org>
49368
49369         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49370
49371 2008-10-20  Bruno Haible  <bruno@clisp.org>
49372
49373         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49374         of AC_LANG_PROGRAM.
49375
49376 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49377
49378         * lib/netdb.in.h: Don't define GNU specific constants until they
49379         are supported or needed.  Reported by Bruno Haible
49380         <bruno@clisp.org>.
49381
49382 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49383
49384         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49385
49386 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49387
49388         * lib/getaddrinfo.h: Remove file.
49389         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49390         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49391         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49392         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49393         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49394         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49395         * tests/test-getaddrinfo.c: Likewise.
49396         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49397         * NEWS: Mention change.
49398
49399 2008-10-19  Bruno Haible  <bruno@clisp.org>
49400
49401         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49402
49403 2008-10-19  Bruno Haible  <bruno@clisp.org>
49404
49405         * lib/wait-process.c: Include simply <sys/wait.h>.
49406         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49407         WIFSTOPPED): Remove fallback definitions.
49408         * modules/wait-process (Depends-on): Add sys_wait.
49409
49410         New module 'sys_wait'.
49411         * modules/sys_wait: New file.
49412         * lib/sys_wait.in.h: New file, partially copied from
49413         lib/wait-process.c.
49414         * m4/sys_wait_h.m4: New file.
49415         * doc/posix-headers/sys_wait.texi: Mention the new module.
49416
49417 2008-10-19  Bruno Haible  <bruno@clisp.org>
49418
49419         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49420
49421 2008-10-19  Bruno Haible  <bruno@clisp.org>
49422
49423         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49424         * lib/wait-process.c (WAIT_T): Remove type.
49425         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49426         (wait_subprocess): Update.
49427
49428 2008-10-19  Bruno Haible  <bruno@clisp.org>
49429
49430         New module 'atoll'.
49431         * modules/atoll: New file.
49432         * lib/stdlib.in.h (atoll): New declaration.
49433         * lib/atoll.c: New file, from glibc with modifications.
49434         * m4/atoll.m4: New file.
49435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49436         HAVE_ATOLL.
49437         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49438         * doc/posix-functions/atoll.texi: Mention the new module.
49439
49440 2008-10-19  Bruno Haible  <bruno@clisp.org>
49441
49442         Add strtoull() declaration to <stdlib.h>.
49443         * lib/stdlib.in.h (strtoull): New declaration.
49444         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49445         Set HAVE_STRTOULL.
49446         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49447         HAVE_STRTOULL.
49448         * modules/strtoull (Depends-on): Add stdlib.
49449         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49450         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49451         HAVE_STRTOULL.
49452
49453 2008-10-19  Bruno Haible  <bruno@clisp.org>
49454
49455         Add strtoll() declaration to <stdlib.h>.
49456         * lib/stdlib.in.h (strtoll): New declaration.
49457         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49458         Set HAVE_STRTOLL.
49459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49460         HAVE_STRTOLL.
49461         * modules/strtoll (Depends-on): Add stdlib.
49462         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49463         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49464
49465 2008-10-19  Bruno Haible  <bruno@clisp.org>
49466
49467         * modules/bcopy (Depends-on): Add strings.
49468         (Include): Specify <strings.h>.
49469
49470 2008-10-19  Bruno Haible  <bruno@clisp.org>
49471
49472         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49473
49474 2008-10-19  Bruno Haible  <bruno@clisp.org>
49475
49476         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49477         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49478         mingw.
49479
49480 2008-10-19  Bruno Haible  <bruno@clisp.org>
49481
49482         * lib/atanl.c: Don't include isnanl.h.
49483         * lib/cosl.c: Likewise.
49484         * lib/ldexpl.c: Likewise.
49485         * lib/logl.c: Likewise.
49486         * lib/sinl.c: Likewise.
49487         * lib/sqrtl.c: Likewise.
49488         * lib/tanl.c: Likewise.
49489
49490         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49491         * lib/isnanf.h: Remove file.
49492         * lib/isnand.h: Remove file.
49493         * lib/isnanl.h: Remove file.
49494         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49495         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49496         macros.
49497         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49498         HAVE_ISNANF, don't define it as a C macro.
49499         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49500         HAVE_ISNAND, don't define it as a C macro.
49501         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49502         HAVE_ISNANL, don't define it as a C macro.
49503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49504         HAVE_ISNAN[FDL].
49505         * modules/isnanf (Files): Remove lib/isnanf.h.
49506         (Depends-on): Add math.
49507         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49508         (Include): Specify <math.h> instead of isnanf.h.
49509         * modules/isnand (Files): Remove lib/isnand.h.
49510         (Depends-on): Add math.
49511         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49512         (Include): Specify <math.h> instead of isnand.h.
49513         * modules/isnanl (Files): Remove lib/isnanl.h.
49514         (Depends-on): Add math.
49515         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49516         (Include): Specify <math.h> instead of isnanl.h.
49517         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49518         HAVE_ISNAN[FDL].
49519         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49520         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49521         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49522         * NEWS: Mention the change.
49523
49524 2008-10-18  Bruno Haible  <bruno@clisp.org>
49525
49526         Add getusershell(), setusershell(), endusershell() declarations to
49527         <unistd.h>.
49528         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49529         declarations.
49530         * lib/getusershell.c: Include unistd.h.
49531         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49532         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49533         HAVE_GETUSERSHELL.
49534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49535         and HAVE_GETUSERSHELL.
49536         * modules/getusershell (Depends-on): Add unistd, extensions.
49537         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49538         (Include): Specify <unistd.h>.
49539         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49540         HAVE_GETUSERSHELL.
49541
49542 2008-10-18  Bruno Haible  <bruno@clisp.org>
49543
49544         Add a getloadavg() declaration to <stdlib.h>.
49545         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49546         getloadavg declaration.
49547         (getloadavg): New declaration.
49548         * lib/getloadavg.c: Include <stdlib.h> first.
49549         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49550         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49551         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49552         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49553         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49554         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49555         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49556         (Include): Specify <stdlib.h>.
49557         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49558         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49559
49560 2008-10-18  Bruno Haible  <bruno@clisp.org>
49561
49562         * lib/dirchownmod.c: Don't include lchmod.h.
49563
49564         Move the lchmod() declaration to <sys/stat.h>.
49565         * lib/lchmod.h: Remove file.
49566         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49567         (lchmod): New declaration, moved here from lib/lchown.h.
49568         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49569         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49570         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49571         and HAVE_LCHMOD.
49572         * modules/lchmod (Files): Remove lib/lchmod.h.
49573         (Depends-on): Add sys_stat, extensions.
49574         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49575         (Include): Specify <sys/stat.h> instead of lchmod.h.
49576         * modules/sys_stat (Depends-on): Add link-warning.
49577         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49578         definition of GL_LINK_WARNING.
49579         * NEWS: Mention the change.
49580
49581 2008-10-18  Bruno Haible  <bruno@clisp.org>
49582
49583         * lib/fchdir.c: Don't include dirfd.h.
49584         * lib/fts.c: Likewise.
49585         * lib/getcwd.c: Likewise.
49586         * lib/glob.c: Likewise.
49587
49588         Move the dirfd() declaration to <dirent.h>.
49589         * lib/dirfd.h: Remove file.
49590         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49591         (dirfd): New declaration.
49592         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49593         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49594         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49595         HAVE_DECL_DIRFD.
49596         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
49597         HAVE_DECL_DIRFD.
49598         * modules/dirfd (Files): Remove lib/dirfd.h.
49599         (Depends-on): Add dirent, extensions.
49600         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
49601         (Include): Specify <dirent.h> instead of dirfd.h.
49602         * modules/dirent (Depends-on): Add link-warning.
49603         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
49604         definition of GL_LINK_WARNING.
49605         * NEWS: Mention the change.
49606
49607 2008-10-18  Bruno Haible  <bruno@clisp.org>
49608
49609         Move the euidaccess() declaration to <unistd.h>.
49610         * lib/euidaccess.h: Remove file.
49611         * lib/unistd.in.h (euidaccess): New declaration.
49612         * lib/euidaccess.c: Don't include euidaccess.h.
49613         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
49614         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
49615         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
49616         and HAVE_EUIDACCESS.
49617         * modules/euidaccess (Files): Remove lib/euidaccess.h.
49618         (Depends-on): Add unistd.
49619         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49620         (Include): Specify <unistd.h> instead of euidaccess.h.
49621         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
49622         HAVE_EUIDACCESS.
49623         * NEWS: Mention the change.
49624
49625 2008-10-18  Bruno Haible  <bruno@clisp.org>
49626
49627         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
49628
49629         Move the getdomainname() declaration to <unistd.h>.
49630         * lib/getdomainname.h: Remove file.
49631         * lib/unistd.in.h (getdomainname): New declaration.
49632         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
49633         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
49634         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49635         HAVE_GETDOMAINNAME.
49636         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49637         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
49638         * modules/getdomainname (Files): Remove lib/getdomainname.h.
49639         (Depends-on): Add unistd, extensions.
49640         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49641         (Includes): Specify <unistd.h> instead of getdomainname.h.
49642         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
49643         HAVE_GETDOMAINNAME.
49644         * NEWS: Mention the change.
49645
49646 2008-10-18  Bruno Haible  <bruno@clisp.org>
49647
49648         * modules/dirent: New file.
49649         * m4/dirent_h.m4: New file.
49650         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
49651         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
49652         * modules/fchdir (Files): Remove lib/dirent.in.h.
49653         (Depends-on): Add dirent.
49654         (Makefile.am): Move rules to modules/dirent.
49655         * doc/posix-headers/dirent.texi: Mention the new module.
49656
49657 2008-10-18  Bruno Haible  <bruno@clisp.org>
49658
49659         Avoid -Wunused-parameter warnings in public gnulib header files.
49660         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
49661         macro.
49662         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
49663
49664 2008-10-18  Bruno Haible  <bruno@clisp.org>
49665
49666         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
49667         * doc/glibc-functions/error.texi: Mention the module 'error'.
49668         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
49669         * doc/glibc-functions/getdomainname.texi: Mention the module
49670         'getdomainname'.
49671         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
49672         * doc/glibc-functions/getpagesize.texi: Mention the module
49673         'getpagesize'.
49674         * doc/glibc-functions/getusershell.texi: Mention the module
49675         'getusershell'.
49676         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
49677         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
49678         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
49679         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
49680         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
49681         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
49682         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
49683         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
49684         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
49685         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
49686         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
49687         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
49688         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
49689         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
49690
49691 2008-10-17  Bruno Haible  <bruno@clisp.org>
49692
49693         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49694         HP-UX and IRIX, use -0.0L.
49695         * tests/test-ceill.c (minus_zero): Likewise.
49696         * tests/test-floorl.c (minus_zero): Likewise.
49697         * tests/test-frexpl.c (minus_zero): Likewise.
49698         * tests/test-isnan.c (minus_zerol): Likewise.
49699         * tests/test-isnanl.h (minus_zero): Likewise.
49700         * tests/test-ldexpl.c (minus_zero): Likewise.
49701         * tests/test-roundl.c (minus_zero): Likewise.
49702         * tests/test-signbit.c (minus_zerol): Likewise.
49703         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49704         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49705         * tests/test-truncl.c (minus_zero): Likewise.
49706         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49707         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49708         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
49709         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49710
49711 2008-10-17  Bruno Haible  <bruno@clisp.org>
49712
49713         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
49714         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
49715         that it gets activated only for gcc >= 3.0.
49716         * lib/dirent.in.h: Likewise.
49717         * lib/errno.in.h: Likewise.
49718         * lib/fcntl.in.h: Likewise.
49719         * lib/float.in.h: Likewise.
49720         * lib/iconv.in.h: Likewise.
49721         * lib/inttypes.in.h: Likewise.
49722         * lib/locale.in.h: Likewise.
49723         * lib/math.in.h: Likewise.
49724         * lib/netdb.in.h: Likewise.
49725         * lib/netinet_in.in.h: Likewise.
49726         * lib/search.in.h: Likewise.
49727         * lib/signal.in.h: Likewise.
49728         * lib/spawn.in.h: Likewise.
49729         * lib/stdarg.in.h: Likewise.
49730         * lib/stdint.in.h: Likewise.
49731         * lib/stdio.in.h: Likewise.
49732         * lib/stdlib.in.h: Likewise.
49733         * lib/string.in.h: Likewise.
49734         * lib/strings.in.h: Likewise.
49735         * lib/sys_file.in.h: Likewise.
49736         * lib/sys_ioctl.in.h: Likewise.
49737         * lib/sys_select.in.h: Likewise.
49738         * lib/sys_socket.in.h: Likewise.
49739         * lib/sys_stat.in.h: Likewise.
49740         * lib/sys_time.in.h: Likewise.
49741         * lib/sysexits.in.h: Likewise.
49742         * lib/time.in.h: Likewise.
49743         * lib/unistd.in.h: Likewise.
49744         * lib/wchar.in.h: Likewise.
49745         * lib/wctype.in.h: Likewise.
49746         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49747
49748 2008-10-17  Jim Meyering  <meyering@redhat.com>
49749
49750         ignore-value: don't depend on inline module
49751         * modules/ignore-value (Depends-on): Remove 'inline'.
49752         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
49753         Suggestion from Bruno Haible.
49754
49755 2008-10-17  Bruno Haible  <bruno@clisp.org>
49756
49757         New implementation of condition variables for Win32.
49758         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
49759         (gl_linked_waitqueue_t): New type.
49760         (gl_cond_t): Use it.
49761         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
49762         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
49763         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
49764         (glthread_cond_init_func, glthread_cond_wait_func,
49765         glthread_cond_timedwait_func, glthread_cond_signal_func,
49766         glthread_cond_broadcast_func, glthread_cond_destroy_func):
49767         Reimplemented on the basis of gl_linked_waitqueue_t.
49768         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
49769         gl_waitqueue_t.
49770         (gl_rwlock_t): Update.
49771         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
49772
49773 2008-10-17  Simon Josefsson  <simon@josefsson.org>
49774
49775         * modules/recvfrom (Depends-on): Add dependency on getpeername.
49776         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49777
49778 2008-10-17  Jim Meyering  <meyering@redhat.com>
49779
49780         ignore-value: new module
49781         * modules/ignore-value: New file.
49782         * lib/ignore-value.h: New file.
49783         * MODULES.html.sh (Compiler warning management): New section,
49784         just for this module.  More to come.
49785
49786 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49787
49788         open-safer.c: avoid 'signed and unsigned in conditional...' warning
49789         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
49790         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
49791
49792 2008-10-16  Jim Meyering  <meyering@redhat.com>
49793
49794         openat-die.c: avoid 'no previous prototype' warning
49795         * lib/openat-die.c: Include "openat.h".
49796         Reported by Reuben Thomas <rrt@sc3d.org>.
49797
49798 2008-10-16  Simon Josefsson  <simon@josefsson.org>
49799
49800         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
49801         * lib/netdb.in.h: Fix typo.
49802         Reported by Bruno Haible  <bruno@clisp.org>
49803
49804         * lib/netdb.in.h: Include sys/socket.h for platforms without
49805         netdb.h, to get structures like hostent on MinGW.
49806         * modules/netdb (Depends-on): Add sys_socket.
49807
49808 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49809
49810         * modules/netdb, modules/netdb-tests: New file.
49811         * m4/netdb_h.m4: New file.
49812         * lib/netdb.in.h: Add, currently just an empty file pending
49813         definitions.
49814         * tests/test-netdb.c: New file.
49815         * doc/posix-headers/netdb.texi: Mention that we replace it if
49816         needed.
49817         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49818         netdb.
49819
49820 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49821
49822         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
49823         with code.
49824
49825 2008-10-13  Bruno Haible  <bruno@clisp.org>
49826
49827         * lib/glthread/cond.c (glthread_cond_wait_func,
49828         glthread_cond_timedwait_func): Add a comment.
49829
49830 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49831
49832         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
49833         * tests/test-select.c: Likewise,
49834
49835 2008-10-13  Bruno Haible  <bruno@clisp.org>
49836
49837         * lib/glthread/cond.c (glthread_cond_wait_func,
49838         glthread_cond_timedwait_func): Fix variable name.
49839         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49840
49841 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
49842
49843         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
49844         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
49845         struct sockaddr.sa_len.
49846         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
49847
49848 2008-10-13  Simon Josefsson  <simon@josefsson.org>
49849
49850         * build-aux/pmccabe2html: Add css and css_url parameters.
49851
49852 2008-10-12  Bruno Haible  <bruno@clisp.org>
49853
49854         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
49855         calling aclx_get.
49856         Reported by Rainer Tammer <tammer@tammer.net>.
49857
49858 2008-10-12  Bruno Haible  <bruno@clisp.org>
49859
49860         Use msvcrt aware primitives for creation/termination of Win32 threads.
49861         * lib/glthread/thread.c: Include <process.h>.
49862         (glthread_create_func): Use _beginthreadex instead of CreateThread.
49863         (wrapper_func): Update signature.
49864         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
49865
49866 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49867             Bruno Haible  <bruno@clisp.org>
49868
49869         Provide a Win32 implementation of the 'cond' module.
49870         * lib/glthread/cond.h [USE_WIN32]: New implementation.
49871         * lib/glthread/cond.c (glthread_cond_init_func,
49872         glthread_cond_wait_func, glthread_cond_timedwait_func,
49873         glthread_cond_signal_func, glthread_cond_broadcast_func,
49874         glthread_cond_destroy_func) [USE_WIN32]: New functions.
49875         * modules/cond (Dependencies): Add gettimeofday.
49876
49877 2008-10-11  Bruno Haible  <bruno@clisp.org>
49878
49879         Make sleep work on older versions of mingw.
49880         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
49881         only whether it exists.
49882         * doc/posix-functions/sleep.texi: Mention the problem with older
49883         versions of mingw.
49884
49885 2008-10-11  Bruno Haible  <bruno@clisp.org>
49886
49887         New module 'shutdown'.
49888         * modules/shutdown: New file.
49889         * lib/sys_socket.in.h (shutdown): New declaration.
49890         * lib/winsock.c (shutdown): New function.
49891         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
49892         GNULIB_SHUTDOWN.
49893         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
49894         * doc/posix-functions/shutdown.texi: Document the new module.
49895
49896 2008-10-11  Jim Meyering  <meyering@redhat.com>
49897
49898         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
49899
49900 2008-10-11  Bruno Haible  <bruno@clisp.org>
49901
49902         New module 'fclose'.
49903         * modules/fclose: New file.
49904         * lib/stdio.in.h (fclose): New declaration.
49905         * lib/fclose.c: New file.
49906         * m4/fclose.m4: New file.
49907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
49908         REPLACE_FCLOSE.
49909         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
49910         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
49911         REPLACE_FCLOSE.
49912         * modules/close (Depends-on): fclose.
49913         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
49914
49915 2008-10-11  Bruno Haible  <bruno@clisp.org>
49916
49917         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
49918         set errno and don't call _close.
49919
49920 2008-10-10  Bruno Haible  <bruno@clisp.org>
49921
49922         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
49923         ACL, not afterwards. Fixes test failure on Cygwin.
49924
49925 2008-10-09  Ben Pfaff  <blp@gnu.org>
49926
49927         * build-aux/announce-gen: Fix gnulib version related part of usage
49928         message.  Die with a useful error message if no tarballs are
49929         found.
49930
49931 2008-10-10  Jim Meyering  <meyering@redhat.com>
49932
49933         bootstrap: use git's --depth=N option only if it's supported
49934         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
49935         recognize the --depth option.  Reported by Pádraig Brady.
49936
49937 2008-10-09  Bruno Haible  <bruno@clisp.org>
49938
49939         New module 'ioctl'.
49940         * modules/ioctl: New file.
49941         * lib/sys_socket.in.h (ioctl): Remove declaration.
49942         * lib/winsock.c: Include <sys/ioctl.h>.
49943         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49944         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49945         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
49946         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49947         * doc/posix-functions/ioctl.texi: Mention the new module.
49948
49949 2008-10-09  Bruno Haible  <bruno@clisp.org>
49950
49951         New module 'sys_ioctl'.
49952         * lib/sys_ioctl.in.h: New file.
49953         * m4/sys_ioctl_h.m4: New file.
49954         * modules/sys_ioctl: New file.
49955         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49956
49957 2008-10-09  Bruno Haible  <bruno@clisp.org>
49958
49959         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49960         * lib/winsock.c: Include <stdarg.h>.
49961         (rpl_ioctl): Change to second argument 'int' and then varargs.
49962
49963 2008-10-09  Bruno Haible  <bruno@clisp.org>
49964
49965         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49966         when the sys_socket module is present and the system has <winsock2.h>.
49967
49968 2008-10-09  Bruno Haible  <bruno@clisp.org>
49969
49970         * doc/posix-functions/close.texi: Mention module 'close' instead of
49971         module 'sys_socket'.
49972
49973 2008-10-09  Bruno Haible  <bruno@clisp.org>
49974
49975         * doc/glibc-headers/sys_ioctl.texi: New file.
49976         * doc/gnulib.texi: Include it.
49977
49978 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49979             Bruno Haible  <bruno@clisp.org>
49980
49981         Combine the two replacements of 'close'.
49982         * lib/sys_socket.in.h (close): Define to a reminder to include
49983         <unistd.h>.
49984         (_gl_close_fd_maybe_socket): New declaration.
49985         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49986         * lib/winsock.c (close): Remove undefinition.
49987         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49988         needed for the gnulib module 'close'.
49989         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49990         define to an error symbol or to a warning, if suitable.
49991         * lib/close.c: Include <sys/socket.h>.
49992         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49993         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49994         UNISTD_H_HAVE_WINSOCK2_H.
49995         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49997         UNISTD_H_HAVE_WINSOCK2_H.
49998         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49999         (configure.ac): Set a module indicator.
50000         (Makefile.am): Substitute GNULIB_CLOSE.
50001         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50002         * modules/poll-tests (Depends-on): Add close.
50003         * modules/select-tests (Depends-on): Likewise.
50004
50005 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50006             Bruno Haible  <bruno@clisp.org>
50007
50008         New module 'close'.
50009         * modules/close: New file.
50010         * lib/unistd.in.h (close): Move declaration out of the
50011         FCHDIR_REPLACEMENT scope.
50012         (_gl_unregister_fd): New declaration.
50013         * lib/close.c: New file.
50014         * lib/fchdir.c (rpl_close): Remove function.
50015         * m4/close.m4: New file.
50016         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50017         close.
50018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50019         REPLACE_CLOSE.
50020         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50021         REPLACE_CLOSE.
50022         * modules/fchdir (Depends-on): Add close.
50023
50024 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50025             Bruno Haible  <bruno@clisp.org>
50026
50027         * lib/fcntl.in.h (open): Simplify conditionals.
50028         (_gl_register_fd): New declaration.
50029         * lib/fchdir.c (rpl_open): Remove function.
50030         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50031         also.
50032         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50033         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50034         open.
50035
50036 2008-10-09  Jim Meyering  <meyering@redhat.com>
50037
50038         GNUmakefile: use the more name-space-friendly "_version"
50039         * top/GNUmakefile (_dummy): Update.
50040         (_version): Rename from "version".
50041
50042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50043             Bruno Haible  <bruno@clisp.org>
50044
50045         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50046         rpl_close.
50047         (_gl_register_fd): New function, extracted from rpl_open.
50048         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50049         (rpl_open, rpl_opendir): Use _gl_register_fd.
50050
50051 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50052
50053         Fix organization of 'open' replacement.
50054         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50055         (gl_FUNC_OPEN): Use it.
50056         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50057
50058 2008-10-08  Bruno Haible  <bruno@clisp.org>
50059
50060         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50061
50062 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50063
50064         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50065         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50066         listen).
50067
50068 2008-10-08  Eric Blake  <ebb9@byu.net>
50069
50070         GNUmakefile: add 'make version' target
50071         * top/GNUmakefile (_curr-ver): Split version update rules...
50072         (version): ...into a target.
50073
50074 2008-10-07  Bruno Haible  <bruno@clisp.org>
50075
50076         Use a more portable replacement expression for -0.0L.
50077         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50078         instead of -0.0L. Fix m4 quotation.
50079
50080         * tests/test-signbit.c: Include <float.h>.
50081         (minus_zero): New variable.
50082         (test_signbitl): Use minus_zero instead of -zero.
50083         * modules/signbit-tests (Depends-on): Add float.
50084
50085         * tests/test-ceill.c: Include <float.h>.
50086         (zero): Remove variable.
50087         (minus_zero): New variable.
50088         (main): Use minus_zero instead of -zero.
50089         * modules/ceill-tests (Depends-on): Add float.
50090
50091         * tests/test-floorl.c: Include <float.h>.
50092         (zero): Remove variable.
50093         (minus_zero): New variable.
50094         (main): Use minus_zero instead of -zero.
50095         * modules/floorl-tests (Depends-on): Add float.
50096
50097         * tests/test-roundl.c: Include <float.h>.
50098         (zero): Remove variable.
50099         (minus_zero): New variable.
50100         (main): Use minus_zero instead of -zero.
50101         * modules/roundl-tests (Depends-on): Add float.
50102
50103         * tests/test-truncl.c: Include <float.h>.
50104         (zero): Remove variable.
50105         (minus_zero): New variable.
50106         (main): Use minus_zero instead of -zero.
50107         * modules/truncl-tests (Depends-on): Add float.
50108
50109         * tests/test-frexpl.c (zero): Remove variable.
50110         (minus_zero): New variable.
50111         (main): Use minus_zero instead of -zero.
50112         * modules/frexpl-tests (Depends-on): Add float.
50113
50114         * tests/test-isnan.c (zerol): Remove variable.
50115         (minus_zerol): New variable.
50116         (test_long_double): Use minus_zerol instead of -zerol.
50117         * modules/isnan-tests (Depends-on): Add float.
50118
50119         * tests/test-isnanl.h (zero): Remove variable.
50120         (minus_zero): New variable.
50121         (main): Use minus_zero instead of -zero.
50122         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50123         * modules/isnanl-tests (Depends-on): Add float.
50124
50125         * tests/test-ldexpl.c (zero): Remove variable.
50126         (minus_zero): New variable.
50127         (main): Use minus_zero instead of -zero.
50128         * modules/ldexpl-tests (Depends-on): Add float.
50129
50130         * tests/test-snprintf-posix.h (zerol): Remove variable.
50131         (minus_zerol): New variable.
50132         (test_function): Use minus_zerol instead of -zerol.
50133         * modules/snprintf-posix-tests (Depends-on): Add float.
50134         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50135
50136         * tests/test-sprintf-posix.h (zerol): Remove variable.
50137         (minus_zerol): New variable.
50138         (test_function): Use minus_zerol instead of -zerol.
50139         * modules/sprintf-posix-tests (Depends-on): Add float.
50140         * modules/vsprintf-posix-tests (Depends-on): Add float.
50141
50142         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50143         (minus_zerol): New variable.
50144         (test_function): Use minus_zerol instead of -zerol.
50145         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50146
50147         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50148         (minus_zerol): New variable.
50149         (test_function): Use minus_zerol instead of -zerol.
50150         * modules/vasprintf-posix-tests (Depends-on): Add float.
50151
50152 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50153
50154         * MODULES.html.sh (Support for building documentation): Mention
50155         pmccabe2html.  Sort entries.
50156
50157         Add pmccabe2html module, from gnupdf.
50158         * build-aux/pmccabe.css: New file.
50159         * build-aux/pmccabe2html: New file.
50160         * m4/pmccabe2html.m4: New file.
50161         * modules/pmccabe2html: New file.
50162
50163 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50164
50165         flock: new module
50166         * MODULES.html.sh: Add to list of modules.
50167         * lib/flock.c: flock implementation for Windows and Unix systems
50168         which have fcntl.
50169         * doc/glibc-functions/flock.texi: Update documentation.
50170         * lib/sys_file.in.h: <sys/file.h> header file.
50171         * m4/flock.m4: M4 macros.
50172         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50173         * modules/flock: flock module.
50174         * modules/flock-tests: flock tests module.
50175         * modules/sys_file: sys/file.h module.
50176         * tests/test-flock.c: test suite for flock.
50177
50178 2008-10-06  Jim Meyering  <meyering@redhat.com>
50179
50180         bootstrap: check for LT_INIT more portably still ;-)
50181         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50182         Spotted by Bruno Haible.
50183
50184 2008-10-06  Eric Blake  <ebb9@byu.net>
50185
50186         test-signbit: avoid tripping Irix cc bug on -0.0L
50187         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50188         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50189         entire testsuite consistent and avoids an Irix 6.2 bug.
50190
50191 2008-10-05  Bruno Haible  <bruno@clisp.org>
50192             Jim Meyering  <jim@meyering.net>
50193
50194         Add an option for ignoring EPIPE during close_stdout.
50195         * lib/closeout.h: Include <stdbool.h>.
50196         (close_stdout_set_ignore_EPIPE): New declaration.
50197         * lib/closeout.c: Include <stdbool.h>.
50198         (ignore_EPIPE): New variable.
50199         (close_stdout_set_ignore_EPIPE): New function.
50200         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50201         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50202         failure.
50203         * modules/closeout (Depends-on): Add stdbool.
50204
50205 2008-10-05  Bruno Haible  <bruno@clisp.org>
50206
50207         * modules/accept: New file.
50208         * modules/bind: New file.
50209         * modules/connect: New file.
50210         * modules/getpeername: New file.
50211         * modules/getsockname: New file.
50212         * modules/getsockopt: New file.
50213         * modules/listen: New file.
50214         * modules/recv: New file.
50215         * modules/recvfrom: New file.
50216         * modules/send: New file.
50217         * modules/sendto: New file.
50218         * modules/setsockopt: New file.
50219         * modules/socket: New file.
50220         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50221         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50222         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50223         the particular module is requested. Add a link warning when the
50224         particular module is not requested.
50225         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50226         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50227         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50228         the particular module is requested.
50229         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50230         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50231         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50232         * modules/sys_socket (Depends-on): Add link-warning.
50233         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50234         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50235         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50236         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50237         GL_LINK_WARNING.
50238         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50239         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50240         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50241         * doc/posix-functions/getpeername.texi: Mention the new module
50242         'getpeername'.
50243         * doc/posix-functions/getsockname.texi: Mention the new module
50244         'getsockname'.
50245         * doc/posix-functions/getsockopt.texi: Mention the new module
50246         'getsockopt'.
50247         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50248         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50249         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50250         * doc/posix-functions/send.texi: Mention the new module 'send'.
50251         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50252         * doc/posix-functions/setsockopt.texi: Mention the new module
50253         'setsockopt'.
50254         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50255         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50256         listen, connect, accept.
50257         * modules/select-tests (Depends-on): Likewise.
50258
50259 2008-10-05  Bruno Haible  <bruno@clisp.org>
50260
50261         * lib/winsock.c (strerror): Remove unused #undef.
50262         (rpl_close): Remove unused local variable.
50263
50264         * modules/sys_socket (Depends-on); Add errno.
50265
50266 2008-10-05  Bruno Haible  <bruno@clisp.org>
50267
50268         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50269         (select): Add a link warning when the 'select' module is not used.
50270         * modules/sys_select (Depends-on): Add link-warning.
50271         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50272         Suggested by Paolo Bonzini.
50273
50274 2008-10-05  Jim Meyering  <meyering@redhat.com>
50275
50276         bootstrap: check for LT_INIT more portably
50277         * build-aux/bootstrap: Avoid using grep -E, since it's not
50278         portable enough.  Suggestion from Bruno Haible.
50279
50280 2008-10-05  Bruno Haible  <bruno@clisp.org>
50281
50282         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50283         as being fixed by gnulib.
50284
50285 2008-10-05  Bruno Haible  <bruno@clisp.org>
50286
50287         * modules/select-tests: New file, mostly copied from
50288         modules/sys_select-tests.
50289         * tests/test-select.c: New file, mostly copied from
50290         tests/test-sys_select.c.
50291         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50292         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50293         (Makefile.am): Remove test_sys_select_LDADD.
50294
50295         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50296         to an undefined symbol, for an error message.
50297         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50298         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50299         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50300         winsock-select.c here.
50301         * modules/sys_select (Files): Remove lib/winsock-select.c.
50302         (Depends-on): Remove alloca.
50303         (Makefile.am): Substitute GNULIB_SELECT.
50304         * modules/select: New file.
50305         * doc/posix-functions/select.texi: Update.
50306
50307 2008-10-05  Bruno Haible  <bruno@clisp.org>
50308
50309         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50310         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50311         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50312         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50313         getdtablesize.
50314         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50315         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50316
50317 2008-10-05  Bruno Haible  <bruno@clisp.org>
50318
50319         * modules/getdtablesize-tests: New file.
50320         * tests/test-getdtablesize.c: New file.
50321
50322         New module 'getdtablesize'.
50323         * lib/unistd.in.h (getdtablesize): New declaration.
50324         * lib/getdtablesize.c: New file.
50325         * m4/getdtablesize.m4: New file.
50326         * modules/getdtablesize: New file.
50327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50328         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50329         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50330         HAVE_GETDTABLESIZE.
50331         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50332
50333 2008-10-05  Bruno Haible  <bruno@clisp.org>
50334
50335         * modules/sched (Makefile.am): Fix typo.
50336         Reported by Simon Josefsson.
50337
50338 2008-10-05  Jim Meyering  <meyering@redhat.com>
50339
50340         bootstrap: check for LT_INIT, too
50341         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50342         are deprecated.  Suggestion from Ralf Wildenhues.
50343
50344 2008-10-05  Bruno Haible  <bruno@clisp.org>
50345
50346         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50347         overriding them by ours.
50348         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50349
50350 2008-10-05  Jim Meyering  <meyering@redhat.com>
50351
50352         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50353         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50354         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50355
50356 2008-10-04  Bruno Haible  <bruno@clisp.org>
50357
50358         * modules/dup2 (License): Change to LGPLv2+.
50359         * modules/sleep (License): Likewise.
50360         * modules/perror (License): Likewise.
50361         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50362         Blake.
50363         * modules/signal (License): Likewise.
50364         * modules/sigprocmask (License): Likewise.
50365         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50366         Meyering.
50367
50368 2008-10-04  Bruno Haible  <bruno@clisp.org>
50369
50370         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50371         Reported by Rainer Tammer <tammer@tammer.net>.
50372
50373 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50374             Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50377         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50378         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50379
50380 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50381
50382         filevercmp: new module
50383         * lib/filevercmp.h: New function filevercmp comparing version strings.
50384         * lib/filevercmp.c: Implementation of filevercmp function.
50385         * modules/filevercmp: Module metadata.
50386         * tests/test-filevercmp.c: Unit test for new module.
50387         * modules/filevercmp-tests: Unit test metadata.
50388         * MODULES.html.sh: Add filevercmp module.
50389
50390 2008-10-03  Bruno Haible  <bruno@clisp.org>
50391
50392         * lib/c-ctype.h: Add comment.
50393         Reported by Jim Meyering.
50394
50395 2008-10-02  Bruno Haible  <bruno@clisp.org>
50396
50397         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50398
50399 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50400
50401         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50402         name of bootstrap.conf accordingly.
50403
50404 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50405
50406         * build-aux/bootstrap: Install git-merge-changelog configuration
50407         items into .gitconfig if needed.
50408
50409 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50410
50411         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50412         git repository, and initialize/update it accordingly.
50413
50414 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50415
50416         * modules/fsync-tests: New file.
50417         * tests/test-fsync.c: New file.
50418
50419         New module 'fsync'.
50420         * lib/fsync.c: New file.
50421         * m4/fsync.m4: New file.
50422         * modules/fsync: New file.
50423         * lib/unistd.in.h (fsync): New declaration.
50424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50425         GNULIB_FSYNC and HAVE_FSYNC.
50426         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50427         * MODULES.html.sh (posix_functions): Add fsync.
50428         * doc/posix-functions/fsync.texi: Mention the new module.
50429
50430 2008-10-02  Jim Meyering  <meyering@redhat.com>
50431
50432         fts.c: sync with similar code from coreutils' remove.c
50433         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50434         Guard also with "#if defined __linux__", since for now at least,
50435         this code is Linux-kernel-specific.
50436
50437 2008-10-02  Jim Meyering  <meyering@redhat.com>
50438
50439         fts: bug fixes
50440         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50441         Include <sys/vfs.h>, not <sys/statfs.h>.
50442
50443         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50444         Include <sys/vfs.h>, not <sys/statfs.h>.
50445
50446 2008-10-01  Bruno Haible  <bruno@clisp.org>
50447
50448         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50449         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50450         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50451         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50452         * doc/posix-functions/posix_spawnp.texi: Likewise.
50453         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50454         whether posix_spawn actually works.
50455         * m4/pipe.m4 (gl_PIPE): Likewise.
50456         * modules/execute (Files): Add m4/posix_spawn.m4.
50457         * modules/pipe (Files): Add m4/posix_spawn.m4.
50458         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50459
50460 2008-10-01  Jim Meyering  <meyering@redhat.com>
50461
50462         remove trailing spaces
50463         * NEWS: Likewise.
50464         * lib/poll.c (poll): Likewise.
50465         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50466         * lib/winsock.c (rpl_close): Likewise.
50467         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50468         * modules/yield: Likewise.
50469         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50470         * tests/test-sys_select.c (connect_to_socket): Likewise.
50471
50472         fts.c: adjust a new interface to be more generally useful
50473         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50474         (fts_build): Adjust caller.
50475
50476 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50477
50478         * modules/cond-tests: New file.
50479         * tests/test-cond.c: New file.
50480
50481 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50482             Bruno Haible  <bruno@clisp.org>
50483
50484         * modules/cond (Dependencies): Add errno, time.
50485         * lib/glthread/cond.h: Include <time.h>.
50486         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50487         across platforms.
50488
50489 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50490             Bruno Haible  <bruno@clisp.org>
50491
50492         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50493
50494 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50495             Bruno Haible  <bruno@clisp.org>
50496
50497         * modules/tls-tests (Depends-on): Add thread, yield.
50498         (configure.ac): Remove all checks.
50499         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50500         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50501         gl_thread_self): Remove definitions. Include glthread/thread.h and
50502         glthread/yield.h instead.
50503         (test_tls): Pass an additional NULL argument to gl_thread_join.
50504
50505 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50506             Bruno Haible  <bruno@clisp.org>
50507
50508         * modules/lock-tests (Depends-on): Add thread, yield.
50509         (configure.ac): Remove all checks.
50510         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50511         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50512         gl_thread_self): Remove definitions. Include glthread/thread.h and
50513         glthread/yield.h instead.
50514         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50515         additional NULL argument to gl_thread_join.
50516
50517 2008-09-30  Bruno Haible  <bruno@clisp.org>
50518
50519         Fix the Win32 implementation of the 'thread' module.
50520         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50521         pointer type.
50522         (gl_thread_self): Invoke gl_thread_self_func.
50523         (gl_thread_self_func): New declaration.
50524         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50525         (do_init_self_key, init_self_key): New functions.
50526         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50527         Remove some fields.
50528         (running_threads, running_lock): Remove variables.
50529         (get_current_thread_handle): New function.
50530         (gl_thread_self_func, wrapper_func, glthread_create_func,
50531         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50532         simplified.
50533
50534 2008-09-30  Bruno Haible  <bruno@clisp.org>
50535
50536         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50537         files.
50538
50539 2008-09-30  Jim Meyering  <meyering@redhat.com>
50540
50541         fts.m4: correct the test for statfs.f_type
50542         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50543         when checking for statfs.f_type.
50544
50545 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50546
50547         tests: avoid some compiler warnings
50548         * tests/test-memchr.c (main): Pass NULL indirectly.
50549         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50550
50551 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
50552
50553         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50554         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50555         exactly specified dayshifts.
50556         (dayshift): New rule.
50557         (rel): Add dayshift.
50558         (relative_time_table) [tomorrow, yesterday, today, now]:
50559         Use tDAY_SHIFT in place of tDAY_UNIT.
50560         * tests/test-getdate.c: Add tests for now-disallowed countable
50561         dayshifts, e.g., "4 yesterday ago".
50562
50563 2008-09-29  Bruno Haible  <bruno@clisp.org>
50564
50565         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50566         * tests/test-posix_spawn1.in.sh: Renamed from
50567         tests/test-posix_spawn.in.sh.
50568         * tests/test-posix_spawn2.c: New file.
50569         * tests/test-posix_spawn2.in.sh: New file.
50570         * modules/posix_spawnp-tests (Files): Update.
50571         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50572
50573 2008-09-29  Bruno Haible  <bruno@clisp.org>
50574
50575         Propagate effects of putenv/setenv/unsetenv to child processes.
50576         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50577         * lib/pipe.c (create_pipe): Likewise.
50578
50579 2008-09-29  Bruno Haible  <bruno@clisp.org>
50580
50581         Enable use of shell scripts as executables in mingw.
50582         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50583         run the program as a shell script.
50584         * lib/pipe.c (create_pipe): Likewise.
50585         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50586         resulting array.
50587
50588 2008-09-29  Eric Blake  <ebb9@byu.net>
50589
50590         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50591
50592 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50593
50594         * doc/posix-functions/accept.texi: Update mingw problems.
50595         * doc/posix-functions/bind.texi: Update mingw problems.
50596         * doc/posix-functions/close.texi: Update mingw problems.
50597         * doc/posix-functions/connect.texi: Update mingw problems.
50598         * doc/posix-functions/getpeername.texi: Update mingw problems.
50599         * doc/posix-functions/getsockname.texi: Update mingw problems.
50600         * doc/posix-functions/getsockopt.texi: Update mingw problems.
50601         * doc/posix-functions/ioctl.texi: Update mingw problems.
50602         * doc/posix-functions/listen.texi: Update mingw problems.
50603         * doc/posix-functions/recv.texi: Update mingw problems.
50604         * doc/posix-functions/recvfrom.texi: Update mingw problems.
50605         * doc/posix-functions/select.texi: Update mingw problems.
50606         * doc/posix-functions/send.texi: Update mingw problems.
50607         * doc/posix-functions/sendto.texi: Update mingw problems.
50608         * doc/posix-functions/setsockopt.texi: Update mingw problems.
50609         * doc/posix-functions/socket.texi: Update mingw problems.
50610
50611 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
50612             Bruno Haible  <bruno@clisp.org>
50613
50614         * lib/sys_select.in.h: Include sys/time.h.
50615         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
50616         * modules/sys_select: Depend on sys_time.
50617         * tests/test-sys_select.c: Test that sys/select.h defines struct
50618         timeval fully.
50619
50620 2008-09-29  Bruno Haible  <bruno@clisp.org>
50621
50622         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
50623         * lib/sys_select.in.h: Likewise.
50624
50625 2008-09-29  Bruno Haible  <bruno@clisp.org>
50626
50627         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
50628
50629 2008-09-29  Bruno Haible  <bruno@clisp.org>
50630
50631         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
50632         Set LIBSOCKET instead of augmenting LIBS.
50633         * modules/sockets (Link): New section.
50634         * modules/sockets-tests (test_sockets_LDADD): New variable.
50635         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
50636         * modules/poll-tests (test_poll_LDADD): New variable.
50637         * NEWS: Document the change.
50638
50639 2008-09-29  Bruno Haible  <bruno@clisp.org>
50640
50641         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
50642         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
50643         ARPA_INET_H directly.
50644         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50645
50646 2008-09-28  Bruno Haible  <bruno@clisp.org>
50647
50648         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
50649         from gl_HEADER_SYS_SOCKET.
50650         (gl_HEADER_SYS_SOCKET): Invoke it.
50651         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50652
50653 2008-09-28  Bruno Haible  <bruno@clisp.org>
50654
50655         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
50656         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
50657         Needed on OSF/1 4.0.
50658
50659 2008-09-28  Bruno Haible  <bruno@clisp.org>
50660
50661         Override open more carefully.
50662         * lib/open.c (orig_open): New function.
50663         (rpl_open): Use orig_open instead of open.
50664         * lib/fcntl.in.h: Add special invocation convention.
50665         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
50666         (gl_FUNC_OPEN): Invoke it.
50667
50668         Override freopen more carefully.
50669         * lib/freopen.c (orig_freopen): New function.
50670         (rpl_freopen): Use orig_freopen instead of freopen.
50671         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
50672         (gl_FUNC_FREOPEN): Invoke it.
50673
50674         Override fopen more carefully.
50675         * lib/fopen.c (orig_fopen): New function.
50676         (rpl_fopen): Use orig_fopen instead of fopen.
50677         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
50678         (gl_FUNC_FOPEN): Invoke it.
50679         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
50680
50681 2008-09-28  Bruno Haible  <bruno@clisp.org>
50682
50683         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
50684         SIGPIPE.
50685
50686 2008-09-28  Bruno Haible  <bruno@clisp.org>
50687
50688         * tests/test-sigaction.c (handler, main): Disable the check whether
50689         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
50690         glibc systems with LinuxThreads.
50691
50692 2008-09-28  Bruno Haible  <bruno@clisp.org>
50693
50694         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
50695
50696         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
50697         with AIX xlc.
50698         * lib/fcntl.in.h (open): Likewise.
50699         Reported by Rainer Tammer <tammer@tammer.net>.
50700
50701 2008-09-28  Bruno Haible  <bruno@clisp.org>
50702
50703         * modules/posix_spawnp-tests: New file.
50704         * tests/test-posix_spawn.c: New file.
50705         * tests/test-posix_spawn.in.sh: New file.
50706
50707         New module 'posix_spawnp'.
50708         * modules/posix_spawnp: New file.
50709         * lib/spawnp.c: New file, from GNU libc with modifications.
50710         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
50711
50712         New module 'posix_spawn'.
50713         * modules/posix_spawn: New file.
50714         * lib/spawn.c: New file, from GNU libc with modifications.
50715         * doc/posix-functions/posix_spawn.texi: Mention the new module.
50716
50717         New module 'posix_spawnattr_destroy'.
50718         * modules/posix_spawnattr_destroy: New file.
50719         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
50720         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
50721         module.
50722
50723         New module 'posix_spawnattr_setsigmask'.
50724         * modules/posix_spawnattr_setsigmask: New file.
50725         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
50726         modifications.
50727         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
50728         new module.
50729
50730         New module 'posix_spawnattr_getsigmask'.
50731         * modules/posix_spawnattr_getsigmask: New file.
50732         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
50733         modifications.
50734         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
50735         new module.
50736
50737         New module 'posix_spawnattr_setsigdefault'.
50738         * modules/posix_spawnattr_setsigdefault: New file.
50739         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50740         modifications.
50741         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50742         new module.
50743
50744         New module 'posix_spawnattr_getsigdefault'.
50745         * modules/posix_spawnattr_getsigdefault: New file.
50746         * lib/spawnattr_getdefault.c: New file, from GNU libc with
50747         modifications.
50748         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
50749         new module.
50750
50751         New module 'posix_spawnattr_setschedpolicy'.
50752         * modules/posix_spawnattr_setschedpolicy: New file.
50753         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
50754         modifications.
50755         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
50756         new module.
50757
50758         New module 'posix_spawnattr_getschedpolicy'.
50759         * modules/posix_spawnattr_getschedpolicy: New file.
50760         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
50761         modifications.
50762         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
50763         new module.
50764
50765         New module 'posix_spawnattr_setschedparam'.
50766         * modules/posix_spawnattr_setschedparam: New file.
50767         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
50768         modifications.
50769         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
50770         new module.
50771
50772         New module 'posix_spawnattr_getschedparam'.
50773         * modules/posix_spawnattr_getschedparam: New file.
50774         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
50775         modifications.
50776         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
50777         new module.
50778
50779         New module 'posix_spawnattr_setpgroup'.
50780         * modules/posix_spawnattr_setpgroup: New file.
50781         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
50782         modifications.
50783         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
50784         module.
50785
50786         New module 'posix_spawnattr_getpgroup'.
50787         * modules/posix_spawnattr_getpgroup: New file.
50788         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
50789         modifications.
50790         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
50791         module.
50792
50793         New module 'posix_spawnattr_setflags'.
50794         * modules/posix_spawnattr_setflags: New file.
50795         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
50796         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
50797         module.
50798
50799         New module 'posix_spawnattr_getflags'.
50800         * modules/posix_spawnattr_getflags: New file.
50801         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
50802         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
50803         module.
50804
50805         New module 'posix_spawnattr_init'.
50806         * modules/posix_spawnattr_init: New file.
50807         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
50808         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
50809         module.
50810
50811         New module 'posix_spawn_file_actions_destroy'.
50812         * modules/posix_spawn_file_actions_destroy: New file.
50813         * lib/spawn_faction_destroy.c: New file, from GNU libc with
50814         modifications.
50815         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
50816         the new module.
50817
50818         New module 'posix_spawn_file_actions_addopen'.
50819         * modules/posix_spawn_file_actions_addopen: New file.
50820         * lib/spawn_faction_addopen.c: New file, from GNU libc with
50821         modifications.
50822         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
50823         the new module.
50824
50825         New module 'posix_spawn_file_actions_adddup2'.
50826         * modules/posix_spawn_file_actions_adddup2: New file.
50827         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
50828         modifications.
50829         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
50830         the new module.
50831
50832         New module 'posix_spawn_file_actions_addclose'.
50833         * modules/posix_spawn_file_actions_addclose: New file.
50834         * lib/spawn_faction_addclose.c: New file, from GNU libc with
50835         modifications.
50836         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
50837         the new module.
50838
50839         New module 'posix_spawn_file_actions_init'.
50840         * modules/posix_spawn_file_actions_init: New file.
50841         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
50842         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
50843         new module.
50844
50845         New module 'posix_spawn-internal'.
50846         * modules/posix_spawn-internal: New file.
50847         * lib/spawn_int.h: New file, from GNU libc with modifications.
50848         * lib/spawni.c: New file, from GNU libc with modifications.
50849         * m4/posix_spawn.m4: New file.
50850
50851         New module 'spawn'.
50852         * modules/spawn: New file.
50853         * lib/spawn.in.h: New file, from GNU libc with modifications.
50854         * m4/spawn_h.m4: New file.
50855         * doc/posix-headers/spawn.texi: Mention the new module.
50856
50857 2008-09-28  Bruno Haible  <bruno@clisp.org>
50858
50859         * modules/sched-tests: New file.
50860         * tests/test-sched.c: New file.
50861
50862         New module 'sched'.
50863         * modules/sched: New file.
50864         * lib/sched.in.h: New file.
50865         * m4/sched_h.m4: New file.
50866         * doc/posix-headers/sched.texi: Mention the new module.
50867
50868 2008-09-27  Eric Blake  <ebb9@byu.net>
50869
50870         Fix previous patch, and tweak references to $0.
50871         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
50872         (func_version, func_gnulib_dir): Don't call this program
50873         gnulib-tool.
50874         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
50875         with using $0 in function.
50876         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
50877         (func_fatal_error): Reuse the name the user invoked us with.
50878
50879 2008-09-27  Bruno Haible  <bruno@clisp.org>
50880
50881         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
50882         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
50883         (gl_ICONV_H): Not here.
50884         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50885         instead of assigning ICONV_H directly.
50886
50887         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
50888         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
50889         WCHAR_H directly.
50890
50891 2008-09-27  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
50894         * modules/arpa_inet (Depends-on): Add link-warning.
50895         (Makefile.am): Insert the definition of GL_LINK-WARNING.
50896         * modules/unistd (Makefile.am): Likewise.
50897
50898 2008-09-26  Bruno Haible  <bruno@clisp.org>
50899
50900         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
50901         variables.
50902         (func_version): Essentially copied from gnulib-tool.
50903         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
50904         func_readlink): Copied from gnulib-tool.
50905
50906 2008-09-26  Bruno Haible  <bruno@clisp.org>
50907
50908         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50909         invoking git-version-gen.
50910
50911 2008-09-26  Bruno Haible  <bruno@clisp.org>
50912
50913         * posix-modules: Update to directory names changed on 2008-01-19.
50914         Remove commas in output before splitting into words. No more need to
50915         avoid 'ftruncate' since 2007-02-19.
50916
50917 2008-09-26  Bruno Haible  <bruno@clisp.org>
50918
50919         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
50920
50921 2008-09-26  Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
50924         * modules/fwriteerror (Depends-on): Add errno.
50925
50926 2008-09-26  Bruno Haible  <bruno@clisp.org>
50927
50928         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
50929         * tests/test-vc-list-files-cvs.sh: Likewise.
50930
50931 2008-09-26  Bruno Haible  <bruno@clisp.org>
50932
50933         * doc/posix-headers/sys_resource.texi: Reorder items.
50934
50935 2008-09-26  Jim Meyering  <meyering@redhat.com>
50936
50937         fts: tweak inode comparison function
50938         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
50939         inode numbers, as documented.
50940
50941         fts: sort dirent entries on inode number before traversing
50942         This avoids a quadratic, seek-related performance penalty when
50943         operating on a directory containing many entries (measurable at 10k;
50944         3.5 hours at 2 million entries with a cold cache) on certain types
50945         of file systems, including ext3 and ext4, but not tmpfs.
50946         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50947         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50948         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50949         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50950         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50951         (fts_build): Set the stat.st_ino member from D_INO.
50952         If it is likely to be useful, sort dirent entries on inode number.
50953
50954         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50955         and the struct statfs.f_type member.
50956         * modules/fts (Depends-on): Add d-ino.
50957
50958 2008-09-26  Bruno Haible  <bruno@clisp.org>
50959
50960         * modules/sigpipe-die (Depends-on): Add sigpipe.
50961
50962         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50963         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50964         and GNULIB_STDIO_H_SIGPIPE are set.
50965         * lib/stdio-write.c: New file.
50966         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50967         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50968         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50969         REPLACE_STDIO_WRITE_FUNCS.
50970         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50971         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50972         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50973         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50974         * modules/stdio (Files): Add lib/stdio-write.c.
50975         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50976         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50977         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50978         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50979         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50980         REPLACE_FPRINTF_POSIX.
50981         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50982         REPLACE_PRINTF_POSIX.
50983         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50984         REPLACE_VFPRINTF_POSIX.
50985         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50986         REPLACE_VPRINTF_POSIX.
50987         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50988         SIGPIPE issue.
50989         * doc/posix-functions/fputc.texi: Likewise.
50990         * doc/posix-functions/fputs.texi: Likewise.
50991         * doc/posix-functions/fwrite.texi: Likewise.
50992         * doc/posix-functions/printf.texi: Likewise.
50993         * doc/posix-functions/putc.texi: Likewise.
50994         * doc/posix-functions/putchar.texi: Likewise.
50995         * doc/posix-functions/puts.texi: Likewise.
50996         * doc/posix-functions/vfprintf.texi: Likewise.
50997         * doc/posix-functions/vprintf.texi: Likewise.
50998
50999         * modules/safe-write (Depends-on): Add write.
51000
51001         * modules/sigpipe-tests: New file.
51002         * tests/test-sigpipe.c: New file.
51003         * tests/test-sigpipe.sh: New file.
51004
51005         * modules/write: New file.
51006         * lib/unistd.in.h: Include <sys/types.h>.
51007         (write): New declaration.
51008         * lib/write.c: New file.
51009         * m4/write.m4: New file.
51010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51011         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51012         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51013         GNULIB_WRITE, REPLACE_WRITE.
51014         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51015         and the SIGPIPE issue.
51016
51017         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51018         (raise): New declaration.
51019         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51020         (ext_signal): New function.
51021         (rpl_raise): New function.
51022         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51023         GNULIB_SIGNAL_H_SIGPIPE.
51024         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51025         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51026
51027         * modules/sigpipe: New file.
51028         * m4/sigpipe.m4: New file.
51029
51030 2008-09-25  Derek Price  <derek@ximbiot.com>
51031             Bruno Haible  <bruno@clisp.org>
51032
51033         * gnulib-tool (func_import): Report all license incompatibilities, not
51034         just the first one.
51035
51036 2008-09-25  Bruno Haible  <bruno@clisp.org>
51037
51038         * gnulib-tool (func_import): When computing the edits, consider not
51039         only the Makefile.ams that exist but also those that will be generated.
51040
51041 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51042
51043         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51044         fixes gnulib-tool --test warning about duplicate dependency.
51045
51046 2008-09-25  Bruno Haible  <bruno@clisp.org>
51047
51048         * gnulib-tool: Don't ask the user to perform edits in the generated
51049         Makefile.ams.
51050         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51051         apply to the Makefile.am being generated.
51052         (func_emit_tests_Makefile_am): Execute edits that apply to the
51053         Makefile.am being generated.
51054         (func_import): Setup list of Makefile.am edits before emitting the
51055         Makefile.ams, not at the end.
51056         (func_create_testdir): Update.
51057         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51058
51059 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51060
51061         * gnulib-tool (func_import): Store the --tests-base option in the
51062         comment in gnulib-cache.m4.
51063
51064 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51065
51066         * NEWS: Document increased portability that sys_select now provides.
51067
51068         * lib/sys_select.in.h: Install select wrapper.
51069         * lib/sys_socket.in.h: Use more descriptive name when there is no
51070         select wrapper.
51071         * lib/winsock-select.c: New.
51072         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51073         Require gl_HEADER_SYS_SOCKET.
51074         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51075         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51076         * tests/test-sys_select.c: Add functional tests.
51077
51078 2008-09-24  Eric Blake  <ebb9@byu.net>
51079
51080         open, fopen: close fd leak in last patch
51081         * lib/open.c (rpl_open): Close fd before returning error.
51082         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51083         * doc/posix-functions/open.texi (open): Document that Irix also
51084         has the bug.
51085         * doc/posix-functions/fopen.texi (fopen): Likewise.
51086         Reported by Paolo Bonzini.
51087
51088 2008-09-24  Bruno Haible  <bruno@clisp.org>
51089
51090         Ensure that a filename ending in a slash cannot be used to access a
51091         non-directory.
51092         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51093         to check whether it's really a directory.
51094         * lib/fopen.c: Include fcntl.h, unistd.h.
51095         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51096         and fdopen().
51097         * modules/fopen (Depends-on): Add unistd.
51098         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51099         * tests/test-fopen.c (main): Likewise.
51100         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51101         * doc/posix-functions/fopen.texi: Likewise.
51102         Reported by Eric Blake.
51103
51104 2008-09-23  Eric Blake  <ebb9@byu.net>
51105
51106         c-stack: avoid compiler optimizations when provoking overflow
51107         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51108         recursion harder to optimize, to ensure a stack overflow occurs.
51109         * tests/test-c-stack.c (recurse): Likewise.
51110         Borrowed from libsigsegv.
51111
51112         c-stack: work around Irix sigaltstack bug
51113         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51114         whether sigaltstack uses wrong end of stack_t (copied in part from
51115         libsigsegv).
51116         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51117         Irix bug, without requiring an over-allocation.
51118         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51119         bug.
51120
51121         fopen: document mingw bug on directories
51122         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51123         not allowing a stream visiting a directory, even though reading
51124         from such a stream is not portable.
51125
51126 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51127
51128         * lib/poll.c: Rewrite.
51129         * modules/poll: Depend on alloca.
51130
51131 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51132
51133         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51134         instead define prototypes for a full set of wrappers.  Ensure
51135         that Cygwin does not use the compatibility code, which is only
51136         for MinGW.
51137         * lib/winsock.c: New.
51138         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51139         * modules/sys_socket: Add lib/winsock.c.
51140
51141         * modules/poll-tests: Add errno and perror.
51142         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51143
51144 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51145
51146         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51147
51148 2008-09-23  Bruno Haible  <bruno@clisp.org>
51149
51150         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51151         * doc/glibc-functions/*: Likewise.
51152
51153 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51154
51155         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51156         success.
51157
51158 2008-09-22  Eric Blake  <ebb9@byu.net>
51159             Bruno Haible  <bruno@clisp.org>
51160
51161         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51162         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51163         supply %A but mishandle pseudo-NaN.
51164         Reported by Simon Josefsson.
51165
51166 2008-09-21  Bruno Haible  <bruno@clisp.org>
51167
51168         * tests/test-lock.c (main): Tweak skip message.
51169         * tests/test-tls.c (main): Likewise.
51170
51171 2008-09-21  Bruno Haible  <bruno@clisp.org>
51172
51173         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51174         whether 'struct sigaction' has sa_sigaction here...
51175         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51176         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51177
51178 2008-09-21  Bruno Haible  <bruno@clisp.org>
51179
51180         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51181         section.
51182         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51183         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51184         the new section.
51185         (Support for obsolete systems lacking POSIX:2001): New section.
51186         (String handling <string.h>): Move strdup to the new section.
51187         Suggested by Simon Josefsson and Paolo Bonzini.
51188
51189 2008-09-21  Bruno Haible  <bruno@clisp.org>
51190
51191         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51192         exponents in %e and %g results on 'long double'. Needed for mingw's
51193         improved *printf functions.
51194         * tests/test-vasprintf-posix.c (test_function): Likewise.
51195         * tests/test-snprintf-posix.h (test_function): Likewise.
51196         * tests/test-sprintf-posix.h (test_function): Likewise.
51197         Reported by Eric Blake.
51198
51199 2008-09-21  Bruno Haible  <bruno@clisp.org>
51200
51201         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51202         * tests/test-sprintf-posix.h (test_function): Likewise.
51203
51204 2008-09-21  Bruno Haible  <bruno@clisp.org>
51205
51206         * modules/getpass (Depends-on): Add strdup-posix.
51207
51208         New module 'strdup-posix'.
51209         * modules/strdup-posix: New file.
51210         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51211         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51212         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51213         REPLACE_STRDUP.
51214         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51215         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51217         strdup-posix.
51218
51219         * modules/strdup (Depends-on): Remove malloc-posix.
51220
51221 2008-09-20  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51224         Wildenhues.
51225
51226 2008-09-20  Bruno Haible  <bruno@clisp.org>
51227
51228         Ensure that wint_t gets defined on IRIX 5.3.
51229         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51230         * lib/wctype.in.h (wint_t): Likewise.
51231         (__wctype_wint_t): Remove type.
51232         (isw*): Use wint_t instead of __wctype_wint_t.
51233         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51234         * modules/wchar (Files): Add m4/wint_t.m4.
51235         (Makefile.am): Substitute HAVE_WINT_T.
51236         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51237         * tests/test-wctype.c: Check that wint_t is defined.
51238         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51239         * doc/posix-headers/wctype.texi: Likewise.
51240         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51241
51242 2008-09-18  Bruno Haible  <bruno@clisp.org>
51243
51244         * gnulib-tool (func_exit): Update comment.
51245
51246 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51247
51248         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51249         assumes strdup exists and does not depend on strdup to return
51250         ENOMEM on out of memory conditions.
51251
51252 2008-09-18  Bruno Haible  <bruno@clisp.org>
51253
51254         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
51255         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51256         digits for the exponent.
51257
51258 2008-09-18  Jim Meyering  <meyering@redhat.com>
51259             Bruno Haible  <bruno@clisp.org>
51260
51261         * lib/vasnprintf.c (decimal_point_char): Define also if
51262         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51263
51264 2008-09-16  Bruno Haible  <bruno@clisp.org>
51265         and Eric Blake  <ebb9@byu.net>
51266
51267         vasnprintf: support Irix 5.3
51268         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51269         that mishandle long double infinity.
51270         Reported by Tom G. Christensen.
51271
51272 2008-09-16  Bruno Haible  <bruno@clisp.org>
51273
51274         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51275         Solaris 9.
51276         * doc/glibc-functions/alphasort.texi: Likewise.
51277         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51278
51279 2008-09-16  Jim Meyering  <meyering@redhat.com>
51280
51281         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51282         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51283         a umask modification leak out of a subshell.  Otherwise, the
51284         opensolaris /bin/sh would be accepted and thus cause unwarranted
51285         failures in the coreutils test suite.
51286
51287 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51288
51289         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51290         to succeed.
51291
51292 2008-09-16  Jim Meyering  <meyering@redhat.com>
51293
51294         avoid spurious test failure when library is built without ACL support
51295         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51296         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51297         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51298         * tests/test-copy-acl.sh: Likewise.
51299
51300 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51301
51302         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51303         based on character occurrence counts.
51304
51305 2008-09-15  Eric Blake  <ebb9@byu.net>
51306
51307         tests: avoid some compiler warnings
51308         * tests/test-memchr.c (main): Pass NULL indirectly.
51309         * tests/test-closein.c (main): Avoid unused variable.
51310
51311 2008-09-15  Bruno Haible  <bruno@clisp.org>
51312
51313         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51314         are missing on OpenBSD 4.0 individually.
51315         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51316
51317 2008-09-15  Bruno Haible  <bruno@clisp.org>
51318
51319         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51320         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51321         * doc/posix-functions/perror.texi: Likewise.
51322         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51323         is missing.
51324         Reported by Eric Blake.
51325
51326         * lib/errno.in.h: Use replacement values >= 2000.
51327         Reported by Eric Blake.
51328
51329 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51330
51331         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51332         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51333         limit.
51334         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51335         compareseq was aborted.
51336
51337 2008-09-14  Bruno Haible  <bruno@clisp.org>
51338
51339         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51340         yvec_edit_count.
51341         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51342         (fstrcmp_bounded): Simplify result computation accordingly.
51343
51344 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51345
51346         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51347         (fstrcmp): Define in terms of fstrcmp_bounded.
51348         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51349         lower_bound argument.
51350         Return quickly if the result is certainly < lower_bound.
51351         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51352
51353 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51354
51355         * lib/diffseq.h (EARLY_ABORT): New macro.
51356         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51357         evaluates to true.
51358
51359 2008-09-14  Bruno Haible  <bruno@clisp.org>
51360
51361         * modules/perror-tests: New file.
51362         * tests/test-perror.sh: New file.
51363         * tests/test-perror.c: New file.
51364
51365         New module 'perror'.
51366         * lib/stdio.in.h (perror): New declaration.
51367         * lib/perror.c: New file.
51368         * m4/perror.m4: New file.
51369         * modules/perror: New file.
51370         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51371         * doc/posix-functions/perror.texi: Mention the perror module.
51372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51373         REPLACE_PERROR.
51374         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51375         REPLACE_PERROR.
51376
51377 2008-09-14  Bruno Haible  <bruno@clisp.org>
51378
51379         * modules/stdio (Makefile.am): Reorder to match the order in
51380         lib/stdio.in.h.
51381         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51382
51383 2008-09-13  Bruno Haible  <bruno@clisp.org>
51384
51385         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51386
51387 2008-09-13  Bruno Haible  <bruno@clisp.org>
51388
51389         Extend strerror to cover the added errno values.
51390         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51391         (rpl_strerror): Provide error messages for the added errno values and
51392         for the WSA* values.
51393         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51394         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51395         strerror.
51396         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51397         * modules/strerror (Depends-on): Add errno.
51398         * doc/posix-functions/strerror.texi: Document the change.
51399         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51400         and EOVERFLOW.
51401
51402 2008-09-13  Bruno Haible  <bruno@clisp.org>
51403
51404         * modules/EOVERFLOW: Remove file.
51405         * m4/eoverflow.m4: Remove file.
51406         * modules/EOVERFLOW-tests: Remove file.
51407         * tests/test-EOVERFLOW.c: Remove file.
51408         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51409         * modules/ftell (Depends-on): Likewise.
51410         * modules/getdelim (Depends-on): Likewise.
51411         * modules/getugroups (Depends-on): Likewise.
51412         * modules/poll (Depends-on): Likewise.
51413         * modules/snprintf (Depends-on): Likewise.
51414         * modules/sprintf-posix (Depends-on): Likewise.
51415         * modules/vasnprintf (Depends-on): Likewise.
51416         * modules/vasprintf (Depends-on): Likewise.
51417         * modules/vfprintf-posix (Depends-on): Likewise.
51418         * modules/vsnprintf (Depends-on): Likewise.
51419         * modules/vsprintf-posix (Depends-on): Likewise.
51420         * modules/xvasprintf (Depends-on): Likewise.
51421         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51422         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51423         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51424         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51425         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51426         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51427         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51428         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51429         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51430         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51431         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51432         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51433         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51434         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51435         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51436         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51437         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51438         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51439         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51440         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51441         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51442         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51443         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51444         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51445         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51446         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51447         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51448         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51449         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51450         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51451         * MODULES.html.sh: Remove EOVERFLOW.
51452         * NEWS: Mention the change.
51453
51454 2008-09-13  Bruno Haible  <bruno@clisp.org>
51455
51456         * modules/errno-tests: New file.
51457         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51458
51459         * lib/errno.in.h: New file.
51460         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51461         * modules/errno: New file.
51462         * doc/posix-headers/errno.texi: Update documentation.
51463         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51464
51465 2008-09-13  Bruno Haible  <bruno@clisp.org>
51466
51467         * tests/test-poll.c: Use #if for native Windows, rather than testing
51468         __MSVCRT__.
51469
51470 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51471             Bruno Haible  <bruno@clisp.org>
51472
51473         * lib/glob.c: Don't include <pwd.h> on native Windows.
51474         (WINDOWS32): New macro.
51475         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51476
51477 2008-09-13  Bruno Haible  <bruno@clisp.org>
51478
51479         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51480         (ETIMEDOUT): Remove macro.
51481         (glthread_cond_timedwait_multithreaded): New declaration.
51482         (glthread_cond_timedwait): Use it.
51483         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51484         (glthread_cond_timedwait_multithreaded): New function.
51485
51486 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51487
51488         * modules/poll-tests: Do not check for io.h.
51489         * tests/test-poll.c: Check for __MSVCRT__ instead.
51490
51491 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51492
51493         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51494         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51495         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51496
51497 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51498
51499         * modules/poll-tests: New.
51500         * tests/test-poll.c: New.
51501
51502 2008-09-12  Eric Blake  <ebb9@byu.net>
51503
51504         frexp: test for NetBSD failure on -0.0
51505         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51506         not all, bugs from NetBSD 3.0 have been fixed.
51507         * doc/posix-functions/frexp.texi (frexp): Document bug.
51508         Reported by Thomas Klausner.
51509
51510         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51511         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51512         literal -0.0.
51513         Reported by Jonathan C. Patschke <jp@centtech.com>.
51514
51515 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51516
51517         * lib/glthread/cond.h: Use dummy implementation also if
51518         USE_WIN32_THREADS.
51519
51520 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51521
51522         * modules/fnmatch-posix (License): Change to LGPLv2+.
51523         * modules/fnmatch-gnu (License): Likewise.
51524
51525 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51526
51527         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51528
51529 2008-09-11  Jim Meyering  <meyering@redhat.com>
51530
51531         * users.txt: Add gtk-vnc.
51532
51533 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51534
51535         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51536         rotate amounts.
51537
51538         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51539         required for 16-bit and 8-bit rotates.
51540         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51541         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51542         UINT8_MAX instead of hard-coded constants.
51543         Suggested by Paul Eggert.
51544
51545 2008-09-07  Bruno Haible  <bruno@clisp.org>
51546
51547         * tests/test-striconveh.c (main): Check behaviour when converting from
51548         UTF-7.
51549
51550         Make striconveh work better with stateful encodings.
51551         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51552         that iconv does not increment the inptr when returning -1/EINVAL.
51553
51554 2008-09-07  Bruno Haible  <bruno@clisp.org>
51555
51556         * build-aux/config.rpath: Update according to libtool-2.2.6.
51557         * build-aux/config.libpath: Likewise.
51558
51559 2008-09-06  Bruno Haible  <bruno@clisp.org>
51560
51561         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51562         * lib/freadptr.c (freadptr): Likewise.
51563         * lib/freadseek.c (freadptrinc): Likewise.
51564         Reported by Simon Josefsson.
51565
51566 2008-09-06  Bruno Haible  <bruno@clisp.org>
51567
51568         * modules/freadptr (License): Change to LGPLv2+.
51569         * modules/freadseek (License): Likewise.
51570         Suggested by Eric Blake.
51571
51572         * modules/memchr2 (License): Change to LGPLv2+.
51573         Approved by Eric Blake.
51574
51575 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51576             Bruno Haible  <bruno@clisp.org>
51577
51578         Make gnulib-tool work with native 'sed' on AIX.
51579         * gnulib-tool (sed_noop): New variable.
51580         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51581         func_add_or_update, func_create_testdir): Use it to initialize sed
51582         script variables.
51583         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51584
51585 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51586             Bruno Haible  <bruno@clisp.org>
51587
51588         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51589         also works after #include directives.
51590
51591 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
51592
51593         getdate.y: reject an out-of-range timezone value
51594         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51595         the range [-24...+24].  When specified with only one or two digits,
51596         * tests/test-getdate.c: Tests for the fix.
51597         * doc/getdate.texi: Document this change.
51598
51599 2008-09-03  Bruno Haible  <bruno@clisp.org>
51600
51601         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
51602
51603 2008-09-02  Simon Josefsson  <simon@josefsson.org>
51604
51605         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
51606         <bruce.korb@gmail.com> with ideas from Ben Pfaff
51607         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
51608         Blake <ebb9@byu.net>.
51609
51610         * tests/test-bitrotate.c: Add more test vectors.
51611
51612 2008-09-02  Eric Blake  <ebb9@byu.net>
51613
51614         vasnprintf-posix: handle large precision via %.*d
51615         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
51616         when handling it ourselves.
51617         * tests/test-vasnprintf-posix.c (test_function): Add test.
51618         * tests/test-snprintf-posix.h (test_function): Likewise.
51619         * tests/test-sprintf-posix.h (test_function): Likewise.
51620         * tests/test-vasprintf-posix.c (test_function): Likewise.
51621         Reported by Alain Guibert.
51622
51623 2008-09-01  Eric Blake  <ebb9@byu.net>
51624
51625         c-stack: make configure-time check more robust
51626         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
51627         successful sigaction call.
51628         Reported by Tom G. Christensen.
51629
51630 2008-09-01  Bruno Haible  <bruno@clisp.org>
51631
51632         New module 'findprog-lgpl'.
51633         * modules/findprog-lgpl: New file.
51634         * lib/findprog-lgpl.c: New file.
51635         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
51636         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
51637         to decide whether to use strdup or xstrdup, concatenated_filename or
51638         xconcatenated_filename.
51639
51640 2008-09-01  Bruno Haible  <bruno@clisp.org>
51641
51642         Split module 'concat-filename' into 'concat-filename' (LGPL) and
51643         'xconcat-filename' (GPL).
51644         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
51645         (License): Change to LGPLv2+.
51646         * modules/xconcat-filename: New file.
51647         * lib/concat-filename.h (concatenated_filename): Change specification.
51648         (xconcatenated_filename): New declaration.
51649         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
51650         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
51651         memory situations.
51652         * lib/xconcat-filename.c: New file.
51653         * NEWS: Mention the change.
51654         * lib/findprog.c: Include concat-filename.h, not filename.h.
51655         (find_in_path): Use xconcatenated_filename instead of
51656         concatenated_filename.
51657         * lib/javacomp.c: Include concat-filename.h, not filename.h.
51658         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51659         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51660         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51661         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
51662         instead of concatenated_filename.
51663         * lib/javaexec.c: Include concat-filename.h, not filename.h.
51664         (execute_java_class): Use xconcatenated_filename instead of
51665         concatenated_filename.
51666         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
51667         * modules/javacomp (Depends-on): Likewise.
51668         * modules/javaexec (Depends-on): Likewise.
51669
51670 2008-09-01  Bruno Haible  <bruno@clisp.org>
51671
51672         Split module 'filename' into 'filename' and 'concat-filename'.
51673         * modules/filename: Keep only lib/filename.h.
51674         (License): Change to LGPLv2+.
51675         * modules/concat-filename: New file, extracted from modules/filename.
51676         * lib/filename.h (concatenated_filename): Remove declaration.
51677         * lib/concat-filename.h: New file, extracted from lib/filename.h.
51678         * lib/concat-filename.c: Include concat-filename.h.
51679         * NEWS: Mention the change.
51680
51681 2008-09-01  Simon Josefsson  <simon@josefsson.org>
51682
51683         * lib/bitrotate.h (rotl8, rotr8): Add.
51684
51685         * modules/bitrotate (configure.ac): Need
51686         AC_REQUIRE([AC_C_INLINE]).
51687         (Description): Mention stdint.h.  Reported by Bruno Haible
51688         <bruno@clisp.org>.
51689
51690         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
51691         Paolo Bonzini <bonzini@gnu.org>.
51692
51693 2008-08-31  Bruno Haible  <bruno@clisp.org>
51694
51695         Assume Solaris specific bi-arch conventions on Solaris systems.
51696         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
51697         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
51698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
51699         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
51700         like acl_libdirstem.
51701         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
51702         acl_libdirstem.
51703         * NEWS: Mention the change.
51704         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
51705
51706 2008-08-31  Jim Meyering  <meyering@redhat.com>
51707
51708         * lib/strftime.h: Add comments describing the two added arguments.
51709
51710         remove duplicate #include directives
51711         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
51712         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
51713
51714 2008-08-31  Bruno Haible  <bruno@clisp.org>
51715
51716         New module 'sigpipe-die'.
51717         * modules/sigpipe-die: New file.
51718         * lib/sigpipe-die.h: New file.
51719         * lib/sigpipe-die.c: New file.
51720         * MODULES.html.sh (Signal handling): Add sigpipe-die.
51721
51722 2008-08-31  Bruno Haible  <bruno@clisp.org>
51723
51724         Don't override previously installed signal handlers.
51725         * lib/fatal-signal.c (saved_sigactions): New variable.
51726         (uninstall_handlers): Reset the signal to the saved handler, not
51727         to SIG_DFL (except when ignored).
51728         (install_handlers): Save the previous handlers.
51729
51730 2008-08-30  Bruno Haible  <bruno@clisp.org>
51731
51732         * gnulib-tool (func_reset_sigpipe): New function.
51733         (func_get_automake_snippet, func_modules_transitive_closure,
51734         func_import): Invoke it before a join command that reads from stdin,
51735         to avoid "echo: write error: Broken pipe" error messages on stderr.
51736         Reported by Sam Steingold <sds@gnu.org>.
51737
51738 2008-08-30  Bruno Haible  <bruno@clisp.org>
51739
51740         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51741         Code copied from m4/open.m4.
51742         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51743         access and the filename ends in a slash. Code copied from lib/open.c.
51744         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
51745         * tests/test-fopen.c (main): Check against bug with trailing slash.
51746
51747 2008-08-29  Bruno Haible  <bruno@clisp.org>
51748
51749         Avoid some "gcc -pedantic" warnings.
51750         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
51751         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
51752         * lib/dirent.in.h: Likewise.
51753         * lib/fcntl.in.h: Likewise.
51754         * lib/float.in.h: Likewise.
51755         * lib/iconv.in.h: Likewise.
51756         * lib/inttypes.in.h: Likewise.
51757         * lib/locale.in.h: Likewise.
51758         * lib/math.in.h: Likewise.
51759         * lib/netinet_in.in.h: Likewise.
51760         * lib/search.in.h: Likewise.
51761         * lib/signal.in.h: Likewise.
51762         * lib/stdarg.in.h: Likewise.
51763         * lib/stdint.in.h: Likewise.
51764         * lib/stdio.in.h: Likewise.
51765         * lib/stdlib.in.h: Likewise.
51766         * lib/string.in.h: Likewise.
51767         * lib/strings.in.h: Likewise.
51768         * lib/sys_select.in.h: Likewise.
51769         * lib/sys_socket.in.h: Likewise.
51770         * lib/sys_stat.in.h: Likewise.
51771         * lib/sys_time.in.h: Likewise.
51772         * lib/sysexits.in.h: Likewise.
51773         * lib/time.in.h: Likewise.
51774         * lib/unistd.in.h: Likewise.
51775         * lib/wchar.in.h: Likewise.
51776         * lib/wctype.in.h: Likewise.
51777         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
51778         * modules/fchdir (Makefile.am): Likewise.
51779         * modules/fcntl (Makefile.am): Likewise.
51780         * modules/float (Makefile.am): Likewise.
51781         * modules/iconv_open (Makefile.am): Likewise.
51782         * modules/inttypes (Makefile.am): Likewise.
51783         * modules/locale (Makefile.am): Likewise.
51784         * modules/math (Makefile.am): Likewise.
51785         * modules/netinet_in (Makefile.am): Likewise.
51786         * modules/search (Makefile.am): Likewise.
51787         * modules/signal (Makefile.am): Likewise.
51788         * modules/stdarg (Makefile.am): Likewise.
51789         * modules/stdint (Makefile.am): Likewise.
51790         * modules/stdio (Makefile.am): Likewise.
51791         * modules/stdlib (Makefile.am): Likewise.
51792         * modules/string (Makefile.am): Likewise.
51793         * modules/strings (Makefile.am): Likewise.
51794         * modules/sys_select (Makefile.am): Likewise.
51795         * modules/sys_socket (Makefile.am): Likewise.
51796         * modules/sys_stat (Makefile.am): Likewise.
51797         * modules/sys_time (Makefile.am): Likewise.
51798         * modules/sysexits (Makefile.am): Likewise.
51799         * modules/time (Makefile.am): Likewise.
51800         * modules/unistd (Makefile.am): Likewise.
51801         * modules/wchar (Makefile.am): Likewise.
51802         * modules/wctype (Makefile.am): Likewise.
51803         Reported by Reuben Thomas <rrt@sc3d.org>.
51804
51805 2008-08-29  Bruno Haible  <bruno@clisp.org>
51806
51807         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
51808         any more.
51809
51810 2008-08-29  Simon Josefsson  <simon@josefsson.org>
51811
51812         * MODULES.html.sh (Misc): Add bitrotate.
51813
51814         * modules/bitrotate: New file.
51815
51816         * lib/bitrotate.h: New file.
51817
51818         * modules/bitrotate-tests: New file.
51819
51820         * tests/test-bitrotate.c: New file.
51821
51822         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
51823         on the bitrotate module.
51824
51825         * lib/arctwo.c: Use new bitrotate module.
51826
51827 2008-08-29  Jim Meyering  <meyering@redhat.com>
51828
51829         bootstrap: merge changes from coreutils
51830         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
51831         of copied files.  Remove a kludge, now that this is fixed.
51832         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
51833         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
51834         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
51835
51836 2008-08-29  Bruno Haible  <bruno@clisp.org>
51837
51838         * MODULES.html.sh: Remove --cvs-urls option.
51839
51840 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
51841
51842         maint.mk: adjust to file name change
51843         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
51844
51845 2008-08-28  Jim Meyering  <meyering@redhat.com>
51846
51847         * modules/getndelim2 (License): Relicense to LGPLv2+.
51848         Approved by Richard Stallman for the version of 1995, and by
51849         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
51850
51851 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
51852
51853         * lib/getdelim.c (flockfile, funlockfile): Make all of them
51854         dummy if one is not available.  Do not touch them if
51855         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
51856         (getc_maybe_unlocked): New.
51857         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
51858
51859 2008-08-26  Eric Blake  <ebb9@byu.net>
51860
51861         doc/INSTALL: resync from autoconf
51862         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
51863         (INSTALL_PRELUDE): Delete; this is done more efficiently by
51864         moving...
51865         * install.texi [!autoconf]: ...here.  Resync from autoconf.
51866         * INSTALL: Regenerate.
51867         * INSTALL.ISO: New file.
51868         * INSTALL.UTF-8: Likewise.
51869
51870 2008-08-26  Jim Meyering  <meyering@redhat.com>
51871
51872         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
51873         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
51874         these definitions conditional, so that they may be overridden, too.
51875
51876 2008-08-26  Bruno Haible  <bruno@clisp.org>
51877
51878         Generate INSTALL file variants with prettier quotes.
51879         * doc/Makefile (INSTALL_PRELUDE): New macro.
51880         (INSTALL): Use it.
51881         (INSTALL.ISO, INSTALL.UTF-8): New rules.
51882
51883 2008-08-26  Bruno Haible  <bruno@clisp.org>
51884
51885         Run makeinfo in an English locale.
51886         * doc/Makefile (MAKEINFO): New variable.
51887
51888 2008-08-26  Bruno Haible  <bruno@clisp.org>
51889
51890         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
51891         Suggested by Eric Blake.
51892
51893 2008-08-25  Bruno Haible  <bruno@clisp.org>
51894
51895         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
51896
51897 2008-08-25  Eric Blake  <ebb9@byu.net>
51898
51899         c-stack: test that stack overflow can be caught
51900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
51901         that platform allows handling stack overflow; at least OS/2 EMX
51902         has sigaltstack, but crashes before transferring control to
51903         handler on stack overflow.
51904         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
51905         check for HAVE_STACK_OVERFLOW_HANDLING.
51906         Reported by Elbert Pol.
51907
51908 2008-08-25  Bruno Haible  <bruno@clisp.org>
51909
51910         * doc/posix-functions/strftime.texi: Fix description of strftime
51911         module.
51912
51913 2008-08-24  Bruno Haible  <bruno@clisp.org>
51914
51915         * tests/uniwidth/test-uc_width2.c: New file.
51916         * tests/uniwidth/test-uc_width2.sh: New file.
51917         * modules/uniwidth/width-tests (Files): Add the new files.
51918         (TESTS): Add uniwidth/test-uc_width2.sh.
51919         (TESTS_ENVIRONMENT): New variable.
51920         (check_PROGRAMS): Add test-uc_width2.
51921         (test_uc_width2_SOURCES): New variable.
51922
51923         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
51924         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
51925         not 0x00AB.
51926         Reported by Alexander V. Lukyanov <lav@netis.ru>.
51927
51928 2008-08-22  Eric Blake  <ebb9@byu.net>
51929
51930         test-lock, test-tls: mention why a test is skipped
51931         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
51932         skipped.
51933         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
51934
51935         count-one-bits: relax license
51936         * modules/count-one-bits (License): Relicense to LGPLv2+.
51937         Suggested by Ludovic Courtès, approved by Ben Pfaff.
51938
51939 2008-08-22  Andreas Schwab  <schwab@suse.de>
51940
51941         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51942         Remove spurious space in assignment.
51943
51944 2008-08-21  Simon Josefsson  <simon@josefsson.org>
51945
51946         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51947         Paul Eggert <eggert@CS.UCLA.EDU>.
51948
51949 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51950
51951         * modules/gettext: Add m4/threadlib.m4.
51952
51953 2008-08-19  Eric Blake  <ebb9@byu.net>
51954
51955         test-c-stack: fix compilation failure on FreeBSD 5.0
51956         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51957         headers before <sys/resource.h>.
51958         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51959         the bug.
51960         Reported by Nelson H. F. Beebe.
51961
51962         strverscmp: migrate from "strverscmp.h" to <string.h>
51963         * modules/string (Makefile.am): Add new hooks.
51964         * modules/strverscmp (Files): Remove strverscmp.h.
51965         (Depends-on): Add string.
51966         (configure.ac): Add indicator.
51967         (Include): Mention new header.
51968         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51969         defaults.
51970         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51971         results.
51972         * lib/strverscmp.h: Delete.
51973         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51974         * tests/test-strverscmp.c (includes): Adjust client.
51975         * lib/check-version.c (includes): Likewise.
51976         * NEWS: Document the change.
51977
51978         strverscmp: add unit test
51979         * modules/strverscmp-tests: New file.
51980         * tests/test-strverscmp.c: Likewise.
51981
51982 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51983
51984         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51985         regarding Windows crypto stuff, from Mono.
51986
51987 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51988
51989         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51990         if present, for intel RND.  Return error on failures.
51991
51992 2008-08-18  Ben Pfaff  <blp@gnu.org>
51993
51994         gitlog-to-changelog: give better diagnostic for failed pipe-open
51995         * build-aux/gitlog-to-changelog: Improve error message: suggest
51996         that the version of Git may be too old.
51997
51998 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51999
52000         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52001         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52002
52003 2008-08-18  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52006         pthread_in_use().
52007
52008 2008-08-18  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/glthread/threadlib.c: Include <pthread.h>.
52011
52012 2008-08-18  Bruno Haible  <bruno@clisp.org>
52013
52014         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52015         glthread_recursive_lock_* macros.
52016         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52017         Fix syntax error.
52018
52019 2008-08-18  Bruno Haible  <bruno@clisp.org>
52020
52021         * lib/glthread/thread.c: Avoid forcing a context switch right after
52022         thread creation.
52023
52024 2008-08-17  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52027         * lib/glthread/thread.h: Provide Win32 specific implementation.
52028         * modules/thread (Files): Add lib/glthread/thread.c.
52029         (Depends-on): Add lock.
52030         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52031
52032 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52033
52034         New module 'yield'.
52035         * modules/yield: New file.
52036         * lib/glthread/yield.h: New file.
52037         * m4/yield.m4: New file.
52038         * MODULES.html.sh (Multithreading): Add yield.
52039
52040 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52041
52042         New module 'thread'.
52043         * modules/thread: New file.
52044         * lib/glthread/thread.h: New file.
52045         * m4/thread.m4: New file.
52046         * MODULES.html.sh (Multithreading): Add thread.
52047
52048 2008-08-17  Bruno Haible  <bruno@clisp.org>
52049
52050         * lib/glthread/lock.h: Include <stdlib.h> always.
52051         * lib/glthread/tls.h: Likewise.
52052         * lib/glthread/cond.h: Likewise.
52053
52054 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52055
52056         New module 'cond'.
52057         * modules/cond: New file.
52058         * lib/glthread/cond.h: New file.
52059         * lib/glthread/cond.c: New file.
52060         * m4/cond.m4: New file.
52061         * MODULES.html.sh (Multithreading): Add cond.
52062
52063 2008-08-16  Eric Blake  <ebb9@byu.net>
52064
52065         c-stack: fix regression on Irix 5.3 from 2008-06-21
52066         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52067         sa_sigaction...
52068         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52069         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52070         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52071         * modules/signal (Makefile.am): Use the value.
52072         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52073         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52074         * doc/posix-headers/signal.texi (signal.h): Document this
52075         portability issue.
52076         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52077         Reported by Tom G. Christensen.
52078
52079 2008-08-17  Bruno Haible  <bruno@clisp.org>
52080
52081         New module 'threadlib'.
52082         * modules/threadlib: New file.
52083         * lib/glthread/threadlib.c: New file, extracted from
52084         lib/glthread/lock.c.
52085         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52086         functions.
52087         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52088         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52089         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52090         macros.
52091         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52092         (gl_DISABLE_THREADS): Remove macro.
52093         * modules/lock (Files): Remove build-aux/config.rpath.
52094         (Depends-on): Remove havelib. Add threadlib.
52095         (configure.ac-early): Remove section.
52096         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52097         * modules/tls (Depends-on): Remove lock. Add threadlib.
52098         (Link): New section, copied from threadlib.
52099         * MODULES.html.sh (Multithreading): Add threadlib.
52100
52101 2008-08-14  Bruno Haible  <bruno@clisp.org>
52102
52103         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52104         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52105         glthread_rwlock_unlock, glthread_rwlock_destroy,
52106         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52107         glthread_recursive_lock_destroy): Define as macros always.
52108         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52109         glthread_lock_lock.
52110         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52111         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52112         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52113         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52114         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52115         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52116         (glthread_recursive_lock_lock_func): Renamed from
52117         glthread_recursive_lock_lock.
52118         (glthread_recursive_lock_unlock_func): Renamed from
52119         glthread_recursive_lock_unlock.
52120         (glthread_recursive_lock_destroy_func): Renamed from
52121         glthread_recursive_lock_destroy.
52122
52123 2008-08-14  Bruno Haible  <bruno@clisp.org>
52124
52125         * lib/glthread/lock.h: Renamed from lib/lock.h.
52126         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52127         * lib/glthread/tls.h: Renamed from lib/tls.h.
52128         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52129         * lib/fstrcmp.c: Update includes.
52130         * lib/strsignal.c: Update includes.
52131         * modules/lock (Files, Makefile.am): Update.
52132         (Include): Change to "glthread/lock.h".
52133         * modules/tls (Files, Makefile.am): Update.
52134         (Include): Change to "glthread/tls.h".
52135         * tests/test-lock.c: Update includes.
52136         * tests/test-tls.c: Update includes.
52137         * NEWS: Mention the renamed header files.
52138
52139 2008-08-11  Jim Meyering  <meyering@redhat.com>
52140
52141         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52142
52143 2008-08-11  Eric Blake  <ebb9@byu.net>
52144
52145         test-c-stack: avoid C99-ism
52146         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52147         before statement.
52148         Reported by Alain Guibert.
52149
52150 2008-08-10  Jim Meyering  <meyering@redhat.com>
52151
52152         ensure that return value of uinttostr et al are not ignored
52153         * lib/inttostr.h (__GNUC_PREREQ): Define.
52154         (__attribute_warn_unused_result__): Define.
52155         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52156
52157 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52158
52159         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52160         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52161
52162 2008-08-07  Jim Meyering  <meyering@redhat.com>
52163
52164         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52165
52166         * modules/mkstemp (License): Relicense under LGPLv2+.
52167         * modules/tempname (License): Likewise.
52168
52169 2008-08-06  Bruno Haible  <bruno@clisp.org>
52170
52171         * lib/poll.c (poll): Further micro-optimization.
52172
52173 2008-08-06  Jim Meyering  <meyering@redhat.com>
52174
52175         inet_pton.c: use locale-independent tolower
52176         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52177         (inet_pton6): Use c_tolower rather than tolower.
52178         * modules/inet_pton (Depends-on): Add c-ctype.
52179
52180 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52181
52182         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52183         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52184
52185 2008-08-06  Jim Meyering  <meyering@redhat.com>
52186
52187         * modules/inet_pton (License): Relicense under LGPLv2+.
52188
52189 2008-08-03  Bruno Haible  <bruno@clisp.org>
52190
52191         Additional non-aborting API for lock and tls.
52192         * lib/lock.h: Include <errno.h>.
52193         (glthread_lock_init): New macro/function.
52194         (gl_lock_init): Define as wrapper around glthread_lock_init.
52195         (glthread_lock_lock): New macro/function.
52196         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52197         (glthread_lock_unlock): New macro/function.
52198         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52199         (glthread_lock_destroy): New macro/function.
52200         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52201         (glthread_rwlock_init): New macro/function.
52202         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52203         (glthread_rwlock_rdlock): New macro/function.
52204         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52205         (glthread_rwlock_wrlock): New macro/function.
52206         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52207         (glthread_rwlock_unlock): New macro/function.
52208         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52209         (glthread_rwlock_destroy): New macro/function.
52210         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52211         (glthread_recursive_lock_init): New macro/function.
52212         (gl_recursive_lock_init): Define as wrapper around
52213         glthread_recursive_lock_init.
52214         (glthread_recursive_lock_lock): New macro/function.
52215         (gl_recursive_lock_lock): Define as wrapper around
52216         glthread_recursive_lock_lock.
52217         (glthread_recursive_lock_unlock): New macro/function.
52218         (gl_recursive_lock_unlock): Define as wrapper around
52219         glthread_recursive_lock_unlock.
52220         (glthread_recursive_lock_destroy): New macro/function.
52221         (gl_recursive_lock_destroy): Define as wrapper around
52222         glthread_recursive_lock_destroy.
52223         (glthread_once): New macro/function.
52224         (gl_once): Define as wrapper around glthread_once.
52225         Update function declarations.
52226         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52227         glthread_rwlock_init. Return error code.
52228         (glthread_rwlock_rdlock_multithreaded): Renamed from
52229         glthread_rwlock_rdlock. Return error code.
52230         (glthread_rwlock_wrlock_multithreaded): Renamed from
52231         glthread_rwlock_wrlock. Return error code.
52232         (glthread_rwlock_unlock_multithreaded): Renamed from
52233         glthread_rwlock_unlock. Return error code.
52234         (glthread_rwlock_destroy_multithreaded): Renamed from
52235         glthread_rwlock_destroy. Return error code.
52236         (glthread_recursive_lock_init_multithreaded): Renamed from
52237         glthread_recursive_lock_init. Return error code.
52238         (glthread_recursive_lock_lock_multithreaded): Renamed from
52239         glthread_recursive_lock_lock. Return error code.
52240         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52241         glthread_recursive_lock_unlock. Return error code.
52242         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52243         glthread_recursive_lock_destroy. Return error code.
52244         (glthread_once_call): Make static.
52245         (glthread_once_multithreaded): Renamed from glthread_once.
52246         * lib/tls.h: Include <errno.h>.
52247         (glthread_tls_key_init): New macro/function.
52248         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52249         (glthread_tls_set): New macro/function.
52250         (gl_tls_set): Define as wrapper around glthread_tls_set.
52251         (glthread_tls_key_destroy): New macro/function.
52252         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52253         Update function declarations.
52254         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52255         glthread_tls_get.
52256         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52257
52258 2008-08-04  Eric Blake  <ebb9@byu.net>
52259
52260         gnumakefile: use space, not TAB, outside of targets
52261         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52262
52263 2008-08-02  Jim Meyering  <meyering@redhat.com>
52264
52265         getdate.y: avoid locale-dependent date parsing failure
52266         In Turkish locales, getdate would fail to recognize keywords
52267         containing a lowercase "i".  The solution is not to rely on
52268         locale-sensitive case-conversion.
52269         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52270         (lookup_word): Use c_toupper in place of toupper.
52271         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52272         Reported by Vefa Bicakci <bicave@superonline.com> in
52273         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52274         * modules/getdate (Depends-on): Add c-ctype.
52275
52276 2008-08-02  Bruno Haible  <bruno@clisp.org>
52277
52278         * gnulib-tool (func_import): When updating or creating a .gitignore
52279         file, prepend each added line with a slash, and ignore leading slashes
52280         from the existing lines.
52281         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52282
52283 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52284
52285         Portability fix for GNU make 3.79.1.
52286         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52287         versions do not understand.
52288
52289 2008-08-01  Bruno Haible  <bruno@clisp.org>
52290
52291         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52292         * tests/test-isnanf.h (zero): New variable.
52293         (main): Avoid literal -0.0f.
52294         * tests/test-isnand.h (zero): New variable.
52295         (main): Avoid literal -0.0.
52296         * tests/test-isnanl.h (zero): New variable.
52297         (main): Avoid literal -0.0L.
52298         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52299         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52300         -0.0, -0.0L.
52301         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52302         (test_signbitd): Avoid literal -0.0.
52303         (test_signbitl): Avoid literal -0.0L.
52304         * tests/test-ceilf1.c (zero): New variable.
52305         (main): Avoid literal -0.0f.
52306         * tests/test-ceill.c (zero): New variable.
52307         (main): Avoid literal -0.0L.
52308         * tests/test-floorf1.c (zero): New variable.
52309         (main): Avoid literal -0.0f.
52310         * tests/test-floorl.c (zero): New variable.
52311         (main): Avoid literal -0.0L.
52312         * tests/test-roundf1.c (zero): New variable.
52313         (main): Avoid literal -0.0f.
52314         * tests/test-round1.c (zero): New variable.
52315         (main): Avoid literal -0.0.
52316         * tests/test-roundl.c (zero): New variable.
52317         (main): Avoid literal -0.0L.
52318         * tests/test-truncf1.c (zero): New variable.
52319         (main): Avoid literal -0.0f.
52320         * tests/test-trunc1.c (zero): New variable.
52321         (main): Avoid literal -0.0.
52322         * tests/test-truncl.c (zero): New variable.
52323         (main): Avoid literal -0.0L.
52324         * tests/test-frexp.c (zero): New variable.
52325         (main): Avoid literal -0.0.
52326         * tests/test-frexpl.c (zero): New variable.
52327         (main): Avoid literal -0.0L.
52328         * tests/test-ldexpl.c (zero): New variable.
52329         (main): Avoid literal -0.0L.
52330         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52331         (zerod, zerol): New variables.
52332         (test_function): Avoid literals -0.0, -0.0L.
52333         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52334         (zerod, zerol): New variables.
52335         (test_function): Avoid literals -0.0, -0.0L.
52336         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52337         (zerod, zerol): New variables.
52338         (test_function): Avoid literals -0.0, -0.0L.
52339         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52340         (zerod, zerol): New variables.
52341         (test_function): Avoid literals -0.0, -0.0L.
52342         * tests/test-strtod.c (zero): New variable.
52343         (main): Avoid literal -0.0.
52344         Reported by Jonathan C. Patschke <jp@centtech.com>.
52345
52346 2008-07-31  Jim Meyering  <meyering@redhat.com>
52347
52348         sha256.h: correct definition of SHA224_DIGEST_SIZE
52349         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52350         Reported by Paulie Pena IV <paulie4@gmail.com>.
52351         Define as 224 / 8, rather than as a literal.
52352         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52353         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52354         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52355
52356 2008-07-31  Bruno Haible  <bruno@clisp.org>
52357
52358         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52359         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52360         Reported by Jonathan Patschke <jp@centtech.com>.
52361
52362 2008-07-31  Bruno Haible  <bruno@clisp.org>
52363
52364         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52365         Reported by Paolo Bonzini <bonzini@gnu.org>.
52366
52367 2008-07-30  Eric Blake  <ebb9@byu.net>
52368
52369         test-strtod: allow compilation without -lm
52370         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52371         Reported by Dennis Clarke <blastwave@gmail.com>.
52372
52373 2008-07-28  Jim Meyering  <meyering@redhat.com>
52374
52375         bootstrap: work also when there are no .po files in po/
52376         * build-aux/bootstrap (update_po_files): Complete the change
52377         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52378
52379 2008-07-27  Jim Meyering  <meyering@redhat.com>
52380
52381         * users.txt: Add zile.
52382
52383 2008-07-26  Ben Pfaff  <blp@gnu.org>
52384
52385         Add missing dependencies on new m4/exponent[fdl].m4 files.
52386         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52387         * modules/isnand-nolibm: Add m4/exponentd.m4.
52388         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52389         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52390         m4/isnan[fdl].m4, because the macros actually used moved.
52391         Reported by Jim Meyering.
52392
52393 2008-07-14  Ben Pfaff  <blp@gnu.org>
52394
52395         Add isinf module.
52396         * lib/isinf.c: New file.
52397         * lib/math.in.h: Define isinf macro if we have decided to replace
52398         it.
52399         * m4/isinf.m4: New file.
52400         * m4/math_h.m4: Initialize and substitute variables for isinf
52401         module.
52402         * modules/isinf: New file.
52403         * modules/isinf-tests: New file.
52404         * modules/math: Add substitutions for new module.
52405         * tests/test-isinf.c: New file.
52406         * doc/posix-functions/isinf.texi: Mention new module.
52407         * MODULES.html.sh: Mention new module.
52408
52409 2008-07-14  Ben Pfaff  <blp@gnu.org>
52410
52411         Factor out some macros for use by additional modules.
52412         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52413         exponentf.m4.
52414         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52415         exponentd.m4.
52416         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52417         file exponentl.m4.
52418         * m4/exponentf.m4: New file.
52419         * m4/exponentd.m4: New file.
52420         * m4/exponentl.m4: New file.
52421         * modules/isnanf: Use new file m4/exponentf.m4.
52422         * modules/isnand: Use new file m4/exponentd.m4.
52423         * modules/isnanl: Use new file m4/exponentl.m4.
52424
52425 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52426
52427         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52428         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52429         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52430         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52431
52432         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52433         readlink on platforms without PATH_MAX.
52434
52435 2008-07-21  Eric Blake  <ebb9@byu.net>
52436
52437         Warn, not fail, on stale version.
52438         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52439
52440         Don't allow installation with stale devel version number.
52441         * top/GNUmakefile (_is-install-target): New macro.
52442         (_curr-ver): Forbid installation with stale version number.
52443
52444 2008-07-20  Bruno Haible  <bruno@clisp.org>
52445
52446         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52447         TESTS_ENVIRONMENT.
52448         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52449
52450 2008-07-20  Bruno Haible  <bruno@clisp.org>
52451
52452         * lib/c-stack.h (c_stack_action): Add documentation.
52453         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52454
52455 2008-07-20  Bruno Haible  <bruno@clisp.org>
52456
52457         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52458         * modules/readlink (License): Likewise.
52459
52460 2008-07-17  Eric Blake  <ebb9@byu.net>
52461
52462         * modules/c-stack (Link): Fix typo.
52463
52464         Make c-stack use libsigsegv, when available.
52465         * modules/c-stack (Depends-on): Add libsigsegv.
52466         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52467         needed.
52468         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52469         (segv_handler, overflow_handler, c_stack_action)
52470         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52471         implementation when libsigsegv is available, but only when using
52472         the library is necessary.
52473         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52474         comment, explaining why XSI check fails on Linux.
52475         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52476         * tests/test-c-stack2.sh: Tweak skip message.
52477         * NEWS: Document new link-time requirements.
52478
52479 2008-07-16  Eric Blake  <ebb9@byu.net>
52480
52481         c-stack: Expose false positives when not using libsigsegv.
52482         * modules/c-stack-tests (Files): Expand test.
52483         * tests/test-c-stack.c (main): Add means to conditionally trigger
52484         non-overflow SIGSEGV.
52485         * tests/test-c-stack2.sh: New file.
52486
52487 2008-07-14  Bruno Haible  <bruno@clisp.org>
52488
52489         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52490         Reported by Eric Blake.
52491
52492 2008-07-14  Sam Steingold  <sds@gnu.org>
52493             Bruno Haible  <bruno@clisp.org>
52494
52495         New module libsigsegv.
52496         * modules/libsigsegv: New file.
52497         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52498         modifications.
52499         * MODULES.html.sh (Signal handling): New section.
52500
52501 2008-07-14  Bruno Haible  <bruno@clisp.org>
52502
52503         * modules/unictype/ctype-* (Description): Add the word "function".
52504         Improves the resulting doc in MODULES.html.
52505
52506 2008-07-12  Ben Pfaff  <blp@gnu.org>
52507
52508         Add longlong module.
52509         * modules/longlong: New file.
52510
52511 2008-07-12  Bruno Haible  <bruno@clisp.org>
52512
52513         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52514         to empty.
52515
52516 2008-07-10  Ben Pfaff  <blp@gnu.org>
52517
52518         Add isnan module.
52519         * doc/posix-functions/isnan.texi: Mention new module.
52520         * lib/math.in.h: Define isnan macro if we have decided to replace
52521         it.
52522         * m4/isnan.m4: New file.
52523         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52524         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52525         also.
52526         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52527         redundancy.
52528         * m4/math_h.m4: Initialize and substitute variables for isnan
52529         module.
52530         * modules/isnan: New file.
52531         * modules/isnan-tests: New file.
52532         * modules/math: Add substitutions for new module.
52533         * tests/test-isnan.c: New file.
52534         * MODULES.html.sh: Mention new module.
52535
52536 2008-07-10  Ben Pfaff  <blp@gnu.org>
52537
52538         Add isnanf module.
52539         * lib/isnanf.m4: New file.
52540         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52541         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52542         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52543         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52544         * modules/isnanf: New file.
52545         * modules/isnanf-tests: New file.
52546         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52547         files.
52548         * tests/test-isnanf-nolibm.c: factored most of its contents into
52549         new file tests/test-isnanf.h.
52550         * tests/test-isnanf.h: New file.
52551         * tests/test-isnanf.c: New file.
52552         * MODULES.html.sh: Mention new module.
52553         * doc/glibc-functions/isnanf.texi: Mention new module.
52554
52555 2008-07-10  Ben Pfaff  <blp@gnu.org>
52556
52557         Add isnand module.
52558         * lib/isnand.h: New file.
52559         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52560         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52561         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52562         functionality also.
52563         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52564         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52565         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52566         * modules/isnand: New file.
52567         * modules/isnand-tests: New file.
52568         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52569         files.
52570         * tests/test-isnand-nolibm.c: factored most of its contents into
52571         new file tests/test-isnand.h.
52572         * tests/test-isnand.h: New file.
52573         * tests/test-isnand.c: New file.
52574         * MODULES.html.sh: Mention new module.
52575
52576 2008-07-10  Ben Pfaff  <blp@gnu.org>
52577
52578         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52579         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52580         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52581         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52582         * modules/isnanf-nolibm: Update references to renamed files.
52583         * modules/isnand-nolibm: Likewise.
52584         * modules/isnanf-nolibm-tests: Likewise.
52585         * modules/isnand-nolibm-tests: Likewise.
52586         * lib/frexp.c: Likewise.
52587         * lib/isfinite.c: Likewise.
52588         * lib/signbitd.c: Likewise.
52589         * lib/signbitf.c: Likewise.
52590         * lib/vasnprintf.c: Likewise.
52591         * tests/test-ceilf1.c: Likewise.
52592         * tests/test-ceilf2.c: Likewise.
52593         * tests/test-floorf1.c: Likewise.
52594         * tests/test-floorf2.c: Likewise.
52595         * tests/test-frexp.c: Likewise.
52596         * tests/test-round1.c: Likewise.
52597         * tests/test-round2.c: Likewise.
52598         * tests/test-roundf1.c: Likewise.
52599         * tests/test-strtod.c: Likewise.
52600         * tests/test-trunc1.c: Likewise.
52601         * tests/test-trunc2.c: Likewise.
52602         * tests/test-truncf1.c: Likewise.
52603         * tests/test-truncf2.c: Likewise.
52604         * NEWS: Mention the renamed header files.
52605
52606 2008-07-11  Jim Meyering  <meyering@redhat.com>
52607
52608         vc-list-files: make the last-resort awk code more portable
52609         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
52610         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
52611         does not support it.
52612
52613 2008-07-10  Eric Blake  <ebb9@byu.net>
52614
52615         Work with tar's bootstrap.
52616         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
52617         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
52618         an m4 comment.
52619
52620 2008-07-09  Jim Meyering  <meyering@redhat.com>
52621
52622         posix-shell.m4: fix typo that made this test malfunction
52623         * m4/posix-shell.m4: Remove capitalization in variable name.
52624
52625 2008-07-08  Bruno Haible  <bruno@clisp.org>
52626
52627         * m4/onceonly.m4: Update comments.
52628         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52629
52630 2008-07-04  Jim Meyering  <meyering@redhat.com>
52631
52632         * users.txt: Add vc-dwim.
52633         (bison, coreutils): Use the gitweb URL.
52634
52635 2008-07-03  Jim Meyering  <meyering@redhat.com>
52636
52637         * users.txt: Add libffcall.  From Sam Steingold.
52638
52639 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
52640
52641         getdate.y: do not ignore TZ with relative day, month or year offset
52642         * lib/getdate.y (get_date): Move the tz-handling block to follow the
52643         relative-date-handling, since otherwise, the latter would clobber the
52644         sole output (an updated Start value) of the tz-handling block.
52645         * tests/test-getdate.c: Tests for the fix
52646
52647 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52648
52649         Recognize 'foo_LIBRARIES += libgnu.a'.
52650         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
52651         makefile snippet has already specified an installation location,
52652         also using '+='.
52653
52654 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
52655
52656         getdate.y: factor out common actions
52657         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
52658         Use them in place of open-coded actions.
52659
52660 2008-07-01  Simon Josefsson  <simon@josefsson.org>
52661
52662         Add self-test for getdate module.
52663         * modules/getdate-tests: New file.
52664         * tests/test-getdate.c: New file.
52665
52666 2008-06-29  Bruno Haible  <bruno@clisp.org>
52667
52668         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
52669         .gitignore.
52670         Reported by Sylvain Beucler <beuc@beuc.net>.
52671
52672 2008-06-29  Bruno Haible  <bruno@clisp.org>
52673
52674         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
52675         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
52676
52677 2008-06-29  Bruno Haible  <bruno@clisp.org>
52678
52679         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
52680         EXTRA_DIST.
52681         Reported by Sylvain Beucler <beuc@beuc.net>.
52682
52683 2008-06-26  Jim Meyering  <meyering@redhat.com>
52684
52685         make several modules depend on the "open" module
52686         This provides slightly increased consistency when opening-for-write
52687         the name of a non-directory spelled with a trailing slash.
52688         * modules/chdir-safer: Likewise.
52689         * modules/chown: Likewise.
52690         * modules/clean-temp: Likewise.
52691         * modules/copy-file: Likewise.
52692         * modules/fchdir: Likewise.
52693         * modules/fcntl-safer: Likewise.
52694         * modules/pipe: Likewise.
52695         * modules/utime: Likewise.
52696         Prompted by Eric Blake and Bruno Haible.
52697
52698 2008-06-24  Andreas Schwab  <schwab@suse.de>
52699
52700         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
52701         literals can be used as initializers for global variables.
52702
52703 2008-06-23  Eric Blake  <ebb9@byu.net>
52704
52705         Make gnulib-cache.m4 easier to diff.
52706         * gnulib-tool (func_import): Allow newlines when reading cached
52707         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
52708
52709 2008-06-23  Bruno Haible  <bruno@clisp.org>
52710
52711         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
52712         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
52713         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
52714         m4/signalblocking.m4.
52715         (gl_PREREQ_SIGACTION): Don't invoke it.
52716         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
52717         gl_PREREQ_SIG_HANDLER_H.
52718         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52719         Don't check for sigaction here.
52720
52721 2008-06-23  Bruno Haible  <bruno@clisp.org>
52722
52723         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
52724         (install_handlers): Don't set the SA_RESETHAND flag.
52725
52726 2008-06-23  Bruno Haible  <bruno@clisp.org>
52727
52728         * m4/sigaction.m4: Comment fixes.
52729         * lib/signal.in.h: Likewise.
52730
52731 2008-06-23  Eric Blake  <ebb9@byu.net>
52732
52733         Fix typo.
52734         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
52735
52736         Avoid SA_ namespace.
52737         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52738         Reported by Ralf Wildenhues.
52739
52740         Avoid test failure due to SA_RESTORER.
52741         * tests/test-sigaction.c (SA_MASK): New macro.
52742         (main): Avoid failing due to extension flags being set.
52743         Reported by Jim Meyering.
52744
52745         Revert use of sig-handler.h in sigprocmask.c.
52746         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
52747         it requires the existence of struct sigaction.
52748         * lib/sigprocmask.c (handler_t): Restore typedef.
52749         (rpl_signal, old_handlers): Use local type.
52750
52751 2008-06-22  Bruno Haible  <bruno@clisp.org>
52752
52753         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
52754         conditionally.
52755         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52756
52757 2008-06-22  Bruno Haible  <bruno@clisp.org>
52758
52759         * doc/posix-functions/siginterrupt.texi: Move note.
52760
52761         * lib/signal.in.h (SA_RESTART): New macro.
52762         * lib/sigaction.c: Update comment.
52763
52764         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
52765
52766         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
52767         (gl_PREREQ_SIGPROCMASK): Invoke it.
52768         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
52769
52770         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
52771
52772         * lib/sigprocmask.c: Update a comment.
52773
52774 2008-06-21  Eric Blake  <ebb9@byu.net>
52775
52776         Use sigaction module rather than signal().
52777         * modules/c-stack (Depends-on): Add sigaction.
52778         * modules/fatal-signal (Depends-on): Likewise.
52779         * modules/nanosleep (Depends-on): Likewise.
52780         * modules/sigprocmask (Files): Add sig-handler.h.
52781         * modules/sigaction (Files): Likewise.
52782         * lib/sig-handler.h (get_handler): New file, suggested by Paul
52783         Eggert.
52784         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
52785         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
52786         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
52787         (init_fatal_signals): Likewise.
52788         * lib/nanosleep.c (rpl_nanosleep): Likewise.
52789         (siginterrupt): Delete fallback.
52790         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
52791         instead.
52792         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
52793         siginterrupt.
52794
52795         New module sigaction, for mingw.
52796         * modules/sigaction: New module...
52797         * modules/sigaction-tests: ...and its test.
52798         * m4/sigaction.m4: New file.
52799         * lib/sigaction.c: Likewise.
52800         * tests/test-sigaction.c: Likewise.
52801         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
52802         * modules/signal (Makefile.am): Likewise.
52803         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
52804         needed.
52805         * doc/posix-headers/signal.texi (signal.h): Mention provided
52806         types.
52807         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
52808         that sigaction is preferable.
52809         * doc/posix-functions/sigaction.texi (sigaction): Mention new
52810         module.
52811         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52812         sigaction.
52813
52814         Improve robustness of sigprocmask by overriding signal.
52815         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
52816         is in use.
52817         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
52818         (SIGKILL, SIGSTOP): Provide fallbacks.
52819         (rpl_signal): Implement.
52820         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
52821         signal can be called inside handlers.
52822
52823         Fix nanosleep module on mingw.
52824         * modules/nanosleep (Depends-on): Add sys_select.
52825         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
52826
52827         Fix licensing of sigprocmask.
52828         * modules/raise (License): Relicense as LGPL.
52829
52830 2008-06-21  Bruno Haible  <bruno@clisp.org>
52831
52832         * lib/propername.c (proper_name_utf8): Don't use the transliterated
52833         result if it contains question marks.
52834         Reported by Michael Geng <linux@michaelgeng.de>.
52835
52836 2008-06-19  Bruno Haible  <bruno@clisp.org>
52837
52838         Fix CVS-ism.
52839         * doc/gnulib.texi: Include updated-stamp.texi.
52840         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
52841         (updated-stamp.texi): New rule.
52842         (gnulib.info): Depend on it.
52843         * doc/.gitignore: Add updated-stamp.texi.
52844         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
52845
52846 2008-06-19  Bruno Haible  <bruno@clisp.org>
52847
52848         * doc/Makefile (gnulib.info): Update and simplify dependencies.
52849         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52850
52851 2008-06-19  Eric Blake  <ebb9@byu.net>
52852
52853         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
52854         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
52855         Reported by Stepan Kasal.
52856
52857 2008-06-18  Bruno Haible  <bruno@clisp.org>
52858
52859         * lib/fatal-signal.c (init_fatal_signals): Add comment.
52860         Reported by Eric Blake.
52861
52862 2008-06-18  Eric Blake  <ebb9@byu.net>
52863
52864         Work around cygwin 1.5.25 strsignal bug.
52865         * tests/test-strsignal.c: Allow for const char *.
52866         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
52867
52868 2008-06-18  Simon Josefsson  <simon@josefsson.org>
52869
52870         * users.txt: Update URL to article and add author/date
52871         information.
52872
52873 2008-06-17  Bruno Haible  <bruno@clisp.org>
52874
52875         New macro gl_DISABLE_THREADS.
52876         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
52877         if the user did not pass --enable-threads or --disable-threads option.
52878         (gl_DISABLE_THREADS): New macro.
52879         Reported by Eric Blake <ebb9@byu.net>.
52880
52881 2008-06-17  Bruno Haible  <bruno@clisp.org>
52882
52883         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
52884         when the macro ignores it.
52885         Based on a patch by Eric Blake <ebb9@byu.net>.
52886
52887 2008-06-17  Bruno Haible  <bruno@clisp.org>
52888
52889         * modules/tls (License): Change to LGPLv2+.
52890         Reported by Eric Blake.
52891
52892 2008-06-17  Eric Blake  <ebb9@byu.net>
52893
52894         Simplify c-stack prerequisites.
52895         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
52896         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52897         no longer requires <ucontext.h> to exist.  Optimize setrlimit
52898         check.
52899         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
52900         <sys/resource.h>.
52901
52902         Move c-stack test into testsuite.
52903         * modules/c-stack-tests: New file.
52904         * lib/c-stack.c [DEBUG]: Move test program...
52905         * tests/test-c-stack.c: ...into this new file.  Skip rather than
52906         fail test if sigaltstack is lacking.
52907         * tests/test-c-stack.sh: New driver file.
52908
52909 2008-06-16  Eric Blake  <ebb9@byu.net>
52910
52911         Use raise module consistently.
52912         * modules/fatal-signal (Depends-on): Add raise.
52913         * modules/sigprocmask (Depends-on): Likewise.
52914         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
52915         * lib/sigprocmask.c (sigprocmask): Likewise.
52916         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52917         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
52918
52919         Fix compliance bug in sigpending.
52920         * lib/sigprocmask.c (sigpending): Return pending array via
52921         parameter, not return value.
52922
52923 2008-06-14  Eric Blake  <ebb9@byu.net>
52924
52925         Improve obstack-printf test code.
52926         * tests/test-obstack-printf.c (test_function): Fix comment, and
52927         simplify usage of obstack_* in macros.  Add a test for coverage.
52928         Reported by Bruno Haible.
52929
52930 2008-06-14  Bruno Haible  <bruno@clisp.org>
52931
52932         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
52933         array size as a constant, not as a const variable.
52934         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
52935         AC_USE_SYSTEM_EXTENSIONS.
52936         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52937         Test whether the obstack_printf function actually exists.
52938         * modules/obstack-printf (Depends-on): Add extensions.
52939         (Include): Remove obstack.h.
52940         * modules/obstack-printf-posix (Depends-on): Add extensions.
52941         (Include): Remove obstack.h.
52942
52943 2008-06-13  Eric Blake  <ebb9@byu.net>
52944
52945         Add obstack-printf and obstack-printf-posix modules.
52946         * modules/obstack-printf: New file.
52947         * modules/obstack-printf-posix: Likewise.
52948         * MODULES.html.sh (Misc): Mention them.
52949         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52950         Likewise.
52951         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52952         Likewise.
52953         * modules/stdio (Makefile.am): Accomodate new modules.
52954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52955         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52956         Declare.
52957         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52958         functions.
52959         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52960         (gl_REPLACE_OBSTACK_PRINTF): New macros
52961         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52962         * tests/test-obstack-printf.c: New file.
52963         * modules/obstack-printf-tests: Likewise.
52964         * modules/obstack-printf-posix-tests: Likewise.
52965
52966 2008-06-11  Bruno Haible  <bruno@clisp.org>
52967
52968         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52969         * lib/open.c: Include errno.h.
52970         (open): Fail when attempting to write to a file that has a trailing
52971         slash.
52972         * tests/test-open.c (main): Test against trailing slash bug.
52973         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52974
52975 2008-06-10  Bruno Haible  <bruno@clisp.org>
52976
52977         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52978         for $? to work inside the trap command, with various /bin/sh-s.
52979         * tests/test-vc-list-files-cvs.sh: Likewise.
52980
52981 2008-06-10  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/acl-internal.h: Don't include gettext.h here.
52984         * lib/set-mode-acl.c: Include gettext.h here.
52985         * lib/copy-acl.c: Likewise.
52986
52987 2008-06-10  Bruno Haible  <bruno@clisp.org>
52988
52989         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52990         * lib/wait-process.c (wait_subprocess): Likewise.
52991         * lib/execute.h (execute): Add termsigp argument.
52992         * lib/execute.c (execute): Likewise.
52993         * lib/csharpcomp.c (compile_csharp_using_pnet,
52994         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52995         * lib/csharpexec.c (execute_csharp_using_pnet,
52996         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52997         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52998         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52999         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53000         is_jikes_present): Update.
53001         * lib/javaexec.c (execute_java_class): Update.
53002         * lib/javaversion.c (execute_and_read_line): Update.
53003         * NEWS: Document the changes.
53004         Reported by Eric Blake.
53005
53006 2008-06-10  Eric Blake  <ebb9@byu.net>
53007
53008         Add missing include.
53009         * tests/test-strstr.c (includes): Add <signal.h>.
53010         * tests/test-strcasestr.c (includes): Likewise.
53011         * tests/test-memmem.c (includes): Likewise.
53012
53013 2008-06-10  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/wait-process.c (wait_subprocess): Add an assertion.
53016
53017 2008-06-10  Bruno Haible  <bruno@clisp.org>
53018
53019         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53020
53021 2008-06-10  Bruno Haible  <bruno@clisp.org>
53022
53023         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53024         using alarm().
53025         * tests/test-strcasestr.c (main): Likewise.
53026         * tests/test-strstr.c (main): Likewise.
53027
53028 2008-06-09  Bruno Haible  <bruno@clisp.org>
53029
53030         Work around the Solaris 10 ACE ACLs ABI change.
53031         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53032         declare if ACL_NO_TRIVIAL is present.
53033         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53034         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53035         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53036         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53037         define if ACL_NO_TRIVIAL is present.
53038         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53039         and use the current ABI.
53040         (file_has_acl): Use same #if condition as elsewhere.
53041         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53042         in use, and use the current ABI.
53043         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53044         Reported by Jim Meyering.
53045
53046 2008-06-09  Eric Blake  <ebb9@byu.net>
53047
53048         Work around environments that (stupidly) ignore SIGALRM.
53049         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53050         before using alarm().
53051         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53052         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53053         Reported by Ian Beckwith <ianb@erislabs.net>.
53054
53055         Produce autobuild blurb earlier in log.
53056         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53057
53058 2008-06-09  Jim Meyering  <meyering@redhat.com>
53059         and Ondřej Vašík  <ovasik@redhat.com>
53060
53061         utimens.c: correct kernel bug work-around
53062         Ondřej Vašík found that the invalid return value of 280 indicates
53063         failure, not success, and the kernel bug we're trying to work
53064         around affects not just the utimensat call, but also the fallback
53065         futimens call.
53066         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53067         not success.
53068         [HAVE_FUTIMENS]: Use the same work-around, here.
53069
53070 2008-06-09  Jim Meyering  <meyering@redhat.com>
53071
53072         add more guards around definition of ACE_-related code
53073         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53074         ALLOW and ACE_OWNER are also defined.
53075
53076 2008-06-08  Bruno Haible  <bruno@clisp.org>
53077
53078         * lib/acl-internal.h: Add me as co-author.
53079         * lib/file-has-acl.c: Likewise.
53080         * lib/set-mode-acl.c: Likewise.
53081         * lib/copy-acl.c: Likewise.
53082
53083 2008-06-08  Bruno Haible  <bruno@clisp.org>
53084
53085         Add support for AIX ACLs.
53086         * lib/acl-internal.h (acl_nontrivial): New declaration.
53087         * lib/file-has-acl.c (acl_nontrivial): New function.
53088         (file_has_acl): Add implementation using AIX 4 ACL API.
53089         * lib/set-mode-acl.c (qset_acl): Likewise.
53090         * lib/copy-acl.c (qcopy_acl): Likewise.
53091
53092 2008-06-08  Bruno Haible  <bruno@clisp.org>
53093
53094         Add support for HP-UX ACLs.
53095         * lib/acl-internal.h (acl_nontrivial): New declaration.
53096         * lib/file-has-acl.c (acl_nontrivial): New function.
53097         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53098         * lib/set-mode-acl.c (qset_acl): Likewise.
53099         * lib/copy-acl.c (qcopy_acl): Likewise.
53100
53101 2008-06-08  Bruno Haible  <bruno@clisp.org>
53102
53103         Add support for Cygwin ACLs.
53104         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53105         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53106         the chmod_or_fchmod call.
53107         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53108
53109 2008-06-08  Bruno Haible  <bruno@clisp.org>
53110
53111         Fix bug with setuid modes in Solaris 10+ code.
53112         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53113         succeeded, when the mode contains some special bits.
53114
53115 2008-06-08  Bruno Haible  <bruno@clisp.org>
53116
53117         Add support for Solaris 7..10 ACLs.
53118         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53119         declarations.
53120         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53121         functions.
53122         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53123         * lib/set-mode-acl.c (qset_acl): Likewise.
53124         * lib/copy-acl.c (qcopy_acl): Likewise.
53125
53126 2008-06-08  Bruno Haible  <bruno@clisp.org>
53127
53128         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53129         declaration.
53130         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53131         (acl_access_nontrivial): Remove MacOS X case.
53132         (file_has_acl): Use acl_extended_nontrivial.
53133         * lib/copy-acl.c (qcopy_acl): Likewise.
53134
53135 2008-06-08  Bruno Haible  <bruno@clisp.org>
53136
53137         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53138
53139 2008-06-08  Jim Meyering  <meyering@redhat.com>
53140
53141         * modules/acl (Maintainer): Add Bruno Haible.
53142
53143 2008-06-07  Bruno Haible  <bruno@clisp.org>
53144
53145         Improve support for Tru64 ACLs.
53146         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53147         ACL on OSF/1.
53148
53149 2008-06-07  Bruno Haible  <bruno@clisp.org>
53150
53151         Add support for MacOS X ACLs.
53152         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53153         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53154         * lib/set-mode-acl.c (qset_acl): Likewise.
53155         * lib/copy-acl.c (qcopy_acl): Likewise.
53156
53157 2008-06-07  Bruno Haible  <bruno@clisp.org>
53158
53159         Fix memory leak introduced on 2008-05-22.
53160         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53161         use.
53162
53163 2008-06-07  Bruno Haible  <bruno@clisp.org>
53164
53165         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53166         to construct an empty ACL.
53167
53168 2008-06-07  Bruno Haible  <bruno@clisp.org>
53169
53170         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53171         precisely.
53172         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53173
53174 2008-06-07  Bruno Haible  <bruno@clisp.org>
53175
53176         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53177         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53178
53179 2008-06-07  Bruno Haible  <bruno@clisp.org>
53180
53181         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53182         regardless of POSIX.
53183         * doc/posix-functions/_longjmp.texi: Likewise.
53184         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53185         SystemV platform in this case.
53186
53187 2008-06-06  Eric Blake  <ebb9@byu.net>
53188
53189         Document abort() bugs.
53190         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53191
53192         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53193         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53194         sigsetjmp.
53195         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53196         siglongjmp, but only as a macro.
53197         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53198         is obsolete.
53199         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53200
53201         Tweak documentation to cover cygwin argz bugs.
53202         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53203         argz bug fix; no code change needed since no cygwin releases
53204         occurred between the last fix and the bug being tested.
53205         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53206         module and recently fixed cygwin bugs.
53207         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53208         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53209         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53210         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53211         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53212         Likewise.
53213         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53214         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53215         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53216         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53217         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53218         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53219         Likewise.
53220
53221         Avoid gcc warning on cygwin.
53222         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53223         !ACL_NO_TRIVIAL]: Avoid unused variable.
53224
53225 2008-06-05  Eric Blake  <ebb9@byu.net>
53226
53227         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53228         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53229         git-version-gen fails to come up with a version.
53230         Reported by Simon Josefsson.
53231
53232 2008-06-05  Jim Meyering  <meyering@redhat.com>
53233             Paul Eggert  <eggert@cs.ucla.edu>
53234
53235         utimens.c: work around a probable Linux kernel bug
53236         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53237         appears to be a kernel bug that causes utimensat to return 280
53238         instead of 0, indicating success.
53239
53240 2008-06-04  Bruno Haible  <bruno@clisp.org>
53241
53242         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53243         2008-06-01 commit.
53244
53245 2008-06-04  Bruno Haible  <bruno@clisp.org>
53246
53247         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53248         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53249         (file_has_acl): Use it. Save errno afterwards.
53250         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53251
53252 2008-06-03  Bruno Haible  <bruno@clisp.org>
53253
53254         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53255         draft code. Simplify #ifs.
53256         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53257         Put Solaris code after POSIX-draft code. Fix comments regarding
53258         Solaris 10, HP-UX. Mention Cygwin.
53259         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53260
53261 2008-06-03  Eric Blake  <ebb9@byu.net>
53262
53263         Provide fallback for older kernels.
53264         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53265         Provide runtime fallback if kernel lacks support.
53266         Reported by Mike Frysinger.
53267
53268 2008-06-02  Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53271         it exists.
53272
53273 2008-06-02  Bruno Haible  <bruno@clisp.org>
53274
53275         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53276         * lib/copy-acl.c (qcopy_acl): Update comment.
53277
53278 2008-06-02  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53281         like ACL APIs.
53282
53283 2008-06-02  Bruno Haible  <bruno@clisp.org>
53284
53285         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53286         * tests/test-set-mode-acl.sh: Likewise.
53287         * tests/test-copy-acl.sh: Likewise.
53288         * tests/test-copy-file.sh: Likewise.
53289
53290 2008-06-02  Bruno Haible  <bruno@clisp.org>
53291
53292         * tests/test-file-has-acl.sh: Remove unused code.
53293
53294 2008-06-01  Bruno Haible  <bruno@clisp.org>
53295
53296         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53297         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53298         messages.
53299         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53300
53301 2008-06-01  Bruno Haible  <bruno@clisp.org>
53302
53303         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53304         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53305         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53306         APIs.
53307         * modules/acl-tests (configure.ac): Remove tests now contained in
53308         m4/acl.m4.
53309
53310 2008-06-02  Jim Meyering  <meyering@redhat.com>
53311
53312         announce-gen: use a better key-server host name
53313         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53314         it may be more consistently reliable.  Suggested by Werner Koch
53315         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53316
53317 2008-06-01  Bruno Haible  <bruno@clisp.org>
53318
53319         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53320         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53321
53322 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53323
53324         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53325
53326 2008-06-01  Bruno Haible  <bruno@clisp.org>
53327
53328         New ACL tests.
53329         * tests/test-file-has-acl.sh: New file.
53330         * tests/test-file-has-acl.c: New file.
53331         * tests/test-set-mode-acl.sh: New file.
53332         * tests/test-set-mode-acl.c: New file.
53333         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53334         * tests/test-copy-acl.c: New file.
53335         * modules/acl-tests: New file, based on modules/copy-file-tests.
53336         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53337         (Depends-on): Add acl-tests.
53338         (configure.ac): Remove checks.
53339         (Makefile.am): Don't create test-sameacls program here any more.
53340
53341 2008-06-01  Bruno Haible  <bruno@clisp.org>
53342
53343         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53344         * tests/test-sameacls.c: Include progname.h.
53345         (main): Invoke set_program_name. Portability fixes for MacOS X,
53346         Solaris, HP-UX.
53347
53348 2008-06-01  Bruno Haible  <bruno@clisp.org>
53349
53350         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53351         function.
53352         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53353
53354 2008-06-01  Bruno Haible  <bruno@clisp.org>
53355
53356         * modules/rpmatch (Depends-on): Add strdup.
53357
53358 2008-06-01  Bruno Haible  <bruno@clisp.org>
53359
53360         * lib/pipe.c: Include unistd-safer.h.
53361         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53362         * modules/pipe (Depends-on): Add unistd-safer.
53363
53364 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53365
53366         * modules/autobuild (configure.ac): Call AB_INIT.
53367
53368 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53369
53370         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53371         Suggested by Bruno Haible <bruno@clisp.org>.
53372
53373 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53374
53375         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53376         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53377         <bruno@clisp.org>.
53378
53379 2008-05-29  Eric Blake  <ebb9@byu.net>
53380
53381         Prefer new POSIX 200x interfaces over futimesat.
53382         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53383         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53384         when available.
53385         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53386
53387 2008-05-28  Bruno Haible  <bruno@clisp.org>
53388
53389         * modules/stpcpy (License): Change to LGPLv2+.
53390         Requested by David Lutterkort <dlutter@redhat.com>.
53391
53392 2008-05-27  Bruno Haible  <bruno@clisp.org>
53393
53394         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53395         current mingw.
53396         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53397
53398 2008-05-27  Bruno Haible  <bruno@clisp.org>
53399
53400         * modules/iconv_open (Link): New section, from module 'iconv'.
53401         * modules/striconv (Link): Likewise.
53402         * modules/striconveh (Link): Likewise.
53403         * modules/xstriconv (Link): Likewise.
53404         * modules/unicodeio (Link): Likewise.
53405         * modules/propername (Link): Likewise.
53406         Reported by Jim Meyering.
53407
53408 2008-05-26  Jim Meyering  <meyering@redhat.com>
53409
53410         sha256: do not artificially restrict buffer length to be < 2^32
53411         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53412         uint32_t to size_t.
53413         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53414         to match.
53415
53416         avoid unaligned access errors, e.g., on sparc
53417         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53418         direct access through a possibly-unaligned uint64* pointer.
53419         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53420         direct access through a possibly-unaligned uint32* pointer.
53421         Prompted by this patch from Tom "spot" Callaway:
53422         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53423
53424         sha512.c: fix typo in comment
53425         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53426
53427 2008-05-25  Bruno Haible  <bruno@clisp.org>
53428
53429         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53430         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53431         (Makefile.am): Update lib_SOURCES.
53432
53433 2008-05-25  Bruno Haible  <bruno@clisp.org>
53434
53435         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53436
53437 2008-05-25  Jim Meyering  <meyering@redhat.com>
53438
53439         useless-if-before-free: freed expr may have white-space differences
53440         * build-aux/useless-if-before-free: Recognize cases in which the
53441         freed expression differs from the tested one in embedded white
53442         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53443         $1 was used, so we can't make any regexp shy.  Improved tests now
53444         detect this.
53445
53446         useless-if-before-free: accept white space in the expression.
53447         * build-aux/useless-if-before-free: For now, any white space
53448         in the expression must be identical in the free argument.
53449
53450         useless-if-before-free: efficiency tweak
53451         * build-aux/useless-if-before-free: Make the expression-matching
53452         regexp "shy".
53453         Make the *outer* regexp shy, not the expr-matching one.
53454
53455         update code-in-comment to accept cast of free arg
53456         * build-aux/useless-if-before-free: Update regexp.
53457
53458 2008-05-25  Bruno Haible  <bruno@clisp.org>
53459
53460         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53461         * modules/copy-file-tests (Files, Makefile.am): Update.
53462         * tests/test-copy-file.c (func_test_copy): Update.
53463
53464 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53465
53466         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53467
53468 2008-05-23  Bruno Haible  <bruno@clisp.org>
53469
53470         Improve support for ACLs on OSF/1.
53471         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53472         Remove fallback for unknown flavors of ACLs.
53473
53474 2008-05-22  Bruno Haible  <bruno@clisp.org>
53475
53476         Add support for ACLs on OSF/1.
53477         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53478         replacements.
53479         (acl_free_text): New macro fallback.
53480         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53481         acl_free.
53482         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53483         acl_free_text function. Require AC_C_INLINE.
53484
53485 2008-05-22  Bruno Haible  <bruno@clisp.org>
53486
53487         Make copy_acl work on MacOS X 10.5.
53488         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53489         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53490         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53491         If MODE_INSIDE_ACL, don't assume that every system has the same text
53492         representation for ACLs as FreeBSD.
53493         * lib/copy-acl.c (copy_acl): Add support for platforms with
53494         !MODE_INSIDE_ACL.
53495         * lib/file-has-acl.c (file_has_acl): Likewise.
53496         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53497         FreeBSD, MacOS X, or IRIX, respectively.
53498
53499 2008-05-22  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/acl.h: Don't include <sys/acl.h>.
53502         (GETACLCNT): Move fallback to lib/acl-internal.h.
53503         * lib/acl-internal.h: Include <sys/acl.h> here.
53504         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53505
53506 2008-05-22  Bruno Haible  <bruno@clisp.org>
53507
53508         Split off copy_acl function to separate file.
53509         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53510         * lib/acl.c (copy_acl): Moved function to separate file.
53511         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53512         * modules/acl (Files): Add lib/copy-acl.c.
53513         (Makefiles.am): Augment lib_SOURCES.
53514
53515 2008-05-22  Bruno Haible  <bruno@clisp.org>
53516
53517         * modules/copy-file-tests: New file.
53518         * tests/test-copy-file.sh: New file.
53519         * tests/test-copy-file.c: New file.
53520         * tests/test-copy-file-sameacls.c: New file.
53521
53522 2008-05-22  Eric Blake  <ebb9@byu.net>
53523
53524         Avoid gcc warning.
53525         * tests/test-memcmp.c (main): Pass NULL indirectly.
53526
53527 2008-05-21  Bruno Haible  <bruno@clisp.org>
53528
53529         Add reference doc about ACLs.
53530         * doc/acl-resources.txt: New file.
53531         * doc/acl-cygwin.txt: New file.
53532
53533 2008-05-21  Bruno Haible  <bruno@clisp.org>
53534
53535         Avoid one more warning from gcc.
53536         * lib/vasnprintf.c (IF_LINT): Update comments.
53537         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53538
53539 2008-05-21  Jim Meyering  <meyering@redhat.com>
53540
53541         avoid a warning from gcc
53542         * lib/vasnprintf.c (IF_LINT): Define.
53543         (scale10_round_decimal_long_double):
53544         Use it to avoid a "may be used uninitialized" warning.
53545         (scale10_round_decimal_double): Likewise.
53546
53547 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53548
53549         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53550         declared.
53551
53552 2008-05-20  Bruno Haible  <bruno@clisp.org>
53553
53554         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53555         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53556
53557 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53558
53559         * modules/memcmp-tests: New file.
53560         * tests/test-memcmp.c: New file.
53561
53562 2008-05-19  Bruno Haible  <bruno@clisp.org>
53563
53564         * modules/propername (Notice, configure.ac): Put quoted "..." into
53565         --keyword option.
53566         * lib/propername.h: Update comments accordingly.
53567         Reported by Eric Blake.
53568
53569 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53570
53571         * modules/getpass-gnu (Depends-on): Add fseeko.
53572
53573 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53574
53575         * modules/base64-tests: New file.
53576
53577 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53578
53579         * lib/base64.c (base64_decode_ctx): If a decode context structure
53580         was passed in use it to ignore newlines.  If a context structure
53581         was _not_ passed in, continue to treat newlines as garbage (this
53582         is the historical behavior).  Formerly base64_decode.
53583         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53584         takes a decode context structure.
53585         * lib/base64.h (base64_decode): Macro for four-argument calls.
53586         (base64_decode_alloc): Likewise.
53587         * lib/base64.c (base64_decode_ctx): If a decode context structure
53588         was passed in use it to ignore newlines.  If a context structure
53589         was _not_ passed in, continue to treat newlines as garbage (this
53590         is the historical behavior).  Formerly base64_decode.
53591         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53592         takes a decode context structure.
53593         * lib/base64.h (base64_decode): Macro for four-argument calls.
53594         (base64_decode_alloc): Likewise.
53595
53596 2008-05-19  Jim Meyering  <meyering@redhat.com>
53597
53598         avoid a warning from gcc
53599         * lib/trim.c (IF_LINT): Define.
53600         (trim2): Use it to avoid a "may be used uninitialized" warning.
53601
53602         Fix doc typo.
53603         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
53604
53605 2008-05-19  Bruno Haible  <bruno@clisp.org>
53606
53607         * doc/glibc-functions/getpass.texi: Document limits of other
53608         implementations.
53609
53610 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53611             Bruno Haible <bruno@clisp.org>
53612
53613         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
53614
53615 2008-05-18  Bruno Haible  <bruno@clisp.org>
53616
53617         * modules/propername: New file, from GNU gettext.
53618         * lib/propername.h: New file, from GNU gettext.
53619         * lib/propername.c: New file, from GNU gettext.
53620         * MODULES.html.sh (Internationalization functions): Add propername.
53621
53622 2008-05-16  Jim Meyering  <meyering@redhat.com>
53623             Bruno Haible  <bruno@clisp.org>
53624
53625         Avoid some warnings from "gcc -Wshadow".
53626         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
53627
53628 2008-05-15  Eric Blake  <ebb9@byu.net>
53629
53630         Extend previous patch to cygwin 1.7.0.
53631         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
53632         fast implementation in cygwin >= 1.7.0.
53633         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53634         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53635
53636 2008-05-15  Bruno Haible  <bruno@clisp.org>
53637
53638         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
53639         implementation in glibc >= 2.9.
53640         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53641         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53642
53643 2008-05-15  Bruno Haible  <bruno@clisp.org>
53644
53645         * MODULES.html.sh (Internationalization functions): Remove linebreak.
53646         (Unicode string functions): Add unilbrk/*.
53647         Reported by Karl Berry.
53648
53649 2008-05-15  Eric Blake  <ebb9@byu.net>
53650
53651         Fix violation of <stdbool.h> replacement in regex.
53652         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
53653         * lib/regexec.c (re_search_internal): Likewise.
53654         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
53655
53656 2008-05-15  Jim Meyering  <meyering@redhat.com>
53657
53658         avoid distracting test output when git or cvs is not found
53659         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
53660         * tests/test-vc-list-files-git.sh: Likewise.
53661
53662 2008-05-15  Eric Blake  <ebb9@byu.net>
53663
53664         Glibc finally accepted the memmem speedup code, bugzilla #5514.
53665         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
53666         glibc version.
53667         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53668         * doc/posix-functions/strstr.texi (strstr): Likewise.
53669         * lib/str-two-way.h (MAX): Sychronize with glibc.
53670
53671 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
53672
53673         * lib/regcomp.c (optimize_utf8): Add a note on why we test
53674         opr.ctx_type.
53675         (calc_first): Initialize constraint field.
53676         (duplicate_node_closure): Use it instead of special casing ANCHORS.
53677         Fix grammar.
53678         (duplicate_node): Merge constraint field for all node types.
53679         (calc_eclosure_iter): Look at constraint field for all node types.
53680         * lib/regex_internal.c (create_cd_newstate): Don't look at
53681         opr.ctx_type.
53682
53683 2008-05-14  Bruno Haible  <bruno@clisp.org>
53684
53685         Help GCC to do better code generation.
53686         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
53687         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53688         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
53689         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
53690         Declare with attribute 'malloc' if supported.
53691
53692 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
53693
53694         use "echo STR|wc -c" rather than unportable "expr length STR"
53695         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
53696         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
53697
53698 2008-05-14  Jim Meyering  <meyering@redhat.com>
53699
53700         use dd ibs=$n count=1 ... rather than less-portable head -c$n
53701         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
53702         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
53703         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
53704         via Collin Lasse.
53705
53706 2008-05-14  Eric Blake  <ebb9@byu.net>
53707
53708         Avoid quadratic growth in gl_LIBSOURCES.
53709         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
53710         Suggested by Bruno Haible.
53711
53712         Test xmemdup0.
53713         * modules/xmemdup0-tests: New file.
53714         * tests/test-xmemdup0.c: Likewise.
53715
53716 2008-05-13  Eric Blake  <ebb9@byu.net>
53717
53718         Split xmemdup0 into its own module.
53719         * modules/xmemdup0: New file.
53720         * lib/xmemdup0.h: Likewise.
53721         * lib/xmemdup0.c: Likewise.
53722         * MODULES.html.sh (Memory management functions): Add xmemdup0.
53723         * lib/xalloc.h (xmemdup0): Remove.
53724         * lib/xmalloc.c (xmemdup0): Likewise.
53725
53726 2008-05-13  Eric Blake  <ebb9@byu.net>
53727             Bruno Haible  <bruno@clisp.org>
53728
53729         Reduce number of forks required during autoconf.
53730         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
53731         and gl_LIBSOURCES_DIR.
53732         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
53733         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
53734         m4_syscmd per file.
53735         <m4_foreach_w>: Move...
53736         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
53737
53738 2008-05-13  Eric Blake  <ebb9@byu.net>
53739
53740         * gnulib-tool: Fix various comment typos.
53741
53742 2008-05-12  Bruno Haible  <bruno@clisp.org>
53743
53744         Tailor the linebreaking algorithm.
53745         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
53746
53747 2008-05-12  Bruno Haible  <bruno@clisp.org>
53748
53749         Update to Unicode 5.0.0.
53750         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53751         LBP_JV, LBP_JT. Redistribute values.
53752         (unilbrk_table): Change size.
53753         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
53754         Unicode TR#14 rev. 22.
53755         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53756         LBP_JV, LBP_JT. Redistribute values.
53757         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
53758         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
53759         Update.
53760         * lib/unilbrk/lbrkprop1.h: Regenerated.
53761         * lib/unilbrk/lbrkprop2.h: Regenerated.
53762         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
53763         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
53764         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
53765         Likewise.
53766         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
53767         Likewise.
53768         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
53769         result.
53770         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53771         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53772         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53773         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
53774         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
53775         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
53776
53777 2008-05-11  Bruno Haible  <bruno@clisp.org>
53778
53779         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
53780
53781 2008-05-11  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
53784         * modules/unilbrk/gen-lbrk: New file.
53785
53786 2008-05-11  Bruno Haible  <bruno@clisp.org>
53787
53788         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
53789         * m4/sha512.m4 (gl_SHA512): Likewise.
53790
53791 2008-05-11  Jim Meyering  <meyering@redhat.com>
53792
53793         New modules: crypto/sha256, crypto/sha512 (from coreutils)
53794         * modules/crypto/sha256: New file.
53795         * modules/crypto/sha512: Likewise.
53796         * lib/sha256.c: Likewise.
53797         * lib/sha256.h: Likewise.
53798         * lib/sha512.c: Likewise.
53799         * lib/sha512.h: Likewise.
53800         * lib/u64.h: Likewise.
53801         * m4/sha256.m4: Likewise.
53802         * m4/sha512.m4: Likewise.
53803         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
53804
53805 2008-05-10  Bruno Haible  <bruno@clisp.org>
53806
53807         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
53808         (Input/Output <stdio.h>): Add xprintf.
53809         (Signal handling <signal.h>): Add strsignal.
53810         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
53811         (Core language properties): Add func.
53812         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
53813         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
53814         strings.
53815         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
53816         (Input/output): New section.
53817         (File system functions): Add openat-die, stat-macros.
53818         (Networking functions): Add sockets.
53819         (Unicode string functions): Add unictype/*.
53820         (Support for building libraries and executables): Add gperf.
53821         (Support for building documentation): Add agpl-3.0.
53822         (Misc): Add nocrash.
53823
53824 2008-05-10  Bruno Haible  <bruno@clisp.org>
53825
53826         * modules/unictype/gen-ctype: New file.
53827
53828 2008-05-10  Jim Meyering  <meyering@redhat.com>
53829
53830         Make chdir-safer.c more efficient on a system with no symlinks.
53831         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
53832         also if ELOOP is zero.  Suggested by Bruno Haible.
53833
53834         Make chdir-safer.c slightly safer.
53835         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
53836         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
53837
53838         Avoid compile failure on systems without ELOOP (like mingw).
53839         * lib/chdir-safer.c (ELOOP): Define if not already defined.
53840         Reported by Bruno Haible.
53841
53842 2008-05-10  Bruno Haible  <bruno@clisp.org>
53843
53844         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
53845         (is_utf8_encoding): Use a case-insensitive comparison.
53846         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
53847         streq.
53848
53849 2008-05-10  Bruno Haible  <bruno@clisp.org>
53850
53851         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
53852         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
53853         * lib/unilbrk/ulc-common.h (iconv_string_length,
53854         iconv_string_keeping_offsets): Remove declarations.
53855         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
53856         Don't include <iconv.h>, streq.h, xsize.h.
53857         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
53858         conversion.
53859         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
53860         <iconv.h>, streq.h, xsize.h.
53861         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
53862         conversion.
53863         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
53864         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
53865         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
53866         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
53867
53868 2008-05-10  Bruno Haible  <bruno@clisp.org>
53869
53870         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
53871         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
53872
53873         * modules/unilbrk/u32-width-linebreaks-tests: New file.
53874         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
53875
53876         * modules/unilbrk/u16-width-linebreaks-tests: New file.
53877         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
53878
53879         * modules/unilbrk/u8-width-linebreaks-tests: New file.
53880         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
53881
53882         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
53883         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
53884
53885         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
53886         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
53887
53888         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
53889         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
53890
53891         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
53892         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
53893
53894 2008-05-10  Bruno Haible  <bruno@clisp.org>
53895
53896         Split up 'linebreak' module.
53897         * lib/unilbrk.h: New file, based on lib/linebreak.h.
53898         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
53899         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
53900         modifications.
53901         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
53902         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
53903         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
53904         lib/linebreak.c.
53905         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
53906         lib/linebreak.c.
53907         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
53908         lib/linebreak.c.
53909         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
53910         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
53911         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
53912         lib/linebreak.c.
53913         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
53914         lib/linebreak.c.
53915         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
53916         lib/linebreak.c.
53917         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
53918         lib/linebreak.c.
53919         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
53920         lib/linebreak.c.
53921         * modules/unilbrk/base: New file.
53922         * modules/unilbrk/tables: New file.
53923         * modules/unilbrk/u8-possible-linebreaks: New file.
53924         * modules/unilbrk/u16-possible-linebreaks: New file.
53925         * modules/unilbrk/u32-possible-linebreaks: New file.
53926         * modules/unilbrk/ulc-common: New file.
53927         * modules/unilbrk/ulc-possible-linebreaks: New file.
53928         * modules/unilbrk/u8-width-linebreaks: New file.
53929         * modules/unilbrk/u16-width-linebreaks: New file.
53930         * modules/unilbrk/u32-width-linebreaks: New file.
53931         * modules/unilbrk/ulc-width-linebreaks: New file.
53932         * lib/linebreak.h: Remove file.
53933         * lib/linebreak.c: Remove file.
53934         * m4/linebreak.m4: Remove file.
53935         * modules/linebreak: Remove file.
53936         * NEWS: Mention the changes.
53937
53938 2008-05-09  Eric Blake  <ebb9@byu.net>
53939
53940         Add xmemdup0.
53941         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
53942         implementation.
53943         * lib/xmalloc.c (xmemdup0): New C implementation.
53944
53945 2008-05-08  Bruno Haible  <bruno@clisp.org>
53946
53947         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53948
53949 2008-05-07  Eric Blake  <ebb9@byu.net>
53950
53951         Support cross-compilation of <wctype.h>.
53952         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53953         AC_CACHE_CHECK.
53954
53955 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53956
53957         * build-aux/vc-list-files: Add support for bzr.
53958
53959 2008-05-03  Jim Meyering  <meyering@redhat.com>
53960
53961         avoid failed assertion with tight malloc
53962         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53963
53964 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53965
53966         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53967         are needed from arpa/inet.h.
53968         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53969         Reported by Bruno Haible.
53970
53971 2008-05-02  Jim Meyering  <meyering@redhat.com>
53972
53973         avoid compilation error on FreeBSD 6
53974         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53975
53976 2008-05-01  Jim Meyering  <meyering@redhat.com>
53977
53978         useless-if-before-free: correct --help's exit status description
53979         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53980         for one or more matches, etc.  Reported by Bruno Haible.
53981
53982         vc-list-files: make the stand-alone gnulib test work
53983         * modules/vc-list-files-tests (configure.ac):
53984         Define and AC_SUBST abs_aux_dir.
53985         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53986         $(abs_top_srcdir) to each script and having each of them
53987         duplicate the work of setting PATH, set PATH here, using
53988         the new variable, abs_aux_dir instead.
53989         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53990         * tests/test-vc-list-files-git.sh: Likewise.
53991         Reported by Bruno Haible.
53992
53993 2008-05-01  Bruno Haible  <bruno@clisp.org>
53994
53995         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53996         reallocation. Rename 'done' to 'found_delimiter'.
53997
53998 2008-05-01  Jim Meyering  <meyering@redhat.com>
53999
54000         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54001         * build-aux/vc-list-files: Use `...`, not $(...).
54002
54003 2008-04-30  Jim Meyering  <meyering@redhat.com>
54004
54005         add tests for vc-list-files
54006         * modules/vc-list-files-tests: New module.
54007         * tests/test-vc-list-files-cvs.sh: New file.
54008         * tests/test-vc-list-files-git.sh: New file.
54009
54010         avoid a warning from gcc
54011         * lib/getndelim2.c (IF_LINT): Define.
54012         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54013
54014         vc-list-files: work properly with build-aux/cvsu, too
54015         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54016         to all cvs-based clauses.
54017
54018         vc-list-files: work properly in the CVS+awk case, too
54019         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54020
54021         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54022         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54023         take more than one file argument, so .  Add quotes, just in case $dir
54024         ever contains a shell meta-character.  Prompted by Soren Hansen in
54025         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54026
54027 2008-04-29  Eric Blake  <ebb9@byu.net>
54028
54029         Optimize getndelim2 to use block operations when possible.
54030         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54031         freadseek, and memchr2.
54032         * lib/getndelim2.c (getndelim2): Use them for block reads.
54033
54034 2008-04-29  Bruno Haible  <bruno@clisp.org>
54035
54036         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54037         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54038         * modules/inet_ntop (Depends-on): Add extensions.
54039         * modules/inet_pton (Depends-on): Likewise.
54040         Reported by Simon Josefsson.
54041
54042 2008-04-29  Jim Meyering  <meyering@redhat.com>
54043
54044         When the is more than one match in a block, match all of them.
54045         * build-aux/useless-if-before-free: Iterate through each block
54046         until there are no more matches.
54047
54048         Fix broken useless-if-before-free script.
54049         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54050         the expression to match cast of argument to free-like function.
54051
54052 2008-04-29  Eric Blake  <ebb9@byu.net>
54053
54054         Use new header.
54055         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54056
54057 2008-04-29  Jim Meyering  <meyering@redhat.com>
54058
54059         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54060         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54061         by gnulib to exist and to declare e.g., inet_ntop.
54062         Don't include "inet_ntop.h", now removed.
54063
54064         * m4/arpa_inet_h.m4: Remove trailing blanks.
54065
54066 2008-04-29  Eric Blake  <ebb9@byu.net>
54067
54068         Silence valgrind on safe reads beyond potential array bounds.
54069         * lib/rawmemchr.valgrind: New file.
54070         * lib/strchrnul.valgrind: Likewise.
54071         * modules/rawmemchr (Files): Distribute new file.
54072         * modules/strchrnul (Files): Likewise.
54073         Suggested by Bruno Haible.
54074
54075 2008-04-29  Bruno Haible  <bruno@clisp.org>
54076
54077         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54078         (inet_ntop, inet_pton): Change portability warning's wording.
54079         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54080         Invoke gl_CHECK_NEXT_HEADERS.
54081         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54082         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54083         set ARPA_INET_H.
54084         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54085         * modules/arpa_inet (Description): No longer only for systems that
54086         lack it.
54087         (Depends-on): Add include_next.
54088         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54089         HAVE_ARPA_INET_H.
54090
54091 2008-04-29  Jim Meyering  <meyering@redhat.com>
54092
54093         * modules/mkdir (License): Re-license as LGPLv2+.
54094
54095 2008-04-29  Bruno Haible  <bruno@clisp.org>
54096
54097         * modules/rawmemchr (Maintainer): Set to Eric.
54098         * modules/strchrnul (Maintainer): Likewise.
54099
54100 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54101
54102         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54103         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54104
54105         * modules/arpa_inet (arpa/inet.h): Use them.
54106
54107 2008-04-28  Eric Blake  <ebb9@byu.net>
54108
54109         Test getndelim2.
54110         * modules/getndelim2-tests: New file.
54111         * tests/test-getndelim2.c: Likewise.
54112         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54113         stream.
54114         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54115
54116         * MODULES.html.sh: Document new module.
54117
54118 2008-04-20  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/c-stack.c (die): Use raise.
54121         * modules/c-stack (Depends-on): Add raise.
54122
54123 2008-04-28  Bruno Haible  <bruno@clisp.org>
54124
54125         Expect rpmatch to be declared.
54126         * lib/yesno.c (rpmatch): Remove declaration.
54127
54128         Declare rpmatch.
54129         * lib/stdlib.in.h (rpmatch): New declaration.
54130         * lib/rpmatch.c: Include <stdlib.h> first.
54131         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54132         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54133         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54134         HAVE_RPMATCH.
54135         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54136         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54137         (Include): Set to <stdlib.h>.
54138         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54139         HAVE_RPMATCH.
54140         * NEWS: Document the change.
54141
54142 2008-04-28  Bruno Haible  <bruno@clisp.org>
54143
54144         Change rpmatch to use nl_langinfo when appropriate.
54145         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54146         (N_): New macro.
54147         (localized_pattern): New function/macro.
54148         (try): Remove match, nomatch arguments. Copy the pattern into safe
54149         memory before caching it.
54150         (rpmatch): Use localized_pattern. Add translator comments.
54151         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54152         Suggested by Eric Blake.
54153         * modules/rpmatch (Depends-on): Add stdbool.
54154
54155 2008-04-28  Eric Blake  <ebb9@byu.net>
54156
54157         Add rawmemchr module, matching glibc.
54158         * modules/string (Makefile.am): New indicator.
54159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54160         * lib/string.in.h (rawmemchr): Declare when appropriate.
54161         * modules/rawmemchr: New file.
54162         * m4/rawmemchr.m4: Likewise.
54163         * lib/rawmemchr.c: Likewise.
54164         * modules/rawmemchr-tests: Likewise.
54165         * tests/test-rawmemchr.c: Likewise.
54166         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54167         module.
54168         * modules/strchrnul (Depends-on): Add rawmemchr.
54169         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54170
54171         Whitespace cleanup.
54172         * tests/test-strchrnul.c: Reindent.
54173         * lib/strchrnul.c: Likewise.
54174
54175         Optimize and test strchrnul.
54176         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54177         * modules/strchrnul-tests: New file.
54178         * tests/test-strchrnul.c: Likewise.
54179
54180         Remove intprops dependency.
54181         * modules/memchr (Depends-on): Remove intprops.
54182         * modules/memrchr (Depends-on): Likewise.
54183         * modules/memchr2 (Depends-on): Likewise.
54184         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54185         * lib/memrchr.c (__memrchr): Likewise.
54186         * lib/memrchr2.c (memchr2): Likewise.
54187         Reported by Simon Josefsson.
54188
54189 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54190
54191         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54192         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54193
54194 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54195
54196         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54197
54198         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54199
54200         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54201
54202         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54203         declarations.
54204         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54205
54206         * m4/inet_pton.m4: Don't check for header files.
54207
54208         * m4/inet_ntop.m4: Don't check for header files.
54209
54210 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54211
54212         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54213         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54214         trigger for cygwin).
54215         Reported by Bruno Haible  <bruno@clisp.org>.
54216
54217 2008-04-28  Bruno Haible  <bruno@clisp.org>
54218
54219         * doc/posix-functions/strdup.texi: Mention mingw problem.
54220
54221 2008-04-27  Bruno Haible  <bruno@clisp.org>
54222
54223         * modules/stat-time-tests (Depends-on): Add sleep.
54224         * tests/test-stat-time.c (force_unlink): New function.
54225         (cleanup): Use it.
54226         (test_mtime): Remove the ctime related tests.
54227         (test_ctime): New function, containing the ctime related tests.
54228         (main): Call test_ctime, except on native Windows platforms.
54229
54230 2008-04-27  Bruno Haible  <bruno@clisp.org>
54231
54232         * lib/rpmatch.c (rpmatch): Add some comments.
54233         Reported by James Youngman <jay@gnu.org>.
54234
54235 2008-04-27  Bruno Haible  <bruno@clisp.org>
54236
54237         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54238         quiet NaNs.
54239
54240 2008-04-27  Bruno Haible  <bruno@clisp.org>
54241
54242         Make test-yesno.sh work on mingw.
54243         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54244         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54245         (main): Set stdin to binary mode.
54246         * modules/yesno-tests (Depends-on): Add binary-io.
54247
54248 2008-04-27  Bruno Haible  <bruno@clisp.org>
54249
54250         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54251         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54252         argument that lie outside the IEEE 854 domain.
54253         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54254         (gl_ISFINITE): Use it.
54255         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54256
54257 2008-04-27  Bruno Haible  <bruno@clisp.org>
54258
54259         Allow local renaming in config.h.
54260         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54261
54262 2008-04-27  Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/memchr.c (__memchr): Change type of 'i'.
54265         * lib/memchr2.c (memchr2): Likewise.
54266
54267 2008-04-26  Eric Blake  <ebb9@byu.net>
54268         and Bruno Haible  <bruno@clisp.org>
54269
54270         Optimize and test memrchr.
54271         * modules/memrchr (Depends-on): Add intprops.
54272         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54273         * modules/memrchr-tests: New file.
54274         * tests/test-memrchr.c: New file.
54275
54276 2008-04-26  Bruno Haible  <bruno@clisp.org>
54277
54278         Add tentative support for DragonFly BSD.
54279         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54280         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54281         fp.
54282         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54283         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54284         * lib/fpurge.c (fpurge): Likewise.
54285         * lib/freadable.c (freaadable): Likewise.
54286         * lib/freadahead.c (freadahead): Likewise.
54287         * lib/freading.c (freading): Likewise.
54288         * lib/freadptr.c (freadptr): Likewise.
54289         * lib/freadseek.c (freadptrinc): Likewise.
54290         * lib/fseeko.c (fseeko): Likewise.
54291         * lib/fseterr.c (fseterr): Likewise.
54292         * lib/fwritable.c (fwritable): Likewise.
54293         * lib/fwriting.c (fwriting): Likewise.
54294
54295 2008-04-26  Bruno Haible  <bruno@clisp.org>
54296
54297         * lib/stdio-impl.h: New file.
54298         * lib/fbufmode.c: Include stdio-impl.h.
54299         (fbufmode): Use fp_, remove redundant #defines.
54300         * lib/fflush.c: Include stdio-impl.h.
54301         (clear_ungetc_buffer): Remove redundant #defines.
54302         * lib/fpurge.c: Include stdio-impl.h.
54303         (fpurge): Remove redundant #defines.
54304         * lib/freadable.c: Include stdio-impl.h.
54305         (freadable): Remove redundant #defines.
54306         * lib/freadahead.c: Include stdio-impl.h.
54307         (freadahead): Remove redundant #defines.
54308         * lib/freading.c: Include stdio-impl.h.
54309         (freading): Remove redundant #defines.
54310         * lib/freadptr.c: Include stdio-impl.h.
54311         (freadptr): Remove redundant #defines.
54312         * lib/freadseek.c: Include stdio-impl.h.
54313         (freadptrinc): Remove redundant #defines.
54314         * lib/fseeko.c: Include stdio-impl.h.
54315         (rpl_fseeko): Remove redundant #defines.
54316         * lib/fseterr.c: Include stdio-impl.h.
54317         (fseterr): Remove redundant #defines.
54318         * lib/fwritable.c: Include stdio-impl.h.
54319         (fwritable: Remove redundant #defines.
54320         * lib/fwriting.c: Include stdio-impl.h.
54321         (fwriting): Remove redundant #defines.
54322         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54323         * modules/fflush (Files): Likewise.
54324         * modules/fpurge (Files): Likewise.
54325         * modules/freadable (Files): Likewise.
54326         * modules/freadahead (Files): Likewise.
54327         * modules/freading (Files): Likewise.
54328         * modules/freadptr (Files): Likewise.
54329         * modules/freadseek (Files): Likewise.
54330         * modules/fseeko (Files): Likewise.
54331         * modules/fseterr (Files): Likewise.
54332         * modules/fwritable (Files): Likewise.
54333         * modules/fwriting (Files): Likewise.
54334
54335 2008-04-26  Bruno Haible  <bruno@clisp.org>
54336
54337         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54338         restore_seek_optimization, update_fpos_cache): New functions, extracted
54339         from rpl_fflush.
54340         (rpl_fflush): Use them.
54341         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54342         (gl_REPLACE_FFLUSH): Use it.
54343
54344 2008-04-26  Bruno Haible  <bruno@clisp.org>
54345
54346         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54347         on Solaris.
54348         * tests/test-xstrtoimax.sh: Likewise.
54349         * tests/test-xstrtoumax.sh: Likewise.
54350         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54351
54352 2008-04-26  Bruno Haible  <bruno@clisp.org>
54353
54354         * modules/memchr-tests: New file.
54355         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54356
54357 2008-04-26  Eric Blake  <ebb9@byu.net>
54358             Bruno Haible  <bruno@clisp.org>
54359
54360         * lib/memchr.c: Include intprops.h.
54361         (__memchr): Optimize parallel detection of matching bytes. Rename local
54362         variables. Add explanatory comments.
54363
54364 2008-04-26  Bruno Haible  <bruno@clisp.org>
54365
54366         Fix module 'memchr', broken since 2000-10-28.
54367         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54368
54369 2008-04-26  Bruno Haible  <bruno@clisp.org>
54370
54371         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54372         comments.
54373
54374 2008-04-25  Eric Blake  <ebb9@byu.net>
54375
54376         Use native fstatat on cygwin 1.7.0.
54377         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54378         first.
54379
54380 2008-04-23  Eric Blake  <ebb9@byu.net>
54381
54382         Improve memchr2 performance.
54383         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54384         NUL bytes.
54385         * modules/memchr2 (Depends-on): Use intprops.h.
54386
54387 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54388
54389         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54390         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54391         <blp@cs.stanford.edu>.
54392
54393 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54394
54395         * lib/arpa_inet.in.h: New file.
54396
54397         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54398         (Makefile.am): Sed in substitute header file.
54399
54400         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54401         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54402
54403         * modules/inet_ntop (configure.ac): Use
54404         gl_ARPA_INET_MODULE_INDICATOR.
54405
54406         * modules/inet_pton (configure.ac): Use
54407         gl_ARPA_INET_MODULE_INDICATOR.
54408
54409 2008-04-22  Jim Meyering  <meyering@redhat.com>
54410
54411         * modules/verify (License): Re-license as LGPLv2+.
54412
54413 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54414
54415         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54416         parameter to void* as per POSIX standard (MinGW uses char*).
54417
54418 2008-04-21  Bruno Haible  <bruno@clisp.org>
54419
54420         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54421         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54422         Define to replacements if REPLACE_ISWCNTRL is 1.
54423         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54424         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54425         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54426         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54427         what it fixes.
54428         * doc/posix-functions/iswalpha.texi: Likewise.
54429         * doc/posix-functions/iswblank.texi: Likewise.
54430         * doc/posix-functions/iswcntrl.texi: Likewise.
54431         * doc/posix-functions/iswdigit.texi: Likewise.
54432         * doc/posix-functions/iswgraph.texi: Likewise.
54433         * doc/posix-functions/iswlower.texi: Likewise.
54434         * doc/posix-functions/iswprint.texi: Likewise.
54435         * doc/posix-functions/iswpunct.texi: Likewise.
54436         * doc/posix-functions/iswspace.texi: Likewise.
54437         * doc/posix-functions/iswupper.texi: Likewise.
54438         * doc/posix-functions/iswxdigit.texi: Likewise.
54439         Reported by Alain Guibert.
54440
54441 2008-04-21  Bruno Haible  <bruno@clisp.org>
54442
54443         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54444         Patch by Alain Guibert.
54445
54446 2008-04-21  Bruno Haible  <bruno@clisp.org>
54447
54448         Fix test failures on mingw.
54449         * tests/test-xstrtol.c (print_no_progname): New function.
54450         (main): Install it in error_print_progname hook.
54451         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54452         * tests/test-xstrtoimax.sh: Likewise.
54453         * tests/test-xstrtoumax.sh: Likewise.
54454
54455 2008-04-21  Bruno Haible  <bruno@clisp.org>
54456
54457         Fix test failure on mingw.
54458         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54459
54460 2008-04-21  Bruno Haible  <bruno@clisp.org>
54461
54462         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54463         Actually assign a value.
54464
54465 2008-04-20  Bruno Haible  <bruno@clisp.org>
54466
54467         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54468         take 2.
54469         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54470         'canonicalize-lgpl' module is also used.
54471         * lib/canonicalize-lgpl.c: Undo last change.
54472         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54473
54474 2008-04-20  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54477         config.h. Provide _mkdir based fallback for mingw.
54478         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54479         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54480         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54481         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54482         rather than defining mkdir in config.h.
54483         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54484         (gl_SYS_STAT_H_DEFAULTS): New macro.
54485         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54486         HAVE_IO_H any more.
54487         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54488         HAVE_DECL_MKDIR and HAVE_IO_H.
54489
54490 2008-04-20  Bruno Haible  <bruno@clisp.org>
54491
54492         * lib/isapipe.c: Port to native Windows platforms.
54493
54494 2008-04-20  Bruno Haible  <bruno@clisp.org>
54495
54496         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54497
54498 2008-04-21  Eric Blake  <ebb9@byu.net>
54499
54500         Work around preprocessors that don't handle UINTMAX_MAX.
54501         * lib/memchr2.c (memchr2): Avoid embedded #if.
54502         Reported by Alain Guibert, fix suggested by Bruno Haible.
54503
54504 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54505
54506         * doc/posix-functions/strftime.texi (strftime): Explain better
54507         Windows incompatibility.  Suggested by Micah Cowan
54508         <micah@cowan.name>.
54509
54510 2008-04-20  Bruno Haible  <bruno@clisp.org>
54511
54512         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54513         unistr/u8-mblen.
54514
54515 2008-04-20  Bruno Haible  <bruno@clisp.org>
54516
54517         Fix test failure on platforms with non-GNU iconv.
54518         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54519         (U_TO_U8): Use it, rather than u16_to_u8.
54520         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54521         units at the end of the input string.
54522         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54523
54524 2008-04-20  Bruno Haible  <bruno@clisp.org>
54525
54526         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54527         when the resulting length is 0.
54528         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54529
54530 2008-04-20  Bruno Haible  <bruno@clisp.org>
54531
54532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54533         works.
54534         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54535
54536 2008-04-20  Bruno Haible  <bruno@clisp.org>
54537
54538         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54539         * modules/tsearch-tests (configure.ac): Test for initstate function.
54540
54541 2008-04-20  Bruno Haible  <bruno@clisp.org>
54542
54543         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54544         for nlink_t if missing.
54545         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54546
54547 2008-04-19  Bruno Haible  <bruno@clisp.org>
54548
54549         Work around snprintf bug on Linux libc5.
54550         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54552         gl_SNPRINTF_SIZE1.
54553         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54554         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54555         that test failed.
54556         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54557         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54558         * modules/snprintf (Files): Add m4/printf.m4.
54559         * modules/vsnprintf (Files): Likewise.
54560         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54561         * doc/posix-functions/vsnprintf.texi: Likewise.
54562
54563 2008-04-19  Bruno Haible  <bruno@clisp.org>
54564
54565         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54566         from 0.0058 to less than 10^-7.
54567
54568 2008-04-19  Bruno Haible  <bruno@clisp.org>
54569
54570         Fix rounding when a precision is given.
54571         * lib/vasnprintf.c (is_borderline): New function.
54572         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54573         9...9x.
54574         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54575         %e, %g.
54576         * tests/test-vasprintf-posix.c (test_function): Likewise.
54577         * tests/test-snprintf-posix.h (test_function): Likewise.
54578         * tests/test-sprintf-posix.h (test_function): Likewise.
54579         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54580         * tests/test-printf-posix.h (test_function): Likewise.
54581         * tests/test-printf-posix.output: Update.
54582         Reported by John Darrington <john@darrington.wattle.id.au> via
54583         Ben Pfaff <blp@cs.stanford.edu>.
54584
54585 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54586
54587         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54588         Suggested by Bruno Haible <bruno@clisp.org>.
54589
54590 2008-04-17  Bruno Haible  <bruno@clisp.org>
54591
54592         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54593         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54594         implementation.
54595         Patch by Bruce Merry <bmerry@gmail.com>.
54596
54597 2008-04-17  Simon Josefsson  <simon@josefsson.org>
54598
54599         * doc/posix-functions/strftime.texi (strftime): Mention that %e
54600         doesn't work under Windows.
54601
54602 2008-04-16  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
54605         New macros.
54606         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
54607         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
54608         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
54609         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
54610         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
54611         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
54612         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
54613         macros.
54614         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
54615         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54616         Northern Sotho, Uighur.
54617
54618 2008-04-16  Bruno Haible  <bruno@clisp.org>
54619
54620         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
54621         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
54622         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
54623         Reported by Daniel Bergström <daniel@octocode.com>.
54624
54625 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
54626             Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
54629         function.
54630         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
54631         New functions, mostly extracted from gl_locale_name_default.
54632         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
54633
54634 2008-04-16  Eric Blake  <ebb9@byu.net>
54635
54636         Adjust strtod detection to catch glibc 2.7 bug.
54637         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
54638         Reported by John Gatewood Ham.
54639
54640 2008-04-16  Bruno Haible  <bruno@clisp.org>
54641
54642         Add tentative support for Linux libc5.
54643         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
54644         * lib/fpurge.c (fpurge): Likewise.
54645         * lib/freadable.c (freadable): Likewise.
54646         * lib/freadahead.c (freadahead): Likewise.
54647         * lib/freading.c (freading): Likewise.
54648         * lib/freadptr.c (freadptr): Likewise.
54649         * lib/freadseek.c (freadptrinc): Likewise.
54650         * lib/fseeko.c (rpl_fseeko): Likewise.
54651         * lib/fseterr.c (fseterr): Likewise.
54652         * lib/fwritable.c (fwritable): Likewise.
54653         * lib/fwriting.c (fwriting): Likewise.
54654         Reported by Alain Guibert <alguibert+bts@free.fr>.
54655
54656 2008-04-15  Bruno Haible  <bruno@clisp.org>
54657
54658         * modules/mathl (configure.ac): Define module indicator.
54659
54660 2008-04-15  Bruno Haible  <bruno@clisp.org>
54661
54662         * lib/logl.c (logl): Remove unused variables.
54663
54664 2008-04-15  Bruno Haible  <bruno@clisp.org>
54665
54666         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
54667         fails.
54668
54669 2008-04-15  Bruno Haible  <bruno@clisp.org>
54670
54671         * lib/trim.c (trim2): Fix argument of isspace() macro.
54672
54673 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
54674
54675         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
54676         to 0.
54677         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
54678
54679 2008-04-14  Bruno Haible  <bruno@clisp.org>
54680
54681         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
54682         AC_LANG_PROGRAM argument.
54683         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
54684         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
54685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54686         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54687         * m4/math_h.m4 (gl_MATH_H): Likewise.
54688         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54689         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54690         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54691         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
54692         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54693         * m4/regex.m4 (gl_REGEX): Likewise.
54694         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
54695         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
54696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54697         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
54698         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54699         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54701         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54702
54703 2008-04-14  Jim Meyering  <meyering@redhat.com>
54704
54705         test-strtod: fix typos: s/abs/fabs/
54706         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
54707
54708 2008-04-13  Bruno Haible  <bruno@clisp.org>
54709
54710         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
54711         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
54712         module is also used and while not building the reloc-wrapper.
54713
54714 2008-04-13  Bruno Haible  <bruno@clisp.org>
54715
54716         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
54717
54718 2008-04-13  Bruno Haible  <bruno@clisp.org>
54719
54720         Fix AIX compilation failure introduced on 2008-04-02.
54721         * tests/test-frexp.c (exp): Undefine before redefining.
54722         * tests/test-frexpl.c (exp): Likewise.
54723
54724 2008-04-13  Bruno Haible  <bruno@clisp.org>
54725
54726         Work around a HP-UX stdio bug.
54727         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
54728         * tests/test-ftello.c (main): Likewise.
54729         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
54730         * doc/posix-functions/ftello.texi: Likewise.
54731
54732 2008-04-13  Bruno Haible  <bruno@clisp.org>
54733
54734         Make test-signbit pass on HP-UX/hppa.
54735         * tests/test-signbit.c (minus_zerol): New variable.
54736         (test_signbitl): Use it.
54737
54738 2008-04-13  Bruno Haible  <bruno@clisp.org>
54739
54740         Make truncl work on OSF/1 4.0.
54741         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54742         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54743         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54744         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
54745         HAVE_DECL_TRUNCL.
54746         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
54747         HAVE_DECL_TRUNCL.
54748         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
54749
54750 2008-04-13  Bruno Haible  <bruno@clisp.org>
54751
54752         * lib/unictype.h: Remove trailing comma from enumeration definitions.
54753
54754 2008-04-13  Bruno Haible  <bruno@clisp.org>
54755
54756         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
54757         expression, so as to avoid HP-UX 11 cc compiler bug.
54758
54759 2008-04-13  Bruno Haible  <bruno@clisp.org>
54760
54761         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
54762
54763 2008-04-13  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/git-merge-changelog.c: Remove empty declaration outside of
54766         functions.
54767
54768 2008-04-13  Bruno Haible  <bruno@clisp.org>
54769
54770         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
54771
54772 2008-04-13  Bruno Haible  <bruno@clisp.org>
54773
54774         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
54775         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
54776         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
54777         also if it exists but lacks definitions of the SHUT_* macros.
54778         * modules/sys_socket (Description): Update.
54779         Reported by Elbert Pol <e.pol@chello.nl>.
54780
54781 2008-04-13  Bruno Haible  <bruno@clisp.org>
54782
54783         * lib/localcharset.c (OS2): Don't redefine if already defined.
54784         Reported by Elbert Pol <e.pol@chello.nl>.
54785
54786 2008-04-13  Bruno Haible  <bruno@clisp.org>
54787
54788         * lib/binary-io.h [__EMX__]: Include <io.h>.
54789         Reported by Elbert Pol <e.pol@chello.nl>.
54790
54791 2008-04-12  Bruno Haible  <bruno@clisp.org>
54792
54793         * lib/fpucw.h: Enable the definitions also for x86_64.
54794         Needed for NetBSD/x86_64.
54795         Reported by Thomas Klausner <tk@giga.or.at>.
54796
54797 2008-04-12  Bruno Haible  <bruno@clisp.org>
54798
54799         * tests/test-strtod.c: Include isnand.h.
54800         (main): Use isnand instead of isnan.
54801         Reported by Jim Meyering.
54802
54803 2008-04-12  Bruno Haible  <bruno@clisp.org>
54804
54805         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
54806         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54807
54808 2008-04-12  Jim Meyering  <meyering@redhat.com>
54809
54810         * m4/math_h.m4 (gl_MATH_H): Fix typos.
54811
54812 2008-04-12  Bruno Haible  <bruno@clisp.org>
54813
54814         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
54815         Reported by Elbert Pol <e.pol@chello.nl>.
54816
54817 2008-04-12  Eric Blake  <ebb9@byu.net>
54818
54819         Work around Solaris 10 math.h bug.
54820         * m4/math_h.m4 (gl_MATH_H): Check for bug.
54821         (gl_MATH_H_DEFAULTS): Set up default.
54822         * modules/math (Makefile.am): Replace new indicators.
54823         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
54824         * tests/test-math.c (main): Test this.
54825         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
54826         * doc/posix-headers/math.texi (math.h): Mention bug.
54827         Reported by Nelson H. F. Beebe and Jim Meyering.
54828
54829 2008-04-11  Bruno Haible  <bruno@clisp.org>
54830
54831         Adapt to future versions of Apple GCC.
54832         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
54833         Reported by Peter O'Gorman <peter@pogma.com>.
54834
54835 2008-04-11  Bruno Haible  <bruno@clisp.org>
54836
54837         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
54838
54839 2008-04-11  Bruno Haible  <bruno@clisp.org>
54840
54841         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
54842
54843         * modules/getaddrinfo-tests (Makefile.am): Define
54844         test_getaddrinfo_LDADD.
54845
54846 2008-04-11  Bruno Haible  <bruno@clisp.org>
54847
54848         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
54849         (init): Fix syntax error.
54850         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
54851         is declared.
54852
54853 2008-04-11  Bruno Haible  <bruno@clisp.org>
54854
54855         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
54856         * modules/glob (Depends-on): Add stdbool.
54857
54858 2008-04-11  Bruno Haible  <bruno@clisp.org>
54859
54860         * lib/trim.c: Include <string.h>.
54861
54862 2008-04-11  Eric Blake  <ebb9@byu.net>
54863
54864         Avoid compile failure on OS/2.
54865         * lib/regex_internal.h (internal_function): Disable optimization
54866         on OS/2 (__EMX__), where it caused compiler error.
54867         Reported by Elbert Pol.
54868
54869 2008-04-11  Bruno Haible  <bruno@clisp.org>
54870
54871         Flush the standard error stream before aborting. Needed on mingw.
54872         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
54873         * tests/test-array_list.c (ASSERT): Likewise.
54874         * tests/test-array_oset.c (ASSERT): Likewise.
54875         * tests/test-avltree_list.c (ASSERT): Likewise.
54876         * tests/test-avltree_oset.c (ASSERT): Likewise.
54877         * tests/test-avltreehash_list.c (ASSERT): Likewise.
54878         * tests/test-binary-io.c (ASSERT): Likewise.
54879         * tests/test-byteswap.c (ASSERT): Likewise.
54880         * tests/test-c-ctype.c (ASSERT): Likewise.
54881         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
54882         * tests/test-c-strcasestr.c (ASSERT): Likewise.
54883         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
54884         * tests/test-c-strstr.c (ASSERT): Likewise.
54885         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
54886         * tests/test-canonicalize.c (ASSERT): Likewise.
54887         * tests/test-carray_list.c (ASSERT): Likewise.
54888         * tests/test-ceilf1.c (ASSERT): Likewise.
54889         * tests/test-ceilf2.c (ASSERT): Likewise.
54890         * tests/test-ceill.c (ASSERT): Likewise.
54891         * tests/test-count-one-bits.c (ASSERT): Likewise.
54892         * tests/test-fbufmode.c (ASSERT): Likewise.
54893         * tests/test-fflush2.c (ASSERT): Likewise.
54894         * tests/test-floorf1.c (ASSERT): Likewise.
54895         * tests/test-floorf2.c (ASSERT): Likewise.
54896         * tests/test-floorl.c (ASSERT): Likewise.
54897         * tests/test-fopen.c (ASSERT): Likewise.
54898         * tests/test-fpending.c (ASSERT): Likewise.
54899         * tests/test-fprintf-posix.c (ASSERT): Likewise.
54900         * tests/test-fpurge.c (ASSERT): Likewise.
54901         * tests/test-freadable.c (ASSERT): Likewise.
54902         * tests/test-freadahead.c (ASSERT): Likewise.
54903         * tests/test-freading.c (ASSERT): Likewise.
54904         * tests/test-freadptr.c (ASSERT): Likewise.
54905         * tests/test-freadptr2.c (ASSERT): Likewise.
54906         * tests/test-freadseek.c (ASSERT): Likewise.
54907         * tests/test-freopen.c (ASSERT): Likewise.
54908         * tests/test-frexp.c (ASSERT): Likewise.
54909         * tests/test-frexpl.c (ASSERT): Likewise.
54910         * tests/test-fseek.c (ASSERT): Likewise.
54911         * tests/test-fseeko.c (ASSERT): Likewise.
54912         * tests/test-fstrcmp.c (ASSERT): Likewise.
54913         * tests/test-ftell.c (ASSERT): Likewise.
54914         * tests/test-ftello.c (ASSERT): Likewise.
54915         * tests/test-func.c (ASSERT): Likewise.
54916         * tests/test-fwritable.c (ASSERT): Likewise.
54917         * tests/test-fwriting.c (ASSERT): Likewise.
54918         * tests/test-getdelim.c (ASSERT): Likewise.
54919         * tests/test-getline.c (ASSERT): Likewise.
54920         * tests/test-i-ring.c (ASSERT): Likewise.
54921         * tests/test-iconv-utf.c (ASSERT): Likewise.
54922         * tests/test-iconv.c (ASSERT): Likewise.
54923         * tests/test-isfinite.c (ASSERT): Likewise.
54924         * tests/test-isnand.c (ASSERT): Likewise.
54925         * tests/test-isnanf.c (ASSERT): Likewise.
54926         * tests/test-isnanl.h (ASSERT): Likewise.
54927         * tests/test-ldexpl.c (ASSERT): Likewise.
54928         * tests/test-linked_list.c (ASSERT): Likewise.
54929         * tests/test-linkedhash_list.c (ASSERT): Likewise.
54930         * tests/test-localename.c (ASSERT): Likewise.
54931         * tests/test-lseek.c (ASSERT): Likewise.
54932         * tests/test-mbscasecmp.c (ASSERT): Likewise.
54933         * tests/test-mbscasestr1.c (ASSERT): Likewise.
54934         * tests/test-mbscasestr2.c (ASSERT): Likewise.
54935         * tests/test-mbscasestr3.c (ASSERT): Likewise.
54936         * tests/test-mbscasestr4.c (ASSERT): Likewise.
54937         * tests/test-mbschr.c (ASSERT): Likewise.
54938         * tests/test-mbscspn.c (ASSERT): Likewise.
54939         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
54940         * tests/test-mbspbrk.c (ASSERT): Likewise.
54941         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
54942         * tests/test-mbsrchr.c (ASSERT): Likewise.
54943         * tests/test-mbsspn.c (ASSERT): Likewise.
54944         * tests/test-mbsstr1.c (ASSERT): Likewise.
54945         * tests/test-mbsstr2.c (ASSERT): Likewise.
54946         * tests/test-mbsstr3.c (ASSERT): Likewise.
54947         * tests/test-memchr2.c (ASSERT): Likewise.
54948         * tests/test-memmem.c (ASSERT): Likewise.
54949         * tests/test-open.c (ASSERT): Likewise.
54950         * tests/test-printf-frexp.c (ASSERT): Likewise.
54951         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54952         * tests/test-printf-posix.c (ASSERT): Likewise.
54953         * tests/test-quotearg.c (ASSERT): Likewise.
54954         * tests/test-rbtree_list.c (ASSERT): Likewise.
54955         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54956         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54957         * tests/test-round1.c (ASSERT): Likewise.
54958         * tests/test-roundf1.c (ASSERT): Likewise.
54959         * tests/test-roundl.c (ASSERT): Likewise.
54960         * tests/test-signbit.c (ASSERT): Likewise.
54961         * tests/test-sleep.c (ASSERT): Likewise.
54962         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54963         * tests/test-snprintf.c (ASSERT): Likewise.
54964         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54965         * tests/test-stat-time.c (ASSERT): Likewise.
54966         * tests/test-strcasestr.c (ASSERT): Likewise.
54967         * tests/test-strerror.c (ASSERT): Likewise.
54968         * tests/test-striconv.c (ASSERT): Likewise.
54969         * tests/test-striconveh.c (ASSERT): Likewise.
54970         * tests/test-striconveha.c (ASSERT): Likewise.
54971         * tests/test-strsignal.c (ASSERT): Likewise.
54972         * tests/test-strstr.c (ASSERT): Likewise.
54973         * tests/test-strtod.c (ASSERT): Likewise.
54974         * tests/test-trunc1.c (ASSERT): Likewise.
54975         * tests/test-trunc2.c (ASSERT): Likewise.
54976         * tests/test-truncf1.c (ASSERT): Likewise.
54977         * tests/test-truncf2.c (ASSERT): Likewise.
54978         * tests/test-truncl.c (ASSERT): Likewise.
54979         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54980         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54981         * tests/test-vasnprintf.c (ASSERT): Likewise.
54982         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54983         * tests/test-vasprintf.c (ASSERT): Likewise.
54984         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54985         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54986         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54987         * tests/test-vsnprintf.c (ASSERT): Likewise.
54988         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54989         * tests/test-wcwidth.c (ASSERT): Likewise.
54990         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54991         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54992         * tests/test-xvasprintf.c (ASSERT): Likewise.
54993         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54994         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54995         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54996         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54997         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54998         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54999         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55000         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55001         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55002         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55003         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55004         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55005         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55006         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55007         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55008         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55009         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55010         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55011         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55012         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55013         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55014         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55015         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55016         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55017         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55018         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55019         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55020         * tests/unictype/test-combining.c (ASSERT): Likewise.
55021         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55022         * tests/unictype/test-digit.c (ASSERT): Likewise.
55023         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55024         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55025         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55026         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55027         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55028         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55029         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55030         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55031         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55032         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55033         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55034         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55035         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55036         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55037         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55038         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55039         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55040         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55041         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55042         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55043         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55044         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55045         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55046         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55047         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55048         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55049         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55050         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55051         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55052         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55053         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55054         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55055         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55056         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55057         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55058         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55059         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55060         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55061         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55062         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55063         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55064         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55065         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55066         Reported by Eric Blake.
55067
55068 2008-04-11  Bruno Haible  <bruno@clisp.org>
55069
55070         * lib/wchar.in.h: Tweak comment.
55071
55072 2008-04-11  Bruno Haible  <bruno@clisp.org>
55073
55074         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55075         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55076         gl_COMMON.
55077         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55078
55079 2008-04-11  Bruno Haible  <bruno@clisp.org>
55080
55081         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55082
55083 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55084
55085         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55086         of attempting to use non-existing /dev/*random.  Based on patch
55087         from Adam Strzelecki <ono@java.pl> in
55088         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55089
55090 2008-04-08  Bruno Haible  <bruno@clisp.org>
55091
55092         Add tentative support for emx+gcc.
55093         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55094         * lib/fpurge.c (fpurge): Likewise.
55095         * lib/freadable.c (freadable): Likewise.
55096         * lib/freadahead.c (freadahead): Likewise.
55097         * lib/freading.c (freading): Likewise.
55098         * lib/freadptr.c (freadptr): Likewise.
55099         * lib/freadseek.c (freadptrinc): Likewise.
55100         * lib/fseeko.c (rpl_fseeko): Likewise.
55101         * lib/fseterr.c (fseterr): Likewise.
55102         * lib/fwritable.c (fwritable): Likewise.
55103         * lib/fwriting.c (fwriting): Likewise.
55104         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55105
55106 2008-04-09  Eric Blake  <ebb9@byu.net>
55107
55108         Avoid some autoconf warnings.
55109         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55110         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55111         * m4/afs.m4 (gl_AFS): Likewise.
55112         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55113         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55114         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55115         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55116         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55117         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55118         (AC_CHECK_DECLS_ONCE): Likewise.
55119         Rename file...
55120         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55121         gnulib-tool requires autoconf 2.59 or better.
55122         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55123
55124 2008-04-08  Eric Blake  <ebb9@byu.net>
55125
55126         Use 'git describe --match' if present (added in git 1.5.5).
55127         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55128         if possible.
55129
55130 2008-04-08  Bruno Haible  <bruno@clisp.org>
55131
55132         Add tentative support for OpenServer.
55133         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55134         _ptr, _cnt.
55135         * lib/fpurge.c (fpurge): Likewise.
55136         * lib/freadable.c (freadable): Likewise.
55137         * lib/freadahead.c (freadahead): Likewise.
55138         * lib/freading.c (freading): Likewise.
55139         * lib/freadptr.c (freadptr): Likewise.
55140         * lib/freadseek.c (freadptrinc): Likewise.
55141         * lib/fseeko.c (rpl_fseeko): Likewise.
55142         * lib/fseterr.c (fseterr): Likewise.
55143         * lib/fwritable.c (fwritable): Likewise.
55144         * lib/fwriting.c (fwriting): Likewise.
55145         Reported by Roger Cornelius <rac@tenzing.org> and
55146         Brian K. White <brian@aljex.com>.
55147
55148 2008-04-06  Jim Meyering  <meyering@redhat.com>
55149
55150         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55151
55152 2008-04-06  Bruno Haible  <bruno@clisp.org>
55153
55154         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55155         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55156         * tests/test-printf-posix.sh: Likewise.
55157         * tests/test-vfprintf-posix.sh: Likewise.
55158         * tests/test-vprintf-posix.sh: Likewise.
55159         * tests/test-xprintf-posix.sh: Likewise.
55160
55161 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55162
55163         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55164         hide error from 'ls', needed on OS/2.
55165         Report by Elbert Pol <elbert.pol@gmail.com>.
55166
55167 2008-04-04  Eric Blake  <ebb9@byu.net>
55168
55169         Make test-fseeko.c failures meaningful.
55170         * tests/test-fseeko.c: Print line number on failure.
55171         * tests/test-fseek.c: Likewise.
55172         Reported by Nelson H. F. Beebe.
55173
55174         Improve strtod bug detection check.
55175         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55176         required for Solaris 10.
55177         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55178
55179 2008-04-04  Bruno Haible  <bruno@clisp.org>
55180
55181         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55182         by m4/setenv.m4.
55183
55184 2008-04-03  Eric Blake  <ebb9@byu.net>
55185
55186         Ensure sane .version contents.
55187         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55188         version string.
55189         * build-aux/git-version-gen: Improve documentation.
55190
55191         Make GNU make output nicer.
55192         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55193         MAKECMDGOALS to enforce message for all command line targets.  Set
55194         srcdir for use in maint.mk.
55195
55196         Another maintainer tweak.
55197         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55198         a target that regenerates version.
55199
55200 2008-04-03  Jim Meyering  <meyering@redhat.com>
55201
55202         vc-list-files: don't cause coreutils "make po-check" failure
55203         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55204
55205 2008-04-03  Eric Blake  <ebb9@byu.net>
55206
55207         Allow VPATH usage of vc-list-files.
55208         * build-aux/vc-list-files (scriptversion): Add timestamp.
55209         (options): Add --help, --version, -C.
55210         (CVS): Support installed cvsu.
55211
55212 2008-04-02  Bruno Haible  <bruno@clisp.org>
55213
55214         Avoid some "statement with no effect" warnings from gcc.
55215         * tests/test-wctype.c (main): Explicitly ignore unused values.
55216         Reported by Jim Meyering.
55217
55218 2008-04-02  Jim Meyering  <meyering@redhat.com>
55219
55220         Avoid some warnings from "gcc -Wshadow".
55221         * tests/test-frexp.c (exp): Define to a different identifier.
55222         * tests/test-frexpl.c (exp): Likewise.
55223
55224 2008-04-03  Jim Meyering  <meyering@redhat.com>
55225
55226         bootstrap: remove dangling *.[ch] symlinks from lib
55227         * build-aux/bootstrap [dangling symlink removal]: Move find's
55228         -depth option to precede all others, to avoid a warning.
55229         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55230
55231 2008-04-02  Bruno Haible  <bruno@clisp.org>
55232
55233         Avoid some warnings from "gcc -Wshadow".
55234         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55235         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55236         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55237         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55238         Reported by Jim Meyering.
55239
55240 2008-04-01  Bruno Haible  <bruno@clisp.org>
55241
55242         Fix test to work on IRIX 6.5 with cc.
55243         * tests/test-math.c (numeric_equal): New function.
55244         (main): Use it.
55245
55246 2008-04-01  Bruno Haible  <bruno@clisp.org>
55247
55248         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55249
55250 2008-04-01  Bruno Haible  <bruno@clisp.org>
55251
55252         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55253         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55254         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55255         (Depends-on): Remove math.
55256
55257         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55258         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55259         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55260         (Depends-on): Remove math.
55261
55262         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55263         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55264         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55265         (Depends-on): Remove math.
55266         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55267         (Depends-on): Remove math.
55268
55269         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55270         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55271         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55272         (Depends-on): Remove math.
55273         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55274         (Depends-on): Remove math.
55275
55276         * tests/test-round1.c: Include nan.h.
55277         (main): Use NaNd instead of NAN.
55278         * modules/round-tests (Files): Add tests/nan.h.
55279
55280         * tests/test-trunc1.c: Include nan.h.
55281         (main): Use NaNd instead of NAN.
55282         * modules/trunc-tests (Files): Add tests/nan.h.
55283
55284         * tests/test-roundf1.c: Include nan.h.
55285         (main): Use NaNf instead of NAN.
55286         * modules/roundf-tests (Files): Add tests/nan.h.
55287
55288         * tests/test-truncf1.c: Include nan.h.
55289         (main): Use NaNf instead of NAN.
55290         * modules/truncf-tests (Files): Add tests/nan.h.
55291
55292         * tests/test-ceilf1.c: Include nan.h.
55293         (main): Use NaNf instead of NAN.
55294         * modules/ceilf-tests (Files): Add tests/nan.h.
55295
55296         * tests/test-floorf1.c: Include nan.h.
55297         (main): Use NaNf instead of NAN.
55298         * modules/floorf-tests (Files): Add tests/nan.h.
55299
55300         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55301         (main): Use NaNf instead of NAN.
55302         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55303
55304         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55305         (main): Use NaNd instead of NAN.
55306         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55307
55308         * tests/test-frexp.c: Include nan.h.
55309         (main): Use NaNd instead of NAN.
55310         * modules/frexp-tests (Files): Add tests/nan.h.
55311
55312         * lib/isnan.c: Don't include <math.h>.
55313         (FUNC): Don't use NAN macro.
55314         * modules/isnand-nolibm (Depends-on): Remove math.
55315         * modules/isnanf-nolibm (Depends-on): Remove math.
55316         * modules/isnanl (Depends-on): Remove math.
55317         * modules/isnanl-nolibm (Depends-on): Remove math.
55318
55319         * tests/nan.h: New file.
55320
55321 2008-04-01  Eric Blake  <ebb9@byu.net>
55322
55323         Fix typos.
55324         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55325         values to be the right type.
55326
55327         For now, cater to gnulib strtod inaccuracies.
55328         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55329         fractional results.  While not as nice from a QoI perspective, it
55330         is a quicker patch than correctly implementing decimal to binary
55331         rounding.
55332
55333 2008-03-31  Eric Blake  <ebb9@byu.net>
55334
55335         Guarantee a definition of NAN.
55336         * lib/math.in.h (NAN): Define if missing.
55337         * tests/test-math.c (main): Test it.
55338         * doc/posix-headers/math.texi (math.h): Document this.
55339         * lib/isnan.c (rpl_isnand): Use it.
55340         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55341         * tests/test-floorf1.c (NaN): Likewise.
55342         * tests/test-frexp.c (NaN): Likewise.
55343         * tests/test-isnand.c (NaN): Likewise.
55344         * tests/test-isnanf.c (NaN): Likewise.
55345         * tests/test-round1.c (NaN): Likewise.
55346         * tests/test-roundf1.c (NaN): Likewise.
55347         * tests/test-snprintf-posix.h (NaN): Likewise.
55348         * tests/test-sprintf-posix.h (NaN): Likewise.
55349         * tests/test-trunc1.c (NaN): Likewise.
55350         * tests/test-truncf1.c (NaN): Likewise.
55351         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55352         * tests/test-vasprintf-posix.c (NaN): Likewise.
55353         * modules/isnand-nolibm (Depends-on): Add math.
55354         * modules/isnanf-nolibm (Depends-on): Likewise.
55355         * modules/isnanl (Depends-on): Likewise.
55356         * modules/isnanl-nolibm (Depends-on): Likewise.
55357         * modules/snprintf-posix-tests (Depends-on): Likewise.
55358         * modules/sprintf-posix-tests (Depends-on): Likewise.
55359         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55360         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55361         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55362         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55363
55364 2008-03-31  Bruno Haible  <bruno@clisp.org>
55365
55366         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55367         * doc/posix-functions/strtod.texi: Likewise.
55368
55369 2008-03-31  Bruno Haible  <bruno@clisp.org>
55370
55371         * tests/test-strtod.c (main): Don't use C99 syntax.
55372
55373 2008-03-31  Bruno Haible  <bruno@clisp.org>
55374
55375         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55376         Reported by Eric Blake.
55377
55378 2008-03-31  Jim Meyering  <meyering@redhat.com>
55379
55380         Don't compare actual signbit return values.
55381         * tests/test-strtod.c (main): Rather, compare only their
55382         zero/non-zero nature.
55383
55384 2008-03-31  Eric Blake  <ebb9@byu.net>
55385
55386         More strtod documentation.
55387         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55388         failures as distinct bugs.
55389
55390 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55393         Problem reported by Erik Benada in
55394         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55395
55396 2008-03-30  Bruno Haible  <bruno@clisp.org>
55397
55398         * tests/test-strtod.c: Add comments about which assertion fails on which
55399         platform.
55400         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55401
55402 2008-03-30  Eric Blake  <ebb9@byu.net>
55403
55404         Test signbit behavior on zeros.
55405         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55406         (test_signbitd, test_signbitl): Likewise.
55407
55408         More strtod touchups.
55409         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55410         sign of negative underflow, for now.  Use .5, not .1.
55411         * doc/posix-functions/strtod.texi (strtod): Mention these
55412         limitations.
55413         Reported by Jim Meyering.
55414
55415 2008-03-30  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55418         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55419
55420 2008-03-30  Bruno Haible  <bruno@clisp.org>
55421
55422         Avoid failure when attempting to return empty iconv results on some
55423         platforms.
55424         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55425         allocation, don't report ENOMEM when the resulting string is empty.
55426
55427 2008-03-30  Bruno Haible  <bruno@clisp.org>
55428
55429         Fix buffer overrun.
55430         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55431         Don't consider the width for tmp_length. Check count against tmp_length
55432         before doing the padding. Ensure enough allocation during padding.
55433
55434 2008-03-30  Eric Blake  <ebb9@byu.net>
55435
55436         strtod touchups.
55437         * lib/strtod.c (strtod): Avoid compiler warnings.
55438         Reported by Jim Meyering.
55439
55440 2008-03-30  Bruno Haible  <bruno@clisp.org>
55441
55442         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55443         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55444         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55445         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55446         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55447         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55448         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55449         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55450
55451         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55452         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55453         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55454         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55455         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55456         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55457         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55458         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55459
55460         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55461         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55462         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55463         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55464         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55465         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55466         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55467         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55468
55469         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55470         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55471
55472         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55473         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55474
55475         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55476         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55477
55478         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55479         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55480         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55481
55482         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55483         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55484         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55485
55486         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55487         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55488         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55489
55490         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55491         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55492         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55493
55494         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55495         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55496         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55497         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55498         (Depends-on): Add EOVERFLOW.
55499         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55500         (Depends-on): Add EOVERFLOW.
55501         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55502         (Depends-on): Add EOVERFLOW.
55503         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55504         (Depends-on): Add EOVERFLOW.
55505         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55506         (Depends-on): Add EOVERFLOW.
55507         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55508         (Depends-on): Add EOVERFLOW.
55509         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55510         (Depends-on): Add EOVERFLOW.
55511         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55512         (Depends-on): Add EOVERFLOW.
55513
55514         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55515         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55516         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55517
55518         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55519         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55520         * modules/snprintf (Depends-on): Add EOVERFLOW.
55521
55522         * lib/poll.c (EOVERFLOW): Remove fallback.
55523         * modules/poll (Depends-on): Add EOVERFLOW.
55524
55525         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55526         * modules/getugroups (Depends-on): Add EOVERFLOW.
55527
55528         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55529         * modules/getdelim (Depends-on): Add EOVERFLOW.
55530
55531         * lib/ftell.c (EOVERFLOW): Remove fallback.
55532         * modules/ftell (Depends-on): Add EOVERFLOW.
55533
55534         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55535         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55536         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55537
55538         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55539
55540         * modules/EOVERFLOW-tests: New file.
55541         * tests/test-EOVERFLOW.c: New file.
55542
55543         * modules/EOVERFLOW: New file.
55544         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55545
55546 2008-03-30  Bruno Haible  <bruno@clisp.org>
55547
55548         Fix bug introduced on 2007-06-10.
55549         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55550         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55551
55552 2008-03-30  Bruno Haible  <bruno@clisp.org>
55553
55554         Improve freadseek's efficiency after ungetc.
55555         * lib/freadseek.c: Include freadahead.h.
55556         (freadptrinc): New function, extracted from freadseek.
55557         (freadseek): Use it in a loop. Use freadahead to determine the number
55558         of loop iterations.
55559         * modules/freadseek (Depends-on): Add freadahead.
55560         (configure.ac): Require AC_C_INLINE.
55561
55562 2008-03-30  Bruno Haible  <bruno@clisp.org>
55563
55564         * lib/freadseek.c (freadseek): Don't ignore the return value of
55565         freadptr.
55566
55567 2008-03-29  Eric Blake  <ebb9@byu.net>
55568
55569         Add hex float support.
55570         * modules/strtod (Depends-on): Add c-ctype.
55571         (Link): Mention POW_LIB.
55572         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55573         whitespace between 'e' and exponent.
55574         * tests/test-strtod.c (main): Enable hex float tests.
55575         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55576         now provides.
55577
55578         Document various strtod bugs, with some fixes.
55579         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55580         "-0x", "inf", "nan", and hex constants.
55581         * doc/posix-functions/atof.texi (atof): Likewise.
55582         * modules/stdlib (Makefile.am): Support strtod.
55583         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55584         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55585         detect additional strtod bugs.
55586         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55587         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55588         bool where appropriate.  Parse 'inf' and 'nan'.
55589         * tests/test-strtod.c: New file.
55590         * modules/strtod (Depends-on): Add stdbool, stdlib.
55591         (configure.ac): Turn on module indicator.
55592         * modules/strtod-tests: New module.
55593
55594 2008-03-29  Eric Blake  <ebb9@byu.net>
55595
55596         Fix ftell on mingw.
55597         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
55598         * modules/ftell-tests (Depends-on): Add binary-io.
55599         * modules/ftello-tests (Depends-on): Likewise.
55600         * tests/test-ftell.c (main): Enhance test to cover behavior after
55601         ungetc.  Enforce binary mode.
55602         * tests/test-ftello.c (main): Likewise.
55603
55604         Pass test-freadseek on cygwin.
55605         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
55606         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
55607         ungetc buffer.
55608
55609         * tests/test-fflush2.c (main): Fix typo.
55610
55611 2008-03-29  Bruno Haible  <bruno@clisp.org>
55612
55613         * tests/test-fflush2.c (main): Temporarily disable the contents of
55614         this test.
55615         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
55616         Reported by Eric Blake.
55617
55618 2008-03-28  Simon Josefsson  <simon@josefsson.org>
55619
55620         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
55621         (GC_SHA224_DIGEST_SIZE): Add.
55622
55623         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
55624         (gc_hash_digest_length): Likewise.
55625         (gc_hash_buffer): Likewise.
55626
55627 2008-03-25  Bruno Haible  <bruno@clisp.org>
55628
55629         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
55630         detail which gettext release to use.
55631         Reported by Simon Josefsson.
55632
55633 2008-03-26  Jim Meyering  <meyering@redhat.com>
55634
55635         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
55636         * modules/gnumakefile (clean-GNUmakefile): Also, use
55637         test ... && ... || : syntax rather than if-then ... fi.
55638
55639         gnumakefile: Don't double-quote-expand $(VPATH) value.
55640         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
55641
55642 2008-03-24  Eric Blake  <ebb9@byu.net>
55643
55644         Alter GNUmakefile to install into top directory.
55645         * modules/maintainer-makefile: Split, and add dependency...
55646         * modules/gnumakefile: to this new module.
55647         * build-aux/GNUmakefile: Move...
55648         * top/GNUmakefile: ...here.
55649         * build-aux/maint.mk: Move...
55650         * top/maint.mk: ...here.
55651         * MODULES.html.sh (Support for maintaining...): Document new
55652         module.
55653
55654 2008-03-23  Bruno Haible  <bruno@clisp.org>
55655
55656         * gnulib-tool: New options --vc-files, --no-vc-files.
55657         (func_usage): Document them.
55658         (vc_files): New variable.
55659         (func_import): Consider vc_files.
55660         (func_create_testdir): Set vc_files to empty.
55661         Suggested by Jim Meyering and Karl Berry.
55662
55663 2008-03-23  Bruno Haible  <bruno@clisp.org>
55664
55665         Fix regex compilation error on HP-UX 11.
55666         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
55667         * modules/regex (Files): Add m4/mbstate_t.m4.
55668         Reported by Ton Voon <ton.voon@altinity.com>.
55669
55670 2008-03-23  Bruno Haible  <bruno@clisp.org>
55671
55672         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
55673
55674 2008-03-23  Eric Blake  <ebb9@byu.net>
55675             Bruno Haible  <bruno@clisp.org>
55676
55677         Install files from top/ in the destination directory.
55678         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55679         augmentation also for the files from top/.
55680         (func_import, func_create_testdir): Rewrite file names:
55681         top/filename -> filename.
55682
55683 2008-03-23  Bruno Haible  <bruno@clisp.org>
55684
55685         Tweak "gnulib --version" output.
55686         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
55687
55688 2008-03-23  Bruno Haible  <bruno@clisp.org>
55689
55690         Tweak "gnulib --version" output.
55691         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
55692         rather than contents of ChangeLog, when possible.
55693
55694 2008-03-21  Eric Blake  <ebb9@byu.net>
55695
55696         More --version tweaks.
55697         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
55698         date of last ChangeLog entry.
55699
55700 2008-03-21  Jim Meyering  <meyering@redhat.com>
55701
55702         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
55703
55704 2008-03-20  Eric Blake  <ebb9@byu.net>
55705
55706         VPATH fix.
55707         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
55708
55709 2008-03-20  Simon Josefsson  <simon@josefsson.org>
55710
55711         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
55712         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
55713
55714 2008-03-20  Eric Blake  <ebb9@byu.net>
55715
55716         Sync GNUmakefile with coreutils.
55717         * build-aux/GNUmakefile (have-Makefile): Rename...
55718         (_have-Makefile): ...to this, for namespace consideration.
55719         (GNUmakefile.cfg): Include, if present.
55720         (_autoreconf): Define a default.
55721         (_is-dist-target): New rule for rebuilds to pick up intra-release
55722         version.
55723         (maint-cfg.mk): Rename...
55724         (cfg.mk): ...to this.
55725
55726 2008-03-18  Jim Meyering  <meyering@redhat.com>
55727
55728         New script and module: mktempd
55729         * MODULES.html.sh (maint+release support): Add mktempd.
55730         * build-aux/mktempd: New file.
55731         * modules/mktempd: New file.
55732
55733 2008-03-15  Jim Meyering  <meyering@redhat.com>
55734
55735         Undo last change.
55736         * lib/sha1.c, lib/md5.c: 63 != ~63.
55737         Reported by Andreas Schwab.
55738
55739         sha1.c, md5.c: Hoist a redundant expression.
55740         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55741         "ctx->buflen" only once, before calling *_process_block.
55742         * lib/md5.c (md5_process_bytes): Likewise.
55743
55744 2008-03-14  Eric Blake  <ebb9@byu.net>
55745
55746         Bump copyright year in files generated by gnulib-tool.
55747         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
55748         gnulib-tool, rather than hard-coding it.
55749
55750         Fix 'gnulib-tool --version' output to work with git.
55751         * gnulib-tool (func_gnulib_dir): New function, extracted from...
55752         (startup): ...here.
55753         (func_version): Use it to invoke git-version-gen, rather than
55754         relying on CVS keyword expansion.  Modernize wording.
55755         (cvsdatestamp, last_checkin_date, version): Kill unused
55756         variables.
55757
55758 2008-03-12  Jim Meyering  <meyering@redhat.com>
55759
55760         Recognize optional cast of the argument to free.
55761         * build-aux/useless-if-before-free: Update regexps.
55762
55763         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
55764
55765 2008-03-11  Bruno Haible  <bruno@clisp.org>
55766
55767         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
55768         by a single package.
55769         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
55770         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
55771         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
55772         Reported by Sam Steingold <sds@gnu.org>.
55773
55774 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55775
55776         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
55777         repositories.
55778
55779 2008-03-11  Bruno Haible  <bruno@clisp.org>
55780
55781         Avoid conflicts between local macro definitions.
55782         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55783         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
55784
55785 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
55786             Bruno Haible  <bruno@clisp.org>
55787
55788         Make va_copy work with some version of xlc on AIX 5.1.
55789         * lib/stdarg.in.h: New file.
55790         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
55791         On AIX, use a <stdarg.h> file substitute.
55792         * modules/stdarg (Files): Add lib/stdarg.in.h.
55793         (Depends-on): Add include_next.
55794         (Makefile.am): Build a stdarg.h substitute if requested.
55795         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
55796
55797 2008-03-10  Bruno Haible  <bruno@clisp.org>
55798
55799         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
55800         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55801         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55802
55803 2008-03-10  Bruno Haible  <bruno@clisp.org>
55804
55805         * modules/stdlib (Depends-on): Add include_next, remove
55806         absolute-header.
55807
55808 2008-03-09  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/freadahead.h (freadahead): Document more precisely.
55811         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
55812         the sum of both buffer sizes.
55813         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
55814         * NEWS: Document the change.
55815
55816 2008-03-09  Bruno Haible  <bruno@clisp.org>
55817
55818         Extend freadptr to return also the buffer size.
55819         * lib/freadptr.h (freadptr): Add sizep argument.
55820         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
55821         (freadptr): Add sizep argument. Determine buffer size like freadahead
55822         does.
55823         * tests/test-freadptr.c: Don't include freadahead.h.
55824         (main): Adapt for new calling convention of freadptr.
55825         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
55826         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
55827         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
55828         tests/test-freadptr2.sh.
55829         (Depends): Remove freadahead.
55830         (TESTS): Add test-freadptr2.sh.
55831         (check_PROGRAMS): Add test-freadptr2.
55832
55833 2008-03-09  Bruno Haible  <bruno@clisp.org>
55834
55835         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
55836         Report and solution by Simon Josefsson.
55837
55838 2008-03-06  Bruno Haible  <bruno@clisp.org>
55839
55840         Make fflush after ungetc work on BSD platforms.
55841         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
55842         * tests/test-fflush2.c: New file.
55843         * tests/test-fflush2.sh: New file.
55844         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
55845         tests/test-fflush2.c.
55846         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
55847         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
55848
55849 2008-03-06  Eric Blake  <ebb9@byu.net>
55850
55851         Likewise for ftello.
55852         * modules/ftello (Dependencies): Add extensions.
55853         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
55854
55855 2008-03-06  Bruno Haible  <bruno@clisp.org>
55856
55857         * modules/fseeko (Dependencies): Add extensions.
55858         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
55859         Needed on glibc systems.
55860
55861 2008-03-06  Bruno Haible  <bruno@clisp.org>
55862
55863         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
55864         email address.
55865         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55866
55867 2008-03-06  Bruno Haible  <bruno@clisp.org>
55868
55869         * users.txt: Add libgnupdf.
55870
55871 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55872
55873         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
55874         (Header File Substitutes, Function Substitutes,
55875         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
55876         (Build robot for gnulib): Fix typo.
55877
55878 2008-03-06  Bruno Haible  <bruno@clisp.org>
55879
55880         * doc/gnulib-tool.texi (VCS Issues): Small updates.
55881         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55882
55883 2008-03-06  Bruno Haible  <bruno@clisp.org>
55884
55885         * doc/func.texi: New file, extracted from doc/gnulib.texi.
55886         * doc/gnulib.texi: Include it.
55887
55888 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55889
55890         * modules/func (License): Change license to unlimited; there was
55891         no LGPL parts in the module anyway.
55892
55893 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55894
55895         * modules/__func__: Renamed to modules/func.
55896         * modules/__func__-tests: Renamed to modules/func-tests.
55897         * tests/test-__func__.c: Renamed to tests/test-func.c.
55898         * m4/__func__.m4: Renamed to m4/func.m4.
55899         * doc/gnulib.texi (__func__): Section renamed to func.
55900         Suggested by Eric Blake <ebb9@byu.net>.
55901
55902 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55903
55904         * doc/gnulib.texi (__func__): Use C99 terminology when talking
55905         about __func__.  Make example self-contained.  Suggested by Eric
55906         Blake <ebb9@byu.net>.
55907
55908         * tests/test-__func__.c (main): Avoid extraneous () around __func.
55909         Suggested by Eric Blake <ebb9@byu.net>.
55910
55911 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55912
55913         * modules/__func__: New file.
55914         * modules/__func__-tests: New file.
55915         * tests/test-__func__.c: New file.
55916         * m4/__func__.m4: New file.
55917         * doc/gnulib.texi (__func__): Document __func__ module.
55918
55919 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55920
55921         * modules/byteswap (License): Re-license as LGPLv2+.
55922
55923 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55924
55925         * doc/Makefile: Add pdf target.
55926
55927 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55928
55929         * modules/inline (License): Use 'unlimited', since there are only
55930         *.m4 files in this module.
55931
55932 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55933             Bruno Haible  <bruno@clisp.org>
55934
55935         Add support for HP C 7.1 on OpenVMS 8.3.
55936         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
55937
55938 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55939
55940         Update VMS specifics.
55941         * lib/getopt.c [VMS]: Remove include of unixlib.h.
55942
55943 2008-03-02  Jim Meyering  <meyering@redhat.com>
55944
55945         Remove the last dependency on the "free" module.
55946         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55947         Reported by Bob Proulx.
55948
55949         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55950
55951         Remove useless "if" tests before free.  Deprecate "free" module.
55952         * doc/posix-functions/free.texi: Mention that this
55953         module is no longer useful.
55954         * modules/free (Notice): Say this module is obsolete.
55955         * modules/readutmp (Depends-on): Remove free.
55956         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55957         * lib/putenv.c (putenv): Likewise.
55958         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55959         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55960         * tests/test-c-strcasestr.c (main): Likewise.
55961         * tests/test-c-strstr.c (main): Likewise.
55962         * tests/test-mbscasestr1.c (main): Likewise.
55963         * tests/test-mbscasestr2.c (main): Likewise.
55964         * tests/test-mbsstr1.c (main): Likewise.
55965         * tests/test-mbsstr2.c (main): Likewise.
55966         * tests/test-memmem.c (main): Likewise.
55967         * tests/test-strcasestr.c (main): Likewise.
55968         * tests/test-striconv.c (main): Likewise.
55969         * tests/test-striconveh.c (main): Likewise.
55970         * tests/test-striconveha.c (main): Likewise.
55971         * tests/test-strstr.c (main): Likewise.
55972
55973         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55974
55975         bootstrap: sync from coreutils again
55976         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55977
55978 2008-03-01  Jim Meyering  <meyering@redhat.com>
55979
55980         bootstrap: sync from coreutils
55981         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55982         also when the target doesn't exist.
55983
55984 2008-03-01  Eric Blake  <ebb9@byu.net>
55985
55986         Fix bugs in last patch.
55987         * lib/memchr2.c (memchr2): Fix typo.
55988         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55989         extension.
55990         Reported by Bruce Korb.
55991
55992         New module 'memchr2'.
55993         * modules/memchr2: New file.
55994         * modules/memchr2-tests: Likewise.
55995         * lib/memchr2.h: Likewise.
55996         * lib/memchr2.c: Likewise, based on memchr.c.
55997         * tests/test-memchr2.c: New test.
55998         * MODULES.html.sh (String handling): Add memchr2.
55999
56000 2008-02-29  Bruno Haible  <bruno@clisp.org>
56001
56002         * modules/freadseek-tests: New file.
56003         * tests/test-freadseek.sh: New file.
56004         * tests/test-freadseek.c: New file.
56005
56006         New module 'freadseek'.
56007         * modules/freadseek: New file.
56008         * lib/freadseek.h: New file.
56009         * lib/freadseek.c: New file.
56010         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56011
56012 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56013
56014         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56015         wydawca.
56016
56017         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56018         program_invocation_name and program_invocation_short_name are
56019         present.
56020
56021 2008-02-28  Bruno Haible  <bruno@clisp.org>
56022
56023         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56024         * tests/test-freadptr.sh: Also test non-seekable stdin.
56025
56026 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56027
56028         * build-aux/bootstrap (source_base, m4_base)
56029         (doc_base, tests_base): New variables.
56030         (gnulib_tool_options): Do not hardcode base directories, use
56031         the above variables instead.
56032
56033 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56034
56035         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56036
56037 2008-02-28  Bruno Haible  <bruno@clisp.org>
56038
56039         * modules/freadptr-tests: New file.
56040         * tests/test-freadptr.sh: New file.
56041         * tests/test-freadptr.c: New file.
56042
56043         New module 'freadptr'.
56044         * modules/freadptr: New file.
56045         * lib/freadptr.h: New file.
56046         * lib/freadptr.c: New file.
56047         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56048
56049 2008-02-26  Karl Berry  <karl@freefriends.org>
56050
56051         Sync from Libtool:
56052         * libltdl/argz.c (argz_add, argz_count): New functions.
56053         * libltdl/argz.in.h: Declare them.
56054         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56055
56056 2008-02-22  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56059         is a pointer type.  Needed for HP-UX 10.
56060         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56061         * doc/posix-functions/gmtime_r.texi: Likewise.
56062         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56063
56064 2008-02-24  Bruno Haible  <bruno@clisp.org>
56065
56066         * modules/environ-tests: New file.
56067         * tests/test-environ.c: New file.
56068
56069         New module 'environ'.
56070         * modules/environ: New file.
56071         * lib/unistd.in.h (environ): New declaration.
56072         * m4/environ.m4: New file.
56073         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56074         after use.
56075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56076         HAVE_DECL_ENVIRON.
56077         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56078         HAVE_DECL_ENVIRON.
56079         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56080         wrong claim that 'environ' is missing on some systems.
56081         * modules/execute (Depends-on): Add environ.
56082         * lib/execute.c (environ): Remove fallback declaration.
56083         * modules/pipe (Depends-on): Add environ.
56084         * lib/pipe.c (environ): Remove fallback declaration.
56085         * modules/setenv (Depends-on): Add environ.
56086         * lib/setenv.c (environ): Remove fallback declaration.
56087         * modules/unsetenv (Depends-on): Add environ.
56088         * lib/unsetenv.c (environ): Remove fallback declaration.
56089         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56090         m4/environ.m4.
56091         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56092         (gl_PREREQ_UNSETENV): Likewise.
56093
56094 2008-02-24  Bruno Haible  <bruno@clisp.org>
56095
56096         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56097
56098 2008-02-20  Bob Proulx  <bob@proulx.com>
56099
56100         Enable use of older two part flavor 'git describe'.
56101         * build-aux/git-version-gen: If using the older two part flavor of
56102         git version then recreate the third part now present in the
56103         newer three part flavor of git describe.
56104
56105 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56106
56107         * lib/fts.c (fts_build): Typo correction to comment.
56108
56109 2008-02-17  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56112         generating no-op conflicts.
56113
56114 2008-02-17  Bruno Haible  <bruno@clisp.org>
56115
56116         Speed up by 10%.
56117         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56118         result_entries, rather than an index-based loop.
56119
56120 2008-02-17  Bruno Haible  <bruno@clisp.org>
56121
56122         Speed up by 25%.
56123         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56124         'hashcode_cached'.
56125         (entry_create): New function.
56126         (entry_hashcode): Use the cached hashcode if possible.
56127         (read_changelog_file, try_split_merged_entry): Use entry_create.
56128
56129 2008-02-17  Bruno Haible  <bruno@clisp.org>
56130
56131         Speed up from O(n^2) to O(n) for long ChangeLog files.
56132         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56133         (read_changelog_file): Change implementation of entries_reversed list
56134         to rbtreehash.
56135         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56136
56137 2008-02-17  Bruno Haible  <bruno@clisp.org>
56138
56139         New option --split-merged-entry.
56140         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56141         (find_paragraph_end, try_split_merged_entry): New functions.
56142         (long_options): Add option --split-merged-entry.
56143         (usage): Document option --split-merged-entry.
56144         (main): Implement option --split-merged-entry.
56145         Reported by Eric Blake.
56146
56147 2008-02-17  Bruno Haible  <bruno@clisp.org>
56148
56149         * lib/git-merge-changelog.c: Include c-strstr.h.
56150         (main): Support the "git pull --rebase" situation.
56151         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56152         Reported by Eric Blake.
56153
56154 2008-02-16  Eric Blake  <ebb9@byu.net>
56155
56156         Avoid doubling \ in common case of "c-maybe" quoting style.
56157         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56158         eliding outer quotes.
56159         * lib/quotearg.h: Document this.
56160         * tests/test-quotearg.c (result_strings, inputs, results_g)
56161         (flag_results, locale_results): Test it by adding a new string to
56162         each test group.
56163         (compare_strings): Test new string.
56164
56165 2008-02-13  Eric Blake  <ebb9@byu.net>
56166
56167         Avoid trigraph quoting in default output.
56168         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56169         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56170         unless explicitly requested.
56171         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56172
56173 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56174
56175         Don't rely on signed integer overflowing to negative value.
56176         * lib/getugroups.c (getugroups): Include <limits.h>.
56177         Instead, compare against INT_MAX, and increment only if the test passes.
56178
56179 2008-02-13  Jim Meyering  <meyering@redhat.com>
56180         and Eric Blake  <ebb9@byu.net>
56181
56182         Avoid shadowing warning and compile errors on Linux.
56183         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56184         forwarding macros on Linux.
56185         (dcgettext): Define a stub, for Linux.
56186         (results_g, main): Avoid warnings.
56187
56188 2008-02-12  Eric Blake  <ebb9@byu.net>
56189
56190         Silence warning in last patch.
56191         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56192
56193         Quotearg part 4: add tests, fix c-maybe colon quoting.
56194         * lib/quotearg.h: Improve documentation.
56195         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56196         escapes when adding outer quotes.  When quoting trigraphs, use
56197         valid C notation.  When quoting NUL, omit extra characters if next
56198         character is not digit.  Alter prototype.
56199         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56200         callers.
56201         * modules/quotearg-tests: New module.
56202         * tests/test-quotearg.c: New test.
56203
56204 2008-02-07  Eric Blake  <ebb9@byu.net>
56205
56206         Quotearg part 3: add flag to control outer quote elision.
56207         * lib/quotearg.h (c_maybe_quoting_style): New style.
56208         (enum quoting_flags): Better documentation of flags.
56209         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56210         c-maybe style.
56211         (quotearg_buffer_restyled): Handle new flag to elide outer
56212         quotes.
56213
56214         Quotearg part 2: add flag that can control NUL elision.
56215         * lib/quotearg.h (set_quoting_flags): New prototype.
56216         * lib/quotearg.c (struct quoting_options): Add flag field.
56217         (set_quoting_flags): New function.
56218         (quotearg_buffer_restyled): Add flags parameter.
56219         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56220         (quotearg_n_options): Set the flag, since length cannot be
56221         returned.
56222         (quoting_options_from_style): Default flags correctly.
56223
56224         Quotearg part 1: more wrappers, restore quotearg_char state.
56225         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56226         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56227         (quotearg_colon_mem): New wrappers.
56228         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56229         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56230         functions.
56231         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56232         (quotearg_colon_mem): New functions.
56233
56234 2008-02-11  Bruno Haible  <bruno@clisp.org>
56235
56236         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56237         library in the current directory: it does not work with parallel make.
56238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56239
56240 2008-02-11  Bruno Haible  <bruno@clisp.org>
56241
56242         * .gitattributes: New file.
56243
56244 2008-02-11  Jim Meyering  <meyering@redhat.com>
56245
56246         useless-if-before-free: Fix reversed exit values.
56247         * build-aux/useless-if-before-free: Use correct values
56248         for EXIT_MATCH and EXIT_NO_MATCH.
56249
56250         * build-aux/useless-if-before-free: Close stdout carefully.
56251
56252 2008-02-10  Bruno Haible  <bruno@clisp.org>
56253
56254         New module 'git-merge-changelog'.
56255         * modules/git-merge-changelog: New file.
56256         * lib/git-merge-changelog.c: New file.
56257
56258 2008-02-10  Jim Meyering  <meyering@redhat.com>
56259
56260         useless-if-before-free: New option: --list (-l).
56261
56262         useless-if-before-free: Don't exit immediately upon open failure.
56263         * build-aux/useless-if-before-free: Exit 2 for errors.
56264         Upon failure to open a file, don't exit immediately.
56265         Rather, just warn and continue with any remaining files.
56266
56267 2008-02-10  Bruno Haible  <bruno@clisp.org>
56268
56269         New abstract list operation 'node_set_value'.
56270         * lib/gl_list.h (gl_list_node_set_value): New function.
56271         (struct gl_list_implementation): New field node_set_value.
56272         * lib/gl_list.c (gl_list_node_set_value): New function.
56273         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56274         (gl_array_list_implementation): Update.
56275         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56276         (gl_carray_list_implementation): Update.
56277         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56278         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56279         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56280         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56281         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56282         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56283         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56284         Update.
56285         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56286         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56287         (gl_sublist_list_implementation): Update.
56288
56289 2008-02-10  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56292         Needed when ELEMENT is #defined to 'some_type *'.
56293
56294 2008-02-10  Jim Meyering  <meyering@redhat.com>
56295
56296         New script and module: useless-if-before-free
56297         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56298         * build-aux/useless-if-before-free: New file.
56299         * modules/useless-if-before-free: New file.
56300
56301         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56302
56303         xstrtol_error: Fix typo.
56304         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56305         s/exit_failure/exit_status/.
56306
56307 2008-02-09  Jim Meyering  <meyering@redhat.com>
56308
56309         New script and module: gitlog-to-changelog
56310         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56311         * modules/gitlog-to-changelog: New file.
56312         * build-aux/gitlog-to-changelog: New file.
56313
56314 2008-02-08  Jim Meyering  <meyering@redhat.com>
56315
56316         Avoid two "parameter unused" warnings.
56317         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56318         Mark "st" as used.
56319
56320         Use "git COMMAND", not "git-COMMAND".
56321         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56322         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56323         * build-aux/git-version-gen: Use "git status", not "git-status".
56324
56325 2008-02-07  Bruno Haible  <bruno@clisp.org>
56326
56327         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56328         Avoids a crash on Windows Vista.
56329         Reported by Adam Strzelecki <ono@java.pl> via
56330         Simon Josefsson <simon@josefsson.org>.
56331
56332 2008-02-06  Bruno Haible  <bruno@clisp.org>
56333
56334         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56335         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56336         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56338         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56339         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56340         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56341         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56342         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56343         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56344         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56345         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56346         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56347         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56348         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56349         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56350         left-adjust flag.
56351         * tests/test-snprintf-posix.h (test_function): Likewise.
56352         * tests/test-sprintf-posix.h (test_function): Likewise.
56353         * tests/test-vasprintf-posix.c (test_function): Likewise.
56354         * doc/posix-functions/fprintf.texi: Update.
56355         * doc/posix-functions/printf.texi: Update.
56356         * doc/posix-functions/snprintf.texi: Update.
56357         * doc/posix-functions/sprintf.texi: Update.
56358         * doc/posix-functions/vfprintf.texi: Update.
56359         * doc/posix-functions/vprintf.texi: Update.
56360         * doc/posix-functions/vsnprintf.texi: Update.
56361         * doc/posix-functions/vsprintf.texi: Update.
56362         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56363
56364 2008-02-06  Bruno Haible  <bruno@clisp.org>
56365
56366         Fix bug introduced on 2008-01-26.
56367         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56368
56369 2008-02-06  Bruno Haible  <bruno@clisp.org>
56370
56371         Fix bug introduced on 2007-06-10.
56372         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56373         !NEED_PRINTF_FLAG_ZERO.
56374
56375 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56376
56377         getloadavg: use libperfstat on AIX5
56378         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56379
56380 2008-02-03  Bruno Haible  <bruno@clisp.org>
56381
56382         * lib/diffseq.h: Add comments about required #includes.
56383         Reported by Michael Biggs <gnulib@doubleplum.net>.
56384
56385 2008-02-01  Bruno Haible  <bruno@clisp.org>
56386
56387         * users.txt: Add gnuit.
56388
56389 2008-01-31  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/md4.c (set_uint32): Mark as inline.
56392         * lib/md5.c (set_uint32): Likewise.
56393         * lib/sha1.c (set_uint32): Likewise.
56394         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56395         * m4/md5.m4 (gl_MD5): Likewise.
56396         * m4/sha1.m4 (gl_SHA1): Likewise.
56397
56398 2008-01-31  Jim Meyering  <meyering@redhat.com>
56399
56400         Use "sizeof VAR", rather than a literal "4".
56401         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56402         * lib/md4.c (md4_read_ctx): Likewise.
56403         * lib/sha1.c (sha1_read_ctx): Likewise.
56404
56405 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56406
56407         * tests/test-sha1.c: New file, based on test-md5.c.
56408
56409         * modules/crypto/sha1-tests: New file.
56410
56411 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56412
56413         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56414
56415 2008-01-31  Jim Meyering  <meyering@redhat.com>
56416
56417         Prefer "sizeof v" over the equivalent "4".
56418         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56419         * lib/md5.c (set_uint32): Likewise.
56420         * lib/sha1.c (set_uint32): Likewise.
56421
56422 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56423
56424         * lib/sha1.c (set_uint32): Mark function as static.
56425
56426 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56427
56428         md2: clarify comments to say that alignment is not required.
56429         * lib/md2.h: Remove warning about alignment in comment.
56430         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56431         never been required.
56432
56433 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56434
56435         md4: adapt alignment constraint fix from sha1.
56436         * lib/md4.c (set_uint32): New function, from sha1.c
56437         (md4_read_ctx): Use it.
56438         (md4_finish_ctx): Doc fix.
56439         * lib/md4.h: Doc fix.
56440
56441 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56442
56443         md5: adapt alignment constraint fix from sha1.
56444         * lib/md5.c (set_uint32): New function, from sha1.c
56445         (md5_read_ctx): Use it.
56446         (md5_finish_ctx): Doc fix.
56447         * lib/md5.h: Doc fix.
56448
56449 2008-01-30  Peter Palfrader  <weasel@debian.org>
56450
56451         sha1: remove the result buffer alignment constraint
56452         * lib/sha1.c (set_uint32): New function.
56453         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56454         constraint.
56455         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56456         * lib/sha1.h: Likewise.
56457
56458 2008-01-30  Andreas Schwab  <schwab@suse.de>
56459             Bruno Haible  <bruno@clisp.org>
56460
56461         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56462         correct definition of LDBL_MIN_EXP.
56463
56464 2008-01-30  Karl Berry  <karl@gnu.org>
56465
56466         * config/srclist-update: try to preserve x bit on updates.
56467         * config/srclistvars.sh: update for karl.
56468
56469 2008-01-29  Jim Meyering  <meyering@redhat.com>
56470
56471         vasnprintf.c: Avoid warning about unused label
56472         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56473         "overflow" label definition and associated code with the
56474         same cpp condition that guards the sole use of that label.
56475
56476 2008-01-26  Bruno Haible  <bruno@clisp.org>
56477
56478         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56479         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56480         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56481         * lib/isnanl-nolibm.h (isnanl): Likewise.
56482         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56483
56484 2008-01-26  Bruno Haible  <bruno@clisp.org>
56485
56486         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56487         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56488
56489 2008-01-26  Bruno Haible  <bruno@clisp.org>
56490
56491         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56492         GCC >= 4.0 built-in.
56493         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56494
56495 2008-01-26  Bruno Haible  <bruno@clisp.org>
56496
56497         Rename isnan, applicable to 'double' only, to isnand.
56498         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56499         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56500         (configure.ac): Update.
56501         (Include): Replace "isnan.h" with "isnand.h".
56502         * m4/isnand.m4: Renamed from m4/isnan.m4.
56503         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56504         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56505         instead of isnan.c.
56506         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56507         instead of HAVE_ISNAN_IN_LIBC.
56508         (isnand): Renamed from isnan.
56509         * lib/isnand.c: New file.
56510         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56511         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56512         (Makefile.am): Update.
56513         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56514         Include isnand.h instead of isnan.h.
56515         (main): Test isnand instead of isnan.
56516         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56517         isnan-nolibm.
56518         * modules/frexp (Depends-on): Likewise.
56519         * modules/frexp-tests (Depends-on): Likewise.
56520         * modules/frexp-nolibm (Depends-on): Likewise.
56521         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56522         * modules/isfinite (Depends-on): Likewise.
56523         * modules/round-tests (Depends-on): Likewise.
56524         * modules/signbit (Depends-on): Likewise.
56525         * modules/signbit-tests (Depends-on): Likewise.
56526         * modules/snprintf-posix (Depends-on): Likewise.
56527         * modules/sprintf-posix (Depends-on): Likewise.
56528         * modules/trunc-tests (Depends-on): Likewise.
56529         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56530         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56531         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56532         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56533         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56534         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56535         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56536         * modules/vasnprintf-posix (Depends-on): Likewise.
56537         * modules/vasprintf-posix (Depends-on): Likewise.
56538         * modules/vfprintf-posix (Depends-on): Likewise.
56539         * modules/vsnprintf-posix (Depends-on): Likewise.
56540         * modules/vsprintf-posix (Depends-on): Likewise.
56541         * lib/frexp.c: Include isnand.h instead of isnan.h.
56542         (ISNAN): Set to isnand instead of isnan.
56543         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56544         (gl_isfinited): Use isnand instead of isnan.
56545         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56546         (gl_signbitd): Use isnand instead of isnan.
56547         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56548         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56549         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56550         (main): Use isnand instead of isnan.
56551         * tests/test-round1.c: Include isnand.h.
56552         (main): Use isnand instead of isnan.
56553         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56554         (ISNAN): Set to isnand instead of isnan.
56555         * tests/test-trunc1.c: Include isnand.h.
56556         (main): Use isnand instead of isnan.
56557         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56558         (equal): Use isnand instead of isnan.
56559         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56560         isnand-nolibm.
56561         * NEWS: Mention the change.
56562
56563 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56564             Bruno Haible  <bruno@clisp.org>
56565
56566         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56567         the GCC builtins for signbits are present and set
56568         REPLACE_SIGNBIT_USING_GCC if so.
56569         * lib/math.in.h (signbit): Define using GCC builtins if
56570         REPLACE_SIGNBIT_USING_GCC is set.
56571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56572         REPLACE_SIGNBIT_USING_GCC.
56573         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56574
56575 2008-01-25  Jim Meyering  <meyering@redhat.com>
56576
56577         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56578         * lib/poll.c: Include <config.h>, not "config.h".
56579         * tests/test-getaddrinfo.c: Likewise.
56580
56581 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56582
56583         * modules/sockets-tests: New file.
56584
56585 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56586
56587         * modules/sockets: New module, can be used to call WSA_Startup and
56588         WSA_Cleanup when needed.
56589
56590         * lib/sockets.h, lib/sockets.c: New files.
56591
56592         * m4/sockets.m4: New file.
56593
56594         * tests/test-sockets.c: New file.
56595
56596 2008-01-19  Bruno Haible  <bruno@clisp.org>
56597
56598         * doc/posix-headers: Renamed from doc/headers.
56599         * doc/posix-functions: Renamed from doc/functions.
56600         * doc/gnulib.texi: Update.
56601
56602 2008-01-19  Bruno Haible  <bruno@clisp.org>
56603
56604         * doc/glibc-functions/strcasestr.texi: Include contents of
56605         doc/functions/strcasestr.texi, fixing the list of platforms.
56606         * doc/functions/strcasestr.texi: Remove file.
56607
56608 2008-01-19  Bruno Haible  <bruno@clisp.org>
56609
56610         * doc/glibc-functions/memmem.texi: Include contents of
56611         doc/functions/memmem.texi.
56612         * doc/functions/memmem.texi: Remove file.
56613
56614 2008-01-18  Bruno Haible  <bruno@clisp.org>
56615
56616         * doc/glibc-functions/*.texi: New files.
56617         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
56618         to use the new files.
56619
56620 2008-01-17  Bruno Haible  <bruno@clisp.org>
56621
56622         * tests/test-gethostname.c (main): Fix printf statement.
56623
56624 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56625
56626         * modules/gethostname-tests: New file.
56627
56628         * tests/test-gethostname.c: New file.
56629
56630 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56631
56632         * lib/gethostname.c: Include string.h unconditionally, strncpy is
56633         used by the UNAME case.  Reported by Bruno Haible
56634         <bruno@clisp.org>.
56635
56636 2008-01-17  Eric Blake  <ebb9@byu.net>
56637
56638         Convert c-strcasestr to be more efficient.
56639         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
56640         (Depends-on): Add c-strcase, remove malloca, strnlen.
56641         * tests/test-c-strcasestr.c (main): Enhance test.
56642         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
56643
56644 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56645
56646         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
56647         Use it in creating po/Makevars.
56648
56649 2008-01-15  Simon Josefsson  <simon@josefsson.org>
56650
56651         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
56652         Applications that requires it should initialize libgcrypt
56653         manually.
56654
56655 2008-01-16  Simon Josefsson  <simon@josefsson.org>
56656
56657         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
56658
56659 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
56660
56661         Fix problem with getdate on mingw32 reported by Simon Josefsson
56662         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
56663         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
56664         tzname", when deciding whether to declare tzname.
56665         * lib/strftime.c (tzname): Likewise.
56666
56667 2008-01-15  Bruno Haible  <bruno@clisp.org>
56668
56669         Work around a MacOS X 10.5 bug in frexpl().
56670         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
56671         * doc/functions/frexpl.texi: Document the bug.
56672         Reported by Elias Pipping <pipping@gentoo.org>.
56673
56674 2008-01-14  Eric Blake  <ebb9@byu.net>
56675
56676         Touch up previous patch.
56677         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
56678         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
56679
56680         Convert strcasestr module to use Two-Way algorithm.
56681         * modules/strcasestr-simple: New module, based on the old
56682         strcasestr, but with Two-Way rather than KMP.
56683         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
56684         * lib/string.in.h (rpl_strcasestr): Declare.
56685         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
56686         performance.
56687         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
56688         * modules/string (Makefile.am): Support strcasestr.
56689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
56690         * modules/strcasestr-tests (Depends-on): Check for alarm.
56691         * tests/test-strcasestr.c: Augment test.
56692         * lib/str-two-way.h: Clean up stray macro.
56693         * NEWS: Document new module.
56694         * MODULES.html.sh (string handling): Likewise.
56695         * doc/functions/strcasestr.texi: New file.
56696         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
56697         here, since it is not a POSIX function.
56698
56699 2008-01-14  Colin Watson  <cjwatson@debian.org>
56700             Bruno Haible  <bruno@clisp.org>
56701
56702         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
56703         works fine; if not, set REPLACE_STRSIGNAL.
56704         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
56705         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56706         REPLACE_STRSIGNAL.
56707         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
56708         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
56709         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
56710
56711 2008-01-14  Bruno Haible  <bruno@clisp.org>
56712
56713         * modules/strsignal (Include): Change to <string.h>.
56714
56715 2008-01-14  Colin Watson  <cjwatson@debian.org>
56716
56717         * modules/argp (Notice): Add a notice recommending to change
56718         XGETTEXT_OPTIONS.
56719         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
56720
56721 2008-01-13  Colin Watson  <cjwatson@debian.org>
56722
56723         * modules/strsignal-tests: New file.
56724         * tests/test-strsignal.c: New file.
56725
56726         * lib/strsignal.c: New file, from glibc with modifications.
56727         * lib/siglist.h: New file, from glibc with modifications.
56728         * lib/string.in.h (strsignal): New declaration.
56729         * m4/strsignal.m4: New file.
56730         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56731         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
56732         * modules/strsignal: New file.
56733         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
56734         HAVE_DECL_STRSIGNAL.
56735
56736 2008-01-13  Bruno Haible  <bruno@clisp.org>
56737
56738         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56739         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56740         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56741         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56742
56743 2008-01-13  Bruno Haible  <bruno@clisp.org>
56744
56745         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
56746         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
56747         * lib/argp.h (__attribute__): Likewise.
56748         * lib/c-stack.c (__attribute__): Likewise.
56749         * lib/error.h (__attribute__): Likewise.
56750         * lib/fts.c (__attribute__): Likewise.
56751         * lib/openat.h (__attribute__): Likewise.
56752         * lib/stdio.in.h (__attribute__): Likewise.
56753         * lib/string.in.h (__attribute__): Likewise.
56754         * lib/utimens.c (__attribute__): Likewise.
56755         * lib/vasnprintf.h (__attribute__): Likewise.
56756         * lib/xalloc.h (__attribute__): Likewise.
56757         * lib/xprintf.h (__attribute__): Likewise.
56758         * lib/xstrtol.h (__attribute__): Likewise.
56759         * lib/xvasprintf.h (__attribute__): Likewise.
56760
56761 2008-01-12  Bruno Haible  <bruno@clisp.org>
56762
56763         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
56764         * doc/glibc-headers/a.out.texi: New file.
56765         * doc/glibc-headers/aliases.texi: New file.
56766         * doc/glibc-headers/alloca.texi: New file.
56767         * doc/glibc-headers/ar.texi: New file.
56768         * doc/glibc-headers/argp.texi: New file.
56769         * doc/glibc-headers/argz.texi: New file.
56770         * doc/glibc-headers/byteswap.texi: New file.
56771         * doc/glibc-headers/crypt.texi: New file.
56772         * doc/glibc-headers/endian.texi: New file.
56773         * doc/glibc-headers/envz.texi: New file.
56774         * doc/glibc-headers/err.texi: New file.
56775         * doc/glibc-headers/error.texi: New file.
56776         * doc/glibc-headers/execinfo.texi: New file.
56777         * doc/glibc-headers/fpu_control.texi: New file.
56778         * doc/glibc-headers/fstab.texi: New file.
56779         * doc/glibc-headers/fts.texi: New file.
56780         * doc/glibc-headers/getopt.texi: New file.
56781         * doc/glibc-headers/ieee754.texi: New file.
56782         * doc/glibc-headers/ifaddrs.texi: New file.
56783         * doc/glibc-headers/libintl.texi: New file.
56784         * doc/glibc-headers/mcheck.texi: New file.
56785         * doc/glibc-headers/mntent.texi: New file.
56786         * doc/glibc-headers/obstack.texi: New file.
56787         * doc/glibc-headers/paths.texi: New file.
56788         * doc/glibc-headers/printf.texi: New file.
56789         * doc/glibc-headers/pty.texi: New file.
56790         * doc/glibc-headers/resolv.texi: New file.
56791         * doc/glibc-headers/shadow.texi: New file.
56792         * doc/glibc-headers/sysexits.texi: New file.
56793         * doc/glibc-headers/ttyent.texi: New file.
56794
56795 2008-01-12  Jim Meyering  <meyering@redhat.com>
56796
56797         announce-gen: emit Gnulib's git-based version string.
56798         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
56799         New option --gnulib-version=V, where V is expected to be
56800         the output of running git describe in the gnulib directory.
56801         (get_tool_versions): Request feedback on xdelta.  I suspect it's
56802         not useful, and plan to stop publishing an xdelta file with each
56803         coreutils release.
56804
56805         * build-aux/announce-gen: Also check for lzma-compressed files.
56806
56807 2008-01-11  Bruno Haible  <bruno@clisp.org>
56808
56809         * tests/test-memmem.c (main): Increase maximum allowed time.
56810         * tests/test-strstr.c (main): Likewise.
56811
56812 2008-01-11  Bruno Haible  <bruno@clisp.org>
56813
56814         * doc/functions/memmem.texi: Add more precisions about platforms.
56815         * doc/functions/strstr.texi: Likewise.
56816
56817 2008-01-10  Eric Blake  <ebb9@byu.net>
56818
56819         * m4/strstr.m4: Delete cruft from copy-n-paste.
56820         Reported by Bruno Haible.
56821
56822 2008-01-10  Bruno Haible  <bruno@clisp.org>
56823
56824         Make c-strstr rely on strstr.
56825         * lib/c-strstr.c: Don't include str-kmp.h.
56826         (c_strstr): Define in terms of strstr.
56827         * modules/c-strstr (Files): Remove lib/str-kmp.h.
56828         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
56829
56830 2008-01-10  Bruno Haible  <bruno@clisp.org>
56831
56832         * doc/gnulib.texi (String Functions in C Locale): New section.
56833         * doc/c-ctype.texi: New file.
56834         * doc/c-strcase.texi: New file.
56835         * doc/c-strcaseeq.texi: New file.
56836         * doc/c-strcasestr.texi: New file.
56837         * doc/c-strstr.texi: New file.
56838         * doc/c-strtod.texi: New file.
56839         * doc/c-strtold.texi: New file.
56840
56841 2008-01-10  Eric Blake  <ebb9@byu.net>
56842
56843         * lib/relocatable.h: Fix a comment.
56844
56845 2008-01-10  Eric Blake  <ebb9@byu.net>
56846
56847         Share two-way algorithm.
56848         * lib/str-two-way.h: New file, merged from...
56849         * lib/memmem.c: ...here...
56850         * lib/strstr.c: ...and here.
56851         * modules/memmem (Files): Use it.
56852         * modules/strstr (Files): Likewise.
56853
56854         Avoid quadratic strstr implementations.
56855         * lib/strstr.c: New file.
56856         * m4/strstr.m4: Likewise.
56857         * modules/strstr: Likewise.
56858         * modules/strstr-tests: Likewise.
56859         * tests/test-strstr.c: Likewise.
56860         * lib/string.in.h (rpl_strstr): Declare.
56861         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
56862         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
56863         * modules/string (Makefile.am): Likewise.
56864         * MODULES.html.sh (string handling): Mention new module.
56865         * doc/functions/strstr.texi (strstr): Document the bug.
56866
56867 2008-01-10  Bruno Haible  <bruno@clisp.org>
56868
56869         * lib/relocatable.h (relocate): State whether result is freshly
56870         allocated or not.
56871         * lib/relocatable.c (relocate): Return a freshly allocated string
56872         instead of a pointer to a privately held string.
56873         Reported by Sylvain Beucler <beuc@gnu.org>.
56874
56875 2008-01-10  Colin Watson  <cjwatson@debian.org>
56876
56877         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
56878         s/S_ISNLK/S_ISLNK/.
56879
56880 2008-01-09  Bruno Haible  <bruno@clisp.org>
56881
56882         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
56883         and other files.
56884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
56885         if it's only a guess.
56886         * modules/memmem: Simplify by depending on memmem-simple.
56887
56888 2008-01-09  Bruno Haible  <bruno@clisp.org>
56889
56890         Work around OpenBSD 4.0 tdelete() bug.
56891         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
56892         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
56893         macros and don't redefine the enum values.
56894         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
56895         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
56896         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
56897
56898 2008-01-09  Bruno Haible  <bruno@clisp.org>
56899
56900         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
56901         (main): Don't perform the tests if setlocale did not install a UTF-8
56902         locale. Needed on OpenBSD 4.0.
56903         * modules/wcwidth-tests (Depends-on): Add localcharset.
56904
56905 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
56908         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
56909         * NEWS: announce this.
56910         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
56911
56912 2008-01-09  Simon Josefsson  <simon@josefsson.org>
56913         and Eric Blake  <ebb9@byu.net>
56914
56915         Add memmem-simple module.
56916         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
56917         (gl_FUNC_MEMMEM): Separate performance from presence checks.
56918         * modules/memmem-simple: New file.
56919         * modules/memmem (Description): Tweak.
56920         * MODULES.html.sh (string handling): Mention new module.
56921         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
56922         addressed by memmem-simple.
56923         * NEWS: Document the difference.
56924
56925 2008-01-09  Eric Blake  <ebb9@byu.net>
56926
56927         Give gcc some memmem optimization hints.
56928         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
56929         (strcasestr): Declare as pure.
56930         * modules/memmem (Maintainer): Claim my implementation.
56931
56932 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56933
56934         Support AIX 6.1 and higher.
56935         * build-aux/config.libpath: Likewise.
56936         * build-aux/config.rpath: Likewise.
56937
56938 2008-01-08  Jim Meyering  <meyering@redhat.com>
56939             Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
56942         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
56943         Reported by Peter Fales in
56944         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
56945
56946 2008-01-08  Bruno Haible  <bruno@clisp.org>
56947
56948         * modules/unictype/category-of (Depends-on): Add
56949         unictype/category-none.
56950         * modules/unictype/category-and-tests (Depends-on): Add
56951         unictype/category-{L,N,Lu,Nd}.
56952         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56953         * modules/unictype/category-or-tests (Depends-on): Add
56954         unictype/category-{L,N}.
56955         * modules/unictype/category-name-tests (Depends-on): Add
56956         unictype/category-{Z,Nl}.
56957         Reported by Simon Josefsson.
56958
56959 2008-01-08  Bruno Haible  <bruno@clisp.org>
56960
56961         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56962         convention better.
56963         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56964         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56965         Reported by Peter Miller <millerp@canb.auug.org.au>.
56966
56967 2008-01-08  Eric Blake  <ebb9@byu.net>
56968
56969         Rewrite memmem to guarantee linear complexity without malloc.
56970         * lib/memmem.c (memmem): Use Two-Way rather than
56971         Knuth-Morris-Pratt, to allow O(1) space usage.
56972         (critical_factorization, two_way_short_needle)
56973         (two_way_long_needle): New functions.
56974         (knuth_morris_pratt): Delete.
56975         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56976         Add stdint.
56977         * tests/test-memmem.c (main): Add tests for periodic needle and
56978         sublinear performance.
56979         * doc/functions/memmem.texi (memmem): Document other deficiencies
56980         in cygwin and older glibc.
56981
56982 2008-01-08  Bruno Haible  <bruno@clisp.org>
56983
56984         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56985         augmentation.
56986
56987 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56988
56989         Add a configure time option: --disable-acl.
56990         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56991         AC_ARG_ENABLE(acl).
56992
56993 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56994
56995         * tests/test-localename.c: Don't include obsolete "setenv.h".
56996
56997         * modules/localename-tests (Depends-on): Need unsetenv.
56998
56999 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57000
57001         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57002
57003 2008-01-06  Colin Watson  <cjwatson@debian.org>
57004
57005         * users.txt: Add man-db.
57006
57007 2008-01-07  Bruno Haible  <bruno@clisp.org>
57008
57009         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57010         previous section name.
57011
57012 2008-01-07  Bruno Haible  <bruno@clisp.org>
57013
57014         * lib/progname.c (set_program_name): Don't strip off a leading
57015         "lt-" prefix outside a .libs directory.
57016         Suggested by Paul Eggert.
57017
57018 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57019             Bruno Haible  <bruno@clisp.org>
57020
57021         Improve memory cleanup in 'relocatable' module.
57022         * lib/relocatable.h (compute_curr_prefix): Change return type to
57023         'char *'.
57024         * lib/relocatable.c (compute_curr_prefix): Change return type to
57025         'char *'. Free curr_installdir after use.
57026         (relocate): Free curr_prefix_better after use.
57027         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57028
57029 2008-01-01  Bruno Haible  <bruno@clisp.org>
57030
57031         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57032         failure on older glibc systems.
57033         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57034
57035 2008-01-05  Eric Blake  <ebb9@byu.net>
57036
57037         Avoid quadratic system memmem.
57038         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57039         Reported by Ralf Wildenhues.
57040
57041         Fix memmem test for mingw.
57042         * modules/memmem-tests (configure.ac): Check for alarm.
57043         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57044         it.
57045         * doc/functions/memmem.texi: New file.
57046         * doc/gnulib.texi (Function Substitutes): Add memmem.
57047         Reported by Bruno Haible.
57048
57049 2008-01-04  Bruno Haible  <bruno@clisp.org>
57050
57051         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57052         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57053         gl_HEADER_STRING_H_DEFAULTS.
57054
57055 2008-01-04  Eric Blake  <ebb9@byu.net>
57056
57057         Shorten duration of memmem test.
57058         * tests/test-memmem.c (main): Use alarm to declare failure if test
57059         is taking too long.
57060         Reported by Ralf Wildenhues.
57061
57062 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57063
57064         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57065         string, needed by strerror.
57066
57067 2008-01-03  Colin Watson  <cjwatson@debian.org>
57068             Bruno Haible  <bruno@clisp.org>
57069
57070         * doc/gnulib-tool.texi (Localization): New section.
57071
57072 2008-01-02  Bruno Haible  <bruno@clisp.org>
57073
57074         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57075         variables to 'unsigned char *' type.
57076         Reported by Paul Eggert.
57077
57078 2008-01-02  Jim Meyering  <jim@meyering.net>
57079
57080         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57081
57082 2007-12-31  Jim Meyering  <jim@meyering.net>
57083
57084         Avoid use of private FTS type name.
57085         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57086
57087 2007-12-30  Karl Berry  <karl@gnu.org>
57088
57089         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57090         work around defect in Texinfo and/or the standalone Info browser.
57091
57092 2007-12-30  Bruno Haible  <bruno@clisp.org>
57093
57094         Unify 5 copies of the KMP code.
57095         * lib/str-kmp.h: New file.
57096         * lib/c-strcasestr.c: Include str-kmp.h.
57097         (knuth_morris_pratt): Remove function.
57098         (c_strcasestr): Update.
57099         * lib/c-strstr.c: Include str-kmp.h.
57100         (knuth_morris_pratt): Remove function.
57101         (c_strcasestr): Update.
57102         * lib/mbscasestr.c: Include str-kmp.h.
57103         (knuth_morris_pratt_unibyte): Remove function.
57104         * lib/mbsstr.c: Include str-kmp.h.
57105         (knuth_morris_pratt_unibyte): Remove function.
57106         * lib/strcasestr.c: Include str-kmp.h.
57107         (knuth_morris_pratt): Remove function.
57108         (strcasestr): Update.
57109         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57110         * modules/c-strstr (Files): Likewise.
57111         * modules/mbscasestr (Files): Likewise.
57112         * modules/mbsstr (Files): Likewise.
57113         * modules/strcasestr (Files): Likewise.
57114         Suggested by Paul Eggert.
57115
57116 2007-12-30  Bruno Haible  <bruno@clisp.org>
57117
57118         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57119         defined.
57120
57121 2007-12-30  Bruno Haible  <bruno@clisp.org>
57122
57123         * lib/xmalloca.h: Include xalloc.h.
57124         (xnmalloca): New macro.
57125
57126 2007-12-30  Bruno Haible  <bruno@clisp.org>
57127
57128         * lib/malloca.h (nmalloca): New macro.
57129         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57130         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57131         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57132         knuth_morris_pratt_multibyte): Likewise.
57133         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57134         knuth_morris_pratt_multibyte): Likewise.
57135         * lib/memmem.c (knuth_morris_pratt): Likewise.
57136         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57137
57138 2007-12-25  Bruno Haible  <bruno@clisp.org>
57139
57140         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57141         * lib/glob.c: Don't include openat.h.
57142         (link_exists2_p): Add back the code that deals with the
57143         !GLOB_ALTDIRFUNC case.
57144         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57145         let it do the filename concatenation.
57146         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57147         * modules/glob (Depends-on): Remove openat.
57148
57149 2007-12-31  Bruno Haible  <bruno@clisp.org>
57150
57151         * modules/dirfd (License): Change to LGPLv2+.
57152         Approved by Jim Meyering.
57153
57154 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57155
57156         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57157         when multiplying M by sizeof (size_t).
57158
57159 2007-12-10  Martin Lambers  <marlam@marlam.de>
57160
57161         Override getpagesize on mingw.
57162         * lib/getpagesize.c: New file.
57163         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57164         * modules/getpagesize (Files): Add lib/getpagesize.c.
57165         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57167         REPLACE_GETPAGESIZE.
57168         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57169
57170 2007-12-25  Bruno Haible  <bruno@clisp.org>
57171
57172         * modules/localcharset (Notice): New field.
57173         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57174         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57175
57176 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57177             Bruno Haible  <bruno@clisp.org>
57178
57179         Avoid using the syntax symbol() in formatted documentation.
57180         * MODULES.html.sh (func_module): When replacing symbol() with a
57181         hyperlink, remove the parentheses. Show an error if some remain.
57182         Recognize and render the '...' syntax.
57183         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57184         Rework. Add paragraph about GCC's inlining.
57185         * doc/alloca.texi: Likewise.
57186         * doc/error.texi: Remove parentheses from symbol reference.
57187         * doc/gnulib-intro.texi: Likewise.
57188         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57189         * modules/fnmatch (Description): Reword to say "the ... function".
57190         * modules/full-read (Description): Likewise.
57191         * modules/full-write (Description): Likewise.
57192         * modules/safe-read (Description): Likewise.
57193         * modules/safe-write (Description): Likewise.
57194         * modules/strchrnul (Description): Likewise.
57195         * modules/trim (Description): Likewise.
57196         * modules/error (Description): Remove parentheses from symbol
57197         references.
57198         * modules/verror (Description): Likewise.
57199         Reported by Karl Berry.
57200
57201 2007-12-25  Bruno Haible  <bruno@clisp.org>
57202
57203         Fixup after 2007-10-16 commit.
57204         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57205
57206 2007-12-24  Bruno Haible  <bruno@clisp.org>
57207
57208         Make --enable-relocatable work with DESTDIR.
57209         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57210         to compute installdir from destprog.
57211         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57212         also set the RELOC_DESTDIR variable.
57213         Reported by Левашев Иван <octagram@bluebottle.com>.
57214
57215 2007-12-24  Bruno Haible  <bruno@clisp.org>
57216
57217         Fix link error due to xalloc_die().
57218         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57219         of xreadlink.
57220         * lib/relocwrapper.c: Update comments.
57221         * build-aux/install-reloc: Remove xreadlink.c from file list.
57222         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57223         xreadlink.c.
57224         Reported by Левашев Иван <octagram@bluebottle.com>.
57225
57226 2007-12-24  Bruno Haible  <bruno@clisp.org>
57227
57228         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57229         * lib/setenv.h: Remove file.
57230         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57231         lib/setenv.h.
57232         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57233         (Depends-on): Add stdlib.
57234         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57235         gl_FUNC_UNSETENV.
57236         (Include): Replace setenv.h with <stdlib.h>.
57237         * modules/unsetenv: New file.
57238         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57239         * lib/unsetenv.c: Include <stdlib.h> first.
57240         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57241         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57242         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57243         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57244         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57245         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57247         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57248         * doc/functions/unsetenv.texi: Update.
57249         * modules/xsetenv (Depends-on): Add unsetenv.
57250         * modules/getdate (Depends-on): Likewise.
57251         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57252         * lib/xsetenv.c: Don't include setenv.h.
57253         * lib/getdate.y: Likewise.
57254         * lib/relocwrapper.c: Likewise.
57255         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57256         (Depends-on): Add stdlib.
57257         * NEWS: Mention the changes.
57258         Reported by Левашев Иван <octagram@bluebottle.com>.
57259
57260 2007-12-23  Bruno Haible  <bruno@clisp.org>
57261
57262         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57263         indentation.
57264
57265 2007-12-23  Bruno Haible  <bruno@clisp.org>
57266
57267         * lib/c-strcasestr.c: Add more comments.
57268         * lib/c-strstr.c: Likewise.
57269         * lib/mbscasestr.c: Likewise.
57270         * lib/mbsstr.c: Likewise.
57271         * lib/strcasestr.c: Likewise.
57272         * lib/memmem.c: Likewise.
57273
57274 2007-12-23  Bruno Haible  <bruno@clisp.org>
57275
57276         * tests/test-memmem.c: Include <string.h> first.
57277
57278 2007-12-22  Bruno Haible  <bruno@clisp.org>
57279
57280         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57281         the contents of $testsbase.
57282         Reported by Ralf Wildenhues.
57283
57284 2007-12-22  Bruno Haible  <bruno@clisp.org>
57285
57286         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57287         two variables local_ldadd_before, local_ldadd_last.
57288
57289 2007-12-20  Eric Blake  <ebb9@byu.net>
57290
57291         Work around circular library issue when cross-compiling.
57292         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57293         that progname.o does not need to pull in rpl_memcmp.
57294
57295 2007-12-19  Eric Blake  <ebb9@byu.net>
57296
57297         Fix memmem to avoid O(n^2) worst-case complexity.
57298         * lib/memmem.c (knuth_morris_pratt): New function.
57299         (memmem): Use it if first few naive iterations fail.
57300         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57301         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57302         * modules/memchr (License): Likewise.
57303         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57304         malloca.
57305         * tests/test-memmem.c: Rewrite, borrowing ideas from
57306         test-mbsstr1.c; the old version wouldn't even compile!
57307         * modules/memmem-tests: New file.
57308         * lib/string.in.h (rpl_memmem): Add declaration.
57309         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57311         REPLACE_MEMMEM.
57312
57313 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57314
57315         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57316         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57317         before any system include files, and undef after them all.  This
57318         should fix a problem on VMS reported by John E. Malmberg in
57319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57320
57321 2007-12-17  Eric Blake  <ebb9@byu.net>
57322
57323         Revert addition of verify, for BSD/OS.
57324         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57325         can't handle large files, for the sake of obsolete platforms.
57326         * modules/fseeko (Depends-on): Remove verify.
57327         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57328         * doc/functions/ftello.texi (ftello): Likewise.
57329         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57330         Reported by Larry Jones.
57331
57332 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57333
57334         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57335         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57336
57337 2007-12-17  Jim Meyering  <meyering@redhat.com>
57338
57339         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57340         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57341         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57342         * modules/getcwd (Depends-on): Add openat.
57343         Reported by Petr Salinger.
57344
57345 2007-12-17  Bruno Haible  <bruno@clisp.org>
57346
57347         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57348         avoid a segmentation fault of the configure test on x86_64 systems.
57349
57350 2007-12-15  Jim Meyering  <meyering@redhat.com>
57351
57352         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57353
57354 2007-12-13  Eric Blake  <ebb9@byu.net>
57355
57356         Another fseek test.
57357         * tests/test-fseek.c (main): Also test ungetc handling.
57358         * tests/test-fseeko.c (main): Likewise.
57359         * modules/fseeko (Depends-on): Add verify.
57360         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57361         large.
57362         Reported by Larry Jones.
57363
57364         Fix fseeko on mingw.
57365         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57366         seek.
57367
57368         Beef up fseek tests.
57369         * tests/test-fseek.c (main): Also test eof handling.
57370         * tests/test-fseeko.c (main): Likewise.
57371         Reported by Larry Jones.
57372
57373 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57374
57375         Fix fseeko on BSD-based platforms.
57376         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57377         successful seek.
57378
57379 2007-12-12  Eric Blake  <ebb9@byu.net>
57380
57381         Allow circular dependency of separate libtests.a
57382         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57383         when use_libtests.
57384
57385 2007-12-11  Eric Blake  <ebb9@byu.net>
57386
57387         Fix bug with -0.0L in previous patch.
57388         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57389         * tests/test-isnan.c (main): Also test on zeroes.
57390         * tests/test-isnanf.c (main): Likewise.
57391         * tests/test-isnanl.h (main): Likewise.
57392
57393         Detect pseudo-denormals on x86 even when cross-compiling.
57394         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57395         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57396         invalid bit patterns that happen to satisfy ==.
57397
57398         Avoid link failures with separate libtests.a.
57399         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57400         last, to satisfy circular dependencies.
57401
57402 2007-12-11  Eric Blake  <ebb9@byu.net>
57403         and Bruno Haible  <bruno@clisp.org>
57404
57405         Fix OpenBSD 4.0 <float.h> handling of long double.
57406         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57407         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57408         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57409
57410 2007-12-11  Jim Meyering  <meyering@redhat.com>
57411
57412         * users.txt: Add libvirt.
57413
57414         Support versions of autoconf prior to 2.59c.
57415         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57416         if it is not already defined.
57417
57418 2007-12-09  Bruno Haible  <bruno@clisp.org>
57419
57420         Let 'gnulib-tool --import' collect sources needed for the tests in
57421         tests/ rather than in lib/.
57422         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57423         argument. If true, add rules to generate libtests.a, and put libtests.a
57424         into $(LDADD). Consider source files in subdirectories and set
57425         uses_subdirs.
57426         (func_emit_initmacro_start, func_emit_initmacro_end,
57427         func_emit_initmacro_done): Pass all arguments explicitly.
57428         (func_import): Determine two module lists main_modules,
57429         testsrelated_modules. Determine use_libtests. Determine two variables
57430         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57431         instead of just sed_transform_lib_file. Determine two variables
57432         main_files and testsrelated_files. Compute 'files' as the union of
57433         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57434         func_add_or_update. In the generated gnulib-comp.m4, collect the
57435         object files for tests/ in different variables than those for lib/.
57436         Substitute LIBTESTS_LIBDEPS.
57437         (func_create_testdir): Combine the uses_subdirs results from
57438         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57439
57440 2007-12-09  Bruno Haible  <bruno@clisp.org>
57441
57442         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57443         the build-aux directory.
57444
57445 2007-12-09  Bruno Haible  <bruno@clisp.org>
57446
57447         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57448         introduced on 2006-09-09.
57449
57450 2007-12-07  Jim Meyering  <meyering@redhat.com>
57451
57452         Let these macros work also with autoconf-2.59.
57453         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57454         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57455         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57456
57457 2007-12-06  Jim Meyering  <meyering@redhat.com>
57458
57459         Avoid a configure-time syntax error in gl_FUNC_ACL.
57460         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57461         function in each branch, before testing the cache variable.
57462
57463 2007-12-04  Eric Blake  <ebb9@byu.net>
57464
57465         Make scripts executable.
57466         * build-aux/config.guess: Add execute permissions.
57467         * build-aux/config.sub: Likewise.
57468         * build-aux/gendocs.sh: Likewise.
57469
57470         Fix frexp on mingw.
57471         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57472         cross-compiling.
57473         * doc/functions/frexp.texi (frexp): Document the bug.
57474
57475         Make cygwin fseeko check more reliable.
57476         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57477         version numbers, rather than unrelated feature check.
57478         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57479         * doc/functions/ftello.texi (ftello): Likewise.
57480         Reported by Bruno Haible.
57481
57482         * m4/strerror.m4: Bump version number.
57483
57484 2007-12-03  Bruno Haible  <bruno@clisp.org>
57485
57486         * doc/functions/mprotect.texi: Mention the mingw problem.
57487
57488 2007-12-03  Eric Blake  <ebb9@byu.net>
57489
57490         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57491         REPLACE_STRERROR is initialized before this macro.
57492
57493 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57494
57495         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57496         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57497         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57498         put -lsec in even for programs other than 'ls'.  This fixes a problem
57499         for gettext reported by Bruno Haible in
57500         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57501         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57502         Add support for Solaris 10.  This isn't efficient, but should get the
57503         job done for now.
57504
57505 2007-12-03  James Youngman  <jay@gnu.org>
57506
57507         * doc/regexprops-generic.texi: change "an close-group" to "a
57508         close-group" and "illegal" to "not allowed".
57509
57510 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57511
57512         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57513         pr_byname.h. Needed for the rare case when the maintainer has done
57514         "make maintainer-clean" in the source directory and then attempts a
57515         build outside the source directory.
57516         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57517         scripts_byname.h.
57518
57519 2007-12-02  Martin Lambers <marlam@marlam.de>
57520             Bruno Haible  <bruno@clisp.org>
57521
57522         * lib/getpagesize.h: Remove file.
57523         * lib/unistd.in.h: Include declaration of getpagesize here.
57524         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57525         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57526         HAVE_SYS_PARAM_H.
57527         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57528         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57529         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57530         (Depends-on): Add unistd.
57531         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57532         (Include): Use <unistd.h> instead of getpagesize.h.
57533         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57534         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57535         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57536         gl_GETPAGESIZE invocation, already handled by module dependency.
57537         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57538
57539 2007-12-02  Bruno Haible  <bruno@clisp.org>
57540
57541         * modules/strings-tests: New file.
57542         * tests/test-strings.c: New file.
57543
57544         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57545         * lib/strings.in.h: New file.
57546         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57547         * m4/strings_h.m4: New file.
57548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57549         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57550         * modules/strings: New file.
57551         * modules/string (Makefile.am): Update.
57552         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57553         Reported by Karl Berry.
57554
57555 2007-12-01  Eric Blake  <ebb9@byu.net>
57556
57557         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57558         accomodate fix in cygwin 1.5.25.
57559
57560 2007-12-01  Jim Meyering  <meyering@redhat.com>
57561
57562         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57563         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57564         that would inhibit utf8-optimization of a regexp containing line-
57565         or buffer-anchors, e.g., `^', `$'.
57566
57567 2007-11-30  Bruno Haible  <bruno@clisp.org>
57568
57569         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57570         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57571         glthread_recursive_lock_init.
57572         * lib/lock.c (glthread_recursive_lock_init)
57573         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57574         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57575
57576 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57577
57578         New function qset_acl, like set_acl but with syscall semantics.
57579         * lib/acl.h (qset_acl): New decl.
57580         * lib/acl.c (qset_acl): New function.
57581         (set_acl): Use new function.  Use more-consistent diagnostics.
57582
57583 2007-11-28  Jim Meyering  <meyering@redhat.com>
57584
57585         * modules/physmem (License): Change from GPL to LGPLv2+.
57586
57587 2007-11-26  Bruno Haible  <bruno@clisp.org>
57588
57589         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57590         'long double' type has excess precision.
57591         Reported by Jim Meyering in
57592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57593
57594 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57595
57596         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
57597         Sync from <http://gnu.org/licenses>.
57598         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
57599         with license text from same location.
57600         * doc/maintain.texi, doc/standards.texi:  Sync from
57601         <http://savannah.gnu.org/projects/gnustandards>.
57602
57603 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
57604         and Jim Meyering  <meyering@redhat.com>
57605
57606         Adjust getdate' grammar to accept a slightly more regular language.
57607         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
57608         Before, the former was rejected.
57609         * lib/getdate.y (digits_to_date_time): New function, factored
57610         out of ...
57611         (number): ...here.  Just call digits_to_date_time.
57612         (hybrid): New non-terminal to handle an <unsigned number,
57613         signed relative offset> sequence consistently.
57614
57615 2007-11-18  Jim Meyering  <meyering@redhat.com>
57616
57617         Pull my changes from coreutils:
57618         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
57619         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
57620         use of $gnulib_tool_option_extras, so that it's separated from the
57621         preceding argument.
57622
57623         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
57624         * build-aux/bootstrap (cp_mark_as_generated): Create any required
57625         parent destination directories before copying a file into place.
57626
57627 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57628
57629         bootstrap: work also with 4-argument variant of AC_INIT
57630         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
57631
57632 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57633
57634         Port test-getaddrinfo to Solaris.
57635         Problem reported by Bruno Haible in
57636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
57637         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
57638         explanation of setting 'hints'.
57639         Don't reject an implementation merely because it returns EAI_SERVICE.
57640         (EAI_SERVICE): Define to 0 if not defined.
57641
57642 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57643
57644         The license of gnu-make and posix-shell is now "GPLed build tool".
57645         * modules/gnu-make (License): Likewise.
57646         * modules/posix-shell (License): Likewise.
57647
57648         New module posix-shell, for determining a POSIX shell
57649         or perhaps something that is close enough to a POSIX shell.
57650         * m4/posix-shell.m4: New file.
57651         * modules/posix-shell: New file.
57652
57653         * MODULES.html.sh: Mention new module.
57654
57655         New module gnu-make, for determining whether we're using GNU Make.
57656         * m4/gnu-make.m4: New file.
57657         * modules/gnu-make: New file.
57658         * MODULES.html.sh: Mention new module.
57659
57660 2007-11-14  Jim Meyering  <meyering@redhat.com>
57661
57662         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
57663         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
57664         use this macro to create a function _definition_.
57665         Remove useless "#undef ARGMATCH_DIE".
57666
57667 2007-11-14  Bruno Haible  <bruno@clisp.org>
57668
57669         * lib/config.charset: Update for OpenBSD 4.1.
57670         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
57671
57672 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
57673
57674         Document 64-bit #if problems in stdint.texi.
57675         * doc/headers/stdint.texi (stdint.h): Mention problems with
57676         64-bit-#if, and how to work around them.
57677
57678         Don't insist on 'long long int' support in the preprocessor.  It
57679         breaks too many things.  For example, PRIdMAX still uses a 'long
57680         long int' format with the latest Sun compiler, even though
57681         HAVE_LONG_LONG_INT isn't defined due to that compiler's
57682         preprocessor problem.  This causes the latest coreutils to dump
57683         core on Solaris 10 sparc with the Sun C compiler.
57684         Instead, fix the 2007-10-16 problem in a different way, by evaluating
57685         the troublesome expressions at configure-time, not at #if-time.
57686         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
57687         preprocessor.
57688         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
57689         compile-time C checks, done at 'configure'-time.
57690         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
57691         * modules/inttypes (Makefile): Substitute the new symbols that
57692         gl_INTTYPES_H now generates.
57693         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
57694
57695 2007-11-12  Bruno Haible  <bruno@clisp.org>
57696
57697         Tests for Unicode character classification functions.
57698
57699         * modules/unictype/bidicategory-byname-tests: New file.
57700         * modules/unictype/bidicategory-name-tests: New file.
57701         * modules/unictype/bidicategory-of-tests: New file.
57702         * modules/unictype/bidicategory-test-tests: New file.
57703         * modules/unictype/block-list-tests: New file.
57704         * modules/unictype/block-of-tests: New file.
57705         * modules/unictype/block-test-tests: New file.
57706         * modules/unictype/category-C-tests: New file.
57707         * modules/unictype/category-Cc-tests: New file.
57708         * modules/unictype/category-Cf-tests: New file.
57709         * modules/unictype/category-Cn-tests: New file.
57710         * modules/unictype/category-Co-tests: New file.
57711         * modules/unictype/category-Cs-tests: New file.
57712         * modules/unictype/category-L-tests: New file.
57713         * modules/unictype/category-Ll-tests: New file.
57714         * modules/unictype/category-Lm-tests: New file.
57715         * modules/unictype/category-Lo-tests: New file.
57716         * modules/unictype/category-Lt-tests: New file.
57717         * modules/unictype/category-Lu-tests: New file.
57718         * modules/unictype/category-M-tests: New file.
57719         * modules/unictype/category-Mc-tests: New file.
57720         * modules/unictype/category-Me-tests: New file.
57721         * modules/unictype/category-Mn-tests: New file.
57722         * modules/unictype/category-N-tests: New file.
57723         * modules/unictype/category-Nd-tests: New file.
57724         * modules/unictype/category-Nl-tests: New file.
57725         * modules/unictype/category-No-tests: New file.
57726         * modules/unictype/category-P-tests: New file.
57727         * modules/unictype/category-Pc-tests: New file.
57728         * modules/unictype/category-Pd-tests: New file.
57729         * modules/unictype/category-Pe-tests: New file.
57730         * modules/unictype/category-Pf-tests: New file.
57731         * modules/unictype/category-Pi-tests: New file.
57732         * modules/unictype/category-Po-tests: New file.
57733         * modules/unictype/category-Ps-tests: New file.
57734         * modules/unictype/category-S-tests: New file.
57735         * modules/unictype/category-Sc-tests: New file.
57736         * modules/unictype/category-Sk-tests: New file.
57737         * modules/unictype/category-Sm-tests: New file.
57738         * modules/unictype/category-So-tests: New file.
57739         * modules/unictype/category-Z-tests: New file.
57740         * modules/unictype/category-Zl-tests: New file.
57741         * modules/unictype/category-Zp-tests: New file.
57742         * modules/unictype/category-Zs-tests: New file.
57743         * modules/unictype/category-and-not-tests: New file.
57744         * modules/unictype/category-and-tests: New file.
57745         * modules/unictype/category-byname-tests: New file.
57746         * modules/unictype/category-name-tests: New file.
57747         * modules/unictype/category-none-tests: New file.
57748         * modules/unictype/category-of-tests: New file.
57749         * modules/unictype/category-or-tests: New file.
57750         * modules/unictype/category-test-withtable-tests: New file.
57751         * modules/unictype/combining-class-tests: New file.
57752         * modules/unictype/ctype-alnum-tests: New file.
57753         * modules/unictype/ctype-alpha-tests: New file.
57754         * modules/unictype/ctype-blank-tests: New file.
57755         * modules/unictype/ctype-cntrl-tests: New file.
57756         * modules/unictype/ctype-digit-tests: New file.
57757         * modules/unictype/ctype-graph-tests: New file.
57758         * modules/unictype/ctype-lower-tests: New file.
57759         * modules/unictype/ctype-print-tests: New file.
57760         * modules/unictype/ctype-punct-tests: New file.
57761         * modules/unictype/ctype-space-tests: New file.
57762         * modules/unictype/ctype-upper-tests: New file.
57763         * modules/unictype/ctype-xdigit-tests: New file.
57764         * modules/unictype/decimal-digit-tests: New file.
57765         * modules/unictype/digit-tests: New file.
57766         * modules/unictype/mirror-tests: New file.
57767         * modules/unictype/numeric-tests: New file.
57768         * modules/unictype/property-alphabetic-tests: New file.
57769         * modules/unictype/property-ascii-hex-digit-tests: New file.
57770         * modules/unictype/property-bidi-arabic-digit-tests: New file.
57771         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
57772         * modules/unictype/property-bidi-block-separator-tests: New file.
57773         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
57774         * modules/unictype/property-bidi-common-separator-tests: New file.
57775         * modules/unictype/property-bidi-control-tests: New file.
57776         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
57777         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
57778         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
57779         * modules/unictype/property-bidi-european-digit-tests: New file.
57780         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
57781         * modules/unictype/property-bidi-left-to-right-tests: New file.
57782         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
57783         * modules/unictype/property-bidi-other-neutral-tests: New file.
57784         * modules/unictype/property-bidi-pdf-tests: New file.
57785         * modules/unictype/property-bidi-segment-separator-tests: New file.
57786         * modules/unictype/property-bidi-whitespace-tests: New file.
57787         * modules/unictype/property-byname-tests: New file.
57788         * modules/unictype/property-combining-tests: New file.
57789         * modules/unictype/property-composite-tests: New file.
57790         * modules/unictype/property-currency-symbol-tests: New file.
57791         * modules/unictype/property-dash-tests: New file.
57792         * modules/unictype/property-decimal-digit-tests: New file.
57793         * modules/unictype/property-default-ignorable-code-point-tests: New file.
57794         * modules/unictype/property-deprecated-tests: New file.
57795         * modules/unictype/property-diacritic-tests: New file.
57796         * modules/unictype/property-extender-tests: New file.
57797         * modules/unictype/property-format-control-tests: New file.
57798         * modules/unictype/property-grapheme-base-tests: New file.
57799         * modules/unictype/property-grapheme-extend-tests: New file.
57800         * modules/unictype/property-grapheme-link-tests: New file.
57801         * modules/unictype/property-hex-digit-tests: New file.
57802         * modules/unictype/property-hyphen-tests: New file.
57803         * modules/unictype/property-id-continue-tests: New file.
57804         * modules/unictype/property-id-start-tests: New file.
57805         * modules/unictype/property-ideographic-tests: New file.
57806         * modules/unictype/property-ids-binary-operator-tests: New file.
57807         * modules/unictype/property-ids-trinary-operator-tests: New file.
57808         * modules/unictype/property-ignorable-control-tests: New file.
57809         * modules/unictype/property-iso-control-tests: New file.
57810         * modules/unictype/property-join-control-tests: New file.
57811         * modules/unictype/property-left-of-pair-tests: New file.
57812         * modules/unictype/property-line-separator-tests: New file.
57813         * modules/unictype/property-logical-order-exception-tests: New file.
57814         * modules/unictype/property-lowercase-tests: New file.
57815         * modules/unictype/property-math-tests: New file.
57816         * modules/unictype/property-non-break-tests: New file.
57817         * modules/unictype/property-not-a-character-tests: New file.
57818         * modules/unictype/property-numeric-tests: New file.
57819         * modules/unictype/property-other-alphabetic-tests: New file.
57820         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
57821         * modules/unictype/property-other-grapheme-extend-tests: New file.
57822         * modules/unictype/property-other-id-continue-tests: New file.
57823         * modules/unictype/property-other-id-start-tests: New file.
57824         * modules/unictype/property-other-lowercase-tests: New file.
57825         * modules/unictype/property-other-math-tests: New file.
57826         * modules/unictype/property-other-uppercase-tests: New file.
57827         * modules/unictype/property-paired-punctuation-tests: New file.
57828         * modules/unictype/property-paragraph-separator-tests: New file.
57829         * modules/unictype/property-pattern-syntax-tests: New file.
57830         * modules/unictype/property-pattern-white-space-tests: New file.
57831         * modules/unictype/property-private-use-tests: New file.
57832         * modules/unictype/property-punctuation-tests: New file.
57833         * modules/unictype/property-quotation-mark-tests: New file.
57834         * modules/unictype/property-radical-tests: New file.
57835         * modules/unictype/property-sentence-terminal-tests: New file.
57836         * modules/unictype/property-soft-dotted-tests: New file.
57837         * modules/unictype/property-space-tests: New file.
57838         * modules/unictype/property-terminal-punctuation-tests: New file.
57839         * modules/unictype/property-test-tests: New file.
57840         * modules/unictype/property-titlecase-tests: New file.
57841         * modules/unictype/property-unassigned-code-value-tests: New file.
57842         * modules/unictype/property-unified-ideograph-tests: New file.
57843         * modules/unictype/property-uppercase-tests: New file.
57844         * modules/unictype/property-variation-selector-tests: New file.
57845         * modules/unictype/property-white-space-tests: New file.
57846         * modules/unictype/property-xid-continue-tests: New file.
57847         * modules/unictype/property-xid-start-tests: New file.
57848         * modules/unictype/property-zero-width-tests: New file.
57849         * modules/unictype/scripts-tests: New file.
57850         * modules/unictype/syntax-c-ident-tests: New file.
57851         * modules/unictype/syntax-c-whitespace-tests: New file.
57852         * modules/unictype/syntax-java-ident-tests: New file.
57853         * modules/unictype/syntax-java-whitespace-tests: New file.
57854         * tests/unictype/test-bidi_byname.c: New file.
57855         * tests/unictype/test-bidi_name.c: New file.
57856         * tests/unictype/test-bidi_of.c: New file.
57857         * tests/unictype/test-bidi_test.c: New file.
57858         * tests/unictype/test-block_list.c: New file.
57859         * tests/unictype/test-block_of.c: New file.
57860         * tests/unictype/test-block_test.c: New file.
57861         * tests/unictype/test-categ_and.c: New file.
57862         * tests/unictype/test-categ_and_not.c: New file.
57863         * tests/unictype/test-categ_byname.c: New file.
57864         * tests/unictype/test-categ_name.c: New file.
57865         * tests/unictype/test-categ_none.c: New file.
57866         * tests/unictype/test-categ_of.c: New file.
57867         * tests/unictype/test-categ_or.c: New file.
57868         * tests/unictype/test-categ_test_withtable.c: New file.
57869         * tests/unictype/test-combining.c: New file.
57870         * tests/unictype/test-decdigit.c: New file.
57871         * tests/unictype/test-digit.c: New file.
57872         * tests/unictype/test-mirror.c: New file.
57873         * tests/unictype/test-numeric.c: New file.
57874         * tests/unictype/test-pr_byname.c: New file.
57875         * tests/unictype/test-pr_test.c: New file.
57876         * tests/unictype/test-predicate-part1.h: New file.
57877         * tests/unictype/test-predicate-part2.h: New file.
57878         * tests/unictype/test-scripts.c: New file.
57879         * tests/unictype/test-sy_c_ident.c: New file.
57880         * tests/unictype/test-sy_java_ident.c: New file.
57881
57882         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
57883         for Unicode 5.0.0.
57884         * tests/unictype/test-categ_Cc.c: Likewise.
57885         * tests/unictype/test-categ_Cf.c: Likewise.
57886         * tests/unictype/test-categ_Cn.c: Likewise.
57887         * tests/unictype/test-categ_Co.c: Likewise.
57888         * tests/unictype/test-categ_Cs.c: Likewise.
57889         * tests/unictype/test-categ_L.c: Likewise.
57890         * tests/unictype/test-categ_Ll.c: Likewise.
57891         * tests/unictype/test-categ_Lm.c: Likewise.
57892         * tests/unictype/test-categ_Lo.c: Likewise.
57893         * tests/unictype/test-categ_Lt.c: Likewise.
57894         * tests/unictype/test-categ_Lu.c: Likewise.
57895         * tests/unictype/test-categ_M.c: Likewise.
57896         * tests/unictype/test-categ_Mc.c: Likewise.
57897         * tests/unictype/test-categ_Me.c: Likewise.
57898         * tests/unictype/test-categ_Mn.c: Likewise.
57899         * tests/unictype/test-categ_N.c: Likewise.
57900         * tests/unictype/test-categ_Nd.c: Likewise.
57901         * tests/unictype/test-categ_Nl.c: Likewise.
57902         * tests/unictype/test-categ_No.c: Likewise.
57903         * tests/unictype/test-categ_P.c: Likewise.
57904         * tests/unictype/test-categ_Pc.c: Likewise.
57905         * tests/unictype/test-categ_Pd.c: Likewise.
57906         * tests/unictype/test-categ_Pe.c: Likewise.
57907         * tests/unictype/test-categ_Pf.c: Likewise.
57908         * tests/unictype/test-categ_Pi.c: Likewise.
57909         * tests/unictype/test-categ_Po.c: Likewise.
57910         * tests/unictype/test-categ_Ps.c: Likewise.
57911         * tests/unictype/test-categ_S.c: Likewise.
57912         * tests/unictype/test-categ_Sc.c: Likewise.
57913         * tests/unictype/test-categ_Sk.c: Likewise.
57914         * tests/unictype/test-categ_Sm.c: Likewise.
57915         * tests/unictype/test-categ_So.c: Likewise.
57916         * tests/unictype/test-categ_Z.c: Likewise.
57917         * tests/unictype/test-categ_Zl.c: Likewise.
57918         * tests/unictype/test-categ_Zp.c: Likewise.
57919         * tests/unictype/test-categ_Zs.c: Likewise.
57920         * tests/unictype/test-ctype_alnum.c: Likewise.
57921         * tests/unictype/test-ctype_alpha.c: Likewise.
57922         * tests/unictype/test-ctype_blank.c: Likewise.
57923         * tests/unictype/test-ctype_cntrl.c: Likewise.
57924         * tests/unictype/test-ctype_digit.c: Likewise.
57925         * tests/unictype/test-ctype_graph.c: Likewise.
57926         * tests/unictype/test-ctype_lower.c: Likewise.
57927         * tests/unictype/test-ctype_print.c: Likewise.
57928         * tests/unictype/test-ctype_punct.c: Likewise.
57929         * tests/unictype/test-ctype_space.c: Likewise.
57930         * tests/unictype/test-ctype_upper.c: Likewise.
57931         * tests/unictype/test-ctype_xdigit.c: Likewise.
57932         * tests/unictype/test-decdigit.h: Likewise.
57933         * tests/unictype/test-digit.h: Likewise.
57934         * tests/unictype/test-numeric.h: Likewise.
57935         * tests/unictype/test-pr_alphabetic.c: Likewise.
57936         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
57937         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57938         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57939         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
57940         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57941         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
57942         * tests/unictype/test-pr_bidi_control.c: Likewise.
57943         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
57944         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
57945         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57946         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57947         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57948         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57949         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57950         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57951         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57952         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57953         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57954         * tests/unictype/test-pr_combining.c: Likewise.
57955         * tests/unictype/test-pr_composite.c: Likewise.
57956         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57957         * tests/unictype/test-pr_dash.c: Likewise.
57958         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57959         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57960         * tests/unictype/test-pr_deprecated.c: Likewise.
57961         * tests/unictype/test-pr_diacritic.c: Likewise.
57962         * tests/unictype/test-pr_extender.c: Likewise.
57963         * tests/unictype/test-pr_format_control.c: Likewise.
57964         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57965         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57966         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57967         * tests/unictype/test-pr_hex_digit.c: Likewise.
57968         * tests/unictype/test-pr_hyphen.c: Likewise.
57969         * tests/unictype/test-pr_id_continue.c: Likewise.
57970         * tests/unictype/test-pr_id_start.c: Likewise.
57971         * tests/unictype/test-pr_ideographic.c: Likewise.
57972         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57973         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57974         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57975         * tests/unictype/test-pr_iso_control.c: Likewise.
57976         * tests/unictype/test-pr_join_control.c: Likewise.
57977         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57978         * tests/unictype/test-pr_line_separator.c: Likewise.
57979         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57980         * tests/unictype/test-pr_lowercase.c: Likewise.
57981         * tests/unictype/test-pr_math.c: Likewise.
57982         * tests/unictype/test-pr_non_break.c: Likewise.
57983         * tests/unictype/test-pr_not_a_character.c: Likewise.
57984         * tests/unictype/test-pr_numeric.c: Likewise.
57985         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57986         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57987         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57988         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57989         * tests/unictype/test-pr_other_id_start.c: Likewise.
57990         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57991         * tests/unictype/test-pr_other_math.c: Likewise.
57992         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57993         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57994         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57995         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57996         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57997         * tests/unictype/test-pr_private_use.c: Likewise.
57998         * tests/unictype/test-pr_punctuation.c: Likewise.
57999         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58000         * tests/unictype/test-pr_radical.c: Likewise.
58001         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58002         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58003         * tests/unictype/test-pr_space.c: Likewise.
58004         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58005         * tests/unictype/test-pr_titlecase.c: Likewise.
58006         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58007         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58008         * tests/unictype/test-pr_uppercase.c: Likewise.
58009         * tests/unictype/test-pr_variation_selector.c: Likewise.
58010         * tests/unictype/test-pr_white_space.c: Likewise.
58011         * tests/unictype/test-pr_xid_continue.c: Likewise.
58012         * tests/unictype/test-pr_xid_start.c: Likewise.
58013         * tests/unictype/test-pr_zero_width.c: Likewise.
58014         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58015         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58016
58017 2007-11-12  Bruno Haible  <bruno@clisp.org>
58018
58019         Unicode character classification functions.
58020         * lib/unictype.h: New file.
58021         * modules/unictype/base: New file.
58022         * modules/unictype/category-L: New file.
58023         * modules/unictype/category-Lu: New file.
58024         * modules/unictype/category-Ll: New file.
58025         * modules/unictype/category-Lt: New file.
58026         * modules/unictype/category-Lm: New file.
58027         * modules/unictype/category-Lo: New file.
58028         * modules/unictype/category-M: New file.
58029         * modules/unictype/category-Mn: New file.
58030         * modules/unictype/category-Mc: New file.
58031         * modules/unictype/category-Me: New file.
58032         * modules/unictype/category-N: New file.
58033         * modules/unictype/category-Nd: New file.
58034         * modules/unictype/category-Nl: New file.
58035         * modules/unictype/category-No: New file.
58036         * modules/unictype/category-P: New file.
58037         * modules/unictype/category-Pc: New file.
58038         * modules/unictype/category-Pd: New file.
58039         * modules/unictype/category-Ps: New file.
58040         * modules/unictype/category-Pe: New file.
58041         * modules/unictype/category-Pi: New file.
58042         * modules/unictype/category-Pf: New file.
58043         * modules/unictype/category-Po: New file.
58044         * modules/unictype/category-S: New file.
58045         * modules/unictype/category-Sm: New file.
58046         * modules/unictype/category-Sc: New file.
58047         * modules/unictype/category-Sk: New file.
58048         * modules/unictype/category-So: New file.
58049         * modules/unictype/category-Z: New file.
58050         * modules/unictype/category-Zs: New file.
58051         * modules/unictype/category-Zl: New file.
58052         * modules/unictype/category-Zp: New file.
58053         * modules/unictype/category-C: New file.
58054         * modules/unictype/category-Cc: New file.
58055         * modules/unictype/category-Cf: New file.
58056         * modules/unictype/category-Cs: New file.
58057         * modules/unictype/category-Co: New file.
58058         * modules/unictype/category-Cn: New file.
58059         * modules/unictype/category-or: New file.
58060         * modules/unictype/category-of: New file.
58061         * modules/unictype/category-test: New file.
58062         * modules/unictype/category-test-withtable: New file.
58063         * modules/unictype/category-byname: New file.
58064         * modules/unictype/category-none: New file.
58065         * modules/unictype/category-and: New file.
58066         * modules/unictype/category-and-not: New file.
58067         * modules/unictype/category-name: New file.
58068         * modules/unictype/combining-class: New file.
58069         * modules/unictype/category-all: New file.
58070         * modules/unictype/bidicategory-all: New file.
58071         * modules/unictype/bidicategory-byname: New file.
58072         * modules/unictype/bidicategory-name: New file.
58073         * modules/unictype/bidicategory-of: New file.
58074         * modules/unictype/bidicategory-test: New file.
58075         * modules/unictype/decimal-digit: New file.
58076         * modules/unictype/digit: New file.
58077         * modules/unictype/numeric: New file.
58078         * modules/unictype/mirror: New file.
58079         * modules/unictype/property-white-space: New file.
58080         * modules/unictype/property-alphabetic: New file.
58081         * modules/unictype/property-other-alphabetic: New file.
58082         * modules/unictype/property-not-a-character: New file.
58083         * modules/unictype/property-default-ignorable-code-point: New file.
58084         * modules/unictype/property-other-default-ignorable-code-point: New
58085         file.
58086         * modules/unictype/property-deprecated: New file.
58087         * modules/unictype/property-logical-order-exception: New file.
58088         * modules/unictype/property-variation-selector: New file.
58089         * modules/unictype/property-private-use: New file.
58090         * modules/unictype/property-unassigned-code-value: New file.
58091         * modules/unictype/property-uppercase: New file.
58092         * modules/unictype/property-other-uppercase: New file.
58093         * modules/unictype/property-lowercase: New file.
58094         * modules/unictype/property-other-lowercase: New file.
58095         * modules/unictype/property-titlecase: New file.
58096         * modules/unictype/property-soft-dotted: New file.
58097         * modules/unictype/property-id-start: New file.
58098         * modules/unictype/property-other-id-start: New file.
58099         * modules/unictype/property-id-continue: New file.
58100         * modules/unictype/property-other-id-continue: New file.
58101         * modules/unictype/property-xid-start: New file.
58102         * modules/unictype/property-xid-continue: New file.
58103         * modules/unictype/property-pattern-white-space: New file.
58104         * modules/unictype/property-pattern-syntax: New file.
58105         * modules/unictype/property-join-control: New file.
58106         * modules/unictype/property-grapheme-base: New file.
58107         * modules/unictype/property-grapheme-extend: New file.
58108         * modules/unictype/property-other-grapheme-extend: New file.
58109         * modules/unictype/property-grapheme-link: New file.
58110         * modules/unictype/property-bidi-control: New file.
58111         * modules/unictype/property-bidi-left-to-right: New file.
58112         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58113         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58114         * modules/unictype/property-bidi-european-digit: New file.
58115         * modules/unictype/property-bidi-eur-num-separator: New file.
58116         * modules/unictype/property-bidi-eur-num-terminator: New file.
58117         * modules/unictype/property-bidi-arabic-digit: New file.
58118         * modules/unictype/property-bidi-common-separator: New file.
58119         * modules/unictype/property-bidi-block-separator: New file.
58120         * modules/unictype/property-bidi-segment-separator: New file.
58121         * modules/unictype/property-bidi-whitespace: New file.
58122         * modules/unictype/property-bidi-non-spacing-mark: New file.
58123         * modules/unictype/property-bidi-boundary-neutral: New file.
58124         * modules/unictype/property-bidi-pdf: New file.
58125         * modules/unictype/property-bidi-embedding-or-override: New file.
58126         * modules/unictype/property-bidi-other-neutral: New file.
58127         * modules/unictype/property-hex-digit: New file.
58128         * modules/unictype/property-ascii-hex-digit: New file.
58129         * modules/unictype/property-ideographic: New file.
58130         * modules/unictype/property-unified-ideograph: New file.
58131         * modules/unictype/property-radical: New file.
58132         * modules/unictype/property-ids-binary-operator: New file.
58133         * modules/unictype/property-ids-trinary-operator: New file.
58134         * modules/unictype/property-zero-width: New file.
58135         * modules/unictype/property-space: New file.
58136         * modules/unictype/property-non-break: New file.
58137         * modules/unictype/property-iso-control: New file.
58138         * modules/unictype/property-format-control: New file.
58139         * modules/unictype/property-dash: New file.
58140         * modules/unictype/property-hyphen: New file.
58141         * modules/unictype/property-punctuation: New file.
58142         * modules/unictype/property-line-separator: New file.
58143         * modules/unictype/property-paragraph-separator: New file.
58144         * modules/unictype/property-quotation-mark: New file.
58145         * modules/unictype/property-sentence-terminal: New file.
58146         * modules/unictype/property-terminal-punctuation: New file.
58147         * modules/unictype/property-currency-symbol: New file.
58148         * modules/unictype/property-math: New file.
58149         * modules/unictype/property-other-math: New file.
58150         * modules/unictype/property-paired-punctuation: New file.
58151         * modules/unictype/property-left-of-pair: New file.
58152         * modules/unictype/property-combining: New file.
58153         * modules/unictype/property-composite: New file.
58154         * modules/unictype/property-decimal-digit: New file.
58155         * modules/unictype/property-numeric: New file.
58156         * modules/unictype/property-diacritic: New file.
58157         * modules/unictype/property-extender: New file.
58158         * modules/unictype/property-ignorable-control: New file.
58159         * modules/unictype/property-test: New file.
58160         * modules/unictype/property-byname: New file.
58161         * modules/unictype/property-all: New file.
58162         * modules/unictype/scripts: New file.
58163         * modules/unictype/scripts-all: New file.
58164         * modules/unictype/block-of: New file.
58165         * modules/unictype/block-test: New file.
58166         * modules/unictype/block-list: New file.
58167         * modules/unictype/block-all: New file.
58168         * modules/unictype/syntax-c-whitespace: New file.
58169         * modules/unictype/syntax-java-whitespace: New file.
58170         * modules/unictype/syntax-c-ident: New file.
58171         * modules/unictype/syntax-java-ident: New file.
58172         * modules/unictype/ctype-alnum: New file.
58173         * modules/unictype/ctype-alpha: New file.
58174         * modules/unictype/ctype-cntrl: New file.
58175         * modules/unictype/ctype-digit: New file.
58176         * modules/unictype/ctype-graph: New file.
58177         * modules/unictype/ctype-lower: New file.
58178         * modules/unictype/ctype-print: New file.
58179         * modules/unictype/ctype-punct: New file.
58180         * modules/unictype/ctype-space: New file.
58181         * modules/unictype/ctype-upper: New file.
58182         * modules/unictype/ctype-xdigit: New file.
58183         * modules/unictype/ctype-blank: New file.
58184         * lib/unictype/bidi_byname.c: New file.
58185         * lib/unictype/bidi_name.c: New file.
58186         * lib/unictype/bidi_of.c: New file.
58187         * lib/unictype/bidi_test.c: New file.
58188         * lib/unictype/bitmap.h: New file.
58189         * lib/unictype/block_test.c: New file.
58190         * lib/unictype/blocks.c: New file.
58191         * lib/unictype/categ_C.c: New file.
58192         * lib/unictype/categ_Cc.c: New file.
58193         * lib/unictype/categ_Cf.c: New file.
58194         * lib/unictype/categ_Cn.c: New file.
58195         * lib/unictype/categ_Co.c: New file.
58196         * lib/unictype/categ_Cs.c: New file.
58197         * lib/unictype/categ_L.c: New file.
58198         * lib/unictype/categ_Ll.c: New file.
58199         * lib/unictype/categ_Lm.c: New file.
58200         * lib/unictype/categ_Lo.c: New file.
58201         * lib/unictype/categ_Lt.c: New file.
58202         * lib/unictype/categ_Lu.c: New file.
58203         * lib/unictype/categ_M.c: New file.
58204         * lib/unictype/categ_Mc.c: New file.
58205         * lib/unictype/categ_Me.c: New file.
58206         * lib/unictype/categ_Mn.c: New file.
58207         * lib/unictype/categ_N.c: New file.
58208         * lib/unictype/categ_Nd.c: New file.
58209         * lib/unictype/categ_Nl.c: New file.
58210         * lib/unictype/categ_No.c: New file.
58211         * lib/unictype/categ_P.c: New file.
58212         * lib/unictype/categ_Pc.c: New file.
58213         * lib/unictype/categ_Pd.c: New file.
58214         * lib/unictype/categ_Pe.c: New file.
58215         * lib/unictype/categ_Pf.c: New file.
58216         * lib/unictype/categ_Pi.c: New file.
58217         * lib/unictype/categ_Po.c: New file.
58218         * lib/unictype/categ_Ps.c: New file.
58219         * lib/unictype/categ_S.c: New file.
58220         * lib/unictype/categ_Sc.c: New file.
58221         * lib/unictype/categ_Sk.c: New file.
58222         * lib/unictype/categ_Sm.c: New file.
58223         * lib/unictype/categ_So.c: New file.
58224         * lib/unictype/categ_Z.c: New file.
58225         * lib/unictype/categ_Zl.c: New file.
58226         * lib/unictype/categ_Zp.c: New file.
58227         * lib/unictype/categ_Zs.c: New file.
58228         * lib/unictype/categ_and.c: New file.
58229         * lib/unictype/categ_and_not.c: New file.
58230         * lib/unictype/categ_byname.c: New file.
58231         * lib/unictype/categ_name.c: New file.
58232         * lib/unictype/categ_none.c: New file.
58233         * lib/unictype/categ_of.c: New file.
58234         * lib/unictype/categ_or.c: New file.
58235         * lib/unictype/categ_test.c: New file.
58236         * lib/unictype/combining.c: New file.
58237         * lib/unictype/ctype_alnum.c: New file.
58238         * lib/unictype/ctype_alpha.c: New file.
58239         * lib/unictype/ctype_blank.c: New file.
58240         * lib/unictype/ctype_cntrl.c: New file.
58241         * lib/unictype/ctype_digit.c: New file.
58242         * lib/unictype/ctype_graph.c: New file.
58243         * lib/unictype/ctype_lower.c: New file.
58244         * lib/unictype/ctype_print.c: New file.
58245         * lib/unictype/ctype_punct.c: New file.
58246         * lib/unictype/ctype_space.c: New file.
58247         * lib/unictype/ctype_upper.c: New file.
58248         * lib/unictype/ctype_xdigit.c: New file.
58249         * lib/unictype/decdigit.c: New file.
58250         * lib/unictype/digit.c: New file.
58251         * lib/unictype/identsyntaxmap.h: New file.
58252         * lib/unictype/mirror.c: New file.
58253         * lib/unictype/numeric.c: New file.
58254         * lib/unictype/pr_alphabetic.c: New file.
58255         * lib/unictype/pr_ascii_hex_digit.c: New file.
58256         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58257         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58258         * lib/unictype/pr_bidi_block_separator.c: New file.
58259         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58260         * lib/unictype/pr_bidi_common_separator.c: New file.
58261         * lib/unictype/pr_bidi_control.c: New file.
58262         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58263         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58264         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58265         * lib/unictype/pr_bidi_european_digit.c: New file.
58266         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58267         * lib/unictype/pr_bidi_left_to_right.c: New file.
58268         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58269         * lib/unictype/pr_bidi_other_neutral.c: New file.
58270         * lib/unictype/pr_bidi_pdf.c: New file.
58271         * lib/unictype/pr_bidi_segment_separator.c: New file.
58272         * lib/unictype/pr_bidi_whitespace.c: New file.
58273         * lib/unictype/pr_byname.c: New file.
58274         * lib/unictype/pr_byname.gperf: New file.
58275         * lib/unictype/pr_combining.c: New file.
58276         * lib/unictype/pr_composite.c: New file.
58277         * lib/unictype/pr_currency_symbol.c: New file.
58278         * lib/unictype/pr_dash.c: New file.
58279         * lib/unictype/pr_decimal_digit.c: New file.
58280         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58281         * lib/unictype/pr_deprecated.c: New file.
58282         * lib/unictype/pr_diacritic.c: New file.
58283         * lib/unictype/pr_extender.c: New file.
58284         * lib/unictype/pr_format_control.c: New file.
58285         * lib/unictype/pr_grapheme_base.c: New file.
58286         * lib/unictype/pr_grapheme_extend.c: New file.
58287         * lib/unictype/pr_grapheme_link.c: New file.
58288         * lib/unictype/pr_hex_digit.c: New file.
58289         * lib/unictype/pr_hyphen.c: New file.
58290         * lib/unictype/pr_id_continue.c: New file.
58291         * lib/unictype/pr_id_start.c: New file.
58292         * lib/unictype/pr_ideographic.c: New file.
58293         * lib/unictype/pr_ids_binary_operator.c: New file.
58294         * lib/unictype/pr_ids_trinary_operator.c: New file.
58295         * lib/unictype/pr_ignorable_control.c: New file.
58296         * lib/unictype/pr_iso_control.c: New file.
58297         * lib/unictype/pr_join_control.c: New file.
58298         * lib/unictype/pr_left_of_pair.c: New file.
58299         * lib/unictype/pr_line_separator.c: New file.
58300         * lib/unictype/pr_logical_order_exception.c: New file.
58301         * lib/unictype/pr_lowercase.c: New file.
58302         * lib/unictype/pr_math.c: New file.
58303         * lib/unictype/pr_non_break.c: New file.
58304         * lib/unictype/pr_not_a_character.c: New file.
58305         * lib/unictype/pr_numeric.c: New file.
58306         * lib/unictype/pr_other_alphabetic.c: New file.
58307         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58308         * lib/unictype/pr_other_grapheme_extend.c: New file.
58309         * lib/unictype/pr_other_id_continue.c: New file.
58310         * lib/unictype/pr_other_id_start.c: New file.
58311         * lib/unictype/pr_other_lowercase.c: New file.
58312         * lib/unictype/pr_other_math.c: New file.
58313         * lib/unictype/pr_other_uppercase.c: New file.
58314         * lib/unictype/pr_paired_punctuation.c: New file.
58315         * lib/unictype/pr_paragraph_separator.c: New file.
58316         * lib/unictype/pr_pattern_syntax.c: New file.
58317         * lib/unictype/pr_pattern_white_space.c: New file.
58318         * lib/unictype/pr_private_use.c: New file.
58319         * lib/unictype/pr_punctuation.c: New file.
58320         * lib/unictype/pr_quotation_mark.c: New file.
58321         * lib/unictype/pr_radical.c: New file.
58322         * lib/unictype/pr_sentence_terminal.c: New file.
58323         * lib/unictype/pr_soft_dotted.c: New file.
58324         * lib/unictype/pr_space.c: New file.
58325         * lib/unictype/pr_terminal_punctuation.c: New file.
58326         * lib/unictype/pr_test.c: New file.
58327         * lib/unictype/pr_titlecase.c: New file.
58328         * lib/unictype/pr_unassigned_code_value.c: New file.
58329         * lib/unictype/pr_unified_ideograph.c: New file.
58330         * lib/unictype/pr_uppercase.c: New file.
58331         * lib/unictype/pr_variation_selector.c: New file.
58332         * lib/unictype/pr_white_space.c: New file.
58333         * lib/unictype/pr_xid_continue.c: New file.
58334         * lib/unictype/pr_xid_start.c: New file.
58335         * lib/unictype/pr_zero_width.c: New file.
58336         * lib/unictype/scripts.c: New file.
58337         * lib/unictype/sy_c_ident.c: New file.
58338         * lib/unictype/sy_c_whitespace.c: New file.
58339         * lib/unictype/sy_java_ident.c: New file.
58340         * lib/unictype/sy_java_whitespace.c: New file.
58341
58342         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58343         Unicode 5.0.0.
58344         * lib/unictype/blocks.h: Likewise.
58345         * lib/unictype/categ_C.h: Likewise.
58346         * lib/unictype/categ_Cc.h: Likewise.
58347         * lib/unictype/categ_Cf.h: Likewise.
58348         * lib/unictype/categ_Cn.h: Likewise.
58349         * lib/unictype/categ_Co.h: Likewise.
58350         * lib/unictype/categ_Cs.h: Likewise.
58351         * lib/unictype/categ_L.h: Likewise.
58352         * lib/unictype/categ_Ll.h: Likewise.
58353         * lib/unictype/categ_Lm.h: Likewise.
58354         * lib/unictype/categ_Lo.h: Likewise.
58355         * lib/unictype/categ_Lt.h: Likewise.
58356         * lib/unictype/categ_Lu.h: Likewise.
58357         * lib/unictype/categ_M.h: Likewise.
58358         * lib/unictype/categ_Mc.h: Likewise.
58359         * lib/unictype/categ_Me.h: Likewise.
58360         * lib/unictype/categ_Mn.h: Likewise.
58361         * lib/unictype/categ_N.h: Likewise.
58362         * lib/unictype/categ_Nd.h: Likewise.
58363         * lib/unictype/categ_Nl.h: Likewise.
58364         * lib/unictype/categ_No.h: Likewise.
58365         * lib/unictype/categ_P.h: Likewise.
58366         * lib/unictype/categ_Pc.h: Likewise.
58367         * lib/unictype/categ_Pd.h: Likewise.
58368         * lib/unictype/categ_Pe.h: Likewise.
58369         * lib/unictype/categ_Pf.h: Likewise.
58370         * lib/unictype/categ_Pi.h: Likewise.
58371         * lib/unictype/categ_Po.h: Likewise.
58372         * lib/unictype/categ_Ps.h: Likewise.
58373         * lib/unictype/categ_S.h: Likewise.
58374         * lib/unictype/categ_Sc.h: Likewise.
58375         * lib/unictype/categ_Sk.h: Likewise.
58376         * lib/unictype/categ_Sm.h: Likewise.
58377         * lib/unictype/categ_So.h: Likewise.
58378         * lib/unictype/categ_Z.h: Likewise.
58379         * lib/unictype/categ_Zl.h: Likewise.
58380         * lib/unictype/categ_Zp.h: Likewise.
58381         * lib/unictype/categ_Zs.h: Likewise.
58382         * lib/unictype/categ_of.h: Likewise.
58383         * lib/unictype/combining.h: Likewise.
58384         * lib/unictype/ctype_alnum.h: Likewise.
58385         * lib/unictype/ctype_alpha.h: Likewise.
58386         * lib/unictype/ctype_blank.h: Likewise.
58387         * lib/unictype/ctype_cntrl.h: Likewise.
58388         * lib/unictype/ctype_digit.h: Likewise.
58389         * lib/unictype/ctype_graph.h: Likewise.
58390         * lib/unictype/ctype_lower.h: Likewise.
58391         * lib/unictype/ctype_print.h: Likewise.
58392         * lib/unictype/ctype_punct.h: Likewise.
58393         * lib/unictype/ctype_space.h: Likewise.
58394         * lib/unictype/ctype_upper.h: Likewise.
58395         * lib/unictype/ctype_xdigit.h: Likewise.
58396         * lib/unictype/decdigit.h: Likewise.
58397         * lib/unictype/digit.h: Likewise.
58398         * lib/unictype/mirror.h: Likewise.
58399         * lib/unictype/numeric.h: Likewise.
58400         * lib/unictype/pr_alphabetic.h: Likewise.
58401         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58402         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58403         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58404         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58405         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58406         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58407         * lib/unictype/pr_bidi_control.h: Likewise.
58408         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58409         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58410         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58411         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58412         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58413         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58414         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58415         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58416         * lib/unictype/pr_bidi_pdf.h: Likewise.
58417         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58418         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58419         * lib/unictype/pr_combining.h: Likewise.
58420         * lib/unictype/pr_composite.h: Likewise.
58421         * lib/unictype/pr_currency_symbol.h: Likewise.
58422         * lib/unictype/pr_dash.h: Likewise.
58423         * lib/unictype/pr_decimal_digit.h: Likewise.
58424         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58425         * lib/unictype/pr_deprecated.h: Likewise.
58426         * lib/unictype/pr_diacritic.h: Likewise.
58427         * lib/unictype/pr_extender.h: Likewise.
58428         * lib/unictype/pr_format_control.h: Likewise.
58429         * lib/unictype/pr_grapheme_base.h: Likewise.
58430         * lib/unictype/pr_grapheme_extend.h: Likewise.
58431         * lib/unictype/pr_grapheme_link.h: Likewise.
58432         * lib/unictype/pr_hex_digit.h: Likewise.
58433         * lib/unictype/pr_hyphen.h: Likewise.
58434         * lib/unictype/pr_id_continue.h: Likewise.
58435         * lib/unictype/pr_id_start.h: Likewise.
58436         * lib/unictype/pr_ideographic.h: Likewise.
58437         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58438         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58439         * lib/unictype/pr_ignorable_control.h: Likewise.
58440         * lib/unictype/pr_iso_control.h: Likewise.
58441         * lib/unictype/pr_join_control.h: Likewise.
58442         * lib/unictype/pr_left_of_pair.h: Likewise.
58443         * lib/unictype/pr_line_separator.h: Likewise.
58444         * lib/unictype/pr_logical_order_exception.h: Likewise.
58445         * lib/unictype/pr_lowercase.h: Likewise.
58446         * lib/unictype/pr_math.h: Likewise.
58447         * lib/unictype/pr_non_break.h: Likewise.
58448         * lib/unictype/pr_not_a_character.h: Likewise.
58449         * lib/unictype/pr_numeric.h: Likewise.
58450         * lib/unictype/pr_other_alphabetic.h: Likewise.
58451         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58452         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58453         * lib/unictype/pr_other_id_continue.h: Likewise.
58454         * lib/unictype/pr_other_id_start.h: Likewise.
58455         * lib/unictype/pr_other_lowercase.h: Likewise.
58456         * lib/unictype/pr_other_math.h: Likewise.
58457         * lib/unictype/pr_other_uppercase.h: Likewise.
58458         * lib/unictype/pr_paired_punctuation.h: Likewise.
58459         * lib/unictype/pr_paragraph_separator.h: Likewise.
58460         * lib/unictype/pr_pattern_syntax.h: Likewise.
58461         * lib/unictype/pr_pattern_white_space.h: Likewise.
58462         * lib/unictype/pr_private_use.h: Likewise.
58463         * lib/unictype/pr_punctuation.h: Likewise.
58464         * lib/unictype/pr_quotation_mark.h: Likewise.
58465         * lib/unictype/pr_radical.h: Likewise.
58466         * lib/unictype/pr_sentence_terminal.h: Likewise.
58467         * lib/unictype/pr_soft_dotted.h: Likewise.
58468         * lib/unictype/pr_space.h: Likewise.
58469         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58470         * lib/unictype/pr_titlecase.h: Likewise.
58471         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58472         * lib/unictype/pr_unified_ideograph.h: Likewise.
58473         * lib/unictype/pr_uppercase.h: Likewise.
58474         * lib/unictype/pr_variation_selector.h: Likewise.
58475         * lib/unictype/pr_white_space.h: Likewise.
58476         * lib/unictype/pr_xid_continue.h: Likewise.
58477         * lib/unictype/pr_xid_start.h: Likewise.
58478         * lib/unictype/pr_zero_width.h: Likewise.
58479         * lib/unictype/scripts.h: Likewise.
58480         * lib/unictype/scripts_byname.gperf: Likewise.
58481         * lib/unictype/sy_c_ident.h: Likewise.
58482         * lib/unictype/sy_c_whitespace.h: Likewise.
58483         * lib/unictype/sy_java_ident.h: Likewise.
58484         * lib/unictype/sy_java_whitespace.h: Likewise.
58485
58486         * lib/unictype/Makefile: New file.
58487         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58488         glibc.
58489         * lib/unictype/3level.h: New file, copied from glibc.
58490         * lib/unictype/3levelbit.h: New file.
58491
58492 2007-11-11  Bruno Haible  <bruno@clisp.org>
58493
58494         * modules/gperf: New file.
58495         * modules/iconv_open (Depends-on): Add it.
58496         (Makefile.am): Remove the GPERF definition.
58497
58498 2007-11-11  Bruno Haible  <bruno@clisp.org>
58499
58500         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58501         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58502
58503 2007-11-11  Bruno Haible  <bruno@clisp.org>
58504
58505         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58506         (usage): Remove function.
58507
58508 2007-11-11  Bruno Haible  <bruno@clisp.org>
58509
58510         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58511         gl_FUNC_CEILF_LIBS.
58512         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58513         gl_FUNC_CEIL_LIBS.
58514         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58515         gl_FUNC_CEILL_LIBS.
58516         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58517         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58518         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58519
58520 2007-11-11  Bruno Haible  <bruno@clisp.org>
58521
58522         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58523         roundf were declared but do not exist on functions.
58524         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58525         roundl were declared but do not exist on functions.
58526         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58527         HAVE_FLOORL_AND_CEILL, respectively.
58528         Needed for Sun C on Solaris 10.
58529
58530 2007-11-11  Bruno Haible  <bruno@clisp.org>
58531
58532         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58533         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58534         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58535         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58536         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58537         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58538         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58539         HAVE_DECL_ROUNDF.
58540         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58541         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58542         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58543         of HAVE_DECL_ROUND*.
58544         * modules/math (Makefile.am): Update.
58545
58546 2007-11-10  Bruno Haible  <bruno@clisp.org>
58547
58548         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58549         ptrdiff_t as m4/intl.m4.
58550
58551 2007-11-10  Jim Meyering  <meyering@redhat.com>
58552
58553         Avoid link failure for the argmatch test.
58554         * tests/test-argmatch.c (usage): Define function to avoid a link
58555         failure: argmatch_die requires a usage function.
58556
58557 2007-11-09  Bruno Haible  <bruno@clisp.org>
58558
58559         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58560         * doc/functions/vsnprintf.texi: Likewise.
58561         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58562         with a size argument < 2.
58563
58564 2007-11-09  Bruno Haible  <bruno@clisp.org>
58565
58566         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58567         buffer. Fixes an inefficiency introduced on 2007-11-03.
58568
58569 2007-11-09  Bruno Haible  <bruno@clisp.org>
58570
58571         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58572         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58573
58574 2007-11-08  Jim Meyering  <meyering@redhat.com>
58575
58576         Change cache variable name prefix "jm_" to "gl_" everywhere.
58577         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58578         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58579         * m4/uptime.m4: s/gl_/jm_/
58580
58581 2007-11-07  Bruno Haible  <bruno@clisp.org>
58582
58583         Update to GNU gettext 0.17.
58584         * m4/intl.m4: Update to GNU gettext 0.17.
58585         * m4/po.m4: Likewise.
58586         * modules/gettext (Files): Remove m4/ulonglong.m4.
58587         (configure.ac): Require gettext infrastructure from version 0.17.
58588
58589 2007-11-06  Bruno Haible  <bruno@clisp.org>
58590
58591         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58592         symbolic values are not defined in a public header.
58593         * lib/freadable.c (freadable) [QNX]: Likewise.
58594         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58595         * lib/freading.c (freading) [QNX]: Likewise.
58596         * lib/fseterr.c (fseterr) [QNX]: Likewise.
58597         * lib/fwritable.c (fwritable) [QNX]: Likewise.
58598         * lib/fwriting.c (fwriting) [QNX]: Likewise.
58599         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
58600         Reported by Alain Magloire.
58601
58602         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
58603
58604 2007-11-05  Bruno Haible  <bruno@clisp.org>
58605
58606         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
58607         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
58608         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
58609         Reported by Eric Blake.
58610
58611 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58612             Bruno Haible  <bruno@clisp.org>
58613
58614         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
58615         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
58616         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
58617         (malloc): Undefine also before including <stdlib.h>.
58618         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
58619         Needed on OSF/1 4.0.
58620
58621 2007-11-05  Jim Meyering  <meyering@redhat.com>
58622
58623         git-version-gen: sync from coreutils.
58624         * build-aux/git-version-gen: Add comments.
58625         Change the first '-' to '.' in the snapshot version string,
58626         e.g., 6.9-377-08144 -> 6.9.377-08144
58627         Remove first parameter.
58628         Don't declare a version "-dirty" merely because a time
58629         stamp has changed.
58630
58631 2007-11-04  Bruno Haible  <bruno@clisp.org>
58632
58633         * lib/lock.h: Protect all macro definitions containing an 'if'
58634         statement through a "do { ... } while (0)".
58635         * lib/tls.h: Likewise.
58636
58637 2007-11-04  Bruno Haible  <bruno@clisp.org>
58638
58639         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
58640
58641 2007-11-04  Bruno Haible  <bruno@clisp.org>
58642
58643         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
58644         * modules/fprintf-posix (Depends-on): Add nocrash.
58645         * modules/snprintf-posix (Depends-on): Likewise.
58646         * modules/sprintf-posix (Depends-on): Likewise.
58647         * modules/vasnprintf-posix (Depends-on): Likewise.
58648         * modules/vasprintf-posix (Depends-on): Likewise.
58649         * modules/vfprintf-posix (Depends-on): Likewise.
58650         * modules/vsnprintf-posix (Depends-on): Likewise.
58651         * modules/vsprintf-posix (Depends-on): Likewise.
58652         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58653         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58654         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58655         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58656         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58657         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58658         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58659
58660 2007-11-04  Bruno Haible  <bruno@clisp.org>
58661
58662         * modules/nocrash: New file.
58663         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
58664         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
58665
58666 2007-11-04  Bruno Haible  <bruno@clisp.org>
58667
58668         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
58669         precision handling.
58670         * tests/test-vasprintf-posix.c (test_function): Likewise.
58671         * tests/test-snprintf-posix.h (test_function): Likewise.
58672         * tests/test-sprintf-posix.h (test_function): Likewise.
58673
58674         Fix *printf behaviour for large precisions on mingw and BeOS.
58675         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
58676         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
58677         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
58678         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58679         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58680         gl_PRINTF_PRECISION and test its result. Invoke
58681         gl_PREREQ_VASNPRINTF_PRECISION.
58682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58684         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58685         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58686         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58687         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58688         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58689         * doc/functions/fprintf.texi: Update.
58690         * doc/functions/printf.texi: Update.
58691         * doc/functions/snprintf.texi: Update.
58692         * doc/functions/sprintf.texi: Update.
58693         * doc/functions/vfprintf.texi: Update.
58694         * doc/functions/vprintf.texi: Update.
58695         * doc/functions/vsnprintf.texi: Update.
58696         * doc/functions/vsprintf.texi: Update.
58697
58698 2007-11-04  Bruno Haible  <bruno@clisp.org>
58699
58700         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
58701
58702 2007-11-04  Bruno Haible  <bruno@clisp.org>
58703
58704         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
58705         Reported by Sylvain Beucler <beuc@gnu.org>.
58706
58707 2007-11-03  Bruno Haible  <bruno@clisp.org>
58708
58709         * tests/test-fprintf-posix2.sh: New file.
58710         * tests/test-fprintf-posix2.c: New file.
58711         * modules/fprintf-posix-tests (Files): Add them.
58712         (TESTS): Add test-fprintf-posix2.sh.
58713         (configure.ac): Check for getrlimit and setrlimit.
58714         (check_PROGRAMS): Add test-fprintf-posix2.
58715
58716         * tests/test-printf-posix2.sh: New file.
58717         * tests/test-printf-posix2.c: New file.
58718         * modules/printf-posix-tests (Files): Add them.
58719         (TESTS): Add test-printf-posix2.sh.
58720         (configure.ac): Check for getrlimit and setrlimit.
58721         (check_PROGRAMS): Add test-printf-posix2.
58722
58723         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
58724         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
58725         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
58726         (decode_double): New function, copied from decode_long_double.
58727         (scale10_round_decimal_decoded): New function, extracted from
58728         scale10_round_decimal_long_double.
58729         (scale10_round_decimal_long_double): Use it.
58730         (scale10_round_decimal_double): New function.
58731         (floorlog10): New function.
58732         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
58733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
58734         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58735         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58736         gl_PRINTF_ENOMEM and test its result. Invoke
58737         gl_PREREQ_VASNPRINTF_ENOMEM.
58738         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58739         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58744         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58745         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
58746         * modules/snprintf-posix (Depends-on): Likewise.
58747         * modules/sprintf-posix (Depends-on): Likewise.
58748         * modules/vasnprintf-posix (Depends-on): Likewise.
58749         * modules/vasprintf-posix (Depends-on): Likewise.
58750         * modules/vfprintf-posix (Depends-on): Likewise.
58751         * modules/vsnprintf-posix (Depends-on): Likewise.
58752         * modules/vsprintf-posix (Depends-on): Likewise.
58753         * doc/functions/fprintf.texi: Update.
58754         * doc/functions/printf.texi: Update.
58755         * doc/functions/snprintf.texi: Update.
58756         * doc/functions/sprintf.texi: Update.
58757         * doc/functions/vfprintf.texi: Update.
58758         * doc/functions/vprintf.texi: Update.
58759         * doc/functions/vsnprintf.texi: Update.
58760         * doc/functions/vsprintf.texi: Update.
58761
58762 2007-11-03  Bruno Haible  <bruno@clisp.org>
58763
58764         * modules/frexp-nolibm-tests: New file.
58765
58766         * modules/frexp-nolibm: New file.
58767         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
58768
58769 2007-11-03  Bruno Haible  <bruno@clisp.org>
58770
58771         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
58772         value is C99 compliant.
58773         Needed for OSF/1 5.1.
58774
58775 2007-11-03  Bruno Haible  <bruno@clisp.org>
58776
58777         Fix out-of-memory handling of vasnprintf.
58778         * lib/printf-parse.c: Include <errno.h>.
58779         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
58780         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
58781         is already set.
58782
58783 2007-11-02  Eric Blake  <ebb9@byu.net>
58784
58785         Fix tests on cygwin.
58786         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
58787
58788 2007-11-01  Bruno Haible  <bruno@clisp.org>
58789
58790         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
58791         warning.
58792         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
58793         needed for POSIX compatibility.
58794
58795 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
58798         for compatibility with GNU.
58799
58800 2007-11-01  Bruno Haible  <bruno@clisp.org>
58801
58802         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
58803         (putenv): Renamed from rpl_putenv. Change argument type from
58804         'const char *' to 'char *'.
58805         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
58806         of defining putenv in config.h, just set REPLACE_PUTENV.
58807         * modules/putenv (Depends-on): Add stdlib.
58808         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58809         (Include): Use <stdlib.h>.
58810         * lib/stdlib.in.h (putenv): New declaration.
58811         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
58812         REPLACE_PUTENV.
58813         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
58814         REPLACE_PUTENV.
58815         Needed for MacOS X 10.5.0.
58816         Reported by Peter O'Gorman <peter@pogma.com>.
58817
58818 2007-11-01  Jim Meyering  <meyering@redhat.com>
58819
58820         Treat an empty date string exactly like "0".
58821         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
58822         if the remaining date string (to be parsed) is empty, use "0".
58823         Reported by Mischa Molhoek and discussed in this thread:
58824         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
58825
58826 2007-10-31  Bruno Haible  <bruno@clisp.org>
58827
58828         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
58829         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
58830         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
58831         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
58832         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
58833         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
58834
58835 2007-10-31  Bruno Haible  <bruno@clisp.org>
58836
58837         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
58838         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
58839         (AC_TYPE_LONG_LONG_INT): Use it.
58840         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
58841         it as well.
58842         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
58843         to m4/longlong.m4.
58844         * modules/stdint (Files): Remove m4/ulonglong.m4.
58845         * modules/strtoull (Files): Use m4/longlong.m4 instead of
58846         m4/ulonglong.m4.
58847         * modules/strtoumax (Files): Likewise.
58848
58849 2007-10-30  Bruno Haible  <bruno@clisp.org>
58850
58851         * modules/xvasprintf-posix: New file.
58852         Suggested by Eric Blake.
58853
58854 2007-10-30  Bruno Haible  <bruno@clisp.org>
58855
58856         * modules/xprintf-posix-tests: New file.
58857         * tests/test-xprintf-posix.sh: New file.
58858         * tests/test-xprintf-posix.c: New file.
58859         * tests/test-xfprintf-posix.c: New file.
58860
58861         * modules/xprintf-posix: New file.
58862
58863 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58864
58865         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
58866         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
58867         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
58868
58869 2007-10-29  Bruno Haible  <bruno@clisp.org>
58870
58871         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
58872         contain the special marker '_cv_'.
58873         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
58874         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
58875         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
58876         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
58877         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
58878         Reported by Ralf Wildenhues.
58879
58880 2007-10-29  Bruno Haible  <bruno@clisp.org>
58881
58882         * gnulib-tool (func_import): When --lgpl is not specified, set
58883         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
58884         GPLv3.
58885         Reported by Simon Josefsson.
58886
58887 2007-10-28  Bruno Haible  <bruno@clisp.org>
58888
58889         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
58890         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
58891         HAVE_DECL_ISFINITE.
58892         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58893         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
58894         HAVE_DECL_ISFINITE.
58895
58896 2007-10-28  Bruno Haible  <bruno@clisp.org>
58897
58898         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
58899         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
58900
58901 2007-10-28  Bruno Haible  <bruno@clisp.org>
58902
58903         Fix link errors with Sun C 5.0 on Solaris 10.
58904         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
58905         function is declared but not present in the compiler's libm.
58906         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58907         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
58908         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
58909         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
58910         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
58911         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
58912         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
58913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58914         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
58915         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
58916         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
58917         HAVE_DECL_FLOORL.
58918
58919 2007-10-28  Bruno Haible  <bruno@clisp.org>
58920
58921         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
58922         gl_FUNC_FLOORL. Cache the result.
58923         (gl_FUNC_FLOORL): Use it.
58924         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
58925         gl_FUNC_CEILL. Cache the result.
58926         (gl_FUNC_CEILL): Use it.
58927
58928         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
58929         gl_FUNC_FLOOR. Cache the result.
58930         (gl_FUNC_FLOOR): Use it.
58931         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
58932         gl_FUNC_CEIL. Cache the result.
58933         (gl_FUNC_CEIL): Use it.
58934
58935         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
58936         gl_FUNC_FLOORF. Cache the result.
58937         (gl_FUNC_FLOORF): Use it.
58938         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
58939         gl_FUNC_CEILF. Cache the result.
58940         (gl_FUNC_CEILF): Use it.
58941
58942 2007-10-28  Bruno Haible  <bruno@clisp.org>
58943
58944         * gnulib-tool: Allow specifying the LGPL version number through
58945         --lgpl=2 or --lgpl=3.
58946         (func_usage): Document --lgpl with argument.
58947         Handle --lgpl=... arguments.
58948         (func_import): Recognize also gl_LGPL calls with an argument. When
58949         --lgpl=2 is used and the module's license is just LGPL, report an
58950         error. Set sed_transform_lib_file according to the lgpl variable. In
58951         the generated files, use --lgpl or gl_LGPL invocations with argument,
58952         if necessary.
58953         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58954         an LGPv2+ license.
58955         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58956         gl_LGPL macro.
58957
58958 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58959             Bruno Haible  <bruno@clisp.org>
58960
58961         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58962         (u16_uctomb_aux): Likewise.
58963         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58964         !HAVE_INLINE.
58965         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58966
58967 2007-10-28  Bruno Haible  <bruno@clisp.org>
58968
58969         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58970         Invoke AM_GETTEXT_OPTION if it exists.
58971         * modules/vasprintf: Likewise.
58972         * modules/verror: Likewise.
58973         * modules/xprintf: Likewise.
58974         * modules/xvasprintf: Likewise.
58975
58976 2007-10-27  Ben Pfaff  <blp@gnu.org>
58977
58978         * lib/math.in.h: Define isfinite macro and prototypes for
58979         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58980         implementations.
58981         * m4/math_h.m4: New substitutions for isfinite module.
58982         * lib/isfinite.c: New file.
58983         * m4/isfinite.m4: New file.
58984         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58985         * modules/isfinite: New file.
58986         * modules/isfinite-tests: New file.
58987         * tests/tests-isfinite.c: New file.
58988         * doc/functions/isfinite.texi: Mention isfinite module.
58989         * MODULES.html.sh: Mention new module.
58990
58991 2007-10-27  Ben Pfaff  <blp@gnu.org>
58992
58993         Ralf Wildenhues reported that Tru64 4.0D declares the round
58994         functions but does not have definitions.
58995         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58996         cannot be found in any library, set the output variable to
58997         "missing" instead of "".
58998         * m4/round.m4: Also use our substitute if we cannot find round in
58999         any library, even if it is declared.
59000         * m4/roundf.m4: Likewise for roundf.
59001         * m4/roundl.m4: Likewise for roundl.
59002         * lib/math.in.h: Undefine roundf, round, roundl before defining
59003         their replacements, to allow for hypothetical systems where these
59004         may be defined as macros but not available in libraries.
59005
59006 2007-10-27  Bruno Haible  <bruno@clisp.org>
59007
59008         * doc/gnulib.texi: Invoke @firstparagraphindent.
59009         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59010         changes in gnulib.
59011         (Source changes): New section.
59012
59013 2007-10-26  Bruno Haible  <bruno@clisp.org>
59014
59015         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59016         borrowed from autoconf.
59017
59018 2007-10-26  Bruno Haible  <bruno@clisp.org>
59019
59020         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59021         strerror returned the empty string. Needed on HP-UX 11.00.
59022
59023 2007-10-24  Micah Cowan  <micah@cowan.name>
59024
59025         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59026         * build-aux/bootstrap: Remove support for now-unnecessary option,
59027         --cvs-user, and envvars CVS_USER, CVS_RSH.
59028
59029 2007-10-24  Jim Meyering  <meyering@redhat.com>
59030
59031         Avoid diagnostics from sha1sum when there is no cached checksum.
59032         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59033         if the po.s1 file hasn't been created yet.
59034
59035         * build-aux/bootstrap: Sync from coreutils:
59036         2007-10-24  Jim Meyering  <meyering@redhat.com>
59037         Get gnulib from the git repository, not from an obsolete cvs one.
59038         * build-aux/bootstrap: Suggestion from Micah Cowan.
59039         2007-10-04  Jim Meyering  <jim@meyering.net>
59040         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59041         (update_po_files): Work also when there are no .po files in po/.
59042
59043 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59044
59045         * README: Append ".git" to git and cg examples.
59046         Problem reported by Benoit Sigoure.
59047
59048 2007-10-23  Micah Cowan  <micah@cowan.name>
59049
59050         * users.txt: Add wget.
59051
59052 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59053
59054         Fix linking of some unistdio tests on FreeBSD.
59055         * modules/unistdio/u16-vsnprintf-tests
59056         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59057         * modules/unistdio/u16-vsprintf-tests
59058         (test_u16_vsnprintf1_LDADD): Likewise.
59059         * modules/unistdio/u32-vsnprintf-tests
59060         (test_u32_vsnprintf1_LDADD): Likewise.
59061         * modules/unistdio/u32-vsprintf-tests
59062         (test_u32_vsprintf1_LDADD): Likewise.
59063         * modules/unistdio/u8-vsnprintf-tests
59064         (test_u8_vsnprintf1_LDADD): Likewise.
59065         * modules/unistdio/u8-vsprintf-tests
59066         (test_u8_vsprintf1_LDADD): Likewise.
59067         * modules/unistdio/ulc-vsnprintf-tests
59068         (test_ulc_vsnprintf1_LDADD): Likewise.
59069         * modules/unistdio/ulc-vsprintf-tests
59070         (test_ulc_vsprintf1_LDADD): Likewise.
59071
59072         Fix linking of some uniconv tests on FreeBSD.
59073         * modules/uniconv/u16-conv-from-enc-tests
59074         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59075         * modules/uniconv/u16-conv-to-enc-tests
59076         (test_u16_conv_to_enc_LDADD): Likewise.
59077         * modules/uniconv/u16-strconv-from-enc-tests
59078         (test_u16_strconv_from_enc_LDADD): Likewise.
59079         * modules/uniconv/u16-strconv-to-enc-tests
59080         (test_u16_strconv_to_enc_LDADD): Likewise.
59081         * modules/uniconv/u32-conv-from-enc-tests
59082         (test_u32_conv_from_enc_LDADD): Likewise.
59083         * modules/uniconv/u32-conv-to-enc-tests
59084         (test_u32_conv_to_enc_LDADD): Likewise.
59085         * modules/uniconv/u32-strconv-from-enc-tests
59086         (test_u32_strconv_from_enc_LDADD): Likewise.
59087         * modules/uniconv/u32-strconv-to-enc-tests
59088         (test_u32_strconv_to_enc_LDADD): Likewise.
59089         * modules/uniconv/u8-conv-from-enc-tests
59090         (test_u8_conv_from_enc_LDADD): Likewise.
59091         * modules/uniconv/u8-conv-to-enc-tests
59092         (test_u8_conv_to_enc_LDADD): Likewise.
59093         * modules/uniconv/u8-strconv-from-enc-tests
59094         (test_u8_strconv_from_enc_LDADD): Likewise.
59095         * modules/uniconv/u8-strconv-to-enc-tests
59096         (test_u8_strconv_to_enc_LDADD): Likewise.
59097
59098 2007-10-22  Bruno Haible  <bruno@clisp.org>
59099
59100         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59101         size.
59102
59103 2007-10-22  Eric Blake  <ebb9@byu.net>
59104
59105         Tweak x*printf documentation.
59106         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59107         variable name and comments.
59108         Suggested by Bruno Haible.
59109
59110 2007-10-22  Bruno Haible  <bruno@clisp.org>
59111
59112         * lib/acl.c (copy_acl): Fix file name in comment.
59113
59114 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         Fix Tru64 problem with stdbool.h.
59117         * lib/stdbool.in.h (false, true):
59118         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59119         Don't declare as an enum in this situation; it runs afoul of Tru64.
59120         Problem reported by Steven M. Schweda in
59121         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59122
59123 2007-10-22  Eric Blake  <ebb9@byu.net>
59124
59125         Also wrap vf?printf.
59126         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59127         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59128         (xvprintf, xvfprintf): New functions.
59129
59130 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59131
59132         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59133         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59134
59135         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59136         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59137
59138 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59141         by Bruno Haible.
59142
59143 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59144
59145         * lib/getloadavg.c
59146         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59147         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59148
59149         * tests/test-i-ring.c: Work for C89.
59150
59151 2007-10-22  Bruno Haible  <bruno@clisp.org>
59152
59153         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59154         -1u, in preprocessor expression, so that we don't test for the bug
59155         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59156         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59157
59158 2007-10-22  Eric Blake  <ebb9@byu.net>
59159
59160         * tests/test-yesno.sh: Silence stderr during test.
59161
59162 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59163
59164         * modules/crypto/gc-camellia: New file.
59165
59166         * m4/gc-camellia.m4: New file.
59167
59168         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59169
59170         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59171
59172 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59173
59174         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59175         --help to stdout.  Reported by sms@antinode.org (Steven
59176         M. Schweda).
59177
59178 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59179
59180         * users.txt: Fix link to libksba.
59181
59182 2007-10-21  Ben Pfaff  <blp@gnu.org>
59183
59184         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59185         round.c roundf implementation that depends on floorf and ceilf to
59186         be tested unconditionally.
59187
59188 2007-10-21  Ben Pfaff  <blp@gnu.org>
59189
59190         * m4/check-libm-func.m4: Removed.
59191         * m4/check-math-lib.m4: New file.
59192         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59193         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59194         definition and lack of AC_LIBOBJ([roundf]).
59195         * m4/roundl.m4: Ditto, and similarly for roundl.
59196         * modules/round: Reference new m4 file.
59197         * modules/roundf: Ditto.
59198         * modules/roundl: Ditto.
59199         * tests/test-round2.c (main): Use ROUND instead of round.
59200         Bug report from Bruno Haible.
59201
59202 2007-10-21  Bruno Haible  <bruno@clisp.org>
59203
59204         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59205         context.
59206
59207 2007-10-21  Bruno Haible  <bruno@clisp.org>
59208
59209         * tests/test-wcwidth.c (main): Allow negative result for some control
59210         characters.
59211
59212         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59213         Needed on OSF/1 5.1.
59214
59215 2007-10-21  Bruno Haible  <bruno@clisp.org>
59216
59217         * tests/test-floorf1.c: Include isnanf.h.
59218         (main): Use isnanf() instead of isnan().
59219         * tests/test-ceilf1.c: Include isnanf.h.
59220         (main): Use isnanf() instead of isnan().
59221         * tests/test-truncf1.c: Include isnanf.h.
59222         (main): Use isnanf() instead of isnan().
59223         * tests/test-roundf1.c: Include isnanf.h.
59224         (main): Use isnanf() instead of isnan().
59225
59226 2007-10-21  Eric Blake  <ebb9@byu.net>
59227
59228         * users.txt: Update URL for m4.
59229
59230 2007-10-21  Bruno Haible  <bruno@clisp.org>
59231
59232         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59233
59234 2007-10-21  Bruno Haible  <bruno@clisp.org>
59235
59236         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59237         Git's management files if the CVS files are not present.
59238
59239 2007-10-20  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59242         gcc-3.4.x.
59243
59244 2007-10-20  Ben Pfaff  <blp@gnu.org>
59245
59246         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59247         implementations.
59248         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59249         * lib/round.c: New file.
59250         * lib/roundf.c: New file.
59251         * lib/roundl.c: New file.
59252         * m4/round.m4: New file.
59253         * m4/roundf.m4: New file.
59254         * m4/roundl.m4: New file.
59255         * m4/check-libm-func-m4: New file.
59256         * modules/math: Replace round, roundf, roundl related @VARS@ in
59257         math.in.h.
59258         * modules/round: New file.
59259         * modules/round-tests: New file.
59260         * modules/roundf: New file.
59261         * modules/roundf-tests: New file.
59262         * modules/roundl: New file.
59263         * modules/roundl-tests: New file.
59264         * tests/test-round1.c: New file.
59265         * tests/test-round2.c: New file.
59266         * tests/test-roundf1.c: New file.
59267         * tests/test-roundf2.c: New file.
59268         * tests/test-roundl.c: New file.
59269         * doc/functions/round.texi: Mention round module.
59270         * doc/functions/roundf.texi: Mention roundf module.
59271         * doc/functions/roundl.texi: Mention roundl module.
59272         * MODULES.html.sh: Mention new modules.
59273         Thanks to Bruno Haible for suggestions.
59274
59275 2007-10-20  Jim Meyering  <meyering@redhat.com>
59276
59277         * lib/xprintf.c: Include <config.h> unconditionally.
59278
59279         Change xprintf's license to GPL.
59280         * modules/xprintf (License): s/LGPL/GPL/, since this module
59281         depends on modules (exit and exitfail) which are GPL.
59282         Suggestion from Bruno Haible.
59283
59284         xprintf fixes.
59285         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59286         Use a clearer diagnostic.
59287         Patch from Bruno Haible.
59288
59289 2007-10-20  Bruno Haible  <bruno@clisp.org>
59290
59291         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59292         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59294
59295 2007-10-20  Bruno Haible  <bruno@clisp.org>
59296
59297         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59298         precision in the comparison result > x - 1 or similar.
59299         * tests/test-ceilf2.c (correct_result_p): Likewise.
59300         * tests/test-truncf2.c (correct_result_p): Likewise.
59301         * tests/test-trunc2.c (correct_result_p): Likewise.
59302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59303
59304 2007-10-20  Bruno Haible  <bruno@clisp.org>
59305
59306         * modules/ceil: New file.
59307         * m4/ceil.m4: New file.
59308         * doc/functions/ceil.texi: Mention the 'ceil' module.
59309
59310 2007-10-20  Bruno Haible  <bruno@clisp.org>
59311
59312         * modules/floor: New file.
59313         * m4/floor.m4: New file.
59314         * doc/functions/floor.texi: Mention the 'floor' module.
59315
59316 2007-10-20  Bruno Haible  <bruno@clisp.org>
59317
59318         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59319         of %a.
59320         * modules/floorf-tests (Depends-on): Likewise.
59321         * modules/truncf-tests (Depends-on): Likewise.
59322         * modules/trunc-tests (Depends-on): Likewise.
59323         Reported by Ben Pfaff.
59324
59325 2007-10-19  Jim Meyering  <meyering@redhat.com>
59326
59327         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59328         Don't bother testing specific errno values.  Just test ferror.
59329
59330         New module: xprintf
59331         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59332
59333 2007-10-19  Bruno Haible  <bruno@clisp.org>
59334
59335         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59336         syntax.
59337         * modules/javaexec (Makefile.am): Likewise.
59338         * modules/relocatable-prog (Makefile.am): Likewise.
59339         Suggested by Jim Meyering.
59340
59341 2007-10-18  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59344         Reported by Jim Meyering.
59345
59346 2007-10-18  Eric Blake  <ebb9@byu.net>
59347
59348         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59349
59350 2007-10-18  Bruno Haible  <bruno@clisp.org>
59351
59352         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59353         the format string into writable memory. Needed in Fortify conditions.
59354
59355 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59356             Bruno Haible  <bruno@clisp.org>
59357
59358         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59359         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59360         * modules/trim (Depends-on): Add mbchar.
59361         (configure.ac): Add gl_FUNC_MBRTOWC.
59362         (Makefile.am): Augment lib_SOURCES.
59363
59364 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59365
59366         Modify glob.c to use fstatat and dirfd, to simplify it.
59367         Suggested by Eric Blake.
59368         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59369         Don't include <stdbool.h>; not used.
59370         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59371         (link_exists_p): Simplify implementation, since we can now assume
59372         dirfd and fstatat.
59373         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59374
59375 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59376
59377         * gnulib-tool (func_get_dependencies): Fix sed script to
59378         match only tests.
59379
59380 2007-10-17  Bruno Haible  <bruno@clisp.org>
59381
59382         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59383         allow locale names without encoding suffix.
59384         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59385         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59386
59387 2007-10-16  Bruno Haible  <bruno@clisp.org>
59388
59389         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59390         * lib/getgroups.c (getgroups): Likewise.
59391         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59392
59393 2007-10-16  Bruno Haible  <bruno@clisp.org>
59394
59395         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59396         * modules/malloc-posix (License): Likewise.
59397         * modules/realloc-posix (License): Likewise.
59398         * modules/calloc-posix (License): Likewise.
59399         * modules/intprops (License): Change from GPL to LGPL, with
59400         Paul Eggert's approval.
59401
59402 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59403
59404         Merge glibc changes into lib/glob.c.
59405
59406         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59407         2007-10-15 04:59:03 UTC.  Here are the changes:
59408
59409         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59410
59411         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59412
59413         * lib/glob.c: Add some branch prediction throughout.
59414
59415         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59416
59417         [BZ #5103]
59418         * lib/glob.c (glob): Recognize patterns starting \/.
59419
59420         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59421
59422         [BZ #3996]
59423         * lib/glob.c (attribute_hidden): Define if not defined.
59424         (glob): Unescape dirname, filename or username when needed and not
59425         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59426         is NULL.  Handle unescaped [ in pattern without closing ].
59427         Don't pass GLOB_CHECK down to recursive glob for directories.
59428         (__glob_pattern_type): New function.
59429         (__glob_pattern_p): Implement using __glob_pattern_type.
59430         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59431         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59432         Remove unreachable code.
59433
59434         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59435
59436         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59437         explain why there are no leaks.
59438
59439         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59440
59441         [BZ #3253]
59442         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59443         time, rather allocate increasingly bigger arrays of pointers, if
59444         possible with alloca, if too large with malloc.
59445
59446 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59449         Problem reported by H.Merijn Brand in
59450         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59451         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59452         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59453
59454 2007-10-15  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59457         with explicit rpl_ prefix.
59458         * lib/fopen.c (fopen): Likewise.
59459         * lib/freopen.c (freopen): Likewise.
59460         * lib/iconv.c (iconv): Likewise.
59461         * lib/iconv_close.c (iconv_close): Likewise.
59462
59463 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59464
59465         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59466
59467 2007-10-15  Bruno Haible  <bruno@clisp.org>
59468
59469         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59470         <stddef.h> instead of <stdlib.h> since we only need NULL.
59471         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59472
59473 2007-10-15  Bruno Haible  <bruno@clisp.org>
59474
59475         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59476         Replace paragraph talking about LIBOBJS.
59477         Reported by Colin Watson <cjwatson@debian.org>.
59478
59479 2007-10-15  Bruno Haible  <bruno@clisp.org>
59480
59481         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59482         <stdlib.h> before using NULL.
59483
59484 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59485
59486         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59487         Reported by Albert Chin <china@thewrittenword.com>.
59488
59489 2007-10-14  Bruno Haible  <bruno@clisp.org>
59490
59491         * modules/iconv_open-utf-tests: New file.
59492         * tests/test-iconv-utf.c: New file.
59493
59494         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59495         * modules/iconv_open-utf: New file.
59496         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59497         (iconv, iconv_close): New declarations.
59498         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59499         be defined.
59500         (iconv_open): Add special handling of conversion between UTF-8 and
59501         UTF-{16,32}{BE,LE}.
59502         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59503         * lib/iconv_close.c: New file.
59504         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59505         gl_FUNC_ICONV_OPEN.
59506         (gl_FUNC_ICONV_OPEN): Use it.
59507         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59508         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59509         and REPLACE_ICONV_UTF.
59510         * modules/iconv_open (Depends-on): Add c-strcase.
59511         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59512         ICONV_CONST.
59513         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59514
59515 2007-10-13  Albert Chin  <china@thewrittenword.com>
59516             Bruno Haible  <bruno@clisp.org>
59517
59518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59519         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59520
59521 2007-10-13  Bruno Haible  <bruno@clisp.org>
59522
59523         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59524         defined, use the ISO C99 inline semantics.
59525         * lib/argp.h (ARGP_EI): Likewise.
59526
59527 2007-10-13  Bruno Haible  <bruno@clisp.org>
59528
59529         Handle 'inline' change in gcc 4.3.0.
59530         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59531         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59532         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59533         argp_fmtstream_point): Disable 'extern' declaration if the function
59534         definition is going to be provided inline.
59535         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59536         semantics, not the ISO C99 inline semantics.
59537         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59538         'extern' declaration if the function definition is going to be provided
59539         inline.
59540         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59541         the GNU C inline semantics, not the ISO C99 inline semantics. With
59542         GCC 4.2, avoid a warning.
59543
59544 2007-10-13  Bruno Haible  <bruno@clisp.org>
59545
59546         * lib/freading.h (freading): Enable the use of __freading for
59547         glibc >= 2.7.
59548         * lib/freading.c (freading): Likewise.
59549
59550 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59551
59552         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59553         "warning: C99 inline functions are not supported; using GNU89".
59554
59555 2007-10-12  Bruno Haible  <bruno@clisp.org>
59556
59557         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59558         of 2.
59559         * tests/test-ceilf2.c: New file.
59560         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59561
59562         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59563         * modules/ceilf-tests: Update.
59564
59565 2007-10-12  Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59568         of 2.
59569         * tests/test-floorf2.c: New file.
59570         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59571
59572         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59573         * modules/floorf-tests: Update.
59574
59575 2007-10-12  Bruno Haible  <bruno@clisp.org>
59576
59577         * tests/test-trunc2.c: New file.
59578         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59579
59580         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59581         * modules/trunc-tests: Update.
59582
59583 2007-10-12  Bruno Haible  <bruno@clisp.org>
59584
59585         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59586         of 2.
59587         * tests/test-truncf2.c: New file.
59588         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59589
59590         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59591         * modules/truncf-tests: Update.
59592
59593 2007-10-11  Eric Blake  <ebb9@byu.net>
59594
59595         Don't claim strerror is broken on Interix.
59596         * doc/functions/strerror.texi (strerror): Known broken systems are
59597         now Solaris 8, and not Interix.
59598         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
59599         Interix on cross-compile.
59600         Reported by Martin Koeppe in
59601         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
59602
59603 2007-10-11  Bruno Haible  <bruno@clisp.org>
59604
59605         * modules/i-ring-tests: New file.
59606         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
59607         instead of assert.
59608
59609 2007-10-11  Bruno Haible  <bruno@clisp.org>
59610
59611         * modules/filenamecat-tests: New file.
59612         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
59613         * lib/filenamecat.c: Remove test code.
59614
59615 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59616
59617         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
59618
59619         * lib/strerror.c: Include <string.h> always, to test interface,
59620         and to remove the need for the dummy.
59621         Include intprops.h to compute width instead of doing it ourselves
59622         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
59623         (strerror): Define it to return NULL if there's no system strerror.
59624         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
59625         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
59626         ancient pre-strerror Unix systems well any more.  Saying "unknown
59627         system error" is enough.
59628         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
59629         simpler strerror.c implementation.
59630         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
59631         Simplify the tests to reflect the simpler strerror implementation.
59632         * modules/strerror (Depends-on): Add intprops.
59633
59634 2007-10-09  Eric Blake  <ebb9@byu.net>
59635
59636         Silence test-fpending.
59637         * modules/fpending-tests (Files): Add wrapper script.
59638         * tests/test-fpending.sh: New file.
59639
59640 2007-10-09  Bruno Haible  <bruno@clisp.org>
59641
59642         * MODULES.html.sh (func_module): Don't create a hyperlink for
59643         function names like 'printf_frexp'.
59644         (Misc): Add crc, memxor.
59645         (Characteristics of floating types): New section.
59646         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
59647         isnanf-nolibm, signbit, trunc, truncf, truncl.
59648         (Enhancements for ISO C 99 functions): New subsection Input/output.
59649         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
59650         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
59651         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
59652         (Compatibility checks for POSIX:2001 functions): Add clock-time.
59653         (Enhancements for POSIX:2001 functions): Add chdir-long.
59654         (File system functions): Add areadlink, chdir-safer, read-file.
59655         Remove cycle-check.
59656         (File system as inode set): New section.
59657         (Date and time): Add gethrxtime.
59658         (Multithreading): Add openmp.
59659         (Internationalization functions): Add localename.
59660         (Unicode string functions): Add unistr/u*-mbsnlen.
59661         (Support for maintaining and releasing projects): Add git-version-gen.
59662         (Lone files): Remove directories.
59663
59664 2007-10-08  Ben Pfaff  <blp@gnu.org>
59665
59666         * lib/xmalloca.h: Fix typo in comment.
59667
59668 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59669
59670         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
59671         when avoiding problems with integer overflow.  Use a portable test
59672         instead.
59673
59674 2007-10-08  Simon Josefsson  <simon@josefsson.org>
59675
59676         * modules/dummy (License): Change to LGPLv2+.
59677         * modules/float (License): Likewise
59678         * modules/realloc (License): Likewise
59679         * modules/stdlib (License): Likewise
59680
59681 2007-10-07  Bruno Haible  <bruno@clisp.org>
59682
59683         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
59684         * floor.c (TWO_MANT_DIG): Likewise.
59685         * ceil.c (TWO_MANT_DIG): Likewise.
59686         Reported by Ben Pfaff.
59687
59688 2007-10-07  Bruno Haible  <bruno@clisp.org>
59689
59690         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
59691         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
59692         * lib/frexp.c (FUNC): Likewise.
59693         * lib/printf-frexp.h (printf_frexp): Likewise.
59694         * lib/printf-frexpl.h (printf_frexpl): Likewise.
59695         * lib/printf-frexp.c (FUNC): Likewise.
59696         Suggested by Jim Meyering.
59697
59698 2007-10-07  Jim Meyering  <meyering@redhat.com>
59699
59700         Make xnanosleep's integer overflow test more robust.
59701         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
59702         so that gcc-4.3.0 doesn't optimize away this test for overflow.
59703
59704 2007-10-07  Bruno Haible  <bruno@clisp.org>
59705
59706         * NEWS: Mention the license change.
59707
59708         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
59709         abbreviations in the modules files.
59710
59711         Change copyright notice from GPLv2+ to GPLv3+.
59712         * README: Change copyright notice.
59713         * MODULES.html.sh: Likewise.
59714         * build-aux/bootstrap.conf: Likewise.
59715         * build-aux/config.libpath: Likewise.
59716         * build-aux/csharpcomp.sh.in: Likewise.
59717         * build-aux/csharpexec.sh.in: Likewise.
59718         * build-aux/install-reloc: Likewise.
59719         * build-aux/javacomp.sh.in: Likewise.
59720         * build-aux/javaexec.sh.in: Likewise.
59721         * build-aux/ldd.sh.in: Likewise.
59722         * build-aux/reloc-ldflags: Likewise.
59723         * build-aux/relocatable.sh.in: Likewise.
59724         * build-aux/x-to-1.in: Likewise.
59725         * check-module: Likewise.
59726         * config/srclistvars.sh: Likewise.
59727         * gnulib-tool: Likewise.
59728         * lib/acl-internal.h: Likewise.
59729         * lib/acl.c: Likewise.
59730         * lib/acl.h: Likewise.
59731         * lib/acl_entries.c: Likewise.
59732         * lib/areadlink-with-size.c: Likewise.
59733         * lib/areadlink.c: Likewise.
59734         * lib/areadlink.h: Likewise.
59735         * lib/argmatch.c: Likewise.
59736         * lib/argmatch.h: Likewise.
59737         * lib/argp-ba.c: Likewise.
59738         * lib/argp-eexst.c: Likewise.
59739         * lib/argp-fmtstream.c: Likewise.
59740         * lib/argp-fmtstream.h: Likewise.
59741         * lib/argp-fs-xinl.c: Likewise.
59742         * lib/argp-help.c: Likewise.
59743         * lib/argp-namefrob.h: Likewise.
59744         * lib/argp-parse.c: Likewise.
59745         * lib/argp-pin.c: Likewise.
59746         * lib/argp-pv.c: Likewise.
59747         * lib/argp-pvh.c: Likewise.
59748         * lib/argp-xinl.c: Likewise.
59749         * lib/argp.h: Likewise.
59750         * lib/at-func.c: Likewise.
59751         * lib/atanl.c: Likewise.
59752         * lib/backupfile.c: Likewise.
59753         * lib/backupfile.h: Likewise.
59754         * lib/basename.c: Likewise.
59755         * lib/binary-io.h: Likewise.
59756         * lib/byteswap.in.h: Likewise.
59757         * lib/c-stack.c: Likewise.
59758         * lib/c-stack.h: Likewise.
59759         * lib/c-strcasestr.c: Likewise.
59760         * lib/c-strcasestr.h: Likewise.
59761         * lib/c-strstr.c: Likewise.
59762         * lib/c-strstr.h: Likewise.
59763         * lib/c-strtod.c: Likewise.
59764         * lib/calloc.c: Likewise.
59765         * lib/canon-host.c: Likewise.
59766         * lib/canon-host.h: Likewise.
59767         * lib/canonicalize-lgpl.c: Likewise.
59768         * lib/canonicalize.c: Likewise.
59769         * lib/canonicalize.h: Likewise.
59770         * lib/ceil.c: Likewise.
59771         * lib/ceilf.c: Likewise.
59772         * lib/ceill.c: Likewise.
59773         * lib/chdir-long.c: Likewise.
59774         * lib/chdir-long.h: Likewise.
59775         * lib/chdir-safer.c: Likewise.
59776         * lib/chdir-safer.h: Likewise.
59777         * lib/chown.c: Likewise.
59778         * lib/classpath.c: Likewise.
59779         * lib/classpath.h: Likewise.
59780         * lib/clean-temp.c: Likewise.
59781         * lib/clean-temp.h: Likewise.
59782         * lib/cloexec.c: Likewise.
59783         * lib/close-stream.c: Likewise.
59784         * lib/closein.c: Likewise.
59785         * lib/closein.h: Likewise.
59786         * lib/closeout.c: Likewise.
59787         * lib/closeout.h: Likewise.
59788         * lib/concat-filename.c: Likewise.
59789         * lib/copy-file.c: Likewise.
59790         * lib/copy-file.h: Likewise.
59791         * lib/count-one-bits.h: Likewise.
59792         * lib/crc.c: Likewise.
59793         * lib/crc.h: Likewise.
59794         * lib/creat-safer.c: Likewise.
59795         * lib/csharpcomp.c: Likewise.
59796         * lib/csharpcomp.h: Likewise.
59797         * lib/csharpexec.c: Likewise.
59798         * lib/csharpexec.h: Likewise.
59799         * lib/cycle-check.c: Likewise.
59800         * lib/cycle-check.h: Likewise.
59801         * lib/diacrit.c: Likewise.
59802         * lib/diacrit.h: Likewise.
59803         * lib/diffseq.h: Likewise.
59804         * lib/dirchownmod.c: Likewise.
59805         * lib/dirent.in.h: Likewise.
59806         * lib/dirfd.c: Likewise.
59807         * lib/dirfd.h: Likewise.
59808         * lib/dirname.c: Likewise.
59809         * lib/dirname.h: Likewise.
59810         * lib/dummy.c: Likewise.
59811         * lib/dup-safer.c: Likewise.
59812         * lib/dup2.c: Likewise.
59813         * lib/eealloc.h: Likewise.
59814         * lib/error.c: Likewise.
59815         * lib/error.h: Likewise.
59816         * lib/euidaccess.c: Likewise.
59817         * lib/exclude.c: Likewise.
59818         * lib/exclude.h: Likewise.
59819         * lib/execute.c: Likewise.
59820         * lib/execute.h: Likewise.
59821         * lib/exitfail.c: Likewise.
59822         * lib/exitfail.h: Likewise.
59823         * lib/expl.c: Likewise.
59824         * lib/fatal-signal.c: Likewise.
59825         * lib/fatal-signal.h: Likewise.
59826         * lib/fbufmode.c: Likewise.
59827         * lib/fbufmode.h: Likewise.
59828         * lib/fchdir.c: Likewise.
59829         * lib/fchmodat.c: Likewise.
59830         * lib/fchownat.c: Likewise.
59831         * lib/fcntl--.h: Likewise.
59832         * lib/fcntl-safer.h: Likewise.
59833         * lib/fcntl.in.h: Likewise.
59834         * lib/fd-safer.c: Likewise.
59835         * lib/fflush.c: Likewise.
59836         * lib/file-has-acl.c: Likewise.
59837         * lib/file-set.c: Likewise.
59838         * lib/file-type.c: Likewise.
59839         * lib/file-type.h: Likewise.
59840         * lib/fileblocks.c: Likewise.
59841         * lib/filemode.c: Likewise.
59842         * lib/filemode.h: Likewise.
59843         * lib/filename.h: Likewise.
59844         * lib/filenamecat.c: Likewise.
59845         * lib/filenamecat.h: Likewise.
59846         * lib/findprog.c: Likewise.
59847         * lib/findprog.h: Likewise.
59848         * lib/float.in.h: Likewise.
59849         * lib/floor.c: Likewise.
59850         * lib/floorf.c: Likewise.
59851         * lib/floorl.c: Likewise.
59852         * lib/fopen-safer.c: Likewise.
59853         * lib/fopen.c: Likewise.
59854         * lib/fpending.c: Likewise.
59855         * lib/fpending.h: Likewise.
59856         * lib/fprintf.c: Likewise.
59857         * lib/fprintftime.h: Likewise.
59858         * lib/fpucw.h: Likewise.
59859         * lib/fpurge.c: Likewise.
59860         * lib/fpurge.h: Likewise.
59861         * lib/freadable.c: Likewise.
59862         * lib/freadable.h: Likewise.
59863         * lib/freadahead.c: Likewise.
59864         * lib/freadahead.h: Likewise.
59865         * lib/freading.c: Likewise.
59866         * lib/freading.h: Likewise.
59867         * lib/free.c: Likewise.
59868         * lib/freopen.c: Likewise.
59869         * lib/frexp.c: Likewise.
59870         * lib/frexpl.c: Likewise.
59871         * lib/fseek.c: Likewise.
59872         * lib/fseterr.c: Likewise.
59873         * lib/fseterr.h: Likewise.
59874         * lib/fstatat.c: Likewise.
59875         * lib/fstrcmp.c: Likewise.
59876         * lib/fstrcmp.h: Likewise.
59877         * lib/fsusage.c: Likewise.
59878         * lib/fsusage.h: Likewise.
59879         * lib/ftell.c: Likewise.
59880         * lib/ftello.c: Likewise.
59881         * lib/fts-cycle.c: Likewise.
59882         * lib/fts.c: Likewise.
59883         * lib/fts_.h: Likewise.
59884         * lib/full-read.c: Likewise.
59885         * lib/full-read.h: Likewise.
59886         * lib/full-write.c: Likewise.
59887         * lib/full-write.h: Likewise.
59888         * lib/fwritable.c: Likewise.
59889         * lib/fwritable.h: Likewise.
59890         * lib/fwriteerror.c: Likewise.
59891         * lib/fwriteerror.h: Likewise.
59892         * lib/fwriting.c: Likewise.
59893         * lib/fwriting.h: Likewise.
59894         * lib/gcd.c: Likewise.
59895         * lib/gcd.h: Likewise.
59896         * lib/getcwd.c: Likewise.
59897         * lib/getdate.h: Likewise.
59898         * lib/getdate.y: Likewise.
59899         * lib/getdomainname.c: Likewise.
59900         * lib/getdomainname.h: Likewise.
59901         * lib/getgroups.c: Likewise.
59902         * lib/gethostname.c: Likewise.
59903         * lib/gethrxtime.c: Likewise.
59904         * lib/gethrxtime.h: Likewise.
59905         * lib/getloadavg.c: Likewise.
59906         * lib/getndelim2.c: Likewise.
59907         * lib/getndelim2.h: Likewise.
59908         * lib/getnline.c: Likewise.
59909         * lib/getnline.h: Likewise.
59910         * lib/getopt.c: Likewise.
59911         * lib/getopt.in.h: Likewise.
59912         * lib/getopt1.c: Likewise.
59913         * lib/getopt_int.h: Likewise.
59914         * lib/getpagesize.h: Likewise.
59915         * lib/getsubopt.c: Likewise.
59916         * lib/gettime.c: Likewise.
59917         * lib/getugroups.c: Likewise.
59918         * lib/getugroups.h: Likewise.
59919         * lib/getusershell.c: Likewise.
59920         * lib/gl_anyavltree_list1.h: Likewise.
59921         * lib/gl_anyavltree_list2.h: Likewise.
59922         * lib/gl_anyhash_list1.h: Likewise.
59923         * lib/gl_anyhash_list2.h: Likewise.
59924         * lib/gl_anylinked_list1.h: Likewise.
59925         * lib/gl_anylinked_list2.h: Likewise.
59926         * lib/gl_anyrbtree_list1.h: Likewise.
59927         * lib/gl_anyrbtree_list2.h: Likewise.
59928         * lib/gl_anytree_list1.h: Likewise.
59929         * lib/gl_anytree_list2.h: Likewise.
59930         * lib/gl_anytree_oset.h: Likewise.
59931         * lib/gl_anytreehash_list1.h: Likewise.
59932         * lib/gl_anytreehash_list2.h: Likewise.
59933         * lib/gl_array_list.c: Likewise.
59934         * lib/gl_array_list.h: Likewise.
59935         * lib/gl_array_oset.c: Likewise.
59936         * lib/gl_array_oset.h: Likewise.
59937         * lib/gl_avltree_list.c: Likewise.
59938         * lib/gl_avltree_list.h: Likewise.
59939         * lib/gl_avltree_oset.c: Likewise.
59940         * lib/gl_avltree_oset.h: Likewise.
59941         * lib/gl_avltreehash_list.c: Likewise.
59942         * lib/gl_avltreehash_list.h: Likewise.
59943         * lib/gl_carray_list.c: Likewise.
59944         * lib/gl_carray_list.h: Likewise.
59945         * lib/gl_linked_list.c: Likewise.
59946         * lib/gl_linked_list.h: Likewise.
59947         * lib/gl_linkedhash_list.c: Likewise.
59948         * lib/gl_linkedhash_list.h: Likewise.
59949         * lib/gl_list.c: Likewise.
59950         * lib/gl_list.h: Likewise.
59951         * lib/gl_oset.c: Likewise.
59952         * lib/gl_oset.h: Likewise.
59953         * lib/gl_rbtree_list.c: Likewise.
59954         * lib/gl_rbtree_list.h: Likewise.
59955         * lib/gl_rbtree_oset.c: Likewise.
59956         * lib/gl_rbtree_oset.h: Likewise.
59957         * lib/gl_rbtreehash_list.c: Likewise.
59958         * lib/gl_rbtreehash_list.h: Likewise.
59959         * lib/gl_sublist.c: Likewise.
59960         * lib/gl_sublist.h: Likewise.
59961         * lib/group-member.c: Likewise.
59962         * lib/group-member.h: Likewise.
59963         * lib/hard-locale.c: Likewise.
59964         * lib/hard-locale.h: Likewise.
59965         * lib/hash-pjw.c: Likewise.
59966         * lib/hash-pjw.h: Likewise.
59967         * lib/hash-triple.c: Likewise.
59968         * lib/hash.c: Likewise.
59969         * lib/hash.h: Likewise.
59970         * lib/human.c: Likewise.
59971         * lib/human.h: Likewise.
59972         * lib/i-ring.c: Likewise.
59973         * lib/i-ring.h: Likewise.
59974         * lib/idcache.c: Likewise.
59975         * lib/imaxabs.c: Likewise.
59976         * lib/imaxdiv.c: Likewise.
59977         * lib/inet_pton.c: Likewise.
59978         * lib/inet_pton.h: Likewise.
59979         * lib/intprops.h: Likewise.
59980         * lib/inttostr.c: Likewise.
59981         * lib/inttostr.h: Likewise.
59982         * lib/inttypes.in.h: Likewise.
59983         * lib/isapipe.c: Likewise.
59984         * lib/isdir.c: Likewise.
59985         * lib/isnan.c: Likewise.
59986         * lib/isnan.h: Likewise.
59987         * lib/isnanf.c: Likewise.
59988         * lib/isnanf.h: Likewise.
59989         * lib/isnanl-nolibm.h: Likewise.
59990         * lib/isnanl.c: Likewise.
59991         * lib/isnanl.h: Likewise.
59992         * lib/javacomp.c: Likewise.
59993         * lib/javacomp.h: Likewise.
59994         * lib/javaexec.c: Likewise.
59995         * lib/javaexec.h: Likewise.
59996         * lib/javaversion.c: Likewise.
59997         * lib/javaversion.h: Likewise.
59998         * lib/javaversion.java: Likewise.
59999         * lib/lbrkprop.h: Likewise.
60000         * lib/lchmod.h: Likewise.
60001         * lib/lchown.c: Likewise.
60002         * lib/ldexpl.c: Likewise.
60003         * lib/linebreak.c: Likewise.
60004         * lib/linebreak.h: Likewise.
60005         * lib/linebuffer.c: Likewise.
60006         * lib/linebuffer.h: Likewise.
60007         * lib/locale.in.h: Likewise.
60008         * lib/logl.c: Likewise.
60009         * lib/long-options.c: Likewise.
60010         * lib/long-options.h: Likewise.
60011         * lib/lstat.c: Likewise.
60012         * lib/lstat.h: Likewise.
60013         * lib/math.in.h: Likewise.
60014         * lib/mbchar.c: Likewise.
60015         * lib/mbchar.h: Likewise.
60016         * lib/mbfile.h: Likewise.
60017         * lib/mbiter.h: Likewise.
60018         * lib/mbscasecmp.c: Likewise.
60019         * lib/mbscasestr.c: Likewise.
60020         * lib/mbschr.c: Likewise.
60021         * lib/mbscspn.c: Likewise.
60022         * lib/mbslen.c: Likewise.
60023         * lib/mbsncasecmp.c: Likewise.
60024         * lib/mbsnlen.c: Likewise.
60025         * lib/mbspbrk.c: Likewise.
60026         * lib/mbspcasecmp.c: Likewise.
60027         * lib/mbsrchr.c: Likewise.
60028         * lib/mbssep.c: Likewise.
60029         * lib/mbsspn.c: Likewise.
60030         * lib/mbsstr.c: Likewise.
60031         * lib/mbstok_r.c: Likewise.
60032         * lib/mbswidth.c: Likewise.
60033         * lib/mbswidth.h: Likewise.
60034         * lib/mbuiter.h: Likewise.
60035         * lib/memcasecmp.c: Likewise.
60036         * lib/memcasecmp.h: Likewise.
60037         * lib/memchr.c: Likewise.
60038         * lib/memcmp.c: Likewise.
60039         * lib/memcoll.c: Likewise.
60040         * lib/memcoll.h: Likewise.
60041         * lib/memcpy.c: Likewise.
60042         * lib/memrchr.c: Likewise.
60043         * lib/mkancesdirs.c: Likewise.
60044         * lib/mkdir-p.c: Likewise.
60045         * lib/mkdir-p.h: Likewise.
60046         * lib/mkdir.c: Likewise.
60047         * lib/mkdirat.c: Likewise.
60048         * lib/mkdtemp.c: Likewise.
60049         * lib/mkstemp-safer.c: Likewise.
60050         * lib/mkstemp.c: Likewise.
60051         * lib/modechange.c: Likewise.
60052         * lib/modechange.h: Likewise.
60053         * lib/mountlist.c: Likewise.
60054         * lib/mountlist.h: Likewise.
60055         * lib/mpsort.c: Likewise.
60056         * lib/nanosleep.c: Likewise.
60057         * lib/obstack.c: Likewise.
60058         * lib/obstack.h: Likewise.
60059         * lib/open-safer.c: Likewise.
60060         * lib/open.c: Likewise.
60061         * lib/openat-die.c: Likewise.
60062         * lib/openat-priv.h: Likewise.
60063         * lib/openat-proc.c: Likewise.
60064         * lib/openat.c: Likewise.
60065         * lib/openat.h: Likewise.
60066         * lib/pagealign_alloc.c: Likewise.
60067         * lib/pagealign_alloc.h: Likewise.
60068         * lib/physmem.c: Likewise.
60069         * lib/physmem.h: Likewise.
60070         * lib/pipe-safer.c: Likewise.
60071         * lib/pipe.c: Likewise.
60072         * lib/pipe.h: Likewise.
60073         * lib/posixtm.c: Likewise.
60074         * lib/posixtm.h: Likewise.
60075         * lib/posixver.c: Likewise.
60076         * lib/printf-frexp.c: Likewise.
60077         * lib/printf-frexp.h: Likewise.
60078         * lib/printf-frexpl.c: Likewise.
60079         * lib/printf-frexpl.h: Likewise.
60080         * lib/printf.c: Likewise.
60081         * lib/progname.c: Likewise.
60082         * lib/progname.h: Likewise.
60083         * lib/progreloc.c: Likewise.
60084         * lib/putenv.c: Likewise.
60085         * lib/quote.c: Likewise.
60086         * lib/quote.h: Likewise.
60087         * lib/quotearg.c: Likewise.
60088         * lib/quotearg.h: Likewise.
60089         * lib/raise.c: Likewise.
60090         * lib/readline.c: Likewise.
60091         * lib/readline.h: Likewise.
60092         * lib/readlink.c: Likewise.
60093         * lib/readtokens.c: Likewise.
60094         * lib/readtokens.h: Likewise.
60095         * lib/readtokens0.c: Likewise.
60096         * lib/readtokens0.h: Likewise.
60097         * lib/readutmp.c: Likewise.
60098         * lib/readutmp.h: Likewise.
60099         * lib/realloc.c: Likewise.
60100         * lib/relocwrapper.c: Likewise.
60101         * lib/rename-dest-slash.c: Likewise.
60102         * lib/rename.c: Likewise.
60103         * lib/rmdir.c: Likewise.
60104         * lib/rpmatch.c: Likewise.
60105         * lib/safe-read.c: Likewise.
60106         * lib/safe-read.h: Likewise.
60107         * lib/safe-write.c: Likewise.
60108         * lib/safe-write.h: Likewise.
60109         * lib/same-inode.h: Likewise.
60110         * lib/same.c: Likewise.
60111         * lib/same.h: Likewise.
60112         * lib/save-cwd.c: Likewise.
60113         * lib/save-cwd.h: Likewise.
60114         * lib/savedir.c: Likewise.
60115         * lib/savedir.h: Likewise.
60116         * lib/savewd.c: Likewise.
60117         * lib/savewd.h: Likewise.
60118         * lib/search.in.h: Likewise.
60119         * lib/setenv.c: Likewise.
60120         * lib/setenv.h: Likewise.
60121         * lib/settime.c: Likewise.
60122         * lib/sh-quote.c: Likewise.
60123         * lib/sh-quote.h: Likewise.
60124         * lib/sig2str.c: Likewise.
60125         * lib/sig2str.h: Likewise.
60126         * lib/signal.in.h: Likewise.
60127         * lib/signbitd.c: Likewise.
60128         * lib/signbitf.c: Likewise.
60129         * lib/signbitl.c: Likewise.
60130         * lib/sigprocmask.c: Likewise.
60131         * lib/sincosl.c: Likewise.
60132         * lib/sleep.c: Likewise.
60133         * lib/sprintf.c: Likewise.
60134         * lib/sqrtl.c: Likewise.
60135         * lib/stat-time.h: Likewise.
60136         * lib/stdio--.h: Likewise.
60137         * lib/stdio-safer.h: Likewise.
60138         * lib/stdlib--.h: Likewise.
60139         * lib/stdlib-safer.h: Likewise.
60140         * lib/stdlib.in.h: Likewise.
60141         * lib/stpcpy.c: Likewise.
60142         * lib/stpncpy.c: Likewise.
60143         * lib/strchrnul.c: Likewise.
60144         * lib/strcspn.c: Likewise.
60145         * lib/strerror.c: Likewise.
60146         * lib/strftime.c: Likewise.
60147         * lib/strftime.h: Likewise.
60148         * lib/striconveh.c: Likewise.
60149         * lib/striconveh.h: Likewise.
60150         * lib/striconveha.c: Likewise.
60151         * lib/striconveha.h: Likewise.
60152         * lib/stripslash.c: Likewise.
60153         * lib/strnlen1.c: Likewise.
60154         * lib/strnlen1.h: Likewise.
60155         * lib/strtod.c: Likewise.
60156         * lib/strtoimax.c: Likewise.
60157         * lib/strtok_r.c: Likewise.
60158         * lib/strtol.c: Likewise.
60159         * lib/strtoll.c: Likewise.
60160         * lib/strtoul.c: Likewise.
60161         * lib/strtoull.c: Likewise.
60162         * lib/sysexits.in.h: Likewise.
60163         * lib/tempname.c: Likewise.
60164         * lib/tempname.h: Likewise.
60165         * lib/timespec.h: Likewise.
60166         * lib/tls.c: Likewise.
60167         * lib/tls.h: Likewise.
60168         * lib/tmpdir.c: Likewise.
60169         * lib/tmpdir.h: Likewise.
60170         * lib/tmpfile-safer.c: Likewise.
60171         * lib/tmpfile.c: Likewise.
60172         * lib/trigl.c: Likewise.
60173         * lib/trigl.h: Likewise.
60174         * lib/trim.c: Likewise.
60175         * lib/trim.h: Likewise.
60176         * lib/trunc.c: Likewise.
60177         * lib/truncf.c: Likewise.
60178         * lib/truncl.c: Likewise.
60179         * lib/tsearch.c: Likewise.
60180         * lib/unicodeio.c: Likewise.
60181         * lib/unicodeio.h: Likewise.
60182         * lib/unistd--.h: Likewise.
60183         * lib/unistd-safer.h: Likewise.
60184         * lib/unistdio/ulc-fprintf.c: Likewise.
60185         * lib/unistdio/ulc-vfprintf.c: Likewise.
60186         * lib/unlinkdir.c: Likewise.
60187         * lib/unlinkdir.h: Likewise.
60188         * lib/unlocked-io.h: Likewise.
60189         * lib/unsetenv.c: Likewise.
60190         * lib/userspec.c: Likewise.
60191         * lib/utime.c: Likewise.
60192         * lib/utimecmp.c: Likewise.
60193         * lib/utimecmp.h: Likewise.
60194         * lib/utimens.c: Likewise.
60195         * lib/verify.h: Likewise.
60196         * lib/verror.c: Likewise.
60197         * lib/verror.h: Likewise.
60198         * lib/version-etc-fsf.c: Likewise.
60199         * lib/version-etc.c: Likewise.
60200         * lib/version-etc.h: Likewise.
60201         * lib/vfprintf.c: Likewise.
60202         * lib/vprintf.c: Likewise.
60203         * lib/vsprintf.c: Likewise.
60204         * lib/w32spawn.h: Likewise.
60205         * lib/wait-process.c: Likewise.
60206         * lib/wait-process.h: Likewise.
60207         * lib/wcwidth.c: Likewise.
60208         * lib/write-any-file.c: Likewise.
60209         * lib/xalloc-die.c: Likewise.
60210         * lib/xalloc.h: Likewise.
60211         * lib/xasprintf.c: Likewise.
60212         * lib/xgetcwd.c: Likewise.
60213         * lib/xgetcwd.h: Likewise.
60214         * lib/xgetdomainname.c: Likewise.
60215         * lib/xgetdomainname.h: Likewise.
60216         * lib/xgethostname.c: Likewise.
60217         * lib/xmalloc.c: Likewise.
60218         * lib/xmalloca.c: Likewise.
60219         * lib/xmalloca.h: Likewise.
60220         * lib/xmemcoll.c: Likewise.
60221         * lib/xnanosleep.c: Likewise.
60222         * lib/xreadlink.c: Likewise.
60223         * lib/xreadlink.h: Likewise.
60224         * lib/xsetenv.c: Likewise.
60225         * lib/xsetenv.h: Likewise.
60226         * lib/xstriconv.c: Likewise.
60227         * lib/xstriconv.h: Likewise.
60228         * lib/xstrndup.c: Likewise.
60229         * lib/xstrndup.h: Likewise.
60230         * lib/xstrtod.c: Likewise.
60231         * lib/xstrtod.h: Likewise.
60232         * lib/xstrtol-error.c: Likewise.
60233         * lib/xstrtol.c: Likewise.
60234         * lib/xstrtol.h: Likewise.
60235         * lib/xtime.h: Likewise.
60236         * lib/xvasprintf.c: Likewise.
60237         * lib/xvasprintf.h: Likewise.
60238         * lib/yesno.c: Likewise.
60239         * lib/yesno.h: Likewise.
60240         * posix-modules: Likewise.
60241         * tests/test-alloca-opt.c: Likewise.
60242         * tests/test-arcfour.c: Likewise.
60243         * tests/test-arctwo.c: Likewise.
60244         * tests/test-argmatch.c: Likewise.
60245         * tests/test-argp-2.sh: Likewise.
60246         * tests/test-argp.c: Likewise.
60247         * tests/test-arpa_inet.c: Likewise.
60248         * tests/test-array_list.c: Likewise.
60249         * tests/test-array_oset.c: Likewise.
60250         * tests/test-atexit.c: Likewise.
60251         * tests/test-avltree_list.c: Likewise.
60252         * tests/test-avltree_oset.c: Likewise.
60253         * tests/test-avltreehash_list.c: Likewise.
60254         * tests/test-base64.c: Likewise.
60255         * tests/test-binary-io.c: Likewise.
60256         * tests/test-byteswap.c: Likewise.
60257         * tests/test-c-ctype.c: Likewise.
60258         * tests/test-c-strcasecmp.c: Likewise.
60259         * tests/test-c-strcasestr.c: Likewise.
60260         * tests/test-c-strncasecmp.c: Likewise.
60261         * tests/test-c-strstr.c: Likewise.
60262         * tests/test-canonicalize-lgpl.c: Likewise.
60263         * tests/test-canonicalize.c: Likewise.
60264         * tests/test-carray_list.c: Likewise.
60265         * tests/test-ceilf.c: Likewise.
60266         * tests/test-ceill.c: Likewise.
60267         * tests/test-count-one-bits.c: Likewise.
60268         * tests/test-crc.c: Likewise.
60269         * tests/test-dirname.c: Likewise.
60270         * tests/test-fbufmode.c: Likewise.
60271         * tests/test-fcntl.c: Likewise.
60272         * tests/test-fflush.c: Likewise.
60273         * tests/test-floorf.c: Likewise.
60274         * tests/test-floorl.c: Likewise.
60275         * tests/test-fopen.c: Likewise.
60276         * tests/test-fprintf-posix.c: Likewise.
60277         * tests/test-fprintf-posix.h: Likewise.
60278         * tests/test-fpurge.c: Likewise.
60279         * tests/test-freadable.c: Likewise.
60280         * tests/test-freadahead.c: Likewise.
60281         * tests/test-freading.c: Likewise.
60282         * tests/test-freopen.c: Likewise.
60283         * tests/test-frexp.c: Likewise.
60284         * tests/test-frexpl.c: Likewise.
60285         * tests/test-fseek.c: Likewise.
60286         * tests/test-fseeko.c: Likewise.
60287         * tests/test-fseterr.c: Likewise.
60288         * tests/test-fstrcmp.c: Likewise.
60289         * tests/test-ftell.c: Likewise.
60290         * tests/test-ftello.c: Likewise.
60291         * tests/test-fwritable.c: Likewise.
60292         * tests/test-fwriting.c: Likewise.
60293         * tests/test-getaddrinfo.c: Likewise.
60294         * tests/test-getpass.c: Likewise.
60295         * tests/test-gettimeofday.c: Likewise.
60296         * tests/test-hmac-md5.c: Likewise.
60297         * tests/test-hmac-sha1.c: Likewise.
60298         * tests/test-iconv.c: Likewise.
60299         * tests/test-iconvme.c: Likewise.
60300         * tests/test-inttypes.c: Likewise.
60301         * tests/test-isnan.c: Likewise.
60302         * tests/test-isnanf.c: Likewise.
60303         * tests/test-isnanl-nolibm.c: Likewise.
60304         * tests/test-isnanl.c: Likewise.
60305         * tests/test-isnanl.h: Likewise.
60306         * tests/test-ldexpl.c: Likewise.
60307         * tests/test-linked_list.c: Likewise.
60308         * tests/test-linkedhash_list.c: Likewise.
60309         * tests/test-locale.c: Likewise.
60310         * tests/test-localename.c: Likewise.
60311         * tests/test-lock.c: Likewise.
60312         * tests/test-lseek.c: Likewise.
60313         * tests/test-malloca.c: Likewise.
60314         * tests/test-math.c: Likewise.
60315         * tests/test-mbscasecmp.c: Likewise.
60316         * tests/test-mbscasestr1.c: Likewise.
60317         * tests/test-mbscasestr2.c: Likewise.
60318         * tests/test-mbscasestr3.c: Likewise.
60319         * tests/test-mbscasestr4.c: Likewise.
60320         * tests/test-mbschr.c: Likewise.
60321         * tests/test-mbscspn.c: Likewise.
60322         * tests/test-mbsncasecmp.c: Likewise.
60323         * tests/test-mbspbrk.c: Likewise.
60324         * tests/test-mbspcasecmp.c: Likewise.
60325         * tests/test-mbsrchr.c: Likewise.
60326         * tests/test-mbsspn.c: Likewise.
60327         * tests/test-mbsstr1.c: Likewise.
60328         * tests/test-mbsstr2.c: Likewise.
60329         * tests/test-mbsstr3.c: Likewise.
60330         * tests/test-md5.c: Likewise.
60331         * tests/test-memmem.c: Likewise.
60332         * tests/test-netinet_in.c: Likewise.
60333         * tests/test-open.c: Likewise.
60334         * tests/test-printf-frexp.c: Likewise.
60335         * tests/test-printf-frexpl.c: Likewise.
60336         * tests/test-printf-posix.c: Likewise.
60337         * tests/test-printf-posix.h: Likewise.
60338         * tests/test-rbtree_list.c: Likewise.
60339         * tests/test-rbtree_oset.c: Likewise.
60340         * tests/test-rbtreehash_list.c: Likewise.
60341         * tests/test-read-file.c: Likewise.
60342         * tests/test-rijndael.c: Likewise.
60343         * tests/test-search.c: Likewise.
60344         * tests/test-signbit.c: Likewise.
60345         * tests/test-sleep.c: Likewise.
60346         * tests/test-snprintf-posix.c: Likewise.
60347         * tests/test-snprintf-posix.h: Likewise.
60348         * tests/test-snprintf.c: Likewise.
60349         * tests/test-sprintf-posix.c: Likewise.
60350         * tests/test-sprintf-posix.h: Likewise.
60351         * tests/test-stat-time.c: Likewise.
60352         * tests/test-stdbool.c: Likewise.
60353         * tests/test-stdint.c: Likewise.
60354         * tests/test-stdio.c: Likewise.
60355         * tests/test-stdlib.c: Likewise.
60356         * tests/test-stpncpy.c: Likewise.
60357         * tests/test-strcasestr.c: Likewise.
60358         * tests/test-striconv.c: Likewise.
60359         * tests/test-striconveh.c: Likewise.
60360         * tests/test-striconveha.c: Likewise.
60361         * tests/test-string.c: Likewise.
60362         * tests/test-sys_select.c: Likewise.
60363         * tests/test-sys_socket.c: Likewise.
60364         * tests/test-sys_stat.c: Likewise.
60365         * tests/test-sys_time.c: Likewise.
60366         * tests/test-sysexits.c: Likewise.
60367         * tests/test-time.c: Likewise.
60368         * tests/test-tls.c: Likewise.
60369         * tests/test-trunc.c: Likewise.
60370         * tests/test-truncf.c: Likewise.
60371         * tests/test-truncl.c: Likewise.
60372         * tests/test-unistd.c: Likewise.
60373         * tests/test-vasnprintf-posix.c: Likewise.
60374         * tests/test-vasnprintf-posix2.c: Likewise.
60375         * tests/test-vasnprintf.c: Likewise.
60376         * tests/test-vasprintf-posix.c: Likewise.
60377         * tests/test-vasprintf.c: Likewise.
60378         * tests/test-verify.c: Likewise.
60379         * tests/test-vfprintf-posix.c: Likewise.
60380         * tests/test-vprintf-posix.c: Likewise.
60381         * tests/test-vsnprintf-posix.c: Likewise.
60382         * tests/test-vsnprintf.c: Likewise.
60383         * tests/test-vsprintf-posix.c: Likewise.
60384         * tests/test-wchar.c: Likewise.
60385         * tests/test-wctype.c: Likewise.
60386         * tests/test-wcwidth.c: Likewise.
60387         * tests/test-xstrtol.c: Likewise.
60388         * tests/test-xvasprintf.c: Likewise.
60389         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60390         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60391         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60392         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60393         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60394         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60395         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60396         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60397         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60398         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60399         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60400         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60401         * tests/uniname/test-uninames.c: Likewise.
60402         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60403         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60404         * tests/unistdio/test-u16-printf1.h: Likewise.
60405         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60406         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60407         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60408         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60409         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60410         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60411         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60412         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60413         * tests/unistdio/test-u32-printf1.h: Likewise.
60414         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60415         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60416         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60417         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60418         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60419         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60420         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60421         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60422         * tests/unistdio/test-u8-printf1.h: Likewise.
60423         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60424         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60425         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60426         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60427         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60428         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60429         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60430         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60431         * tests/unistdio/test-ulc-printf1.h: Likewise.
60432         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60433         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60434         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60435         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60436         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60437         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60438         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60439         * tests/uniwidth/test-u16-width.c: Likewise.
60440         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60441         * tests/uniwidth/test-u32-width.c: Likewise.
60442         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60443         * tests/uniwidth/test-u8-width.c: Likewise.
60444         * tests/uniwidth/test-uc_width.c: Likewise.
60445         * config/srclist-update: Likewise.
60446         (fixlicense): Update to GPLv3+.
60447
60448         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60449         * tests/test-tsearch.c: Change copyright notice.
60450
60451         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60452         * lib/c-strcaseeq.h: Change copyright notice.
60453         * lib/streq.h: Likewise.
60454         * lib/uniconv.h: Likewise.
60455         * lib/uniconv/u-conv-from-enc.h: Likewise.
60456         * lib/uniconv/u-conv-to-enc.h: Likewise.
60457         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60458         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60459         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60460         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60461         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60462         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60463         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60464         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60465         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60466         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60467         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60468         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60469         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60470         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60471         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60472         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60473         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60474         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60475         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60476         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60477         * lib/uniname.h: Likewise.
60478         * lib/uniname/uniname.c: Likewise.
60479         * lib/unistdio.h: Likewise.
60480         * lib/unistdio/u-asnprintf.h: Likewise.
60481         * lib/unistdio/u-asprintf.h: Likewise.
60482         * lib/unistdio/u-printf-args.c: Likewise.
60483         * lib/unistdio/u-printf-args.h: Likewise.
60484         * lib/unistdio/u-printf-parse.h: Likewise.
60485         * lib/unistdio/u-snprintf.h: Likewise.
60486         * lib/unistdio/u-sprintf.h: Likewise.
60487         * lib/unistdio/u-vasprintf.h: Likewise.
60488         * lib/unistdio/u-vsnprintf.h: Likewise.
60489         * lib/unistdio/u-vsprintf.h: Likewise.
60490         * lib/unistdio/u16-asnprintf.c: Likewise.
60491         * lib/unistdio/u16-asprintf.c: Likewise.
60492         * lib/unistdio/u16-printf-parse.c: Likewise.
60493         * lib/unistdio/u16-snprintf.c: Likewise.
60494         * lib/unistdio/u16-sprintf.c: Likewise.
60495         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60496         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60497         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60498         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60499         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60500         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60501         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60502         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60503         * lib/unistdio/u16-vasnprintf.c: Likewise.
60504         * lib/unistdio/u16-vasprintf.c: Likewise.
60505         * lib/unistdio/u16-vsnprintf.c: Likewise.
60506         * lib/unistdio/u16-vsprintf.c: Likewise.
60507         * lib/unistdio/u32-asnprintf.c: Likewise.
60508         * lib/unistdio/u32-asprintf.c: Likewise.
60509         * lib/unistdio/u32-printf-parse.c: Likewise.
60510         * lib/unistdio/u32-snprintf.c: Likewise.
60511         * lib/unistdio/u32-sprintf.c: Likewise.
60512         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60513         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60514         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60515         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60516         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60517         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60518         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60519         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60520         * lib/unistdio/u32-vasnprintf.c: Likewise.
60521         * lib/unistdio/u32-vasprintf.c: Likewise.
60522         * lib/unistdio/u32-vsnprintf.c: Likewise.
60523         * lib/unistdio/u32-vsprintf.c: Likewise.
60524         * lib/unistdio/u8-asnprintf.c: Likewise.
60525         * lib/unistdio/u8-asprintf.c: Likewise.
60526         * lib/unistdio/u8-printf-parse.c: Likewise.
60527         * lib/unistdio/u8-snprintf.c: Likewise.
60528         * lib/unistdio/u8-sprintf.c: Likewise.
60529         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60530         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60531         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60532         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60533         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60534         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60535         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60536         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60537         * lib/unistdio/u8-vasnprintf.c: Likewise.
60538         * lib/unistdio/u8-vasprintf.c: Likewise.
60539         * lib/unistdio/u8-vsnprintf.c: Likewise.
60540         * lib/unistdio/u8-vsprintf.c: Likewise.
60541         * lib/unistdio/ulc-asnprintf.c: Likewise.
60542         * lib/unistdio/ulc-asprintf.c: Likewise.
60543         * lib/unistdio/ulc-printf-parse.c: Likewise.
60544         * lib/unistdio/ulc-snprintf.c: Likewise.
60545         * lib/unistdio/ulc-sprintf.c: Likewise.
60546         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60547         * lib/unistdio/ulc-vasprintf.c: Likewise.
60548         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60549         * lib/unistdio/ulc-vsprintf.c: Likewise.
60550         * lib/unistr.h: Likewise.
60551         * lib/unistr/u-cpy-alloc.h: Likewise.
60552         * lib/unistr/u-cpy.h: Likewise.
60553         * lib/unistr/u-endswith.h: Likewise.
60554         * lib/unistr/u-move.h: Likewise.
60555         * lib/unistr/u-set.h: Likewise.
60556         * lib/unistr/u-startswith.h: Likewise.
60557         * lib/unistr/u-stpcpy.h: Likewise.
60558         * lib/unistr/u-stpncpy.h: Likewise.
60559         * lib/unistr/u-strcat.h: Likewise.
60560         * lib/unistr/u-strcpy.h: Likewise.
60561         * lib/unistr/u-strcspn.h: Likewise.
60562         * lib/unistr/u-strdup.h: Likewise.
60563         * lib/unistr/u-strlen.h: Likewise.
60564         * lib/unistr/u-strncat.h: Likewise.
60565         * lib/unistr/u-strncpy.h: Likewise.
60566         * lib/unistr/u-strnlen.h: Likewise.
60567         * lib/unistr/u-strpbrk.h: Likewise.
60568         * lib/unistr/u-strspn.h: Likewise.
60569         * lib/unistr/u-strstr.h: Likewise.
60570         * lib/unistr/u-strtok.h: Likewise.
60571         * lib/unistr/u16-check.c: Likewise.
60572         * lib/unistr/u16-chr.c: Likewise.
60573         * lib/unistr/u16-cmp.c: Likewise.
60574         * lib/unistr/u16-cpy-alloc.c: Likewise.
60575         * lib/unistr/u16-cpy.c: Likewise.
60576         * lib/unistr/u16-endswith.c: Likewise.
60577         * lib/unistr/u16-mblen.c: Likewise.
60578         * lib/unistr/u16-mbsnlen.c: Likewise.
60579         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60580         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60581         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60582         * lib/unistr/u16-mbtouc.c: Likewise.
60583         * lib/unistr/u16-mbtoucr.c: Likewise.
60584         * lib/unistr/u16-move.c: Likewise.
60585         * lib/unistr/u16-next.c: Likewise.
60586         * lib/unistr/u16-prev.c: Likewise.
60587         * lib/unistr/u16-set.c: Likewise.
60588         * lib/unistr/u16-startswith.c: Likewise.
60589         * lib/unistr/u16-stpcpy.c: Likewise.
60590         * lib/unistr/u16-stpncpy.c: Likewise.
60591         * lib/unistr/u16-strcat.c: Likewise.
60592         * lib/unistr/u16-strchr.c: Likewise.
60593         * lib/unistr/u16-strcmp.c: Likewise.
60594         * lib/unistr/u16-strcpy.c: Likewise.
60595         * lib/unistr/u16-strcspn.c: Likewise.
60596         * lib/unistr/u16-strdup.c: Likewise.
60597         * lib/unistr/u16-strlen.c: Likewise.
60598         * lib/unistr/u16-strmblen.c: Likewise.
60599         * lib/unistr/u16-strmbtouc.c: Likewise.
60600         * lib/unistr/u16-strncat.c: Likewise.
60601         * lib/unistr/u16-strncmp.c: Likewise.
60602         * lib/unistr/u16-strncpy.c: Likewise.
60603         * lib/unistr/u16-strnlen.c: Likewise.
60604         * lib/unistr/u16-strpbrk.c: Likewise.
60605         * lib/unistr/u16-strrchr.c: Likewise.
60606         * lib/unistr/u16-strspn.c: Likewise.
60607         * lib/unistr/u16-strstr.c: Likewise.
60608         * lib/unistr/u16-strtok.c: Likewise.
60609         * lib/unistr/u16-to-u32.c: Likewise.
60610         * lib/unistr/u16-to-u8.c: Likewise.
60611         * lib/unistr/u16-uctomb-aux.c: Likewise.
60612         * lib/unistr/u16-uctomb.c: Likewise.
60613         * lib/unistr/u32-check.c: Likewise.
60614         * lib/unistr/u32-chr.c: Likewise.
60615         * lib/unistr/u32-cmp.c: Likewise.
60616         * lib/unistr/u32-cpy-alloc.c: Likewise.
60617         * lib/unistr/u32-cpy.c: Likewise.
60618         * lib/unistr/u32-endswith.c: Likewise.
60619         * lib/unistr/u32-mblen.c: Likewise.
60620         * lib/unistr/u32-mbsnlen.c: Likewise.
60621         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60622         * lib/unistr/u32-mbtouc.c: Likewise.
60623         * lib/unistr/u32-mbtoucr.c: Likewise.
60624         * lib/unistr/u32-move.c: Likewise.
60625         * lib/unistr/u32-next.c: Likewise.
60626         * lib/unistr/u32-prev.c: Likewise.
60627         * lib/unistr/u32-set.c: Likewise.
60628         * lib/unistr/u32-startswith.c: Likewise.
60629         * lib/unistr/u32-stpcpy.c: Likewise.
60630         * lib/unistr/u32-stpncpy.c: Likewise.
60631         * lib/unistr/u32-strcat.c: Likewise.
60632         * lib/unistr/u32-strchr.c: Likewise.
60633         * lib/unistr/u32-strcmp.c: Likewise.
60634         * lib/unistr/u32-strcpy.c: Likewise.
60635         * lib/unistr/u32-strcspn.c: Likewise.
60636         * lib/unistr/u32-strdup.c: Likewise.
60637         * lib/unistr/u32-strlen.c: Likewise.
60638         * lib/unistr/u32-strmblen.c: Likewise.
60639         * lib/unistr/u32-strmbtouc.c: Likewise.
60640         * lib/unistr/u32-strncat.c: Likewise.
60641         * lib/unistr/u32-strncmp.c: Likewise.
60642         * lib/unistr/u32-strncpy.c: Likewise.
60643         * lib/unistr/u32-strnlen.c: Likewise.
60644         * lib/unistr/u32-strpbrk.c: Likewise.
60645         * lib/unistr/u32-strrchr.c: Likewise.
60646         * lib/unistr/u32-strspn.c: Likewise.
60647         * lib/unistr/u32-strstr.c: Likewise.
60648         * lib/unistr/u32-strtok.c: Likewise.
60649         * lib/unistr/u32-to-u16.c: Likewise.
60650         * lib/unistr/u32-to-u8.c: Likewise.
60651         * lib/unistr/u32-uctomb.c: Likewise.
60652         * lib/unistr/u8-check.c: Likewise.
60653         * lib/unistr/u8-chr.c: Likewise.
60654         * lib/unistr/u8-cmp.c: Likewise.
60655         * lib/unistr/u8-cpy-alloc.c: Likewise.
60656         * lib/unistr/u8-cpy.c: Likewise.
60657         * lib/unistr/u8-endswith.c: Likewise.
60658         * lib/unistr/u8-mblen.c: Likewise.
60659         * lib/unistr/u8-mbsnlen.c: Likewise.
60660         * lib/unistr/u8-mbtouc-aux.c: Likewise.
60661         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60662         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60663         * lib/unistr/u8-mbtouc.c: Likewise.
60664         * lib/unistr/u8-mbtoucr.c: Likewise.
60665         * lib/unistr/u8-move.c: Likewise.
60666         * lib/unistr/u8-next.c: Likewise.
60667         * lib/unistr/u8-prev.c: Likewise.
60668         * lib/unistr/u8-set.c: Likewise.
60669         * lib/unistr/u8-startswith.c: Likewise.
60670         * lib/unistr/u8-stpcpy.c: Likewise.
60671         * lib/unistr/u8-stpncpy.c: Likewise.
60672         * lib/unistr/u8-strcat.c: Likewise.
60673         * lib/unistr/u8-strchr.c: Likewise.
60674         * lib/unistr/u8-strcmp.c: Likewise.
60675         * lib/unistr/u8-strcpy.c: Likewise.
60676         * lib/unistr/u8-strcspn.c: Likewise.
60677         * lib/unistr/u8-strdup.c: Likewise.
60678         * lib/unistr/u8-strlen.c: Likewise.
60679         * lib/unistr/u8-strmblen.c: Likewise.
60680         * lib/unistr/u8-strmbtouc.c: Likewise.
60681         * lib/unistr/u8-strncat.c: Likewise.
60682         * lib/unistr/u8-strncmp.c: Likewise.
60683         * lib/unistr/u8-strncpy.c: Likewise.
60684         * lib/unistr/u8-strnlen.c: Likewise.
60685         * lib/unistr/u8-strpbrk.c: Likewise.
60686         * lib/unistr/u8-strrchr.c: Likewise.
60687         * lib/unistr/u8-strspn.c: Likewise.
60688         * lib/unistr/u8-strstr.c: Likewise.
60689         * lib/unistr/u8-strtok.c: Likewise.
60690         * lib/unistr/u8-to-u16.c: Likewise.
60691         * lib/unistr/u8-to-u32.c: Likewise.
60692         * lib/unistr/u8-uctomb-aux.c: Likewise.
60693         * lib/unistr/u8-uctomb.c: Likewise.
60694         * lib/unitypes.h: Likewise.
60695         * lib/uniwidth.h: Likewise.
60696         * lib/uniwidth/cjk.h: Likewise.
60697         * lib/uniwidth/u16-strwidth.c: Likewise.
60698         * lib/uniwidth/u16-width.c: Likewise.
60699         * lib/uniwidth/u32-strwidth.c: Likewise.
60700         * lib/uniwidth/u32-width.c: Likewise.
60701         * lib/uniwidth/u8-strwidth.c: Likewise.
60702         * lib/uniwidth/u8-width.c: Likewise.
60703         * lib/uniwidth/width.c: Likewise.
60704
60705 2007-10-07  Bruno Haible  <bruno@clisp.org>
60706
60707         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
60708         The file is still under LGPL (see modules/inttypes).
60709
60710 2007-10-06  Bruno Haible  <bruno@clisp.org>
60711
60712         * modules/trunc (Dependencies): Add 'extensions'.
60713         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
60714         Reported by Ben Pfaff <blp@gnu.org>.
60715
60716 2007-10-06  Bruno Haible  <bruno@clisp.org>
60717
60718         * modules/freopen-tests: New file.
60719         * tests/test-freopen.c: New file.
60720
60721         * modules/fopen-tests: New file.
60722         * tests/test-fopen.c: New file.
60723
60724         * modules/fopen: New file.
60725         * lib/fopen.c: New file.
60726         * m4/fopen.m4: New file.
60727         * modules/freopen: New file.
60728         * lib/freopen.c: New file.
60729         * m4/freopen.m4: New file.
60730         * lib/stdio.in.h (fopen, freopen): New declarations.
60731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
60732         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60733         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
60734         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60735         * doc/functions/fopen.texi: Mention the 'fopen' module.
60736         * doc/functions/freopen.texi: Mention the 'freopen' module.
60737
60738 2007-10-06  Bruno Haible  <bruno@clisp.org>
60739
60740         * modules/open-tests: New file.
60741         * tests/test-open.c: New file.
60742
60743         * modules/open: New file.
60744         * lib/open.c: New file.
60745         * m4/open.m4: New file.
60746         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
60747         lib/open.c does.
60748         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
60749         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
60750         macros.
60751         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
60752         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
60753         REPLACE_OPEN.
60754         * doc/functions/open.texi: Mention the 'open' module.
60755
60756 2007-10-04  Bruno Haible  <bruno@clisp.org>
60757
60758         * modules/ceill-tests: New file.
60759         * tests/test-ceill.c: New file.
60760
60761         * modules/ceill: New file.
60762         * lib/ceill.c: Replace entire file.
60763         * m4/ceill.m4: New file.
60764         * lib/math.in.h (ceill): Replace declaration.
60765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
60766         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
60767         * doc/functions/ceill.texi: Mention the 'ceill' module.
60768         * modules/mathl (Files): Remove lib/ceill.c.
60769         (Depends-on): Add ceill.
60770
60771 2007-10-04  Bruno Haible  <bruno@clisp.org>
60772
60773         * modules/ceilf-tests: New file.
60774         * tests/test-ceilf.c: New file.
60775
60776         * modules/ceilf: New file.
60777         * lib/ceil.c: New file.
60778         * lib/ceilf.c: New file.
60779         * m4/ceilf.m4: New file.
60780         * lib/math.in.h (ceilf): New declaration.
60781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
60782         HAVE_DECL_CEILF.
60783         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
60784         HAVE_DECL_CEILF.
60785         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
60786
60787 2007-10-04  Bruno Haible  <bruno@clisp.org>
60788
60789         * modules/floorl-tests: New file.
60790         * tests/test-floorl.c: New file.
60791
60792         * modules/floorl: New file.
60793         * lib/floorl.c: Replace entire file.
60794         * m4/floorl.m4: New file.
60795         * lib/math.in.h (floorl): Replace declaration.
60796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
60797         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
60798         * doc/functions/floorl.texi: Mention the 'floorl' module.
60799         * modules/mathl (Files): Remove lib/floorl.c.
60800         (Depends-on): Add floorl.
60801
60802 2007-10-04  Bruno Haible  <bruno@clisp.org>
60803
60804         * modules/floorf-tests: New file.
60805         * tests/test-floorf.c: New file.
60806
60807         * modules/floorf: New file.
60808         * lib/floor.c: New file.
60809         * lib/floorf.c: New file.
60810         * m4/floorf.m4: New file.
60811         * lib/math.in.h (floorf): New declaration.
60812         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
60813         HAVE_DECL_FLOORF.
60814         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
60815         HAVE_DECL_FLOORF.
60816         * doc/functions/floorf.texi: Mention the 'floorf' module.
60817
60818 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
60819             Bruno Haible  <bruno@clisp.org>
60820
60821         Advertise for the Git server instead of the CVS server.
60822         * doc/gnulib-intro.texi (Steady Development): Mention the Git
60823         repository instead of the CVS one.
60824         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
60825         about all VCS systems generically.
60826         * doc/gnulib.texi (Introduction): Capitalize `Git'.
60827
60828 2007-10-04  Bruno Haible  <bruno@clisp.org>
60829
60830         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
60831         means.
60832         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
60833
60834 2007-10-04  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/truncl-tests: New file.
60837         * tests/test-truncl.c: New file.
60838
60839         * modules/truncl: New file.
60840         * lib/truncl.c: New file.
60841         * m4/truncl.m4: New file.
60842         * lib/math.in.h (truncl): New declaration.
60843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
60844         HAVE_DECL_TRUNCL.
60845         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
60846         HAVE_DECL_TRUNCL.
60847         * doc/functions/truncl.texi: Mention the 'truncl' module.
60848
60849 2007-10-04  Bruno Haible  <bruno@clisp.org>
60850
60851         * modules/truncf-tests: New file.
60852         * tests/test-truncf.c: New file.
60853
60854         * modules/truncf: New file.
60855         * lib/trunc.c: Make paramerizable through USE_* macros.
60856         * lib/truncf.c: New file.
60857         * m4/truncf.m4: New file.
60858         * lib/math.in.h (truncf): New declaration.
60859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
60860         HAVE_DECL_TRUNCF.
60861         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
60862         HAVE_DECL_TRUNCF.
60863         * doc/functions/truncf.texi: Mention the 'truncf' module.
60864
60865 2007-10-03  Bruno Haible  <bruno@clisp.org>
60866
60867         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60868         augmentation also for tests modules.
60869         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
60870         * modules/atexit-tests (Makefile.am): Likewise.
60871         * modules/binary-io-tests (Makefile.am): Likewise.
60872         * modules/c-strcase-tests (Makefile.am): Likewise.
60873         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
60874         * modules/canonicalize-tests (Makefile.am): Likewise.
60875         * modules/closein-tests (Makefile.am): Likewise.
60876         * modules/fprintf-posix-tests (Makefile.am): Likewise.
60877         * modules/freadahead-tests (Makefile.am): Likewise.
60878         * modules/fseek-tests (Makefile.am): Likewise.
60879         * modules/fseeko-tests (Makefile.am): Likewise.
60880         * modules/ftell-tests (Makefile.am): Likewise.
60881         * modules/ftello-tests (Makefile.am): Likewise.
60882         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
60883         * modules/isnanl-tests (Makefile.am): Likewise.
60884         * modules/lseek-tests (Makefile.am): Likewise.
60885         * modules/mbscasecmp-tests (Makefile.am): Likewise.
60886         * modules/mbscasestr-tests (Makefile.am): Likewise.
60887         * modules/mbschr-tests (Makefile.am): Likewise.
60888         * modules/mbscspn-tests (Makefile.am): Likewise.
60889         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
60890         * modules/mbspbrk-tests (Makefile.am): Likewise.
60891         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
60892         * modules/mbsrchr-tests (Makefile.am): Likewise.
60893         * modules/mbsspn-tests (Makefile.am): Likewise.
60894         * modules/mbsstr-tests (Makefile.am): Likewise.
60895         * modules/printf-posix-tests (Makefile.am): Likewise.
60896         * modules/snprintf-posix-tests (Makefile.am): Likewise.
60897         * modules/sprintf-posix-tests (Makefile.am): Likewise.
60898         * modules/tsearch-tests (Makefile.am): Likewise.
60899         * modules/uniname/uniname-tests (Makefile.am): Likewise.
60900         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
60901         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
60902         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
60903         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
60904         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
60905         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
60906         * modules/vprintf-posix-tests (Makefile.am): Likewise.
60907         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
60908         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
60909         * modules/xstrtoimax-tests (Makefile.am): Likewise.
60910         * modules/xstrtol-tests (Makefile.am): Likewise.
60911         * modules/xstrtoumax-tests (Makefile.am): Likewise.
60912         * modules/yesno-tests (Makefile.am): Likewise.
60913
60914 2007-10-03  Bruno Haible  <bruno@clisp.org>
60915
60916         * modules/trunc-tests: New file.
60917         * tests/test-trunc.c: New file.
60918
60919         * modules/trunc: New file.
60920         * lib/trunc.c: New file.
60921         * m4/trunc.m4: New file.
60922         * lib/math.in.h (trunc): New declaration.
60923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
60924         HAVE_DECL_TRUNC.
60925         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
60926         HAVE_DECL_TRUNC.
60927         * doc/functions/trunc.texi: Mention the 'trunc' module.
60928
60929 2007-10-03  Bruno Haible  <bruno@clisp.org>
60930
60931         * tests/test-fpending.c: New file, mostly copied
60932         from coreutils/lib/t-fpending.c.
60933         * modules/fpending-tests: New file.
60934
60935 2007-10-03  Bruno Haible  <bruno@clisp.org>
60936
60937         Port the stdio extensions to QNX (untested).
60938         * lib/fseterr.c (fseterr): Add support for QNX.
60939         * lib/fbufmode.c (fbufmode): Likewise.
60940         * lib/freadable.c (freadable): Likewise.
60941         * lib/fwritable.c (fwritable): Likewise.
60942         * lib/freading.c (freading): Likewise.
60943         * lib/fwriting.c (fwriting): Likewise.
60944         * lib/freadahead.c (freadahed): Likewise.
60945         * lib/fpurge.c (fpurge): Likewise.
60946         * lib/fseeko.c (rpl_fseeko): Likewise.
60947
60948 2007-10-03  Bruno Haible  <bruno@clisp.org>
60949             Jim Meyering  <jim@meyering.net>
60950             Eric Blake  <ebb9@byu.net>
60951
60952         * doc/relocatable.texi: Use @command instead of @program.
60953
60954 2007-10-02  Jim Meyering  <jim@meyering.net>
60955
60956         Perform one more "_.h" -> ".in.h" substitution.
60957         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60958         instead of unistd_.h here, too.
60959
60960 2007-10-01  Bruno Haible  <bruno@clisp.org>
60961
60962         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60963         Needed for the alloca-opt module.
60964
60965 2007-09-30  Bruno Haible  <bruno@clisp.org>
60966
60967         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60968         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60969         alloca_.h.
60970         * lib/argz.in.h: Renamed from lib/argz_.h.
60971         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60972         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60973         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60974         byteswap_.h.
60975         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60976         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60977         dirent_.h.
60978         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60979         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60980         fcntl_.h.
60981         * lib/float.in.h: Renamed from lib/float_.h.
60982         * modules/float (Files, Makefile.am): Use float.in.h instead of
60983         float_.h.
60984         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60985         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60986         fnmatch_.h.
60987         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60988         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60989         getopt_.h.
60990         * lib/glob.in.h: Renamed from lib/glob_.h.
60991         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60992         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60993         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60994         iconv_.h.
60995         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60996         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60997         inttypes_.h.
60998         * lib/locale.in.h: Renamed from lib/locale_.h.
60999         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61000         locale_.h.
61001         * lib/math.in.h: Renamed from lib/math_.h.
61002         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61003         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61004         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61005         of netinet_in_.h. Add dependency.
61006         * lib/poll.in.h: Renamed from lib/poll_.h.
61007         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61008         * lib/search.in.h: Renamed from lib/search_.h.
61009         * modules/search (Files, Makefile.am): Use search.in.h instead of
61010         search_.h.
61011         * lib/signal.in.h: Renamed from lib/signal_.h.
61012         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61013         _signal.h.
61014         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61015         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61016         stdbool_.h.
61017         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61018         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61019         stdint_.h.
61020         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61021         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61022         stdio_.h.
61023         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61024         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61025         stdlib_.h.
61026         * lib/string.in.h: Renamed from lib/string_.h.
61027         * modules/string (Files, Makefile.am): Use string.in.h instead of
61028         string_.h.
61029         * doc/gnulib-tool.texi (Initial import): Update.
61030         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61031         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61032         of sys_select_.h. Add dependency.
61033         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61034         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61035         of sys_socket_.h.
61036         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61037         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61038         sys_stat_.h.
61039         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61040         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61041         sys_time_.h.
61042         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61043         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61044         sysexits_.h.
61045         * lib/time.in.h: Renamed from lib/time_.h.
61046         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61047         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61048         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61049         unistd_.h.
61050         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61051         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61052         wchar_.h.
61053         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61054         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61055         wctype_.h.
61056         * build-aux/bootstrap (slurp): Update.
61057         * lib/.cppi-disable: Update.
61058
61059 2007-09-30  Bruno Haible  <bruno@clisp.org>
61060
61061         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61062         Needed on BeOS.
61063
61064 2007-09-30  Bruno Haible  <bruno@clisp.org>
61065
61066         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61067
61068 2007-09-29  Bruno Haible  <bruno@clisp.org>
61069
61070         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61071
61072 2007-09-29  Bruno Haible  <bruno@clisp.org>
61073
61074         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61075         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61076         * build-aux/install-reloc: Compile also areadlink.c.
61077         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61078
61079 2007-09-29  Bruno Haible  <bruno@clisp.org>
61080
61081         * gnulib-tool (func_emit_initmacro_done): Indentation.
61082
61083 2007-09-29  Bruno Haible  <bruno@clisp.org>
61084
61085         * README: Add CVS checkout update instructions.
61086         Info from Bob Proulx <bob@proulx.com>.
61087
61088 2007-09-28  Eric Blake  <ebb9@byu.net>
61089
61090         Provide move-if-change.
61091         * build-aux/move-if-change: New file, based on best practice
61092         rather than any canonical upstream location.
61093
61094 2007-09-28  Jim Meyering  <jim@meyering.net>
61095
61096         Fix canonicalize loop-detection corner case.
61097         Do not attempt to stat the symlink values stored via seen_triple.
61098         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61099         on linux-2.6.18, (but not 2.6.22).
61100         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61101         triple_compare.  The former compares dev,ino,filename, while the latter
61102         would actually stat dirname(filename) when dev and ino were equal.
61103         * lib/hash-triple.c: Install <string.h>.
61104         (STREQ): Define.
61105         (triple_compare_ino_str): New function.
61106         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61107
61108 2007-09-28  Eric Blake  <ebb9@byu.net>
61109
61110         Enforce that AC_REPLACE_FUNCS files exist.
61111         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61112         override check for typos.
61113
61114         Fix test-closein on Solaris 10.
61115         * tests/test-closein.c (main): Don't assume stdin can be inherited
61116         closed on all systems.
61117         * tests/test-closein.sh: Likewise.
61118         Reported by Piotr Tarnowski.
61119
61120 2007-09-28  Jim Meyering  <jim@meyering.net>
61121
61122         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61123
61124 2007-09-27  Jim Meyering  <jim@meyering.net>
61125
61126         canonicalize: Avoid a false-positive cycle failure.
61127         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61128         Sort.  Remove cycle-check.
61129         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61130         not cycle-check.h.
61131         (seen_triple): New function.
61132         (canonicalize_filename_mode): Use it instead of cycle-check.
61133         * tests/test-canonicalize.c: Add a test for this bug.
61134         * tests/test-canonicalize.sh: Set up and run the test.
61135
61136         New module, file-set, from coreutils.
61137         * modules/file-set: Define it.
61138         * lib/file-set.c, lib/file-set.h: Implement.
61139
61140         New module, hash-triple, from coreutils.
61141         * modules/hash-triple: Define it.
61142         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61143
61144 2007-09-25  Eric Blake  <ebb9@byu.net>
61145
61146         Fix strerror on Interix.
61147         * lib/string_.h (strerror): Declare replacement.
61148         * doc/functions/strerror.texi (strerror): Document the Interix
61149         shortcoming.
61150         * modules/string (Makefile.am): Support new hooks.
61151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61152         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61153         gl_FUNC_STRERROR_SEPARATE.
61154         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61155         * lib/strerror.c (rpl_strerror): Provide replacement.
61156         * modules/strerror (Depends-on): Add string.
61157         (configure.ac): Detect use of module.
61158         * tests/test-strerror.c: New file.
61159         * modules/strerror-tests: New test module.
61160         * modules/argp (Depends-on): Add strerror.
61161         * modules/error (Depends-on): Likewise.
61162         Reported by Martin Koeppe.
61163
61164 2007-09-24  Bruno Haible  <bruno@clisp.org>
61165
61166         * README: Update git instructions.
61167
61168 2007-09-24  Eric Blake  <ebb9@byu.net>
61169
61170         Revert fpending breakage from 2007-09-08.
61171         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61172         __fpending.c.
61173
61174 2007-09-24  Jim Meyering  <jim@meyering.net>
61175
61176         filenamecat.c: Add a test.
61177         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61178         showing how the function works when DIR is the empty string.
61179
61180 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61181
61182         * tests/test-canonicalize.sh: Turn on executable bit.
61183
61184 2007-09-19  Eric Blake  <ebb9@byu.net>
61185
61186         * README: Update CVS instructions.
61187
61188 2007-09-18  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/areadlink: New file.
61191         * lib/areadlink.h (areadlink): New declaration.
61192         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61193
61194 2007-09-17  Jim Meyering  <jim@meyering.net>
61195
61196         * lib/savewd.c (ESTALE) [!defined]: Define.
61197         Reported to be required on Interix by Martin Koeppe.
61198
61199 2007-09-17  Bruno Haible  <bruno@clisp.org>
61200
61201         * gnulib-tool (func_version): Use $version.
61202
61203 2007-09-16  Bruno Haible  <bruno@clisp.org>
61204
61205         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61206         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61207         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61208         Reported by Greg Schafer <gschafer@zip.com.au>.
61209
61210 2007-09-15  Bruno Haible  <bruno@clisp.org>
61211
61212         * gnulib-tool (sed): Try a little harder to make bash understand the
61213         alias.
61214         Reported by Bruce Korb <bruce.korb@gmail.com>.
61215
61216 2007-09-13  Eric Blake  <ebb9@byu.net>
61217
61218         * ChangeLog: Remove conflict markers.
61219
61220 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61221
61222         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61223         Reported by Bruno Haible <bruno@clisp.org>.
61224
61225 2007-09-12  Bruno Haible  <bruno@clisp.org>
61226
61227         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61228         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61229         is not defined.
61230
61231 2007-09-12  Eric Blake  <ebb9@byu.net>
61232
61233         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61234         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61235         Autoconf definition.
61236         * modules/euidaccess (Depends-on): Add extensions, for
61237         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61238         * modules/fnmatch (Depends-on): Likewise.
61239         * modules/getaddrinfo (Depends-on): Likewise.
61240         * modules/getdelim (Depends-on): Likewise.
61241         * modules/getline (Depends-on): Likewise.
61242         * modules/getsubopt (Depends-on): Likewise.
61243         * modules/gettext (Depends-on): Likewise.
61244         * modules/group-member (Depends-on): Likewise.
61245         * modules/mbchar (Depends-on): Likewise.
61246         * modules/memmem (Depends-on): Likewise.
61247         * modules/mempcpy (Depends-on): Likewise.
61248         * modules/memrchr (Depends-on): Likewise.
61249         * modules/pagealign_alloc (Depends-on): Likewise.
61250         * modules/readutmp (Depends-on): Likewise.
61251         * modules/stpcpy (Depends-on): Likewise.
61252         * modules/stpncpy (Depends-on): Likewise.
61253         * modules/strchrnul (Depends-on): Likewise.
61254         * modules/strndup (Depends-on): Likewise.
61255         * modules/strsep (Depends-on): Likewise.
61256         * modules/strverscmp (Depends-on): Likewise.
61257         * modules/vasprintf (Depends-on): Likewise.
61258         * modules/wcwidth (Depends-on): Likewise.
61259         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61260         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61261         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61263         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61264         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61265         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61266         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61267         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61268         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61269         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61270         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61271         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61272         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61273         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61274         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61275         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61276         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61277         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61280         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61281         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61282         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61283         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61284         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61285         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61286         so that lock.m4 can be used in gettext without extensions module.
61287
61288 2007-09-11  Bruno Haible  <bruno@clisp.org>
61289
61290         * m4/isc-posix.m4: Remove file.
61291         Suggested by Eric Blake.
61292
61293 2007-09-11  Eric Blake  <ebb9@byu.net>
61294
61295         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61296
61297 2007-09-10  Bruno Haible  <bruno@clisp.org>
61298
61299         * posix-modules: Fix typo in error message.
61300         Reported by Matt <mkraai@beckman.com>.
61301
61302 2007-09-09  Bruno Haible  <bruno@clisp.org>
61303
61304         * doc/functions/getdelim.texi: Update list of platforms lacking the
61305         function.
61306         * doc/functions/getline.texi: Likewise.
61307
61308 2007-09-09  Jim Meyering  <jim@meyering.net>
61309
61310         * lib/hash.c (hash_initialize): Detect calloc failure.
61311         Reported by Bruno Haible.
61312
61313 2007-09-09  Bruno Haible  <bruno@clisp.org>
61314
61315         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61316         malloc or realloc fails.
61317
61318 2007-09-09  Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/getcwd (Depends-on): Add malloc-posix.
61321         * modules/glob (Depends-on): Likewise.
61322         * modules/putenv (Depends-on): Likewise.
61323         * modules/strdup (Depends-on): Likewise.
61324         * modules/getdelim (Depends-on): Add realloc-posix.
61325         * modules/read-file (Depends-on): Likewise.
61326
61327 2007-09-09  Bruno Haible  <bruno@clisp.org>
61328
61329         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61330         (gl_FUNC_MALLOC_POSIX): Require it.
61331         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61332         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61333         * modules/realloc (Files): Add m4/malloc.m4.
61334         * modules/calloc (Files): Likewise.
61335
61336 2007-09-09  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/malloc-posix: New file.
61339         * modules/malloc (Depends-on): Add malloc-posix.
61340         * lib/malloc.c: Include errno.h.
61341         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61342         and a POSIX-compatible malloc into a single function. Set ENOMEM
61343         when returning NULL.
61344         * m4/malloc.m4: New file.
61345         * doc/functions/malloc.texi: Mention the malloc-posix module.
61346         * lib/stdlib_.h (malloc): New declaration.
61347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61348         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61349         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61350         and HAVE_MALLOC_POSIX.
61351
61352 2007-09-09  Bruno Haible  <bruno@clisp.org>
61353
61354         * modules/realloc-posix: New file.
61355         * modules/realloc (Depends-on): Add realloc-posix.
61356         * lib/realloc.c: Include errno.h.
61357         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61358         and a POSIX-compatible realloc into a single function. Set ENOMEM
61359         when returning NULL.
61360         * m4/realloc.m4: New file.
61361         * doc/functions/realloc.texi: Mention the realloc-posix module.
61362         * lib/stdlib_.h (realloc): New declaration.
61363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61364         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61365         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61366         and HAVE_REALLOC_POSIX.
61367
61368 2007-09-09  Bruno Haible  <bruno@clisp.org>
61369
61370         * modules/calloc-posix: New file.
61371         * modules/calloc (Depends-on): Add calloc-posix.
61372         * lib/calloc.c: Include errno.h.
61373         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61374         and a POSIX-compatible calloc into a single function. Set ENOMEM
61375         when returning NULL.
61376         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61377         * doc/functions/calloc.texi: Mention the calloc-posix module.
61378         * lib/stdlib_.h (calloc): New declaration.
61379         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61380         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61381         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61382         and HAVE_CALLOC_POSIX.
61383
61384 2007-09-09  Bruno Haible  <bruno@clisp.org>
61385
61386         Allow for modules to show an arbitrary notice.
61387         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61388         * gnulib-tool: New option --extract-notice.
61389         (func_usage): Document it.
61390         (sed_extract_prog): Update.
61391         (func_get_notice): New function.
61392         (func_modules_notice): New function.
61393         (func_import, func_create_testdir): Invoke it.
61394         Suggested by Jim Meyering.
61395
61396 2007-09-09  Bruno Haible  <bruno@clisp.org>
61397
61398         * gnulib-tool: New options --verbose, --quiet.
61399         (func_usage): Document them.
61400         (verbose): New variable.
61401         (func_execute_command): New function.
61402         (func_import): Don't show the module list and the file list if
61403         $verbose < 0.
61404         (func_create_testdir): Likewise. Use func_execute_command.
61405         (func_create_megatestdir): Use func_execute_command.
61406
61407 2007-09-08  Bruno Haible  <bruno@clisp.org>
61408
61409         * gnulib-tool (func_import): Prefer rsync over wget when available,
61410         for fetching the PO files.
61411
61412 2007-09-08  Bruno Haible  <bruno@clisp.org>
61413
61414         * posix-modules: New file. Portions copied from gnulib-tool.
61415         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61416
61417 2007-09-08  Jim Meyering  <jim@meyering.net>
61418
61419         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61420         * lib/fpending.h: Rename from __fpending.h.
61421         * lib/fpending.c: Rename from __fpending.c.
61422         Include "fpending.h", not "__fpending.h".
61423         * lib/__fpending.h, lib/__fpending.c: Remove files.
61424         * modules/fpending (Files): Reflect new file names.
61425         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61426
61427 2007-09-08  Bruno Haible  <bruno@clisp.org>
61428
61429         * m4/inttypes-h.m4: Remove stub file.
61430
61431 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61432
61433         * doc/headers/stdint.texi: Discuss #include_next issue.
61434
61435 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61436
61437         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61438
61439 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61440
61441         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61442         in variable name.
61443
61444 2007-09-03  Jim Meyering  <jim@meyering.net>
61445
61446         New module: git-version-gen.
61447         * modules/git-version-gen: New file.
61448
61449         Import changes from coreutils for bootstrap script.
61450
61451         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61452
61453         bootstrap: uses rsync to download the .po files
61454         * build-aux/bootstrap (po_download_command_format): New global.
61455         (download_po_files): Use rsync.
61456         (update_po_files): Don't remove .po files after download,
61457         so future rsync runs can take advantage of the copies.
61458
61459         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61460
61461         Solve the unnecessary-.po-file-regeneration problem once and for all.
61462         * build-aux/bootstrap (download_po_files): New function, renamed from
61463         get_translations.  Now, downloads, but doesn't update LINGUAS.
61464         (update_po_files): New function.
61465
61466         bootstrap: Ignore more.
61467         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61468         uniwidth to e.g., lib/.gitignore.
61469         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61470
61471         * build-aux/bootstrap: New setting: vc_ignore.
61472         (insert_sorted_if_absent): Create $file if absent.
61473         Adapt to new, possibly empty, list: $vc_ignore.
61474
61475         bootstrap: generate more ignorable names
61476         * build-aux/bootstrap (slurp): When generating ignorable names,
61477         also map .sin to .sed, .gperf to .c, and .y to .c.
61478
61479 2007-09-03  Jim Meyering  <jim@meyering.net>
61480
61481         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61482         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61483
61484 2007-09-02  Bruno Haible  <bruno@clisp.org>
61485
61486         Fix mis-recognition of 'mcs' on QNX 6.
61487         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61488         output contains the string "Mono".
61489         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61490         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61491
61492 2007-09-01  Bruno Haible  <bruno@clisp.org>
61493
61494         Fix collision between uniwidth/* and linebreak modules.
61495         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61496         u32_width): Remove declarations.
61497         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61498         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61499         streq3, streq2, streq1, streq0): Remove functions.
61500         (STREQ): Remove macro.
61501         (is_cjk_encoding): Remove function.
61502         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61503         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61504         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61505         * NEWS: Document the change.
61506
61507 2007-09-01  Bruno Haible  <bruno@clisp.org>
61508
61509         * lib/streq.h: Add double-inclusion guard.
61510
61511 2007-09-01  Karl Berry  <karl@gnu.org>
61512
61513         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61514
61515 2007-08-28  Jim Meyering  <jim@meyering.net>
61516
61517         Rename mreadlink_with_size to areadlink_with_size.
61518         * NEWS: Document the change.
61519         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61520         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61521         * lib/mreadlink.h: Rename this to...
61522         * lib/areadlink.h: ...this.
61523         * modules/mreadlink-with-size: Rename this to...
61524         * modules/areadlink-with-size: ...this.
61525         * lib/canonicalize.c: Reflect the renaming.
61526         * modules/canonicalize: Likewise.
61527
61528 2007-08-26  Bruno Haible  <bruno@clisp.org>
61529
61530         * gnulib-tool (func_import): When deciding which files to remove,
61531         consider also dangling symbolic links.
61532         Reported by Eric Blake.
61533
61534 2007-08-26  Bruno Haible  <bruno@clisp.org>
61535
61536         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61537
61538 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61539
61540         * lib/readline.c: Don't include getline.h, the prototype is now
61541         found in stdio.h.
61542
61543 2007-08-23  Jim Meyering  <jim@meyering.net>
61544
61545         Getdelim touchup.
61546         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61547         around the funlockfile call, since funlockfile never sets errno.
61548         Don't set errno upon failed realloc.
61549
61550 2007-08-22  Eric Blake  <ebb9@byu.net>
61551
61552         Getline touchups.
61553         * lib/getdelim.c (getdelim): Revert regression that required *n to
61554         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61555         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61556         getdelim, rather than whether implementation is missing.
61557         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61558         * lib/stdio_.h (getline): Also declare if replacement is
61559         required.
61560         * doc/functions/getdelim.texi: New file.
61561         * doc/functions/getline.texi: Likewise.
61562         * doc/gnulib.texi (Function Substitutes): Add new files.
61563         Reported by Bruno Haible.
61564
61565 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61566
61567         * users.txt: Add Guile.
61568
61569 2007-08-22  Eric Blake  <ebb9@byu.net>
61570
61571         * tests/test-getdelim.c (main): Use remove, not unlink.
61572         * tests/test-getline.c (main): Likewise.
61573
61574         Move getline and getdelim into stdio.h, per POSIX 200x.
61575         * modules/getline (Files): Remove getline.h.
61576         (Depends-on): Add stdio.
61577         (configure.ac): Add module indicator.
61578         * modules/getdelim (Files): Remove getdelim.h.
61579         (Depends-on): Add stdio.
61580         (configure.ac): Add module indicator.
61581         * modules/stdio (Makefile.am): Work with new indicators.
61582         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61583         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61584         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61585         * lib/getdelim.h: Delete.
61586         * lib/getline.h: Delete.
61587         * lib/stdio_.h (getdelim, getline): Declare.
61588         * modules/getdelim-tests: New module.
61589         * modules/getline-tests: Likewise.
61590         * tests/test-getdelim.c: New file.
61591         * tests/test-getline.c: Likewise.
61592         * NEWS: Document the change.
61593         * lib/getline.c: Update choice of header.
61594         * lib/csharpcomp.c: Likewise.
61595         * lib/getpass.c: Likewise.
61596         * lib/javacomp.c: Likewise.
61597         * lib/javaversion.c: Likewise.
61598         * lib/yesno.c: Likewise.
61599         * lib/getdelim.c: Likewise.
61600         (getdelim): Set errno on failure, and avoid memory leak.
61601
61602 2007-08-19  Bruno Haible  <bruno@clisp.org>
61603
61604         * modules/closein (Depends-on): Add freadahead.
61605         * lib/closein.c: Include freadahead.h.
61606         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
61607         is zero.
61608
61609 2007-08-19  Bruno Haible  <bruno@clisp.org>
61610
61611         * modules/freadahead-tests: New file.
61612         * tests/test-freadahead.sh: New file.
61613         * tests/test-freadahead.c: New file.
61614
61615         * modules/freadahead: New file.
61616         * lib/freadahead.h: New file.
61617         * lib/freadahead.c: New file.
61618         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
61619         fbufmode, fpurge, freadable, fwritable.
61620
61621 2007-08-19  Eric Blake  <ebb9@byu.net>
61622
61623         Test yesno in combination with closein.
61624         * lib/yesno.c (yesno): Document use of stdin.
61625         * modules/yesno-tests (Files): New module.
61626         * tests/test-yesno.c (main): New file.
61627         * tests/test-yesno.sh: Likewise.
61628
61629 2007-08-19  Bruno Haible  <bruno@clisp.org>
61630
61631         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
61632         * lib/fseeko.c (rpl_fseeko): Likewise.
61633         * lib/fseterr.c (fseterr): Likewise.
61634
61635 2007-08-19  Bruno Haible  <bruno@clisp.org>
61636
61637         * tests/test-lseek.c (main): Disable a test for BeOS.
61638         * doc/functions/lseek.texi: Document the BeOS bug.
61639
61640 2007-08-19  Bruno Haible  <bruno@clisp.org>
61641             Eric Blake  <ebb9@byu.net>
61642
61643         * lib/lseek.c: Include <sys/stat.h>.
61644         (rpl_lseek): Add workaround code also for Unix platforms.
61645         Needed for BeOS.
61646         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
61647         * doc/functions/lseek.texi: Document BeOS definiency.
61648
61649 2007-08-18  Bruno Haible  <bruno@clisp.org>
61650
61651         * modules/fstrcmp-tests: New file.
61652         * tests/test-fstrcmp.c: New file.
61653
61654 2007-08-18  Bruno Haible  <bruno@clisp.org>
61655
61656         * modules/fstrcmp: New file, from GNU gettext with modifications.
61657         * lib/fstrcmp.h: New file, from GNU gettext.
61658         * lib/fstrcmp.c: New file, from GNU gettext.
61659         * MODULES.html.sh (String handling): Add fstrcmp.
61660
61661 2007-08-18  Bruno Haible  <bruno@clisp.org>
61662
61663         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
61664         'bool'.
61665         (diag, compareseq): Remove const from the ctxt argument.
61666         (USE_HEURISTIC): Undefine at the end.
61667
61668 2007-08-18  Jim Meyering  <jim@meyering.net>
61669
61670         New file: lib/idcache.h
61671         * NEWS: Mention the addition.
61672         * modules/idcache (Files): Add lib/idcache.h
61673         * lib/idcache.c: Include "idcache.h".
61674         Don't include <sys/types.h>.
61675         Add a FIXME comment.
61676         Move file-scoped "static" declarations to the top.
61677         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
61678
61679 2007-08-17  Bruno Haible  <bruno@clisp.org>
61680         and Paul Eggert  <eggert@cs.ucla.edu>
61681
61682         * MODULES.html.sh: Add diffseq.
61683         * modules/diffseq: New file.
61684         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
61685         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
61686
61687 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61688
61689         Import changes from coreutils for bootstrap script.
61690
61691         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * build-aux/bootstrap (slurp): Work even in environments where
61694         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
61695         current code does not slurp files whose names start with ".", and
61696         this looks like it might be a troublesome area.
61697
61698         2007-07-11  Jim Meyering  <jim@meyering.net>
61699
61700         If there's a GPL vN copyright comment, require that N == 3.
61701
61702         2007-07-08  Jim Meyering  <jim@meyering.net>
61703
61704         Run the coreutils-specific code only if tests/Makefile.am.in exists.
61705         * build-aux/bootstrap (mam_template): Move definition out of loop.
61706
61707         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
61708
61709         * build-aux/bootstrap (symlink_to_dir): Rename function from
61710         symlink_to_gnulib.  Add a directory parameter.  Update all
61711         callers.
61712         (cp_mark_as_generated): Also check for -- and link to -- files in
61713         gl/.
61714
61715         2007-07-08  Jim Meyering  <jim@meyering.net>
61716
61717         Adapt to deeper hierarchy in gnulib.
61718         * build-aux/bootstrap (symlink_to_dir): If the destination
61719         directory doesn't exist, create it. This is required at least for
61720         "lib/uniwidth/cjk.h".
61721
61722         2007-05-15  Jim Meyering  <jim@meyering.net>
61723
61724         * build-aux/bootstrap: Now that generated Makefile.am files
61725         are no longer under version control, they must be created at
61726         bootstrap time.
61727
61728 2007-08-14  Ben Pfaff  <blp@gnu.org>
61729
61730         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
61731
61732 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61733
61734         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
61735         given the changes below.
61736         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
61737         even on hosts that have padding bits beyond the supported 64.
61738
61739 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61740
61741         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61742         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61743         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
61744         depends on it.
61745         (xstrtol_error): Remove.
61746         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
61747         but with a different signature.
61748         (ATTRIBUTE_NORETURN, __attribute__): New macros.
61749         * lib/xstrtol-error.c: Include exitfail.h.
61750         (xstrtol_fatal): New function, with a different signature from the
61751         old xstrtol_error, so that the caller need not worry about passing
61752         in an exit status, or about storage management of the option argument.
61753         (xstrtol_error): Now a static function.  Redo signature to
61754         implement xstrtol_fatal.  Output the correct number of hyphens in
61755         front of the option so that the caller need not worry about
61756         storage management.
61757         (N_): New macro.
61758         (_): Remove; not used now.
61759         * modules/xstrtol: Depend on getopt.
61760         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
61761         of old STRTOL_FATAL_ERROR macro.
61762         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
61763         of test program.
61764         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
61765         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
61766
61767 2007-08-08  Eric Blake  <ebb9@byu.net>
61768
61769         * lib/xstrtol-error.c: Add missing include.
61770
61771         Move xstrtol messages into gnulib domain, when --pobase is used.
61772         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
61773         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
61774         * modules/xstrtol (Files): Distribute new file.
61775         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
61776         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
61777         * tests/test-xstrtol.c: ...into new file.
61778         * tests/test-xstrtoul.c: Also test xstrtoul.
61779         * tests/test-xstrtoimax.c: Also test xstrtoimax.
61780         * tests/test-xstrtoumax.c: Also test xstrtoumax.
61781         * tests/test-xstrtol.sh: Drive the tests.
61782         * tests/test-xstrtoimax.sh: Likewise.
61783         * tests/test-xstrtoumax.sh: Likewise.
61784         * modules/xstrtol-tests: New module.
61785         * modules/xstrtoimax-tests: Likewise.
61786         * modules/xstrtoumax-tests: Likewise.
61787
61788 2007-08-08  Jim Meyering  <jim@meyering.net>
61789
61790         New function: mfile_name_concat.
61791         * lib/filenamecat.c (mfile_name_concat): New function, just like
61792         file_name_concat, but return NULL upon failure rather than exiting
61793         with a diagnostic.
61794         * lib/filenamecat.h: Declare it.
61795
61796 2007-08-07  Bruno Haible  <bruno@clisp.org>
61797
61798         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
61799         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
61800         warning from gcc.
61801         Reported by Eric Blake.
61802
61803 2007-08-07  Simon Josefsson  <simon@josefsson.org>
61804
61805         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
61806         * modules/crypto/arcfour (License): Likewise.
61807         * modules/crypto/des-tests (License): Likewise.
61808         * modules/crypto/gc-arctwo-tests (License): Likewise.
61809         * modules/crypto/gc-des-tests (License): Likewise.
61810         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
61811         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
61812         * modules/crypto/gc-md2-tests (License): Likewise.
61813         * modules/crypto/gc-md4-tests (License): Likewise.
61814         * modules/crypto/gc-md5-tests (License): Likewise.
61815         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
61816         * modules/crypto/gc-rijndael-tests (License): Likewise.
61817         * modules/crypto/gc-sha1-tests (License): Likewise.
61818         * modules/crypto/gc-tests (License): Likewise.
61819         * modules/crypto/hmac-md5 (License): Likewise.
61820         * modules/crypto/hmac-sha1 (License): Likewise.
61821         * modules/crypto/md2-tests (License): Likewise.
61822         * modules/crypto/md4-tests (License): Likewise.
61823         * modules/crypto/md5 (License): Likewise.
61824         * modules/crypto/rijndael (License): Likewise.
61825         * modules/crypto/sha1 (License): Likewise.
61826         * modules/memxor (License): Likewise.
61827
61828 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61829         and Bruno Haible  <bruno@clisp.org>
61830
61831         * NEWS: Describe interface changes to human, xstrtol.
61832         * lib/human.h: Include <xstrtol.h>.
61833         (human_options): Return enum strtol_error, not int.  Remove
61834         bool arg; take int * instead.
61835         * lib/human.c: Don't include "gettext.h".
61836         (_): Remove; no longer used.
61837         Don't include <xstrtol.h>, since human.h does it.
61838         (human_options): Adjust to abovementioned interface changes.
61839         Do not report error to stderr; that's now the caller's
61840         responsibility.
61841         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
61842         interface change.
61843         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
61844         Str, Argument_type_string.  All uses changed.  Put " argument"
61845         in diagnostics to make them clearer.  Change wording of suffix
61846         message for clarity.
61847         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
61848         Argument_type_string.
61849         (STRTOL_FATAL_WARN): Remove; no longer used.
61850         * modules/human (Depends-on): Remove gettext-h.
61851
61852 2007-08-06  Simon Josefsson  <simon@josefsson.org>
61853
61854         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
61855
61856 2007-07-31  Bruno Haible  <bruno@clisp.org>
61857
61858         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
61859         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
61860         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
61861
61862 2007-07-31  Bruno Haible  <bruno@clisp.org>
61863
61864         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
61865         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
61866
61867 2007-07-30  Bruno Haible  <bruno@clisp.org>
61868
61869         * modules/base64 (License): Use the synonymous term "LGPLv2+".
61870         * modules/c-ctype (License): Likewise.
61871         * modules/c-strcase (License): Likewise.
61872         * modules/check-version (License): Likewise.
61873         * modules/iconv (License): Likewise.
61874         * modules/iconv_open (License): Likewise.
61875         * modules/read-file (License): Likewise.
61876         * modules/striconv (License): Likewise.
61877         * modules/strverscmp (License): Likewise.
61878         * modules/vasprintf (License): Likewise.
61879         * modules/crypto/des (License): Likewise.
61880         * modules/crypto/gc (License): Likewise.
61881         * modules/crypto/gc-arcfour (License): Likewise.
61882         * modules/crypto/gc-arctwo (License): Likewise.
61883         * modules/crypto/gc-des (License): Likewise.
61884         * modules/crypto/gc-hmac-md5 (License): Likewise.
61885         * modules/crypto/gc-hmac-sha1 (License): Likewise.
61886         * modules/crypto/gc-md2 (License): Likewise.
61887         * modules/crypto/gc-md4 (License): Likewise.
61888         * modules/crypto/gc-md5 (License): Likewise.
61889         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
61890         * modules/crypto/gc-random (License): Likewise.
61891         * modules/crypto/gc-rijndael (License): Likewise.
61892         * modules/crypto/gc-sha1 (License): Likewise.
61893         * modules/crypto/md2 (License): Likewise.
61894         * modules/crypto/md4 (License): Likewise.
61895
61896 2007-07-30  Jim Meyering  <jim@meyering.net>
61897
61898         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
61899         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
61900         it has valid stat data.  This bug would cause du not to count the
61901         sizes of inaccessible directories.
61902         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
61903         in <http://bugzilla.redhat.com/250077>.
61904
61905 2007-07-25  Peter O'Gorman  <peter@pogma.com>
61906             Bruno Haible  <bruno@clisp.org>
61907
61908         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
61909         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
61910         #include_next, gives a diagnostic about it, but reports no error in
61911         the exit code.
61912         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
61913
61914 2007-07-24  Ben Pfaff  <blp@gnu.org>
61915
61916         Improve name: "count-one-bits" is better than "popcount".
61917         * MODULES.html.sh: Update name.
61918         * lib/popcount.h: Renamed lib/count-one-bits.h.
61919         (popcount): Renamed count_one_bits.
61920         (popcountl): Renamed count_one_bits_l.
61921         (popcountll): Renamed count_one_bits_ll.
61922         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
61923         * modules/popcount: Renamed module/count-one-bits.
61924         * modules/popcount-tests: Renamed module/count-one-bits-tests.
61925         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
61926
61927 2007-07-23  Ben Pfaff  <blp@gnu.org>
61928
61929         * lib/popcount.h (popcount32): Reduce size of constants, to allow
61930         better code generation, and add U to large constants to avoid
61931         warnings, in non-GCC case.
61932         Suggested by Bruno Haible.
61933
61934 2007-07-23  Ben Pfaff  <blp@gnu.org>
61935
61936         * lib/popcount.h: Use verify_true instead of if...abort.
61937         * modules/popcount: Depend on verify module.
61938         Suggested by Jim Meyering.
61939
61940 2007-07-23  Bruno Haible  <bruno@clisp.org>
61941
61942         * gnulib-tool (func_import): Create a .cvsignore file also when the
61943         directory is not yet in CVS but the toplevel directory is. When
61944         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
61945         Reported by Karl Berry.
61946
61947 2007-07-22  Ben Pfaff  <blp@gnu.org>
61948
61949         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61950         case.
61951         Suggested by Eric Blake.
61952
61953 2007-07-22  Ben Pfaff  <blp@gnu.org>
61954
61955         New module: popcount.
61956         * MODULES.html.sh: Add popcount.
61957         * modules/popcount: New file.
61958         * modules/popcount-tests: New file.
61959         * tests/test-popcount.c: New file.
61960         * lib/popcount.h: New file.
61961         * m4/popcount.m4: New file.
61962
61963 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61964
61965         * build-aux/announce-gen: Update to GPLv3.
61966
61967         * build-aux/config.guess: Update from config.
61968
61969 2007-07-21  Bruno Haible  <bruno@clisp.org>
61970
61971         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61972         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61973
61974 2007-07-20  Jim Meyering  <jim@meyering.net>
61975
61976         * check-module: Diagnose a self-dependency.
61977
61978 2007-07-19  Bruno Haible  <bruno@clisp.org>
61979
61980         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61981         empty.
61982         Reported by Eric Blake.
61983
61984 2007-07-18  Bruno Haible  <bruno@clisp.org>
61985
61986         * gnulib-tool: New options --po-base, --po-domain.
61987         (func_usage): Document them.
61988         (pobase, po_domain): New variables.
61989         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61990         DEFAULT_TEXT_DOMAIN.
61991         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61992         (func_import): Consider pobase and po_domain. Create a po/ directory.
61993         (func_create_testdir): Set pobase and po_domain to empty.
61994         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61995         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61996
61997 2007-07-18  Bruno Haible  <bruno@clisp.org>
61998
61999         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62000         EXTRA_DIST augmentation for files in build-aux/.
62001
62002 2007-07-16  Bruno Haible  <bruno@clisp.org>
62003
62004         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62005         * modules/getdelim (License): Likewise.
62006
62007 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62008
62009         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62010         * modules/d-type (License): Likewise.
62011         * modules/extensions (License): Likewise.
62012         * modules/fnmatch (License): Likewise.
62013         * modules/fseeko (License): Likewise.
62014         * modules/getaddrinfo (License): Likewise.
62015         * modules/getline (License): Likewise.
62016         * modules/getlogin_r (License): Likewise.
62017         * modules/getpass (License): Likewise.
62018         * modules/gettimeofday (License): Likewise.
62019         * modules/glob (License): Likewise.
62020         * modules/inet_ntop (License): Likewise.
62021         * modules/malloc (License): Likewise.
62022         * modules/malloca (License): Likewise.
62023         * modules/memmem (License): Likewise.
62024         * modules/mempcpy (License): Likewise.
62025         * modules/memset (License): Likewise.
62026         * modules/minmax (License): Likewise.
62027         * modules/mktime (License): Likewise.
62028         * modules/netinet_in (License): Likewise.
62029         * modules/pathmax (License): Likewise.
62030         * modules/poll (License): Likewise.
62031         * modules/regex (License): Likewise.
62032         * modules/snprintf (License): Likewise.
62033         * modules/stdbool (License): Likewise.
62034         * modules/stdint (License): Likewise.
62035         * modules/stdio (License): Likewise.
62036         * modules/strcase (License): Likewise.
62037         * modules/strcasestr (License): Likewise.
62038         * modules/strdup (License): Likewise.
62039         * modules/string (License): Likewise.
62040         * modules/strndup (License): Likewise.
62041         * modules/strnlen (License): Likewise.
62042         * modules/strpbrk (License): Likewise.
62043         * modules/strptime (License): Likewise.
62044         * modules/strsep (License): Likewise.
62045         * modules/sys_select (License): Likewise.
62046         * modules/sys_socket (License): Likewise.
62047         * modules/sys_stat (License): Likewise.
62048         * modules/sys_time (License): Likewise.
62049         * modules/time (License): Likewise.
62050         * modules/time_r (License): Likewise.
62051         * modules/timegm (License): Likewise.
62052         * modules/unistd (License): Likewise.
62053         * modules/vsnprintf (License): Likewise.
62054         * modules/wctype (License): Likewise.
62055
62056 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62057
62058         * modules/argz (License): LGPLv2+.
62059
62060 2007-07-15  Karl Berry  <karl@gnu.org>
62061
62062         * doc/gnulib.texi: revise node structure per new fdl.texi.
62063
62064 2007-07-14  Bruno Haible  <bruno@clisp.org>
62065
62066         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62067         the output file.
62068         * lib/uniname/uninames.h: Regenerated.
62069
62070 2007-07-14  Karl Berry  <karl@gnu.org>
62071
62072         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62073         omitting sectioning and index commands.
62074
62075 2007-07-13  Bruno Haible  <bruno@clisp.org>
62076
62077         New gnulib-tool option --more-symlinks.
62078         * gnulib-tool (func_usage): Document --more-symlinks.
62079         (do_copyrights): New variable.
62080         Recognize option --more-symlinks.
62081         (func_import): Don't add a copyright notice transform to
62082         sed_transform_lib_file if do_copyrights is empty.
62083
62084 2007-07-13  Bruno Haible  <bruno@clisp.org>
62085
62086         * lib/vasnprintf.c (decimal_point_char): Define also if
62087         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62088         && !NEED_PRINTF_DIRECTIVE_A.
62089         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62090         Gary V. Vaughan <gary@gnu.org>.
62091
62092 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62093
62094         * lib/inttypes_.h: Undo previous change, since it was fixed
62095         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62096
62097 2007-07-13  Bruno Haible  <bruno@clisp.org>
62098
62099         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62100         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62101
62102 2007-07-13  Jim Meyering  <jim@meyering.net>
62103
62104         df: Don't fail for Tru64's "file-on-file mount".
62105         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62106         so we fall through and use statfs instead.  Details here:
62107         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62108         Reported by Albert Chin.
62109
62110 2007-07-13  Bruno Haible  <bruno@clisp.org>
62111
62112         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62113         * modules/configmake (License): Likewise.
62114         * modules/gettext (License): Likewise.
62115         * modules/gettext-h (License): Likewise.
62116         * modules/include_next (License): Likewise.
62117         * modules/link-warning (License): Likewise.
62118         * modules/localcharset (License): Likewise.
62119         * modules/localename (License): Likewise.
62120         * modules/lock (License): Likewise.
62121         * modules/relocatable-lib-lgpl (License): Likewise.
62122         * modules/size_max (License): Likewise.
62123         * modules/vasnprintf (License): Likewise.
62124         * modules/wchar (License): Likewise.
62125         * modules/xsize (License): Likewise.
62126
62127 2007-07-13  Bruno Haible  <bruno@clisp.org>
62128
62129         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62130         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62131
62132 2007-07-12  Bruno Haible  <bruno@clisp.org>
62133
62134         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62135         in the modules files.
62136
62137 2007-07-11  Karl Berry  <karl@gnu.org>
62138
62139         * MODULES.html.sh (func_module): use
62140          sed -e '\|^'"${includefile}"'$|d'
62141          instead of /.../d, to avoid errors on $includefile's containing /.
62142
62143 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62144
62145         * gnulib-tool (func_import): Avoid duplication of --avoid
62146         statements
62147         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62148         names to `_' in variable names.
62149
62150 2007-07-10  Eric Blake  <ebb9@byu.net>
62151
62152         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62153         * NEWS: Document this change.
62154
62155 2007-07-08  Bruno Haible  <bruno@clisp.org>
62156
62157         Update to Unicode 5.0.
62158         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62159         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62160         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62161         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62162         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62163         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62164         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62165         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62166         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62167         U+10A3F, U+1D242..U+1D244.
62168         (nonspacing_table_ind): Update.
62169         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62170         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62171
62172 2007-07-08  Bruno Haible  <bruno@clisp.org>
62173
62174         Update to Unicode 5.0.
62175         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62176         code transform. Extend the name index field of unicode_name_to_code and
62177         unicode_code_to_name from 16 to 24 bits.
62178         * lib/uniname/uniname.c (unicode_character_name,
62179         unicode_name_character): Add the range 0x12xxx to the code transform.
62180         * lib/uniname/uninames.h: Regenerated.
62181         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62182
62183 2007-07-07  Bruno Haible  <bruno@clisp.org>
62184
62185         * modules/wcwidth-tests: New file.
62186         * tests/test-wcwidth.c: New file.
62187
62188         Work around MacOS X wcwidth() bug.
62189         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62190         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62191         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62192         original wcwidth in non-UTF-8 locales.
62193         * modules/wcwidth (Depends-on): Add localcharset, streq,
62194         uniwidth/width.
62195         * doc/functions/wcwidth.texi: Update.
62196
62197 2007-07-07  Bruno Haible  <bruno@clisp.org>
62198
62199         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62200         (wcwidth): New declaration.
62201         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62202         macros.
62203         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62204         here. Prepare for creating <wchar.h> unconditionally.
62205         * modules/wchar (Depends-on): Add link-warning.
62206         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62207         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62208         * lib/wcwidth.h: Remove file.
62209         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62210         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62211         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62212         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62213         (Include): Replace wcwidth.h with <wchar.h>.
62214         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62215         * lib/mbchar.h: Don't include wcwidth.h.
62216         * lib/mbswidth.c: Likewise.
62217         * NEWS: Mention the change.
62218
62219 2007-07-07  Bruno Haible  <bruno@clisp.org>
62220
62221         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62222         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62223         definition with an external declaration.
62224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62225         defined as a function. Remove AC_C_INLINE requirement.
62226         * modules/wcwidth (Files): Add lib/wcwidth.c.
62227         (Makefile.am): Remove redundant statement.
62228
62229 2007-07-07  Bruno Haible  <bruno@clisp.org>
62230
62231         * MODULES.html.sh (Unicode string functions): Add the new modules.
62232
62233         * tests/uniwidth/test-u32-strwidth.c: New file.
62234         * modules/uniwidth/u32-strwidth-tests: New file.
62235
62236         * lib/uniwidth/u32-strwidth.c: New file.
62237         * modules/uniwidth/u32-strwidth: New file.
62238
62239         * tests/uniwidth/test-u16-strwidth.c: New file.
62240         * modules/uniwidth/u16-strwidth-tests: New file.
62241
62242         * lib/uniwidth/u16-strwidth.c: New file.
62243         * modules/uniwidth/u16-strwidth: New file.
62244
62245         * tests/uniwidth/test-u8-strwidth.c: New file.
62246         * modules/uniwidth/u8-strwidth-tests: New file.
62247
62248         * lib/uniwidth/u8-strwidth.c: New file.
62249         * modules/uniwidth/u8-strwidth: New file.
62250
62251         * tests/uniwidth/test-u32-width.c: New file.
62252         * modules/uniwidth/u32-width-tests: New file.
62253
62254         * lib/uniwidth/u32-width.c: New file.
62255         * modules/uniwidth/u32-width: New file.
62256
62257         * tests/uniwidth/test-u16-width.c: New file.
62258         * modules/uniwidth/u16-width-tests: New file.
62259
62260         * lib/uniwidth/u16-width.c: New file.
62261         * modules/uniwidth/u16-width: New file.
62262
62263         * tests/uniwidth/test-u8-width.c: New file.
62264         * modules/uniwidth/u8-width-tests: New file.
62265
62266         * lib/uniwidth/u8-width.c: New file.
62267         * modules/uniwidth/u8-width: New file.
62268
62269         * tests/uniwidth/test-uc_width.c: New file.
62270         * modules/uniwidth/width-tests: New file.
62271
62272         * lib/uniwidth/width.c: New file, from GNU libiconv.
62273         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62274         * modules/uniwidth/width: New file.
62275
62276         * lib/uniwidth.h: New file, from GNU libiconv.
62277         * modules/uniwidth/base: New file.
62278
62279 2007-07-07  Bruno Haible  <bruno@clisp.org>
62280
62281         * lib/uniname.h: New file, from GNU gettext.
62282         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62283         * lib/uniname/uninames.h: New file, from GNU gettext.
62284         * lib/uniname/uniname.c: New file, from GNU gettext.
62285         * tests/uniname/test-uninames.sh: New file.
62286         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62287         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62288         * modules/uniname/base: New file.
62289         * modules/uniname/uniname: New file.
62290         * modules/uniname/uniname-tests: New file.
62291         * MODULES.html.sh (Unicode string functions): Add the new modules.
62292
62293 2007-07-06  Bruno Haible  <bruno@clisp.org>
62294
62295         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62296
62297 2007-07-06  Bruno Haible  <bruno@clisp.org>
62298
62299         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62300         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62301         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62302         include <sys/time.h>.
62303         Reported by Eric Blake.
62304
62305 2007-07-06  Eric Blake  <ebb9@byu.net>
62306
62307         Fix testing canonicalize on cygwin.
62308         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62309         Revert patch from 2007-06-19.
62310         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62311         canonicalize module is also in use.
62312         * tests/test-canonicalize.c: New file.
62313         * tests/test-canonicalize.sh: Likewise.
62314         * modules/canonicalize-tests: Likewise.
62315
62316 2007-07-06  Jim Meyering  <jim@meyering.net>
62317
62318         * lib/getugroups.c (getugroups): Detect getgrent failure.
62319         Adjust comment to reflect reality: this function may return -1.
62320
62321 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62322
62323         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62324         the new TP address.
62325         (usage): Fix typo
62326         (gnulib_mk): New variable.
62327
62328 2007-07-05  Jim Meyering  <jim@meyering.net>
62329
62330         Don't let endgrent clobber errno, no matter how improbable.
62331         * lib/getugroups.c (getugroups): Save and restore errno around
62332         endgrent call.
62333
62334         Close the group DB even when failing with 2^31 or more members.
62335         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62336
62337 2007-07-04  Jim Meyering  <jim@meyering.net>
62338
62339         * lib/getugroups.h: New file.
62340         * lib/getugroups.c: Include "getugroups.h".
62341         Remove uses of "register" keyword.
62342         Move local variable, "cp", down into scope where used.
62343         Give "username" parameter the "const" attribute.
62344         * modules/getugroups (Files): Add lib/getugroups.h
62345
62346 2007-07-04  Karl Berry  <karl@gnu.org>
62347
62348         * MODULES.html.sh (func_all_modules): Complete rename of
62349         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62350
62351 2007-07-02  Bruno Haible  <bruno@clisp.org>
62352
62353         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62354         mode, when inttypes.h comes from gnulib.
62355         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62356
62357 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62358
62359         * NEWS: Mention lgpl module name change.
62360
62361         * modules/lgpl-2.1: Renamed from lgpl.
62362
62363         * NEWS: Mention gpl module name change.
62364
62365         * modules/gpl-3.0: New file, based on gpl-2.0.
62366
62367         * modules/gpl-2.0: Renamed from gpl.
62368
62369         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62370         doc/gpl-2.0.texi.
62371
62372 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62373
62374         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62375         #define __STDC_LIMIT_MACROS temporarily while including
62376         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62377         Problem reported by Joel E. Denny in
62378         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62379
62380 2007-07-01  Bruno Haible  <bruno@clisp.org>
62381
62382         * lib/unistdio.h: New file.
62383         * lib/unistdio/u-asnprintf.h: New file.
62384         * lib/unistdio/u-asprintf.h: New file.
62385         * lib/unistdio/u-printf-args.c: New file.
62386         * lib/unistdio/u-printf-args.h: New file.
62387         * lib/unistdio/u-printf-parse.h: New file.
62388         * lib/unistdio/u-snprintf.h: New file.
62389         * lib/unistdio/u-sprintf.h: New file.
62390         * lib/unistdio/u-vasprintf.h: New file.
62391         * lib/unistdio/u-vsnprintf.h: New file.
62392         * lib/unistdio/u-vsprintf.h: New file.
62393         * lib/unistdio/ulc-asnprintf.c: New file.
62394         * lib/unistdio/ulc-asprintf.c: New file.
62395         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62396         * lib/unistdio/ulc-printf-parse.c: New file.
62397         * lib/unistdio/ulc-snprintf.c: New file.
62398         * lib/unistdio/ulc-sprintf.c: New file.
62399         * lib/unistdio/ulc-vasnprintf.c: New file.
62400         * lib/unistdio/ulc-vasprintf.c: New file.
62401         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62402         * lib/unistdio/ulc-vsnprintf.c: New file.
62403         * lib/unistdio/ulc-vsprintf.c: New file.
62404         * lib/unistdio/u8-asnprintf.c: New file.
62405         * lib/unistdio/u8-asprintf.c: New file.
62406         * lib/unistdio/u8-printf-parse.c: New file.
62407         * lib/unistdio/u8-snprintf.c: New file.
62408         * lib/unistdio/u8-sprintf.c: New file.
62409         * lib/unistdio/u8-vasnprintf.c: New file.
62410         * lib/unistdio/u8-vasprintf.c: New file.
62411         * lib/unistdio/u8-vsnprintf.c: New file.
62412         * lib/unistdio/u8-vsprintf.c: New file.
62413         * lib/unistdio/u8-u8-asnprintf.c: New file.
62414         * lib/unistdio/u8-u8-asprintf.c: New file.
62415         * lib/unistdio/u8-u8-snprintf.c: New file.
62416         * lib/unistdio/u8-u8-sprintf.c: New file.
62417         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62418         * lib/unistdio/u8-u8-vasprintf.c: New file.
62419         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62420         * lib/unistdio/u8-u8-vsprintf.c: New file.
62421         * lib/unistdio/u16-asnprintf.c: New file.
62422         * lib/unistdio/u16-asprintf.c: New file.
62423         * lib/unistdio/u16-printf-parse.c: New file.
62424         * lib/unistdio/u16-snprintf.c: New file.
62425         * lib/unistdio/u16-sprintf.c: New file.
62426         * lib/unistdio/u16-vasnprintf.c: New file.
62427         * lib/unistdio/u16-vasprintf.c: New file.
62428         * lib/unistdio/u16-vsnprintf.c: New file.
62429         * lib/unistdio/u16-vsprintf.c: New file.
62430         * lib/unistdio/u16-u16-asnprintf.c: New file.
62431         * lib/unistdio/u16-u16-asprintf.c: New file.
62432         * lib/unistdio/u16-u16-snprintf.c: New file.
62433         * lib/unistdio/u16-u16-sprintf.c: New file.
62434         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62435         * lib/unistdio/u16-u16-vasprintf.c: New file.
62436         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62437         * lib/unistdio/u16-u16-vsprintf.c: New file.
62438         * lib/unistdio/u32-asnprintf.c: New file.
62439         * lib/unistdio/u32-asprintf.c: New file.
62440         * lib/unistdio/u32-printf-parse.c: New file.
62441         * lib/unistdio/u32-snprintf.c: New file.
62442         * lib/unistdio/u32-sprintf.c: New file.
62443         * lib/unistdio/u32-vasnprintf.c: New file.
62444         * lib/unistdio/u32-vasprintf.c: New file.
62445         * lib/unistdio/u32-vsnprintf.c: New file.
62446         * lib/unistdio/u32-vsprintf.c: New file.
62447         * lib/unistdio/u32-u32-asnprintf.c: New file.
62448         * lib/unistdio/u32-u32-asprintf.c: New file.
62449         * lib/unistdio/u32-u32-snprintf.c: New file.
62450         * lib/unistdio/u32-u32-sprintf.c: New file.
62451         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62452         * lib/unistdio/u32-u32-vasprintf.c: New file.
62453         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62454         * lib/unistdio/u32-u32-vsprintf.c: New file.
62455         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62456         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62457         * tests/unistdio/test-ulc-printf1.h: New file.
62458         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62459         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62460         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62461         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62462         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62463         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62464         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62465         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62466         * tests/unistdio/test-u8-asnprintf1.c: New file.
62467         * tests/unistdio/test-u8-asnprintf1.h: New file.
62468         * tests/unistdio/test-u8-printf1.h: New file.
62469         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62470         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62471         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62472         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62473         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62474         * tests/unistdio/test-u8-vasprintf1.c: New file.
62475         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62476         * tests/unistdio/test-u8-vsprintf1.c: New file.
62477         * tests/unistdio/test-u16-asnprintf1.c: New file.
62478         * tests/unistdio/test-u16-asnprintf1.h: New file.
62479         * tests/unistdio/test-u16-printf1.h: New file.
62480         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62481         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62482         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62483         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62484         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62485         * tests/unistdio/test-u16-vasprintf1.c: New file.
62486         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62487         * tests/unistdio/test-u16-vsprintf1.c: New file.
62488         * tests/unistdio/test-u32-asnprintf1.c: New file.
62489         * tests/unistdio/test-u32-asnprintf1.h: New file.
62490         * tests/unistdio/test-u32-printf1.h: New file.
62491         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62492         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62493         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62494         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62495         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62496         * tests/unistdio/test-u32-vasprintf1.c: New file.
62497         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62498         * tests/unistdio/test-u32-vsprintf1.c: New file.
62499         * modules/unistdio/base: New file.
62500         * modules/unistdio/u-printf-args: New file.
62501         * modules/unistdio/ulc-asnprintf: New file.
62502         * modules/unistdio/ulc-asprintf: New file.
62503         * modules/unistdio/ulc-fprintf: New file.
62504         * modules/unistdio/ulc-printf-parse: New file.
62505         * modules/unistdio/ulc-snprintf: New file.
62506         * modules/unistdio/ulc-sprintf: New file.
62507         * modules/unistdio/ulc-vasnprintf: New file.
62508         * modules/unistdio/ulc-vasprintf: New file.
62509         * modules/unistdio/ulc-vfprintf: New file.
62510         * modules/unistdio/ulc-vsnprintf: New file.
62511         * modules/unistdio/ulc-vsprintf: New file.
62512         * modules/unistdio/u8-asnprintf: New file.
62513         * modules/unistdio/u8-asprintf: New file.
62514         * modules/unistdio/u8-printf-parse: New file.
62515         * modules/unistdio/u8-snprintf: New file.
62516         * modules/unistdio/u8-sprintf: New file.
62517         * modules/unistdio/u8-vasnprintf: New file.
62518         * modules/unistdio/u8-vasprintf: New file.
62519         * modules/unistdio/u8-vsnprintf: New file.
62520         * modules/unistdio/u8-vsprintf: New file.
62521         * modules/unistdio/u8-u8-asnprintf: New file.
62522         * modules/unistdio/u8-u8-asprintf: New file.
62523         * modules/unistdio/u8-u8-snprintf: New file.
62524         * modules/unistdio/u8-u8-sprintf: New file.
62525         * modules/unistdio/u8-u8-vasnprintf: New file.
62526         * modules/unistdio/u8-u8-vasprintf: New file.
62527         * modules/unistdio/u8-u8-vsnprintf: New file.
62528         * modules/unistdio/u8-u8-vsprintf: New file.
62529         * modules/unistdio/u16-asnprintf: New file.
62530         * modules/unistdio/u16-asprintf: New file.
62531         * modules/unistdio/u16-printf-parse: New file.
62532         * modules/unistdio/u16-snprintf: New file.
62533         * modules/unistdio/u16-sprintf: New file.
62534         * modules/unistdio/u16-vasnprintf: New file.
62535         * modules/unistdio/u16-vasprintf: New file.
62536         * modules/unistdio/u16-vsnprintf: New file.
62537         * modules/unistdio/u16-vsprintf: New file.
62538         * modules/unistdio/u16-u16-asnprintf: New file.
62539         * modules/unistdio/u16-u16-asprintf: New file.
62540         * modules/unistdio/u16-u16-snprintf: New file.
62541         * modules/unistdio/u16-u16-sprintf: New file.
62542         * modules/unistdio/u16-u16-vasnprintf: New file.
62543         * modules/unistdio/u16-u16-vasprintf: New file.
62544         * modules/unistdio/u16-u16-vsnprintf: New file.
62545         * modules/unistdio/u16-u16-vsprintf: New file.
62546         * modules/unistdio/u32-asnprintf: New file.
62547         * modules/unistdio/u32-asprintf: New file.
62548         * modules/unistdio/u32-printf-parse: New file.
62549         * modules/unistdio/u32-snprintf: New file.
62550         * modules/unistdio/u32-sprintf: New file.
62551         * modules/unistdio/u32-vasnprintf: New file.
62552         * modules/unistdio/u32-vasprintf: New file.
62553         * modules/unistdio/u32-vsnprintf: New file.
62554         * modules/unistdio/u32-vsprintf: New file.
62555         * modules/unistdio/u32-u32-asnprintf: New file.
62556         * modules/unistdio/u32-u32-asprintf: New file.
62557         * modules/unistdio/u32-u32-snprintf: New file.
62558         * modules/unistdio/u32-u32-sprintf: New file.
62559         * modules/unistdio/u32-u32-vasnprintf: New file.
62560         * modules/unistdio/u32-u32-vasprintf: New file.
62561         * modules/unistdio/u32-u32-vsnprintf: New file.
62562         * modules/unistdio/u32-u32-vsprintf: New file.
62563         * modules/unistdio/ulc-asnprintf-tests: New file.
62564         * modules/unistdio/ulc-vasnprintf-tests: New file.
62565         * modules/unistdio/ulc-vasprintf-tests: New file.
62566         * modules/unistdio/ulc-vsnprintf-tests: New file.
62567         * modules/unistdio/ulc-vsprintf-tests: New file.
62568         * modules/unistdio/u8-asnprintf-tests: New file.
62569         * modules/unistdio/u8-vasnprintf-tests: New file.
62570         * modules/unistdio/u8-vasprintf-tests: New file.
62571         * modules/unistdio/u8-vsnprintf-tests: New file.
62572         * modules/unistdio/u8-vsprintf-tests: New file.
62573         * modules/unistdio/u16-asnprintf-tests: New file.
62574         * modules/unistdio/u16-vasnprintf-tests: New file.
62575         * modules/unistdio/u16-vasprintf-tests: New file.
62576         * modules/unistdio/u16-vsnprintf-tests: New file.
62577         * modules/unistdio/u16-vsprintf-tests: New file.
62578         * modules/unistdio/u32-asnprintf-tests: New file.
62579         * modules/unistdio/u32-vasnprintf-tests: New file.
62580         * modules/unistdio/u32-vasprintf-tests: New file.
62581         * modules/unistdio/u32-vsnprintf-tests: New file.
62582         * modules/unistdio/u32-vsprintf-tests: New file.
62583         * MODULES.html.sh (Unicode string functions): Add the new modules.
62584
62585 2007-07-01  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/sprintf.c (sprintf): Limit the available length estimation,
62588         to avoid address wraparound.
62589         * lib/vsprintf.c (vsprintf): Likewise.
62590         * modules/sprintf-posix (Dependencies): Add stdint.
62591         * modules/vsprintf-posix (Dependencies): Likewise.
62592
62593 2007-07-01  Bruno Haible  <bruno@clisp.org>
62594
62595         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62596         Windows PATH as well. Conservative double-quoting. Comments.
62597
62598 2007-07-01  Bruno Haible  <bruno@clisp.org>
62599             Eric Blake  <ebb9@byu.net>
62600             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62601
62602         * gnulib-tool (self_abspathname): Fix algorithm to cope with
62603         empty components in $PATH, denoting '.'.
62604
62605 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62606
62607         * gnulib-tool: Fix indentation.
62608         (func_create_megatestdir): Likewise.
62609         Report by Bruno Haible.
62610
62611 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62612
62613         Sync from Automake.
62614         * build-aux/gnupload: Fix shell portability issues with for loops.
62615         Report by Karl Berry.
62616
62617 2007-06-29  Simon Josefsson  <simon@josefsson.org>
62618
62619         * build-aux/maint.mk (POURL): Use translationproject.org.
62620
62621 2007-06-27  Simon Josefsson  <simon@josefsson.org>
62622             Bruno Haible  <bruno@clisp.org>
62623
62624         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
62625         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
62626         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
62627         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
62628         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
62629
62630 2007-06-27  Bruno Haible  <bruno@clisp.org>
62631
62632         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
62633         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
62634
62635 2007-06-26  Karl Berry  <karl@gnu.org>
62636
62637         * MODULES.html.sh: remove xreadlink-with-size.
62638
62639 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
62642         method that I hope also handles the double-include problem noted
62643         by Bruno Haible in
62644         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
62645
62646 2007-06-23  Bruno Haible  <bruno@clisp.org>
62647
62648         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62649         Don't let the 'mostlyclean' target fail if the last subdirectory could
62650         not be removed.
62651         Reported by Karl Berry.
62652
62653 2007-06-23  Bruno Haible  <bruno@clisp.org>
62654
62655         * gnulib-tool (echo): Add a speedier workaround for ksh.
62656         * tests/test-echo.sh: Likewise.
62657
62658 2007-06-23  Bruno Haible  <bruno@clisp.org>
62659
62660         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
62661         * tests/test-echo.sh: Likewise.
62662
62663 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62664
62665         * gnulib-tool (IFS): Initialize early, so we don't set it to
62666         empty later.
62667         (self_abspathname): Rewrite algorithm to set it, reindent.
62668         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
62669         (func_create_megatestdir): Merge some sed scripts.
62670
62671 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
62674         exposed by Sun Studio 11 cc on Solaris 8.
62675
62676 2007-06-22  Bruno Haible  <bruno@clisp.org>
62677
62678         * gnulib-tool (echo): Ensure the echo primitive does not interpret
62679         backslashes.
62680         * tests/test-echo.sh: New file.
62681
62682 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62683
62684         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
62685         simplify `sed_replace_build_aux' scripts, they are portable but
62686         echoing them with `echo' is not.
62687         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
62688
62689 2007-06-21  Karl Berry  <karl@gnu.org>
62690
62691         * config/srclist.txt: guess we can't handle the licenses via
62692         srclist at the moment.
62693
62694 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62695
62696         * MODULES.html.sh: Add include_next.
62697         * modules/include_next: New file.
62698
62699 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62700
62701         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
62702         INCLUDE_NEXT.
62703         (gl_CHECK_NEXT_HEADERS): New macro.
62704         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
62705         the obsolescent gl_ABSOLUTE_HEADER.
62706         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
62707         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
62708         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62709         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62710         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62711         * m4/math_h.m4 (gl_MATH_H): Likewise.
62712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
62713         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62714         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62715         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62716         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62717         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62718         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62719         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62720         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62721         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62722         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
62723         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62724         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
62725         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62726         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62727         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62728         * m4/inttypes.m4 (gl_INTTYPES_H): Define
62729         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
62730         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
62731         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
62732         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
62733         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
62734         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
62735         * lib/float_.h: Likewise.
62736         * lib/inttypes_.h: Likewise.
62737         * lib/math_.h: Likewise.
62738         * lib/search_.h: Likewise.
62739         * lib/signal_.h: Likewise.
62740         * lib/stdint_.h: Likewise.
62741         * lib/stdio_.h: Likewise.
62742         * lib/stdlib_.h: Likewise.
62743         * lib/string_.h: Likewise.
62744         * lib/sys_stat_.h: Likewise.
62745         * lib/sys_time_.h: Likewise.
62746         * lib/time_.h: Likewise.
62747         * lib/unistd_.h: Likewise.
62748         * lib/wchar_.h: Likewise.
62749         * lib/wctype_.h: Likewise.
62750         * lib/dirent_.h: Likewise.
62751         * lib/iconv_.h: Likewise.
62752         * lib/locale_.h: Likewise.
62753         * lib/netinet_in_.h: Likewise.
62754         * lib/sys_select_.h: Likewise.
62755         * lib/sys_socket_.h: Likewise.
62756         * lib/sysexits_.h: Likewise.
62757         * modules/fcntl (Depends-on): Depend on include_next, not
62758         absolute_header.
62759         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
62760         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
62761         * modules/fchdir: Likewise.
62762         * modules/float: Likewise.
62763         * modules/iconv_open: Likewise.
62764         * modules/inttypes: Likewise.
62765         * modules/locale: Likewise.
62766         * modules/math: Likewise.
62767         * modules/netinet_in: Likewise.
62768         * modules/search: Likewise.
62769         * modules/signal: Likewise.
62770         * modules/stdint: Likewise.
62771         * modules/stdio: Likewise.
62772         * modules/stdlib: Likewise.
62773         * modules/string: Likewise.
62774         * modules/sys_select: Likewise.
62775         * modules/sys_socket: Likewise.
62776         * modules/sys_stat: Likewise.
62777         * modules/sys_time: Likewise.
62778         * modules/sysexits: Likewise.
62779         * modules/time: Likewise.
62780         * modules/unistd: Likewise.
62781         * modules/wchar: Likewise.
62782         * modules/wctype: Likewise.
62783         * modules/sys_stat: Change maintainer to "all".
62784         * modules/unistd: Likewise.
62785
62786 2007-06-20  Karl Berry  <karl@gnu.org>
62787
62788         * config/srclist.txt: track www changes in license files.
62789
62790 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
62791
62792         * build-aux/bootstrap: Remove stray dot.
62793         Make sure build_aux settings are honored when linking
62794         gnulib_extra_files.
62795
62796 2007-06-19  Eric Blake  <ebb9@byu.net>
62797
62798         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62799         Allow compilation on cygwin.
62800
62801 2007-06-19  Jim Meyering  <jim@meyering.net>
62802
62803         xreadlink-with-size: Remove module.  No longer used.
62804         Ex-callers now use xreadlink or mreadlink-with-size.
62805         * modules/xreadlink-with-size: Remove module.
62806         * lib/xreadlink-with-size.c: Remove file.
62807         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
62808         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
62809         just before the function definition *is* accurate.
62810
62811         Eliminate one way canonicalize_filename_mode could exit.
62812         * lib/canonicalize.c (canonicalize_filename_mode):
62813         Use mreadlink_with_size, not xreadlink_with_size.
62814
62815 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
62816
62817         Detect porting problems to FreeBSD/arm, which has time_t wider than
62818         long int.  Original problem reported for GNU diff by Xin Li in
62819         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
62820         * modules/getdate (Depends-on): Add intprops, verify.
62821         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
62822         is an integer type no wider than long int.
62823
62824 2007-06-18  Jim Meyering  <jim@meyering.net>
62825
62826         New module: mreadlink-with-size.
62827         * MODULES.html.sh: Add mreadlink-with-size.
62828         * modules/mreadlink-with-size: New module
62829         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
62830         not xreadlink-with-size.
62831         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
62832
62833 2007-06-16  Bruno Haible  <bruno@clisp.org>
62834
62835         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
62836         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
62837         Reported by Gary V. Vaughan <gary@gnu.org>.
62838
62839 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
62840
62841         Revamp lchown so that it lives in unistd.h where it belongs.
62842         * lib/lchown.h: Remove.
62843         * lib/dirchownmod.c: Don't include lib/lchown.h.
62844         * lib/fchownat.c: Likewise.
62845         * lib/openat.c: Likewise.
62846         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
62847         does not follow symlinks.
62848         (EOPNOTSUPP): Define if not defined.
62849         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
62850         is defined to 0.
62851         (lchown): New decl.
62852         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
62853         Do not check for lchown decl.
62854         Set REPLACE_LCHOWN.
62855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
62856         REPLACE_LCHOWN.
62857         * modules/chown: Make it clear it follows symlinks.
62858         * modules/lchown: Make it clear it doesn't follow symlinks.
62859         (Files): Remove lib/lchown.h
62860         (Depends-on): Add unistd.
62861         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
62862         (Include): Include <unistd.h>, not "lchown.h".
62863         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
62864         REPLACE_LCHOWN.
62865
62866 2007-06-15  Jim Meyering  <jim@meyering.net>
62867
62868         Change license (GPL to LGPL) of fsusage and dependents.
62869         * modules/fsusage (License): Change to LGPL.
62870         * modules/full-read (License): Likewise.
62871         * modules/full-write (License): Likewise.
62872         * modules/safe-read (License): Likewise.
62873         * modules/safe-write (License): Likewise.
62874
62875 2007-06-14  Ben Pfaff  <blp@gnu.org>
62876
62877         Missing part of allocsa -> malloca transition.
62878         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
62879         gl_MALLOCA.
62880
62881 2007-06-12  Bruno Haible  <bruno@clisp.org>
62882
62883         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
62884         to ia64, x86_64, i386.
62885         Reported by Eric Blake.
62886
62887 2007-06-12  Bruno Haible  <bruno@clisp.org>
62888
62889         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
62890         cross-compiling to x86_64.
62891
62892 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
62893
62894         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
62895         glitch reported by Ralf Wildenhues in
62896         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
62897
62898         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
62899         Vin Shelton.
62900
62901 2007-06-11  Bruno Haible  <bruno@clisp.org>
62902
62903         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
62904         replacement string.
62905         Reported by Eric Blake.
62906
62907 2007-06-10  Bruno Haible  <bruno@clisp.org>
62908
62909         Prepare vasnprintf code for use with Unicode strings.
62910         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
62911         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
62912         TYPE_U32_STRING.
62913         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
62914         a_u32_string variants.
62915         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62916         * lib/printf-args.c: Don't include config.h and the specification
62917         header if PRINTF_FETCHARGS is already defined.
62918         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62919         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
62920         TYPE_U16_STRING, TYPE_U32_STRING.
62921         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
62922         u16_directive, u16_directives, u32_directive, u32_directives): New
62923         types.
62924         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
62925         New declarations.
62926         * lib/printf-parse.c: Don't include config.h and the specification
62927         header if PRINTF_PARSE is already defined. Eliminate the set of
62928         parameters for WIDE_CHAR_VERSION; the user of this file must provide
62929         them now. Include c-ctype.h.
62930         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
62931         directive and CHAR_T_ONLY_ASCII.
62932         * lib/vasnprintf.c: Don't include config.h and the specification header
62933         if VASNPRINTF is already defined.
62934         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
62935         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
62936         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
62937         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
62938         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
62939         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
62940         code accordingly.
62941         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
62942         pad_ourselves also in this case, with the 'c' and 's' directives, and
62943         with a different notion of "width".
62944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
62945
62946 2007-06-10  Bruno Haible  <bruno@clisp.org>
62947
62948         * modules/unistr/u32-mbsnlen: New file.
62949         * lib/unistr/u32-mbsnlen.c: New file.
62950
62951         * modules/unistr/u16-mbsnlen: New file.
62952         * lib/unistr/u16-mbsnlen.c: New file.
62953
62954         * modules/unistr/u8-mbsnlen: New file.
62955         * lib/unistr/u8-mbsnlen.c: New file.
62956
62957         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62958         declarations.
62959
62960 2007-06-10  Bruno Haible  <bruno@clisp.org>
62961
62962         * lib/string_.h (mbsnlen): New declaration.
62963         * lib/mbsnlen.c: New file.
62964         * m4/mbsnlen.m4: New file.
62965         * modules/mbsnlen: New file.
62966         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62967         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62968         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62969
62970 2007-06-10  Bruno Haible  <bruno@clisp.org>
62971
62972         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62973
62974 2007-06-10  Bruno Haible  <bruno@clisp.org>
62975
62976         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62977         * lib/mbuiter.h: Likewise.
62978
62979 2007-06-10  Bruno Haible  <bruno@clisp.org>
62980
62981         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62982         declaration.
62983
62984 2007-06-10  Karl Berry  <karl@gnu.org>
62985
62986         * config/srclist.txt: remove gettext entries, Bruno prefers
62987         to update individually.
62988
62989 2007-06-10  Bruno Haible  <bruno@clisp.org>
62990
62991         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62992         'maxlen'. Ensure only length + width bytes are allocated, not
62993         length + 1 + width.
62994
62995 2007-06-09  Bruno Haible  <bruno@clisp.org>
62996
62997         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62998         (CHAR_T): Remove macro.
62999         (VASNPRINTF): Update.
63000
63001 2007-06-09  Bruno Haible  <bruno@clisp.org>
63002
63003         * MODULES.html.sh (Unicode string functions): Add the new modules.
63004
63005         * modules/uniconv/u32-conv-to-enc: New file.
63006         * lib/uniconv/u32-conv-to-enc.c: New file.
63007         * modules/uniconv/u32-conv-to-enc-tests: New file.
63008         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63009
63010         * modules/uniconv/u16-conv-to-enc: New file.
63011         * lib/uniconv/u16-conv-to-enc.c: New file.
63012         * lib/uniconv/u-conv-to-enc.h: New file.
63013         * modules/uniconv/u16-conv-to-enc-tests: New file.
63014         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63015
63016         * modules/uniconv/u8-conv-to-enc: New file.
63017         * lib/uniconv/u8-conv-to-enc.c: New file.
63018         * modules/uniconv/u8-conv-to-enc-tests: New file.
63019         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63020
63021         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63022         u32_conv_to_encoding): New declarations.
63023
63024 2007-06-09  Bruno Haible  <bruno@clisp.org>
63025
63026         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63027
63028 2007-06-09  Bruno Haible  <bruno@clisp.org>
63029
63030         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63031         * modules/malloca: Renamed from modules/allocsa, updated.
63032         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63033         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63034         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63035         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63036         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63037         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63038         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63039         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63040         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63041         * modules/c-strcasestr (Depends-on): Update.
63042         * lib/c-strcasestr.c: Update.
63043         * modules/c-strstr (Depends-on): Update.
63044         * lib/c-strstr.c: Update.
63045         * modules/canonicalize-lgpl (Depends-on): Update.
63046         * lib/canonicalize-lgpl.c: Update.
63047         * modules/clean-temp (Depends-on): Update.
63048         * lib/clean-temp.c: Update.
63049         * modules/csharpcomp (Depends-on): Update.
63050         * lib/csharpcomp.c: Update.
63051         * modules/csharpexec (Depends-on): Update.
63052         * lib/csharpexec.c: Update.
63053         * modules/javacomp (Depends-on): Update.
63054         * lib/javacomp.c: Update.
63055         * modules/javaexec (Depends-on): Update.
63056         * lib/javaexec.c: Update.
63057         * modules/mbscasestr (Depends-on): Update.
63058         * lib/mbscasestr.c: Update.
63059         * modules/mbsstr (Depends-on): Update.
63060         * lib/mbsstr.c: Update.
63061         * modules/setenv (Depends-on): Update.
63062         * lib/setenv.c: Update.
63063         * modules/strcasestr (Depends-on): Update.
63064         * lib/strcasestr.c: Update.
63065         * modules/striconveha (Depends-on): Update.
63066         * lib/striconveha.c: Update.
63067         * modules/relocatable-prog-wrapper (Files): Update.
63068         * lib/relocwrapper.c: Update.
63069         * build-aux/install-reloc: Update.
63070         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63071
63072 2007-06-08  Bruno Haible  <bruno@clisp.org>
63073
63074         Port to uClibc.
63075         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63076         * lib/fpurge.c (fpurge): Likewise.
63077         * lib/freading.c (freading): Likewise.
63078         * lib/fseeko.c (rpl_fseeko): Likewise.
63079         * lib/fseterr.c (fseterr): Likewise.
63080         * lib/fwriting.c (fwriting): Likewise.
63081         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63082
63083 2007-06-08  Bruno Haible  <bruno@clisp.org>
63084
63085         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63086         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63087         * modules/gettext (Files): Add m4/intlmacosx.m4.
63088
63089 2007-06-07  Bruno Haible  <bruno@clisp.org>
63090
63091         * modules/localename-tests: New file.
63092         * tests/test-localename.c: New file.
63093
63094         New module 'localename'.
63095         * lib/localename.h: New file.
63096         * lib/localename.c: New file, from GNU gettext.
63097         * m4/localename.m4: New file.
63098         * modules/localename: New file.
63099
63100 2007-06-07  Bruno Haible  <bruno@clisp.org>
63101
63102         Work around the lack of <wchar.h> on some builds of uClibc.
63103         * doc/headers/wchar.texi: Update.
63104         * lib/wchar_.h: Include <wchar.h> only if it exists.
63105         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63106         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63107         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63108         doesn't exist.
63109         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63110         * modules/mbfile (Depends-on): Add wchar.
63111         * modules/mbiter (Depends-on): Likewise.
63112         * modules/mbuiter (Depends-on): Likewise.
63113         Reported by Simon Josefsson.
63114
63115 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         Work around problem reported by Steven M. Schweda in
63118         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63119         Tru64 5.1B with the Compaq compiler environment installed declares
63120         an 'isblank' function but does not define it in the C library.
63121         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63122         * lib/regex_internal.h (isblank): Likewise.
63123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63124         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63125
63126 2007-06-05  Bruno Haible  <bruno@clisp.org>
63127
63128         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63129         ia64.
63130         * modules/printf-safe: New file.
63131         * modules/fprintf-posix (Depends-on): Add printf-safe.
63132         * modules/printf-posix (Depends-on): Likewise.
63133         * modules/snprintf-posix (Depends-on): Likewise.
63134         * modules/sprintf-posix (Depends-on): Likewise.
63135         * modules/vasnprintf-posix (Depends-on): Likewise.
63136         * modules/vasprintf-posix (Depends-on): Likewise.
63137         * modules/vfprintf-posix (Depends-on): Likewise.
63138         * modules/vprintf-posix (Depends-on): Likewise.
63139         * modules/vsnprintf-posix (Depends-on): Likewise.
63140         * modules/vsprintf-posix (Depends-on): Likewise.
63141         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63142         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63143         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63144         "no" on i386, x86_64, ia64.
63145         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63146         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63147         on i386, x86_64, ia64.
63148         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63149         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63150         on i386, x86_64, ia64.
63151         * tests/test-vasnprintf-posix.c: Include float.h.
63152         (LDBL80_WORDS): New macro.
63153         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63154         on i386, x86_64, ia64.
63155         * tests/test-vasprintf-posix.c: Include float.h.
63156         (LDBL80_WORDS): New macro.
63157         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63158         on i386, x86_64, ia64.
63159         * tests/test-snprintf-posix.c: Include float.h.
63160         * tests/test-sprintf-posix.c: Likewise.
63161         * tests/test-vsnprintf-posix.c: Likewise.
63162         * tests/test-vsprintf-posix.c: Likewise.
63163
63164 2007-06-05  Bruno Haible  <bruno@clisp.org>
63165
63166         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63167         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63168         non-IEEE numbers on i386, x86_64, ia64.
63169         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63170         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63171         * tests/test-isnanl.h: Include float.h.
63172         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63173
63174 2007-06-05  Bruno Haible  <bruno@clisp.org>
63175
63176         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63177         also the %a / %A. Handle the %a / %A code before this extra handling.
63178
63179 2007-06-05  Bruno Haible  <bruno@clisp.org>
63180
63181         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63182         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63183
63184 2007-06-05  Bruno Haible  <bruno@clisp.org>
63185
63186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63187         typo in variable name.
63188
63189 2007-06-05  Eric Blake  <ebb9@byu.net>
63190
63191         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63192         Reported by Simon Josefsson.
63193
63194 2007-06-04  Bruno Haible  <bruno@clisp.org>
63195
63196         Avoid test failures on some PowerPC platforms.
63197         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63198         Define differently for PowerPC.
63199         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63200         Reported by Gary V. Vaughan <gary@gnu.org>.
63201
63202 2007-06-02  Bruno Haible  <bruno@clisp.org>
63203
63204         Fix test-stdint failure on FreeBSD/ia64.
63205         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63206         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63207         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63208         * doc/headers/stdint.texi: Update.
63209
63210 2007-06-01  Bruno Haible  <bruno@clisp.org>
63211
63212         * tests/test-binary-io.c (main): Pass a third argument to open().
63213         Reported by Gary V. Vaughan <gary@gnu.org>.
63214
63215 2007-06-01  Bruno Haible  <bruno@clisp.org>
63216
63217         * doc/functions/frexpl.texi: Update for mingw.
63218
63219 2007-06-01  Bruno Haible  <bruno@clisp.org>
63220
63221         * tests/test-lseek.c (main): Disable test of errno for invalid third
63222         argument.
63223         * doc/functions/lseek.texi: Update.
63224         Reported by Gary V. Vaughan <gary@gnu.org>.
63225
63226 2007-05-28  Bruno Haible  <bruno@clisp.org>
63227
63228         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63229
63230 2007-05-31  Eric Blake  <ebb9@byu.net>
63231
63232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63233         cross compiling.
63234
63235 2007-05-30  Eric Blake  <ebb9@byu.net>
63236         and Bruno Haible  <bruno@clisp.org>
63237
63238         Work around mingw test failures exposed by m4-1.4.9b.
63239         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63240         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63241         moment.
63242
63243 2007-05-30  Bruno Haible  <bruno@clisp.org>
63244
63245         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63246         assuming that they are closed. Needed on HP-UX 11.
63247
63248 2007-05-29  Bruno Haible  <bruno@clisp.org>
63249
63250         Fix a problem with #include_next.
63251         * lib/dirent_.h: Split the double-inclusion guard.
63252         * lib/fcntl_.h: Likewise.
63253         * lib/float_.h: Likewise.
63254         * lib/iconv_.h: Likewise.
63255         * lib/inttypes_.h: Likewise.
63256         * lib/locale_.h: Likewise.
63257         * lib/math_.h: Likewise.
63258         * lib/netinet_in_.h: Likewise.
63259         * lib/search_.h: Likewise.
63260         * lib/signal_.h: Likewise.
63261         * lib/stdint_.h: Likewise.
63262         * lib/stdio_.h: Likewise.
63263         * lib/stdlib_.h: Likewise.
63264         * lib/string_.h: Likewise.
63265         * lib/sys_select_.h: Likewise.
63266         * lib/sys_socket_.h: Likewise.
63267         * lib/sys_stat_.h: Likewise.
63268         * lib/sys_time_.h: Likewise.
63269         * lib/sysexits_.h: Likewise.
63270         * lib/time_.h: Likewise.
63271         * lib/unistd_.h: Likewise.
63272         * lib/wchar_.h: Likewise.
63273         * lib/wctype_.h: Likewise.
63274
63275 2007-05-29  Bruno Haible  <bruno@clisp.org>
63276
63277         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63278         for the moment.
63279
63280 2007-05-29  Bruno Haible  <bruno@clisp.org>
63281
63282         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63283         invocation.
63284         Reported by Eric Blake.
63285
63286 2007-05-29  Bruno Haible  <bruno@clisp.org>
63287
63288         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63289         compiling case.
63290
63291 2007-05-29  Eric Blake  <ebb9@byu.net>
63292             Bruno Haible  <bruno@clisp.org>
63293
63294         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63295         cross compiles.
63296
63297 2007-05-28  Eric Blake  <ebb9@byu.net>
63298
63299         * modules/closein-tests (test_closein_LDADD): Support test on
63300         cygwin with libtool.
63301
63302 2007-05-28  Bruno Haible  <bruno@clisp.org>
63303
63304         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63305         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63306         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63307         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63308         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63309         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63310         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63311         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63312         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63313
63314 2007-05-28  Eric Blake  <ebb9@byu.net>
63315
63316         Unconditionally include <config.h> in unit tests.
63317         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63318         * tests/test-allocsa.c, tests/test-arcfour.c,
63319         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63320         tests/test-array_list.c, tests/test-array_oset.c,
63321         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63322         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63323         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63324         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63325         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63326         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63327         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63328         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63329         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63330         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63331         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63332         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63333         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63334         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63335         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63336         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63337         test-md5.c, test-memmem.c, test-printf-posix.c,
63338         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63339         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63340         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63341         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63342         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63343         test-vasnprintf-posix2.c, test-vasnprintf.c,
63344         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63345         test-vfprintf-posix.c, test-vprintf-posix.c,
63346         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63347         test-xvasprintf.c: Likewise.
63348
63349 2007-05-28  Bruno Haible  <bruno@clisp.org>
63350
63351         * gnulib-tool (func_import): Remember the --with-tests command-line
63352         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63353         Reported by Eric Blake.
63354
63355 2007-05-28  Bruno Haible  <bruno@clisp.org>
63356
63357         * modules/ftell-tests: New file.
63358         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63359         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63360
63361         * lib/ftell.c: New file.
63362         * modules/ftell: New file.
63363         * m4/ftell.m4: New file.
63364         * doc/functions/ftell.texi: Update.
63365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63366         REPLACE_FTELL.
63367         * lib/stdio_.h (rpl_ftell): New declaration.
63368         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63369         REPLACE_FTELL.
63370
63371 2007-05-28  Eric Blake  <ebb9@byu.net>
63372
63373         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63374
63375 2007-05-28  Bruno Haible  <bruno@clisp.org>
63376
63377         * modules/fseek-tests: New file.
63378         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63379         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63380
63381         * lib/fseek.c: New file.
63382         * modules/fseek: New file.
63383         * m4/fseek.m4: New file.
63384         * doc/functions/fseek.texi: Update.
63385         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63386         REPLACE_FSEEK.
63387         * lib/stdio_.h (rpl_fseek): New declaration.
63388         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63389         REPLACE_FSEEK.
63390
63391 2007-05-28  Bruno Haible  <bruno@clisp.org>
63392
63393         * lib/stdio_.h (fflush): More comments.
63394
63395 2007-05-28  Bruno Haible  <bruno@clisp.org>
63396
63397         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63398         runtime test.
63399
63400 2007-05-28  Eric Blake  <ebb9@byu.net>
63401
63402         Improve lseek module.
63403         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63404         * lib/unistd_.h (lseek): Scale back link warning message.
63405         * tests/test-lseek.c: Beef up test.
63406         * tests/test-lseek.sh: Exercise more facets of lseek.
63407         Reported by Bruno Haible.
63408
63409 2007-05-28  Bruno Haible  <bruno@clisp.org>
63410
63411         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63412         to define.
63413
63414 2007-05-27  Bruno Haible  <bruno@clisp.org>
63415
63416         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63417
63418 2007-05-27  Bruno Haible  <bruno@clisp.org>
63419
63420         * modules/openmp: New file.
63421         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63422         Noah Misch.
63423
63424 2007-05-26  Bruno Haible  <bruno@clisp.org>
63425
63426         * modules/chdir-long (Depends-on): Add fchdir.
63427         * modules/chdir-safer (Depends-on): Likewise.
63428         * modules/fts (Depends-on): Likewise.
63429         * modules/fts-lgpl (Depends-on): Likewise.
63430         * modules/openat (Depends-on): Likewise.
63431         * modules/savewd (Depends-on): Likewise.
63432
63433 2007-05-24  Eric Blake  <ebb9@byu.net>
63434
63435         Fix lseek on mingw.
63436         * modules/lseek: New module.
63437         * m4/lseek.m4: New file.
63438         * lib/lseek.c: New file.
63439         * modules/lseek-tests: New file.
63440         * tests/test-lseek.c: New file.
63441         * tests/test-lseek.sh: New file.
63442         * MODULES.html.sh: Document lseek module.
63443         * modules/fflush (Depends-on): Add lseek, fseeko.
63444         * modules/fseeko (Depends-on): Likewise.
63445         * modules/ftello (Depends-on): Likewise.
63446         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63447         broken.
63448         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63449         broken.
63450         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63451         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63452         * lib/ftello.c (rpl_ftello): Likewise.
63453         * tests/test-fseeko.c (main): Test this.
63454         * tests/test-fseeko.sh: Likewise.
63455         * tests/test-ftello.c (main): Likewise.
63456         * tests/test-ftello.sh: Likewise.
63457         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63458         implies replacing fseek.
63459         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63460         HAVE_FTELLO.
63461         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63462         * modules/unistd (Makefile.am): Likewise.
63463         * lib/unistd_.h (lseek): Declare a replacement.
63464         * doc/functions/lseek.texi (lseek): Document this fix.
63465         * doc/functions/fseek.texi (fseek): Likewise.
63466         * doc/functions/ftell.texi (ftell): Likewise.
63467
63468 2007-05-24  Bruno Haible  <bruno@clisp.org>
63469
63470         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63471         in the printed representation of a NaN.
63472         * tests/test-vasprintf-posix.c (test_function): Likewise.
63473         * tests/test-snprintf-posix.h (test_function): Likewise.
63474         * tests/test-sprintf-posix.h (test_function): Likewise.
63475         Reported by Eric Blake.
63476
63477 2007-05-23  Eric Blake  <ebb9@byu.net>
63478
63479         Fix fseeko/ftello on cygwin 1.5.24.
63480         * doc/functions/fseeko.texi (fseeko): Document the fix.
63481         * doc/functions/ftello.texi (ftello): Document the fix.
63482         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63483         * doc/functions/stdout.text (stdout): New file.
63484         * doc/functions/stderr.text (stderr): New file.
63485         * doc/gnulib.texi (Function Substitutes): Use new files.
63486         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63487         prior to 1.7.0.
63488         * tests/test-ftello.c (main): Likewise for ftello.
63489         * tests/test-fseeko.sh: New file.
63490         * tests/test-ftello.sh: New file.
63491         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63492         with seekable stdin.
63493         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63494         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63495         (gl_REPLACE_FSEEKO): New macro.
63496         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63497         * modules/fseeko (Files): Distribute fseeko.c.
63498         * modules/ftello (Files): Distribute ftello.c.
63499         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63500         mode.
63501         * lib/ftello.c (rpl_ftello): New file.
63502         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63503         fseeko, ftello.
63504         (gl_STDIN_LARGE_OFFSET): New macro.
63505         * modules/stdio (Makefile.am): Perform the replacement.
63506         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63507
63508 2007-05-23  Bruno Haible  <bruno@clisp.org>
63509
63510         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63511         GNULIB_POSIXCHECK is defined.
63512
63513 2007-05-21  Bruno Haible  <bruno@clisp.org>
63514
63515         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63516         Check also the output for NaN arguments. When cross-compiling, guess
63517         no on IRIX.
63518         * lib/vasnprintf.c: Update comments.
63519         * tests/test-vasnprintf-posix.c (strisnan): New function.
63520         (test_function): Use it.
63521         * tests/test-vasprintf-posix.c (strisnan): New function.
63522         (test_function): Use it.
63523         * tests/test-snprintf-posix.h (strisnan): New function.
63524         (test_function): Use it.
63525         * tests/test-sprintf-posix.h (strisnan): New function.
63526         (test_function): Use it.
63527         Reported by Eric Blake.
63528
63529 2007-05-20  Bruno Haible  <bruno@clisp.org>
63530
63531         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63532         numbers that fails on BeOS.
63533         * doc/functions/frexpl.texi: Update.
63534
63535 2007-05-20  Jim Meyering  <jim@meyering.net>
63536
63537         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63538         forced upon us by glibc-2.6.
63539
63540 2007-05-20  Bruno Haible  <bruno@clisp.org>
63541
63542         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63543         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63544         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63545         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63546         NEED_PRINTF_INFINITE.
63547         (is_infinitel): New function.
63548         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63549         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63550         gl_PREREQ_VASNPRINTF_INFINITE.
63551         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63553         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63554         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63555         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63556         gl_PREREQ_VASNPRINTF_INFINITE.
63557         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63558         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63564         * doc/functions/fprintf.texi: Update.
63565         * doc/functions/printf.texi: Update.
63566         * doc/functions/snprintf.texi: Update.
63567         * doc/functions/sprintf.texi: Update.
63568         * doc/functions/vfprintf.texi: Update.
63569         * doc/functions/vprintf.texi: Update.
63570         * doc/functions/vsnprintf.texi: Update.
63571         * doc/functions/vsprintf.texi: Update.
63572
63573 2007-05-20  Bruno Haible  <bruno@clisp.org>
63574
63575         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63576         was not found in libc.
63577         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63578
63579 2007-05-20  Bruno Haible  <bruno@clisp.org>
63580
63581         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63582         printed as "-nan" instead of "nan".
63583         * tests/test-vasprintf-posix.c (test_function): Likewise.
63584         * tests/test-snprintf-posix.h (test_function): Likewise.
63585         * tests/test-sprintf-posix.h (test_function): Likewise.
63586         Needed for HP-UX 11.
63587
63588 2007-05-20  Jim Meyering  <jim@meyering.net>
63589
63590         Fix buggy test for the fchownat-deref bug.
63591         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63592         symlink required for the run-test.  Without it, this test would
63593         always declare that fchownat doesn't work, and client code would
63594         unnecessarily use the replacement function with fixed libc.
63595         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63596         Reported by Greg Schafer.
63597
63598 2007-05-19  Bruno Haible  <bruno@clisp.org>
63599
63600         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
63601         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
63602         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
63603         Needed for IRIX 6.5 and Solaris 2.5.1.
63604
63605 2007-05-19  Bruno Haible  <bruno@clisp.org>
63606
63607         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
63608         (test_function): Skip tests involving -0.0 on platforms where
63609         -0.0 = 0.0.
63610         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
63611         (test_function): Skip tests involving -0.0 on platforms where
63612         -0.0 = 0.0.
63613         * tests/test-snprintf-posix.h (have_minus_zero): New function.
63614         (test_function): Skip tests involving -0.0 on platforms where
63615         -0.0 = 0.0.
63616         * tests/test-sprintf-posix.h (have_minus_zero): New function.
63617         (test_function): Skip tests involving -0.0 on platforms where
63618         -0.0 = 0.0.
63619         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
63620         tests.
63621         * tests/test-printf-posix.h (test_function): Likewise.
63622         * tests/test-printf-posix.output: Remove all -0.0 related results.
63623         Needed for IRIX 6.5.
63624
63625 2007-05-19  Bruno Haible  <bruno@clisp.org>
63626
63627         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63628         printed as "nan0x7fffffff" instead of "nan".
63629         * tests/test-vasprintf-posix.c (test_function): Likewise.
63630         * tests/test-snprintf-posix.h (test_function): Likewise.
63631         * tests/test-sprintf-posix.h (test_function): Likewise.
63632         * tests/test-fprintf-posix.h (NaN): Remove macro.
63633         (test_function): Remove all NaN related tests.
63634         * tests/test-printf-posix.h (NaN): Remove macro.
63635         (test_function): Remove all NaN related tests.
63636         * tests/test-printf-posix.output: Remove all NaN related results.
63637         Needed for IRIX 6.5.
63638
63639 2007-05-19  Bruno Haible  <bruno@clisp.org>
63640
63641         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
63642         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63643
63644 2007-05-19  Bruno Haible  <bruno@clisp.org>
63645
63646         * lib/float_.h: New file.
63647         * m4/float_h.m4: New file.
63648         * modules/float: New file.
63649         * modules/isnanl (Dependencies): Add float.
63650         * modules/isnanl-nolibm (Dependencies): Likewise.
63651         * modules/mathl (Dependencies): Likewise.
63652         * modules/printf-frexpl (Dependencies): Likewise.
63653         * modules/signbit (Dependencies): Likewise.
63654         * modules/vasnprintf (Dependencies): Likewise.
63655         * doc/headers/float.texi: Update.
63656
63657 2007-05-19  Jim Meyering  <jim@meyering.net>
63658
63659         * lib/utimens.c (gl_futimens): Rename from futimens,
63660         now that glibc-2.6 declares futimens.
63661         * lib/utimens.h: Likewise.
63662
63663 2007-05-19  Bruno Haible  <bruno@clisp.org>
63664
63665         Avoid test failures on mingw.
63666         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
63667         * tests/test-printf-posix.sh: Likewise.
63668         * tests/test-vfprintf-posix.sh: Likewise.
63669         * tests/test-vprintf-posix.sh: Likewise.
63670
63671 2007-05-19  Bruno Haible  <bruno@clisp.org>
63672
63673         Fix *printf result for NaN, Inf, -0.0 on mingw.
63674         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
63675         * lib/vasnprintf.c: Include math.h and isnan.h.
63676         (is_infinite_or_zero): New function.
63677         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
63678         values in the %f, %F, %e, %E, %g, %G directives.
63679         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
63680         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63681         gl_PRINTF_INFINITE and test its result. Invoke
63682         gl_PREREQ_VASNPRINTF_INFINITE.
63683         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63684         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63685         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63686         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63687         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63688         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63689         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63690         * doc/functions/fprintf.texi: Update.
63691         * doc/functions/printf.texi: Update.
63692         * doc/functions/snprintf.texi: Update.
63693         * doc/functions/sprintf.texi: Update.
63694         * doc/functions/vfprintf.texi: Update.
63695         * doc/functions/vprintf.texi: Update.
63696         * doc/functions/vsnprintf.texi: Update.
63697         * doc/functions/vsprintf.texi: Update.
63698
63699 2007-05-19  Bruno Haible  <bruno@clisp.org>
63700
63701         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
63702         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
63703         Instead of multiplying with 10^k, set extra_zeroes to k.
63704         (scale10_round_long_double): Remove function.
63705
63706 2007-05-18  Bruno Haible  <bruno@clisp.org>
63707
63708         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
63709         introduced on 2007-05-06.
63710
63711 2007-05-18  Bruno Haible  <bruno@clisp.org>
63712
63713         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
63714         %g directives.
63715         * tests/test-vasprintf-posix.c (test_function): Likewise.
63716         * tests/test-snprintf-posix.h (test_function): Likewise.
63717         * tests/test-sprintf-posix.h (test_function): Likewise.
63718
63719 2007-05-18  Bruno Haible  <bruno@clisp.org>
63720
63721         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
63722         (strmatch): New function.
63723         (test_function): Test the %f directive on numbers of various exponents.
63724         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
63725         (strmatch): New function.
63726         (test_function): Test the %f directive on numbers of various exponents.
63727         * tests/test-snprintf-posix.h (strmatch): New function.
63728         (test_function): Test the %f directive on numbers of various exponents.
63729         * tests/test-sprintf-posix.h (strmatch): New function.
63730         (test_function): Test the %f directive on numbers of various exponents.
63731         * tests/test-snprintf-posix.c (SIZEOF): New macro.
63732         * tests/test-sprintf-posix.c (SIZEOF): New macro.
63733         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
63734         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
63735
63736 2007-05-18  Bruno Haible  <bruno@clisp.org>
63737
63738         Add support for 'long double' number output.
63739         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63740         * lib/vasnprintf.c: Include math.h and float+.h.
63741         (mp_limb_t): New type.
63742         (GMP_LIMB_BITS): New macro.
63743         (mp_twolimb_t): New type.
63744         (GMP_TWOLIMB_BITS): New macro.
63745         (mpn_t): New type.
63746         (multiply, divide, convert_to_decimal, decode_long_double,
63747         scale10_round_long_double, scale10_round_decimal_long_double,
63748         floorlog10l): New functions.
63749         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
63750         for the %f, %F, %e, %E, %g, %G directives.
63751         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
63752         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63753         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
63754         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
63755         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63756         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63757         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63758         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63759         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63760         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63761         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63762         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
63763         * modules/snprintf-posix (Depends-on): Likewise.
63764         * modules/sprintf-posix (Depends-on): Likewise.
63765         * modules/vasnprintf-posix (Depends-on): Likewise.
63766         * modules/vasprintf-posix (Depends-on): Likewise.
63767         * modules/vfprintf-posix (Depends-on): Likewise.
63768         * modules/vsnprintf-posix (Depends-on): Likewise.
63769         * modules/vsprintf-posix (Depends-on): Likewise.
63770         * modules/vasnprintf (Files): Add lib/float+.h.
63771         * doc/functions/fprintf.texi: Update.
63772         * doc/functions/printf.texi: Update.
63773         * doc/functions/snprintf.texi: Update.
63774         * doc/functions/sprintf.texi: Update.
63775         * doc/functions/vfprintf.texi: Update.
63776         * doc/functions/vprintf.texi: Update.
63777         * doc/functions/vsnprintf.texi: Update.
63778         * doc/functions/vsprintf.texi: Update.
63779
63780 2007-05-18  Bruno Haible  <bruno@clisp.org>
63781
63782         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
63783
63784 2007-05-18  Bruno Haible  <bruno@clisp.org>
63785
63786         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
63787         for printing 64-bit integers. Needed for mingw.
63788
63789 2007-05-18  Bruno Haible  <bruno@clisp.org>
63790
63791         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63792         gl_FUNC_FREXPL_WORKS.
63793         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
63794
63795 2007-05-18  Bruno Haible  <bruno@clisp.org>
63796
63797         * modules/frexpl-nolibm-tests: New file.
63798
63799         * modules/frexpl-nolibm: New file.
63800         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
63801
63802 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63803
63804         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
63805         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63806         GCC 4.2, which otherwise issues a lot of warnings.
63807         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
63808         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
63809         Likewise.
63810         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
63811         * modules/iconv_open (iconv.h): Likewise.
63812         * modules/locale (locale.h): Likewise.
63813         * modules/netinet_in (netinet/in.h): Likewise.
63814         * modules/sys_select (sys_select.h): Likewise.
63815         * modules/sys_socket (sys/socket.h): Likewise.
63816         * modules/sys_stat (sys/stat.h): Likewise.
63817         * modules/sysexits (sysexits.h): Likewise.
63818         * modules/unistd (unistd.h): Likewise.
63819
63820 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63821
63822         * modules/closein-tests (Makefile.am): Distribute
63823         `test-closein.sh'.
63824
63825 2007-05-17  Bruno Haible  <bruno@clisp.org>
63826
63827         * tests/test-printf-posix.output: Renamed from
63828         tests/test-fprintf-posix.out.
63829         * modules/fprintf-posix-tests: Update.
63830         * modules/printf-posix-tests: Update.
63831         * modules/vfprintf-posix-tests: Update.
63832         * modules/vprintf-posix-tests: Update.
63833         * tests/test-fprintf-posix.sh: Update.
63834         * tests/test-printf-posix.sh: Update.
63835         * tests/test-vfprintf-posix.sh: Update.
63836         * tests/test-vprintf-posix.sh: Update.
63837         Reported by Ralf Wildenhues.
63838
63839 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63840
63841         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
63842         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63843         GCC 4.2, which otherwise issues a lot of warnings.
63844         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
63845         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
63846         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
63847         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
63848         it should no longer be needed.
63849         * lib/string_.h: Likewise.
63850         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
63851         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
63852         * modules/inttypes (inttypes.h): Likewise.
63853         * modules/math (math.h): Likewise.
63854         * modules/search (search.h): Likewise.
63855         * modules/signal (signal.h): Likewise.
63856         * modules/stdint (stdint.h): Likewise.
63857         * modules/stdio (stdio.h): Likewise.
63858         * modules/stdlib (stdlib.h): Likewise.
63859         * modules/string (string.h): Likewise.
63860         * modules/sys_time (sys/time.h): Likewise.
63861         * modules/time (time.h): Likewise.
63862         * modules/wchar (wchar.h): Likewise.
63863         * modules/wctype (wtype.h): Likewise.
63864
63865 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63866
63867         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
63868
63869 2007-05-13  Bruno Haible  <bruno@clisp.org>
63870
63871         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
63872         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63873         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
63874         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63875         (gl_PREREQ_STRTOK_R): Don't require it here.
63876
63877 2007-05-13  Bruno Haible  <bruno@clisp.org>
63878
63879         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
63880         when used in C++ mode.
63881
63882 2007-05-12  Bruno Haible  <bruno@clisp.org>
63883
63884         * lib/linebuffer.h: Tweak doc.
63885         * lib/linebuffer.c: Likewise.
63886
63887 2007-05-12  James Youngman  <jay@gnu.org>
63888
63889         * lib/linebuffer.c (readlinebuffer_delim): New function,
63890         like readlinebuffer, but use a caller-specified delimiter.
63891         (readlinebuffer): Just call readlinebuffer_delim with '\n'
63892         as the delimiter.
63893         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
63894
63895 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63896
63897         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
63898         * modules/openat (Files): Remove openat-die.c.
63899         (Depends-on): Add openat-die.
63900         * modules/openat-die: New module.
63901
63902 2007-05-06  Bruno Haible  <bruno@clisp.org>
63903
63904         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
63905         Update with info about Cygwin.
63906         * doc/functions/fprintf.texi: Update.
63907         * doc/functions/printf.texi: Update.
63908         * doc/functions/snprintf.texi: Update.
63909         * doc/functions/sprintf.texi: Update.
63910         * doc/functions/vfprintf.texi: Update.
63911         * doc/functions/vprintf.texi: Update.
63912         * doc/functions/vsnprintf.texi: Update.
63913         * doc/functions/vsprintf.texi: Update.
63914         Reported by Eric Blake.
63915
63916 2007-05-06  Bruno Haible  <bruno@clisp.org>
63917
63918         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
63919         padding ourselves for the floating-point directives.
63920         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
63921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
63922         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63923         gl_PRINTF_FLAG_ZERO and test its result. Invoke
63924         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
63925         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63926         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63927         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63928         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63929         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63932         * tests/test-snprintf-posix.h (test_function): Also check the width
63933         and some flags in the %f directive.
63934         * tests/test-sprintf-posix.h (test_function): Likewise.
63935         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63936         * tests/test-vasprintf-posix.c (test_function): Likewise.
63937         * doc/functions/fprintf.texi: Update.
63938         * doc/functions/printf.texi: Update.
63939         * doc/functions/snprintf.texi: Update.
63940         * doc/functions/sprintf.texi: Update.
63941         * doc/functions/vfprintf.texi: Update.
63942         * doc/functions/vprintf.texi: Update.
63943         * doc/functions/vsnprintf.texi: Update.
63944         * doc/functions/vsprintf.texi: Update.
63945
63946 2007-05-06  Bruno Haible  <bruno@clisp.org>
63947
63948         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63949         pass the ' flag character to sprintf or snprintf.
63950         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63953         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63954         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63955         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63957         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63958         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63959         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63960         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63961         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63962         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63963         flag.
63964         * tests/test-sprintf-posix.h (test_function): Likewise.
63965         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63966         * tests/test-vasprintf-posix.c (test_function): Likewise.
63967         * doc/functions/fprintf.texi: Update.
63968         * doc/functions/printf.texi: Update.
63969         * doc/functions/snprintf.texi: Update.
63970         * doc/functions/sprintf.texi: Update.
63971         * doc/functions/vfprintf.texi: Update.
63972         * doc/functions/vprintf.texi: Update.
63973         * doc/functions/vsnprintf.texi: Update.
63974         * doc/functions/vsprintf.texi: Update.
63975
63976 2007-05-01  Bruno Haible  <bruno@clisp.org>
63977
63978         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63979
63980 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63981
63982         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63983         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63984
63985 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63986
63987         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63988         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63989         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63990
63991 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63992
63993         * lib/argp-help.c (struct hol_entry): New member `ord'.
63994         (HOL_ENTRY_PTRCMP): Use ord for comparison
63995         (hol_sort): Initialize ord.
63996
63997 2007-05-01  Bruno Haible  <bruno@clisp.org>
63998
63999         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64000         Reported by Eric Blake.
64001         * doc/gnulib.texi (Function Substitutes): Update.
64002
64003 2007-05-01  Bruno Haible  <bruno@clisp.org>
64004
64005         * doc/functions.texi: Remove file, now redundant through
64006         doc/functions/*.texi.
64007
64008 2007-05-01  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/argp (Depends-on): Add sleep.
64011
64012 2007-05-01  Bruno Haible  <bruno@clisp.org>
64013
64014         * modules/sleep-tests: New file.
64015         * tests/test-sleep.c: New file.
64016
64017         * modules/sleep: New file.
64018         * lib/sleep.c: New file.
64019         * m4/sleep.m4: New file.
64020         * lib/unistd_.h (sleep): New declaration.
64021         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64022         HAVE_SLEEP.
64023         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64024         * doc/functions/sleep.texi: Document the sleep module.
64025
64026 2007-05-01  Bruno Haible  <bruno@clisp.org>
64027
64028         * lib/sigprocmask.h: Remove file.
64029         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64030         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64031         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64032         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64033         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64034         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64035         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64036         HAVE_SIGSET_T as a shell variable.
64037         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64038         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64039         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64040         (Depends-on): Add signal. Remove verify.
64041         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64042         (Include): Mention <signal.h> instead of sigprocmask.h.
64043         * NEWS: Mention the change.
64044         * lib/fatal-signal.c: Don't include sigprocmask.h.
64045
64046 2007-05-01  Bruno Haible  <bruno@clisp.org>
64047
64048         * modules/signal: New file.
64049         * lib/signal_.h: New file.
64050         * m4/signal_h.m4: New file.
64051
64052 2007-05-01  Bruno Haible  <bruno@clisp.org>
64053
64054         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64055         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64056         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64057         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64058
64059 2007-05-01  Bruno Haible  <bruno@clisp.org>
64060
64061         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64062         configure time.
64063         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64064         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64065         * modules/sys_stat (Makefile.am): Substitute their values into
64066         sys/stat.h.
64067
64068 2007-05-01  Bruno Haible  <bruno@clisp.org>
64069
64070         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64071         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64072         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64073
64074 2007-05-01  Bruno Haible  <bruno@clisp.org>
64075
64076         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64077         'assert' module here.
64078
64079 2007-05-01  Bruno Haible  <bruno@clisp.org>
64080
64081         * doc/functions/*.texi: New files.
64082         * doc/functions/google-ranking.txt: New file.
64083         * doc/gnulib.texi (Function Substitutes): New chapter.
64084         (ctime, inet_ntoa): Remove sections.
64085         * doc/ctime.texi: Remove file.
64086         * doc/inet_ntoa.texi: Remove file.
64087         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64088         dependencies.
64089         (%.info): New rule, specifying a --reference-limit.
64090
64091 2007-05-01  Bruno Haible  <bruno@clisp.org>
64092
64093         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64094
64095 2007-05-01  Bruno Haible  <bruno@clisp.org>
64096
64097         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64098         the portability of 'mkdir' to mingw systems.
64099
64100 2007-05-01  Bruno Haible  <bruno@clisp.org>
64101
64102         * doc/headers/google-ranking.txt: New file.
64103
64104 2007-04-30  Eric Blake  <ebb9@byu.net>
64105
64106         Prefer fseeko to fseek.
64107         * modules/getpass (Depends-on): Add fseeko.
64108         * lib/getpass.c (getpass): Use fseeko, not fseek.
64109
64110 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64111
64112         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64113         assumes the sorting is stable, while most qsort implementations
64114         are not.  Use argument addresses to ensure they never compare as
64115         equal.
64116
64117         * tests/test-argp-2.sh (usage-indent test): Fix output
64118         (func_compare): Restore diff options
64119         * tests/test-argp.c: Restore #include "progname.h"
64120
64121 2007-04-29  Bruno Haible  <bruno@clisp.org>
64122
64123         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64124         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64125         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64126         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64127         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64128         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64129         (TESTS, check_PROGRAMS): Add test-snprintf.
64130         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64131         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64132         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64133         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64134         assertions that fail on HP-UX, OSF/1, or IRIX.
64135         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64136
64137 2007-04-29  Bruno Haible  <bruno@clisp.org>
64138
64139         * MODULES.html.sh (posix_functions): Remove 'contents'.
64140
64141 2007-04-29  Karl Berry  <karl@gnu.org>
64142
64143         * config/srclist.txt (gendocs_template_min): new entry.
64144
64145 2007-04-29  Bruno Haible  <bruno@clisp.org>
64146
64147         Work around fpurge bug on BSD systems.
64148         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64149         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64150         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64151         fpurge to rpl_fpurge if the system already has this function.
64152         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64153         the case where the system already has this function. Correct invariants
64154         on BSD systems.
64155         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64156         BSD systems.
64157
64158 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64159
64160         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64161         proposed by Sven Verdoolaege.
64162
64163         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64164         options.
64165         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64166         (usage and help tests): Update
64167
64168 2007-04-29  Bruno Haible  <bruno@clisp.org>
64169
64170         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64171         Print more information in case of failure. Disable a test on BeOS.
64172
64173 2007-04-29  Bruno Haible  <bruno@clisp.org>
64174
64175         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64176         This helps debugging on systems on which no gdb is available.
64177
64178 2007-04-29  Bruno Haible  <bruno@clisp.org>
64179
64180         * lib/freading.h: Improve comments.
64181         * lib/fwriting.h: Likewise.
64182         * tests/test-freading.c (main): Don't check freading immediately after
64183         repositioning. Needed for glibc.
64184
64185 2007-04-29  Bruno Haible  <bruno@clisp.org>
64186
64187         * lib/freading.c (freading): Trivial simplification.
64188
64189 2007-04-28  Bruno Haible  <bruno@clisp.org>
64190
64191         * tests/test-fwriting.c (main): Also test the interaction between
64192         fflush and fwriting.
64193         * modules/fwriting-tests (Depends-on): Add fflush.
64194
64195         * tests/test-freading.c (main): Also test the interaction between
64196         fflush and freading.
64197         * modules/freading-tests (Depends-on): Add fflush.
64198
64199 2007-04-28  Bruno Haible  <bruno@clisp.org>
64200
64201         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64202         fseeko and ftello.
64203         Suggested by Eric Blake.
64204
64205 2007-04-28  Jim Meyering  <jim@meyering.net>
64206
64207         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64208         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64209         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64210
64211 2007-04-27  Eric Blake  <ebb9@byu.net>
64212
64213         * doc/headers/assert.texi (assert.h): Document assert module use.
64214
64215 2007-04-27  Bruno Haible  <bruno@clisp.org>
64216
64217         * doc/headers/*.texi: New files.
64218         * doc/gnulib.texi (Header File Substitutes): New chapter.
64219         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64220         dependencies.
64221         (standards.info ,standards.html, standards.dvi): Update dependencies.
64222         (mostlyclean, clean): New targets.
64223
64224 2007-04-27  Bruno Haible  <bruno@clisp.org>
64225
64226         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64227         * modules/sysexits (Files, Makefile.am): Update.
64228
64229         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64230         * modules/sys_socket (Files, Makefile.am): Update.
64231
64232         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64233         * modules/sys_stat (Files, Makefile.am): Update.
64234
64235 2007-04-27  Eric Blake  <ebb9@byu.net>
64236
64237         * lib/freading.h: Improve comments.
64238         * lib/fwriting.h: Likewise.
64239         * lib/fflush.c: Likewise.
64240
64241         Fix closein for mingw.
64242         * modules/closein-tests: Add tests for closein.
64243         * tests/test-closein.c: New file.
64244         * tests/test-closein.sh: Likewise.
64245         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64246         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64247
64248 2007-04-27  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64251         version is < 6.
64252         * lib/math_.h [__DECC]: Likewise.
64253         * lib/stdio_.h [__DECC]: Likewise.
64254         * lib/stdlib_.h [__DECC]: Likewise.
64255         * lib/string_.h [__DECC]: Likewise.
64256         * lib/time_.h [__DECC]: Likewise.
64257         * lib/wchar_.h [__DECC]: Likewise.
64258         * lib/wctype_.h [__DECC]: Likewise.
64259
64260 2007-04-27  Bruno Haible  <bruno@clisp.org>
64261
64262         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64263
64264 2007-04-27  Bruno Haible  <bruno@clisp.org>
64265
64266         * lib/fflush.c: Add comments.
64267         * modules/fpurge-tests (Depends-on): Add fflush.
64268         * modules/freadable-tests (Depends-on): Likewise.
64269         * modules/fwritable-tests (Depends-on): Likewise.
64270
64271 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64272
64273         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64274         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64275         Report by Bruno Haible <bruno@clisp.org>.
64276
64277 2007-04-26  Eric Blake  <ebb9@byu.net>
64278
64279         Fix fflush on mingw.
64280         * modules/fflush (Depends-on): Add freading.
64281         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64282         but unread data.
64283
64284 2007-04-26  Eric Blake  <ebb9@byu.net>
64285         and Bruno Haible  <bruno@clisp.org>
64286
64287         Implement freading and fwriting.
64288         * lib/freading.c: New file.
64289         * lib/freading.h: Likewise.
64290         * m4/freading.m4: Likewise.
64291         * modules/freading: Likewise.
64292         * modules/freading-tests: Likewise.
64293         * tests/test-freading.c: Likewise.
64294         * lib/fwriting.c: New file.
64295         * lib/fwriting.h: Likewise.
64296         * m4/fwriting.m4: Likewise.
64297         * modules/fwriting: Likewise.
64298         * modules/fwriting-tests: Likewise.
64299         * tests/test-fwriting.c: Likewise.
64300         * MODULES.html.sh (File stream based Input/Output): Mention them.
64301
64302 2007-04-26  Bruno Haible  <bruno@clisp.org>
64303
64304         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64305         'long' when we assume it.
64306         Suggested by Eric Blake.
64307
64308 2007-04-26  Bruno Haible  <bruno@clisp.org>
64309
64310         Ensure fseeko, ftello are declared on glibc systems.
64311         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64312         * modules/fseeko (configure.ac-early): Likewise.
64313         * modules/ftello (configure.ac-early): Likewise.
64314         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64315         AC_FUNC_FSEEKO for this.
64316         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64317         (gl_CHECK_FSEEKO): Remove macro.
64318
64319 2007-04-26  Bruno Haible  <bruno@clisp.org>
64320
64321         * tests/test-fflush.c (main): Also check the ftell result after
64322         fflush and fseek/fseeko.
64323         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64324         file descriptor position cache in the stream.
64325         * lib/fseeko.c (rpl_fseeko): Likewise.
64326
64327 2007-04-26  Bruno Haible  <bruno@clisp.org>
64328
64329         * modules/fflush-tests (Depends-on): Add fseeko.
64330
64331 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64332             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64333
64334         * lib/argz_.h: ensure error_t definition is obtained in same
64335         mechanism system argz.h would have.
64336         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64337         argz facilities are known bad.  Err on the side of caution if
64338         cross-compiling.
64339
64340 2007-04-25  Eric Blake  <ebb9@byu.net>
64341
64342         * lib/fpurge.c (includes): Use stdlib.h for free.
64343         * tests/test-fflush.c (main): Also test fflush-fseeko.
64344
64345 2007-04-25  Bruno Haible  <bruno@clisp.org>
64346
64347         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64348         * lib/fseeko.c: New file.
64349         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64350         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64351         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64352         gl_FUNC_FSEEKO.
64353         (gl_FUNC_FSEEKO): Invoke it.
64354         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64355         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64356         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64357
64358 2007-04-25  Bruno Haible  <bruno@clisp.org>
64359
64360         * modules/fflush (Depends-on): Add ftello.
64361
64362 2007-04-25  Bruno Haible  <bruno@clisp.org>
64363
64364         * modules/ftello-tests: New file.
64365         * tests/test-ftello.c: New file.
64366
64367         * modules/ftello: New file.
64368         * m4/ftello.m4: New file.
64369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64370         HAVE_FTELLO.
64371         * lib/stdio_.h (ftello): New declaration.
64372         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64373         HAVE_FTELLO.
64374
64375 2007-04-25  Bruno Haible  <bruno@clisp.org>
64376
64377         * modules/fseeko-tests: New file.
64378         * tests/test-fseeko.c: New file.
64379
64380         * modules/fseeko: New file.
64381         * m4/fseeko.m4: New file.
64382         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64383         HAVE_FSEEKO.
64384         * lib/stdio_.h (fseeko): New declaration.
64385         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64386         HAVE_FSEEKO.
64387
64388 2007-04-25  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64391
64392 2007-04-25  Bruno Haible  <bruno@clisp.org>
64393
64394         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64395         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64396         * tests/test-unistd.c: Likewise.
64397         * tests/test-fcntl.c: Likewise.
64398
64399 2007-04-23  Eric Blake  <ebb9@byu.net>
64400
64401         * lib/fflush.c: Fix missing include.
64402         Reported by Bruno Haible.
64403
64404 2007-04-23  Bruno Haible  <bruno@clisp.org>
64405
64406         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64407         Reported by Eric Blake.
64408
64409 2007-04-23  Bruno Haible  <bruno@clisp.org>
64410
64411         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64412
64413 2007-04-23  Bruno Haible  <bruno@clisp.org>
64414
64415         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64416
64417 2007-04-23  Bruno Haible  <bruno@clisp.org>
64418
64419         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64420         Needed on HP-UX 11.
64421
64422 2007-04-16  Eric Blake  <ebb9@byu.net>
64423
64424         Make fflush rely on fpurge.
64425         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64426         open coding all variants.
64427         * modules/fflush (Depends-on): Add fpurge and unistd.
64428         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64429         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64430
64431         Fix --with-tests compilation on cygwin.
64432         * modules/argmatch-tests (Makefile.am): List gnulib library first
64433         in LDADD.
64434         * modules/argp-tests (Makefile.am): Likewise.
64435         * modules/array-list-tests (Makefile.am): Likewise.
64436         * modules/array-oset-tests (Makefile.am): Likewise.
64437         * modules/avltree-list-tests (Makefile.am): Likewise.
64438         * modules/avltree-oset-tests (Makefile.am): Likewise.
64439         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64440         * modules/carray-list-tests (Makefile.am): Likewise.
64441         * modules/dirname-tests (Makefile.am): Likewise.
64442         * modules/frexp-tests (Makefile.am): Likewise.
64443         * modules/isnanl-tests (Makefile.am): Likewise.
64444         * modules/linked-list-tests (Makefile.am): Likewise.
64445         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64446         * modules/lock-tests (Makefile.am): Likewise.
64447         * modules/rbtree-list-tests (Makefile.am): Likewise.
64448         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64449         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64450         * modules/tls-tests (Makefile.am): Likewise.
64451         * modules/tsearch-tests (Makefile.am): Likewise.
64452         * modules/xvasprintf-tests (Makefile.am): Likewise.
64453
64454         Fix fpurge for cygwin.
64455         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64456         value.
64457         * modules/fpurge-tests (Depends-on): Clean up trash.
64458
64459 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64460
64461         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64462
64463         * m4/autobuild.m4: Re-indent.
64464
64465 2007-04-13  Bruno Haible  <bruno@clisp.org>
64466
64467         * modules/fpurge-tests: New file.
64468         * tests/test-fpurge.c: New file.
64469
64470         * modules/fpurge: New file.
64471         * lib/fpurge.h: New file.
64472         * lib/fpurge.c: New file.
64473         * m4/fpurge.m4: New file.
64474
64475 2007-04-13  Bruno Haible  <bruno@clisp.org>
64476
64477         * modules/fbufmode-tests: New file.
64478         * tests/test-fbufmode.c: New file.
64479
64480         * modules/fbufmode: New file.
64481         * lib/fbufmode.h: New file.
64482         * lib/fbufmode.c: New file.
64483         * m4/fbufmode.m4: New file.
64484
64485 2007-04-13  Bruno Haible  <bruno@clisp.org>
64486
64487         * modules/fwritable-tests: New file.
64488         * tests/test-fwritable.c: New file.
64489
64490         * modules/fwritable: New file.
64491         * lib/fwritable.h: New file.
64492         * lib/fwritable.c: New file.
64493         * m4/fwritable.m4: New file.
64494
64495 2007-04-13  Bruno Haible  <bruno@clisp.org>
64496
64497         * modules/freadable-tests: New file.
64498         * tests/test-freadable.c: New file.
64499
64500         * modules/freadable: New file.
64501         * lib/freadable.h: New file.
64502         * lib/freadable.c: New file.
64503         * m4/freadable.m4: New file.
64504
64505 2007-04-13  Bruno Haible  <bruno@clisp.org>
64506
64507         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64508         MOSTLYCLEANFILES.
64509
64510 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64511
64512         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64513         gzip bootstrap.conf to avoid dragging in i18n machinery.
64514         (gnulib_tool_option): Use it.
64515
64516 2007-04-13  Bruno Haible  <bruno@clisp.org>
64517
64518         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64519         %F directives.
64520         * tests/test-vasprintf-posix.c (test_function): Likewise.
64521         * tests/test-snprintf-posix.h (test_function): Likewise.
64522         * tests/test-sprintf-posix.h (test_function): Likewise.
64523         * tests/test-fprintf-posix.h (test_function): Likewise.
64524         * tests/test-printf-posix.h (test_function): Likewise.
64525         * tests/test-fprintf-posix.out: Likewise.
64526
64527 2007-04-13  Bruno Haible  <bruno@clisp.org>
64528
64529         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64530         * modules/tls-tests (configure.ac): Likewise.
64531         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64532
64533 2007-04-13  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/tls.c (glthread_tls_get): Fix return type.
64536         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64537
64538 2007-04-12  Eric Blake  <ebb9@byu.net>
64539
64540         * modules/gettime (Depends-on): Remove gettime.
64541         Reported by Dmitry V. Levin.
64542
64543 2007-04-12  Bruno Haible  <bruno@clisp.org>
64544
64545         * modules/fflush (Include): Mention <stdio.h>.
64546         * modules/strtoimax (Include): Mention <inttypes.h>.
64547         * modules/strtoumax (Include): Likewise.
64548
64549 2007-04-12  Eric Blake  <ebb9@byu.net>
64550
64551         * .cvsignore: New file.
64552         * .gitignore: Likewise.
64553
64554 2007-04-12  Bruno Haible  <bruno@clisp.org>
64555
64556         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64557         not before, since $(LDADD) often contains libgnu.a.
64558         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64559         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64560         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64561         Needed on Cygwin.
64562
64563 2007-04-12  Eric Blake  <ebb9@byu.net>
64564
64565         Work around glibc's failure to flush stdin on fclose.
64566         * lib/closein.c (close_stdin): Flush stdin before closing.
64567
64568         Work around glibc's failure to reset seekable stdin on exit.
64569         * modules/closein: New module.
64570         * lib/closein.c: New file.
64571         * lib/closein.h: Likewise.
64572         * m4/closein.m4: Likewise.
64573         * MODULES.html.sh (File stream based Input/Output): Document it.
64574
64575 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64576
64577         * gnulib-tool: Rename generated 'autobuild' script to
64578         'do-autobuild' in --create-megatestdir output.
64579
64580         * doc/gnulib.texi (Build robot for gnulib): Fix.
64581
64582 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64583
64584         * modules/sysexits (Depends-on): Add absolute-header.
64585
64586 2007-04-12  Eric Blake  <ebb9@byu.net>
64587
64588         No need to preserve errno on success.
64589         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64590         Reported by Bruno Haible.
64591
64592 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64593
64594         * MODULES.html.sh (Support for maintaining and releasing
64595         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64596
64597 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64598
64599         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
64600
64601 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64602
64603         * modules/autobuild: New module.
64604
64605         * m4/autobuild.m4: New file.
64606
64607 2007-04-11  Bruno Haible  <bruno@clisp.org>
64608
64609         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
64610         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
64611         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
64612         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
64613         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64614         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64615         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64616         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64617         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64618         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64619         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
64620         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64621         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64622         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
64623         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64624         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64625         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
64626         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64627         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64628         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
64629         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64630         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
64632         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64633         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64634         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
64635         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64636         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64637         Reported by Eric Blake.
64638
64639 2007-04-11  Bruno Haible  <bruno@clisp.org>
64640
64641         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
64642
64643 2007-04-10  Bruno Haible  <bruno@clisp.org>
64644
64645         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
64646         for NaN and Infinity. Needed on FreeBSD 6.1.
64647         * tests/test-vasnprintf-posix.c (test_function): Undo last change
64648         regarding results for "%010a" of Infinity and NaN.
64649         * tests/test-vasprintf-posix.c (test_function): Likewise.
64650         * tests/test-snprintf-posix.h (test_function): Likewise.
64651         * tests/test-sprintf-posix.h (test_function): Likewise.
64652         * tests/test-fprintf-posix.h (test_function): Likewise.
64653         * tests/test-printf-posix.h (test_function): Likewise.
64654         * tests/test-fprintf-posix.out: Likewise.
64655
64656 2007-04-10  Bruno Haible  <bruno@clisp.org>
64657
64658         * modules/locale-tests: New file.
64659         * tests/test-locale.c: New file.
64660
64661         * modules/locale: New file.
64662         * lib/locale_.h: New file.
64663         * m4/locale_h.m4: New file.
64664
64665 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
64666             Bruno Haible  <bruno@clisp.org>
64667
64668         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
64669         be determined, test for availability of the copysignf, copysign,
64670         copysignl functions.
64671         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
64672         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
64673         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
64674
64675 2007-04-09  Eric Blake  <ebb9@byu.net>
64676
64677         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
64678         * modules/stdio (Makefile.am): Support fflush.
64679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64680         * modules/fflush: New file.
64681         * lib/fflush.c: Likewise.
64682         * m4/fflush.m4: Likewise.
64683         * modules/fflush-tests: New test.
64684         * tests/test-fflush.c: Likewise.
64685         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
64686
64687 2007-04-06  Bruno Haible  <bruno@clisp.org>
64688
64689         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
64690         (VASNPRINTF): Use signbit for faster determination whether to print a
64691         minus sign.
64692         * modules/vasnprintf (Files): Remove lib/float+.h.
64693         * modules/fprintf-posix (Depends-on): Add signbit.
64694         * modules/snprintf-posix (Depends-on): Likewise.
64695         * modules/sprintf-posix (Depends-on): Likewise.
64696         * modules/vasnprintf-posix (Depends-on): Likewise.
64697         * modules/vasprintf-posix (Depends-on): Likewise.
64698         * modules/vfprintf-posix (Depends-on): Likewise.
64699         * modules/vsnprintf-posix (Depends-on): Likewise.
64700         * modules/vsprintf-posix (Depends-on): Likewise.
64701
64702 2007-04-06  Bruno Haible  <bruno@clisp.org>
64703
64704         * tests/test-frexp.c (main): Test also the sign bit of zero results.
64705         * tests/test-frexpl.c (main): Likewise.
64706         * tests/test-ldexpl.c (main): Likewise.
64707         * modules/frexp-tests (Depends-on): Add signbit.
64708         * modules/frexpl-tests (Depdends-on): Likewise.
64709         * modules/ldexpl-tests (Depdends-on): Likewise.
64710
64711 2007-04-06  Bruno Haible  <bruno@clisp.org>
64712
64713         * modules/signbit-tests: New file.
64714         * tests/test-signbit.c: New file.
64715
64716         * modules/signbit: New file.
64717         * lib/signbitf.c: New file.
64718         * lib/signbitd.c: New file.
64719         * lib/signbitl.c: New file.
64720         * m4/signbit.m4: New file.
64721         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
64722         (signbit): New macro.
64723         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
64724         REPLACE_SIGNBIT.
64725         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
64726         REPLACE_FREXPL into math.h.
64727
64728 2007-04-06  Bruno Haible  <bruno@clisp.org>
64729
64730         * modules/isnanf-nolibm-tests: New file.
64731         * tests/test-isnanf.c: New file.
64732
64733         * modules/isnanf-nolibm: New file.
64734         * lib/isnanf.h: New file.
64735         * lib/isnanf.c: New file.
64736         * lib/isnan.c: Consider the USE_FLOAT macro.
64737         * m4/isnanf.m4: New file.
64738
64739 2007-04-06  Bruno Haible  <bruno@clisp.org>
64740
64741         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64742         (Link): New section.
64743
64744         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
64745
64746 2007-04-06  Bruno Haible  <bruno@clisp.org>
64747
64748         Assume the 'long double' type.
64749         * m4/longdouble.m4: Remove file.
64750         * config/srclist.txt: Don't mention longdouble.m4.
64751         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
64752         * lib/float+.h: Likewise.
64753         * lib/frexp.c: Likewise.
64754         * lib/printf-args.h: Likewise.
64755         * lib/printf-args.c: Likewise.
64756         * lib/printf-frexp.c: Likewise.
64757         * lib/printf-parse.c: Likewise.
64758         * lib/vasnprintf.c: Likewise.
64759         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
64760         * m4/intl.m4: Likewise.
64761         * m4/isnanl.m4: Likewise.
64762         * m4/printf.m4: Likewise.
64763         * m4/printf-frexpl.m4: Likewise.
64764         * m4/vasnprintf.m4: Likewise.
64765         * modules/allocsa (Files): Remove m4/longdouble.m4.
64766         * modules/gettext (Files): Likewise.
64767         * modules/relocatable-prog-wrapper (Files): Likewise.
64768         * modules/vasnprintf (Files): Likewise.
64769         * modules/isnanl (Files): Likewise.
64770         (Include): Simplify.
64771         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
64772         (Include): Simplify.
64773         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
64774         (Include): Simplify.
64775         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
64776         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64777         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
64778         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64779         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64780         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64781         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
64782         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64783         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64784         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64785         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
64786         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64787         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
64788         * tests/test-isnanl.c: Likewise.
64789         * tests/test-snprintf-posix.h: Likewise.
64790         * tests/test-sprintf-posix.h: Likewise.
64791         * tests/test-vasnprintf-posix.c: Likewise.
64792         * tests/test-vasnprintf-posix2.c: Likewise.
64793         * tests/test-vasprintf-posix.c: Likewise.
64794
64795 2007-04-06  Bruno Haible  <bruno@clisp.org>
64796
64797         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
64798         * lib/math_.h [__DECC]: Include the overridden include file through
64799         #include_next, outside the double-inclusion guard.
64800         * lib/stdio_.h [__DECC]: Likewise.
64801         * lib/stdlib_.h [__DECC]: Likewise.
64802         * lib/string_.h [__DECC]: Likewise.
64803         * lib/time_.h [__DECC]: Likewise.
64804         * lib/wchar_.h [__DECC]: Likewise.
64805         * lib/wctype_.h [__DECC]: Likewise.
64806         * lib/inttypes_.h [__DECC]: Likewise.
64807         Reported by Albert Chin <china@thewrittenword.com> in
64808         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
64809
64810 2007-04-04  Eric Blake  <ebb9@byu.net>
64811
64812         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
64813         1.5.x.
64814
64815 2007-04-04  Bruno Haible  <bruno@clisp.org>
64816
64817         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
64818         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
64819
64820 2007-04-04  Bruno Haible  <bruno@clisp.org>
64821
64822         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
64823         results for "%010a" of Infinity and NaN.
64824         * tests/test-vasprintf-posix.c (test_function): Likewise.
64825         * tests/test-snprintf-posix.h (test_function): Likewise.
64826         * tests/test-sprintf-posix.h (test_function): Likewise.
64827         * tests/test-fprintf-posix.h (test_function): Remove these tests.
64828         * tests/test-printf-posix.h (test_function): Likewise.
64829         * tests/test-fprintf-posix.out: Update.
64830         Needed for FreeBSD 6.1.
64831
64832 2007-04-04  Bruno Haible  <bruno@clisp.org>
64833
64834         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
64835         directly used by the gnulib modules nor by gnulib-tool.
64836
64837 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64838
64839         * DEPENDENCIES: Give overall description of version dependency
64840         desirability.  Use more-typical names for apps.
64841         Add shell, coreutils, diffutils, grep, tar, gzip.
64842
64843 2007-04-04  Simon Josefsson  <simon@josefsson.org>
64844
64845         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
64846
64847 2007-04-04  Karl Berry  <karl@gnu.org>
64848
64849         * MODULES.html.sh (func_module): missing '.
64850
64851 2007-04-03  Bruno Haible  <bruno@clisp.org>
64852
64853         * modules/argmatch-tests (Makefile.am): New variable
64854         test_argmatch_LDADD.
64855         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
64856         * modules/array-list-tests (Makefile.am): New variable
64857         test_array_list_LDADD.
64858         * modules/array-oset-tests (Makefile.am): New variable
64859         test_array_oset_LDADD.
64860         * modules/avltree-list-tests (Makefile.am): New variable
64861         test_avltree_list_LDADD.
64862         * modules/avltree-oset-tests (Makefile.am): New variable
64863         test_avltree_oset_LDADD.
64864         * modules/avltreehash-list-tests (Makefile.am): New variable
64865         test_avltreehash_list_LDADD.
64866         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
64867         test_canonicalize_lgpl_LDADD.
64868         * modules/carray-list-tests (Makefile.am): New variable
64869         test_carray_list_LDADD.
64870         * modules/dirname-tests (Makefile.am): New variable
64871         test_dirname_LDADD.
64872         * modules/linked-list-tests (Makefile.am): New variable
64873         test_linked_list_LDADD.
64874         * modules/linkedhash-list-tests (Makefile.am): New variable
64875         test_linkedhash_list_LDADD.
64876         * modules/rbtree-list-tests (Makefile.am): New variable
64877         test_rbtree_list_LDADD.
64878         * modules/rbtree-oset-tests (Makefile.am): New variable
64879         test_rbtree_oset_LDADD.
64880         * modules/rbtreehash-list-tests (Makefile.am): New variable
64881         test_rbtreehash_list_LDADD.
64882         * modules/xvasprintf-tests (Makefile.am): New variable
64883         test_xvasprintf_LDADD.
64884         Reported by Eric Blake.
64885
64886 2007-04-03  Eric Blake  <ebb9@byu.net>
64887
64888         * DEPENDENCIES: Weaken m4 requirements.
64889
64890 2007-04-03  Bruno Haible  <bruno@clisp.org>
64891
64892         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
64893         * modules/isnanl-tests (configure.ac): Likewise.
64894
64895 2007-04-03  Ben Pfaff  <blp@gnu.org>
64896
64897         * modules/iconv_open: Add $(srcdir)/ to source directory
64898         references in Makefile fragments that call gperf, to fix VPATH
64899         builds.
64900
64901 2007-04-03  Bruno Haible  <bruno@clisp.org>
64902
64903         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
64904         * lib/ldexpl.c: Undo last change.
64905
64906 2007-04-03  Bruno Haible  <bruno@clisp.org>
64907
64908         * modules/printf-frexpl (Depends-on): Undo last change.
64909         (Files): Add m4/ldexpl.m4.
64910
64911 2007-04-03  Bruno Haible  <bruno@clisp.org>
64912
64913         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
64914         * modules/isnanl (Link): New section.
64915
64916         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
64917         * modules/frexp (Link): New section.
64918
64919         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
64920         * modules/frexpl (Link): New section.
64921
64922         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
64923         * modules/ldexpl (Link): New section.
64924
64925 2007-04-03  Bruno Haible  <bruno@clisp.org>
64926
64927         * modules/TEMPLATE-EXTENDED: New file.
64928         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
64929
64930 2007-04-03  Bruno Haible  <bruno@clisp.org>
64931
64932         * DEPENDENCIES: New file.
64933         Suggested by Simon Josefsson.
64934
64935 2007-04-03  Bruno Haible  <bruno@clisp.org>
64936
64937         * doc/gnulib.texi: Escape @.
64938
64939 2007-04-03  James Youngman  <jay@gnu.org>
64940         and Paul Eggert  <eggert@cs.ucla.edu>
64941
64942         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
64943         birthtime on all systems that have birthtime, not just those which
64944         use st_birthtimensec rather than st_birthtim.  Putting zero in
64945         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
64946         that the birth time is not available for files on an NFS mount.
64947
64948 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64949
64950         * modules/memxor: Move back from crypto/, suggested by Bruno.
64951         * modules/crypto/hmac-sha1: Fix memxor dependency.
64952
64953         * modules/crypto/gc: Moved from ../.
64954
64955 2007-04-02  Eric Blake  <ebb9@byu.net>
64956
64957         * lib/ldexpl.c (includes): Avoid libm.
64958
64959         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64960
64961 2007-04-02  Bruno Haible  <bruno@clisp.org>
64962
64963         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64964         on IRIX.
64965
64966 2007-04-02  Bruno Haible  <bruno@clisp.org>
64967
64968         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64969         x86 or x86_64 platforms running MacOS X.
64970         Reported by Ryan Schmidt <@ryandesign.com>.
64971
64972 2007-04-02  Bruno Haible  <bruno@clisp.org>
64973
64974         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64975         i386.
64976
64977 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64978
64979         * modules/crypto/arcfour: Moved from ../.
64980         * modules/crypto/arcfour-tests: Moved from ../.
64981         * modules/crypto/arctwo: Moved from ../.
64982         * modules/crypto/arctwo-tests: Moved from ../.
64983         * modules/crypto/des: Moved from ../.
64984         * modules/crypto/des-tests: Moved from ../.
64985         * modules/crypto/gc-arcfour: Moved from ../.
64986         * modules/crypto/gc-arcfour-tests: Moved from ../.
64987         * modules/crypto/gc-arctwo: Moved from ../.
64988         * modules/crypto/gc-arctwo-tests: Moved from ../.
64989         * modules/crypto/gc-des: Moved from ../.
64990         * modules/crypto/gc-des-tests: Moved from ../.
64991         * modules/crypto/gc-hmac-md5: Moved from ../.
64992         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64993         * modules/crypto/gc-hmac-sha1: Moved from ../.
64994         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64995         * modules/crypto/gc-md2: Moved from ../.
64996         * modules/crypto/gc-md2-tests: Moved from ../.
64997         * modules/crypto/gc-md4: Moved from ../.
64998         * modules/crypto/gc-md4-tests: Moved from ../.
64999         * modules/crypto/gc-md5: Moved from ../.
65000         * modules/crypto/gc-md5-tests: Moved from ../.
65001         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65002         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65003         * modules/crypto/gc-random: Moved from ../.
65004         * modules/crypto/gc-rijndael: Moved from ../.
65005         * modules/crypto/gc-rijndael-tests: Moved from ../.
65006         * modules/crypto/gc-sha1: Moved from ../.
65007         * modules/crypto/gc-sha1-tests: Moved from ../.
65008         * modules/crypto/gc-tests: Moved from ../.
65009         * modules/crypto/hmac-md5: Moved from ../.
65010         * modules/crypto/hmac-md5-tests: Moved from ../.
65011         * modules/crypto/hmac-sha1: Moved from ../.
65012         * modules/crypto/hmac-sha1-tests: Moved from ../.
65013         * modules/crypto/md2: Moved from ../.
65014         * modules/crypto/md2-tests: Moved from ../.
65015         * modules/crypto/md4: Moved from ../.
65016         * modules/crypto/md4-tests: Moved from ../.
65017         * modules/crypto/md5: Moved from ../.
65018         * modules/crypto/md5-tests: Moved from ../.
65019         * modules/crypto/memxor: Moved from ../.
65020         * modules/crypto/rijndael: Moved from ../.
65021         * modules/crypto/rijndael-tests: Moved from ../.
65022         * modules/crypto/sha1: Moved from ../.
65023
65024 2007-03-30  James Youngman  <jay@gnu.org>
65025
65026         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65027         rename() to change the ctime of a file (because ctime is unaffected
65028         by rename on jfs2 on AIX 5.1).
65029         (main): Start by doing cleanup, in case a previous run failed leaving
65030         test files behind.
65031
65032 2007-03-31  Bruno Haible  <bruno@clisp.org>
65033
65034         Support old proprietary implementations of iconv.
65035         * modules/iconv_open: New file.
65036         * lib/iconv_.h: New file.
65037         * m4/iconv_h.m4: New file.
65038         * lib/iconv_open.c: New file.
65039         * lib/iconv_open-aix.gperf: New file.
65040         * lib/iconv_open-hpux.gperf: New file.
65041         * lib/iconv_open-irix.gperf: New file.
65042         * lib/iconv_open-osf.gperf: New file.
65043         * m4/iconv_open.m4: New file.
65044         * modules/linebreak (Depends-on): Add iconv_open.
65045         * modules/striconv (Depends-on): Likewise.
65046         * modules/striconveh (Depends-on): Likewise.
65047         * modules/unicodeio (Depends-on): Likewise.
65048         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65049         (iconv_t)(-1).
65050         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65051         conversion if cd is (iconv_t)(-1).
65052         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65053         is not possible.
65054
65055 2007-03-31  Bruno Haible  <bruno@clisp.org>
65056
65057         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65058         work on Solaris either. Protect also second use of "autodetect_jp".
65059
65060 2007-03-31  Bruno Haible  <bruno@clisp.org>
65061
65062         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65063         the function is not present.
65064
65065 2007-03-31  Bruno Haible  <bruno@clisp.org>
65066
65067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65068         the function is not present.
65069
65070 2007-03-31  Bruno Haible  <bruno@clisp.org>
65071
65072         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65073         a bug in HP-UX iconv_open().
65074
65075 2007-03-31  Bruno Haible  <bruno@clisp.org>
65076
65077         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65078         (Mathematics <math.h>): New section, add fpieee.
65079         (Input/output <stdio.h>): Add fseterr.
65080         (Mathematics <math.h>): New section, add printf-frexp.
65081         (Container data structures): Add sublist.
65082         (Core language properties): Add fpucw, inline.
65083         (Functions for greatest-width integer types <inttypes.h>): Add
65084         imaxabs, imaxdiv, inttypes.
65085         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65086         isnanl-nolibm, ldexp.
65087         (Mathematics <math.h>): New section, add printf-frexpl.
65088         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65089         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65090         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65091         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65092         (Unicode string functions): Add unistr/u*-mbtoucr.
65093         (Java): Add javacomp-script, javaexec-script.
65094         (C#): Add csharpcomp-script, csharpexec-script.
65095         (Support for building libraries and executables): Add havelib,
65096         relocatable-*.
65097         (Support for maintaining and releasing projects): Renamed from
65098         'Support for maintaining and release projects'. Add announce-gen.
65099
65100 2007-03-31  Bruno Haible  <bruno@clisp.org>
65101
65102         * README: Talk primarily about git.
65103         (git and CVS): Renamed from CVS.
65104         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65105         gnulib is available through git.
65106         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65107
65108 2007-03-30  Bruno Haible  <bruno@clisp.org>
65109
65110         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65111         * lib/poll_.h: Likewise.
65112         * lib/stat_.h: Likewise.
65113         * lib/sys_time_.h: Likewise.
65114         * lib/sysexit_.h: Likewise.
65115         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65116         * lib/stdbool_.h: Likewise.
65117         * lib/byteswap_.h: Add double-inclusion guard.
65118
65119 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65120
65121         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65122
65123 2007-03-30  Karl Berry  <karl@gnu.org>
65124
65125         * config/srclist-update: double space after USA in the license
65126         substitution, since that's how it's usually (?) written.
65127
65128 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65129
65130         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65131         reported by Bruno Haible.
65132
65133 2007-03-29  Bruno Haible  <bruno@clisp.org>
65134
65135         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65136         a bug in AIX iconv().
65137
65138 2007-03-29  Bruno Haible  <bruno@clisp.org>
65139
65140         * modules/ldexpl-tests: New file.
65141         * tests/test-ldexpl.c: New file.
65142
65143 2007-03-29  Bruno Haible  <bruno@clisp.org>
65144
65145         * lib/ldexpl.c: Include fpucw.h.
65146         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65147         multiplication.
65148         * modules/ldexpl (Depends-on): Add fpucw.
65149
65150 2007-03-29  Bruno Haible  <bruno@clisp.org>
65151
65152         * modules/ldexpl: New file.
65153         * m4/ldexpl.m4: New file.
65154         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65155         set.
65156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65157         REPLACE_LDEXPL.
65158         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65159         REPLACE_LDEXPL.
65160         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65161         gl_FUNC_LDEXPL_WORKS.
65162         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65163         * modules/mathl (Files): Remove lib/ldexpl.c.
65164         (Depends-on): Add ldexpl.
65165
65166 2007-03-29  Bruno Haible  <bruno@clisp.org>
65167
65168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65169
65170 2007-03-29  Bruno Haible  <bruno@clisp.org>
65171
65172         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65173         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65174         and possibly also HP-UX.
65175         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65176         work on AIX, IRIX, HP-UX, OSF/1.
65177         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65178         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65179         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65180         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65181         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65182         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65183
65184 2007-03-29  Bruno Haible  <bruno@clisp.org>
65185
65186         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65187
65188 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65189
65190         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65191         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65192
65193 2007-03-29  Eric Blake  <ebb9@byu.net>
65194
65195         * lib/acl-internal.h: Remove redundant include.
65196         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65197         Cygwin when a file is locked.
65198
65199 2007-03-29  Bruno Haible  <bruno@clisp.org>
65200
65201         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65202         file.
65203         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65204
65205 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65206
65207         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65208         try to remove a parent directory if the child couldn't be removed
65209         (except for the first rmdir, which could fail because the child
65210         doesn't exist).  Problem reported by Jeff Blaine in
65211         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65212
65213 2007-03-28  Bruno Haible  <bruno@clisp.org>
65214
65215         * lib/striconveh.c (utf8conv_carefully): New function.
65216         (mem_cd_iconveh_internal): Invoke it.
65217
65218 2007-03-28  Bruno Haible  <bruno@clisp.org>
65219
65220         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65221         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65222         input.
65223         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65224         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65225         unistr/u8-uctomb.
65226
65227 2007-03-28  Bruno Haible  <bruno@clisp.org>
65228
65229         * modules/unistr/u8-mbtoucr: New file.
65230         * lib/unistr/u8-mbtoucr.c: New file.
65231         * modules/unistr/u16-mbtoucr: New file.
65232         * lib/unistr/u16-mbtoucr.c: New file.
65233         * modules/unistr/u16-mbtoucr: New file.
65234         * lib/unistr/u16-mbtoucr.c: New file.
65235         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65236
65237 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65238             Bruno Haible  <bruno@clisp.org>
65239
65240         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65241         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65242         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65243
65244         * m4/stdio_h.m4: Add stubs for vasprintf too.
65245
65246         * modules/stdio: Support vasprintf in sed command.
65247
65248         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65249         vasprintf.h.  Add stdio module indicator.
65250
65251         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65252         vasprintf.h.
65253
65254         * lib/vasprintf.h: File removed.
65255
65256         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65257         * lib/vasprintf.c: Ditto.
65258         * lib/xvasprintf.c: Ditto.
65259         * tests/test-vasprintf-posix.c: Ditto.
65260         * tests/test-vasprintf.c: Ditto.
65261
65262 2007-03-27  Bruno Haible  <bruno@clisp.org>
65263
65264         Make vasnprintf multithread-safe.
65265         * lib/vasnprintf.c (decimal_point_char): New function.
65266         (VASNPRINTF): Use it.
65267         Suggested by Simon Josefsson.
65268
65269 2007-03-27  Eric Blake  <ebb9@byu.net>
65270
65271         Support sub-second birthtime on cygwin.
65272         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65273         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65274         (get_stat_birthtime): Also work with st_birthtim.
65275
65276 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65279         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65280         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65281         (get_stat_birthtime_ns): Simplify compile-time tests.
65282         (get_stat_birthtime): Change the API to look like
65283         get_stat_mtime etc., except return a negative tv_nsec on error.
65284         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65285         Don't check for "spare" fields.
65286         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65287         or for struct stat.st_birthtime, as these tests aren't used.
65288         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65289
65290 2007-03-27  Bruno Haible  <bruno@clisp.org>
65291
65292         * lib/stat-time.h: Include <sys/stat.h>.
65293
65294 2007-03-27  James Youngman  <jay@gnu.org>
65295
65296         * lib/stat-time.h (get_stat_birthtime): New function for
65297           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65298         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65299           and its variants.
65300         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65301         * modules/stat-time-test: New file.
65302         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65303
65304 2007-03-26  Bruno Haible  <bruno@clisp.org>
65305
65306         Better support of signalling NaNs.
65307         * lib/atanl.c: Include isnanl.h.
65308         (atanl): Perform test for NaN at the beginning of the function and
65309         through a call to isnanl.
65310         * lib/cosl.c: Include isnanl.h.
65311         (cosl): Perform test for NaN at the beginning of the function and
65312         through a call to isnanl.
65313         * lib/ldexpl.c: Include isnanl.h.
65314         (ldexpl): Perform test for NaN through a call to isnanl.
65315         * lib/logl.c: Include isnanl.h.
65316         (logl): Perform test for NaN at the beginning of the function and
65317         through a call to isnanl.
65318         * lib/sinl.c: Include isnanl.h.
65319         (sinl): Perform test for NaN at the beginning of the function and
65320         through a call to isnanl.
65321         * lib/sqrtl.c: Include isnanl.h.
65322         (sqrtl): Perform test for NaN at the beginning of the function and
65323         through a call to isnanl.
65324         * lib/tanl.c: Include isnanl.h.
65325         (tanl): Perform test for NaN at the beginning of the function and
65326         through a call to isnanl.
65327         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65328         * modules/mathl (Depends-on): Add isnanl.
65329
65330 2007-03-26  Eric Blake  <ebb9@byu.net>
65331
65332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65333         regression in logic sense of previous patch.
65334
65335 2007-03-26  Bruno Haible  <bruno@clisp.org>
65336
65337         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65338         unportable shell command "if ! ...".
65339         Reported by Ralf Wildenhues.
65340
65341 2007-03-25  Bruno Haible  <bruno@clisp.org>
65342
65343         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65344         <sysexits.h> file, and only add EX_CONFIG.
65345         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65346         absolute file name and whether it is sufficient. Substitute also
65347         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65348         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65349         ABSOLUTE_SYSEXITS_H into sysexits.h.
65350
65351 2007-03-25  Bruno Haible  <bruno@clisp.org>
65352
65353         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65354         hints is NULL.
65355
65356 2007-03-25  Bruno Haible  <bruno@clisp.org>
65357
65358         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65359         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65360
65361 2007-03-25  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/vasnprintf.c: Include langinfo.h.
65364         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65365         multithread-safe.
65366         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65374         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65375         Reported by Simon Josefsson.
65376
65377 2007-03-25  Bruno Haible  <bruno@clisp.org>
65378
65379         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65380         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65381         * modules/vasnprintf (Depends-on): Add stdint.
65382
65383 2007-03-25  Bruno Haible  <bruno@clisp.org>
65384
65385         * modules/fpieee: New file.
65386         * m4/fpieee.m4: New file.
65387         * modules/isnan-nolibm (Depends-on): Add fpieee.
65388         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65389         * modules/isnanl (Depends-on): Add fpieee.
65390
65391 2007-03-25  Bruno Haible  <bruno@clisp.org>
65392
65393         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65394
65395 2007-03-25  Bruno Haible  <bruno@clisp.org>
65396
65397         Avoid test failures on IRIX 6.5.
65398         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65399         (main): Use it.
65400         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65401         macros.
65402         (main): Use them.
65403
65404 2007-03-25  Bruno Haible  <bruno@clisp.org>
65405
65406         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65407         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65408         exists but doesn't work.
65409         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65410         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65412         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65413         math.h.
65414
65415 2007-03-25  Bruno Haible  <bruno@clisp.org>
65416
65417         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65418         returns inf. Needed on IRIX 6.5.
65419
65420 2007-03-25  Bruno Haible  <bruno@clisp.org>
65421
65422         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65423         (main): Use isnanl instead of x != x idiom.
65424         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65425
65426         * tests/test-frexp.c: Include isnan.h.
65427         (main): Use isnan instead of x != x idiom.
65428         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65429
65430 2007-03-25  Bruno Haible  <bruno@clisp.org>
65431
65432         * tests/test-frexp.c (NaN): New function/macro.
65433         (main): Use it instead of 0.0 / 0.0.
65434         * tests/test-isnan.c (NaN): New function/macro.
65435         (main): Use it instead of 0.0 / 0.0.
65436         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65437         (test_function): Use it instead of 0.0 / 0.0.
65438         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65439         (test_function): Use it instead of 0.0 / 0.0.
65440         * tests/test-snprintf-posix.h (NaN): New function/macro.
65441         (test_function): Use it instead of 0.0 / 0.0.
65442         * tests/test-sprintf-posix.h (NaN): New function/macro.
65443         (test_function): Use it instead of 0.0 / 0.0.
65444         * tests/test-fprintf-posix.h (NaN): New function/macro.
65445         (test_function): Use it instead of 0.0 / 0.0.
65446         * tests/test-printf-posix.h (NaN): New function/macro.
65447         (test_function): Use it instead of 0.0 / 0.0.
65448
65449         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65450
65451 2007-03-25  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65454
65455 2007-03-25  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/regexec.c (merge_state_with_log): Make static.
65458
65459 2007-03-25  Bruno Haible  <bruno@clisp.org>
65460
65461         * lib/trigl.c (kernel_rem_pio2): Make static.
65462
65463 2007-03-25  Bruno Haible  <bruno@clisp.org>
65464
65465         * lib/sincosl.c (sincosl_table): Make static.
65466
65467 2007-03-25  Bruno Haible  <bruno@clisp.org>
65468
65469         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65470         if the compiler does not support C99.
65471
65472 2007-03-25  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/time (Makefile.am): Ensure all rule action lines start with a
65475         tab.
65476
65477 2007-03-24  Bruno Haible  <bruno@clisp.org>
65478
65479         * modules/tsearch-tests: New file.
65480         * tests/test-tsearch.sh: New file.
65481         * tests/test-tsearch.c: New file, mostly copied from glibc.
65482
65483         * modules/search-tests: New file.
65484         * tests/test-search.c: New file.
65485
65486         * modules/search: New file.
65487         * lib/search_.h: New file, incorporating lib/tsearch.h.
65488         * m4/search_h.m4: New file.
65489         * lib/tsearch.h: Remove file.
65490         * lib/tsearch.c: Include search.h instead of tsearch.h.
65491         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65492         HAVE_TSEARCH.
65493         * modules/tsearch (Files): Remove lib/tsearch.h.
65494         (Depends-on): Add search.
65495         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65496         (Include): Change tsearch.h into search.h.
65497
65498 2007-03-24  Bruno Haible  <bruno@clisp.org>
65499
65500         * modules/fpucw: New file.
65501         * lib/fpucw.h: New file.
65502         * lib/frexp.c: Include fpucw.h.
65503         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65504         (FUNC): Use them.
65505         * lib/printf-frexp.c: Include fpucw.h.
65506         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65507         (FUNC): Use them.
65508         * lib/vasnprintf.c: Include fpucw.h.
65509         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65510         'long double' calculations.
65511         * tests/test-frexpl.c: Include fpucw.h.
65512         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65513         * tests/test-printf-frexpl.c: Include fpucw.h.
65514         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65515         * modules/frexpl (Depends-on): Add fpucw.
65516         * modules/printf-frexpl (Depends-on): Likewise.
65517         * modules/fprintf-posix (Depends-on): Likewise.
65518         * modules/snprintf-posix (Depends-on): Likewise.
65519         * modules/sprintf-posix (Depends-on): Likewise.
65520         * modules/vasnprintf-posix (Depends-on): Likewise.
65521         * modules/vasprintf-posix (Depends-on): Likewise.
65522         * modules/vfprintf-posix (Depends-on): Likewise.
65523         * modules/vsnprintf-posix (Depends-on): Likewise.
65524         * modules/vsprintf-posix (Depends-on): Likewise.
65525         * modules/frexpl-tests (Depends-on): Likewise.
65526         * modules/printf-frexpl-tests (Depends-on): Likewise.
65527
65528 2007-03-24  Bruno Haible  <bruno@clisp.org>
65529
65530         * lib/float+.h: New file.
65531         * lib/isnan.c: Include float+.h.
65532         (SIZE): New macro.
65533         (FUNC): Compare only SIZE bytes of the value.
65534         * lib/vasnprintf.c: Include float+.h.
65535         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65536         SIZEOF_LDBL or SIZEOF_DBL bytes.
65537         * modules/isnan-nolibm (Files): Add lib/float+.h.
65538         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65539         * modules/isnanl (Files): Add lib/float+.h.
65540         * modules/vasnprintf (Files): Add lib/float+.h.
65541
65542 2007-03-24  Bruno Haible  <bruno@clisp.org>
65543
65544         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65545         include isnanl-nolibm.h.
65546
65547 2007-03-24  Bruno Haible  <bruno@clisp.org>
65548
65549         * tests/test-read-file.c (main): Don't produce spurious output for
65550         expected situations. Make the test fail if it encountered unexpected
65551         results.
65552
65553 2007-03-24  Bruno Haible  <bruno@clisp.org>
65554
65555         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65556         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65557
65558 2007-03-24  Bruno Haible  <bruno@clisp.org>
65559
65560         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65561
65562 2007-03-24  Bruno Haible  <bruno@clisp.org>
65563
65564         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65565         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65566
65567         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65568         * modules/utf8-ucs4: Turn into a symbolic link to module
65569         unistr/u8-mbtouc.
65570
65571         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65572         utf8-ucs4-unsafe.
65573         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65574         unistr/u8-mbtouc-unsafe.
65575
65576         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65577         * modules/utf16-ucs4: Turn into a symbolic link to module
65578         unistr/u16-mbtouc.
65579
65580         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65581         utf16-ucs4-unsafe.
65582         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65583         unistr/u16-mbtouc-unsafe.
65584
65585         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65586         * modules/ucs4-utf8: Turn into a symbolic link to module
65587         unistr/u8-ubtomb.
65588
65589         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65590         * modules/ucs4-utf16: Turn into a symbolic link to module
65591         unistr/u16-ubtomb.
65592
65593 2007-03-24  Bruno Haible  <bruno@clisp.org>
65594
65595         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65596         Enable the function only if HAVE_INLINE.
65597         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
65598         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65599         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
65600         Enable the function only if HAVE_INLINE.
65601         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
65602         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65603         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
65604         Enable the function only if HAVE_INLINE.
65605         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
65606         Enable the function only if HAVE_INLINE.
65607         * modules/utf8-ucs4: Update.
65608         * modules/utf8-ucs4-unsafe: Update.
65609         * modules/utf16-ucs4: Update.
65610         * modules/utf16-ucs4-unsafe: Update.
65611         * modules/ucs4-utf8: Update.
65612         * modules/ucs4-utf16: Update.
65613
65614 2007-03-24  Bruno Haible  <bruno@clisp.org>
65615
65616         * lib/utf8-ucs4.h: Remove file.
65617         * lib/utf8-ucs4-unsafe.h: Remove file.
65618         * lib/utf16-ucs4.h: Remove file.
65619         * lib/utf16-ucs4-unsafe.h: Remove file.
65620         * lib/ucs4-utf8.h: Remove file.
65621         * lib/ucs4-utf16.h: Remove file.
65622         * lib/unistr.h: Include their previous contents.
65623         * m4/utf-ucs4.m4: Remove file.
65624         * m4/ucs4-utf.m4: Remove file.
65625         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
65626         (Depends-on): Add unistr/base.
65627         (configure.ac): Remove gl_UTF_UCS4.
65628         (Makefile.am): Update.
65629         (Include): Change to unistr.h.
65630         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
65631         (Depends-on): Add unistr/base.
65632         (configure.ac): Remove gl_UTF_UCS4.
65633         (Makefile.am): Update.
65634         (Include): Change to unistr.h.
65635         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
65636         (Depends-on): Add unistr/base.
65637         (configure.ac): Remove gl_UTF_UCS4.
65638         (Makefile.am): Update.
65639         (Include): Change to unistr.h.
65640         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
65641         (Depends-on): Add unistr/base.
65642         (configure.ac): Remove gl_UTF_UCS4.
65643         (Makefile.am): Update.
65644         (Include): Change to unistr.h.
65645         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
65646         (Depends-on): Add unistr/base.
65647         (configure.ac): Remove gl_UCS4_UTF.
65648         (Makefile.am): Update.
65649         (Include): Change to unistr.h.
65650         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
65651         (Depends-on): Add unistr/base.
65652         (configure.ac): Remove gl_UCS4_UTF.
65653         (Makefile.am): Update.
65654         (Include): Change to unistr.h.
65655         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
65656         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
65657         utf8-ucs4-unsafe.h.
65658         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
65659         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
65660         utf16-ucs4-unsafe.h.
65661         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
65662         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
65663         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
65664         * lib/unistr/u8-strchr.c: Likewise.
65665         * lib/unistr/u8-strrchr.c: Likewise.
65666         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
65667         * lib/unistr/u16-strchr.c: Likewise.
65668         * lib/unistr/u16-strrchr.c: Likewise.
65669         * lib/striconveh.c: Update.
65670         * lib/linebreak.c: Update.
65671
65672 2007-03-24  Bruno Haible  <bruno@clisp.org>
65673
65674         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
65675         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
65676
65677 2007-03-22  Bruno Haible  <bruno@clisp.org>
65678
65679         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
65680
65681 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65682
65683         * MODULES.html.sh (File system functions): New module write-any-file.
65684         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
65685         * m4/write-any-file.m4: New files.
65686
65687 2007-03-23  Eric Blake  <ebb9@byu.net>
65688
65689         * gnulib-tool: Rearrange space-tab sequences, since some editors
65690         like to eat them.
65691
65692 2007-03-23  Eric Blake  <ebb9@byu.net>
65693
65694         * lib/version-etc.c (version_etc_va): Update license wording to
65695         be more concise.  Recommended by Richard Stallman.
65696
65697 2007-03-22  Bruno Haible  <bruno@clisp.org>
65698
65699         * lib/poll.c (MSG_PEEK): New fallback definition.
65700
65701 2007-03-22  Bruno Haible  <bruno@clisp.org>
65702
65703         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
65704         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
65705         (main): Update.
65706         Fixes a compilation error on BeOS.
65707
65708 2007-03-22  Bruno Haible  <bruno@clisp.org>
65709
65710         * modules/frexpl-tests: New file.
65711         * tests/test-frexpl.c: New file.
65712
65713         * modules/frexpl: New file.
65714         * m4/frexpl.m4: New file.
65715         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
65716         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
65717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
65718         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
65719         (Depends-on): Add frexpl. Remove isnanl-nolibm.
65720         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
65721
65722 2007-03-22  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/frexpl.c: Share code with lib/frexp.c.
65725         * modules/mathl (Files): Add lib/frexp.c.
65726         (Depends-on): Add isnanl-nolibm.
65727
65728 2007-03-22  Bruno Haible  <bruno@clisp.org>
65729
65730         * modules/printf-frexp (Files): Add m4/frexp.m4.
65731         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
65732         only if the found frexp function actually works.
65733
65734 2007-03-22  Bruno Haible  <bruno@clisp.org>
65735
65736         * lib/frexp.c: Remove older implementation that uses divisions.
65737
65738 2007-03-21  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/frexp-tests: New file.
65741         * tests/test-frexp.c: New file.
65742
65743         * modules/frexp: New file.
65744         * lib/frexp.c: New file.
65745         * m4/frexp.m4: New file.
65746         * lib/math_.h (frexp): New declaration.
65747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
65748         REPLACE_FREXP.
65749         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
65750
65751 2007-03-21  Bruno Haible  <bruno@clisp.org>
65752
65753         * modules/isnanl-tests: New file.
65754         * tests/test-isnanl.c: New file.
65755
65756         * modules/isnanl: New file.
65757         * lib/isnanl.h: New file.
65758         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
65759         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
65760         gl_FUNC_ISNANL_WORKS.
65761         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
65762         New macros.
65763
65764 2007-03-21  Bruno Haible  <bruno@clisp.org>
65765
65766         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
65767         lib/isnanl.h.
65768         (Include): Update.
65769         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
65770         * lib/vasnprintf.c: Update.
65771         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
65772         tests/test-isnanl.h, remove tests/test-isnanl.c.
65773         (Makefile.am): Update.
65774         * tests/test-isnanl-nolibm.c: New file.
65775         * tests/test-isnanl.h: New file.
65776         * tests/test-isnanl.c: Remove file.
65777
65778 2007-03-21  Jim Meyering  <jim@meyering.net>
65779
65780         When trying to open ".", treat ESTALE like EACCES.
65781         * lib/savewd.c (savewd_save): Resort to forking not just upon
65782         failure with EACCES, but also when errno is ESTALE.
65783
65784 2007-03-20  Bruno Haible  <bruno@clisp.org>
65785
65786         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
65787         Needed on AIX 5.1. Reported by Matthew Woehlke.
65788
65789 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65790
65791         Suggestions by Bruno Haible:
65792         * lib/acl-internal.h: Include "gettext.h" rather than rolling
65793         our own.
65794         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
65795         * modules/acl (Depends-on): Add gettext.
65796
65797 2007-03-19  Bruno Haible  <bruno@clisp.org>
65798
65799         * modules/iconvme: Remove file.
65800         * lib/iconvme.h: Remove file.
65801         * lib/iconvme.c: Remove file.
65802         * m4/iconvme.m4: Remove file.
65803
65804 2007-03-19  Bruno Haible  <bruno@clisp.org>
65805
65806         * doc/relocatable-maint.texi: Break long shell script line.
65807         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65808
65809 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65810
65811         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
65812         handle file_has_acl.
65813         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
65814         * lib/acl.c: Move header inclusions and related macro defns into
65815         lib/acl-internal.h.
65816         (S_ISLNK): Remove defn, since that's now done for us.
65817         (file_has_acl): Move to lib/file-has-acl.c.
65818         Call acl_trivial if available.  This is the crucial part of the fix.
65819         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
65820         shared within the library.  Rewrite a bit, partly to make it compatible
65821         with the GNU coding style.
65822         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
65823         Remove unnecessary double-quotes.
65824         Don't test for acl_to_text; the build will catch that.
65825         Replace acl_entries if it doesn't exist and it is needed.
65826         Check for -lsec and acl_trivial (as used on Solaris 10).
65827         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
65828         lib/file-has-acl.c.
65829         (Depends-on): Add sys_stat, for S_ISLNK.
65830
65831 2007-03-19  Ben Pfaff  <blp@gnu.org>
65832
65833         * doc/gnulib.texi: Fix typos.
65834         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65835
65836 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
65839         If size is zero here, buf must be zero.
65840
65841 2007-03-19  Simon Josefsson  <simon@josefsson.org>
65842
65843         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
65844         <bruno@clisp.org>.
65845
65846 2007-03-18  Bruno Haible  <bruno@clisp.org>
65847
65848         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
65849         Suggested by Eric Blake.
65850
65851 2007-03-18  Ben Pfaff  <blp@gnu.org>
65852
65853         * doc/relocatable.texi: Recommend using as prefix a directory
65854         that does not exist and will never be created.  Based on
65855         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
65856         and others.
65857
65858 2007-03-17  Bruno Haible  <bruno@clisp.org>
65859
65860         * lib/fchownat.c: Include lchown.h.
65861
65862 2007-03-17  Bruno Haible  <bruno@clisp.org>
65863
65864         Fix endless loop when the given allocated size was > INT_MAX.
65865         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
65866         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
65867         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
65868         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
65869         * lib/sprintf.c (sprintf): Likewise.
65870
65871 2007-03-17  Bruno Haible  <bruno@clisp.org>
65872
65873         * tests/test-argp-2.sh (func_compare): Output a context diff.
65874
65875 2007-03-17  Bruno Haible  <bruno@clisp.org>
65876
65877         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
65878         locale's decimal-point character.
65879
65880 2007-03-17  Bruno Haible  <bruno@clisp.org>
65881
65882         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
65883         before comparing it. Needed because on some platforms (e.g. x86) a
65884         'long double' occupies less bytes than sizeof (long double).
65885
65886 2007-03-17  Bruno Haible  <bruno@clisp.org>
65887
65888         * tests/test-crc.c (main): Make printf statements 64-bit clean.
65889         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
65890         * tests/test-getaddrinfo.c (simple): Likewise.
65891         * tests/test-read-file.c (main): Likewise.
65892
65893 2007-03-17  Bruno Haible  <bruno@clisp.org>
65894
65895         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
65896
65897 2007-03-17  Bruno Haible  <bruno@clisp.org>
65898
65899         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
65900         unused variable.
65901
65902 2007-03-17  Bruno Haible  <bruno@clisp.org>
65903
65904         * tests/test-c-strcasecmp.c: Include c-strcase.h.
65905         * tests/test-c-strncasecmp.c: Likewise.
65906
65907 2007-03-17  Bruno Haible  <bruno@clisp.org>
65908
65909         * modules/stdlib (Depends-on): Add unistd.
65910         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
65911         Needed for MacOS X 10.3.
65912
65913 2007-03-17  Bruno Haible  <bruno@clisp.org>
65914
65915         * lib/unistr/u-strdup.h: Include <stdlib.h>.
65916
65917 2007-03-17  Bruno Haible  <bruno@clisp.org>
65918
65919         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
65920
65921 2007-03-17  Bruno Haible  <bruno@clisp.org>
65922
65923         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
65924         to reflect files copied from gnulib (with or without modifications).
65925         Suggested by Jim Meyering.
65926
65927 2007-03-17  Eric Blake  <ebb9@byu.net>
65928
65929         * NEWS: Document stdlib change from 2007-02-18.
65930
65931 2007-03-17  Jim Meyering  <jim@meyering.net>
65932
65933         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
65934         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
65935         someone uses a name containing shell meta-characters.
65936         Reported by Alfred M. Szmidt.
65937
65938         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
65939
65940 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65941
65942         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
65943         and copy gettext configuration files only if configure.ac contains
65944         a use of AM_GNU_GETTEXT_VERSION.
65945
65946 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65947
65948         * build-aux/bootstrap (gnulib_name): New variable.
65949         (gnulib_tool_options): Use it.
65950
65951 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65952
65953         * tests/test-des.c: Use new namespace.
65954
65955 2007-03-15  Bruno Haible  <bruno@clisp.org>
65956
65957         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65958         Reported by James Youngman <jay@gnu.org>.
65959
65960 2007-03-15  Bruno Haible  <bruno@clisp.org>
65961
65962         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65963         declared prototype. Needed with cc on OSF/1 5.1.
65964
65965 2007-03-15  Bruno Haible  <bruno@clisp.org>
65966
65967         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65968         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65969         (struct gl_list_implementation): Add dispose_fn argument to the
65970         'create_empty', 'create' methods.
65971         (struct gl_list_impl_base): Add field 'dispose_fn'.
65972         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65973         argument.
65974         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65975         dispose_fn argument.
65976         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65977         dispose_fn on the dropped values.
65978         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65979         dispose_fn argument.
65980         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65981         dropped values.
65982         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65983         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65984         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65985         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65986         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65987         argument.
65988         (gl_tree_list_free): Call dispose_fn on the dropped values.
65989         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65990         the dropped values.
65991         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65992         Add dispose_fn argument.
65993         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65994         Call dispose_fn on the dropped values.
65995         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65996         Add dispose_fn argument.
65997         (gl_sublist_create): Initialize the 'dispose_fn' field.
65998         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65999         * tests/test-array_list.c (main): Update.
66000         * tests/test-carray_list.c (main): Update.
66001         * tests/test-avltree_list.c (main): Update.
66002         * tests/test-rbtree_list.c (main): Update.
66003         * tests/test-avltreehash_list.c (main): Update.
66004         * tests/test-rbtreehash_list.c (main): Update.
66005         * tests/test-linked_list.c (main): Update.
66006         * tests/test-linkedhash_list.c (main): Update.
66007         * tests/test-array_oset.c (main): Update.
66008
66009 2007-03-15  Bruno Haible  <bruno@clisp.org>
66010
66011         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66012         (gl_oset_create_empty): Add dispose_fn argument.
66013         (struct gl_oset_implementation): Add dispose_fn argument to
66014         'create_empty' method.
66015         (struct gl_oset_impl_base): Add dispose_fn field.
66016         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66017         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66018         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66019         values.
66020         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66021         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66022         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66023         dropped value.
66024         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66025         dropped value.
66026         * tests/test-array_oset.c (main): Update.
66027         * tests/test-avltree_oset.c (main): Update.
66028         * tests/test-rbtree_oset.c (main): Update.
66029         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66030
66031 2007-03-13  Bruno Haible  <bruno@clisp.org>
66032
66033         * tests/test-stdbool.c (i): Update after last patch.
66034
66035 2007-03-12  Bruno Haible  <bruno@clisp.org>
66036
66037         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66038         the iswprint macro. Needed on Solaris 2.5.1.
66039
66040 2007-03-12  Bruno Haible  <bruno@clisp.org>
66041
66042         * tests/test-printf-frexp.c (main): Declare x as volatile.
66043
66044 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66045
66046         * doc/gnulib.texi (Build robot for gnulib): New section.
66047
66048 2007-03-12  Jim Meyering  <jim@meyering.net>
66049
66050         * build-aux/bootstrap: New file.
66051         * build-aux/bootstrap.conf: New file, from coreutils.
66052
66053 2007-03-11  Bruno Haible  <bruno@clisp.org>
66054
66055         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66056
66057 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66058
66059         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66060         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66061         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66062
66063 2007-03-11  Bruno Haible  <bruno@clisp.org>
66064
66065         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66066         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66067
66068 2007-03-11  Bruno Haible  <bruno@clisp.org>
66069
66070         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66071         formula. Needed for SunPRO C 5.0.
66072
66073 2007-03-11  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/long-options (Depends-on): Add getopt.
66076
66077 2007-03-11  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/modechange (Depends-on): Add stdbool.
66080
66081 2007-03-11  Bruno Haible  <bruno@clisp.org>
66082
66083         * modules/i-ring (Depends-on): Add stdbool.
66084
66085 2007-03-11  Bruno Haible  <bruno@clisp.org>
66086
66087         * modules/gc-des (Depends-on): Add stdbool.
66088
66089 2007-03-11  Bruno Haible  <bruno@clisp.org>
66090
66091         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66092
66093 2007-03-11  Bruno Haible  <bruno@clisp.org>
66094
66095         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66096
66097 2007-03-11  Bruno Haible  <bruno@clisp.org>
66098
66099         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66100
66101 2007-03-11  Bruno Haible  <bruno@clisp.org>
66102
66103         * lib/vasnprintf.c (sprintf): Undefine.
66104
66105 2007-03-11  Bruno Haible  <bruno@clisp.org>
66106
66107         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66108         initializers in SunPRO C and Compaq C compilers.
66109
66110 2007-03-11  Bruno Haible  <bruno@clisp.org>
66111
66112         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66113         decrementing code ANSI C compliant.
66114
66115 2007-03-11  Bruno Haible  <bruno@clisp.org>
66116
66117         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66118         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66119
66120 2007-03-11  Bruno Haible  <bruno@clisp.org>
66121
66122         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66123         <stdbool.h> substitute doesn't pass.
66124
66125 2007-03-11  Bruno Haible  <bruno@clisp.org>
66126
66127         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66128
66129 2007-03-11  Bruno Haible  <bruno@clisp.org>
66130
66131         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66132         script, for submission to autobuild.josefsson.org.
66133
66134 2007-03-10  Bruno Haible  <bruno@clisp.org>
66135
66136         * modules/canonicalize-lgpl-tests: New file.
66137         * tests/test-canonicalize-lgpl.sh: New file.
66138         * tests/test-canonicalize-lgpl.c: New file.
66139
66140         * modules/c-strcase-tests: New file.
66141         * tests/test-c-strcase.sh: New file.
66142         * tests/test-c-strcasecmp.c: New file.
66143         * tests/test-c-strncasecmp.c: New file.
66144
66145         * modules/atexit-tests: New file.
66146         * tests/test-atexit.sh: New file.
66147         * tests/test-atexit.c: New file.
66148
66149 2007-03-10  Bruno Haible  <bruno@clisp.org>
66150
66151         * tests/test-binary-io.sh: Use temporary filenames that are not so
66152         likely to clash with those of other tests (in a parallel make).
66153         * tests/test-binary-io.c: Likewise.
66154
66155 2007-03-10  Bruno Haible  <bruno@clisp.org>
66156
66157         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66158         fallback; use #error instead.
66159         Suggested by Simon Josefsson.
66160
66161 2007-03-10  Bruno Haible  <bruno@clisp.org>
66162
66163         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66164         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66165         first and the last.
66166
66167 2007-03-10  Bruno Haible  <bruno@clisp.org>
66168
66169         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66170
66171 2007-03-10  Bruno Haible  <bruno@clisp.org>
66172
66173         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66174         "make distcheck".
66175         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66176         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66177         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66178
66179 2007-03-10  Bruno Haible  <bruno@clisp.org>
66180
66181         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66182         variable.
66183         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66184         variable.
66185
66186 2007-03-09  Eric Blake  <ebb9@byu.net>
66187         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66188
66189         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66190         types are not being provided by gnulib.
66191         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66192         types are supported.
66193
66194 2007-03-10  Bruno Haible  <bruno@clisp.org>
66195
66196         * lib/stdio_.h (__attribute__): New macro.
66197         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66198         vsprintf): Specify __attribute__ __format__ for GCC.
66199         Suggested by Eric Blake.
66200
66201 2007-03-09  Bruno Haible  <bruno@clisp.org>
66202
66203         * modules/printf-posix-tests: New file.
66204         * tests/test-printf-posix.sh: New file.
66205         * tests/test-printf-posix.c: New file.
66206
66207         * modules/printf-posix: New file.
66208         * lib/printf.c: New file.
66209         * m4/printf-posix-rpl.m4: New file.
66210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66211         REPLACE_PRINTF.
66212         * lib/stdio_.h (printf): New declaration.
66213         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66214         ____strfmon____): New macros.
66215         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66216         REPLACE_PRINTF.
66217
66218 2007-03-09  Bruno Haible  <bruno@clisp.org>
66219
66220         * tests/test-vasnprintf-posix2.sh: New file.
66221         * tests/test-vasnprintf-posix2.c: New file.
66222         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66223         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66224         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66225
66226         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66227         a locale dependent decimal point, rather than always '.'.
66228
66229 2007-03-09  Eric Blake  <ebb9@byu.net>
66230
66231         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66232         spite of platforms like Tandem/NSK that define it to -1.
66233
66234 2007-03-08  Bruno Haible  <bruno@clisp.org>
66235
66236         * modules/vprintf-posix-tests: New file.
66237         * tests/test-vprintf-posix.sh: New file.
66238         * tests/test-vprintf-posix.c: New file.
66239         * tests/test-printf-posix.h: New file.
66240
66241         * modules/vprintf-posix: New file.
66242         * lib/vprintf.c: New file.
66243         * m4/vprintf-posix.m4: New file.
66244         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66245         REPLACE_VPRINTF.
66246         * lib/stdio_.h (vprintf): New declaration.
66247         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66248         REPLACE_VPRINTF.
66249
66250 2007-03-08  Bruno Haible  <bruno@clisp.org>
66251
66252         * modules/fprintf-posix-tests: New file.
66253         * tests/test-fprintf-posix.sh: New file.
66254         * tests/test-fprintf-posix.c: New file.
66255
66256         * modules/fprintf-posix: New file.
66257         * lib/fprintf.c: New file.
66258         * m4/fprintf-posix.m4: New file.
66259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66260         REPLACE_FPRINTF.
66261         * lib/stdio_.h (fprintf): New declaration.
66262         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66263         REPLACE_FPRINTF.
66264
66265 2007-03-08  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/vfprintf-posix-tests: New file.
66268         * tests/test-vfprintf-posix.sh: New file.
66269         * tests/test-vfprintf-posix.c: New file.
66270         * tests/test-fprintf-posix.h: New file.
66271         * tests/test-fprintf-posix.out: New file.
66272
66273         * modules/vfprintf-posix: New file.
66274         * lib/vfprintf.c: New file.
66275         * m4/vfprintf-posix.m4: New file.
66276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66277         REPLACE_VFPRINTF.
66278         * lib/stdio_.h (vfprintf): New declaration.
66279         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66280         REPLACE_VFPRINTF.
66281
66282 2007-03-08  Bruno Haible  <bruno@clisp.org>
66283
66284         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66285
66286 2007-03-08  Bruno Haible  <bruno@clisp.org>
66287
66288         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66289         instead of 'expr' invocations.
66290         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66291         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66292         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66293         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66294         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66295         Suggested by Paul Eggert.
66296
66297 2007-03-08  Bruno Haible  <bruno@clisp.org>
66298
66299         * modules/fseterr-tests: New file.
66300         * tests/test-fseterr.c: New file.
66301
66302         * modules/fseterr: New file.
66303         * lib/fseterr.h: New file.
66304         * lib/fseterr.c: New file.
66305
66306 2007-03-08  Bruno Haible  <bruno@clisp.org>
66307
66308         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66309         * lib/getopt_.h: Likewise.
66310         * lib/mbswidth.h: Likewise.
66311         * lib/setenv.h: Likewise.
66312         * lib/vasnprintf.h: Likewise.
66313         * lib/vasprintf.h: Likewise.
66314         * lib/verror.h: Likewise.
66315         * lib/xsetenv.h: Likewise.
66316         * lib/xvasprintf.h: Likewise.
66317
66318 2007-03-08  Jim Meyering  <jim@meyering.net>
66319
66320         * users.txt: Add parted.
66321
66322         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66323
66324 2007-03-07  Bruno Haible  <bruno@clisp.org>
66325
66326         * m4/printf.m4: Make the shell script snippets copy&pastable.
66327
66328 2007-03-02  Bruno Haible  <bruno@clisp.org>
66329
66330         * lib/netinet_in_.h: New file.
66331         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66332         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66333         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66334         (Depends-on): Add absolute-header.
66335         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66336         into netinet/in.h.
66337
66338 2007-03-03  Bruno Haible  <bruno@clisp.org>
66339
66340         * lib/sys_select_.h: New file.
66341         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66342         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66343         * modules/sys_select (Files): Add lib/sys_select_.h.
66344         (Depends-on): Add absolute-header.
66345         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66346         into sys/select.h.
66347
66348 2007-03-02  Bruno Haible  <bruno@clisp.org>
66349
66350         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66351         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66352         values.
66353         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66354         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66355         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66356         * modules/sys_socket (Depends-on): Add absolute-header.
66357         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66358         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66359         (Include): Remove requirement of inclusion of <sys/types.h>.
66360
66361 2007-03-02  Bruno Haible  <bruno@clisp.org>
66362
66363         * lib/byteswap_.h (bswap_32): Fix formula.
66364
66365 2007-03-06  Bruno Haible  <bruno@clisp.org>
66366
66367         * modules/sprintf-posix-tests: New file.
66368         * tests/test-sprintf-posix.c: New file.
66369
66370         * modules/sprintf-posix: New file.
66371         * lib/sprintf.c: New file.
66372         * m4/sprintf-posix.m4: New file.
66373         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66374         REPLACE_SPRINTF.
66375         * lib/stdio_.h (sprintf): New declaration.
66376         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66377         REPLACE_SPRINTF.
66378
66379 2007-03-06  Bruno Haible  <bruno@clisp.org>
66380
66381         * modules/vsprintf-posix-tests: New file.
66382         * tests/test-vsprintf-posix.c: New file.
66383         * tests/test-sprintf-posix.h: New file.
66384
66385         * modules/vsprintf-posix: New file.
66386         * lib/vsprintf.c: New file.
66387         * m4/vsprintf-posix.m4: New file.
66388         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66389         REPLACE_VSPRINTF.
66390         * lib/stdio_.h (vsprintf): New declaration.
66391         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66392         REPLACE_VSPRINTF.
66393
66394 2007-03-06  Bruno Haible  <bruno@clisp.org>
66395
66396         * modules/vsnprintf (Depend-on): Remove minmax.
66397
66398 2007-03-06  Bruno Haible  <bruno@clisp.org>
66399
66400         * modules/snprintf-posix-tests: New file.
66401         * tests/test-snprintf-posix.c: New file.
66402
66403         * modules/snprintf-posix: New file.
66404         * m4/snprintf-posix.m4: New file.
66405         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66406         gl_FUNC_SNPRINTF.
66407         (gl_FUNC_SNPRINTF): Invoke it.
66408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66409         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66410         is set.
66411         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66412
66413 2007-03-06  Bruno Haible  <bruno@clisp.org>
66414
66415         * modules/vsnprintf-posix-tests: New file.
66416         * tests/test-vsnprintf-posix.c: New file.
66417         * tests/test-snprintf-posix.h: New file.
66418
66419         * modules/vsnprintf-posix: New file.
66420         * m4/vsnprintf-posix.m4: New file.
66421         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66422         gl_FUNC_VSNPRINTF.
66423         (gl_FUNC_VSNPRINTF): Invoke it.
66424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66425         * lib/stdio_.h (vsnprintf): Define as a replacement if
66426         REPLACE_VSNPRINTF is set.
66427         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66428
66429 2007-03-06  Bruno Haible  <bruno@clisp.org>
66430
66431         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66432         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66433
66434 2007-03-06  Bruno Haible  <bruno@clisp.org>
66435
66436         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66437         (asinl): Declare also if HAVE_DECL_ASINL is set.
66438         (atanl): Declare also if HAVE_DECL_ATANL is set.
66439         (ceill): Declare also if HAVE_DECL_CEILL is set.
66440         (cosl): Declare also if HAVE_DECL_COSL is set.
66441         (expl): Declare also if HAVE_DECL_EXPL is set.
66442         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66443         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66444         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66445         (logl): Declare also if HAVE_DECL_LOGL is set.
66446         (sinl): Declare also if HAVE_DECL_SINL is set.
66447         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66448         (tanl): Declare also if HAVE_DECL_TANL is set.
66449         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66450         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66451         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66452         declaration of frexpl, ldexpl.
66453         * modules/printf-frexpl (Depends-on): Add math.
66454         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66455
66456 2007-03-05  Bruno Haible  <bruno@clisp.org>
66457
66458         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66459         frexpl and ldexpl are declared.
66460         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66461
66462 2007-03-05  Bruno Haible  <bruno@clisp.org>
66463
66464         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66465         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66466
66467 2007-03-05  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/stdio_.h: Include <stddef.h>.
66470
66471 2007-03-05  Bruno Haible  <bruno@clisp.org>
66472
66473         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66474
66475 2007-03-05  Bruno Haible  <bruno@clisp.org>
66476
66477         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66478         NetBSD 4, from Ralf Wildenhues.
66479
66480 2007-03-04  Bruno Haible  <bruno@clisp.org>
66481
66482         * lib/vasprintf.h: Update #if logic for the case when the functions
66483         exist but are overridden.
66484
66485 2007-03-04  Bruno Haible  <bruno@clisp.org>
66486
66487         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66488         implementations: glibc-2.4 and MacOS X 10.3.
66489         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66490         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66491         * tests/test-vasprintf-posix.c (test_function): Likewise.
66492
66493 2007-03-04  Bruno Haible  <bruno@clisp.org>
66494
66495         * modules/vasprintf-posix-tests: New file.
66496         * tests/test-vasprintf-posix.c: New file.
66497
66498         * modules/vasprintf-posix: New file.
66499         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66500         defined.
66501         * m4/vasprintf-posix.m4: New file.
66502         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66503         gl_FUNC_VASPRINTF.
66504         (gl_FUNC_VASPRINTF): Invoke it.
66505         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66506         here.
66507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66508
66509 2007-03-04  Bruno Haible  <bruno@clisp.org>
66510
66511         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66512         REPLACE_GETTIMEOFDAY.
66513         * modules/sys_time (Makefile.am): Likewise.
66514         * m4/sys_time_h.m4: Likewise.
66515         * m4/gettimeofday.m4: Likewise.
66516
66517 2007-03-04  Bruno Haible  <bruno@clisp.org>
66518
66519         * modules/vasnprintf-posix-tests: New file.
66520         * tests/test-vasnprintf-posix.c: New file.
66521
66522         * modules/vasnprintf-posix: New file.
66523         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66524         printf-frexpl.h.
66525         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66526         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66527         REPLACE_VASNPRINTF is defined.
66528         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66529         gl_FUNC_VASNPRINTF.
66530         (gl_FUNC_VASNPRINTF): Invoke it.
66531         * m4/vasnprintf-posix.m4: New file.
66532         * m4/printf.m4: New file.
66533
66534 2007-03-04  Bruno Haible  <bruno@clisp.org>
66535
66536         Compile progreloc.c only if --enable-relocatable is specified.
66537         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66538         if --enable-relocatable was specified.
66539         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66540         lib_SOURCES.
66541
66542 2007-03-04  Jim Meyering  <jim@meyering.net>
66543
66544         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66545         Use it consistently, rather than enumerating errno constants.
66546
66547 2007-03-04  Bruno Haible  <bruno@clisp.org>
66548
66549         * modules/xvasprintf-tests: New file.
66550         * tests/test-xvasprintf.c: New file.
66551
66552         * modules/vasprintf-tests: New file.
66553         * tests/test-vasprintf.c: New file.
66554
66555         * modules/vasnprintf-tests: New file.
66556         * tests/test-vasnprintf.c: New file.
66557
66558         * modules/vsnprintf-tests: New file.
66559         * tests/test-vsnprintf.c: New file.
66560
66561         * modules/snprintf-tests: New file.
66562         * tests/test-snprintf.c: New file.
66563
66564 2007-03-04  Bruno Haible  <bruno@clisp.org>
66565
66566         Compile relocatable.c only if --enable-relocatable is specified.
66567         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66568         gl_RELOCATABLE_LIBRARY.
66569         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66570         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66571         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66572         gl_RELOCATABLE_LIBRARY.
66573         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66574         (Makefile.am): Remove lib_SOURCES.
66575         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66576         gl_RELOCATABLE_LIBRARY.
66577         (Makefile.am): Remove lib_SOURCES.
66578         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66579         always.
66580         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66581         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66582
66583 2007-03-04  Bruno Haible  <bruno@clisp.org>
66584
66585         * modules/argmatch-tests: New file.
66586         * tests/test-argmatch.c: New file.
66587
66588         * tests/test-allocsa.c (main): Halve the number of loop runs.
66589
66590         * modules/alloca-opt-tests: New file.
66591         * tests/test-alloca-opt.c: New file.
66592
66593 2007-03-04  Jim Meyering  <jim@meyering.net>
66594
66595         Work around difference between Linux ACLs and Solaris 10 ZFS.
66596         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
66597         for EINVAL.
66598
66599 2007-03-03  Bruno Haible  <bruno@clisp.org>
66600
66601         * modules/relocatable-prog (Depends-on): Add back progreloc's
66602         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
66603
66604 2007-03-03  Bruno Haible  <bruno@clisp.org>
66605
66606         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
66607         * modules/relocatable-lib: New file.
66608
66609 2007-03-03  Bruno Haible  <bruno@clisp.org>
66610
66611         * modules/relocatable-prog: Renamed from modules/relocatable.
66612         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
66613
66614 2007-03-03  Bruno Haible  <bruno@clisp.org>
66615
66616         * modules/relocatable-script (Files): Add doc/relocatable.texi,
66617         m4/relocatable-lib.m4.
66618         (Depends-on): Remove 'relocatable'.
66619         (configure.ac): Add gl_RELOCATABLE_NOP.
66620
66621 2007-03-03  Bruno Haible  <bruno@clisp.org>
66622
66623         * modules/relocatable-prog-wrapper: New file.
66624         * modules/relocatable (Depends-on): Add it. Remove all other
66625         dependencies except progname.
66626         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
66627
66628         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
66629         (gl_FUNC_STRERROR): Nop.
66630         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
66631
66632         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
66633         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
66634
66635         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
66636         (gl_FUNC_READLINK): Update.
66637
66638         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
66639
66640 2007-03-03  Bruno Haible  <bruno@clisp.org>
66641
66642         * lib/xreadlink.c: Include <unistd.h> unconditionally.
66643         * modules/xreadlink (Depends-on): Add unistd.
66644         * modules/xreadlink-with-size (Depends-on): Likewise.
66645
66646 2007-03-03  Bruno Haible  <bruno@clisp.org>
66647
66648         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
66649         extracted from gt_FUNC_SETENV.
66650         (gt_FUNC_SETENV): Remove macro.
66651         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
66652         remove gt_FUNC_SETENV.
66653
66654 2007-03-03  Bruno Haible  <bruno@clisp.org>
66655
66656         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
66657         ENABLE_RELOCATABLE here.
66658         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
66659
66660 2007-03-03  Bruno Haible  <bruno@clisp.org>
66661
66662         * modules/rbtreehash-list-tests (Depends-on): Add progname.
66663         * tests/test-rbtreehash_list.c: Include progname.h.
66664         (main): Call set_program_name.
66665
66666         * modules/rbtree-oset-tests (Depends-on): Add progname.
66667         * tests/test-rbtree_oset.c: Include progname.h.
66668         (main): Call set_program_name.
66669
66670         * modules/rbtree-list-tests (Depends-on): Add progname.
66671         * tests/test-rbtree_list.c: Include progname.h.
66672         (main): Call set_program_name.
66673
66674         * modules/linked-list-tests (Depends-on): Add progname.
66675         * tests/test-linked_list.c: Include progname.h.
66676         (main): Call set_program_name.
66677
66678 2007-03-03  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
66681         All uses of __restrict changed to _Restrict_.
66682         * lib/glob_.h (__restrict): Remove macro.
66683
66684 2007-03-02  Bruno Haible  <bruno@clisp.org>
66685
66686         * modules/gettext (configure.ac): Require gettext infrastructure
66687         from version 0.16.1.
66688
66689 2007-03-02  Bruno Haible  <bruno@clisp.org>
66690
66691         * modules/linkedhash-list-tests (Depends-on): Add progname.
66692         * tests/test-linkedhash_list.c: Include progname.h.
66693         (main): Call set_program_name.
66694
66695         * modules/carray-list-tests (Depends-on): Add progname.
66696         * tests/test-carray_list.c: Include progname.h.
66697         (main): Call set_program_name.
66698
66699         * modules/avltreehash-list-tests (Depends-on): Add progname.
66700         * tests/test-avltreehash_list.c: Include progname.h.
66701         (main): Call set_program_name.
66702
66703         * modules/avltree-oset-tests (Depends-on): Add progname.
66704         * tests/test-avltree_oset.c: Include progname.h.
66705         (main): Call set_program_name.
66706
66707         * modules/avltree-list-tests (Depends-on): Add progname.
66708         * tests/test-avltree_list.c: Include progname.h.
66709         (main): Call set_program_name.
66710
66711         * modules/array-oset-tests (Depends-on): Add progname.
66712         * tests/test-array_oset.c: Include progname.h.
66713         (main): Call set_program_name.
66714
66715         * modules/array-list-tests (Depends-on): Add progname.
66716         * tests/test-array_list.c: Include progname.h.
66717         (main): Call set_program_name.
66718
66719         * modules/argp-tests (Depends-on): Add progname.
66720         * tests/test-argp.c: Include argp.h first. Include progname.h.
66721         (main): Call set_program_name.
66722
66723 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
66724
66725         * doc/gnulib-tool.texi (Initial import): Reword description of
66726         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
66727         limited effect even if defined after the first system include.
66728
66729 2007-03-01  Bruno Haible  <bruno@clisp.org>
66730
66731         * build-aux/config.libpath: Update to libtool-1.5.22.
66732         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66733
66734 2007-03-01  Bruno Haible  <bruno@clisp.org>
66735
66736         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
66737         foo_CFLAGS.
66738         Reported by Ralf Wildenhues.
66739
66740 2007-03-01  Bruno Haible  <bruno@clisp.org>
66741
66742         * build-aux/install-reloc: Remove object files left over by some
66743         compilers.
66744         Reported by Ralf Wildenhues.
66745
66746 2007-03-01  Bruno Haible  <bruno@clisp.org>
66747
66748         * build-aux/install-reloc: Break long lines.
66749
66750 2007-03-01  Bruno Haible  <bruno@clisp.org>
66751
66752         * doc/relocatable.texi: Document that it may not work on OpenBSD.
66753         Reported by Ralf Wildenhues.
66754
66755 2007-03-01  Bruno Haible  <bruno@clisp.org>
66756
66757         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
66758         include ordering constraints.
66759
66760 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
66763         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
66764         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
66765         as another example.
66766         * lib/time_.h: Fix misspelling.
66767         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66768         Require gl_HEADER_TIME_H_DEFAULTS.
66769         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
66770         * m4/time_r.m4 (gl_TIME_R): Likewise.
66771         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
66772
66773 2007-03-01  Bruno Haible  <bruno@clisp.org>
66774
66775         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
66776         * m4/utimens.m4 (gl_UTIMENS): Likewise.
66777
66778 2007-03-01  Jim Meyering  <jim@meyering.net>
66779
66780         * modules/xreadlink (Maintainer): Add my name.
66781         * modules/xreadlink-with-size (Depends-on): Alphabetize.
66782
66783 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
66784             Bruno Haible  <bruno@clisp.org>
66785
66786         * build-aux/install-reloc: Compile also c-ctype.c.
66787         * build-aux/relocatable.sh.in: New file.
66788         * doc/relocatable.texi: New file.
66789         * doc/relocatable-maint.texi: New file.
66790         * doc/gnulib.texi: Include relocatable-maint.texi.
66791         * lib/progreloc.c: Include unistd.h unconditionally.
66792         * lib/relocwrapper.c: Include unistd.h unconditionally.
66793         Include c-ctype.h.
66794         (add_dotbin): Use c_tolower.
66795         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
66796         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
66797         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
66798         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
66799         to m4/relocatable-lib.m4.
66800         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
66801         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
66802         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
66803         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
66804         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
66805         * modules/relocatable: New file.
66806         * modules/relocatable-lib: New file.
66807         * modules/relocatable-script: New file.
66808
66809 2007-02-28  Bruno Haible  <bruno@clisp.org>
66810
66811         Import --enable-relocatable infrastructure.
66812         * build-aux/config.libpath: New file, from GNU gettext.
66813         * build-aux/install-reloc: New file, from GNU gettext.
66814         * build-aux/reloc-ldflags: New file, from GNU gettext.
66815         * lib/relocatable.h: New file, from GNU gettext.
66816         * lib/relocatable.c: New file, from GNU gettext.
66817         * lib/relocwrapper.c: New file, from GNU gettext.
66818         * m4/relocatable.m4: New file, from GNU gettext.
66819
66820 2007-02-28  Bruno Haible  <bruno@clisp.org>
66821
66822         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
66823
66824         * modules/xreadlink: New file, from GNU gettext with modifications.
66825         * lib/xreadlink.c: New file, from GNU gettext.
66826         * lib/xreadlink.h: Add comments.
66827         (xreadlink): New declaration.
66828
66829         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
66830         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
66831         lib/xreadlink-with-size.c.
66832         (configure.ac): Remove gl_XREADLINK invocation.
66833         (Makefile.am): Augment lib_SOURCES.
66834         * m4/xreadlink.m4: Remove file.
66835         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
66836         (xreadlink_with_size): Renamed from xreadink.
66837         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
66838         * modules/canonicalize (Depends-on): Replace xreadlink with
66839         xreadlink-with-size.
66840         * lib/canonicalize.c (canonicalize_filename_mode): Update.
66841
66842 2007-02-25  Jim Meyering  <jim@meyering.net>
66843
66844         * build-aux/announce-gen: When complaining about excess arguments,
66845         list them.
66846
66847 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66848
66849         * README: Document signed integer overflow situation more
66850         accurately.
66851
66852 2007-02-25  Bruno Haible  <bruno@clisp.org>
66853
66854         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
66855         'a' or 'A' conversion.
66856
66857 2007-02-25  Bruno Haible  <bruno@clisp.org>
66858
66859         * modules/filename: Renamed from modules/pathname.
66860         (Files): Replace lib/pathname.h with lib/filename.h. Replace
66861         lib/concatpath.c with lib/concat-filename.c.
66862         (Makefile.am): Update.
66863         (Include): Replace pathname.h with filename.h.
66864         * lib/filename.h: Renamed from lib/pathname.h.
66865         (concatenated_filename): Renamed from concatenated_pathname.
66866         * lib/concat-filename.c: Renamed from lib/concatpath.c.
66867         (concatenated_filename): Renamed from concatenated_pathname.
66868         * lib/findprog.c: Include filename.h instead of pathname.h.
66869         (find_in_path): Update.
66870         * lib/javacomp.c: Include filename.h instead of pathname.h.
66871         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66872         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66873         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66874         is_oldgcj_14_13_usable, is_javac_usable): Update.
66875         * lib/javaexec.c: Include filename.h instead of pathname.h.
66876         (execute_java_class): Update.
66877         * modules/findprog: Update.
66878         * modules/javacomp: Update.
66879         * modules/javaexec: Update.
66880         * MODULES.html.sh (File system functions): Add 'filename', remove
66881         'pathname'.
66882
66883 2007-02-25  Bruno Haible  <bruno@clisp.org>
66884
66885         * modules/printf-frexpl-tests: New file.
66886         * tests/test-printf-frexpl.c: New file.
66887
66888         * modules/printf-frexpl: New file.
66889         * lib/printf-frexpl.h: New file.
66890         * lib/printf-frexpl.c: New file.
66891         * m4/printf-frexpl.m4: New file.
66892
66893 2007-02-25  Bruno Haible  <bruno@clisp.org>
66894
66895         * modules/printf-frexp-tests: New file.
66896         * tests/test-printf-frexp.c: New file.
66897
66898         * modules/printf-frexp: New file.
66899         * lib/printf-frexp.h: New file.
66900         * lib/printf-frexp.c: New file.
66901         * m4/printf-frexp.m4: New file.
66902
66903 2007-02-25  Bruno Haible  <bruno@clisp.org>
66904
66905         Assume automake >= 1.10 for the tests.
66906         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
66907         * modules/arctwo-tests: Likewise.
66908         * modules/argp-tests: Likewise.
66909         * modules/avltree-list-tests: Likewise.
66910         * modules/avltree-oset-tests: Likewise.
66911         * modules/avltreehash-list-tests: Likewise.
66912         * modules/carray-list-tests: Likewise.
66913         * modules/crc-tests: Likewise.
66914         * modules/des-tests: Likewise.
66915         * modules/gc-arcfour-tests: Likewise.
66916         * modules/gc-arctwo-tests: Likewise.
66917         * modules/gc-des-tests: Likewise.
66918         * modules/gc-hmac-md5-tests: Likewise.
66919         * modules/gc-hmac-sha1-tests: Likewise.
66920         * modules/gc-md2-tests: Likewise.
66921         * modules/gc-md4-tests: Likewise.
66922         * modules/gc-md5-tests: Likewise.
66923         * modules/gc-pbkdf2-sha1-tests: Likewise.
66924         * modules/gc-rijndael-tests: Likewise.
66925         * modules/gc-sha1-tests: Likewise.
66926         * modules/gc-tests: Likewise.
66927         * modules/getaddrinfo-tests: Likewise.
66928         * modules/hmac-md5-tests: Likewise.
66929         * modules/hmac-sha1-tests: Likewise.
66930         * modules/linked-list-tests: Likewise.
66931         * modules/linkedhash-list-tests: Likewise.
66932         * modules/lock-tests: Likewise.
66933         * modules/md2-tests: Likewise.
66934         * modules/md4-tests: Likewise.
66935         * modules/md5-tests: Likewise.
66936         * modules/rbtree-list-tests: Likewise.
66937         * modules/rbtree-oset-tests: Likewise.
66938         * modules/rbtreehash-list-tests: Likewise.
66939         * modules/read-file-tests: Likewise.
66940         * modules/rijndael-tests: Likewise.
66941         * modules/stdint-tests: Likewise.
66942         * modules/tls-tests: Likewise.
66943
66944 2007-02-24  Bruno Haible  <bruno@clisp.org>
66945
66946         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66947         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66948         function; instead check whether isnan with a double argument links.
66949         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66950         function; instead check whether isnan with a 'long double' argument
66951         links.
66952         Reported by Eric Blake <ebb9@byu.net>.
66953
66954 2007-02-24  Bruno Haible  <bruno@clisp.org>
66955
66956         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66957         defined.
66958         * lib/isnanl.c: Remove all code. Just include isnan.c.
66959         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66960
66961 2007-02-25  Jim Meyering  <jim@meyering.net>
66962
66963         Avoid conflicting types for 'unsetenv' on FreeBSD.
66964         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66965         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66966         in stdlib.h.
66967
66968 2007-02-24  Bruno Haible  <bruno@clisp.org>
66969
66970         * modules/isnanl-nolibm-tests: New file.
66971         * tests/test-isnanl.c: New file.
66972
66973         * modules/isnanl-nolibm: New file.
66974         * lib/isnanl.h: New file.
66975         * lib/isnanl.c: New file.
66976         * m4/isnanl.m4: New file.
66977
66978 2007-02-24  Bruno Haible  <bruno@clisp.org>
66979
66980         * modules/isnan-nolibm-tests: New file.
66981         * tests/test-isnan.c: New file.
66982
66983         * modules/isnan-nolibm: New file.
66984         * lib/isnan.h: New file.
66985         * lib/isnan.c: New file.
66986         * m4/isnan.m4: New file.
66987
66988 2007-02-24  Bruno Haible  <bruno@clisp.org>
66989
66990         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66991         assume that an exponent fits in 20 bits.
66992
66993 2007-02-24  Jim Meyering  <jim@meyering.net>
66994
66995         * m4/regex.m4: Update the description of the configure-time option,
66996         --without-included-regex, to state accurately what the defaults are,
66997         and perhaps to give people an idea why using this option is risky.
66998
66999 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67000
67001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67002         loops on small arguments.  This attempts to avoid the problem
67003         Bruno Haible reported for AIX 4.3.2 in
67004         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67005
67006 2007-02-23  Bruno Haible  <bruno@clisp.org>
67007
67008         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67009         Needed for help2man.
67010
67011 2007-02-23  Karl Berry  <karl@gnu.org>
67012
67013         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67014         exists, foo.h should be cvs-ignored, not committed.
67015
67016 2007-02-23  Eric Blake  <ebb9@byu.net>
67017
67018         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67019         * lib/stat-time.h (includes): Likewise.
67020         * lib/utimecmp.c (includes): Likewise.
67021         * lib/utimens.h (includes): Likewise.
67022         * lib/getdate.y (includes): Also include "timespec.h" for use
67023         internal to the module.
67024         * modules/utimens (Depends-on): Revert yesterday's patch.
67025         * modules/nanosleep (Depends-on): Add missing dependency.
67026
67027 2007-02-22  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/glob.c: Don't include getlogin_r.h.
67030
67031 2007-02-22  Jim Meyering  <jim@meyering.net>
67032
67033         * modules/utimens (Depends-on): Add timespec, required for
67034         utimens.h's inclusion of timespec.h.
67035
67036 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67037
67038         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67039         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67040         Schwab in
67041         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67042         I'll try to think of a better way to fix the Solaris problem.
67043
67044         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67045         like glibc; on Solaris 10, it fails with errno == EINVAL.
67046         POSIX says the behavior is unspecified if the first argument is NULL,
67047         so play it safe and never pass NULL to the system getcwd.
67048
67049 2007-02-21  Jim Meyering  <jim@meyering.net>
67050
67051         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67052         of gettimeofday.  It would conflict with the one now always
67053         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67054         an IRIX 6.5 build failure.
67055
67056 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67057
67058         Minor fixups to port to Solaris 10 with Sun C 5.8.
67059         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67060         * modules/getcwd (Depends-on): Add dirfd.
67061         * lib/putenv.c (putenv): #undef it.
67062         (rpl_putenv): New decl.
67063         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67064
67065 2007-02-20  Bruno Haible  <bruno@clisp.org>
67066
67067         * modules/stdio-tests: New file.
67068         * tests/test-stdio.c: New file.
67069
67070         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67071         (Depends-on): Add stdio.
67072         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67073         (Include): Use <stdio.h> instead of vsnprintf.h.
67074         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67075         HAVE_DECL_VSNPRINTF.
67076         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67077
67078         * modules/snprintf (Files): Remove lib/snprintf.h.
67079         (Depends-on): Add stdio.
67080         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67081         (Include): Use <stdio.h> instead of snprintf.h.
67082         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67083         HAVE_DECL_SNPRINTF.
67084         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67085         * lib/getaddrinfo.c: Likewise.
67086
67087         * modules/stdio: New file.
67088         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67089         * lib/snprintf.h: Remove file.
67090         * lib/vsnprintf.h: Remove file.
67091         * lib/.cppi-disable: Remove snprintf.h.
67092         * m4/stdio_h.m4: New file.
67093         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67094
67095 2007-02-20  Jim Meyering  <jim@meyering.net>
67096
67097         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67098         used by e.g., mingw.  From Bruno Haible.
67099
67100 2007-02-19  Bruno Haible  <bruno@clisp.org>
67101
67102         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67103         warnings.
67104         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67105
67106 2007-02-19  Bruno Haible  <bruno@clisp.org>
67107
67108         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67109         from mingw users.
67110
67111 2007-02-19  Bruno Haible  <bruno@clisp.org>
67112
67113         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67114         warnings.
67115         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67116
67117 2007-02-19  Jim Meyering  <jim@meyering.net>
67118
67119         Don't use FD after a successful "fdopendir (fd)".
67120         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67121         Reset it by calling dirfd on the just-obtained DIR*.
67122
67123         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67124         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67125
67126 2007-02-18  Bruno Haible  <bruno@clisp.org>
67127
67128         * lib/readlink.c: Include <unistd.h>.
67129         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67130         HAVE_READLINK.
67131         * modules/readlink (Depends-on): Add unistd.
67132         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67133         (Include): Add <unistd.h>.
67134
67135         * lib/getlogin_r.h: Remove file.
67136         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67137         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67138         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67139         HAVE_DECL_GETLOGIN_R.
67140         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67141         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67142         (Include): Use <unistd.h> instead of getlogin_r.h.
67143
67144         * lib/getcwd.h: Remove file.
67145         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67146         * lib/xgetcwd.c: Likewise.
67147         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67148         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67149         * modules/getcwd (Files): Remove lib/getcwd.h.
67150         (Depends-on): Add unistd.
67151         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67152         (Include): Use <unistd.h> instad of getcwd.h.
67153
67154         * lib/ftruncate.c: Include <unistd.h> first.
67155         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67156         Set HAVE_FTRUNCATE.
67157         * modules/ftruncate (Depends-on): Add unistd.
67158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67159
67160         * lib/fchdir.c: Include <unistd.h> first.
67161         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67162         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67163         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67164         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67165         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67166
67167         * lib/dup2.c: Include <unistd.h> first.
67168         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67169         HAVE_DUP2.
67170         * modules/dup2 (Depends-on): Add unistd.
67171         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67172
67173         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67174         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67175         REPLACE_CHOWN. Don't define chown as a macro here.
67176         * modules/chown (Depends-on): Add unistd.
67177         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67178
67179         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67180         Add definition for GL_LINK_WARNING.
67181         (chown, dup2): New declarations.
67182         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67183         link warning.
67184         (ftruncate): New declaration.
67185         (getcwd): New declaration, taken from old getcwd.h.
67186         (getlogin_r): New declaration, taken from old getlogin_r.h.
67187         (readlink): New declaration.
67188         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67189         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67190         (gl_PREREQ_UNISTD): Remove macro.
67191         (gl_UNISTD_MODULE_INDICATOR): New macro.
67192         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67193         many new variables. Don't set UNISTD_H.
67194         * modules/unistd (Description): Change.
67195         (Depends-on): Add link-warning.
67196         (configure.ac): Update.
67197         (Makefile.am): Create unistd.h always. Substitute many new variables
67198         into it.
67199
67200 2007-02-18  Bruno Haible  <bruno@clisp.org>
67201
67202         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67203         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67204         HAVE_GETSUBOPT.
67205         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67206         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67207         * lib/getsubopt.h: Remove file.
67208         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67209         (Depends-on): Add stdlib.
67210         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67211         (Includes): Use <stdlib.h> instead of getsubopt.h.
67212         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67213         Set HAVE_GETSUBOPT.
67214         * lib/getsubopt.c: Don't include getsubopt.h.
67215
67216 2007-02-18  Bruno Haible  <bruno@clisp.org>
67217
67218         * modules/fchdir (Depends-on): Add dup2.
67219
67220 2007-02-18  Bruno Haible  <bruno@clisp.org>
67221
67222         * lib/stdlib_.h: Handle glibc's special invocation convention
67223         specially.
67224
67225 2007-02-18  Bruno Haible  <bruno@clisp.org>
67226
67227         * modules/stdlib-tests: New file.
67228         * tests/test-stdlib.c: New file.
67229
67230         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67231         (Depends-on): Add stdlib.
67232         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67233         (Includes): Use <stdlib.h> instead of mkstemp.h.
67234         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67235         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67236         * lib/mkstemp.c: Don't include mkstemp.h.
67237         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67238         * lib/stdlib--.h: Don't include mkstemp.h.
67239
67240         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67241         (Depends-on): Add stdlib.
67242         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67243         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67244         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67245         HAVE_MKDTEMP.
67246         * lib/mkdtemp.c: Don't include mkdtemp.h.
67247         * lib/clean-temp.c: Don't include mkdtemp.h.
67248
67249         * modules/exit (Files): Remove lib/exit.h.
67250         (Depends-on): Add stdlib.
67251         (Makefile.am): Remove lib_SOURCES.
67252         (Include): Use <stdlib.h> instead of exit.h.
67253         * lib/argmatch.c: Don't include exit.h.
67254         * lib/execute.c: Likewise.
67255         * lib/pagealign_alloc.c: Likewise.
67256         * lib/pipe.c: Likewise.
67257         * lib/wait-process.c: Likewise.
67258         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67259         * lib/exitfail.c: Likewise.
67260         * lib/savewd.c: Likewise.
67261         * lib/xsetenv.c: Likewise.
67262
67263         * modules/stdlib: New file.
67264         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67265         and extra comments about mkstemp().
67266         * lib/exit.h: Remove file.
67267         * lib/mkdtemp.h: Remove file.
67268         * lib/mkstemp.h: Remove file.
67269         * m4/stdlib_h.m4: New file.
67270         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67271
67272 2007-02-18  Bruno Haible  <bruno@clisp.org>
67273
67274         * modules/math-tests: New file.
67275         * tests/test-math.c: New file.
67276
67277         * modules/math: New file.
67278         * modules/mathl (Files): Remove lib/mathl.h.
67279         (Depends-on): Add math.
67280         (Makefile.am): Don't mention mathl.h.
67281         (Include): Use <math.h> instead of mathl.h.
67282         * lib/math_.h: New file.
67283         * lib/mathl.h: Remove file.
67284         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67285         mathl.h.
67286         * lib/asinl.c: Likewise.
67287         * lib/atanl.c: Likewise.
67288         * lib/ceill.c: Likewise.
67289         * lib/cosl.c: Likewise.
67290         * lib/expl.c: Likewise.
67291         * lib/floorl.c: Likewise.
67292         * lib/frexpl.c: Likewise.
67293         * lib/ldexpl.c: Likewise.
67294         * lib/logl.c: Likewise.
67295         * lib/sincosl.c: Likewise.
67296         * lib/sinl.c: Likewise.
67297         * lib/sqrtl.c: Likewise.
67298         * lib/tanl.c: Likewise.
67299         * lib/trigl.c: Likewise.
67300         * m4/math_h.m4: New file.
67301         * MODULES.html.sh (Mathematics): Add math.
67302
67303 2007-02-17  Bruno Haible  <bruno@clisp.org>
67304
67305         * modules/wctype-tests: New file.
67306         * tests/test-wctype.c: New file.
67307
67308         * modules/wchar-tests: New file.
67309         * tests/test-wchar.c: New file.
67310
67311         * modules/unistd-tests: New file.
67312         * tests/test-unistd.c: New file.
67313
67314         * modules/time-tests: New file.
67315         * tests/test-time.c: New file.
67316
67317         * modules/sysexits-tests: New file.
67318         * tests/test-sysexits.c: New file.
67319
67320         * modules/sys_time-tests: New file.
67321         * tests/test-sys_time.c: New file.
67322
67323         * modules/sys_stat-tests: New file.
67324         * tests/test-sys_stat.c: New file.
67325
67326         * modules/sys_socket-tests: New file.
67327         * tests/test-sys_socket.c: New file.
67328
67329         * modules/sys_select-tests: New file.
67330         * tests/test-sys_select.c: New file.
67331
67332         * modules/string-tests: New file.
67333         * tests/test-string.c: New file.
67334
67335         * modules/stdbool-tests: New file.
67336         * tests/test-stdbool.c: New file.
67337
67338         * modules/netinet_in-tests: New file.
67339         * tests/test-netinet_in.c: New file.
67340
67341         * modules/inttypes-tests: New file.
67342         * tests/test-inttypes.c: New file.
67343
67344         * modules/fcntl-tests: New file.
67345         * tests/test-fcntl.c: New file.
67346
67347         * modules/byteswap-tests: New file.
67348         * tests/test-byteswap.c: New file.
67349
67350         * modules/arpa_inet-tests: New file.
67351         * tests/test-arpa_inet.c: New file.
67352
67353 2007-02-17  Bruno Haible  <bruno@clisp.org>
67354
67355         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67356         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67357         if the corresponding module is not enabled. Emit link warnings if
67358         the function is used nevertheless.
67359         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67360         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67361         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67362         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67363         * modules/inttypes (Depends-on): Add link-warning.
67364         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67365         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67366         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67367         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67368         * modules/imaxdiv (configure.ac): Likewise.
67369         * modules/strtoimax (configure.ac): Likewise.
67370         * modules/strtoumax (configure.ac): Likewise.
67371
67372 2007-02-17  Bruno Haible  <bruno@clisp.org>
67373
67374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67375         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67376         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67377         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67378
67379 2007-02-17  Bruno Haible  <bruno@clisp.org>
67380
67381         * modules/link-warning: New file.
67382         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67383         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67384         * modules/string (Depends-on): Add link-warning.
67385         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67386         string.h.
67387         * MODULES.html.sh (Support for building libraries and executables): Add
67388         link-warning.
67389
67390 2007-02-17  Bruno Haible  <bruno@clisp.org>
67391
67392         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67393         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67394         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67395         long lines.
67396
67397 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67398             Bruno Haible  <bruno@clisp.org>
67399
67400         * modules/tmpfile: New file.
67401         * lib/tmpfile.c: New file.
67402         * m4/tmpfile.m4: New file.
67403         * MODULES.html.sh (func_all_modules): New section "Input/output".
67404
67405 2007-02-15  Bruno Haible  <bruno@clisp.org>
67406
67407         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67408         (supports_delete_on_close): New function.
67409         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67410
67411 2007-02-14  Bruno Haible  <bruno@clisp.org>
67412
67413         * modules/mbspcasecmp-tests: New file.
67414         * tests/test-mbspcasecmp.sh: New file.
67415         * tests/test-mbspcasecmp.c: New file.
67416
67417         New module mbspcasecmp.
67418         * modules/mbspcasecmp: New file.
67419         * lib/mbspcasecmp.c: New file.
67420         * lib/string_.h (strncasecmp): Change warning message.
67421         (mbspcasecmp): New declaration.
67422         * m4/mbspcasecmp.m4: New file.
67423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67424         GNULIB_MBSPCASECMP.
67425         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67426         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67427
67428 2007-02-14  Bruno Haible  <bruno@clisp.org>
67429
67430         * modules/mbsncasecmp-tests: New file.
67431         * tests/test-mbsncasecmp.sh: New file.
67432         * tests/test-mbsncasecmp.c: New file.
67433
67434         New module mbsncasecmp.
67435         * modules/mbsncasecmp: New file.
67436         * lib/mbsncasecmp.c: New file.
67437         * lib/string_.h (mbsncasecmp): New declaration.
67438         * m4/mbsncasecmp.m4: New file.
67439         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67440         GNULIB_MBSNCASECMP.
67441         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67442         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67443
67444 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67445
67446         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67447         Verify that it doesn't overlap with our flags.
67448         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67449         do not have the desired effect in multibyte locales; instead, use
67450         mbscasecmp.
67451         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67452         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67453         we don't require GNU fnmatch ourselves (if our users require it, they
67454         should do so explicitly).
67455
67456         Fix regex code so it doesn't rely on strcasecmp.
67457         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67458         Otherwise, include gnulib's langinfo.h.
67459         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67460         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67461         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67462         * modules/regex (FILES): Remove m4/codeset.m4.
67463         (Depends-on): Add localcharset.  Remove strcase.
67464
67465 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67466
67467         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67468         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67469
67470 2007-02-13  Bruno Haible  <bruno@clisp.org>
67471
67472         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67473         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67474
67475 2007-02-12  Bruno Haible  <bruno@clisp.org>
67476
67477         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67478         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67479         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67480         time warning rather than a link error.
67481
67482 2007-02-12  Bruno Haible  <bruno@clisp.org>
67483
67484         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67485         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67486         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67487
67488 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67489
67490         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67491         args, not 2.
67492
67493 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67494
67495         New module 'time', so that apps can include <time.h> as per
67496         POSIX and GNU instead of separate include files like time_r.h
67497         and timegm.h.  This implementation tries out a simpler approach
67498         for replacing decls in standard include files (as compared to
67499         the string module), somewhat as an experiment.
67500
67501         * config/srclist.txt: Comment out mktime.c for now.
67502         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67503         since it doesn't apply any more.  Use generic wording instead.
67504         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67505         'time'.
67506         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67507         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67508         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67509         Don't include <sys/types.h>; no longer needed since we assume C89.
67510         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67511         * lib/strftime.c: Likewise.
67512         * lib/time_r.c: Likewise.
67513         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67514         * lib/nanosleep.c: Include <time.h> first, to check interface.
67515         * lib/strptime.c: Likewise.
67516         * lib/time_r.c: Likewise.
67517         * lib/timegm.c: Likewise.
67518         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67519         needed.
67520         * lib/timegm.c: Don't include timegm.h; no longer needed.
67521         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67522         time.h now handles any problems in that area.
67523         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67524         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67525         that time.h defines struct timespec.
67526         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67527         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67528         handles that.
67529         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67530         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67531         needed.  Set REPLACE_LOCALTIME.
67532         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67533         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67534         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67535         nanosleep; time_h.m4 now does that.  Don't require
67536         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67537         module handles this now.
67538         * modules/getdate (Depends-on): Remove timespec.  Add time.
67539         * modules/nanosleep (Depends-on): Likewise.
67540         * modules/stat-time (Depends-on): Likewise.
67541         * modules/nanosleep (Include): Include time.h, not timespec.h.
67542         * modules/strptime (Files): Remove lib/strptime.h.
67543         (Depends-on): Add extensions, time.
67544         (Include): Include time.h, not strptime.h.
67545         * modules/time_r (Files): Remove lib/time_r.h.
67546         (Depends-on): Add time.
67547         (Include): Include time.h, not time_r.h.
67548         * modules/timegm: Likewise.
67549         * modules/timespec (Description): Now does timespec-related decls
67550         of our own, instead of struct timespec itself.
67551         (Depends-on): Add time; remove extensions.
67552         (Maintainer): Add self.
67553         * modules/utimecmp (Depends-on): Add time; remove timespec.
67554         * modules/utimens (Depends-on): Likewise.
67555         * modules/xnanosleep (Depends-on): Likewise.
67556
67557 2007-02-11  Bruno Haible  <bruno@clisp.org>
67558
67559         * lib/c-strstr.c: Include allocsa.h.
67560         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67561         * lib/c-strcasestr.c: Include allocsa.h.
67562         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67563         * lib/strcasestr.c: Include allocsa.h.
67564         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67565         * lib/mbsstr.c: Include allocsa.h.
67566         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67567         allocsa/freesa instead of malloc/free.
67568         * lib/mbscasestr.c: Include allocsa.h.
67569         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67570         allocsa/freesa instead of malloc/free.
67571         * modules/c-strstr (Depends-on): Add allocsa.
67572         * modules/c-strcasestr (Depends-on): Likewise.
67573         * modules/strcasestr (Depends-on): Likewise.
67574         * modules/mbsstr (Depends-on): Likewise.
67575         * modules/mbscasestr (Depends-on): Likewise.
67576
67577 2007-02-11  Bruno Haible  <bruno@clisp.org>
67578
67579         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67580
67581         * modules/mbsspn-tests: New file.
67582         * tests/test-mbsspn.sh: New file.
67583         * tests/test-mbsspn.c: New file.
67584
67585 2007-02-11  Bruno Haible  <bruno@clisp.org>
67586
67587         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67588
67589         * modules/mbspbrk-tests: New file.
67590         * tests/test-mbspbrk.sh: New file.
67591         * tests/test-mbspbrk.c: New file.
67592
67593 2007-02-11  Bruno Haible  <bruno@clisp.org>
67594
67595         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67596         unneeded cast.
67597
67598         * modules/mbscspn-tests: New file.
67599         * tests/test-mbscspn.sh: New file.
67600         * tests/test-mbscspn.c: New file.
67601
67602 2007-02-11  Bruno Haible  <bruno@clisp.org>
67603
67604         * modules/mbscasecmp-tests: New file.
67605         * tests/test-mbscasecmp.sh: New file.
67606         * tests/test-mbscasecmp.c: New file.
67607
67608 2007-02-11  Bruno Haible  <bruno@clisp.org>
67609
67610         Ensure O(n) worst-case complexity of mbscasestr.
67611         * lib/mbscasestr.c: Include stdbool.h.
67612         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67613         functions.
67614         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
67615         the bookkeeping indicates that it's worth it.
67616         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
67617
67618         * modules/mbscasestr-tests: New file.
67619         * tests/test-mbscasestr1.c: New file.
67620         * tests/test-mbscasestr2.sh: New file.
67621         * tests/test-mbscasestr2.c: New file.
67622         * tests/test-mbscasestr3.sh: New file.
67623         * tests/test-mbscasestr3.c: New file.
67624         * tests/test-mbscasestr4.sh: New file.
67625         * tests/test-mbscasestr4.c: New file.
67626         * m4/locale-tr.m4: New file.
67627
67628 2007-02-11  Bruno Haible  <bruno@clisp.org>
67629
67630         Ensure O(n) worst-case complexity of mbsstr.
67631         * lib/mbsstr.c: Include stdbool.h.
67632         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67633         functions.
67634         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
67635         bookkeeping indicates that it's worth it.
67636         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
67637
67638         * modules/mbsstr-tests: New file.
67639         * tests/test-mbsstr1.c: New file.
67640         * tests/test-mbsstr2.sh: New file.
67641         * tests/test-mbsstr2.c: New file.
67642         * tests/test-mbsstr3.sh: New file.
67643         * tests/test-mbsstr3.c: New file.
67644         * m4/locale-fr.m4: New file.
67645
67646 2007-02-11  Bruno Haible  <bruno@clisp.org>
67647
67648         * lib/mbsrchr.c (mbsrchr): Fix bug.
67649
67650         * modules/mbsrchr-tests: New file.
67651         * tests/test-mbsrchr.sh: New file.
67652         * tests/test-mbsrchr.c: New file.
67653
67654 2007-02-11  Bruno Haible  <bruno@clisp.org>
67655
67656         * lib/mbschr.c (mbschr): Fix bug.
67657
67658         * modules/mbschr-tests: New file.
67659         * tests/test-mbschr.sh: New file.
67660         * tests/test-mbschr.c: New file.
67661         * m4/locale-zh.m4: New file.
67662
67663 2007-02-11  Bruno Haible  <bruno@clisp.org>
67664
67665         Support for copying multibyte string iterators.
67666         * lib/mbiter.h: Include <string.h>.
67667         (mbiter_multi_copy): New function.
67668         (mbi_copy): New macro.
67669         * lib/mbuiter.h: Include <string.h>.
67670         (mbuiter_multi_copy): New function.
67671         (mbui_copy): New macro.
67672
67673 2007-02-11  Bruno Haible  <bruno@clisp.org>
67674
67675         New module mbslen.
67676         * modules/mbslen: New file.
67677         * lib/mbslen.c: New file.
67678         * lib/string_.h (mbslen): New declaration.
67679         * m4/mbslen.m4: New file.
67680         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67681         GNULIB_MBSLEN.
67682         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
67683         * MODULES.html.sh (Internationalization functions): Add mbslen.
67684
67685 2007-02-11  Bruno Haible  <bruno@clisp.org>
67686
67687         Ensure O(n) worst-case complexity of strcasestr substitute.
67688         * lib/strcasestr.c: Include stdbool.h.
67689         (knuth_morris_pratt): New function.
67690         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67691         bookkeeping indicates that it's worth it.
67692         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
67693
67694         * modules/strcasestr-tests: New file.
67695         * tests/test-strcasestr.c: New file.
67696
67697 2007-02-11  Bruno Haible  <bruno@clisp.org>
67698
67699         Ensure O(n) worst-case complexity of c_strcasestr.
67700         * lib/c-strcasestr.c: Include stdbool.h, string.h.
67701         (knuth_morris_pratt): New function.
67702         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
67703         the bookkeeping indicates that it's worth it.
67704         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
67705
67706         * modules/c-strcasestr-tests: New file.
67707         * tests/test-c-strcasestr.c: New file.
67708
67709 2007-02-11  Bruno Haible  <bruno@clisp.org>
67710
67711         Ensure O(n) worst-case complexity of c_strstr.
67712         * lib/c-strstr.c: Include stdbool.h, string.h.
67713         (knuth_morris_pratt): New function.
67714         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67715         bookkeeping indicates that it's worth it.
67716         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
67717
67718         * lib/c-strstr.c: Complete rewrite for maintainability.
67719
67720         * modules/c-strstr-tests: New file.
67721         * tests/test-c-strstr.c: New file.
67722
67723 2007-02-11  Bruno Haible  <bruno@clisp.org>
67724
67725         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
67726         5.2.1 and earlier, whereby \055 was treated just like the range
67727         delimiter '-'.
67728         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67729
67730 2007-02-08  Bruno Haible  <bruno@clisp.org>
67731
67732         * modules/regex (Depends-on): Add stdbool.
67733         Reported by Dalibor Topic <robilad@kaffe.org>.
67734
67735 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67736
67737         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67738         Prefer returning from main to exiting from it.
67739         Remove unnecessary parens after sizeof.
67740
67741 2007-02-05  Bruno Haible  <bruno@clisp.org>
67742
67743         New module mbssep.
67744         * modules/mbssep: New file.
67745         * lib/mbssep.c: New file.
67746         * lib/string_.h (strsep): Add a conditional link warning.
67747         (mbssep): New declaration.
67748         * m4/mbssep.m4: New file.
67749         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67750         GNULIB_MBSSEP.
67751         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
67752         * MODULES.html.sh (Internationalization functions): Add mbssep.
67753
67754 2007-02-05  Bruno Haible  <bruno@clisp.org>
67755
67756         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
67757         Optimize search in case of 1 delimiter.
67758
67759 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67760
67761         * lib/acl.h: Include sys/types.h before sys/acl.h.
67762
67763 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67764
67765         Merge upstream fix for glibc bugzilla #3957:
67766
67767         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
67768
67769         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
67770         bit for RE_HAT_LISTS_NOT_NEWLINE.
67771         (build_charclass_op): Remove bogus comment.
67772
67773 2007-02-05  Simon Josefsson  <simon@josefsson.org>
67774
67775         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
67776
67777 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67778
67779         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
67780         * lib/memmem.c [!defined _LIBC]: Include config.h.
67781
67782 2007-02-04  Bruno Haible  <bruno@clisp.org>
67783
67784         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
67785         warning message.
67786
67787 2007-02-04  Bruno Haible  <bruno@clisp.org>
67788
67789         New module mbstok_r.
67790         * modules/mbstok_r: New file.
67791         * lib/mbstok_r.c: New file.
67792         * lib/string_.h (strtok_r): Change argument names to match the
67793         comments. Add a conditional link warning.
67794         (mbstok_r): New declaration.
67795         * m4/mbstok_r.m4: New file.
67796         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67797         GNULIB_MBSTOK_R.
67798         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
67799         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
67800
67801 2007-02-04  Bruno Haible  <bruno@clisp.org>
67802
67803         New module mbsspn.
67804         * modules/mbsspn: New file.
67805         * lib/mbsspn.c: New file.
67806         * lib/string_.h (strspn): Add a conditional link warning.
67807         (mbsspn): New declaration.
67808         * m4/mbsspn.m4: New file.
67809         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67810         GNULIB_MBSSPN.
67811         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
67812         * MODULES.html.sh (Internationalization functions): Add mbsspn.
67813
67814 2007-02-04  Bruno Haible  <bruno@clisp.org>
67815
67816         New module mbspbrk.
67817         * modules/mbspbrk: New file.
67818         * lib/mbspbrk.c: New file.
67819         * lib/string_.h (strpbrk): Add a conditional link warning.
67820         (mbspbrk): New declaration.
67821         * m4/mbspbrk.m4: New file.
67822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67823         GNULIB_MBSPBRK.
67824         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
67825         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
67826
67827 2007-02-04  Bruno Haible  <bruno@clisp.org>
67828
67829         New module mbscspn.
67830         * modules/mbscspn: New file.
67831         * lib/mbscspn.c: New file.
67832         * lib/string_.h (strcspn): Add a conditional link warning.
67833         (mbscspn): New declaration.
67834         * m4/mbscspn.m4: New file.
67835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67836         GNULIB_MBSCSPN.
67837         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
67838         * MODULES.html.sh (Internationalization functions): Add mbscspn.
67839
67840 2007-02-04  Bruno Haible  <bruno@clisp.org>
67841
67842         New module mbscasestr, reduced goal of strcasestr.
67843         * modules/mbscasestr: New file.
67844         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
67845         (mbscasestr): Renamed from strcasestr.
67846         * lib/strcasestr.c: Don't include mbuiter.h.
67847         (strcasestr): Remove support for multibyte locales.
67848         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
67849         Change the conditional link warning.
67850         (mbscasestr): New declaration.
67851         * m4/mbscasestr.m4: New file.
67852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
67853         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
67854         REPLACE_STRCASESTR.
67855         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
67856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67857         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67858         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
67859         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
67860         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67861         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
67862         (Depends-on): Remove mbuiter.
67863         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
67864
67865 2007-02-04  Bruno Haible  <bruno@clisp.org>
67866
67867         Simplify handling of strncasecmp.
67868         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
67869         the conditional link warning.
67870         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67871         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
67872         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
67873         * modules/strcase (configure.ac): Don't invoke
67874         gl_STRING_MODULE_INDICATOR.
67875         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
67876
67877 2007-02-04  Bruno Haible  <bruno@clisp.org>
67878
67879         New module mbscasecmp, reduced goal of strcasecmp.
67880         * modules/mbscasecmp: New file.
67881         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
67882         (mbscasecmp): Renamed from strcasecmp.
67883         * lib/strcasecmp.c: Don't include mbuiter.h.
67884         (strcasecmp): Remove support for multibyte locales.
67885         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
67886         Change the conditional link warning.
67887         (mbscasecmp): New declaration.
67888         * m4/mbscasecmp.m4: New file.
67889         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
67890         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
67891         REPLACE_STRCASECMP.
67892         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
67893         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67894         GNULIB_MBSCASECMP.
67895         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
67896         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
67897         * modules/strcase (Files): Remove m4/mbrtowc.m4.
67898         (Depends-on): Remove mbuiter.
67899         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
67900
67901 2007-02-04  Bruno Haible  <bruno@clisp.org>
67902
67903         New module mbsstr. Remove module strstr.
67904         * modules/mbsstr: New file.
67905         * modules/strstr: Remove file.
67906         * lib/mbsstr.c: Renamed from lib/strstr.c.
67907         (mbsstr): Renamed from strstr.
67908         * lib/string_.h (strstr): Remove declaration. Change the conditional
67909         link warning.
67910         (mbsstr): New declaration.
67911         * m4/mbsstr.m4: New file.
67912         * m4/strstr.m4: Remove file.
67913         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67914         REPLACE_STRSTR.
67915         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
67916         Don't initialize GNULIB_STRSTR.
67917         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
67918         substitute GNULIB_STRSTR and REPLACE_STRSTR.
67919         * MODULES.html.sh (Internationalization functions): Add mbsstr.
67920         (Support for systems lacking ANSI C 89): Remove strstr.
67921
67922 2007-02-04  Bruno Haible  <bruno@clisp.org>
67923
67924         New module mbsrchr.
67925         * modules/mbsrchr: New file.
67926         * lib/mbsrchr.c: New file.
67927         * lib/string_.h (strrchr): Add a conditional link warning.
67928         (mbsrchr): New declaration.
67929         * m4/mbsrchr.m4: New file.
67930         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67931         GNULIB_MBSRCHR.
67932         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
67933         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67934
67935 2007-02-04  Bruno Haible  <bruno@clisp.org>
67936
67937         New module mbschr.
67938         * modules/mbschr: New file.
67939         * lib/mbschr.c: New file.
67940         * lib/string_.h (strchr): Add a conditional link warning.
67941         (mbschr): New declaration.
67942         * m4/mbschr.m4: New file.
67943         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67944         GNULIB_MBSCHR.
67945         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
67946         * MODULES.html.sh (Internationalization functions): Add mbschr.
67947
67948 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67949
67950         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67951
67952         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67953
67954 2007-02-04  Bruno Haible  <bruno@clisp.org>
67955
67956         New module description section 'configure.ac-early'.
67957         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67958         (func_get_autoconf_early_snippet): New function.
67959         (func_import, func_create_testdir): Use it. Remove special cases for
67960         modules 'extensions' and 'lock'.
67961         * modules/extensions (configure.ac-early): Require
67962         gl_USE_SYSTEM_EXTENSIONS.
67963         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67964
67965 2007-02-04  Bruno Haible  <bruno@clisp.org>
67966
67967         Make use of gcj-4.3's -fsource and -ftarget option.
67968         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67969         and if so try the options -fsource and -ftarget.
67970         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67971         source_version, ftarget_option, target_version arguments.
67972         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67973         (is_envjavac_oldgcj_14_14_usable): Renamed from
67974         is_envjavac_gcj_14_14_usable.
67975         (is_envjavac_oldgcj_14_13_usable): Renamed from
67976         is_envjavac_gcj_14_13_usable.
67977         (is_gcj_present): Update.
67978         (is_gcj_43, is_gcj43_usable): New functions.
67979         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67980         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67981         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67982         try the options -fsource and -ftarget.
67983
67984 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67985
67986         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67987         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67988         larger value.
67989
67990 2007-02-03  Jim Meyering  <jim@meyering.net>
67991
67992         Give tools a better chance to allocate space for very large buffers.
67993         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67994
67995         Make pwd and readlink work also when run with an unreadable parent dir
67996         on systems with openat support.
67997         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67998         provided getcwd function, even when we have openat support.
67999         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68000
68001 2007-02-02  Bruno Haible  <bruno@clisp.org>
68002
68003         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68004         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68005         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68006         portability problems if one of these functions is only used on specific
68007         platforms.
68008         Reported by Paul Eggert.
68009
68010 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68013         is causing more trouble than it's curing.
68014         * lib/regex_internal.h (__mempcpy): Remove.
68015         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68016         (and make the code a tad smaller to boot).
68017         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68018
68019 2007-02-02  Jim Meyering  <jim@meyering.net>
68020
68021         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68022         section, not in the Makefile.am: one.
68023
68024 2007-02-02  Eric Blake  <ebb9@byu.net>
68025
68026         * lib/strchrnul.c: Always include config.h first.
68027
68028         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68029         gnulib strstr is not necessary here.
68030
68031 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68032
68033         * m4/socklen.m4: Fix typo.
68034
68035 2007-02-02  Eric Blake  <ebb9@byu.net>
68036
68037         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68038         * modules/netinet_in (Makefile.am): Likewise.
68039
68040 2007-02-01  Bruno Haible  <bruno@clisp.org>
68041
68042         * lib/string_.h (GL_LINK_WARNING): New macro.
68043         (strcasecmp, strstr, strcasestr): If provided by the system,
68044         conditionally define as a macro that leads to a warning instead of to
68045         an error.
68046         (strncasecmp): Conditionally define as a macro that leads to a warning.
68047
68048 2007-02-01  Karl Berry  <karl@gnu.org>
68049
68050         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68051
68052 2007-02-01  Bruno Haible  <bruno@clisp.org>
68053
68054         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68055         renamings.
68056
68057 2007-02-01  Eric Blake  <ebb9@byu.net>
68058
68059         * modules/regex (Depends-on): Revert dependence on mempcpy.
68060         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68061         module's definition of mempcpy.
68062         Reported by Paul Eggert.
68063
68064 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68065
68066         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68067         the symbol XYZ before redefining it.  This fixes a problem with
68068         programs that don't use XYZ, when compiled on systems that define
68069         XYZ to something else.
68070
68071 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68072
68073         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68074         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68075         writeable to group or other and (2) is intended to have a special
68076         mode bit that is set or cleared.  In such a case, the directory
68077         should be neither group- nor other-writeable until the special
68078         mode bits are right.
68079
68080 2007-01-31  Eric Blake  <ebb9@byu.net>
68081
68082         * modules/mountlist (Depends-on): Add strstr.
68083
68084         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68085         bug.
68086         * modules/string (Makefile.am): Remove redundant replacement.
68087         * modules/regex (Depends-on): Add mempcpy.
68088
68089 2007-01-31  Bruno Haible  <bruno@clisp.org>
68090
68091         New module description field 'Link'.
68092         * gnulib-tool (func_usage): Document --extract-link-directive.
68093         (sed_extract_prog): Recognize 'Link' directive.
68094         (func_get_link_directive): New function.
68095         (func_import): Show summary of link directives.
68096         Handle --extract-link-directive option.
68097         * modules/acl (Link): New section.
68098         * modules/clock-time (Link): New section.
68099         * modules/euidaccess (Link): New section.
68100         * modules/gettext (Link): New section.
68101         * modules/iconv (Link): New section.
68102         * modules/lock (Link): New section.
68103         * modules/nanosleep (Link): New section.
68104         * modules/readline (Link): New section.
68105
68106 2007-01-27  Bruno Haible  <bruno@clisp.org>
68107
68108         Enforce the use of gnulib modules for unportable <string.h> functions.
68109         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68110         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68111         (gl_HEADER_STRING_H_BODY): Require it.
68112         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68113         the symbol XYZ to one that gives a link error.
68114         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68115         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68116         * modules/mempcpy (configure.ac): Likewise.
68117         * modules/memrchr (configure.ac): Likewise.
68118         * modules/stpcpy (configure.ac): Likewise.
68119         * modules/stpncpy (configure.ac): Likewise.
68120         * modules/strcase (configure.ac): Likewise.
68121         * modules/strcasestr (configure.ac): Likewise.
68122         * modules/strchrnul (configure.ac): Likewise.
68123         * modules/strdup (configure.ac): Likewise.
68124         * modules/strndup (configure.ac): Likewise.
68125         * modules/strnlen (configure.ac): Likewise.
68126         * modules/strpbrk (configure.ac): Likewise.
68127         * modules/strsep (configure.ac): Likewise.
68128         * modules/strstr (configure.ac): Likewise.
68129         * modules/strtok_r (configure.ac): Likewise.
68130
68131 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68132
68133         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68134
68135 2007-01-30  Jim Meyering  <jim@meyering.net>
68136
68137         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68138
68139 2007-01-29  Bruno Haible  <bruno@clisp.org>
68140
68141         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68142         * lib/execute.c: Likewise.
68143         * lib/pipe.c: Likewise.
68144         * lib/printf-args.h: Likewise.
68145         * lib/printf-args.c: Likewise.
68146         * lib/printf-parse.c: Likewise.
68147         * lib/vasnprintf.c: Likewise.
68148
68149 2007-01-29  Eric Blake  <ebb9@byu.net>
68150
68151         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68152         declaration.
68153
68154 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * lib/strptime.h (strptime): Use 'restrict' for args where
68157         POSIX requires this.
68158         * lib/strptime.c (strptime): Likewise.
68159         Change license notice from LGPL to GPL, since gnulib-tool will
68160         change this as needed.
68161         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68162         defined.
68163         Include "strptime.h" first, to check interface.
68164         Do not #undef _LIBC and _NL_CURRENT.
68165         Do not include <stdlib.h>; no longer needed.
68166         Include "time_r.h" and declare ptime_locale_status
68167         only if _LIBC is not defined.
68168         (__P): Remove unused macro.
68169         (match_string): Bring back glibc version, but use it only if _LIBC
68170         is defined.
68171         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68172         Remove unnecessary assertion and abort() call.
68173         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68174         * m4/strptime.m4: Fix serial number comment.
68175         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68176         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68177         (Depends-on): Add time_r.
68178
68179 2007-01-29  Bruno Haible  <bruno@clisp.org>
68180
68181         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68182         strptime.
68183         * modules/strptime (Depends-on): Add stdbool.
68184         * lib/strptime.h: Include <time.h> always. Add comments.
68185
68186 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68187
68188         * modules/strptime: New file.
68189         * lib/strptime.h: New file.
68190         * lib/strptime.c: New file.
68191         * m4/strptime.m4: New file.
68192
68193 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68194
68195         * MODULES.html.sh: New module mpsort.
68196         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68197
68198         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68199         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68200         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68201         All uses changed.
68202         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68203         All uses changed.
68204         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68205         to _Restrict_.
68206         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68207         the parameter matches the prototype.
68208
68209 2007-01-28  Jim Meyering  <jim@meyering.net>
68210
68211         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68212         sys/time.h here, reverting that part of the previous patch:
68213         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68214
68215 2007-01-28  Bruno Haible  <bruno@clisp.org>
68216
68217         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68218         value of $(SYS_TIME_H).
68219         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68220         remove it conditionally, too. [added by Jim Meyering]
68221         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68222         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68223         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68224         GETTIMEOFDAY_REPLACEMENT to 1.
68225
68226 2007-01-28  Bruno Haible  <bruno@clisp.org>
68227
68228         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68229         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68231         Set UNISTD_H instead of UNISTD_H2.
68232         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68233
68234 2007-01-28  Bruno Haible  <bruno@clisp.org>
68235
68236         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68237         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68238
68239 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68240
68241         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68242         (func_create_testdir): Ensure C locale for `grep' and `tr'
68243         character ranges.
68244         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68245         ACLOCAL_AMFLAGS parsing state machine.
68246
68247 2007-01-27  Bruno Haible  <bruno@clisp.org>
68248
68249         * modules/unistr/base: Update.
68250
68251 2007-01-27  Bruno Haible  <bruno@clisp.org>
68252
68253         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68254         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68255         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68256         modules/unistr/u32-mbtouc.
68257         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68258         * lib/unistr.h: Update.
68259         * lib/linebreak.c: Update.
68260         * modules/unistr/u32-mbtouc: Renamed from
68261         modules/unistr/u32-mbtouc-safe.
68262         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68263         * lib/unistr.h: Update.
68264         * lib/unistr/u32-to-u8.c: Update.
68265         * lib/unistr/u32-to-u16.c: Update.
68266
68267 2007-01-27  Bruno Haible  <bruno@clisp.org>
68268
68269         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68270         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68271         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68272         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68273         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68274         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68275         modules/unistr/u16-mbtouc.
68276         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68277         * lib/unistr.h: Update.
68278         * lib/linebreak.c: Update.
68279         * modules/linebreak: Update.
68280         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68281         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68282         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68283         * modules/unistr/u16-mbtouc: Renamed from
68284         modules/unistr/u16-mbtouc-safe.
68285         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68286         * lib/unistr.h: Update.
68287         * lib/unistr/u16-to-u8.c: Update.
68288         * modules/unistr/u16-to-u8: Update.
68289         * lib/unistr/u16-to-u32.c: Update.
68290         * modules/unistr/u16-to-u32: Update.
68291
68292 2007-01-27  Bruno Haible  <bruno@clisp.org>
68293
68294         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68295         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68296         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68297         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68298         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68299         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68300         modules/unistr/u8-mbtouc.
68301         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68302         * lib/unistr.h: Update.
68303         * lib/striconveh.c: Update.
68304         * modules/striconveh: Update.
68305         * lib/linebreak.c: Update.
68306         * modules/linebreak: Update.
68307         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68308         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68309         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68310         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68311         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68312         * lib/unistr.h: Update.
68313         * lib/striconveh.c: Update.
68314         * modules/striconveh: Update.
68315         * lib/unistr/u8-to-u16.c: Update.
68316         * modules/unistr/u8-to-u16: Update.
68317         * lib/unistr/u8-to-u32.c: Update.
68318         * modules/unistr/u8-to-u32: Update.
68319
68320 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68321
68322         Sync from Libtool.
68323         * lib/argz.c: Do not include strings.h nor memory.h, include
68324         string.h unconditionally.  Patch by Simon Josefsson.
68325
68326 2007-01-27  Bruno Haible  <bruno@clisp.org>
68327
68328         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68329         from gl_HEADER_STRING_H_BODY.
68330         (gl_HEADER_STRING_H_BODY): Require it.
68331         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68332         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68333         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68334         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68336         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68337         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68338         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68339         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68340         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68341         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68342         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68343         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68344         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68345         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68346
68347 2007-01-27  Bruno Haible  <bruno@clisp.org>
68348
68349         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68350         check_PROGRAMS into noinst_PROGRAMS.
68351         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68352         check_PROGRAMS in this case.
68353         (func_import): Set for_test to false.
68354         (func_create_testdir): Set for_test to true.
68355
68356 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68357             Bruno Haible  <bruno@clisp.org>
68358
68359         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68360         (Depends-on): Add string.
68361         (Includes): Use <string.h> instead of strcasestr.h.
68362         * modules/string (Makefile.am): Also substitute the value of
68363         REPLACE_STRCASESTR.
68364         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68365         assume strcasestr is declared in <string.h> not <strings.h>. Also
68366         set REPLACE_STRCASESTR.
68367         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68368         REPLACE_STRCASESTR.
68369         * lib/strcasestr.h: Remove file.
68370         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68371         * lib/string_.h (strcasestr): New declaration.
68372
68373 2007-01-27  Bruno Haible  <bruno@clisp.org>
68374
68375         * lib/string_.h: Use 'extern'.
68376
68377 2007-01-27  Jim Meyering  <jim@meyering.net>
68378
68379         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68380         of set-but-not-used local, "q".
68381
68382         * lib/mempcpy.c: Include <config.h> before <string.h>.
68383         This fixes a compilation error on HP-UX, due to the system's
68384         "restrict"-using mempcpy prototype.
68385
68386 2007-01-26  Bruno Haible  <bruno@clisp.org>
68387
68388         Small optimization.
68389         * lib/javacomp.c: Include c-strstr.h.
68390          (is_envjavac_gcj): Use c_strstr instead of strstr.
68391         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68392
68393 2007-01-26  Bruno Haible  <bruno@clisp.org>
68394
68395         * MODULES.html.sh (Unicode string functions): Add the new modules.
68396
68397         * modules/uniconv/u32-strconv-to-locale: New file.
68398         * lib/uniconv/u32-strconv-to-locale.c: New file.
68399
68400         * modules/uniconv/u16-strconv-to-locale: New file.
68401         * lib/uniconv/u16-strconv-to-locale.c: New file.
68402
68403         * modules/uniconv/u8-strconv-to-locale: New file.
68404         * lib/uniconv/u8-strconv-to-locale.c: New file.
68405
68406         * modules/uniconv/u32-strconv-from-locale: New file.
68407         * lib/uniconv/u32-strconv-from-locale.c: New file.
68408
68409         * modules/uniconv/u16-strconv-from-locale: New file.
68410         * lib/uniconv/u16-strconv-from-locale.c: New file.
68411
68412         * modules/uniconv/u8-strconv-from-locale: New file.
68413         * lib/uniconv/u8-strconv-from-locale.c: New file.
68414
68415         * modules/uniconv/u32-strconv-to-enc: New file.
68416         * lib/uniconv/u32-strconv-to-enc.c: New file.
68417         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68418         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68419
68420         * modules/uniconv/u16-strconv-to-enc: New file.
68421         * lib/uniconv/u16-strconv-to-enc.c: New file.
68422         * lib/uniconv/u-strconv-to-enc.h: New file.
68423         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68424         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68425
68426         * modules/uniconv/u8-strconv-to-enc: New file.
68427         * lib/uniconv/u8-strconv-to-enc.c: New file.
68428         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68429         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68430
68431         * modules/uniconv/u32-strconv-from-enc: New file.
68432         * lib/uniconv/u32-strconv-from-enc.c: New file.
68433         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68434         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68435
68436         * modules/uniconv/u16-strconv-from-enc: New file.
68437         * lib/uniconv/u16-strconv-from-enc.c: New file.
68438         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68439         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68440
68441         * modules/uniconv/u8-strconv-from-enc: New file.
68442         * lib/uniconv/u8-strconv-from-enc.c: New file.
68443         * lib/uniconv/u-strconv-from-enc.h: New file.
68444         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68445         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68446
68447         * modules/uniconv/u32-conv-from-enc: New file.
68448         * lib/uniconv/u32-conv-from-enc.c: New file.
68449         * modules/uniconv/u32-conv-from-enc-tests: New file.
68450         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68451
68452         * modules/uniconv/u16-conv-from-enc: New file.
68453         * lib/uniconv/u16-conv-from-enc.c: New file.
68454         * lib/uniconv/u-conv-from-enc.h: New file.
68455         * modules/uniconv/u16-conv-from-enc-tests: New file.
68456         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68457
68458         * modules/uniconv/u8-conv-from-enc: New file.
68459         * lib/uniconv/u8-conv-from-enc.c: New file.
68460         * modules/uniconv/u8-conv-from-enc-tests: New file.
68461         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68462
68463         * modules/uniconv/base: New file.
68464         * lib/uniconv.h: New file.
68465
68466 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68467
68468         * doc/gnulib-tool.texi (Initial import): Update to match current
68469         behavior with strdup module.
68470         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68471         * lib/memmem.h: Remove; all uses removed.  This is now done
68472         by <string.h>.
68473         * lib/mempcpy.h: Likewise.
68474         * lib/memrchr.h: Likewise.
68475         * lib/stpcpy.h: Likewise.
68476         * lib/stpncpy.h: Likewise.
68477         * lib/strcase.h: Likewise.
68478         * lib/strchrnul.h: Likewise.
68479         * lib/strdup.h: Likewise.
68480         * lib/strndup.h: Likewise.
68481         * lib/strnlen.h: Likewise.
68482         * lib/strpbrk.h: Likewise.
68483         * lib/strsep.h: Likewise.
68484         * lib/strstr.h: Likewise.
68485         * lib/strtok_r.h: Likewise.
68486         * lib/string_.h: New file.
68487         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68488         Rely on <string.h> instead.
68489         * lib/canon-host.c: Likewise.
68490         * lib/chdir-long.c: Likewise.
68491         * lib/concatpath.c: Likewise.
68492         * lib/exclude.c: Likewise.
68493         * lib/fchdir.c: Likewise.
68494         * lib/getaddrinfo.c: Likewise.
68495         * lib/getcwd.c: Likewise.
68496         * lib/getsubopt.c: Likewise.
68497         * lib/glob.c: Likewise.
68498         * lib/hard-locale.c: Likewise.
68499         * lib/iconvme.c: Likewise.
68500         * lib/javacomp.c: Likewise.
68501         * lib/mempcpy.c: Likewise.
68502         * lib/memrchr.c: Likewise.
68503         * lib/regex_internal.h: Likewise.
68504         * lib/stpncpy.c: Likewise.
68505         * lib/strcasecmp.c: Likewise.
68506         * lib/strchrnul.c: Likewise.
68507         * lib/strdup.c: Likewise.
68508         * lib/striconv.c: Likewise.
68509         * lib/striconveh.c: Likewise.
68510         * lib/striconveha.c: Likewise.
68511         * lib/strncasecmp.c: Likewise.
68512         * lib/strndup.c: Likewise.
68513         * lib/strnlen.c: Likewise.
68514         * lib/strsep.c: Likewise.
68515         * lib/strstr.c: Likewise.
68516         * lib/strtok_r.c: Likewise.
68517         * lib/userspec.c: Likewise.
68518         * lib/w32spawn.h: Likewise.
68519         * lib/xstrndup.c: Likewise.
68520         * lib/mountlist.c (strstr): Remove decl.
68521         * m4/string_h.m4: New file.
68522         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68523         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68524         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68525         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68526         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68527         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68528         Set REPLACE_STRCASECMP if necessary.
68529         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68530         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68531         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68533         HAVE_DECL_STRDUP if necessary.
68534         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68535         since gl_FUNC_STRNDUP does that now.
68536         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68537         Check for decl here...
68538         (gl_PREREQ_STRNLEN): ... not here.
68539         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68540         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68541         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68542         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68543         necessary.
68544         * modules/string: New file.
68545         * modules/memmem (Files): Remove special-purpose include file.
68546         (Depends-on): Add string.
68547         (Include): Include <string.h>, not the removed file.
68548         * modules/mempcpy: Likewise.
68549         * modules/memrchr: Likewise.
68550         * modules/stpcpy: Likewise.
68551         * modules/stpncpy: Likewise.
68552         * modules/strcase: Likewise.
68553         * modules/strchrnul: Likewise.
68554         * modules/strdup: Likewise.
68555         * modules/strndup: Likewise.
68556         * modules/strnlen: Likewise.
68557         * modules/strpbrk: Likewise.
68558         * modules/strsep: Likewise.
68559         * modules/strstr: Likewise.
68560         * modules/strtok_r: Likewise.
68561         * tests/test-dirname.c: Don't include "strdup.h", since
68562         <string.h> now suffices.
68563         * tests/test-memmem.c: Don't include "memmem.h", since
68564         <string.h> now suffices.
68565
68566 2007-01-25  Bruno Haible  <bruno@clisp.org>
68567
68568         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68569         *resultp is 0.
68570
68571         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68572         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68573         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68574         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68575
68576         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68577         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68578         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68579         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68580         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68581         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68582
68583 2007-01-24  Bruno Haible  <bruno@clisp.org>
68584
68585         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68586         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68587         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68588         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68589         gl_FUNC_FTS_CORE.
68590         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68591         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68592         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68593         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68594         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68595         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68596         gl_FUNC_FCHOWNAT.
68597         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
68598         gl_FUNC_STRFTIME.
68599         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
68600         Reported by Ralf Wildenhues.
68601
68602 2007-01-24  Bruno Haible  <bruno@clisp.org>
68603
68604         Drop AC_REQUIRE calls that are redundant with the module dependencies.
68605         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
68606         gl_GETADDRINFO.
68607         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
68608         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
68609         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
68610
68611 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
68614         Don't use 'exit'; just return from 'main'.
68615         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
68616
68617         * lib/fnmatch_.h: Readjust white space and comments to match
68618         glibc, to avoid spurious diffs.
68619
68620 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68621
68622         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
68623         2004-12-01 change by Jakub Jelinek, since this code won't compile
68624         if !LIBC.  Problem reported by Bob Proulx.
68625
68626 2007-01-23  Bruno Haible  <bruno@clisp.org>
68627
68628         * lib/striconveh.c: Include c-strcaseeq.h.
68629         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
68630         * modules/striconveh (Depends-on): Add c-strcaseeq.
68631
68632 2007-01-23  Bruno Haible  <bruno@clisp.org>
68633
68634         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
68635
68636         * modules/c-strcaseeq: New file.
68637         * lib/c-strcaseeq.h: New file.
68638
68639         * modules/streq: New file.
68640         * lib/streq.h: New file.
68641
68642 2007-01-23  Bruno Haible  <bruno@clisp.org>
68643
68644         * modules/striconveha-tests: New file.
68645         * tests/test-striconveha.c: New file.
68646
68647         * lib/striconveha.h: Include <stdbool.h>.
68648         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
68649         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
68650         (mem_iconveha_notranslit): Renamed from mem_iconveha.
68651         (mem_iconveha): New function.
68652         (str_iconveha_notranslit): Renamed from str_iconveha.
68653         (str_iconveha): New function.
68654         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
68655         c-strcase.
68656
68657 2007-01-23  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
68660         encodings without forgiving before trying any encoding with handler.
68661         (str_iconveha): Try all encodings without forgiving before trying any
68662         encoding with handler.
68663
68664 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         Import the following changes from libc.
68667
68668         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68669
68670         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
68671
68672         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68673
68674         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
68675         normal_bracket label.
68676
68677         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
68678
68679         [BZ #361]
68680         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
68681         to normal_bracket after fetching the next character.
68682
68683 2007-01-22  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
68686         argument.
68687         * lib/striconveh.c (iconv_carefully_1): New function.
68688         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
68689         argument.
68690         (str_cd_iconveh): Update.
68691         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
68692         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
68693         * tests/test-striconveh.c (MAGIC): New macro.
68694         (new_offsets): New function.
68695         (main): Test call with and without offsets.
68696
68697 2007-01-22  Bruno Haible  <bruno@clisp.org>
68698
68699         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
68700         * modules/sys_select (Makefile.am): Likewise.
68701         * modules/sys_socket (Makefile.am): Likewise.
68702         * modules/sys_time (Makefile.am): Likewise.
68703
68704 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68705
68706         * modules/gettimeofday (License): Change from GPL to LGPL, since
68707         gettimeofday is a library function.
68708
68709 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68710
68711         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
68712
68713 2007-01-21  Bruno Haible  <bruno@clisp.org>
68714
68715         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
68716
68717 2007-01-21  Bruno Haible  <bruno@clisp.org>
68718
68719         * modules/striconveha: New file.
68720         * lib/striconveha.h: New file.
68721         * lib/striconveha.c: New file.
68722         * MODULES.html.sh (Internationalization functions): Add striconveha.
68723         * lib/striconv.c (str_iconv): Optimize the case of an empty input
68724         string.
68725         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
68726
68727 2007-01-21  Bruno Haible  <bruno@clisp.org>
68728
68729         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
68730         * lib/striconveh.c (str_iconveh): Likewise.
68731
68732 2007-01-21  Bruno Haible  <bruno@clisp.org>
68733
68734         * lib/striconveh.h (mem_iconveh): New declaration.
68735         * lib/striconveh.c (mem_iconveh): New function.
68736         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
68737
68738 2007-01-21  Bruno Haible  <bruno@clisp.org>
68739
68740         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68741
68742         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68743         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
68744         original result buffer.
68745         (str_cd_iconveh): Update.
68746         * tests/test-striconveh.c (main): Update.
68747
68748         * lib/striconv.h (mem_cd_iconv): Change specification.
68749         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
68750         result buffer.
68751         (str_cd_iconv): Update.
68752         * tests/test-striconv.c (main): Update.
68753
68754 2007-01-21  Bruno Haible  <bruno@clisp.org>
68755
68756         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
68757
68758 2007-01-20  Jim Meyering  <jim@meyering.net>
68759
68760         * lib/userspec.c (parse_with_separator): If a user or group string
68761         starts with "+", skip the corresponding name-to-ID look-up, since
68762         such a look-up must fail: user and group names may not include "+".
68763
68764 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68765
68766         * lib/poll.c: Include sys/time.h and time.h unconditionally,
68767         since we now assume the sys_time module.
68768         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
68769         check for sys/time.h; no longer needed.
68770         * modules/poll (Depends-on): Depend on sys_time.
68771
68772 2007-01-18  Bruno Haible  <bruno@clisp.org>
68773
68774         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
68775         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68776
68777         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
68778         gettimeofday.
68779
68780         * tests/test-gettimeofday.c: Include <time.h>.
68781         (dummy): Remove variable.
68782
68783         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
68784         gl_HEADER_SYS_TIME_H.
68785         (gl_HEADER_SYS_TIME_H): New macro.
68786
68787         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
68788         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68789         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
68790         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
68791         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68792         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
68793         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
68794         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68795         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
68796         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
68797         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68798
68799         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
68800         last change; it caused a compilation error when cross-compiling to
68801         Cygwin.
68802
68803 2007-01-18  Jim Meyering  <jim@meyering.net>
68804
68805         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
68806         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
68807         than the race-prone "test -d sys || mkdir sys".
68808         (configure.ac): Use AC_PROG_MKDIR_P.
68809         * modules/sys_select: Likewise.
68810         * modules/sys_socket: Likewise.
68811         * modules/sys_time: Likewise.
68812
68813 2007-01-18  Eric Blake  <ebb9@byu.net>
68814
68815         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
68816         replace gettimeofday.
68817         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
68818         name, to avoid infinite recursion.
68819
68820 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
68821
68822         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
68823         module sys_time.
68824         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
68825         assume timespec.h defines struct timeval.
68826         * lib/settime.c: Likewise.
68827         * lib/utimens.c: Likewise.
68828         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
68829         since we now assume the gettimeofday module.
68830         * lib/tempname.c (__gen_tempname): Likewise.
68831         * lib/gettimeofday.h: Remove.
68832         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
68833         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
68834         Include <time.h>, for 'time()'.
68835         (localtime_buffer_addr): Also use this workaround if
68836         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
68837         to simplify the uses.  All uses changed.
68838         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68839         that #undef is inside {}, and 'const' follows type name consistently.
68840         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
68841         (gettimeofday): Do not use the maximum possible value for
68842         tv->tv_usec, since that might break usages other than ls.c.
68843         Instead, we'll leave ls.c alone.  This undoes today's patch
68844         by Bruno.  Add a compile-time warning for 1s-clock resolution;
68845         we've never observed the problem but might as well keep the
68846         canary.
68847         * lib/nanosleep.c: Include timespec.h first, for interface check.
68848         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
68849         now assume the sys_time module.
68850         * lib/tempname.c: Likewise.
68851         * lib/timespec.h: Likewise.
68852         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
68853         needed.
68854         * lib/strftime.c: Likewise.
68855         * lib/timespec.h: Likewise.
68856         * lib/posixtm.c: Include posixtm.h first, for interface check.
68857         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
68858         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
68859         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
68860         * lib/sys_time_.h: New file.
68861         * lib/timespec.h (struct timespec): Use long int, not long.
68862         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68863         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
68864         Remove obsolescent call to AC_HEADER_TIME.
68865         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
68866         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68867         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68868         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
68869         Likewise.
68870         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
68871         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
68872         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
68873         into the sys_time module.  Check for gettimeofday just once.
68874         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
68875         for gettimeofday signature to just check the signature.  Merely
68876         compile it, since linking doesn't test signature.  Improve test for
68877         whether gettimeofday.o is actually needed.
68878         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
68879         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
68880         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
68881         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68882         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
68883         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
68884         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
68885         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
68886         than worrying about sys/time.h.
68887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68888         Don't bother worrying about TIME_WITH_SYS_TIME.
68889         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
68890         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
68891         * m4/sys_time_h.m4: New file.
68892         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
68893         Don't include sys/time.h.  Return from main rather than exiting.
68894         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
68895         all uses changed.
68896         * modules/gethrxtime (Depends-on): Add sys_time.
68897         * modules/gettime (Depends-on): Likewise.
68898         * modules/gettimeofday (Depends-on): Likewise.
68899         * modules/nanosleep (Depends-on): Likewise.
68900         * modules/settime (Depends-on): Likewise.
68901         * modules/tempname (Depends-on): Likewise.
68902         * modules/utimens (Depends-on): Likewise.
68903         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
68904         (Include): Change back to <sys/time.h>.
68905         (Maintainer): Add self.
68906         * modules/sys_time: New file.
68907         * modules/tempname (Depends-on): Add gettimeofday.
68908         * tests/test-gettimeofday.c: Include <sys/time.h>
68909         rather than gettimeofday.h.
68910
68911 2007-01-17  Bruno Haible  <bruno@clisp.org>
68912
68913         * gnulib-tool (func_get_license): Revert last patch. Instead, let
68914         the license default to GPL.
68915         (func_create_testdir): Don't complain if a module is LGPL and its
68916         tests module depends on GPLed modules.
68917
68918 2007-01-17  Bruno Haible  <bruno@clisp.org>
68919
68920         * lib/gettimeofday.c (gettimeofday): Add code for the case
68921         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
68922         maximum possible value for tv->tv_usec, rather than the minimum one.
68923
68924 2005-10-08  Martin Lambers  <marlam@marlam.de>
68925 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68926 2007-01-16  Bruno Haible  <bruno@clisp.org>
68927
68928         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
68929         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
68930         gl_FUNC_GETTIMEOFDAY.
68931         (Include): Add gettimeofday.h.
68932         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
68933         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
68934         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
68935         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
68936         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
68937         * lib/gettimeofday.h: New file.
68938         * lib/gettimeofday.c: Include <sys/timeb.h>.
68939         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
68940         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68941         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
68942         fall back on time().
68943
68944         * tests/test-gettimeofday.c: New file.
68945         * modules/gettimeofday-tests: New file.
68946
68947 2007-01-16  Eric Blake  <ebb9@byu.net>
68948
68949         * modules/fnmatch (Depends-on): Depend on wchar.
68950         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68951         * m4/fnmatch.m4: Likewise.
68952         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68953         * m4/mbchar.m4: Likewise.
68954         * modules/mbswidth (Depends-on): Depend on wchar.
68955         * lib/mbswidth.c: Assume <wchar.h>.
68956         * m4/mbswidth.m4: Likewise.
68957         * modules/quotearg (Depends-on): Depend on wchar.
68958         * lib/quotearg.c: Assume <wchar.h>.
68959         * m4/quotearg.m4: Likewise.
68960         * modules/regex (Depends-on): Depend on wchar.
68961         * lib/regex_internal.h: Assume <wchar.h>.
68962         * m4/regex.m4: Likewise.
68963         * modules/stdint (Depends-on): Depend on wchar.
68964         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68965         * m4/stdint.m4: Likewise.
68966         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68967         * modules/strftime (Depends-on): Depend on wchar.
68968         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68969         * modules/strtol (Depends-on): Depend on wchar.
68970         * lib/strtol.c: Assume <wchar.h>.
68971         * modules/wcwidth (Depends-on): Depend on wchar.
68972         * lib/wcwidth.h: Assume <wchar.h>.
68973         * m4/wcwidth.m4: Likewise.
68974
68975 2007-01-16  Bruno Haible  <bruno@clisp.org>
68976
68977         * modules/csharpexec-script: New, created from...
68978         * modules/csharpexec: ... this.
68979
68980 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68981
68982         * modules/javaexec-script: New, created from...
68983         * modules/javaexec: ... this.
68984
68985 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68986
68987         * modules/poll (Dependencies): Add sys_select.
68988
68989 2007-01-15  Jim Meyering  <jim@meyering.net>
68990
68991         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68992         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68993         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68994         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68995
68996 2007-01-15  Bruno Haible  <bruno@clisp.org>
68997
68998         * modules/striconveh: New file.
68999         * lib/striconveh.h: New file.
69000         * lib/striconveh.c: New file.
69001         * MODULES.html.sh (Internationalization functions): Add striconveh.
69002
69003         * modules/striconveh-tests: New file.
69004         * tests/test-striconveh.c: New file.
69005
69006 2007-01-15  Bruno Haible  <bruno@clisp.org>
69007
69008         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69009         not from GNU libiconv or GNU libc.
69010
69011 2007-01-15  Bruno Haible  <bruno@clisp.org>
69012
69013         * doc/gnulib-intro.texi (Copyright): Explain the different license
69014         terms for module descriptions, autoconf macros, tests, documentation.
69015
69016 2007-01-14  Bruno Haible  <bruno@clisp.org>
69017
69018         * modules/striconv-tests: New file.
69019         * tests/test-striconv.c: New file.
69020
69021 2007-01-14  Bruno Haible  <bruno@clisp.org>
69022
69023         * modules/iconv-tests: New file.
69024         * tests/test-iconv.c: New file.
69025
69026 2007-01-14  Bruno Haible  <bruno@clisp.org>
69027
69028         * gnulib-tool (func_get_license): For test modules, use the license of
69029         the main module.
69030
69031 2007-01-14  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69034         if iconv is found to exist.
69035
69036 2007-01-14  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/c-ctype-tests: New file.
69039         * tests/test-c-ctype.c: New file.
69040
69041 2007-01-14  Bruno Haible  <bruno@clisp.org>
69042
69043         * modules/binary-io-tests: New file.
69044         * tests/test-binary-io.sh: New file.
69045         * tests/test-binary-io.c: New file.
69046
69047 2007-01-14  Bruno Haible  <bruno@clisp.org>
69048
69049         * modules/array-oset-tests: New file.
69050         * tests/test-array_oset.c: New file.
69051
69052 2007-01-14  Bruno Haible  <bruno@clisp.org>
69053
69054         * modules/array-list-tests: New file.
69055         * tests/test-array_list.c: New file.
69056
69057 2007-01-14  Bruno Haible  <bruno@clisp.org>
69058
69059         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69060         and make.
69061         Reported by Simon Josefsson in
69062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69063
69064 2007-01-14  Bruno Haible  <bruno@clisp.org>
69065
69066         * modules/allocsa-tests: New file.
69067         * tests/test-allocsa.c: New file.
69068
69069 2007-01-14  Bruno Haible  <bruno@clisp.org>
69070
69071         * modules/fchdir (Depends-on): Add absolute-header.
69072         * modules/unistd (Depends-on): Likewise.
69073
69074 2006-12-30  Bruno Haible  <bruno@clisp.org>
69075
69076         * modules/fchdir: New file.
69077         * modules/unistd (Files): Add lib/unistd_.h.
69078         (Makefile.am): Generate unistd.h from unistd_.h.
69079         * lib/fchdir.c: New file.
69080         * lib/dirent_.h: New file.
69081         * lib/unistd_.h: New file.
69082         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69083         * m4/fchdir.m4: New file.
69084         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69085         (gl_HEADER_UNISTD): Invoke it.
69086         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69087         function.
69088         * lib/backupfile.c (opendir, closedir): Undefine.
69089         * lib/chown.c (open, close): Undefine.
69090         * lib/clean-temp.c (open, close): Undefine.
69091         * lib/copy-file.c (open, close): Undefine.
69092         * lib/execute.c (open, close): Undefine.
69093         * lib/fsusage.c (open, close): Undefine.
69094         * lib/gc-gnulib.c (open, close): Undefine.
69095         * lib/getcwd.c (opendir, closedir): Undefine.
69096         * lib/glob.c (opendir, closedir): Undefine.
69097         * lib/javacomp.c (open, close): Undefine.
69098         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69099         * lib/openat-proc.c (open, close): Undefine.
69100         * lib/pagealign_alloc.c (open, close): Undefine.
69101         * lib/pipe.c (open, close): Undefine.
69102         * lib/progreloc.c (open, close): Undefine.
69103         * lib/savedir.c (opendir, closedir): Undefine.
69104         * lib/utime.c (open, close): Undefine.
69105         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69106
69107 2007-01-10  Bruno Haible  <bruno@clisp.org>
69108
69109         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69110
69111 2007-01-12  Eric Blake  <ebb9@byu.net>
69112
69113         Provide a robust <wchar.h>.  Further simplifications are now
69114         possible in other modules, but not included here.
69115         * modules/wchar: New module.
69116         * m4/wchar.m4: New file.
69117         * lib/wchar_.h: Likewise.
69118         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69119         of the new module.
69120         * MODULES.html.sh (Extended multibyte and wide character utilities):
69121         New section.
69122
69123 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69124
69125         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69126         to a reasonable default for memory allocation.
69127         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69128         file system that reports garbage st_size values for symlinks.
69129         Problem reported by Liyang Hu.
69130
69131 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69132
69133         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69134         Emacs .#* auto-save files).
69135
69136 2007-01-11  Bruno Haible  <bruno@clisp.org>
69137
69138         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69139         directory.
69140
69141 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69142
69143         Use @...@ consistently in lib/wctype_.h.
69144         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69145         on it being set to 1 or 0.
69146         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69147         go back to AC_SUBSTing it.
69148         * modules/wctype (Makefile.am): Undo previous change.
69149
69150 2007-01-10  Eric Blake  <ebb9@byu.net>
69151
69152         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69153         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69154         * modules/wctype (Makefile.am): Likewise.
69155         Reported by Chris McGuire.
69156
69157 2007-01-10  Jim Meyering  <jim@meyering.net>
69158
69159         fts.c: a small readability/maintainability improvement
69160         * lib/fts.c (fts_read): Make this code slightly more readable and
69161         maintainable by hoisting the "sp->fts_cur = p" assignments to
69162         immediately follow the statements that set P.  Derived from
69163         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69164
69165 2007-01-10  Eric Blake  <ebb9@byu.net>
69166
69167         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69168         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69169         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69170         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69171         Reported by Chris McGuire.
69172
69173 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69174
69175         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69176         in sed script.
69177
69178 2007-01-09  Bruno Haible  <bruno@clisp.org>
69179
69180         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69181         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69182         variables.
69183         (func_module): Use them.
69184
69185 2007-01-09  Bruno Haible  <bruno@clisp.org>
69186
69187         * modules/unistr/base: New file.
69188         * lib/unistr.h: New file.
69189
69190         * modules/unistr/u8-to-u16: New file.
69191         * lib/unistr/u8-to-u16.c: New file.
69192
69193         * modules/unistr/u8-to-u32: New file.
69194         * lib/unistr/u8-to-u32.c: New file.
69195
69196         * modules/unistr/u16-to-u8: New file.
69197         * lib/unistr/u16-to-u8.c: New file.
69198
69199         * modules/unistr/u16-to-u32: New file.
69200         * lib/unistr/u16-to-u32.c: New file.
69201
69202         * modules/unistr/u32-to-u8: New file.
69203         * lib/unistr/u32-to-u8.c: New file.
69204
69205         * modules/unistr/u32-to-u16: New file.
69206         * lib/unistr/u32-to-u16.c: New file.
69207
69208         * modules/unistr/u8-check: New file.
69209         * modules/unistr/u16-check: New file.
69210         * modules/unistr/u32-check: New file.
69211         * lib/unistr/u8-check.c: New file.
69212         * lib/unistr/u16-check.c: New file.
69213         * lib/unistr/u32-check.c: New file.
69214
69215         * modules/unistr/u8-chr: New file.
69216         * modules/unistr/u16-chr: New file.
69217         * modules/unistr/u32-chr: New file.
69218         * lib/unistr/u8-chr.c: New file.
69219         * lib/unistr/u16-chr.c: New file.
69220         * lib/unistr/u32-chr.c: New file.
69221
69222         * modules/unistr/u8-cmp: New file.
69223         * modules/unistr/u16-cmp: New file.
69224         * modules/unistr/u32-cmp: New file.
69225         * lib/unistr/u8-cmp.c: New file.
69226         * lib/unistr/u16-cmp.c: New file.
69227         * lib/unistr/u32-cmp.c: New file.
69228
69229         * modules/unistr/u8-cpy: New file.
69230         * modules/unistr/u16-cpy: New file.
69231         * modules/unistr/u32-cpy: New file.
69232         * lib/unistr/u8-cpy.c: New file.
69233         * lib/unistr/u16-cpy.c: New file.
69234         * lib/unistr/u32-cpy.c: New file.
69235         * lib/unistr/u-cpy.h: New file.
69236
69237         * modules/unistr/u8-cpy-alloc: New file.
69238         * modules/unistr/u16-cpy-alloc: New file.
69239         * modules/unistr/u32-cpy-alloc: New file.
69240         * lib/unistr/u8-cpy-alloc.c: New file.
69241         * lib/unistr/u16-cpy-alloc.c: New file.
69242         * lib/unistr/u32-cpy-alloc.c: New file.
69243         * lib/unistr/u-cpy-alloc.h: New file.
69244
69245         * modules/unistr/u8-endswith: New file.
69246         * modules/unistr/u16-endswith: New file.
69247         * modules/unistr/u32-endswith: New file.
69248         * lib/unistr/u8-endswith.c: New file.
69249         * lib/unistr/u16-endswith.c: New file.
69250         * lib/unistr/u32-endswith.c: New file.
69251         * lib/unistr/u-endswith.h: New file.
69252
69253         * modules/unistr/u8-mblen: New file.
69254         * modules/unistr/u16-mblen: New file.
69255         * modules/unistr/u32-mblen: New file.
69256         * lib/unistr/u8-mblen.c: New file.
69257         * lib/unistr/u16-mblen.c: New file.
69258         * lib/unistr/u32-mblen.c: New file.
69259
69260         * modules/unistr/u8-mbtouc: New file.
69261         * modules/unistr/u16-mbtouc: New file.
69262         * modules/unistr/u32-mbtouc: New file.
69263         * lib/unistr/u8-mbtouc.c: New file.
69264         * lib/unistr/u16-mbtouc.c: New file.
69265         * lib/unistr/u32-mbtouc.c: New file.
69266
69267         * modules/unistr/u8-mbtouc-safe: New file.
69268         * modules/unistr/u16-mbtouc-safe: New file.
69269         * modules/unistr/u32-mbtouc-safe: New file.
69270         * lib/unistr/u8-mbtouc-safe.c: New file.
69271         * lib/unistr/u16-mbtouc-safe.c: New file.
69272         * lib/unistr/u32-mbtouc-safe.c: New file.
69273
69274         * modules/unistr/u8-move: New file.
69275         * modules/unistr/u16-move: New file.
69276         * modules/unistr/u32-move: New file.
69277         * lib/unistr/u8-move.c: New file.
69278         * lib/unistr/u16-move.c: New file.
69279         * lib/unistr/u32-move.c: New file.
69280         * lib/unistr/u-move.h: New file.
69281
69282         * modules/unistr/u8-next: New file.
69283         * modules/unistr/u16-next: New file.
69284         * modules/unistr/u32-next: New file.
69285         * lib/unistr/u8-next.c: New file.
69286         * lib/unistr/u16-next.c: New file.
69287         * lib/unistr/u32-next.c: New file.
69288
69289         * modules/unistr/u8-prev: New file.
69290         * modules/unistr/u16-prev: New file.
69291         * modules/unistr/u32-prev: New file.
69292         * lib/unistr/u8-prev.c: New file.
69293         * lib/unistr/u16-prev.c: New file.
69294         * lib/unistr/u32-prev.c: New file.
69295
69296         * modules/unistr/u8-set: New file.
69297         * modules/unistr/u16-set: New file.
69298         * modules/unistr/u32-set: New file.
69299         * lib/unistr/u8-set.c: New file.
69300         * lib/unistr/u16-set.c: New file.
69301         * lib/unistr/u32-set.c: New file.
69302         * lib/unistr/u-set.h: New file.
69303
69304         * modules/unistr/u8-startswith: New file.
69305         * modules/unistr/u16-startswith: New file.
69306         * modules/unistr/u32-startswith: New file.
69307         * lib/unistr/u8-startswith.c: New file.
69308         * lib/unistr/u16-startswith.c: New file.
69309         * lib/unistr/u32-startswith.c: New file.
69310         * lib/unistr/u-startswith.h: New file.
69311
69312         * modules/unistr/u8-stpcpy: New file.
69313         * modules/unistr/u16-stpcpy: New file.
69314         * modules/unistr/u32-stpcpy: New file.
69315         * lib/unistr/u8-stpcpy.c: New file.
69316         * lib/unistr/u16-stpcpy.c: New file.
69317         * lib/unistr/u32-stpcpy.c: New file.
69318         * lib/unistr/u-stpcpy.h: New file.
69319
69320         * modules/unistr/u8-stpncpy: New file.
69321         * modules/unistr/u16-stpncpy: New file.
69322         * modules/unistr/u32-stpncpy: New file.
69323         * lib/unistr/u8-stpncpy.c: New file.
69324         * lib/unistr/u16-stpncpy.c: New file.
69325         * lib/unistr/u32-stpncpy.c: New file.
69326         * lib/unistr/u-stpncpy.h: New file.
69327
69328         * modules/unistr/u8-strcat: New file.
69329         * modules/unistr/u16-strcat: New file.
69330         * modules/unistr/u32-strcat: New file.
69331         * lib/unistr/u8-strcat.c: New file.
69332         * lib/unistr/u16-strcat.c: New file.
69333         * lib/unistr/u32-strcat.c: New file.
69334         * lib/unistr/u-strcat.h: New file.
69335
69336         * modules/unistr/u8-strchr: New file.
69337         * modules/unistr/u16-strchr: New file.
69338         * modules/unistr/u32-strchr: New file.
69339         * lib/unistr/u8-strchr.c: New file.
69340         * lib/unistr/u16-strchr.c: New file.
69341         * lib/unistr/u32-strchr.c: New file.
69342
69343         * modules/unistr/u8-strcmp: New file.
69344         * modules/unistr/u16-strcmp: New file.
69345         * modules/unistr/u32-strcmp: New file.
69346         * lib/unistr/u8-strcmp.c: New file.
69347         * lib/unistr/u16-strcmp.c: New file.
69348         * lib/unistr/u32-strcmp.c: New file.
69349
69350         * modules/unistr/u8-strcpy: New file.
69351         * modules/unistr/u16-strcpy: New file.
69352         * modules/unistr/u32-strcpy: New file.
69353         * lib/unistr/u8-strcpy.c: New file.
69354         * lib/unistr/u16-strcpy.c: New file.
69355         * lib/unistr/u32-strcpy.c: New file.
69356         * lib/unistr/u-strcpy.h: New file.
69357
69358         * modules/unistr/u8-strcspn: New file.
69359         * modules/unistr/u16-strcspn: New file.
69360         * modules/unistr/u32-strcspn: New file.
69361         * lib/unistr/u8-strcspn.c: New file.
69362         * lib/unistr/u16-strcspn.c: New file.
69363         * lib/unistr/u32-strcspn.c: New file.
69364         * lib/unistr/u-strcspn.h: New file.
69365
69366         * modules/unistr/u8-strdup: New file.
69367         * modules/unistr/u16-strdup: New file.
69368         * modules/unistr/u32-strdup: New file.
69369         * lib/unistr/u8-strdup.c: New file.
69370         * lib/unistr/u16-strdup.c: New file.
69371         * lib/unistr/u32-strdup.c: New file.
69372         * lib/unistr/u-strdup.h: New file.
69373
69374         * modules/unistr/u8-strlen: New file.
69375         * modules/unistr/u16-strlen: New file.
69376         * modules/unistr/u32-strlen: New file.
69377         * lib/unistr/u8-strlen.c: New file.
69378         * lib/unistr/u16-strlen.c: New file.
69379         * lib/unistr/u32-strlen.c: New file.
69380         * lib/unistr/u-strlen.h: New file.
69381
69382         * modules/unistr/u8-strmblen: New file.
69383         * modules/unistr/u16-strmblen: New file.
69384         * modules/unistr/u32-strmblen: New file.
69385         * lib/unistr/u8-strmblen.c: New file.
69386         * lib/unistr/u16-strmblen.c: New file.
69387         * lib/unistr/u32-strmblen.c: New file.
69388
69389         * modules/unistr/u8-strmbtouc: New file.
69390         * modules/unistr/u16-strmbtouc: New file.
69391         * modules/unistr/u32-strmbtouc: New file.
69392         * lib/unistr/u8-strmbtouc.c: New file.
69393         * lib/unistr/u16-strmbtouc.c: New file.
69394         * lib/unistr/u32-strmbtouc.c: New file.
69395
69396         * modules/unistr/u8-strncat: New file.
69397         * modules/unistr/u16-strncat: New file.
69398         * modules/unistr/u32-strncat: New file.
69399         * lib/unistr/u8-strncat.c: New file.
69400         * lib/unistr/u16-strncat.c: New file.
69401         * lib/unistr/u32-strncat.c: New file.
69402         * lib/unistr/u-strncat.h: New file.
69403
69404         * modules/unistr/u8-strncmp: New file.
69405         * modules/unistr/u16-strncmp: New file.
69406         * modules/unistr/u32-strncmp: New file.
69407         * lib/unistr/u8-strncmp.c: New file.
69408         * lib/unistr/u16-strncmp.c: New file.
69409         * lib/unistr/u32-strncmp.c: New file.
69410
69411         * modules/unistr/u8-strncpy: New file.
69412         * modules/unistr/u16-strncpy: New file.
69413         * modules/unistr/u32-strncpy: New file.
69414         * lib/unistr/u8-strncpy.c: New file.
69415         * lib/unistr/u16-strncpy.c: New file.
69416         * lib/unistr/u32-strncpy.c: New file.
69417         * lib/unistr/u-strncpy.h: New file.
69418
69419         * modules/unistr/u8-strnlen: New file.
69420         * modules/unistr/u16-strnlen: New file.
69421         * modules/unistr/u32-strnlen: New file.
69422         * lib/unistr/u8-strnlen.c: New file.
69423         * lib/unistr/u16-strnlen.c: New file.
69424         * lib/unistr/u32-strnlen.c: New file.
69425         * lib/unistr/u-strnlen.h: New file.
69426
69427         * modules/unistr/u8-strpbrk: New file.
69428         * modules/unistr/u16-strpbrk: New file.
69429         * modules/unistr/u32-strpbrk: New file.
69430         * lib/unistr/u8-strpbrk.c: New file.
69431         * lib/unistr/u16-strpbrk.c: New file.
69432         * lib/unistr/u32-strpbrk.c: New file.
69433         * lib/unistr/u-strpbrk.h: New file.
69434
69435         * modules/unistr/u8-strrchr: New file.
69436         * modules/unistr/u16-strrchr: New file.
69437         * modules/unistr/u32-strrchr: New file.
69438         * lib/unistr/u8-strrchr.c: New file.
69439         * lib/unistr/u16-strrchr.c: New file.
69440         * lib/unistr/u32-strrchr.c: New file.
69441
69442         * modules/unistr/u8-strspn: New file.
69443         * modules/unistr/u16-strspn: New file.
69444         * modules/unistr/u32-strspn: New file.
69445         * lib/unistr/u8-strspn.c: New file.
69446         * lib/unistr/u16-strspn.c: New file.
69447         * lib/unistr/u32-strspn.c: New file.
69448         * lib/unistr/u-strspn.h: New file.
69449
69450         * modules/unistr/u8-strstr: New file.
69451         * modules/unistr/u16-strstr: New file.
69452         * modules/unistr/u32-strstr: New file.
69453         * lib/unistr/u8-strstr.c: New file.
69454         * lib/unistr/u16-strstr.c: New file.
69455         * lib/unistr/u32-strstr.c: New file.
69456         * lib/unistr/u-strstr.h: New file.
69457
69458         * modules/unistr/u8-strtok: New file.
69459         * modules/unistr/u16-strtok: New file.
69460         * modules/unistr/u32-strtok: New file.
69461         * lib/unistr/u8-strtok.c: New file.
69462         * lib/unistr/u16-strtok.c: New file.
69463         * lib/unistr/u32-strtok.c: New file.
69464         * lib/unistr/u-strtok.h: New file.
69465
69466         * modules/unistr/u8-uctomb: New file.
69467         * modules/unistr/u16-uctomb: New file.
69468         * modules/unistr/u32-uctomb: New file.
69469         * lib/unistr/u8-uctomb.c: New file.
69470         * lib/unistr/u16-uctomb.c: New file.
69471         * lib/unistr/u32-uctomb.c: New file.
69472
69473         * MODULES.html.sh (Unicode string functions): Add the new modules.
69474
69475 2007-01-08  Bruno Haible  <bruno@clisp.org>
69476
69477         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69478         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69479         subdirectories.
69480
69481 2007-01-08  Karl Berry  <karl@gnu.org>
69482
69483         * doc/error.texi: mention that main() fns must set program_name
69484         when progname is used.
69485
69486 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69487
69488         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69489         WCTYPE_H is empty, for the benefit of builds from non-distclean
69490         directories.  Problem reported by Eric Blake in
69491         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69492
69493 2007-01-08  Bruno Haible  <bruno@clisp.org>
69494
69495         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69496         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69497         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69498         PROVIDE_CANONICALIZE_FILENAME_MODE.
69499         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69500
69501 2007-01-08  Bruno Haible  <bruno@clisp.org>
69502
69503         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69504         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69505         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69506         * lib/fts.c: Likewise.
69507         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69508
69509 2006-12-25  Bruno Haible  <bruno@clisp.org>
69510
69511         * modules/utf8-ucs4-safe: New file.
69512         * lib/utf8-ucs4-safe.h: New file.
69513         * lib/unistr/utf8-ucs4-safe.c: New file.
69514
69515         * modules/utf16-ucs4-safe: New file.
69516         * lib/utf16-ucs4-safe.h: New file.
69517         * lib/unistr/utf16-ucs4-safe.c: New file.
69518
69519         * MODULES.html.sh (Unicode string functions): Add the new modules.
69520
69521 2007-01-08  Bruno Haible  <bruno@clisp.org>
69522
69523         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69524         (Depends-on): Add unitypes.
69525         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69526         (u8_mbtouc_aux): Move out to separate file.
69527         (u8_mbtouc): Use ucs4_t, uint8_t types.
69528         * lib/unistr/utf8-ucs4.c: New file.
69529
69530         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69531         (Depends-on): Add unitypes.
69532         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69533         (u16_mbtouc_aux): Move out to separate file.
69534         (u16_mbtouc): Use ucs4_t, uint16_t types.
69535         * lib/unistr/utf16-ucs4.c: New file.
69536
69537         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69538         (Depends-on): Add unitypes.
69539         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69540         (u8_uctomb_aux): Move out to separate file.
69541         (u8_uctomb): Use ucs4_t, uint8_t types.
69542         * lib/unistr/ucs4-utf8.c: New file.
69543
69544         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69545         (Depends-on): Add unitypes.
69546         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69547         (u16_uctomb_aux): Move out to separate file.
69548         (u16_uctomb): Use ucs4_t, uint16_t types.
69549         * lib/unistr/ucs4-utf16.c: New file.
69550
69551 2006-12-25  Bruno Haible  <bruno@clisp.org>
69552
69553         * modules/unitypes: New file.
69554         * lib/unitypes.h: New file.
69555         * MODULES.html.sh (func_all_modules): New section "Unicode string
69556         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69557         this section. Add unitypes.
69558
69559 2007-01-08  Bruno Haible  <bruno@clisp.org>
69560
69561         Avoid variable names that conflict with those from libtool.
69562         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69563         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69564         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69565         library_names_spec to acl_library_names_spec, hardcode_* to
69566         acl_hardcode_*.
69567         Reported by Ralf Wildenhues.
69568
69569 2007-01-08  Bruno Haible  <bruno@clisp.org>
69570
69571         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69572         definition.
69573         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69574         definition.
69575         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69576         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69577         definition.
69578         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69579         definition.
69580         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69581         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69582         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69583         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69584         definition.
69585         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69586         definition.
69587         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69588         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69589         GC_USE_<algorithm>.
69590         * lib/gc-libgcrypt.c: Likewise.
69591         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69592         * modules/gc-arctwo (configure.ac): Likewise.
69593         * modules/gc-des (configure.ac): Likewise.
69594         * modules/gc-hmac-md5 (configure.ac): Likewise.
69595         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69596         * modules/gc-md2 (configure.ac): Likewise.
69597         * modules/gc-md4 (configure.ac): Likewise.
69598         * modules/gc-md5 (configure.ac): Likewise.
69599         * modules/gc-random (configure.ac): Likewise.
69600         * modules/gc-rijndael (configure.ac): Likewise.
69601         * modules/gc-sha1 (configure.ac): Likewise.
69602
69603 2007-01-08  Bruno Haible  <bruno@clisp.org>
69604
69605         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
69606         macro definition.
69607         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
69608         definition.
69609         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
69610         definition.
69611         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
69612         * modules/fcntl-safer (configure.ac): Likewise.
69613         * modules/fopen-safer (configure.ac): Likewise.
69614         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
69615         GNULIB_FWRITEERROR macro definition.
69616
69617 2007-01-08  Bruno Haible  <bruno@clisp.org>
69618
69619         * m4/gnulib-common.m4: New file.
69620         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
69621         (func_get_filelist): Add m4/gnulib-common.m4.
69622
69623 2007-01-08  Bruno Haible  <bruno@clisp.org>
69624
69625         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
69626         command.
69627
69628 2007-01-08  Jim Meyering  <jim@meyering.net>
69629
69630         Use a more robust test for a "can't happen" condition.
69631         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
69632         narrowed the st_size value.  Presuming the "can't happen" condition
69633         is true, that narrowing could conceivably convert an invalid st_size
69634         value into a valid one.  Instead, use a change based on Matthew
69635         Woehlke's original patch.
69636
69637         Slight readability improvement: use an assert-like macro
69638         in place of literal "abort ()" uses.
69639         * lib/fts.c (fts_assert): Define.
69640         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
69641         Use this macro instead of a bare 'abort'.
69642
69643 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
69644
69645         Don't worry about using IRIX 5.3's wctype.h broken definitions;
69646         simply work around them.
69647         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
69648         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
69649         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
69650         declaring.
69651         Don't bother to define as macros, since the standard doesn't require it.
69652         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
69653         longer worry about IRIX 5.3.
69654         (HAVE_WCTYPE_CTMP_BUG): Remove.
69655
69656 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69657
69658         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
69659         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
69660         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69661         Problems reported by Georg Schwarz for IRIX 5.3.
69662
69663         * gnulib-tool (autoconf_minversion): Take the maximum version number
69664         found, not the minimum.  Problem reported by James Youngman.
69665
69666 2007-01-03  Karl Berry  <karl@gnu.org>
69667
69668         * doc/error.texi: new file, explaining interaction with progname.
69669         * doc/gnulib.texi: include it.  Update copyright.
69670
69671 2007-01-03  Simon Josefsson  <simon@josefsson.org>
69672
69673         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
69674         AC_CANONICAL_HOST, to improve autobuild outputs.
69675
69676 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
69677             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69678
69679         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
69680         sockets, server sockets, and other file descriptors.  Count errors
69681         to compute the return value.  Reorder the code a bit to be easier
69682         to follow.  Don't set event bits that were not requested (except
69683         POLLERR and POLLHUP).
69684
69685 2007-01-01  Bruno Haible  <bruno@clisp.org>
69686
69687         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
69688
69689 2007-01-03  Jim Meyering  <jim@meyering.net>
69690
69691         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
69692
69693 2007-01-02  Bruno Haible  <bruno@clisp.org>
69694
69695         * modules/settime (Include): Require timespec.h.
69696         * modules/nanosleep (Include): Likewise.
69697
69698 2007-01-01  Bruno Haible  <bruno@clisp.org>
69699
69700         * gnulib-tool (func_emit_copyright_notice): Bump year.
69701         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
69702
69703 2007-01-01  Bruno Haible  <bruno@clisp.org>
69704
69705         Improve support for OpenBSD.
69706         * build-aux/config.rpath (libname_spec): Export.
69707         (library_names_spec): New variable. Export.
69708         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69709         library_names_spec from the config.rpath output. Locate shared library
69710         through the name pattern in library_names_spec.
69711
69712 2007-01-01  Eric Blake  <ebb9@byu.net>
69713
69714         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
69715
69716 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
69717
69718         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
69719         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
69720         assume the C locale, and avoid an "eval" that could cause trouble.
69721         Problem with SORT reported by Bob Proulx.
69722
69723         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
69724         Define.  Trivial patch from Henning Nielsen Lund, originally
69725         sent to bug-grep@gnu.org today.
69726
69727 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
69728
69729         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
69730         struct stat.  Problem reported by Henning Nielsen Lund.
69731         * lib/acl.c: Include acl.h first, to check interface.  Don't
69732         bother to include sys/types.h and sys/stat.h again.
69733
69734 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69735
69736         Import the following change from libc; problem reported by
69737         Sven Verdoolaege.
69738
69739         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69740
69741         [BZ #1373]
69742         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69743
69744 2006-12-28  Jim Meyering  <jim@meyering.net>
69745
69746         * build-aux/announce-gen: Do not assume that the package
69747         builds any of tar.gz, tar.bz2, and .xdelta files.
69748         Suggestion from Simon Josefsson.
69749
69750 2006-12-28  Simon Josefsson  <simon@josefsson.org>
69751
69752         * modules/announce-gen: New file.
69753
69754 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
69755
69756         * lib/mbchar.h: Just include <wctype.h>; the wctype module
69757         handles its gotchas now.
69758         * lib/mbswidth.c: Likewise.
69759         * lib/wcwidth.h: Likewise.
69760         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
69761         and iswcntrl; the wctype module does this stuff now.
69762         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69763         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69764         * modules/mbchar (Depends-on): Add wctype.
69765         * modules/mbswidth (Depends-on): Likewise.
69766         * modules/wcwidth (Depends-on): Likewise.
69767
69768 2006-12-27  Eric Blake  <ebb9@byu.net>
69769
69770         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
69771         module uses more than what <wctype.h> is required to provide.
69772
69773 2006-12-26  Eric Blake  <ebb9@byu.net>
69774
69775         * gnulib-tool (sed_extract_prog): Avoid space-tab.
69776
69777 2006-12-26  Eric Blake  <ebb9@byu.net>
69778
69779         * modules/absolute-header: New module.
69780         * modules/fcntl (Depends-on): Depend on it.
69781         * modules/inttypes (Depends-on): Likewise.
69782         * modules/stdint (Depends-on): Likewise.
69783         * modules/sys_stat (Depends-on): Likewise.
69784         * modules/wctype (Depends-on): Likewise.
69785         * MODULES.html.sh (Support for building libraries and
69786         executables): Document it.
69787
69788 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
69789
69790         * gnulib-tool (SED): Remove, undoing previous change.
69791         The problem was that it broke coreutils on Solaris, because
69792         "sed --posix" leaked into a makefile.
69793         (sed): New alias, if 'alias' and GNU sed.
69794
69795 2006-12-24  Jim Meyering  <jim@meyering.net>
69796
69797         Work around an fchownat bug in glibc-2.4:
69798         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
69799         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
69800         in spite of the -P option.
69801         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
69802         New macros.
69803         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
69804         * modules/openat (Files): Add lib/fchownat.c.
69805         * lib/openat.c (fchownat): Don't define here.  Move to...
69806         * lib/fchownat.c: ...this new file.
69807
69808 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69809
69810         Fix bug reported by Bruno Haible in
69811         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
69812         where quotearg.c didn't compile on Mac OS X 10.2 because it
69813         lacks <wchar.h> and wint_t.
69814         * lib/wctype_.h (__wctype_wint_t): New type.
69815         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
69816         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
69817         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
69818         Arg is now of type __wctype_wint_t, not wint_t.
69819         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
69820         substitute HAVE_WINT_T.
69821         * modules/wctype (Files): Add m4/wint_t.m4.
69822         (wctype.h): Substitute HAVE_WINT_T.
69823
69824 2006-12-23  Bruno Haible  <bruno@clisp.org>
69825
69826         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
69827
69828 2006-12-23  Bruno Haible  <bruno@clisp.org>
69829
69830         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
69831         S_ISLNK.
69832         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
69833         mingw.
69834
69835 2006-12-22  Bruno Haible  <bruno@clisp.org>
69836
69837         * lib/copy-file.c: Include acl.h.
69838         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
69839         Close the file descriptors only after being done with copy_acl.
69840         * modules/copy-file (Depends-on): Add acl.
69841
69842 2006-12-22  Bruno Haible  <bruno@clisp.org>
69843
69844         * gnulib-tool (SED): New variable.
69845         Use $SED instead of sed everywhere.
69846
69847 2006-12-22  Bruno Haible  <bruno@clisp.org>
69848
69849         * modules/no-c++: New file.
69850         * m4/no-c++.m4: New file.
69851         * MODULES.html.sh (Support for building libraries and executables):
69852         Add no-c++.
69853
69854 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
69855
69856         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69857         Include <limits.h>, and use its INT_MAX to rewrite the
69858         j loop so that it does not overflow 'int'.  Problem reported by
69859         Ralf Wildenhues in
69860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
69861         Play it safe by shifting left by 1 rather than multiplying by 2,
69862         as GCC is less likely to optimize this away when the value
69863         is signed (when it assumes overflow leads to undefined behavior).
69864         Also, don't assume time_t uses two's complement.
69865
69866 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
69867
69868         * MODULES.html.sh: New module wctype.
69869         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
69870         * lib/fnmatch.c: Don't bother to include <wchar.h> before
69871         <wctype.h>, since the new wctype module should fix this.
69872         * lib/quotearg.c: Include <wctype.h> unconditionally, since
69873         the wctype module should arrange for it.
69874         * lib/regex_internal.h: Likewise.
69875         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
69876         since the wctype module should handle this now.
69877         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
69878         * modules/fnmatch (Depends-on): Add wctype.
69879         * modules/quotearg (Depends-on): Likewise.
69880         * modules/regex (Depends-on): Likewise.
69881
69882 2006-12-19  Bruno Haible  <bruno@clisp.org>
69883
69884         * lib/strdup.h [C++]: Wrap definitions in extern "C".
69885         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
69886
69887 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69888
69889         * modules/savewd (Depends-on): Fix dependency on fcntl.
69890
69891 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69892
69893         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
69894         conforms to C99, rather than relying on the user's environment
69895         setting of STDINT_H.
69896
69897 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69898         and Eric Blake  <ebb9@byu.net>
69899
69900         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
69901         This is more consistent with the other defines here.
69902         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
69903         Port to z/OS.  Problem reported by Paul Gilmartin.
69904         Change local vars to use gl_ prefix rather than ac_.
69905         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
69906         with other defines.
69907         * modules/double-slash-root: New module.
69908         * modules/dirname (Files): Remove m4/double-slash-root.m4.
69909         (Depends-on): Add double-slash-root.
69910         * MODULES.html.sh (File system functions): Mention new module.
69911
69912 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
69913
69914         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
69915         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
69916         This is for the benefit of gzip, which doesn't do i18n.
69917
69918 2006-12-12  Jim Meyering  <jim@meyering.net>
69919
69920         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
69921         Reported by Andreas Schwab <schwab@suse.de>.
69922
69923 2006-12-12  Bruno Haible  <bruno@clisp.org>
69924
69925         Merge these changes.
69926         2006-09-05  Bruno Haible  <bruno@clisp.org>
69927         * lib/iconvme.c (iconv_string): No need to save and restore errno when
69928         iconv_alloc succeeded.
69929         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
69930         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
69931         test for " && dest " at the end - dest is always != NULL there. Call
69932         iconv with 4xNULL arguments initially, to reset the state. Call iconv
69933         with 2xNULL arguments, also to flush the state storage. Handle the
69934         IRIX iconv behaviour. Realloc the final result, to throw away unused
69935         memory.
69936
69937 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
69938
69939         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
69940         and fchmodat unconditionally, since glibc 2.4 has them.
69941         Problem reported by Arkadiusz Miskiewicz.
69942
69943 2006-12-10  Bruno Haible  <bruno@clisp.org>
69944
69945         * gnulib-tool (func_import): Show the include files only for those
69946         modules that are copied and specified.
69947         Reported by Karl Berry.
69948
69949 2006-12-08  Jim Meyering  <jim@meyering.net>
69950
69951         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69952         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69953
69954         * build-aux/announce-gen: Add two new options, both optional:
69955         --bootstrap-tools=TOOL_LIST
69956               a comma-separated list of tools, e.g.,
69957               autoconf,automake,bison,gnulib
69958         --gnulib-snapshot-date=DATE
69959               if gnulib is in the bootstrap tool list,
69960               then report this as the snapshot date.
69961               If not specified, use the current date/time.
69962               If you specify a date here, be sure it's UTC.
69963
69964 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69965
69966         * tests/test-argp-2.sh: Fix test to match actual output.
69967         (func_compare): Fix sed script to be portable.
69968
69969 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69970
69971         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69972         workaround for this case.  It is not autoconfigured now; offhand
69973         it's hard to see how to autoconfigure it.
69974
69975 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69976
69977         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69978         a directory that is about to be chowned.  Such a directory's
69979         initial file permissions should permit the owner only and this
69980         should not be changed until after the chown, since the group and
69981         other bits would be incorrect if they granted permission before
69982         the chown.
69983
69984         Fix porting problem for iswctype reported by Georg Schwarz in:
69985         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69986         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69987         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69988         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69989         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69990
69991 2006-12-03  Jim Meyering  <jim@meyering.net>
69992
69993         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69994         p->fts_statp may not yet be defined.
69995         (fts_read): Instead, set it in the caller, once p->fts_statp is
69996         sure to be defined, and corresponds to a top-level directory.
69997         This bug made du -x fail.  Here's the coreutils test case:
69998         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69999         Reported by Mike Frysinger.
70000
70001 2006-12-01  Jim Meyering  <jim@meyering.net>
70002
70003         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70004         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70005         Reported by Simon Josefsson.
70006
70007 2006-11-30  Jim Meyering  <jim@meyering.net>
70008
70009         * m4/warning.m4: Use the all-permissive copyright notice
70010         recommended by RMS (rather than LGPL).
70011         * m4/vararrays.m4: Likewise.
70012         * m4/flexmember.m4: Likewise.
70013
70014 2006-11-29  Bruno Haible  <bruno@clisp.org>
70015
70016         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70017         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70018         using +=.
70019         Reported by Simon Josefsson <simon@josefsson.org>.
70020
70021 2006-11-28  James Youngman <jay@gnu.org>
70022
70023         * README: Advise users that they might find the bug-gnulib@gnu.org
70024         and autotools-announce@gnu.org mailing lists useful.
70025
70026 2006-11-28  Bruno Haible  <bruno@clisp.org>
70027
70028         * m4/ptrdiff_max.m4: Remove file.
70029
70030 2006-11-21  Bruno Haible  <bruno@clisp.org>
70031
70032         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70033         _AC_COMPUTE_INT.
70034         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70035         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70036         _AC_COMPUTE_INT.
70037         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70038         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70039         _AC_COMPUTE_INT.
70040         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70041
70042 2006-11-28  Jim Meyering  <jim@meyering.net>
70043
70044         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70045         warning from "gcc -Wshadow" about shadowing the builtin.
70046
70047 2006-11-27  Bruno Haible  <bruno@clisp.org>
70048
70049         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70050         _AC_COMPUTE_INT.
70051         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70052
70053 2006-11-27  Bruno Haible  <bruno@clisp.org>
70054             Paul Eggert  <eggert@cs.ucla.edu>
70055
70056         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70057
70058 2006-11-26  Bruno Haible  <bruno@clisp.org>
70059
70060         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70061         noinst_LTLIBRARIES.
70062
70063 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70064             Bruno Haible  <bruno@clisp.org>
70065
70066         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70067         if compiling with "gcc -ansi".
70068
70069 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70070
70071         Fix some incompatibilities with gcc -ansi -pedantic.
70072         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70073         if compiling pedantically with GCC, unless it's C99 or later.
70074         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70075         it mishandles gcc -ansi -pedantic as well.
70076         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70077         if gcc -pedantic.
70078         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70079         initializers for struct if -pedantic, unless it's C99 or later.
70080
70081 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70082
70083         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70084         Don't close an fd more than once. Identical atimes indicate
70085         success, not failure.
70086
70087 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70088
70089         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70090
70091 2006-11-23  Jim Meyering  <jim@meyering.net>
70092
70093         * build-aux/announce-gen: New file.  From coreutils.
70094
70095 2006-11-22  Jim Meyering  <jim@meyering.net>
70096
70097         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70098         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70099         (fts_read): Use a temporary to narrow the overused st_size member
70100         before using it in a switch statement.  Reported by Matthew Woehlke.
70101
70102         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70103         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70104
70105 2006-11-20  Bruno Haible  <bruno@clisp.org>
70106
70107         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70108         changequote instead of pairs of brackets.
70109         Reported by Andreas Schwab <schwab@suse.de>.
70110
70111 2006-11-21  Jim Meyering  <jim@meyering.net>
70112
70113         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70114         so as to remain compatible with older compilers.
70115         Patch from Michael Deutschmann.
70116
70117 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         * MODULES.html.sh (File system functions): Add openat.
70120
70121         * lib/openat.h (rpl_fstatat): New macro, if
70122         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70123         (fstatat): Define to rpl_fstatat under the same conditions,
70124         unless COMPILING_FSTATAT.
70125         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70126         seems to have the bug.
70127         * lib/fstatat.c: New file.
70128         * modules/openat (Files): Add it.
70129
70130 2006-11-20  Bruno Haible  <bruno@clisp.org>
70131
70132         * Makefile: New file.
70133
70134 2006-11-20  Jim Meyering  <jim@meyering.net>
70135
70136         The beginnings of syntax-related checks for gnulib.
70137         * lib/Makefile: New file.
70138         * lib/t-idcache: New script.  Ensure that the two halves of
70139         idcache.c stay in sync.
70140
70141         * lib/idcache.c: Adjust comments in user- and group- portions to
70142         be more accurate, and to be consistent with one another.
70143
70144 2006-11-20  Jim Meyering  <jim@meyering.net>
70145
70146         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70147         continue using the flexible array member (thus, this module performs
70148         half as many malloc calls), with the addition that...
70149         (getgroup, getuser): Consistently record a non-match via an empty
70150         "name" string, and map an empty string match to a NULL return value.
70151         * modules/idcache (Depends-on): Re-add flexmember.
70152
70153         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70154         (getuidbyname, getgroup, getgidbyname): Likewise.
70155
70156         Use cleaner syntax: NULL rather than 0.
70157         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70158
70159 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70162         It mishandled the case where the group was missing.
70163         Problem reported by Greg Schafer.
70164         * modules/idcache: Likewise.
70165
70166 2006-11-18  Jim Meyering  <jim@meyering.net>
70167
70168         * check-module (%exempt_header): Add exception for some
70169         conditionally-included headers.
70170
70171         * modules/i-ring (Depends-on): Add verify.
70172         (License): Change to LGPL.
70173
70174 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70175
70176         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70177         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70178         and inttostr.h.  Use snprintf rather than uinttostr, so that
70179         LGPLed code doesn't depend on GPLed.
70180
70181 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70182
70183         * modules/inline (License): Change from GPL to LGPL.
70184
70185 2006-11-17  Jim Meyering  <jim@meyering.net>
70186
70187         * modules/d-type (License): Switch to LGPL.
70188
70189 2006-11-15  Bruno Haible  <bruno@clisp.org>
70190
70191         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70192
70193 2006-11-15  Eric Blake  <ebb9@byu.net>
70194
70195         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70196         the module dependency.
70197
70198 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70199             Bruno Haible  <bruno@clisp.org>
70200
70201         * gnulib-tool (func_create_testdir): Add license consistency check.
70202
70203 2006-11-15  Eric Blake  <ebb9@byu.net>
70204
70205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70206         random "(cached)" in configure output.
70207
70208 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70209
70210         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70211         test for conforming inttypes.h is both announced and cached.
70212
70213         * MODULES.html.sh (seen_modules, seen_files): New variables.
70214         (func_module): Rewrite to use a few less gnulib-tool and sed
70215         invocations.  Avoid a couple of quadratic algorithms for ...
70216         (missed_modules, missed_files): ... these, with ...
70217         (func_append, func_tmpdir): ... these new functions, from
70218         gnulib-tool.  Analogously, install traps for cleanup.
70219
70220         * tests/test-gc.c (main): Remove unused variables.
70221         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70222
70223 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70224
70225         * modules/inttostr (License): Change to LGPL.
70226
70227 2006-11-14  Eric Blake  <ebb9@byu.net>
70228
70229         * modules/tempname (License): Change to LGPL.
70230
70231 2006-11-14  Eric Blake  <ebb9@byu.net>
70232
70233         * doc/functions.texi (Function Portability): *printf functions on
70234         Cygwin now understand all POSIX size specifiers.
70235
70236 2006-11-14  Bruno Haible  <bruno@clisp.org>
70237
70238         * modules/c-ctype (License): Change to LGPL.
70239
70240 2006-11-12  Bruno Haible  <bruno@clisp.org>
70241
70242         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70243         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70244         for GNOME libraries, for which the include files are installed in
70245         subdirectories of $prefix/include.
70246
70247 2006-11-12  Bruno Haible  <bruno@clisp.org>
70248
70249         * m4/lib-link.m4: Require at least autoconf-2.54.
70250         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70251         name to underscores for the --with option.
70252
70253 2006-11-13  Bruno Haible  <bruno@clisp.org>
70254
70255         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70256         the tests directory.
70257         Reported by Ralf Wildenhues.
70258
70259 2006-11-13  Bruno Haible  <bruno@clisp.org>
70260
70261         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70262         (func_emit_initmacro_end): Undo the override here.
70263         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70264         Works around the famous automake error in coreutils.
70265
70266 2006-11-13  Eric Blake  <ebb9@byu.net>
70267
70268         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70269         element, not its node.
70270
70271 2006-11-12  Bruno Haible  <bruno@clisp.org>
70272
70273         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70274         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70275
70276 2006-11-12  Bruno Haible  <bruno@clisp.org>
70277
70278         * gnulib-tool: New option --local-symlink.
70279         (func_usage): Document it.
70280         (lsymbolic): New variable.
70281         (func_import, func_create_testdir): If --symlink was not specified,
70282         test whether --local-symlink was specified and the file comes from
70283         the local_gnulib_dir.
70284
70285 2006-11-12  Bruno Haible  <bruno@clisp.org>
70286
70287         * gnulib-tool (func_ln): New function.
70288         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70289
70290 2006-11-12  Bruno Haible  <bruno@clisp.org>
70291
70292         Finish support for source files in subdirectories.
70293         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70294         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70295         AUTOMAKE_OPTIONS.
70296         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70297
70298 2006-11-12  Bruno Haible  <bruno@clisp.org>
70299
70300         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70301         EXTRA_lib_SOURCES augmentation.
70302         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70303
70304 2006-11-12  Jim Meyering  <jim@meyering.net>
70305
70306         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70307         file descriptors.  This also averts a failure on systems with
70308         native openat support when a traversed directory lacks "x" access.
70309         * lib/fts_.h: Include "i-ring.h"
70310         (struct FTS) [fts_fd_ring]: New member.
70311         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70312         (FCHDIR): Add parentheses.
70313         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70314         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70315         When descending, rather than simply closing the previous
70316         fts_cwd_fd value, push that file descriptor onto the ring.
70317         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70318         (fts_open): Initialize the new fd_ring member.
70319         (fts_close): Clear the ring.
70320         (fts_safe_changedir): When possible, use our new fd_ring to skip
70321         the diropen and fstat and dev/ino comparison that would normally
70322         accompany a virtual `chdir ("..")'.
70323
70324         * modules/fts (Depends-on): Add i-ring.
70325         * modules/i-ring: New module.
70326         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70327         * m4/i-ring.m4: New file.
70328
70329 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70330
70331         * gnulib-tool (func_create_testdir): Fix replacement of
70332         `build-aux' in configure.ac.  Run autotools in gltests
70333         subdirectory.
70334         (func_create_testdir, func_create_megatestdir, test): There is
70335         no need for '--force' in most autotool invocations in a new
70336         tree.  Actually fail the whole test if any of the tools, or the
70337         configure or make stages fail.
70338
70339         Sync from Automake.
70340         * build-aux/gnupload: Revert last change.  Add pointer to upload
70341         instructions of the GNU Maintenance Instructions.
70342         Suggestion by Karl Berry.
70343
70344 2006-11-10  Jim Meyering  <jim@meyering.net>
70345
70346         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70347
70348 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70351         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70352         (bind_textdomain_codeset) [! ENABLE_NLS]:
70353         Evaluate all the arguments.  That way, callers get compatible behavior
70354         if the arguments have side effects.  Also, it avoids some GCC
70355         diagnostics in some cases; Joel E. Denny reported problems when Bison
70356         was configured with --enable-gcc-warnigs.
70357
70358 2006-11-10  Jim Meyering  <jim@meyering.net>
70359
70360         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70361         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70362         account.
70363
70364 2006-11-10  Jim Meyering  <jim@meyering.net>
70365
70366         * modules/inline: New file/module.
70367         * modules/xalloc (Files): Remove m4/inline.m4.
70368         (Depends-on): Add inline, instead.
70369         * modules/oset: Likewise.
70370         * modules/list: Likewise.
70371
70372 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70373
70374         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70375         Problem reported by Matthew Woehlke.
70376
70377 2006-11-09  Bruno Haible  <bruno@clisp.org>
70378
70379         * lib/tempname.c (gen_tempname): Remove variant that invokes
70380         __gen_tempname.
70381         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70382         __gen_tempname.
70383
70384 2006-11-08  Bruno Haible  <bruno@clisp.org>
70385
70386         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70387         to 'yes' instead of 'cross-compiling'.
70388
70389 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70390
70391         * lib/quotearg.h (quotearg_free): New decl.
70392         * lib/quotearg.c (quotearg_free): New function.
70393         (slot0, nslots, slotvec0, slotvec):
70394         Now file-scope so that quotearg_free can get at them.
70395
70396 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70397
70398         Sync from Automake.
70399         * build-aux/gnupload: Add missing 'gnu' to example URL.
70400         Report by Karl Berry.
70401
70402 2006-11-08  Bruno Haible  <bruno@clisp.org>
70403
70404         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70405         Suggested by Paul Eggert.
70406
70407 2006-11-08  Jim Meyering  <jim@meyering.net>
70408
70409         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70410         It's already included if !_LIBC.
70411         (fts_safe_changedir): Add a comment.
70412
70413 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70414
70415         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70416         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70417         Matthew Woehlke.
70418
70419         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70420         definitions up, to avoid colliding with change below.
70421         (static_inline) [HAVE_INLINE]: New macro.
70422         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70423         Provide extern decls when !HAVE_INLINE.  Do not define unless
70424         static_inline is defined, either by us or by xmalloc.c.  Use
70425         static_inline rather than static inline.
70426         (XCALLOC): Optimize sizeof(T) = 1 case.
70427         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70428
70429 2006-11-07  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70433         AC_C_INLINE.
70434         * modules/xalloc (Files): Add m4/inline.m4.
70435
70436 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70437
70438         * README: Fix typo.
70439         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70440         (Miscellanous Notes): ...from this.
70441
70442 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70443
70444         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70445         Mention that offsetof should be used instead of sizeof.
70446         From Bruno Haible.
70447
70448 2006-11-07  Bruno Haible  <bruno@clisp.org>
70449
70450         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70451
70452 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70453
70454         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70455         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70456         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70457         (gl_tree_add_before, gl_tree_add_after):
70458         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70459         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70460         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70461         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70462         (gl_linked_add_after, gl_linked_add_at): Likewise.
70463         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70464         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70465         (gl_tree_add_before, gl_tree_add_after): Likewise.
70466         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70467         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70468         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70469
70470 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70471
70472         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70473
70474 2006-11-06  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/inline.m4: New file.
70477         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70478         * modules/list (Files): Add m4/inline.m4.
70479         * modules/oset (Files): Likewise.
70480
70481 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70482
70483         * lib/idcache.c: Include <stddef.h>, for offsetof.
70484         (struct userid.name): Change from char * to a flexible array member.
70485         All uses changed.
70486         * modules/idcache (Depends-on): Add flexmember.
70487
70488         * MODULES.html.sh (Core language properties): New module flexmember.
70489         * modules/flexmember, m4/flexmember.m4: New files.
70490
70491         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70492         inline functions that are identical with the old xnmalloc_inline,
70493         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70494         that we can avoid some unnecessary integer multiplications and
70495         divisions in the common case where the element size is known at
70496         compile time.
70497         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70498         needed.
70499         (xnboundedmalloc): Remove.
70500         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70501         arguments, for consistency with rest of this header.
70502         (xcharalloc): Rewrite using XNMALLOC.
70503         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70504         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70505         versions have been moved to lib/xalloc.h and renamed to be the
70506         non-*_inline versions.
70507         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70508         and xnrealloc functions, since those functions are now inline and
70509         now call us.
70510         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70511         renaming described above.
70512         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70513         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70514         captures the dependency in AC_C_INLINE.
70515
70516         New module canonicalize-lgpl, proposed by Charles Wilson in
70517         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70518         with a few small changes afterwards.
70519         * MODULES.html.sh (File system functions): New module
70520         canonicalize-lgpl.
70521         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70522         and canonicalize_file_name.
70523         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70524         * modules/canonicalize-lgpl: New files.
70525
70526 2006-11-05  Bruno Haible  <bruno@clisp.org>
70527
70528         * gnulib-tool (func_import, func_create_testdir): Create directories
70529         also for files in subdirectories of lib/.
70530
70531 2006-11-05  Bruno Haible  <bruno@clisp.org>
70532
70533         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70534         ANSI C compliant.
70535
70536 2006-11-03  Bruno Haible  <bruno@clisp.org>
70537
70538         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70539         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70540         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70541         (xnboundedmalloc): New inline function.
70542         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70543         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70544         xmalloc.
70545         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70546         xmalloc.
70547         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70548         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70549         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70550         xmalloc.
70551         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70552         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70553         xmalloc.
70554         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70555         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70556         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70557         xmalloc.
70558         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70559         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70560         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70561         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70562         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70563         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70564         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70565
70566 2006-11-03  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/c-ctype.h [C++]: Define functions without name mangling.
70569         * lib/fwriteerror.h [C++]: Likewise.
70570         * lib/gcd.h [C++]: Likewise.
70571         * lib/linebreak.h [C++]: Likewise.
70572
70573 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70574
70575         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70576         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70577         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70578         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70579         Check for functions and headers just once.
70580         Check for declaration of canonicalize_file_name.
70581         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70582
70583 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70584
70585         * gnulib-tool (func_import): Fix typo in actioncmd.
70586
70587 2006-11-02  Bruno Haible  <bruno@clisp.org>
70588
70589         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70590         newline sequence in the Makefile.am snippet as a space, like "make"
70591         does.
70592         Reported by Roger Persson <perrog@gmail.com>.
70593
70594 2006-11-01  Bruno Haible  <bruno@clisp.org>
70595
70596         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
70597         already declared in <string.h>.
70598         * lib/strcase.h (strncasecmp): Don't declare it if yes.
70599
70600 2006-11-01  Bruno Haible  <bruno@clisp.org>
70601
70602         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
70603         * lib/strcase.h: Include <string.h>.
70604         (strcasecmp): Define to rpl_strcasecmp here.
70605
70606 2006-11-01  Bruno Haible  <bruno@clisp.org>
70607
70608         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
70609
70610 2006-11-01  Eric Blake  <ebb9@byu.net>
70611
70612         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
70613
70614         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
70615
70616 2006-10-29  Bruno Haible  <bruno@clisp.org>
70617
70618         Make it compile in C++ mode.
70619         * lib/full-write.c (full_rw): Add a cast.
70620
70621 2006-11-01  Bruno Haible  <bruno@clisp.org>
70622
70623         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
70624         be POSIX compliant.
70625         Reported by Roger Persson <perrog@gmail.com>.
70626
70627 2006-11-01  Eric Blake  <ebb9@byu.net>
70628
70629         * lib/getopt_.h: Fix comments.
70630
70631 2006-10-31  Eric Blake  <ebb9@byu.net>
70632
70633         * modules/tmpdir (Depends-on): Add sys_stat.
70634         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
70635         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
70636         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
70637         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
70638         tempname.
70639
70640 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
70641
70642         Avoid some C++ diagnostics reported by Bruno Haible.
70643         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
70644         xmalloc.
70645         (quotearg_alloc): Use xcharalloc rather than xmalloc.
70646         (struct slotvec): Move to top level.
70647         (quotearg_n_options): Rewrite to avoid xmalloc.
70648         * lib/xalloc.h (xcharalloc): New function.
70649         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
70650         [defined __cplusplus]: Add function template that provides result
70651         type propagation.  This part of the change is from Bruno Haible.
70652
70653 2006-10-29  Bruno Haible  <bruno@clisp.org>
70654
70655         Make it compile in C++ mode.
70656         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
70657         * lib/strnlen1.c (strnlen1): Cast memchr result.
70658         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
70659         * lib/clean-temp.c (string_equals, string_hash): Add casts.
70660         (create_temp_dir): Rename local variable 'template'.
70661         (compile_csharp_using_sscli): Add cast.
70662         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
70663         * lib/findprog.c (find_in_path): Likewise.
70664         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
70665         * lib/wait-process.c (register_slave_subprocess): Likewise.
70666
70667 2006-10-22  Bruno Haible  <bruno@clisp.org>
70668
70669         * modules/tsearch: New file.
70670         * lib/tsearch.h: New file.
70671         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
70672         * m4/tsearch.m4: New file.
70673         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
70674
70675 2006-10-29  Eric Blake  <ebb9@byu.net>
70676
70677         * lib/arcfour.c: Assume config.h.
70678         * lib/arctwo.c: Likewise.
70679         * lib/base64.c: Likewise.
70680         * lib/check-version.c: Likewise.
70681         * lib/crc.c: Likewise.
70682         * lib/des.c: Likewise.
70683         * lib/gc-gnulib.c: Likewise.
70684         * lib/gc-libgcrypt.c: Likewise.
70685         * lib/gc-pbkdf2-sha1.c: Likewise.
70686         * lib/getaddrinfo.c: Likewise.
70687         * lib/getdelim.c: Likewise.
70688         * lib/getline.c: Likewise.
70689         * lib/hmac-md5.c: Likewise.
70690         * lib/hmac-sha1.c: Likewise.
70691         * lib/iconvme.c: Likewise.
70692         * lib/md2.c: Likewise.
70693         * lib/md4.c: Likewise.
70694         * lib/memxor.c: Likewise.
70695         * lib/read-file.c: Likewise.
70696         * lib/readline.c: Likewise.
70697         * lib/rijndael-alg-fst.c: Likewise.
70698         * lib/rijndael-api-fst.c: Likewise.
70699         * lib/xgetdomainname.c: Likewise.
70700
70701 2006-10-28  Eric Blake  <ebb9@byu.net>
70702
70703         * lib/xstrndup.c: Assume config.h.
70704
70705 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70706
70707         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
70708         stat-macros.h is now for our own macros, whereas stat_h is for
70709         macros in the <sys/stat.h> name space.
70710         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
70711         (STAT_MACROS_H): Remove.
70712         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
70713         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
70714         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
70715         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
70716         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
70717         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
70718         Move these macros to ...
70719         * lib/stat_.h: here.  Don't include stat-macros.h.
70720         * lib/canonicalize.c: Don't include stat-macros.h.
70721         * lib/chown.c: Likewise.
70722         * lib/euidaccess.c: Likewise.
70723         * lib/file-type.c: Likewise.
70724         * lib/filemode.c: Likewise.
70725         * lib/glob.c: Likewise.
70726         * lib/isapipe.c: Likewise.
70727         * lib/lchown.c: Likewise.
70728         * lib/lstat.c: Likewise.
70729         * lib/mkdir-p.c: Likewise.
70730         * lib/rmdir.c: Likewise.
70731         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
70732         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
70733         unless mkdir isn't declared, to speed up 'configure'.
70734         Always create sys/stat.h, since it's unlikely any real sys/stat.h
70735         would define all the S_* symbols.
70736         * modules/canonicalize (Depends-on):
70737         Depend on sys_stat, not stat-macros.
70738         * modules/chown: Likewise.
70739         * modules/euidaccess: Likewise.
70740         * modules/filemode: Likewise.
70741         * modules/file-type: Likewise.
70742         * modules/glob: Likewise.
70743         * modules/isapipe: Likewise.
70744         * modules/lchown: Likewise.
70745         * modules/lstat: Likewise.
70746         * modules/mkancesdirs: Likewise.
70747         * modules/rmdir: Likewise.
70748         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
70749         * modules/modechange: Likewise.
70750         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
70751         (configure.ac): Remove gl_STAT_MACROS.
70752         * modules/sys_stat (Depends-on): Remove stat-macros.
70753
70754 2006-10-27  Bruno Haible  <bruno@clisp.org>
70755
70756         * m4/signed.m4: Remove file.
70757         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
70758         invocation.
70759         * modules/vasnprintf (Files): Remove m4/signed.m4.
70760
70761 2006-10-27  Bruno Haible  <bruno@clisp.org>
70762
70763         Update to GNU gettext 0.16.
70764         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
70765         m4/inttypes-h.m4, m4/signed.m4.
70766         * m4/gettext.m4: Update to GNU gettext 0.16.
70767         * m4/intl.m4: New file, from GNU gettext.
70768         * m4/intldir.m4: New file, from GNU gettext.
70769         * config/srclist.txt: Update
70770
70771 2006-10-27  Eric Blake  <ebb9@byu.net>
70772
70773         * MODULES.html.sh: Document tempname.
70774         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
70775         dependencies.
70776         (Files): Move lib/tempname.c...
70777         * modules/tempname: ...to this new module.
70778         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
70779         (gl_PREREQ_TEMPNAME): Move...
70780         * m4/tempname.m4: ...to this new file.
70781         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
70782         * modules/sys_stat (Depends-on): Add stat-macros.
70783         * lib/stat_.h (includes): Pick up stat macros.
70784         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
70785         if stat macros are broken.
70786         * lib/tempname.c (includes): No need to include "stat-macros.h".
70787         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
70788         (direxists, __path_search) [!_LIBC]: Don't compile these in
70789         gnulib; the tmpdir module covers that.
70790         * lib/tempname.h: New file.
70791
70792 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
70793
70794         * COPYING: Explain how gnulib-tool converts licence headers.
70795         Almost all wording by Eric Blake.
70796
70797 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
70798
70799         * lib/mbchar.h (is_basic_table): Make read-only.
70800         * lib/mbchar.c (is_basic_table): Likewise.
70801         Reported by John Darrington.
70802
70803 2006-10-25  Bruno Haible  <bruno@clisp.org>
70804
70805         * lib/progname.h (set_program_name): Undefine before defining.
70806
70807 2006-10-25  Bruno Haible  <bruno@clisp.org>
70808
70809         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
70810         false for non-gcc C++ compilers.
70811         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70812
70813 2006-10-24  Bruno Haible  <bruno@clisp.org>
70814
70815         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
70816         iconv implementations like Irix iconv.
70817
70818 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70819
70820         * modules/vararrays: New file.
70821         * m4/vararrays.m4: New file, taken from diffutils.
70822         * MODULES.html.sh: New module vararrays.
70823
70824 2006-10-24  Karl Berry  <karl@gnu.org>
70825
70826         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
70827         Don't call GNU Unix.
70828
70829 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70830
70831         * users.txt: Add Libtool.
70832
70833         Sync from Libtool:
70834
70835         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70836
70837         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
70838         to gnulib's policy of including config.h unconditionally.
70839
70840 2006-10-24  Bruno Haible  <bruno@clisp.org>
70841
70842         * modules/wcwidth (Files): Add m4/wint_t.m4.
70843         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
70844         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
70845
70846 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
70849         to pacify GCC with some -W flags enabled.  Problem reported by
70850         Bruno Haible.
70851
70852 2006-10-24  Jim Meyering  <jim@meyering.net>
70853
70854         * MODULES.html.sh: Remove uinttostr.  It's not a module.
70855         Reported by Karl Berry.
70856
70857 2006-10-23  Bruno Haible  <bruno@clisp.org>
70858
70859         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
70860
70861 2006-10-24  Bruno Haible  <bruno@clisp.org>
70862
70863         * lib/gl_list.h: Use C comment style, not C++ comment style.
70864
70865 2006-10-23  Eric Blake  <ebb9@byu.net>
70866
70867         * lib/getaddrinfo.c (includes): Add missing include.
70868
70869 2006-10-23  Bruno Haible  <bruno@clisp.org>
70870             Paul Eggert  <eggert@cs.ucla.edu>
70871
70872         Ability to rename obstack_free.
70873         * lib/obstack.h (__obstack_free): New macro. Declare instead of
70874         obstack_free.
70875         (obstack_free): Invoke the __obstack_free macro.
70876         * lib/obstack.c (obstack_free): Use __obstack_free macro.
70877
70878 2006-10-23  Bruno Haible  <bruno@clisp.org>
70879             Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
70882         __argc, __argv from the declaration. (They are defined as macros on
70883         mingw.)
70884
70885 2006-10-22  Bruno Haible  <bruno@clisp.org>
70886
70887         * doc/gnulib-intro.texi: New file.
70888         * doc/gnulib.texi: Include it.
70889
70890 2006-10-21  Bruno Haible  <bruno@clisp.org>
70891
70892         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
70893         "Introduction", "Miscellanous Notes", "Particular Modules".
70894
70895 2006-10-21  Bruno Haible  <bruno@clisp.org>
70896
70897         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70898         Change mostlyclean-local rule to avoid sh syntax error from bash
70899         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
70900
70901 2006-10-23  Jim Meyering  <jim@meyering.net>
70902
70903         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
70904         in place of snprintf.
70905
70906         * modules/inttostr (Files): Add lib/uinttostr.c.
70907         * lib/uinttostr.c (inttostr): New file/function.
70908         * lib/inttostr.h (uinttostr): Declare.
70909         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
70910         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70911         Add uinttostr.
70912         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
70913
70914 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70915
70916         * lib/canonicalize.c (ELOOP): Define if not already defined.
70917         Problem reported by Bruno Haible in
70918         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
70919
70920 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70921
70922         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
70923         Problem reported by Perry Smith and Ville Laurikari.
70924
70925         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
70926         uses.
70927
70928 2006-10-19  Bruno Haible  <bruno@clisp.org>
70929
70930         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
70931         for mingw.
70932
70933 2006-10-19  Bruno Haible  <bruno@clisp.org>
70934
70935         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
70936         Needed for mingw.
70937
70938 2006-10-19  Bruno Haible  <bruno@clisp.org>
70939
70940         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
70941
70942 2006-10-19  Bruno Haible  <bruno@clisp.org>
70943
70944         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
70945         it.
70946
70947 2006-10-19  Bruno Haible  <bruno@clisp.org>
70948
70949         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70950         invocation.
70951
70952 2006-10-19  Bruno Haible  <bruno@clisp.org>
70953
70954         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70955         mountlist by default.
70956
70957 2006-10-16  Bruno Haible  <bruno@clisp.org>
70958
70959         * lib/c-strstr.c: Include c-strstr.h.
70960
70961 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70962
70963         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70964         in a slash.
70965
70966 2006-10-18  Bruno Haible  <bruno@clisp.org>
70967
70968         * lib/lock.h [C++]: Wrap definitions in extern "C".
70969
70970 2006-10-18  Bruno Haible  <bruno@clisp.org>
70971
70972         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70973         gl_LIBOBJS list.
70974
70975 2006-10-18  Bruno Haible  <bruno@clisp.org>
70976
70977         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70978
70979 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70980
70981         * lib/xstrtol.h: Include gettext.h.
70982         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70983         Problem reported by Eric Blake.
70984         * modules/xstrtol (Depends-on): Add gettext-h.
70985
70986 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70987
70988         * lib/strftime.c (advance): New macro.
70989         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70990         incomplete type, so you can't add 0 to it.  Problem and patch
70991         reported by Eelco Dolstra for dietlibc.
70992
70993 2006-10-18  Jim Meyering  <jim@meyering.net>
70994
70995         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70996         type for a local, and rename it: s/up/user_proc/.
70997
70998 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70999
71000         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71001         READ_UTMP_USER_PROCESS.
71002         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71003
71004 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71005
71006         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71007         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71008
71009 2006-10-17  Eric Blake  <ebb9@byu.net>
71010
71011         * lib/sigprocmask.c (sigprocmask): Fix typo.
71012
71013         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71014
71015         * modules/clean-temp (Makefile.am): Don't add to make output...
71016         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71017         config.h.
71018
71019 2006-10-17  Bruno Haible  <bruno@clisp.org>
71020
71021         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71022         differently if DEFAULT_TEXT_DOMAIN is set.
71023
71024 2006-10-16  Bruno Haible  <bruno@clisp.org>
71025
71026         * lib/clean-temp.c: Include fwriteerror.h.
71027
71028 2006-10-16  Bruno Haible  <bruno@clisp.org>
71029
71030         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71031
71032 2006-10-16  Bruno Haible  <bruno@clisp.org>
71033
71034         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71035         * lib/sigprocmask.h: Include <sys/types.h>.
71036         (sigset_t): Use the system's definition if present.
71037
71038 2006-10-17  Eric Blake  <ebb9@byu.net>
71039
71040         * lib/xvasprintf.c (includes): Assume config.h.
71041         * lib/xasprintf.c (includes): Likewise.
71042
71043 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71046         at least as wide as intmax_t.
71047
71048 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71049
71050         (Imported from Automake.)
71051         * build-aux/gnupload: Update to version 1.1 of directive file.
71052
71053 2006-10-16  Eric Blake  <ebb9@byu.net>
71054
71055         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71056         match Automake 1.10a.
71057
71058 2006-10-14  Bruno Haible  <bruno@clisp.org>
71059
71060         * modules/sigprocmask: New file.
71061         * lib/sigprocmask.h: New file.
71062         * lib/sigprocmask.c: New file.
71063         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71064         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71065         request sigprocmask.o.
71066         (gl_PREREQ_SIGPROCMASK): New macro.
71067         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71068         (Depends-on): Add sigprocmask.
71069         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71070         gt_SIGNALBLOCKING. Test for 'raise' only once.
71071         * lib/fatal-signal.c: Include sigprocmask.h.
71072         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71073         unblock_fatal_signals): Define always.
71074         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71075         sigprocmask.
71076
71077 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71078
71079         Sync from Automake.
71080         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71081         which incorrectly sets the mode of an existing destination
71082         directory.  In some cases the unpatched install-sh could do the
71083         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71084         system.  We hope this is rare in practice, but it's clearly worth
71085         fixing.  Problem reported by Alex Unleashed in
71086         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71087         Also, don't bother to check for -m bugs unless we're using -m;
71088         suggested by Stepan Kasal.
71089
71090 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71091
71092         Sync from Automake.
71093         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71094         `-c' flag, so they appear at the same position as in %FASTDEP%
71095         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71096         which ignores unknown options only after the first non-option.
71097         Bug report against M4 by Nelson H. F. Beebe.
71098
71099 2006-10-13  Jim Meyering  <jim@meyering.net>
71100
71101         Fix a bug in yesterday's change.
71102         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71103         p->fts_statp->st_dev would be used uninitialized.
71104         Ensures that we always call fts_stat on the very first entry.
71105         Miklos Szeredi reported that find -xdev stopped working.
71106
71107 2006-10-12  Bruno Haible  <bruno@clisp.org>
71108
71109         * gnulib-tool (func_get_automake_snippet): Append an automatically
71110         computed EXTRA_DIST augmentation.
71111         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71112         * modules/alloca-opt (Makefile.am): Likewise.
71113         * modules/allocsa (Makefile.am): Likewise.
71114         * modules/arcfour (Makefile.am): Likewise.
71115         * modules/arctwo (Makefile.am): Likewise.
71116         * modules/argmatch (Makefile.am): Likewise.
71117         * modules/argz (Makefile.am): Likewise.
71118         * modules/atexit (Makefile.am): Likewise.
71119         * modules/backupfile (Makefile.am): Likewise.
71120         * modules/byteswap (Makefile.am): Likewise.
71121         * modules/c-strtod (Makefile.am): Likewise.
71122         * modules/c-strtold (Makefile.am): Likewise.
71123         * modules/calloc (Makefile.am): Likewise.
71124         * modules/canon-host (Makefile.am): Likewise.
71125         * modules/canonicalize (Makefile.am): Likewise.
71126         * modules/chdir-long (Makefile.am): Likewise.
71127         * modules/chdir-safer (Makefile.am): Likewise.
71128         * modules/check-version (Makefile.am): Likewise.
71129         * modules/chown (Makefile.am): Likewise.
71130         * modules/cloexec (Makefile.am): Likewise.
71131         * modules/close-stream (Makefile.am): Likewise.
71132         * modules/closeout (Makefile.am): Likewise.
71133         * modules/crc (Makefile.am): Likewise.
71134         * modules/csharpexec (Makefile.am): Likewise.
71135         * modules/cycle-check (Makefile.am): Likewise.
71136         * modules/des (Makefile.am): Likewise.
71137         * modules/dev-ino (Makefile.am): Likewise.
71138         * modules/dirfd (Makefile.am): Likewise.
71139         * modules/dirname (Makefile.am): Likewise.
71140         * modules/dup2 (Makefile.am): Likewise.
71141         * modules/eealloc (Makefile.am): Likewise.
71142         * modules/error (Makefile.am): Likewise.
71143         * modules/euidaccess (Makefile.am): Likewise.
71144         * modules/exclude (Makefile.am): Likewise.
71145         * modules/exitfail (Makefile.am): Likewise.
71146         * modules/fcntl-safer (Makefile.am): Likewise.
71147         * modules/fcntl (Makefile.am): Likewise.
71148         * modules/file-type (Makefile.am): Likewise.
71149         * modules/fileblocks (Makefile.am): Likewise.
71150         * modules/filemode (Makefile.am): Likewise.
71151         * modules/filenamecat (Makefile.am): Likewise.
71152         * modules/fnmatch (Makefile.am): Likewise.
71153         * modules/fopen-safer (Makefile.am): Likewise.
71154         * modules/fpending (Makefile.am): Likewise.
71155         * modules/fprintftime (Makefile.am): Likewise.
71156         * modules/free (Makefile.am): Likewise.
71157         * modules/fsusage (Makefile.am): Likewise.
71158         * modules/ftruncate (Makefile.am): Likewise.
71159         * modules/fts (Makefile.am): Likewise.
71160         * modules/gc-arcfour (Makefile.am): Likewise.
71161         * modules/gc-des (Makefile.am): Likewise.
71162         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71163         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71164         * modules/gc-md4 (Makefile.am): Likewise.
71165         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71166         * modules/gc-sha1 (Makefile.am): Likewise.
71167         * modules/gc (Makefile.am): Likewise.
71168         * modules/getaddrinfo (Makefile.am): Likewise.
71169         * modules/getcwd (Makefile.am): Likewise.
71170         * modules/getdelim (Makefile.am): Likewise.
71171         * modules/getdomainname (Makefile.am): Likewise.
71172         * modules/getgroups (Makefile.am): Likewise.
71173         * modules/gethostname (Makefile.am): Likewise.
71174         * modules/gethrxtime (Makefile.am): Likewise.
71175         * modules/getline (Makefile.am): Likewise.
71176         * modules/getloadavg (Makefile.am): Likewise.
71177         * modules/getlogin_r (Makefile.am): Likewise.
71178         * modules/getndelim2 (Makefile.am): Likewise.
71179         * modules/getopt (Makefile.am): Likewise.
71180         * modules/getpagesize (Makefile.am): Likewise.
71181         * modules/getpass-gnu (Makefile.am): Likewise.
71182         * modules/getpass (Makefile.am): Likewise.
71183         * modules/getsubopt (Makefile.am): Likewise.
71184         * modules/gettime (Makefile.am): Likewise.
71185         * modules/gettimeofday (Makefile.am): Likewise.
71186         * modules/getugroups (Makefile.am): Likewise.
71187         * modules/getusershell (Makefile.am): Likewise.
71188         * modules/glob (Makefile.am): Likewise.
71189         * modules/group-member (Makefile.am): Likewise.
71190         * modules/hard-locale (Makefile.am): Likewise.
71191         * modules/hash (Makefile.am): Likewise.
71192         * modules/hmac-md5 (Makefile.am): Likewise.
71193         * modules/hmac-sha1 (Makefile.am): Likewise.
71194         * modules/human (Makefile.am): Likewise.
71195         * modules/idcache (Makefile.am): Likewise.
71196         * modules/imaxabs (Makefile.am): Likewise.
71197         * modules/imaxdiv (Makefile.am): Likewise.
71198         * modules/inet_ntop (Makefile.am): Likewise.
71199         * modules/inet_pton (Makefile.am): Likewise.
71200         * modules/intprops (Makefile.am): Likewise.
71201         * modules/inttostr (Makefile.am): Likewise.
71202         * modules/inttypes (Makefile.am): Likewise.
71203         * modules/isapipe (Makefile.am): Likewise.
71204         * modules/javaversion (Makefile.am): Likewise.
71205         * modules/lchmod (Makefile.am): Likewise.
71206         * modules/lchown (Makefile.am): Likewise.
71207         * modules/localcharset (Makefile.am): Likewise.
71208         * modules/long-options (Makefile.am): Likewise.
71209         * modules/lstat (Makefile.am): Likewise.
71210         * modules/malloc (Makefile.am): Likewise.
71211         * modules/mathl (Makefile.am): Likewise.
71212         * modules/mbchar (Makefile.am): Likewise.
71213         * modules/md2 (Makefile.am): Likewise.
71214         * modules/md4 (Makefile.am): Likewise.
71215         * modules/md5 (Makefile.am): Likewise.
71216         * modules/memcasecmp (Makefile.am): Likewise.
71217         * modules/memchr (Makefile.am): Likewise.
71218         * modules/memcmp (Makefile.am): Likewise.
71219         * modules/memcoll (Makefile.am): Likewise.
71220         * modules/memcpy (Makefile.am): Likewise.
71221         * modules/memmem (Makefile.am): Likewise.
71222         * modules/memmove (Makefile.am): Likewise.
71223         * modules/mempcpy (Makefile.am): Likewise.
71224         * modules/memrchr (Makefile.am): Likewise.
71225         * modules/memset (Makefile.am): Likewise.
71226         * modules/memxor (Makefile.am): Likewise.
71227         * modules/mkancesdirs (Makefile.am): Likewise.
71228         * modules/mkdir-p (Makefile.am): Likewise.
71229         * modules/mkdir (Makefile.am): Likewise.
71230         * modules/mkdtemp (Makefile.am): Likewise.
71231         * modules/mkstemp (Makefile.am): Likewise.
71232         * modules/mktime (Makefile.am): Likewise.
71233         * modules/modechange (Makefile.am): Likewise.
71234         * modules/mountlist (Makefile.am): Likewise.
71235         * modules/nanosleep (Makefile.am): Likewise.
71236         * modules/obstack (Makefile.am): Likewise.
71237         * modules/openat (Makefile.am): Likewise.
71238         * modules/pagealign_alloc (Makefile.am): Likewise.
71239         * modules/pathmax (Makefile.am): Likewise.
71240         * modules/physmem (Makefile.am): Likewise.
71241         * modules/poll (Makefile.am): Likewise.
71242         * modules/posixtm (Makefile.am): Likewise.
71243         * modules/posixver (Makefile.am): Likewise.
71244         * modules/putenv (Makefile.am): Likewise.
71245         * modules/quote (Makefile.am): Likewise.
71246         * modules/quotearg (Makefile.am): Likewise.
71247         * modules/raise (Makefile.am): Likewise.
71248         * modules/read-file (Makefile.am): Likewise.
71249         * modules/readline (Makefile.am): Likewise.
71250         * modules/readlink (Makefile.am): Likewise.
71251         * modules/readtokens (Makefile.am): Likewise.
71252         * modules/readutmp (Makefile.am): Likewise.
71253         * modules/realloc (Makefile.am): Likewise.
71254         * modules/regex (Makefile.am): Likewise.
71255         * modules/rename-dest-slash (Makefile.am): Likewise.
71256         * modules/rename (Makefile.am): Likewise.
71257         * modules/rijndael (Makefile.am): Likewise.
71258         * modules/rmdir (Makefile.am): Likewise.
71259         * modules/rpmatch (Makefile.am): Likewise.
71260         * modules/safe-read (Makefile.am): Likewise.
71261         * modules/safe-write (Makefile.am): Likewise.
71262         * modules/same-inode (Makefile.am): Likewise.
71263         * modules/same (Makefile.am): Likewise.
71264         * modules/save-cwd (Makefile.am): Likewise.
71265         * modules/savedir (Makefile.am): Likewise.
71266         * modules/setenv (Makefile.am): Likewise.
71267         * modules/settime (Makefile.am): Likewise.
71268         * modules/sha1 (Makefile.am): Likewise.
71269         * modules/sig2str (Makefile.am): Likewise.
71270         * modules/snprintf (Makefile.am): Likewise.
71271         * modules/stat-macros (Makefile.am): Likewise.
71272         * modules/stat-time (Makefile.am): Likewise.
71273         * modules/stdbool (Makefile.am): Likewise.
71274         * modules/stdint (Makefile.am): Likewise.
71275         * modules/stdlib-safer (Makefile.am): Likewise.
71276         * modules/stpcpy (Makefile.am): Likewise.
71277         * modules/stpncpy (Makefile.am): Likewise.
71278         * modules/strcase (Makefile.am): Likewise.
71279         * modules/strcasestr (Makefile.am): Likewise.
71280         * modules/strchrnul (Makefile.am): Likewise.
71281         * modules/strcspn (Makefile.am): Likewise.
71282         * modules/strdup (Makefile.am): Likewise.
71283         * modules/strerror (Makefile.am): Likewise.
71284         * modules/strftime (Makefile.am): Likewise.
71285         * modules/strndup (Makefile.am): Likewise.
71286         * modules/strnlen (Makefile.am): Likewise.
71287         * modules/strpbrk (Makefile.am): Likewise.
71288         * modules/strsep (Makefile.am): Likewise.
71289         * modules/strstr (Makefile.am): Likewise.
71290         * modules/strtod (Makefile.am): Likewise.
71291         * modules/strtoimax (Makefile.am): Likewise.
71292         * modules/strtok_r (Makefile.am): Likewise.
71293         * modules/strtol (Makefile.am): Likewise.
71294         * modules/strtoll (Makefile.am): Likewise.
71295         * modules/strtoul (Makefile.am): Likewise.
71296         * modules/strtoull (Makefile.am): Likewise.
71297         * modules/strtoumax (Makefile.am): Likewise.
71298         * modules/strverscmp (Makefile.am): Likewise.
71299         * modules/sys_socket (Makefile.am): Likewise.
71300         * modules/sys_stat (Makefile.am): Likewise.
71301         * modules/sysexits (Makefile.am): Likewise.
71302         * modules/time_r (Makefile.am): Likewise.
71303         * modules/timegm (Makefile.am): Likewise.
71304         * modules/timespec (Makefile.am): Likewise.
71305         * modules/tmpfile-safer (Makefile.am): Likewise.
71306         * modules/trim (Makefile.am): Likewise.
71307         * modules/unistd-safer (Makefile.am): Likewise.
71308         * modules/unlinkdir (Makefile.am): Likewise.
71309         * modules/unlocked-io (Makefile.am): Likewise.
71310         * modules/userspec (Makefile.am): Likewise.
71311         * modules/utime (Makefile.am): Likewise.
71312         * modules/utimecmp (Makefile.am): Likewise.
71313         * modules/utimens (Makefile.am): Likewise.
71314         * modules/vasnprintf (Makefile.am): Likewise.
71315         * modules/vasprintf (Makefile.am): Likewise.
71316         * modules/vsnprintf (Makefile.am): Likewise.
71317         * modules/xalloc (Makefile.am): Likewise.
71318         * modules/xgetcwd (Makefile.am): Likewise.
71319         * modules/xnanosleep (Makefile.am): Likewise.
71320         * modules/xreadlink (Makefile.am): Likewise.
71321         * modules/xstrtod (Makefile.am): Likewise.
71322         * modules/xstrtol (Makefile.am): Likewise.
71323         * modules/xstrtold (Makefile.am): Likewise.
71324         * modules/yesno (Makefile.am): Likewise.
71325         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71326
71327 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71328
71329         * modules/error (Makefile.am): Distribute files through
71330         EXTRA_DIST, not lib_SOURCES.
71331
71332 2006-10-12  Eric Blake  <ebb9@byu.net>
71333
71334         * modules/error (Makefile.am): Distribute files in /lib.
71335         * modules/obstack (Makefile.am): Likewise.
71336
71337 2006-10-12  Bruno Haible  <bruno@clisp.org>
71338
71339         * modules/acl (Makefile.am): Distribute all files in lib/ through
71340         EXTRA_DIST.
71341         * modules/arcfour (Makefile.am): Likewise.
71342         * modules/arctwo (Makefile.am): Likewise.
71343         * modules/argmatch (Makefile.am): Likewise.
71344         * modules/argz (Makefile.am): Likewise.
71345         * modules/atexit (Makefile.am): Likewise.
71346         * modules/backupfile (Makefile.am): Likewise.
71347         * modules/c-strtod (Makefile.am): Likewise.
71348         * modules/c-strtold (Makefile.am): Likewise.
71349         * modules/calloc (Makefile.am): Likewise.
71350         * modules/canon-host (Makefile.am): Likewise.
71351         * modules/canonicalize (Makefile.am): Likewise.
71352         * modules/chdir-long (Makefile.am): Likewise.
71353         * modules/chdir-safer (Makefile.am): Likewise.
71354         * modules/check-version (Makefile.am): Likewise.
71355         * modules/chown (Makefile.am): Likewise.
71356         * modules/cloexec (Makefile.am): Likewise.
71357         * modules/close-stream (Makefile.am): Likewise.
71358         * modules/closeout (Makefile.am): Likewise.
71359         * modules/crc (Makefile.am): Likewise.
71360         * modules/cycle-check (Makefile.am): Likewise.
71361         * modules/des (Makefile.am): Likewise.
71362         * modules/dirfd (Makefile.am): Likewise.
71363         * modules/dirname (Makefile.am): Likewise.
71364         * modules/dup2 (Makefile.am): Likewise.
71365         * modules/euidaccess (Makefile.am): Likewise.
71366         * modules/exclude (Makefile.am): Likewise.
71367         * modules/exitfail (Makefile.am): Likewise.
71368         * modules/fcntl-safer (Makefile.am): Likewise.
71369         * modules/file-type (Makefile.am): Likewise.
71370         * modules/fileblocks (Makefile.am): Likewise.
71371         * modules/filemode (Makefile.am): Likewise.
71372         * modules/filenamecat (Makefile.am): Likewise.
71373         * modules/fnmatch (Makefile.am): Likewise.
71374         * modules/fopen-safer (Makefile.am): Likewise.
71375         * modules/fpending (Makefile.am): Likewise.
71376         * modules/fprintftime (Makefile.am): Likewise.
71377         * modules/free (Makefile.am): Likewise.
71378         * modules/fsusage (Makefile.am): Likewise.
71379         * modules/ftruncate (Makefile.am): Likewise.
71380         * modules/fts (Makefile.am): Likewise.
71381         * modules/gc (Makefile.am): Likewise.
71382         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71383         * modules/getaddrinfo (Makefile.am): Likewise.
71384         * modules/getcwd (Makefile.am): Likewise.
71385         * modules/getdelim (Makefile.am): Likewise.
71386         * modules/getdomainname (Makefile.am): Likewise.
71387         * modules/getgroups (Makefile.am): Likewise.
71388         * modules/gethostname (Makefile.am): Likewise.
71389         * modules/gethrxtime (Makefile.am): Likewise.
71390         * modules/getline (Makefile.am): Likewise.
71391         * modules/getloadavg (Makefile.am): Likewise.
71392         * modules/getlogin_r (Makefile.am): Likewise.
71393         * modules/getopt (Makefile.am): Likewise.
71394         * modules/getpass (Makefile.am): Likewise.
71395         * modules/getpass-gnu (Makefile.am): Likewise.
71396         * modules/getsubopt (Makefile.am): Likewise.
71397         * modules/gettime (Makefile.am): Likewise.
71398         * modules/gettimeofday (Makefile.am): Likewise.
71399         * modules/getugroups (Makefile.am): Likewise.
71400         * modules/getusershell (Makefile.am): Likewise.
71401         * modules/glob (Makefile.am): Likewise.
71402         * modules/group-member (Makefile.am): Likewise.
71403         * modules/hard-locale (Makefile.am): Likewise.
71404         * modules/hash (Makefile.am): Likewise.
71405         * modules/hmac-md5 (Makefile.am): Likewise.
71406         * modules/hmac-sha1 (Makefile.am): Likewise.
71407         * modules/human (Makefile.am): Likewise.
71408         * modules/idcache (Makefile.am): Likewise.
71409         * modules/imaxabs (Makefile.am): Likewise.
71410         * modules/imaxdiv (Makefile.am): Likewise.
71411         * modules/inet_ntop (Makefile.am): Likewise.
71412         * modules/inet_pton (Makefile.am): Likewise.
71413         * modules/inttostr (Makefile.am): Likewise.
71414         * modules/isapipe (Makefile.am): Likewise.
71415         * modules/lchown (Makefile.am): Likewise.
71416         * modules/long-options (Makefile.am): Likewise.
71417         * modules/lstat (Makefile.am): Likewise.
71418         * modules/malloc (Makefile.am): Likewise.
71419         * modules/mathl (Makefile.am): Likewise.
71420         * modules/mbchar (Makefile.am): Likewise.
71421         * modules/md2 (Makefile.am): Likewise.
71422         * modules/md4 (Makefile.am): Likewise.
71423         * modules/md5 (Makefile.am): Likewise.
71424         * modules/memcasecmp (Makefile.am): Likewise.
71425         * modules/memchr (Makefile.am): Likewise.
71426         * modules/memcmp (Makefile.am): Likewise.
71427         * modules/memcoll (Makefile.am): Likewise.
71428         * modules/memcpy (Makefile.am): Likewise.
71429         * modules/memmem (Makefile.am): Likewise.
71430         * modules/memmove (Makefile.am): Likewise.
71431         * modules/mempcpy (Makefile.am): Likewise.
71432         * modules/memrchr (Makefile.am): Likewise.
71433         * modules/memset (Makefile.am): Likewise.
71434         * modules/memxor (Makefile.am): Likewise.
71435         * modules/mkancesdirs (Makefile.am): Likewise.
71436         * modules/mkdir (Makefile.am): Likewise.
71437         * modules/mkdir-p (Makefile.am): Likewise.
71438         * modules/mkdtemp (Makefile.am): Likewise.
71439         * modules/mkstemp (Makefile.am): Likewise.
71440         * modules/mktime (Makefile.am): Likewise.
71441         * modules/modechange (Makefile.am): Likewise.
71442         * modules/mountlist (Makefile.am): Likewise.
71443         * modules/nanosleep (Makefile.am): Likewise.
71444         * modules/openat (Makefile.am): Likewise.
71445         * modules/pagealign_alloc (Makefile.am): Likewise.
71446         * modules/physmem (Makefile.am): Likewise.
71447         * modules/poll (Makefile.am): Likewise.
71448         * modules/posixtm (Makefile.am): Likewise.
71449         * modules/posixver (Makefile.am): Likewise.
71450         * modules/putenv (Makefile.am): Likewise.
71451         * modules/quote (Makefile.am): Likewise.
71452         * modules/quotearg (Makefile.am): Likewise.
71453         * modules/raise (Makefile.am): Likewise.
71454         * modules/read-file (Makefile.am): Likewise.
71455         * modules/readline (Makefile.am): Likewise.
71456         * modules/readlink (Makefile.am): Likewise.
71457         * modules/readtokens (Makefile.am): Likewise.
71458         * modules/readutmp (Makefile.am): Likewise.
71459         * modules/realloc (Makefile.am): Likewise.
71460         * modules/regex (Makefile.am): Likewise.
71461         * modules/rename (Makefile.am): Likewise.
71462         * modules/rename-dest-slash (Makefile.am): Likewise.
71463         * modules/rijndael (Makefile.am): Likewise.
71464         * modules/rmdir (Makefile.am): Likewise.
71465         * modules/rpmatch (Makefile.am): Likewise.
71466         * modules/safe-read (Makefile.am): Likewise.
71467         * modules/safe-write (Makefile.am): Likewise.
71468         * modules/same (Makefile.am): Likewise.
71469         * modules/save-cwd (Makefile.am): Likewise.
71470         * modules/savedir (Makefile.am): Likewise.
71471         * modules/setenv (Makefile.am): Likewise.
71472         * modules/settime (Makefile.am): Likewise.
71473         * modules/sha1 (Makefile.am): Likewise.
71474         * modules/sig2str (Makefile.am): Likewise.
71475         * modules/snprintf (Makefile.am): Likewise.
71476         * modules/stdlib-safer (Makefile.am): Likewise.
71477         * modules/stpcpy (Makefile.am): Likewise.
71478         * modules/stpncpy (Makefile.am): Likewise.
71479         * modules/strcase (Makefile.am): Likewise.
71480         * modules/strcasestr (Makefile.am): Likewise.
71481         * modules/strchrnul (Makefile.am): Likewise.
71482         * modules/strcspn (Makefile.am): Likewise.
71483         * modules/strdup (Makefile.am): Likewise.
71484         * modules/strerror (Makefile.am): Likewise.
71485         * modules/strftime (Makefile.am): Likewise.
71486         * modules/strndup (Makefile.am): Likewise.
71487         * modules/strnlen (Makefile.am): Likewise.
71488         * modules/strpbrk (Makefile.am): Likewise.
71489         * modules/strsep (Makefile.am): Likewise.
71490         * modules/strstr (Makefile.am): Likewise.
71491         * modules/strtod (Makefile.am): Likewise.
71492         * modules/strtoimax (Makefile.am): Likewise.
71493         * modules/strtok_r (Makefile.am): Likewise.
71494         * modules/strtol (Makefile.am): Likewise.
71495         * modules/strtoll (Makefile.am): Likewise.
71496         * modules/strtoul (Makefile.am): Likewise.
71497         * modules/strtoull (Makefile.am): Likewise.
71498         * modules/strtoumax (Makefile.am): Likewise.
71499         * modules/strverscmp (Makefile.am): Likewise.
71500         * modules/time_r (Makefile.am): Likewise.
71501         * modules/timegm (Makefile.am): Likewise.
71502         * modules/tmpfile-safer (Makefile.am): Likewise.
71503         * modules/unistd-safer (Makefile.am): Likewise.
71504         * modules/unlinkdir (Makefile.am): Likewise.
71505         * modules/userspec (Makefile.am): Likewise.
71506         * modules/utime (Makefile.am): Likewise.
71507         * modules/utimecmp (Makefile.am): Likewise.
71508         * modules/utimens (Makefile.am): Likewise.
71509         * modules/vasnprintf (Makefile.am): Likewise.
71510         * modules/vasprintf (Makefile.am): Likewise.
71511         * modules/vsnprintf (Makefile.am): Likewise.
71512         * modules/xalloc (Makefile.am): Likewise.
71513         * modules/xgetcwd (Makefile.am): Likewise.
71514         * modules/xnanosleep (Makefile.am): Likewise.
71515         * modules/xreadlink (Makefile.am): Likewise.
71516         * modules/xstrtod (Makefile.am): Likewise.
71517         * modules/xstrtol (Makefile.am): Likewise.
71518         * modules/xstrtold (Makefile.am): Likewise.
71519         * modules/yesno (Makefile.am): Likewise.
71520
71521 2006-10-12  Jim Meyering  <jim@meyering.net>
71522
71523         * m4/getloadavg.m4: Revert the change below.
71524
71525         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71526         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71527         fail with a symlink, which is what coreutils' ./bootstrap now
71528         creates by default.
71529
71530 2006-10-12  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71533         mingw.
71534         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71535         MSVC and mingw explicitly.
71536
71537 2006-10-11  Simon Josefsson  <jas@extundo.com>
71538             Bruno Haible  <bruno@clisp.org>
71539
71540         Add support for multiple gnulib-tool invocations in the scope of a
71541         single configure.ac file.
71542         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71543         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71544         with the same contents as the _LIBADD variable.
71545         (func_emit_initmacro_start, func_emit_initmacro_end,
71546         func_emit_initmacro_done): New functions.
71547         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71548         gl_LIBOBJS and gl_LTLIBOBJS.
71549
71550 2006-10-11  Bruno Haible  <bruno@clisp.org>
71551
71552         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71553         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71554         autoreconf. Instead, invoke autopoint explicitly but move back the
71555         *.m4 files from gnulib.
71556
71557 2006-10-11  Bruno Haible  <bruno@clisp.org>
71558
71559         * gnulib-tool (func_usage): Make module names after --create-testdir
71560         optional.
71561         (func_create_testdir): If no module was specified, use nearly all
71562         modules.
71563
71564 2006-10-12  Jim Meyering  <jim@meyering.net>
71565
71566         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71567         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71568         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71569         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71570         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71571         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71572         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71573         (fts_set_stat_required): New function.
71574         (fts_open): Defer the calls to fts_stat, if possible or requested.
71575         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71576         into fts_stat itself.
71577         (fts_read): Perform any required (deferred) fts_stat call.
71578         (fts_build): Likewise, for the directory we're about to open and read.
71579         In the readdir loop, carefully decide whether each entry will require
71580         an eventual call to fts_stat, using dirent.d_type info if available.
71581         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71582         a command line argument into this function.  Update all callers.
71583         Map a return value of FTS_DOT to FTS_D for a command line argument.
71584         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71585         Thanks to Miklos Szeredi for his tenacity and for the initial
71586         bug report about "find" failing on a FUSE-based file system.
71587
71588         * lib/fts.c (fts_open): Use consistent indentation.
71589
71590 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71593         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71594         reported by Jim Meyering.  All uses of cache variables renamed
71595         to match Autoconf's.
71596         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
71597         the other one.
71598
71599         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71600         Fix misspelling in diagnostic.
71601
71602 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71603
71604         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
71605         defined.  Problem reported by Matthew Woehlke.
71606
71607         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
71608         Add support for Tandem NonStop R series.
71609         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
71610         Use new macro.
71611
71612         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
71613         (has_trailing_slash): Omit size arg; all callers changed.
71614         Omit 'inline', since it doesn't help performance and we'd
71615         need to configure it.
71616         Don't count //, ///, etc. as having a trailing slash.
71617         As a side effect, this removes a C99ism reported by Matthew Woehlke.
71618         (rpl_rename_dest_slash): On failure, use rename's errno rather
71619         than (in some cases) an incorrect or junk errno.
71620         Simplify code by removing need to compute length; this does
71621         cause it to make two passes instead of one over the file name,
71622         but it's worth it.
71623
71624         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
71625         change, since Autoconf's version may no longer be appropriate now
71626         that we are using CVS Autoconf's version.  Add support for Tandem.
71627
71628 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71629             Bruno Haible  <bruno@clisp.org>
71630
71631         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
71632         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
71633         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
71634         gl_AC_TYPE_LONG_LONG.
71635
71636         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
71637         instead of HAVE_LONG_LONG.
71638         * lib/printf-args.c (printf_fetchargs): Likewise.
71639         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
71640         * lib/vasnprintf.c (VASNPRINTF): Likewise.
71641         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
71642         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
71643         gl_AC_TYPE_LONG_LONG.
71644
71645 2006-10-11  Bruno Haible  <bruno@clisp.org>
71646
71647         * m4/longlong.m4: Add comments.
71648         * m4/ulonglong.m4: Likewise.
71649
71650 2006-10-10  Bruno Haible  <bruno@clisp.org>
71651
71652         Make it possible to #define stpcpy, strdup to aliases.
71653         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
71654         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
71655
71656 2006-10-10  Bruno Haible  <bruno@clisp.org>
71657
71658         Make it possible to #define gcd to an alias.
71659         * lib/gcd.c: Include config.h.
71660
71661 2006-10-10  Bruno Haible  <bruno@clisp.org>
71662
71663         Make it possible to #define c_isascii to an alias.
71664         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
71665         defined. Undefine the macros before defining them, to avoid gcc
71666         warnings.
71667         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
71668         define NO_C_CTYPE_MACROS early.
71669
71670 2006-10-10  Bruno Haible  <bruno@clisp.org>
71671
71672         Make it possible to #define set_program_name to an alias.
71673         * lib/progname.c: Don't undefine set_program_name; instead, undefine
71674         ENABLE_RELOCATABLE early.
71675
71676 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         Port to Tandem NSK OSS, which has 64-bit signed int but at most
71679         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
71680         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
71681         More generally, don't assume that 64-bit signed int is available
71682         if unsigned int is, and vice versa.
71683         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
71684         unsigned symbols, not on their signed counterparts.
71685         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
71686         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
71687         (UINT64_C, UINTMAX_C):
71688         Likewise.
71689         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
71690         unsigned counterparts.
71691         (Have_long_long, Unsigned): New macros.
71692         (Int): Renamed from INT.
71693         (strtoimax): Use the new macros.
71694         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
71695         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
71696         * modules/inttypes (inttypes.h): Substitute
71697         HAVE_UNSIGNED_LONG_LONG_INT.
71698         * modules/stdint (stdint.h): Likewise.
71699         (Files): Add m4/ulonglong.m4.
71700
71701 2006-10-10  Bruno Haible  <bruno@clisp.org>
71702
71703         Fix a gcc -Wshadow warning.
71704         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
71705         to 'bucket'.
71706         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
71707         gl_linked_indexof_from_to): Likewise.
71708         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
71709         Likewise.
71710         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
71711         Likewise.
71712         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
71713         Reported by Eric Blake.
71714
71715 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
71718         for NetBSD.  Problem reported by Bruno Haible.
71719
71720 2006-10-09  Jim Meyering  <jim@meyering.net>
71721
71722         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
71723         Patch from Bruno Haible.
71724
71725 2006-10-09  Jim Meyering  <jim@meyering.net>
71726
71727         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
71728         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
71729         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71730
71731 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71732
71733         Don't include <config.h> twice; this doesn't work in some cases,
71734         e.g., when config.h has "#define intmax_t long long int" and
71735         we include <config.h>, <inttypes.h>, <config.h> in that order.
71736         Problem reported by Matthew Woehlke in:
71737         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71738         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71739         * lib/fts-cycle.c: Don't include config.h.
71740         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71741         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71742         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71743         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
71744         inttypes.h.
71745         * lib/xstrtoumax.c: Likewise.
71746         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
71747         __strtol and the like, so that this module is more like its siblings.
71748         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
71749         Remove; no longer needed now that we assume gnulib inttypes.h.
71750
71751 2006-10-08  Bruno Haible  <bruno@clisp.org>
71752
71753         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
71754         option.
71755
71756 2006-10-07  Jim Meyering  <jim@meyering.net>
71757
71758         * modules/inttypes (inttypes.h): Revert what seems to have been
71759         an inadvertent part of today's change: use "|", not "/" in the
71760         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
71761
71762 2006-10-07  Bruno Haible  <bruno@clisp.org>
71763
71764         * modules/sublist: New file.
71765
71766 2006-10-07  Bruno Haible  <bruno@clisp.org>
71767
71768         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
71769         * modules/argz (argz.h): Likewise.
71770         * modules/arpa_inet (arpa/inet.h): Likewise.
71771         * modules/byteswap (byteswap.h): Likewise.
71772         * modules/configmake (configmake.h): Likewise.
71773         * modules/fcntl (fcntl.h): Likewise.
71774         * modules/fnmatch (fnmatch.h): Likewise.
71775         * modules/getopt (getopt.h): Likewise.
71776         * modules/glob (glob.h): Likewise.
71777         * modules/inttypes (inttypes.h): Likewise.
71778         * modules/netinet_in (netinet/in.h): Likewise.
71779         * modules/poll (poll.h): Likewise.
71780         * modules/stdbool (stdbool.h): Likewise.
71781         * modules/stdint (stdint.h): Likewise.
71782         * modules/sys_select (sys/select.h): Likewise.
71783         * modules/sys_socket (sys/socket.h): Likewise.
71784         * modules/sys_stat (sys/stat.h): Likewise.
71785         * modules/sysexits (sysexits.h): Likewise.
71786         * modules/unistd (unistd.h): Likewise.
71787         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71788         Add a "DO NOT EDIT" comment to the generated file.
71789         (func_import): Likewise for gnulib-comp.m4.
71790
71791 2006-10-07  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/gl_sublist.h: New file.
71794         * lib/gl_sublist.c: New file.
71795
71796 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
71799         name (relative to the original working directory) and the file
71800         name component (relative to the temporary working directory).  All
71801         callers changed.
71802         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
71803         * lib/mkdir-p.c (make_dir_parents): Likewise.
71804         * lib/mkdir-p.h (make_dir_parents): Likewise.
71805
71806 2006-10-06  Eric Blake  <ebb9@byu.net>
71807
71808         Define several macros for use by the clean-temp module.
71809         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
71810         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
71811         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
71812
71813         * lib/clean-temp.h (close_stream_temp): New declaration.
71814         * lib/clean-temp.c (includes): Pull in headers according to what
71815         other modules are in use.
71816         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
71817
71818 2006-10-06  Bruno Haible  <bruno@clisp.org>
71819
71820         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
71821         instead of fopen, fwriteerror.
71822
71823 2006-10-06  Bruno Haible  <bruno@clisp.org>
71824
71825         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
71826         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
71827         int.
71828         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
71829         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
71830         Return an error indicator.
71831         Suggested by Eric Blake.
71832
71833 2006-10-06  Bruno Haible  <bruno@clisp.org>
71834
71835         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
71836         Reported by Eric Blake.
71837
71838 2006-10-06  Bruno Haible  <bruno@clisp.org>
71839
71840         * modules/closeout (Description): Mention stderr too.
71841
71842 2006-10-06  Bruno Haible  <bruno@clisp.org>
71843         and Paul Eggert  <eggert@cs.ucla.edu>
71844
71845         * lib/closeout.c (close_stdout): Also close stderr.
71846         * lib/closeout.h: Update comment.
71847
71848 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
71851         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
71852         * lib/dirchownmod.c: Include lchown.h.
71853         * lib/lchown.c: Don't include files that lchown.h now includes.
71854         Don't declare chown, since lchown.h now does that.
71855         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
71856         (lchown): Define to rpl_chown if lchown is declared but
71857         does not exist.  Declare using a prototype if lchown is not
71858         declared.  Add a copyright notice.
71859         * lib/mkstemp.h: Include <unistd.h>.
71860         * lib/openat.c: Include lchown.h.
71861
71862         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
71863         we now test for that separately.
71864         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
71865         rather than O_NOFOLLOW, when testing whether it's possible to
71866         avoid a race condition reliably.
71867         * lib/savewd.c (savewd_chdir): Likewise.
71868
71869         Remove macros that are no longer needed now that stdint.h is
71870         reliable.
71871         * lib/fsusage.c (UINTMAX_MAX): Remove.
71872         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
71873         * lib/utimecmp.c (SIZE_MAX): Remove.
71874
71875         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
71876
71877         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
71878         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
71879         O_NOATIME works.
71880
71881 2006-10-05  Bruno Haible  <bruno@clisp.org>
71882
71883         * lib/gl_list.h (gl_sortedlist_search_from_to,
71884         gl_sortedlist_indexof_from_to): New declarations.
71885         (gl_list_implementation): New fields sortedlist_search_from_to,
71886         sortedlist_indexof_from_to.
71887         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
71888         inline functions.
71889         * lib/gl_list.c (gl_sortedlist_search_from_to,
71890         gl_sortedlist_indexof_from_to): New functions.
71891         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
71892         function.
71893         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
71894         (gl_array_sortedlist_search_from_to): New function.
71895         (gl_array_list_implementation): Update.
71896         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
71897         function.
71898         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
71899         (gl_carray_sortedlist_search_from_to): New function.
71900         (gl_carray_list_implementation): Update.
71901         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
71902         gl_linked_sortedlist_indexof_from_to): New functions.
71903         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71904         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71905         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
71906         gl_tree_sortedlist_indexof_from_to): New functions.
71907         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71908         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71909         Update.
71910         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71911         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
71912         Update.
71913
71914 2006-10-05  Bruno Haible  <bruno@clisp.org>
71915
71916         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
71917         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
71918         (struct gl_list_implementation): Add fields search_from_to,
71919         indexof_from_to. Remove fields search, indexof.
71920         (gl_list_search): Use the search_from_to method.
71921         (gl_list_search_from, gl_list_search_from_to): New functions.
71922         (gl_list_indexof): Use the indexof_from_to method.
71923         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71924         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
71925         (gl_list_search_from, gl_list_search_from_to): New functions.
71926         (gl_list_indexof): Use the indexof_from_to method.
71927         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71928         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
71929         gl_array_indexof. Add start_index, end_index arguments.
71930         (gl_array_search_from_to): Renamed from gl_array_search. Add
71931         start_index, end_index arguments.
71932         (gl_array_remove, gl_array_list_implementation): Update.
71933         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
71934         gl_carray_indexof. Add start_index, end_index arguments.
71935         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
71936         start_index, end_index arguments.
71937         (gl_carray_remove, gl_carray_list_implementation): Update.
71938         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
71939         gl_linked_search. Add start_index, end_index arguments.
71940         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
71941         start_index, end_index arguments.
71942         (gl_linked_remove): Update.
71943         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71944         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71945         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
71946         field to 'size_t'.
71947         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71948         gl_tree_search. Add start_index, end_index arguments.
71949         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71950         start_index, end_index arguments.
71951         (gl_tree_remove): Update.
71952         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71953         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71954         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71955         function.
71956         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71957         gl_tree_search. Add start_index, end_index arguments.
71958         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71959         start_index, end_index arguments.
71960         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71961         Update.
71962         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71963
71964 2006-10-05  Bruno Haible  <bruno@clisp.org>
71965
71966         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71967
71968         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71969         fwriteerror_temp): New declarations.
71970         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71971         (descriptors): New variable.
71972         (cleanup): First, close the descriptors.
71973         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71974         fclose_temp, fwriteerror_temp): New functions.
71975
71976 2006-10-04  Jim Meyering  <jim@meyering.net>
71977
71978         * lib/fts.c (fts_open): Tiny comment change.
71979
71980 2006-10-04  Bruno Haible  <bruno@clisp.org>
71981
71982         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71983         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71984         gl_LOCK_BODY.
71985         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71986         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71987         gl_LOCK_EARLY_BODY.
71988         (gl_LOCK): Require gl_LOCK_BODY.
71989
71990 2006-10-04  Bruno Haible  <bruno@clisp.org>
71991
71992         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71993         (gl_oset_search_atleast): New declaration.
71994         (struct gl_oset_implementation): Add field 'search_atleast'.
71995         (gl_oset_search_atleast): New inline function.
71996         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71997         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71998         (gl_array_oset_implementation): Update.
71999         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72000         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72001         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72002
72003 2006-10-04  Bruno Haible  <bruno@clisp.org>
72004
72005         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72006
72007 2006-10-03  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72010         from gl_avltreehash_list_implementation.
72011
72012 2006-10-03  Bruno Haible  <bruno@clisp.org>
72013
72014         * lib/gl_oset.c (gl_oset_add): Fix return type.
72015
72016 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72017
72018         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72019
72020 2006-10-02  Eric Blake  <ebb9@byu.net>
72021
72022         * modules/strnlen (Depends-on): Add extensions.
72023
72024 2006-10-02  Eric Blake  <ebb9@byu.net>
72025
72026         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72027         definition in 2.60+.
72028
72029 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72030
72031         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72032         checks.
72033
72034 2006-10-02  Bruno Haible  <bruno@clisp.org>
72035
72036         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72037         to the AUTOMAKE_OPTIONS.
72038         Reported by Jim Meyering.
72039
72040 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72041
72042         Work around bug in Solaris 10 /proc file system:
72043         /proc/self/fd/NNN/.. isn't the parent directory of
72044         the directory whose file descriptor is NNN.  This needs to
72045         be worked around at run time, not compile time, since a
72046         program might be built on Solaris 8, where things work, and
72047         run on Solaris 10.
72048         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72049         to use the following interface instead:
72050         (OPENAT_BUFFER_SIZE): New macro.
72051         (openat_proc_name): New function.
72052         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72053         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72054         Likewise.
72055         * lib/openat-proc.c: New file.
72056         * modules/openat (Files): Add lib/openat-proc.c.
72057         (Depends-on): Add same-inode, stdbool.
72058         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72059
72060 2006-09-29  Bruno Haible  <bruno@clisp.org>
72061
72062         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72063         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72064         argument. Set stdout_closed before testing for ferror, not after.
72065         (fwriteerror, fwriteerror_no_ebadf): New functions.
72066
72067 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72068
72069         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72070
72071 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72072
72073         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72074         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72075
72076 2006-09-28  Jim Meyering  <jim@meyering.net>
72077
72078         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72079         Include <unistd.h>.
72080
72081 2006-09-28  Bruno Haible  <bruno@clisp.org>
72082
72083         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72084         * modules/linkedhash-list (Depends-on): Likewise.
72085         * modules/rbtreehash-list (Depends-on): Likewise.
72086
72087 2006-09-28  Bruno Haible  <bruno@clisp.org>
72088
72089         * lib/strndup.h: Simplify the redefinition of strndup.
72090         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72091         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72092
72093 2006-09-28  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72096         * lib/gl_linkedhash_list.c: Likewise.
72097         * lib/gl_rbtreehash_list.c: Likewise.
72098
72099 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72100
72101         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72102         getaddrinfo.
72103
72104         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72105         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72106         it causes <stdio_ext.h> to cause a compile-time error.
72107         Problem reported by Nelson H. F. Beebe.
72108         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72109         of HAVE_DECL___PENDING.
72110
72111         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72112         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72113         declaration.
72114
72115 2006-09-27  Jim Meyering  <jim@meyering.net>
72116
72117         This file could end up with a definition for a function
72118         named __strndup, rather than rpl_strndup on a system with
72119         incomplete weak_alias support.
72120         * lib/strndup.c (strndup): Rename from __strndup.
72121         Remove #defines that used to map __strndup to strndup.
72122         Don't use K&R prototypes.
72123         Remove LIBC-related code, since this file is not sync'd with glibc.
72124         * lib/strndup.h: Revamp, accordingly.
72125         * m4/strndup.m4: Modernize.
72126
72127 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72128
72129         * modules/savewd (Depends-on): Add 'raise'.
72130         * lib/savewd.c: Include <signal.h>, for 'raise'.
72131
72132 2006-09-26  Jim Meyering  <jim@meyering.net>
72133
72134         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72135         when we detect Darwin 8.7.0's acl_get_file bug.
72136         Rearrange to perform the new (below) run-test while $LIBS
72137         contains any acl-related library.  Set USE_ACL at the end.
72138         (gl_ACL_GET_FILE): New function.
72139
72140 2006-09-26  Eric Blake  <ebb9@byu.net>
72141
72142         * lib/verror.c: Include <config.h> unconditionally.
72143
72144 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72145
72146         * modules/clock-time (Maintainer): Add self.
72147         * modules/getlogin_r (Depends-on): Add extensions.
72148
72149 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72150
72151         * modules/clock-time: New module.
72152         * modules/nanosleep (Depends-on): Add clock-time.
72153         * modules/gethrxtime (Depends-on): Likewise.
72154         * modules/gettime (Depends-on): Likewise.
72155         * modules/settime (Depends-on): Likewise.
72156
72157         * modules/fts-lgpl: Depend on openat.
72158         * modules/mkancesdirs: Depend on savewd.
72159         * modules/mkdir-p: Likewise.
72160
72161 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72162
72163         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72164
72165         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72166         `gl_have_arbitrary_file_name_length_limit' to
72167         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72168         actually works between configure runs.
72169
72170 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72171             Bruno Haible  <bruno@clisp.org>
72172
72173         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72174
72175 2006-09-25  Jim Meyering  <jim@meyering.net>
72176
72177         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72178         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72179
72180 2006-09-25  Eric Blake  <ebb9@byu.net>
72181
72182         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72183         exec's in 2006-09-18 patch when shuffling fds.
72184
72185 2006-09-25  Bruno Haible  <bruno@clisp.org>
72186
72187         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72188         Reported by Jim Meyering.
72189
72190 2006-09-24  Jim Meyering  <jim@meyering.net>
72191
72192         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72193         compare a pointer against a literal "0".  That caused failures with
72194         at least HP-UX's hpcc.
72195
72196 2006-09-22  Simon Josefsson  <jas@extundo.com>
72197
72198         * modules/gc-sha1:
72199         * modules/gc-md4:
72200         * modules/gc-hmac-sha1:
72201         * modules/gc-hmac-md5:
72202         * modules/gc-des:
72203         * modules/gc-arcfour: Distribute more files.
72204
72205 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72206
72207         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72208         (gl_linked_iterator_from_to): Initialize struct completely.
72209         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72210         (gl_tree_iterator_from_to): Likewise
72211         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72212         * lib/gl_array_list.c [lint] (gl_array_iterator)
72213         (gl_array_iterator_from_to): Likewise.
72214         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72215         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72216         (gl_carray_iterator_from_to): Likewise.
72217
72218         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72219         * lib/md4.c (md4_process_block): Remove unused variable.
72220         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72221         parentheses for clarity.
72222
72223 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72224
72225         * modules/bison-i18n (Depends-on): Add gettext.
72226
72227 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72228
72229         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72230         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72231         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72232         also add missing comma that caused broken test.
72233         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72234         stdlib.h, for `abort'.
72235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72236         variables.
72237         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72238         include unistd.h if present, for `rmdir'.
72239         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72240         variables.
72241         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72242         in the process include standard headers for prototypes.
72243         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72244         gets declared on GNU/Linux.
72245         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72246         unistd.h, for `rmdir'.
72247         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72248
72249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72250         always true.
72251         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72252
72253         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72254
72255 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72256
72257         * gnulib-tool (func_version): Create output all at once.  This
72258         may help avoid triggering unnecessary SIGPIPEs, and at any
72259         rate it doesn't hurt.
72260
72261 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72262             Bruno Haible  <bruno@clisp.org>
72263
72264         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72265         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72266         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72267
72268         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72269         (gl_FUNC_VASPRINTF): Invoke it.
72270
72271 2006-09-22  Bruno Haible  <bruno@clisp.org>
72272
72273         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72274         getloadavg.c as first argument.
72275
72276 2006-09-22  Bruno Haible  <bruno@clisp.org>
72277
72278         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72279         at the beginning of the gl_INIT macro.
72280         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72281         gl_GETLOADAVG.
72282
72283 2006-09-22  Bruno Haible  <bruno@clisp.org>
72284
72285         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72286         module.
72287         Suggested by Ralf Wildenhues.
72288
72289 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72290
72291         Import this patch from libc:
72292
72293         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72294
72295         * lib/regex_internal.c (re_string_reconstruct): Handle
72296         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72297         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72298         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72299         re_string_context_at.
72300
72301         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72302         now requires it.
72303         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72304         gl_REGEX now does it for us.
72305         (gl_REGEX): Add test taken from
72306         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72307
72308         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72309         Check that large offsets work.  Modernize Autoconf usages.
72310         Prefer "yes" to mean a good thing rather than a bad.
72311         Don't put "#define mkstemp" in config.h, as this might interfere
72312         with standard system headers that "#define mkstemp mkstemp64".
72313
72314         * modules/mkstemp (Depends-on): Add extensions, so that
72315         mkstemp is visible on some platforms.
72316         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72317         (Include): Change to "mkstemp.h" from <stdlib.h>.
72318         (Files): Add mkstemp.h.
72319
72320         * lib/mkstemp.h: New file, since some standard headers
72321         #define mkstemp.
72322         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72323         Include "mkstemp.h".
72324         Make the _LIBC code resemble glibc original more,
72325         e.g., use K&R style.
72326         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72327         (mkstemp): Remove, since mkstemp.h does this for us.
72328         * lib/stdlib--.h: Include mkstemp.h.
72329
72330         Import this patch from libc:
72331
72332         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72333
72334         * lib/tempname.c (__gen_tempname): Change attempts_min
72335         into a macro.  Use preprocessor to decide how to initialize
72336         attempts [Coverity CID 67].
72337
72338 2006-09-20  Bruno Haible  <bruno@clisp.org>
72339
72340         * lib/mkdtemp.c: Import from libc.
72341         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72342                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72343                 attempts_min into a macro.  Use preprocessor to decide how to
72344                 initialize attempts [Coverity CID 67].
72345         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72346                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72347                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72348
72349 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72350
72351         * gnulib-tool (func_exit): New function, to allow to pass the
72352         exit status portably through the trap.  Use everywhere.
72353         (--help, --version): Signal a write error.
72354         (trap): catch SIGPIPE, for write errors.
72355         Exit at the end of the trap, with the correct exit status.
72356
72357 2006-09-19  Karl Berry  <karl@gnu.org>
72358
72359         * doc/gnulib.texi: note about the license texinfo files.
72360
72361 2006-09-19  Eric Blake  <ebb9@byu.net>
72362
72363         * gnulib-tool: Avoid space-tab.
72364
72365 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72368         that prevented coreutils 6.1 from building.  Problem reported
72369         by Petter Reinholdtsen.
72370
72371 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72372
72373         * gnulib-tool (avoidlist): Fix typo that broke options like
72374         --avoid=lock that are used by coreutils bootstrap.
72375
72376 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72377
72378         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72379         more systematically.
72380
72381 2006-09-18  Jim Meyering  <jim@meyering.net>
72382
72383         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72384
72385 2006-09-18  Bruno Haible  <bruno@clisp.org>
72386
72387         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72388
72389 2006-09-18  Bruno Haible  <bruno@clisp.org>
72390
72391         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72392         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72393         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72394         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72395         * m4/gettext.m4: Require autoconf >= 2.52.
72396         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72397         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72398         of gl_cv_header_inttypes_h.
72399
72400 2006-09-18  Bruno Haible  <bruno@clisp.org>
72401
72402         * lib/javaversion.c: Include configmake.h.
72403
72404 2006-09-18  Bruno Haible  <bruno@clisp.org>
72405
72406         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72407         avoid that the while loops be executed in a subshell.
72408
72409 2006-09-18  Bruno Haible  <bruno@clisp.org>
72410
72411         * MODULES.html.sh (func_module): Break long lines.
72412         Suggested by Bruce Korb <bkorb@gnu.org>.
72413
72414 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72415
72416         Speed up by a factor of 1.12.
72417         * gnulib-tool (nl): New variable.
72418         (func_import): Rewrite include directive extraction to only read each
72419         directive once.
72420
72421 2006-09-17  Bruno Haible  <bruno@clisp.org>
72422
72423         * modules/javaversion (Makefile.am): Remove DEFS setting.
72424         (Depends-on): Add configmake, for PKGDATADIR definition.
72425
72426 2006-09-17  Bruno Haible  <bruno@clisp.org>
72427
72428         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72429
72430 2006-09-17  Bruno Haible  <bruno@clisp.org>
72431
72432         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72433         (func_modules_transitive_closure, func_modules_add_dummy,
72434         func_modules_to_filelist, func_import, func_create_testdir,
72435         func_create_megatestdir, ...): Use it wherever possible.
72436         Suggested by Ralf Wildenhues.
72437
72438 2006-09-16  Karl Berry  <karl@gnu.org>
72439
72440         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72441         to avoid sectioning errors.
72442         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72443         [ifinfo]: blank line after @center-ed titles.
72444         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72445         Spell FSF address consistently with others.
72446         (These changes approved by rms.)
72447
72448 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72449
72450         Speed up by a factor of 1.61.
72451         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72452         already checked module names again.
72453
72454 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72455
72456         Speed up by a factor of 1.13.
72457         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72458         for new_files, and the input to func_add_or_update.
72459
72460 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72461
72462         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72463         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72464
72465 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * modules/mkancesdirs (Depends-on): Add fcntl.
72468         * modules/savewd: New file.
72469         * MODULES.html.sh (File system functions): Add savewd.
72470
72471         * modules/configmake (Makefile.am): Add support for the
72472         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72473
72474 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72475
72476         * m4/savewd.m4: New file.
72477
72478 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72479
72480         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72481         (dirchownmod): New arg FD.  All callers changed.
72482         Use FD rather than opening the directory ourself, as opening is
72483         now the caller's responsibility.
72484         * lib/dirchownmod.h: Likewise.
72485         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72486         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72487         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72488         (test_dir): Remove.
72489         (mkancesdirs): Return length of prefix of FILE that has already
72490         been made, or -2 if there is a child doing the work.  Redo
72491         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72492         ".", and treat ".." specially since it might stray back into
72493         already-created areas.  Use a subprocess if necessary.  New arg
72494         WD; all users changed.  MAKE_DIR function should now return 1
72495         if it creates a directory that is not readable.  Return -2 if
72496         a child process is spun off.
72497         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72498         Adjust signature to match code.
72499         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72500         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72501         all users changed.
72502         * lib/savewd.c, lib/savewd.h: New files.
72503
72504 2006-09-15  Jim Meyering  <jim@meyering.net>
72505
72506         * modules/rename-dest-slash: New module.
72507         * MODULES.html.sh (posix_compat): Add it here.
72508
72509         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72510
72511 2006-09-15  Jim Meyering  <jim@meyering.net>
72512
72513         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72514         file.
72515
72516         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72517
72518 2006-09-15  Jim Meyering  <jim@meyering.net>
72519
72520         * lib/rename-dest-slash.c (has_trailing_slash): Use
72521         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72522         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72523         test before testing whether SRC is a directory.
72524         Suggestions from Bruno Haible.
72525
72526         Avoid a warning about an unused variable.
72527         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72528         into the #ifdef block where it's used.
72529
72530         * lib/rename-dest-slash.c: New file.
72531
72532 2006-09-14  Bruno Haible  <bruno@clisp.org>
72533
72534         * lib/allocsa.c: Include <config.h> unconditionally.
72535         * lib/asnprintf.c: Likewise.
72536         * lib/asprintf.c: Likewise.
72537         * lib/c-strcasecmp.c: Likewise.
72538         * lib/c-strcasestr.c: Likewise.
72539         * lib/c-strncasecmp.c: Likewise.
72540         * lib/c-strstr.c: Likewise.
72541         * lib/classpath.c: Likewise.
72542         * lib/clean-temp.c: Likewise.
72543         * lib/concatpath.c: Likewise.
72544         * lib/copy-file.c: Likewise.
72545         * lib/csharpcomp.c: Likewise.
72546         * lib/csharpexec.c: Likewise.
72547         * lib/execute.c: Likewise.
72548         * lib/fatal-signal.c: Likewise.
72549         * lib/findprog.c: Likewise.
72550         * lib/fwriteerror.c: Likewise.
72551         * lib/gl_array_list.c: Likewise.
72552         * lib/gl_array_oset.c: Likewise.
72553         * lib/gl_avltree_list.c: Likewise.
72554         * lib/gl_avltree_oset.c: Likewise.
72555         * lib/gl_avltreehash_list.c: Likewise.
72556         * lib/gl_carray_list.c: Likewise.
72557         * lib/gl_linked_list.c: Likewise.
72558         * lib/gl_linkedhash_list.c: Likewise.
72559         * lib/gl_list.c: Likewise.
72560         * lib/gl_oset.c: Likewise.
72561         * lib/gl_rbtree_list.c: Likewise.
72562         * lib/gl_rbtree_oset.c: Likewise.
72563         * lib/gl_rbtreehash_list.c: Likewise.
72564         * lib/imaxabs.c: Likewise.
72565         * lib/imaxdiv.c: Likewise.
72566         * lib/javacomp.c: Likewise.
72567         * lib/javaexec.c: Likewise.
72568         * lib/javaversion.c: Likewise.
72569         * lib/linebreak.c: Likewise.
72570         * lib/localcharset.c: Likewise.
72571         * lib/lock.c: Likewise.
72572         * lib/mbchar.c: Likewise.
72573         * lib/mbswidth.c: Likewise.
72574         * lib/mkdtemp.c: Likewise.
72575         * lib/pipe.c: Likewise.
72576         * lib/printf-args.c: Likewise.
72577         * lib/printf-parse.c: Likewise.
72578         * lib/progname.c: Likewise.
72579         * lib/progreloc.c: Likewise.
72580         * lib/readlink.c: Likewise.
72581         * lib/sh-quote.c: Likewise.
72582         * lib/stpcpy.c: Likewise.
72583         * lib/stpncpy.c: Likewise.
72584         * lib/strcasecmp.c: Likewise.
72585         * lib/strcasestr.c: Likewise.
72586         * lib/strcspn.c: Likewise.
72587         * lib/striconv.c: Likewise.
72588         * lib/strncasecmp.c: Likewise.
72589         * lib/strnlen1.c: Likewise.
72590         * lib/strstr.c: Likewise.
72591         * lib/strtok_r.c: Likewise.
72592         * lib/tls.c: Likewise.
72593         * lib/tmpdir.c: Likewise.
72594         * lib/unicodeio.c: Likewise.
72595         * lib/unsetenv.c: Likewise.
72596         * lib/vasnprintf.c: Likewise.
72597         * lib/vasprintf.c: Likewise.
72598         * lib/wait-process.c: Likewise.
72599         * lib/xallocsa.c: Likewise.
72600         * lib/xsetenv.c: Likewise.
72601         * lib/xstriconv.c: Likewise.
72602
72603 2006-09-13  Simon Josefsson  <jas@extundo.com>
72604
72605         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
72606         that internally, suggested by Ralf Wildenhues
72607         <Ralf.Wildenhues@gmx.de>.
72608
72609 2006-09-13  Simon Josefsson  <jas@extundo.com>
72610
72611         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
72612         @LIBOBJS@.
72613         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72614
72615 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72616
72617         * lib/_fpending.c: Include <config.h> unconditionally, since we no
72618         longer worry about uses that don't define HAVE_CONFIG_H.
72619         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
72620         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
72621         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
72622         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
72623         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
72624         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
72625         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
72626         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
72627         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
72628         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
72629         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
72630         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
72631         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
72632         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
72633         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
72634         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
72635         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
72636         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
72637         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
72638         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
72639         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
72640         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
72641         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
72642         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
72643         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
72644         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
72645         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
72646         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
72647         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
72648         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
72649         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
72650         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
72651         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
72652         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
72653         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
72654         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
72655         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
72656         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
72657         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
72658         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
72659         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
72660         Likewise.
72661
72662 2006-09-13  Eric Blake  <ebb9@byu.net>
72663
72664         * lib/getopt.c: Fix typo in last commit.
72665
72666 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72667
72668         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
72669         dgettext.
72670
72671 2006-09-12  Jim Meyering  <jim@meyering.net>
72672
72673         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
72674         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
72675         Reported by Nelson H. F. Beebe.
72676
72677 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72678
72679         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
72680         program_invocation_name and program_invocation_short_name are
72681         initialized.
72682         * lib/argp-namefrob.h: Move declarations of program_invocation_name
72683         and program_invocation_short_name to argp.h, so they are visible
72684         to user programs.
72685         * lib/argp.h: Likewise
72686
72687 2006-09-10  Bruno Haible  <bruno@clisp.org>
72688
72689         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72690         m4/inttypes_h.m4, m4/uintmax_t.m4.
72691
72692 2006-09-10  Bruno Haible  <bruno@clisp.org>
72693
72694         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
72695         gl_AC_TYPE_UINTMAX_T.
72696
72697 2006-09-10  Bruno Haible  <bruno@clisp.org>
72698
72699         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
72700
72701 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72702
72703         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
72704         convention.  Text proposed by Bruno Haible.
72705         (struct argp_option): Document the use of N_() wrappers.
72706
72707         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
72708         '\v', and translate the two parts separately, instead of feeding
72709         the whole string to gettext.  This allows to exclude
72710         '\v' from the strings visible to the translator by writing doc
72711         strings as N_("..") "\v" N_("..").
72712
72713 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
72714
72715         * config/srclist.txt: Undo latest change; the bug was fixed.
72716
72717 2006-09-09  Bruno Haible  <bruno@clisp.org>
72718
72719         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
72720         assignments if building a library without libtool.
72721         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
72722         in func_emit_lib_Makefile_am.
72723         (func_import): When building a static library libfoo.a, arrange to
72724         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
72725         (func_create_testdir): Likewise.
72726         * modules/gc (configure.ac, Makefile.am): If building statically,
72727         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
72728         * modules/iconvme (configure.ac, Makefile.am): Likewise.
72729         * modules/striconv (configure.ac, Makefile.am): Likewise.
72730         Based on a suggestion by Ralf Wildenhues.
72731
72732 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72735         Check for unistd.h too, since Autoconf doesn't assume POSIX.
72736         Also:
72737
72738         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72739         Add year_2050_test to catch glibc bug 2821
72740         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72741
72742         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72743         Prefer #ifdef to #if.
72744
72745         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
72746         Return from 'main' instead of calling 'exit'.
72747
72748 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72749
72750         * lib/mktime.c (guess_time_tm): Fix bug where mktime
72751         returned the maximum time_t value rather than (time_t) -1.
72752         Problem originally reported by William Bardwell
72753         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72754
72755         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72756         Moved to here ...
72757         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72758         ... from here.
72759
72760 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72761
72762         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
72763         2821 is fixed.
72764
72765 2006-09-08  Jim Meyering  <jim@meyering.net>
72766
72767         Don't make generated files read-only.  That would bother too many
72768         people.  However, do retain the ability to work when targets are
72769         read-only: remove the destination and temporary files before writing
72770         them (when generated via sed or echo), or by using the -f option for
72771         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
72772         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72773         * modules/byteswap, modules/configmake, modules/fcntl:
72774         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72775         * modules/localcharset, modules/netinet_in, modules/poll:
72776         * modules/stdbool, modules/stdint, modules/sys_select:
72777         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72778
72779 2006-09-08  Jim Meyering  <jim@meyering.net>
72780
72781         Avoid new build failure on FreeBSD 6.0.
72782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
72783         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
72784         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
72785
72786 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72787
72788         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
72789
72790 2006-09-07  Jim Meyering  <jim@meyering.net>
72791
72792         Fix global typo in last change: use chmod u-w, not chmod u-x.
72793         Spotted by Paul Eggert and Bruce Korb.
72794         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72795         * modules/byteswap, modules/configmake, modules/fcntl:
72796         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72797         * modules/localcharset, modules/netinet_in, modules/poll:
72798         * modules/stdbool, modules/stdint, modules/sys_select:
72799         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72800
72801 2006-09-06  Jim Meyering  <jim@meyering.net>
72802
72803         Make generated files be read-only.
72804         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
72805         Ensure that each generated file is now read-only.
72806         * modules/argz: Likewise.
72807         * modules/arpa_inet: Likewise.
72808         * modules/byteswap: Likewise.
72809         * modules/configmake: Likewise.
72810         * modules/fcntl: Likewise.
72811         * modules/fnmatch: Likewise.
72812         * modules/getopt: Likewise.
72813         * modules/glob: Likewise.
72814         * modules/inttypes: Likewise.
72815         * modules/netinet_in: Likewise.
72816         * modules/poll: Likewise.
72817         * modules/stdbool: Likewise.
72818         * modules/stdint: Likewise.
72819         * modules/sys_select: Likewise.
72820         * modules/sys_socket: Likewise.
72821         * modules/sys_stat: Likewise.
72822         * modules/sysexits: Likewise.
72823         * modules/localcharset: Same as above, but continue using temporary
72824         file named "t-$@" (why different?) rather than the "$@-t" used
72825         everywhere else.
72826
72827         * modules/sysexits (Makefile.am): Replace literal occurrences
72828         of "sysexit.h" more readable, and more consistent, "$@".
72829
72830 2006-09-06  Bruno Haible  <bruno@clisp.org>
72831
72832         * modules/striconv: New file.
72833         * modules/xstriconv: New file.
72834         * MODULES.html.sh (Internationalization functions): Add striconv,
72835         xstriconv.
72836
72837 2006-09-06  Bruno Haible  <bruno@clisp.org>
72838
72839         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
72840         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
72841         not using libtool correctly.
72842
72843 2006-09-06  Bruno Haible  <bruno@clisp.org>
72844
72845         * lib/striconv.h: New file.
72846         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
72847         iconvstring.c.
72848         * lib/xstriconv.h: New file.
72849         * lib/xstriconv.c: New file.
72850
72851 2006-09-06  Bruno Haible  <bruno@clisp.org>
72852
72853         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72854         lib_..._LDFLAGS.
72855
72856 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72857
72858         * lib/argz_.h: Sync from Libtool.
72859
72860         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
72861                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72862
72863         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
72864
72865 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72866
72867         * modules/trim: New file.
72868
72869 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72870
72871         * lib/trim.h: New file.
72872         * lib/trim.c: New file.
72873
72874 2006-09-05  Bruno Haible  <bruno@clisp.org>
72875
72876         * MODULES.html.sh (String handling): Add trim.
72877
72878 2006-09-04  Karl Berry  <karl@gnu.org>
72879
72880         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
72881         until next release.
72882
72883 2006-09-03  Bruno Haible  <bruno@clisp.org>
72884
72885         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
72886         correctly.
72887
72888 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72889
72890         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
72891         not gl_GETLOADAVG.  Omit unneeded semicolons.
72892         Problems reported by Ralf Wildenhues in
72893         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72894         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
72895         at the end, which is the usual gnulib style.
72896
72897         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
72898         of doing all the work ourselves.
72899         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
72900         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
72901
72902 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
72905         Problem reported by Ralf Wildenhues in
72906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72907
72908         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
72909         HAVE_STRUCT_STATFS_F_FSTYPENAME.
72910
72911 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
72914         yesterday's patch by changing test -n to test -z.
72915
72916 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72917
72918         * modules/getloadavg (Files): Add m4/getloadavg.m4.
72919         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
72920         the former is now obsolescent.
72921
72922         * modules/chdir-long (Depends-on): Add fcntl.
72923
72924 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72925
72926         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
72927         obsolescent, and programs should use gnulib instead.
72928         * m4/getloadavg.m4: New file, with contents taken from Autoconf
72929         but with prefixes changed.
72930
72931 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
72934         or stdbool.h, because they might not exist while configuring.
72935
72936         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
72937         Don't include unistd.h or limits.h; not needed, since chdir-long.h
72938         does that for us.
72939         (O_DIRECTORY): Remove.
72940
72941 2006-08-31  Eric Blake  <ebb9@byu.net>
72942
72943         * gnulib-tool: Don't let emacs change spaces to TAB.
72944
72945 2006-08-31  Bruno Haible  <bruno@clisp.org>
72946
72947         * gnulib-tool: When calling func_import more than once, do it in a
72948         subshell.
72949         Reported by Eric Blake <ebb9@byu.net>.
72950
72951 2006-08-31  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool (nl): Remove variable.
72954         (sed_transform_lib_file): Use more robust test for config-h module.
72955         (func_import): Fix typo in 2006-08-25 patch.
72956
72957 2006-08-31  Bruno Haible  <bruno@clisp.org>
72958
72959         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72960         specified, augment Makefile.am variables instead of assigning them.
72961
72962 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         Work around a bug in both the Linux and SunOS 64-bit kernels:
72965         nanosleep mishandles sleeps for longer than 2**31 seconds.
72966         Problem reported by Frank v Waveren in
72967         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72968         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72969         Check for nanosleep bug.
72970         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72971
72972 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72973
72974         Work around a bug in both the Linux and SunOS 64-bit kernels:
72975         nanosleep mishandles sleeps for longer than 2**31 seconds.
72976         Problem reported by Frank v Waveren in
72977         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72978         * lib/nanosleep.c (BILLION): New constant.
72979         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72980         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72981         implementation.
72982
72983 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72984
72985         * modules/nanosleep (Depends-on): Add gettime.
72986
72987 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72988         and Simon Josefsson  <jas@extundo.com>
72989         and Oskar Liljeblad  <oskar@osk.mine.nu>
72990
72991         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72992         * gnulib-tool (func_import): New license type 'unmodifiable license
72993         text'.
72994         * modules/fdl: Use it.  Longer description.
72995         * module/gpl, module/lgpl: New files.
72996
72997 2006-08-30  Jim Meyering  <jim@meyering.net>
72998
72999         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73000         shadowing the parameter.
73001
73002 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73003
73004         Sync from Libtool:
73005
73006         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73007
73008         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73009         sharing with gnulib.  Report by Eric Blake.
73010
73011 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         * modules/isapipe: New file.
73014         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73015
73016 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73017
73018         * modules/configmake (Makefile.am): Add a comment, and omit
73019         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73020         by Bruno Haible.
73021
73022 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73023
73024         * m4/isapipe.m4: New file.
73025
73026 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73027
73028         * lib/isapipe.c, lib/isapipe.h: New files.
73029
73030 2006-08-29  Jim Meyering  <jim@meyering.net>
73031
73032         * modules/configmake (Makefile.am): Make configmake.h depend on
73033         Makefile.  Otherwise, a stale configmake.h could hang around.
73034
73035 2006-08-29  Eric Blake  <ebb9@byu.net>
73036
73037         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73038         resolution of upstream bug 3044.
73039
73040 2006-08-29  Bruno Haible  <bruno@clisp.org>
73041
73042         * modules/localcharset (Depends-on): Add configmake.
73043         (Makefile.am): Remove setting of LIBDIR through DEFS.
73044
73045 2006-08-29  Bruno Haible  <bruno@clisp.org>
73046
73047         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73048         defined.
73049
73050 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73051
73052         * modules/fcntl: New file.
73053         * modules/chdir-safer (Depends-on): Add fcntl.
73054         * modules/fts: Likewise.
73055         * modules/mkdir-p: Likewise.
73056
73057         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73058         This undoes the most recent change, since we're now addressing the
73059         problem in a different way.
73060
73061         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73062         into output, since the output might be called Makefile.am even
73063         if $makefile_name is something different.
73064         (func_import): Use $makefile_am rather than
73065         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73066         empty.
73067
73068         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73069
73070 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73071
73072         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73073         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73074         recent change to stdint.m4, since we're now addressing the problem in a
73075         different way.
73076
73077 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73078
73079         * m4/fcntl_h.m4: New file.
73080
73081 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * lib/fcntl_.h: New file.
73084         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73085         the fcntl module.
73086         * lib/dirchownmod.c: Likewise.
73087         * lib/fts.c: Likewise.
73088
73089         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73090         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73091         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73092         just before including <inttypes.h>, to avoid circular inclusion.
73093
73094 2006-08-28  Jim Meyering  <jim@meyering.net>
73095
73096         * doc/visibility.texi: Actually read and correct the grammar of the
73097         sentence affected by yesterday's change.
73098
73099 2006-08-28  Eric Blake  <ebb9@byu.net>
73100
73101         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73102         needs wrapper.
73103
73104 2006-08-28  Eric Blake  <ebb9@byu.net>
73105
73106         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73107
73108 2006-08-28  Eric Blake  <ebb9@byu.net>
73109
73110         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73111
73112 2006-08-28  Bruno Haible  <bruno@clisp.org>
73113
73114         * modules/c-strstr: New file, from GNU gettext.
73115         * MODULES.html.sh (String handling): Add c-strstr.
73116
73117 2006-08-28  Bruno Haible  <bruno@clisp.org>
73118
73119         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73120         macros.
73121         Reported by Eric Blake.
73122
73123 2006-08-28  Bruno Haible  <bruno@clisp.org>
73124
73125         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73126         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73127         * lib/vasprintf.c: Include errno.h, limits.h.
73128         (EOVERFLOW): New fallback definition.
73129         (vasprintf): Test here whether the string length is > INT_MAX.
73130         * lib/vsnprintf.c: Include errno.h, limits.h.
73131         (EOVERFLOW): New fallback definition.
73132         (vsnprintf): Fix bug when generated string was too long for the buffer.
73133         Test here whether the string length is > INT_MAX.
73134
73135 2006-08-28  Bruno Haible  <bruno@clisp.org>
73136
73137         * lib/inttypes_.h (SCNX*): Remove definitions.
73138         Reported by Eric Blake.
73139
73140 2006-08-28  Bruno Haible  <bruno@clisp.org>
73141
73142         * lib/c-strstr.h: New file, from GNU gettext.
73143         * lib/c-strstr.c: New file, from GNU gettext.
73144
73145 2006-08-28  Bruno Haible  <bruno@clisp.org>
73146
73147         * gnulib-tool: Reorder some statements.
73148
73149 2006-08-28  Bruno Haible  <bruno@clisp.org>
73150
73151         * gnulib-tool: New option --makefile-name.
73152         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73153         $makefile_name.
73154         (func_import): Write $makefile_name to the cache file, and read it from
73155         there unless explicitly specified. Use $makefile_name as file name
73156         instead of Makefile.am. Adjust the recommendations accordingly.
73157
73158 2006-08-28  Bruno Haible  <bruno@clisp.org>
73159
73160         * gnulib-tool (func_verify_module): Check against misapplying patch.
73161
73162 2006-08-28  Bruno Haible  <bruno@clisp.org>
73163
73164         * gnulib-tool (func_relativize, func_relconcat): New functions.
73165         Give an error if --local-dir is given with --update.
73166         Remove trailing slashes from $local_gnulib_dir.
73167         (func_import): Store the relativized $local_gnulib_dir in
73168         gnulib-cache.m4, and read it from there if not specified explicitly.
73169
73170 2006-08-28  Bruno Haible  <bruno@clisp.org>
73171
73172         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73173         is the current directory. Respect also $local_gnulib_dir.
73174
73175 2006-08-28  Bruno Haible  <bruno@clisp.org>
73176             Simon Josefsson  <jas@extundo.com>
73177
73178         BeOS portability.
73179         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73180
73181 2006-08-27  Jim Meyering  <jim@meyering.net>
73182
73183         * doc/visibility.texi: Remove duplicate word: "pointer".
73184
73185 2006-08-26  Bruno Haible  <bruno@clisp.org>
73186
73187         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73188         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73189         (Makefile.am): Create inttypes.h from inttypes_.h.
73190         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73191
73192         * modules/imaxabs: New file.
73193
73194         * modules/imaxdiv: New file.
73195
73196 2006-08-26  Bruno Haible  <bruno@clisp.org>
73197
73198         * m4/inttypes.m4: New file.
73199         * m4/_inttypes_h.m4: Remove file.
73200         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73201         PRI_MACROS_BROKEN.
73202         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73203
73204         * m4/imaxabs.m4: New file.
73205
73206         * m4/imaxdiv.m4: New file.
73207
73208 2006-08-26  Bruno Haible  <bruno@clisp.org>
73209
73210         * lib/inttypes_.h: New file.
73211         * lib/inttypes.h: Remove file.
73212         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73213
73214         * lib/imaxabs.c: New file.
73215
73216         * lib/imaxdiv.c: New file.
73217
73218 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73219
73220         New config-h module, so that "make" output needn't be cluttered
73221         by -DHAVE_CONFIG_H.
73222         * MODULES.html.sh (Support for building libraries and executables):
73223         Add config-h.
73224         * modules/config-h: New file.
73225         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73226         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73227         the config-h module is used.
73228
73229         New configmake module, so that "make" output needn't be cluttered
73230         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73231         * MODULES.html.sh (Support for building libraries and executables):
73232         Add configmake.
73233         * modules/configmake: New file.
73234
73235 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * m4/config-h.m4: New file.
73238
73239 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73240
73241         * config/srclist.txt: Add elisp-comp.
73242
73243 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73244
73245         * MODULES.html.sh (Support for building libraries and executables):
73246         Add elisp-comp.
73247         * build-aux/elisp-comp: New file.
73248         * modules/elisp-comp: New file.
73249
73250 2006-08-24  Bruno Haible  <bruno@clisp.org>
73251
73252         * gnulib-tool (func_create_testdir): Use non-default values of
73253         sourcebase and m4base.
73254
73255 2006-08-24  Bruno Haible  <bruno@clisp.org>
73256
73257         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73258         HTML structure.
73259
73260 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * modules/openat (Depends-on): Add lchown.
73263
73264 2006-08-23  Bruno Haible  <bruno@clisp.org>
73265
73266         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73267         of gl_LOCK_EARLY instead of gl_LOCK.
73268
73269 2006-08-23  Bruno Haible  <bruno@clisp.org>
73270
73271         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73272         on OSF/1 to no.
73273         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73274
73275 2006-08-23  Bruno Haible  <bruno@clisp.org>
73276
73277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73278         as unusable.
73279
73280         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73281         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73282         (gl_LOCK): New macro.
73283
73284 2006-08-22  Simon Josefsson  <jas@extundo.com>
73285
73286         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73287         to md5 module.
73288
73289 2006-08-22  Simon Josefsson  <jas@extundo.com>
73290
73291         * MODULES.html.sh: Add "Support for maintaining and release
73292         projects".
73293
73294         * build-aux/gnupload: New file, from coreutils.
73295
73296 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73297
73298         Avoid the need for AC_LIBSOURCES in m4 macros.
73299         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73300         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73301         * modules/check-version (EXTRA_DIST): Add check-version.h.
73302         * modules/crc (EXTRA_DIST): Add crc.h.
73303         * modules/des (EXTRA_DIST): Add des.h.
73304         * modules/gc (EXTRA_DIST): Add gc.h.
73305         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73306         * modules/getline (EXTRA_DIST): Add getline.h.
73307         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73308         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73309         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73310         * modules/md2 (EXTRA_DIST): Add md2.h.
73311         * modules/md4 (EXTRA_DIST): Add md4.h.
73312         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73313         * modules/read-file (EXTRA_DIST): Add read-file.h.
73314         * modules/readline (EXTRA_DIST): Add readline.h.
73315         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73316         rijndael-api-fst.h.
73317
73318 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73319
73320         * m4/rijndael.m4 (gl_ARCFOUR):
73321         * m4/arctwo.m4 (gl_ARCTWO):
73322         * m4/check-version.m4 (gl_CHECK_VERSION):
73323         * m4/crc.m4 (gl_CRC):
73324         * m4/des.m4 (gl_DES):
73325         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73326         * m4/gc.m4 (gl_GC):
73327         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73328         * m4/getline.m4 (gl_FUNC_GETLINE):
73329         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73330         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73331         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73332         * m4/md2.m4 (gl_MD2):
73333         * m4/md4.m4 (gl_MD4):
73334         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73335         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73336         * m4/readline.m4 (gl_FUNC_READLINE):
73337         * m4/rijndael.m4 (gl_RIJNDAEL):
73338         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73339         to get the necessary .h files and whatnot.
73340
73341 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73342
73343         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73344         gnulib rather than the other way around.
73345         * config/srclistvars.sh (COREUTILS): Remove.
73346
73347 2006-08-22  Jim Meyering  <jim@meyering.net>
73348
73349         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73350
73351         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73352
73353 2006-08-22  Eric Blake  <ebb9@byu.net>
73354
73355         * modules/regexprops-generic: New file.
73356         * MODULES.html.sh (Support for building documentation): List it.
73357
73358 2006-08-22  Eric Blake  <ebb9@byu.net>
73359
73360         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73361         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73362         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73363         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73364
73365 2006-08-22  Bruno Haible  <bruno@clisp.org>
73366
73367         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73368         and lib_LTLIBRARIES like the other lib_* variables.
73369
73370 2006-08-22  Bruno Haible  <bruno@clisp.org>
73371
73372         * build-aux/x-to-1.in: New file, from GNU gettext.
73373
73374 2006-08-22  Bruno Haible  <bruno@clisp.org>
73375
73376         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73377         <utmpx.h> exists.
73378
73379 2006-08-22  Bruno Haible  <bruno@clisp.org>
73380
73381         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73382         <utmpx.h> exists.
73383
73384 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73385
73386         BeOS portability.
73387         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73388         exist.
73389         Problem reported by Bruno Haible.
73390
73391 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73392
73393         Avoid the need for AC_LIBSOURCES in m4 macros.
73394         * modules/acl (EXTRA_DIST): Add acl.h.
73395         * modules/argmatch (Files): Add m4/argmatch.m4.
73396         (configure.ac): Add gl_ARGMATCH.
73397         (EXTRA_DIST): Renamed from lib_SOURCES, for
73398         consistency with the other modules.  Remove argmatch.c.
73399         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73400         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73401         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73402         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73403         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73404         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73405         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73406         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73407         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73408         * modules/closeout (EXTRA_DIST): Add closeout.h.
73409         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73410         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73411         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73412         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73413         dirname.h; remove basename.c and stripslash.c.
73414         * modules/exclude (EXTRA_DIST): Add exclude.h.
73415         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73416         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73417         * modules/file-type (EXTRA_DIST): Add file-type.h.
73418         * modules/filemode (EXTRA_DIST): Add filemode.h.
73419         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73420         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73421         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73422         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73423         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73424         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73425         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73426         * modules/getdate (EXTRA_DIST): Add getdate.c.
73427         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73428         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73429         * modules/getpass (EXTRA_DIST): Add getpass.h.
73430         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73431         * modules/group-member (EXTRA_DIST): Add group-member.h.
73432         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73433         * modules/hash (EXTRA_DIST): Add hash.h.
73434         * modules/human (EXTRA_DIST): Add human.h.
73435         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73436         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73437         * modules/lchown (EXTRA_DIST): Add lchown.h.
73438         * modules/long-options (EXTRA_DIST): Add long-options.h.
73439         * modules/lstat (EXTRA_DIST): Add lstat.h.
73440         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73441         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73442         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73443         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73444         * modules/memxor (EXTRA_DIST): Add memxor.h.
73445         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73446         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73447         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73448         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73449         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73450         * modules/physmem (EXTRA_DIST): Add physmem.h.
73451         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73452         * modules/posixver (EXTRA_DIST): Add posixver.h.
73453         * modules/quote (EXTRA_DIST): Add quote.h.
73454         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73455         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73456         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73457         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73458         regex_internal.h regexec.c.
73459         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73460         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73461         * modules/same (EXTRA_DIST): Add same.h.
73462         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73463         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73464         * modules/savedir (EXTRA_DIST): Add savedir.h.
73465         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73466         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73467         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73468         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73469         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73470         * modules/strdup (EXTRA_DIST): Add strdup.h.
73471         * modules/strftime (EXTRA_DIST): Add strftime.h.
73472         * modules/strndup (EXTRA_DIST): Add strndup.h.
73473         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73474         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73475         * modules/time_r (EXTRA_DIST): Add time_r.h.
73476         * modules/timespec (EXTRA_DIST): Add timespec.h.
73477         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73478         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73479         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73480         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73481         * modules/userspec (EXTRA_DIST): Add userspec.h.
73482         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73483         * modules/utimens (EXTRA_DIST): Add utimens.h.
73484         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73485         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73486         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73487         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73488         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73489         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73490         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73491         * modules/yesno (EXTRA_DIST): Add yesno.h.
73492
73493 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73494
73495         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73496
73497         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73498         * m4/dev-ino.m4, same-inode.m4: Remove.
73499
73500         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73501         * m4/acl.m4 (AC_FUNC_ACL):
73502         * m4/backupfile.m4 (gl_BACKUPFILE):
73503         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73504         * m4/canon-host.m4 (gl_CANON_HOST):
73505         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73506         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73507         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73508         * m4/cloexec.m4 (gl_CLOEXEC):
73509         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73510         * m4/closeout.m4 (gl_CLOSEOUT):
73511         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73512         * m4/dirname.m4 (gl_DIRNAME):
73513         * m4/exclude.m4 (gl_EXCLUDE):
73514         * m4/exitfail.m4 (gl_EXITFAIL):
73515         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73516         * m4/file-type.m4 (gl_FILE_TYPE):
73517         * m4/filemode.m4 (gl_FILEMODE):
73518         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73519         * m4/fpending.m4 (gl_FUNC_FPENDING):
73520         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73521         * m4/fts.m4 (gl_FUNC_FTS):
73522         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73523         * m4/getdate.m4 (gl_GETDATE):
73524         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73525         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73526         * m4/getpass.m4 (gl_FUNC_GETPASS):
73527         * m4/gettime.m4 (gl_GETTIME):
73528         * m4/getugroups.m4 (gl_GETUGROUPS):
73529         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73530         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73531         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73532         * m4/hash.m4 (gl_HASH):
73533         * m4/idcache.m4 (gl_IDCACHE):
73534         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73535         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73536         * m4/long-options.m4 (gl_LONG_OPTIONS):
73537         * m4/lstat.m4 (gl_FUNC_LSTAT):
73538         * m4/md5.m4 (gl_MD5):
73539         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73540         * m4/memcoll.m4 (gl_MEMCOLL):
73541         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73542         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73543         * m4/memxor.m4 (gl_MEMXOR):
73544         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73545         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73546         * m4/modechange.m4 (gl_MODECHANGE):
73547         * m4/mountlist.m4 (gl_MOUNTLIST):
73548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73549         * m4/openat.m4 (gl_FUNC_OPENAT):
73550         * m4/pathmax.m4 (gl_PATHMAX):
73551         * m4/physmem.m4 (gl_PHYSMEM):
73552         * m4/posixtm.m4 (gl_POSIXTM):
73553         * m4/posixver.m4 (gl_POSIXVER):
73554         * m4/quote.m4 (gl_QUOTE):
73555         * m4/quotearg.m4 (gl_QUOTEARG):
73556         * m4/readtokens.m4 (gl_READTOKENS):
73557         * m4/readutmp.m4 (gl_READUTMP):
73558         * m4/regex.m4 (gl_REGEX):
73559         * m4/safe-read.m4 (gl_SAFE_READ):
73560         * m4/safe-write.m4 (gl_SAFE_WRITE):
73561         * m4/same.m4 (gl_SAME):
73562         * m4/save-cwd.m4 (gl_SAVE_CWD):
73563         * m4/savedir.m4 (gl_SAVEDIR):
73564         * m4/settime.m4 (gl_SETTIME):
73565         * m4/sha1.m4 (gl_SHA1):
73566         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73567         * m4/stat-macros.m4 (gl_STAT_MACROS):
73568         * m4/stat-time.m4 (gl_STAT_TIME):
73569         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73570         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73571         * m4/strdup.m4 (gl_FUNC_STRDUP):
73572         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73573         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73574         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73575         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73576         * m4/time_r.m4 (gl_TIME_R):
73577         * m4/timespec.m4 (gl_TIMESPEC):
73578         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73579         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73580         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73581         * m4/userspec.m4 (gl_USERSPEC):
73582         * m4/utimecmp.m4 (gl_UTIMECMP):
73583         * m4/utimens.m4 (gl_UTIMENS):
73584         * m4/xalloc.m4 (gl_XALLOC):
73585         * m4/xgetcwd.m4 (gl_XGETCWD):
73586         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73587         * m4/xreadlink.m4 (gl_XREADLINK):
73588         * m4/xstrtod.m4 (gl_XSTRTOD):
73589         * m4/yesno.m4 (gl_YESNO):
73590         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73591         to get the necessary .h files and whatnot.
73592
73593 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73594             Bruno Haible  <bruno@clisp.org>
73595
73596         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
73597         /bin/sh understanding of '!' conditional negation.
73598
73599 2006-08-21  Jim Meyering  <jim@meyering.net>
73600
73601         * modules/openat (Depends-on): Really alphabetize.
73602
73603         * modules/acl (Depends-on): Add error and quote.
73604
73605         * check-module (find_included_lib_files): Add at-func.c to the
73606         ok-to-include-more-than-once white list.
73607
73608         * modules/openat (Depends-on): Add lstat.  Alphabetize.
73609
73610 2006-08-21  Bruno Haible  <bruno@clisp.org>
73611
73612         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73613         Emit a pkgdata_DATA variable only if some snippets add contents to it.
73614         Reported by Martin Lambers <marlam@marlam.de>.
73615
73616 2006-08-21  Bruno Haible  <bruno@clisp.org>
73617
73618         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
73619         specify an installation location, don't emit a noinst_LIBRARIES or
73620         noinst_LTLIBRARIES assignment.
73621
73622 2006-08-21  Bruno Haible  <bruno@clisp.org>
73623
73624         BeOS portability.
73625         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
73626         BeOS has mbrtowc() but no <wctype.h>.
73627
73628 2006-08-21  Bruno Haible  <bruno@clisp.org>
73629
73630         BeOS portability.
73631         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
73632         exist.
73633
73634 2006-08-21  Bruno Haible  <bruno@clisp.org>
73635
73636         BeOS portability.
73637         * lib/mbchar.h: Include <wctype.h> only if it exists.
73638
73639 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73640
73641         Remove files that are no longer needed by their respective modules.
73642         * m4/obstack.m4: Remove.
73643         * m4/strerror_r.m4: Remove.
73644         * m4/uint32_t.m4: Remove.
73645         * m4/uintptr_t.m4: Remove.
73646         * m4/ullong_max.m4: Remove.
73647         * m4/xstrtoimax.m4: Remove.
73648         * m4/xstrtoumax.m4: Remove.
73649
73650         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
73651         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
73652         dependencies now capture this.
73653
73654         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
73655         Do not use AC_LIBSOURCES, since gnulib modules now do this.
73656         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
73657         * m4/human.m4 (gl_HUMAN): Likewise.
73658         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
73659         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
73660
73661         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
73662
73663         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
73664         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
73665         stdint.
73666         * m4/human.m4 (gl_HUMAN): Likewise.
73667         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
73668         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
73669         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73670         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73671         * m4/xstrtol (gl_XSTRTOL): Likewise.
73672
73673         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
73674         AC_TYPE_LONG_LONG_INT.
73675         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73676         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
73677         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
73678         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73679
73680         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
73681         on stdbool.
73682
73683         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
73684         (gl_PREREQ_XSTRTOUL): Remove.
73685
73686         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
73687
73688         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
73689         mode.
73690
73691 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73692
73693         Add and change modules to make it easier for coreutils to use
73694         gnulib-tool.
73695         * modules/backupfile (Files): Remove m4/d-ino.m4.
73696         (Depends-on): Add d-ino.
73697         * modules/cycle-check (Depends-on): Add stdint.
73698         (lib_SOURCES): Add cycle-check.h.
73699         * modules/d-ino: New module.
73700         * modules/d-type: New module.
73701         * modules/error (Files): Remove m4/strerror_r.m4.
73702         * modules/filemode (Files): Add m4/st_dm_mode.m4.
73703         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73704         m4/inttypes_h.m4, m4/uintmax_t.m4.
73705         (Depends-on): Add stdint.
73706         (lib_SOURCES): Add fsusage.h.
73707         * modules/getcwd (Files): Remove d-ino.m4.
73708         (Depends-on): Add d-ino.
73709         * modules/getndelim2 (Depends-on): Add stdint.
73710         * modules/glob (Files): Remove m4/d-type.m4.
73711         (Depends-on): Add d-type.
73712         * modules/host-os: New module.
73713         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
73714         m4/inttypes_h.m4, m4/uintmax_t.m4.
73715         * Depends-on: Add stdint.
73716         (lib_SOURCES): Add human.h.
73717         * modules/inttostr (Files): Remove m4/intmax_t.m4,
73718         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
73719         m4/uintmax_t.m4, m4/ulonglong.m4.
73720         (Depends-on): Add stdint.
73721         (EXTRA_DIST): Add inttostr.h.
73722         * modules/lchmod: New module.
73723         * modules/link-follow: New module.
73724         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
73725         (Depends-on): Add lchmod.
73726         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
73727         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
73728         (Depends-on): Add stdint.
73729         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
73730         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
73731         (Depends-on): Add stdint.
73732         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
73733         * modules/perl: New module.
73734         * modules/regex (Depends-on): Add stdint.
73735         * modules/rmdir-errno: New module.
73736         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73737         m4/intmax_t.m4.
73738         (Depends-on): Add stdint.
73739         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73740         m4/uintmax_t.m4.
73741         (Depends-on): Add stdint.
73742         * modules/unlink-busy: New module.
73743         * modules/utimecmp (Depends-on): Add stdint.
73744         * modules/uptime: New module.
73745         * modules/winsz-ioctl: New module.
73746         * modules/winsz-termios: New module.
73747         * modules/xnanosleep (Depends-on): Add nanosleep.
73748         * modules/ullong_max: Remove.
73749         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
73750         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
73751         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
73752         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
73753         (Depends-on): Add inttypes.
73754         (lib_SOURCES): Add xstrtol.h.
73755         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
73756         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
73757         * MODULES.html.sh: Move 'assert' into the assert section.
73758         Move 'dummy' into the linking section.
73759         Remove ullong_max.
73760         Add section for compatibility checks for POSIX:2001 functions,
73761         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
73762         winsz-ioctl, and winsz-termios into it.
73763         Add lchmod.
73764         Add top-level Misc section and put host-os, perl, and uptime
73765         into it.
73766
73767 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73768
73769         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
73770         now assume the stdint module.  Do not include inttypes.h.
73771         * lib/fsusage.h: Likewise.
73772         * lib/getndelim2.c: Likewise.
73773         * lib/human.h: Likewise.
73774         * lib/inttostr.h: Likewise.
73775         * lib/obstack.c: Likewise.
73776         * lib/regex_internal.h: Likewise.
73777         * lib/tempname.c: Likewise.
73778         * lib/utimecmp.c: Likewise.
73779         * lib/xstrtol.h: Likewise.
73780
73781         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
73782
73783         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
73784         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
73785         * lib/xtime.h: Likewise.
73786
73787 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73788
73789         * modules/openat (Files): Add lib/fchmodat.c.
73790         Fixes problem reported by Jay Youngman.
73791
73792 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73793
73794         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
73795         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
73796
73797 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
73798             Bruno Haible  <bruno@clisp.org>
73799
73800         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
73801         and is a script that invokes bison. Tighten the code. Add comments.
73802
73803 2006-08-18  Jim Meyering  <jim@meyering.net>
73804
73805         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
73806         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
73807         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
73808         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
73809
73810 2006-08-18  Bruno Haible  <bruno@clisp.org>
73811
73812         * modules/bison-i18n: New file.
73813         * MODULES.html.sh (Internationalization functions): Add it.
73814
73815 2006-08-18  Bruno Haible  <bruno@clisp.org>
73816
73817         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
73818         sys/statvfs.h. When getmntinfo was found, check its declaration and
73819         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
73820
73821 2006-08-18  Bruno Haible  <bruno@clisp.org>
73822
73823         * m4/bison-i18n.m4: New file, from bison.
73824
73825 2006-08-18  Bruno Haible  <bruno@clisp.org>
73826
73827         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
73828         (ME_DUMMY): Treat "kernfs" as a dummy.
73829         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
73830
73831 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73832
73833         Update from coreutils.
73834
73835         2006-08-15  Jim Meyering  <jim@meyering.net>
73836
73837         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
73838
73839         2006-01-17  Jim Meyering  <jim@meyering.net>
73840
73841         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
73842
73843         2006-01-11  Jim Meyering  <jim@meyering.net>
73844
73845         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
73846         Check for the lchmod function.
73847
73848 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73849
73850         Update from coreutils.
73851
73852         * lib/__fpending.h: Add copyright notice.
73853         * lib/fprintftime.h: Likewise.
73854         * lib/savedir.c: Use (C) in copyright notice.
73855         * lib/savedir.h: Likewise.
73856
73857         2006-08-15  Jim Meyering  <jim@meyering.net>
73858
73859         * lib/at-func.c: New file, with the logic of all emulated at-functions.
73860         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
73861         in support of the EXPECTED_ERRNO macro.
73862         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
73863         definitions.  Instead, define the appropriate symbols and include
73864         "at-func.c".
73865         * lib/mkdirat.c (mkdirat): Likewise.
73866         * lib/fchmodat.c (fchmodat): Likewise.
73867         (ENOSYS): Remove definition.
73868         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
73869         it.  Don't include "unistd--.h" -- it wasn't ever used.
73870
73871         2006-01-17  Jim Meyering  <jim@meyering.net>
73872
73873         Rewrite fts.c not to change the current working directory,
73874         by using openat, fstatat, fdopendir, etc..
73875
73876         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
73877         (HAVE_OPENAT_SUPPORT): Define.
73878         [_LIBC] (fchdir): Don't undef or define; no longer used.
73879         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
73880         Now, this `function' always succeeds, and consumes its file descriptor
73881         parameter -- so callers must not close such FDs.  Update callers.
73882         (diropen_fd, opendirat, cwd_advance_fd): New functions.
73883         (diropen): Add parameter, SP.  Adjust all callers.
73884         Implement using diropen_fd, rather than open.
73885         (fts_open): Initialize new member, fts_cwd_fd.
73886         Remove fts_rft-setting code.
73887         (fts_close): Close fts_cwd_fd, if necessary.
73888         (__opendir2): Define in terms of opendir or opendirat,
73889         depending on whether the FST_NOCHDIR flag is set.
73890         (fts_build): Since fts_safe_changedir consumes its FD, and since
73891         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
73892         and close the dup'd file descriptor upon failure.
73893         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
73894         (fts_safe_changedir): Tweak semantics to reflect that this function
73895         now calls cwd_advance_fd and hence consumes its FD argument.
73896         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
73897         [struct FTS] (fts_rft): Remove now-unused member.
73898         [struct FTS] (fts_cycle.state): Improve comment.
73899
73900         * lib/openat.c (openat_needs_fchdir): New function.
73901         * lib/openat.h (openat_needs_fchdir): Declare it.
73902
73903 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73904
73905         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
73906         Problem and fix reported by Pádraig Brady in
73907         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
73908
73909 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
73912
73913 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * lib/memcoll.c (memcoll): Optimize for the common case where the
73916         arguments are bytewise equal.
73917
73918 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * doc/regexprops-generic.texi: Add a copyright notice.
73921
73922 2006-08-15  Bruno Haible  <bruno@clisp.org>
73923
73924         * modules/tmpdir (License): Change to LGPL.
73925
73926 2006-08-15  Bruno Haible  <bruno@clisp.org>
73927
73928         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
73929         module.
73930
73931 2006-08-14  Simon Josefsson  <jas@extundo.com>
73932
73933         * config/srclist.txt: Add gnupload.
73934
73935 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73936
73937         Change copyright notice from LGPL 2 to GPL 2, since that's the
73938         standard form used in the gnulib repository.
73939         * tests/test-lock.c: Likewise.
73940         * tests/test-stdint.c: Likewise.
73941         * tests/test-tls.c: Likewise.
73942
73943         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
73944         prelude-manager.  User shorter URLs for GNU projects, without '?'.
73945         Add copyright notice.
73946
73947         * check-module: Add copyright notice.  Output a copyright
73948         notice if "--version" is specified.
73949         * modules/COPYING: New file.
73950         * tests/test-getaddrinfo.c: Add copyright notice.
73951         * tests/test-verify.c: Likewise.
73952
73953 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73954
73955         Change copyright notice from LGPL 2 to GPL 2, since that's the
73956         standard form used in the gnulib repository.
73957         * lib/lock.c: LGPL -> GPL.
73958         * lib/lock.h: Likewise.
73959         * lib/strnlen1.c: Likewise.
73960         * lib/strnlen1.h: Likewise.
73961         * lib/tls.c: Likewise.
73962         * lib/tls.h: Likewise.
73963         * lib/tmpdir.c: Likewise.
73964
73965         * lib/TODO: Remove; this belongs only in coreutils.
73966
73967 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73968
73969         Add copyright notices to long-enough files that lack them, since
73970         otherwise the files aren't clearly free.  Use the same notice that
73971         getdate.texi already uses.
73972         * doc/alloca-opt.texi: Add copyright notice.
73973         * doc/alloca.texi: Likewise.
73974         * doc/ctime.texi: Likewise.
73975         * doc/functions.texi: Likewise.
73976         * doc/gcd.texi: Likewise.
73977         * doc/gnulib-tool.texi: Likewise.
73978         * doc/inet_ntoa.texi: Likewise.
73979         * doc/visibility.texi: Likewise.
73980
73981         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73982         * doc/quote.texi: Add copyright notice.
73983
73984         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73985         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73986         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73987         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73988         is now obsolete, and give a pointer to the Sun list.
73989         Add copyright notice.
73990
73991 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * config/srclistvars.sh: Add copyright notice.
73994
73995 2006-08-14  Eric Blake  <ebb9@byu.net>
73996
73997         Import the following change from libc:
73998
73999         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74000
74001         Upstream bug 2997.
74002         * lib/misc/error.c: Add space between program name and message if file
74003         name is missing.
74004
74005 2006-08-12  Karl Berry  <karl@gnu.org>
74006
74007         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74008         remove, these originate in gnulib now.
74009
74010 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74011
74012         * doc/Makefile (standards.info standards.html standards.dvi):
74013         Also depend on make-stds.texi.
74014
74015 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74016
74017         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74018         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74019
74020         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74021         in wchar_t.  Problem reported by Eric Blake.
74022
74023         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74024         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74025         Also, help the compiler to keep LEN in a register.
74026
74027 2006-08-11  Eric Blake  <ebb9@byu.net>
74028
74029         * users.txt: Sort.  Add tar.
74030
74031 2006-08-11  Bruno Haible  <bruno@clisp.org>
74032
74033         * users.txt: New file.
74034
74035 2006-08-11  Bruno Haible  <bruno@clisp.org>
74036
74037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74038         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74039
74040 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * modules/snprintf (Depends-on): Remove minmax.
74043         (Maintainer): Add self and Bruno.
74044
74045 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74046
74047         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74048         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74049         (EOVERFLOW): Define if the system does not.
74050         Do not include "minmax.h"; it wasn't used.
74051         (snprintf): Don't assume size_t promotes to an unsigned type.
74052         Fix bug when generated string was too long for the buffer: the
74053         buffer's contents are supposed to be the initial prefix of the
74054         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74055         exceeds INT_MAX; do the check ourselves.
74056
74057         Import the following changes from libc:
74058
74059         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74060
74061         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74062         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74063         set wc to the byte which couldn't be converted.
74064         (re_string_reconstruct): Don't clear valid_raw_len before calling
74065         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74066         tip_context using re_string_context_at.
74067
74068         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74069
74070         * lib/posix/regex.h: g++ still cannot handled [restrict].
74071
74072         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74073
74074         * lib/posix/regex.h: Remove special handling for VMS.
74075
74076 2006-08-10  Jim Meyering  <jim@meyering.net>
74077
74078         * modules/same-inode: New module.
74079         * modules/dev-ino: New module.
74080         * modules/cycle-check: Depend on these modules, rather than simply
74081         including their .h files.
74082         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74083         required via m4/cycle-check.m4.
74084         * modules/same: Depend on new same-inode module, rather than
74085         including same-inode.h.
74086         * modules/chdir-safer: New file.
74087
74088         * modules/chown (Depends-on): Add stat-macros.
74089
74090 2006-08-10  Jim Meyering  <jim@meyering.net>
74091
74092         * m4/cycle-check.m4: New file.
74093         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74094         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74095
74096 2006-08-10  Eric Blake  <ebb9@byu.net>
74097
74098         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74099         in from original proposal.
74100
74101 2006-08-10  Eric Blake  <ebb9@byu.net>
74102         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74103
74104         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74105         namespace.
74106
74107 2006-08-10  Bruno Haible  <bruno@clisp.org>
74108
74109         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74110         as well.
74111
74112 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74113
74114         Sync from coreutils.
74115
74116         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74117
74118         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74119         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74120
74121 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74122
74123         * modules/restrict: Remove; no longer needed now that we assume
74124         Autoconf 2.59 or later.
74125         * MODULES.html.sh: Remove 'restrict'.
74126         * modules/argp (Depends-on): Remove 'restrict'.
74127         * modules/base64 (Depends-on): Likewise.
74128         * modules/gc (Depends-on): Likewise.
74129         * modules/getaddrinfo (Depends-on): Likewise.
74130         * modules/glob (Depends-on): Likewise.
74131         * modules/inet_ntop (Depends-on): Likewise.
74132         * modules/inet_pton (Depends-on): Likewise.
74133         * modules/memxor (Depends-on): Likewise.
74134         * modules/regex (Depends-on): Likewise.
74135         * modules/strtok_r (Depends-on): Likewise.
74136         * modules/time_r (Depends-on): Likewise.
74137
74138 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74141         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74142         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74143         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74144         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74145         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74146         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74147         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74148
74149         Merge from coreutils.
74150         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74151         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74152         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74153         * m4/time_r.m4 (gl_TIME_R): Likewise.
74154
74155 2006-08-09  Karl Berry  <karl@gnu.org>
74156
74157         * config/srclist.txt: no more gettext-tools, per Bruno.
74158
74159 2006-08-08  Eric Blake  <ebb9@byu.net>
74160
74161         * modules/verror: New module.
74162         * MODULES.html.sh: Document it.
74163
74164 2006-08-08  Eric Blake  <ebb9@byu.net>
74165
74166         * lib/verror.h, lib/verror.c: New files.
74167
74168 2006-08-08  Eric Blake  <ebb9@byu.net>
74169
74170         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74171         verror_at_line output complies with GNU Coding Standards even when
74172         file is NULL.
74173
74174 2006-08-07  Bruno Haible  <bruno@clisp.org>
74175
74176         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74177         versions of AIX.
74178         Reported by Ralf Wildenhues.
74179
74180 2006-08-07  Bruno Haible  <bruno@clisp.org>
74181
74182         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74183         in an AC_DEFUN. Needed so that the autoconf snippets can use
74184         AC_REQUIRE.
74185
74186 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74187
74188         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74189         Initialize pkgdata_DATA.
74190         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74191         overriding it.
74192
74193 2006-08-06  Eric Blake  <ebb9@byu.net>
74194
74195         * lib/error.h: Fold in some upstream changes from glibc.
74196         * lib/error.c: Likewise.
74197
74198 2006-08-04  Bruno Haible  <bruno@clisp.org>
74199
74200         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74201         Make the mostlyclean-local rule depend on mostlyclean-generic.
74202         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74203
74204 2006-07-31  Bruno Haible  <bruno@clisp.org>
74205
74206         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74207         <stdlib.h>, <string.h>.
74208
74209 2006-07-30  Bruno Haible  <bruno@clisp.org>
74210
74211         * modules/readlink (License): Change to LGPL.
74212
74213 2006-07-30  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74216         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74217         set PKGDATADIR to point to it.
74218
74219 2006-07-30  Bruno Haible  <bruno@clisp.org>
74220
74221         * modules/csharpexec (configure.ac): Comment out macro invocation.
74222         * modules/javaexec (configure.ac): Likewise.
74223         * modules/javacomp-script (configure.ac): Likewise.
74224
74225         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74226
74227 2006-07-30  Bruno Haible  <bruno@clisp.org>
74228
74229         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74230         linked-list.
74231
74232 2006-07-30  Bruno Haible  <bruno@clisp.org>
74233
74234         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74235
74236 2006-07-30  Bruno Haible  <bruno@clisp.org>
74237
74238         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74239         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74240         get removed.
74241
74242 2006-07-29  Bruno Haible  <bruno@clisp.org>
74243
74244         Make it possible for gnulib-tool to work with locally modified or
74245         augmented gnulib repositories.
74246         * gnulib-tool (func_usage): Document --local-dir option.
74247         (local_gnulib_dir): New variable.
74248         Handle --local-dir option.
74249         (func_lookup_file): New function.
74250         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74251         (func_get_description, func_get_filelist, func_get_description,
74252         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74253         func_get_automake_snippet, func_get_include_directive,
74254         func_get_license, func_get_maintainer): Use func_lookup_file.
74255         (func_import, func_create_testdir): Use func_lookup_file.
74256
74257 2006-07-29  Bruno Haible  <bruno@clisp.org>
74258
74259         * modules/setenv (Depends-on): Add unistd.
74260
74261 2006-07-29  Bruno Haible  <bruno@clisp.org>
74262
74263         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74264
74265 2006-07-29  Bruno Haible  <bruno@clisp.org>
74266
74267         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74268
74269 2006-07-29  Bruno Haible  <bruno@clisp.org>
74270
74271         * gnulib-tool (import, update): If there is no Makefile.am, look at
74272         aclocal.m4, instead of bailing out.
74273
74274 2006-07-29  Bruno Haible  <bruno@clisp.org>
74275
74276         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74277         Categorize the options by when they are useful.
74278
74279 2006-07-29  Bruno Haible  <bruno@clisp.org>
74280
74281         * gnulib-tool (func_usage): Document option --no-libtool.
74282         Handle option --no-libtool.
74283         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74284         for changed semantics of $libtool variable.
74285         (func_import): Likewise. If libtool is not used, show this through
74286         an option --no-libtool.
74287         (func_create_testdir): Update.
74288
74289 2006-07-29  Bruno Haible  <bruno@clisp.org>
74290
74291         * gnulib-tool (func_import): Extend error message about missing
74292         --doc-base.
74293
74294 2006-07-29  Bruno Haible  <bruno@clisp.org>
74295
74296         * gnulib-tool (func_import): Don't create the $docbase directory if
74297         there is no file to store there.
74298
74299 2006-07-29  Bruno Haible  <bruno@clisp.org>
74300
74301         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74302         relevant, look for configure.ac there, not in the current directory.
74303         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74304
74305 2006-07-29  Bruno Haible  <bruno@clisp.org>
74306
74307         * gnulib-tool (SORT): New variable.
74308         (func_usage): Undocument --assume-autoconf option.
74309         Remove --assume-autoconf option handling.
74310         (autoconf_minversion): Determine from the contents of configure.ac.
74311         (func_import): Remove autoconf_minversion handling.
74312         Suggested by Eric Blake.
74313
74314 2006-07-29  Bruno Haible  <bruno@clisp.org>
74315
74316         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74317
74318 2006-07-29  Bruno Haible  <bruno@clisp.org>
74319
74320         * config/srclist.txt (*setenv.[ch]): Remove rules.
74321
74322 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74323
74324         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74325
74326 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74327
74328         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74329         arpa/inet.h.
74330
74331 2006-07-28  Simon Josefsson  <jas@extundo.com>
74332
74333         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74334         * modules/inet_pton (Depends-on): Likewise.
74335
74336 2006-07-28  Simon Josefsson  <jas@extundo.com>
74337
74338         * m4/netinet_in_h.m4: New file.
74339
74340 2006-07-28  Simon Josefsson  <jas@extundo.com>
74341
74342         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74343         #include's.
74344
74345 2006-07-28  Simon Josefsson  <jas@extundo.com>
74346
74347         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74348         #include's.
74349
74350 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74351
74352         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74353         setgid on directories only if they set these bits.
74354         * lib/modechange.h: Remove obsolete comment about masks.
74355
74356 2006-07-28  Eric Blake  <ebb9@byu.net>
74357
74358         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74359         macro expansion.
74360
74361 2006-07-28  Bruno Haible  <bruno@clisp.org>
74362
74363         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74364
74365 2006-07-28  Bruno Haible  <bruno@clisp.org>
74366
74367         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74368
74369 2006-07-28  Bruno Haible  <bruno@clisp.org>
74370
74371         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74372         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74373         Define fallbacks.
74374         Avoids link error on FreeBSD 4.x.
74375         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74376
74377         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74378         encoding.
74379         * lib/mbswidth.c (iswcntrl): Likewise.
74380
74381 2006-07-27  Bruno Haible  <bruno@clisp.org>
74382
74383         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74384         test.
74385
74386 2006-07-27  Bruno Haible  <bruno@clisp.org>
74387
74388         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74389         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74390         defined.
74391
74392 2006-07-26  Eric Blake  <ebb9@byu.net>
74393
74394         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74395
74396 2006-07-26  Eric Blake  <ebb9@byu.net>
74397
74398         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74399         like mingw that lack mkstemp.
74400         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74401         avoid compilation warning on mingw.
74402
74403 2006-07-26  Bruno Haible  <bruno@clisp.org>
74404
74405         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74406         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74407         INT_FAST*_MIN, INTPTR_MIN.
74408
74409 2006-07-25  Bruno Haible  <bruno@clisp.org>
74410
74411         * modules/version-etc (Depends-on): Add stdarg.
74412
74413 2006-07-25  Bruno Haible  <bruno@clisp.org>
74414
74415         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74416         complex commands.
74417
74418 2006-07-25  Bruno Haible  <bruno@clisp.org>
74419
74420         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74421         defined in <stdarg.h> or config.h.
74422
74423 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74426         (gl_STDIO_SAFER): Remove.
74427
74428 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74429
74430         * MODULES.html.sh (File stream based Input/Output):
74431         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74432         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74433         * modules/fopen-safer, modules/tmpfile-safer: New files.
74434         * modules/stdio-safer: Remove.
74435
74436 2006-07-24  Bruno Haible  <bruno@clisp.org>
74437
74438         * modules/tmpdir: New file.
74439         * MODULES.html.sh (File system functions): Add it.
74440
74441 2006-07-24  Bruno Haible  <bruno@clisp.org>
74442
74443         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74444         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74445
74446 2006-07-24  Bruno Haible  <bruno@clisp.org>
74447
74448         * modules/clean-temp: New file.
74449
74450 2006-07-24  Bruno Haible  <bruno@clisp.org>
74451
74452         * m4/tmpdir.m4: New file, from GNU gettext.
74453
74454 2006-07-24  Bruno Haible  <bruno@clisp.org>
74455
74456         * lib/tmpdir.h: New file, from GNU gettext.
74457         * lib/tmpdir.c: New file, from GNU gettext.
74458
74459 2006-07-24  Bruno Haible  <bruno@clisp.org>
74460
74461         * lib/clean-temp.h: New file, from GNU gettext.
74462         * lib/clean-temp.c: New file, from GNU gettext.
74463
74464 2006-07-23  Eric Blake  <ebb9@byu.net>
74465
74466         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74467         (Depends-on): Add binary-io.
74468
74469 2006-07-23  Eric Blake  <ebb9@byu.net>
74470
74471         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74472
74473 2006-07-23  Eric Blake  <ebb9@byu.net>
74474
74475         * lib/tmpfile-safer.c: New file.
74476         * lib/stdio-safer.h (fopen_safer): Add prototype.
74477         * lib/stdio--.h (tmpfile): Make safer.
74478
74479 2006-07-23  Bruno Haible  <bruno@clisp.org>
74480
74481         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74482         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74483         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74484         gl_linked_remove_at): Use it.
74485
74486 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74487         and Simon Josefsson <jas@extundo.com>
74488
74489         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74490
74491         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74492
74493 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74494
74495         * modules/close-stream: New file.
74496         * modules/closeout (Description): Make it clear that it exits
74497         with a diagnostic on error.
74498         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74499         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74500
74501 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74502
74503         * m4/close-stream.m4: New file.
74504
74505 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74506
74507         * lib/close-stream.c, lib/close-stream.h: New files.
74508
74509 2006-07-22  Bruno Haible  <bruno@clisp.org>
74510
74511         Merge from GNU gettext 0.15.
74512
74513         2006-05-01  Bruno Haible  <bruno@clisp.org>
74514
74515                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74516
74517         2006-07-22  Bruno Haible  <bruno@clisp.org>
74518
74519                 * modules/javaversion: New file.
74520                 * MODULES.html.sh (Java): Add javaversion.
74521
74522         2006-03-12  Bruno Haible  <bruno@clisp.org>
74523
74524                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74525
74526         2005-12-04  Bruno Haible  <bruno@clisp.org>
74527
74528                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74529                 (untested).
74530
74531         2006-06-21  Bruno Haible  <bruno@clisp.org>
74532
74533                 Avoid warnings from recent versions of mcs.
74534                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74535                 -o, -L, -r any more. Use options documented since mcs-1.0
74536                 instead. Similarly for -g.
74537
74538         2005-12-04  Bruno Haible  <bruno@clisp.org>
74539
74540                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74541                 .resources, not .resource.
74542
74543         2005-07-09  Bruno Haible  <bruno@clisp.org>
74544
74545                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74546                 add a .dll suffix.
74547                 Reported by Mark Junker <mjscod@gmx.de>.
74548
74549         2006-07-22  Bruno Haible  <bruno@clisp.org>
74550
74551                 * modules/gettext: Upgrade to gettext-0.15.
74552                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74553                 m4/visibility.m4.
74554                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74555
74556 2006-07-22  Bruno Haible  <bruno@clisp.org>
74557
74558         Merge from GNU gettext 0.15.
74559
74560         2006-03-25  Bruno Haible  <bruno@clisp.org>
74561
74562                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74563
74564         2006-07-21  Bruno Haible  <bruno@clisp.org>
74565
74566                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74567                 "1.1".
74568
74569         2006-05-09  Bruno Haible  <bruno@clisp.org>
74570
74571                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74572                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74573                 for the conftestver execution.
74574
74575         2006-05-01  Bruno Haible  <bruno@clisp.org>
74576
74577                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74578                 optional target-version argument. Verify that the compiler
74579                 groks source of the specified source-version, or add -source
74580                 option as necessary. Verify that the compiler produces
74581                 bytecode in the specified target-version, or add -target and
74582                 -source options as necessary. Make the result of the test
74583                 available as variable CONF_JAVAC. Also log error output in
74584                 config.log.
74585
74586         2006-03-11  Bruno Haible  <bruno@clisp.org>
74587
74588                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74589
74590         2006-05-09  Bruno Haible  <bruno@clisp.org>
74591
74592                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74593                 CLASSPATH_SEPARATOR to a semicolon.
74594
74595         2006-03-12  Bruno Haible  <bruno@clisp.org>
74596
74597                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
74598                 available as variable CONF_JAVA, for subsequent autoconf
74599                 tests. Also log error output in config.log.
74600
74601         2006-07-19  Bruno Haible  <bruno@clisp.org>
74602
74603                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
74604                 that getline works on glibc2 systems. Needed to avoid trouble
74605                 in relocatable.c.
74606                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
74607
74608         2005-12-04  Bruno Haible  <bruno@clisp.org>
74609
74610                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
74611                 launcher (untested).
74612
74613         2005-12-04  Bruno Haible  <bruno@clisp.org>
74614
74615                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
74616
74617         2006-07-22  Bruno Haible  <bruno@clisp.org>
74618
74619                 * gettext.m4: Update from GNU gettext-0.15.
74620                 * nls.m4: Likewise.
74621                 * po.m4: Likewise.
74622                 * inttypes-pri.m4: Likewise.
74623                 * inttypes-h.m4: Renamed from inttypes.m4.
74624                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
74625
74626 2006-07-22  Bruno Haible  <bruno@clisp.org>
74627
74628         Merge from GNU gettext 0.15.
74629
74630         2005-07-05  Bruno Haible  <bruno@clisp.org>
74631
74632                 * printf-args.c (printf_fetchargs): Work around broken
74633                 definition of wint_t on mingw.
74634
74635         2005-02-12  Bruno Haible  <bruno@clisp.org>
74636
74637                 * xallocsa.h: Add extern "C" for C++.
74638
74639         2006-05-17  Bruno Haible  <bruno@clisp.org>
74640
74641                 Cygwin portability.
74642                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
74643
74644         2006-04-30  Bruno Haible  <bruno@clisp.org>
74645
74646                 * progreloc.c: Include <mach-o/dyld.h> if available.
74647                 (find_executable): Use _NSGetExecutablePath when possible.
74648
74649         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74650
74651                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
74652                 function.
74653
74654         2005-12-29  Bruno Haible  <bruno@clisp.org>
74655
74656                 * progreloc.c (set_program_name_and_installdir): Fix
74657                 compilation error.
74658
74659         2005-12-04  Bruno Haible  <bruno@clisp.org>
74660
74661                 Cygwin portability.
74662                 * progreloc.c: Include <windows.h> also on Cygwin.
74663                 (find_executable): Add support for Cygwin.
74664                 (set_program_name_and_installdir): Handle also platforms with
74665                 nonempty EXEEXT.
74666
74667         2006-07-11  Bruno Haible  <bruno@clisp.org>
74668
74669                 * javacomp.c: Fix a comment.
74670                 Reported by Jim Meyering.
74671
74672         2006-04-30  Bruno Haible  <bruno@clisp.org>
74673
74674                 * javacomp.h (compile_java_class): Add source_version,
74675                 target_version arguments.
74676                 * javacomp.c: Rewritten to choose only a compiler that
74677                 respects the specified source_version and target_version.
74678
74679         2006-06-27  Bruno Haible  <bruno@clisp.org>
74680
74681                 Assume correct S_ISDIR macro.
74682                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
74683
74684         2006-07-22  Bruno Haible  <bruno@clisp.org>
74685
74686                 * javaversion.h: New file, from GNU gettext.
74687                 * javaversion.c: New file, from GNU gettext.
74688                 * javaversion.java: New file, from GNU gettext.
74689                 * javaversion.class: New file, from GNU gettext.
74690
74691         2006-05-17  Bruno Haible  <bruno@clisp.org>
74692
74693                 Cygwin portability.
74694                 * javaexec.c (execute_java_class): Test for jview program
74695                 also on Cygwin.
74696
74697         2006-04-09  Bruno Haible  <bruno@clisp.org>
74698
74699                 * fatal-signal.c: Don't include string.h.
74700                 (at_fatal_signal): Use a copying loop instead of memcpy.
74701
74702         2005-12-04  Bruno Haible  <bruno@clisp.org>
74703
74704                 * csharpexec.c: Add support for 'clix' launcher (untested).
74705                 (execute_csharp_using_sscli): New function.
74706                 (execute_csharp_program): Call it.
74707
74708         2006-06-21  Bruno Haible  <bruno@clisp.org>
74709
74710                 Avoid warnings from recent versions of mcs.
74711                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
74712                 -o, -L, -r any more. Use options documented since mcs-1.0
74713                 instead. Similarly for -g.
74714
74715         2005-07-09  Bruno Haible  <bruno@clisp.org>
74716
74717                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
74718                 add a .dll suffix.
74719                 Reported by Mark Junker <mjscod@gmx.de>.
74720
74721         2006-06-17  Bruno Haible  <bruno@clisp.org>
74722
74723                 * config.charset: Update for NetBSD 3.0.
74724
74725         2006-05-17  Bruno Haible  <bruno@clisp.org>
74726
74727                 Cygwin portability.
74728                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
74729
74730         2006-05-16  Bruno Haible  <bruno@clisp.org>
74731
74732                 * localcharset.c [CYGWIN]: Include <windows.h>.
74733                 (get_charset_aliases): For Cygwin, return the same CPxxx
74734                 aliases list as under WIN32.
74735                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
74736                 the environment variables. Fall back to GetACP().
74737
74738         2006-04-05  Bruno Haible  <bruno@clisp.org>
74739
74740                 * config.charset: Update Juan Manuel Guerrero's address.
74741
74742         2005-02-12  Bruno Haible  <bruno@clisp.org>
74743
74744                 * allocsa.h: Add extern "C" for C++.
74745
74746         2005-02-10  Bruno Haible  <bruno@clisp.org>
74747
74748                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
74749                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
74750
74751         2006-07-22  Bruno Haible  <bruno@clisp.org>
74752
74753                 * gettext.h: Update to GNU gettext-0.15.
74754
74755 2006-07-22  Bruno Haible  <bruno@clisp.org>
74756
74757         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
74758         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
74759         lib-prefix.m4, longdouble.m4, ssize_t.m4.
74760
74761 2006-07-21  Eric Blake  <ebb9@byu.net>
74762
74763         * modules/stdlib-safer: New file.
74764         * MODULES.html.sh (File stream based Input/Output): Add
74765         stdlib-safer.
74766
74767 2006-07-21  Eric Blake  <ebb9@byu.net>
74768
74769         * lib/stdlib-safer.h: New file from coreutils, required by
74770         stdlib--.h.
74771
74772 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
74773
74774         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
74775
74776 2006-07-20  Bruno Haible  <bruno@clisp.org>
74777
74778         * gnulib-tool: Recognize new option --assume-autoconf.
74779         (autoconf_minversion): New variable.
74780         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
74781
74782 2006-07-20  Bruno Haible  <bruno@clisp.org>
74783
74784         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
74785
74786 2006-07-19  Derek R. Price  <derek@ximbiot.com>
74787
74788         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
74789         Reindent and repaginate.
74790
74791 2006-07-19  Derek Price  <derek@ximbiot.com>
74792
74793         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
74794         Correct grammar.
74795
74796 2006-07-17  Bruno Haible  <bruno@clisp.org>
74797
74798         * modules/list: New file.
74799         * modules/array-list: New file.
74800         * modules/carray-list, modules/carray-list-tests: New files.
74801         * modules/linked-list, modules/linked-list-tests: New files.
74802         * modules/avltree-list, modules/avltree-list-tests: New files.
74803         * modules/rbtree-list, modules/rbtree-list-tests: New files.
74804         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
74805         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
74806         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
74807         * modules/oset: New file.
74808         * modules/array-oset: New file.
74809         * modules/avltree-oset, modules/avltree-oset-tests: New files.
74810         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
74811         * tests/test-carray_list.c: New file.
74812         * tests/test-linked_list.c: New file.
74813         * tests/test-avltree_list.c: New file.
74814         * tests/test-rbtree_list.c: New file.
74815         * tests/test-linkedhash_list.c: New file.
74816         * tests/test-avltreehash_list.c: New file.
74817         * tests/test-rbtreehash_list.c: New file.
74818         * tests/test-avltree_oset.c: New file.
74819         * tests/test-rbtree_oset.c: New file.
74820         * MODULES.html.sh (Container data structures): New section.
74821
74822 2006-07-17  Bruno Haible  <bruno@clisp.org>
74823
74824         * m4/gl_list.m4: New file.
74825
74826 2006-07-17  Bruno Haible  <bruno@clisp.org>
74827
74828         * lib/gl_list.h: New file.
74829         * lib/gl_list.c: New file.
74830         * lib/gl_array_list.h: New file.
74831         * lib/gl_array_list.c: New file.
74832         * lib/gl_carray_list.h: New file.
74833         * lib/gl_carray_list.c: New file.
74834         * lib/gl_linked_list.h: New file.
74835         * lib/gl_linked_list.c: New file.
74836         * lib/gl_anylinked_list1.h: New file.
74837         * lib/gl_anylinked_list2.h: New file.
74838         * lib/gl_avltree_list.h: New file.
74839         * lib/gl_avltree_list.c: New file.
74840         * lib/gl_anyavltree_list1.h: New file.
74841         * lib/gl_anyavltree_list2.h: New file.
74842         * lib/gl_rbtree_list.h: New file.
74843         * lib/gl_rbtree_list.c: New file.
74844         * lib/gl_anyrbtree_list1.h: New file.
74845         * lib/gl_anyrbtree_list2.h: New file.
74846         * lib/gl_anytree_list1.h: New file.
74847         * lib/gl_anytree_list2.h: New file.
74848         * lib/gl_linkedhash_list.h: New file.
74849         * lib/gl_linkedhash_list.c: New file.
74850         * lib/gl_anyhash_list1.h: New file.
74851         * lib/gl_anyhash_list2.h: New file.
74852         * lib/gl_avltreehash_list.h: New file.
74853         * lib/gl_avltreehash_list.c: New file.
74854         * lib/gl_rbtreehash_list.h: New file.
74855         * lib/gl_rbtreehash_list.c: New file.
74856         * lib/gl_anytreehash_list1.h: New file.
74857         * lib/gl_anytreehash_list2.h: New file.
74858
74859         * lib/gl_oset.h: New file.
74860         * lib/gl_oset.c: New file.
74861         * lib/gl_array_oset.h: New file.
74862         * lib/gl_array_oset.c: New file.
74863         * lib/gl_avltree_oset.h: New file.
74864         * lib/gl_avltree_oset.c: New file.
74865         * lib/gl_rbtree_oset.h: New file.
74866         * lib/gl_rbtree_oset.c: New file.
74867         * lib/gl_anytree_oset.h: New file.
74868
74869 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74870
74871         * m4/mkancesdirs.m4: New file.
74872         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
74873         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
74874         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
74875         it.
74876
74877 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
74880         * lib/mkancesdirs.h: New files.
74881         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
74882         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
74883         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
74884         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
74885         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
74886         callers changed.  Revamp internals significantly, by not
74887         attempting to create directories that are temporarily more
74888         permissive than the final results.  Do not attempt to use
74889         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
74890         This removes some race conditions, fixes some bugs, and simplifies
74891         things.  Use new dirchownmod function to do owner and mode changes.
74892         * lib/mkdir-p.h: Likewise.
74893         * lib/modechange.c (octal_to_mode): New function.
74894         (struct mode_change): New member mentioned.
74895         (make_node_op_equals): New arg mentioned.  All callers changed.
74896         (mode_compile): Keep track of which mode bits the user has explicitly
74897         mentioned.
74898         (mode_adjust): New arg DIR, so that we implement the X op correctly.
74899         New arg PMODE_BITS, to keep track of which mode bits the user
74900         mentioned; it treats S_ISUID and S_ISGID speciall.
74901         All callers changed.
74902         * lib/modechange.h: Likewise.
74903
74904 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74905
74906         * MODULES.html.sh: Add mkancestors.
74907         * modules/mkancesdirs: New module.
74908         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
74909         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
74910         The chdir-safer and afs files are now orphans; I'll remove them
74911         unless someone speaks up.
74912         Add lib/dirchownmod.c, lib/dirchownmod.h.
74913         (Depends-on): Remove alloca, chown, save-cwd, dirname.
74914         Add lchown, mkancesdirs.
74915         (Maintainer): Add self.
74916
74917 2006-07-15  Karl Berry  <karl@gnu.org>
74918
74919         * gnulib-tool: help message wording/arrangement.
74920
74921 2006-07-14  Simon Josefsson  <jas@extundo.com>
74922
74923         * doc/gnulib.texi (Libtool and Windows): New section.
74924
74925 2006-07-12  Simon Josefsson  <jas@extundo.com>
74926
74927         * modules/gendocs (License): Fix license, approved by Karl.
74928
74929 2006-07-12  Eric Blake  <ebb9@byu.net>
74930
74931         * MODULES.html.sh: Add gendocs.
74932
74933 2006-07-11  Eric Blake  <ebb9@byu.net>
74934
74935         * modules/fdl: New module, to install doc/fdl.texi.
74936         * MODULES.html.sh: Add new section for documentation modules.
74937         * gnulib-tool: Avoid space-tab.
74938         (--doc-base): New option, to manage files from doc.
74939
74940 2006-07-11  Eric Blake  <ebb9@byu.net>
74941
74942         * m4/absolute-header.m4: Fix comments to match recent change.
74943
74944 2006-07-11  Eric Blake  <ebb9@byu.net>
74945
74946         * gnulib-tool: List --doc-base before --tests-base.
74947
74948 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74949
74950         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74951
74952 2006-07-11  Bruno Haible  <bruno@clisp.org>
74953
74954         * README: Mention where to put documentation.
74955
74956 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74957
74958         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74959
74960 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74963         to stdint.m4.
74964
74965 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74968         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74969         "no/such/file/stdint.h" when there is no such file, so that
74970         the resulting C code can be parsed by dodgy compilers.
74971         Problems reported by Bob Proulx.
74972
74973 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74974
74975         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74976         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74977         macros into the GNU _D_EXACT_NAMLEN.
74978         * lib/savedir.c:  Likewise.
74979         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74980
74981 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74982         and Paul Eggert  <eggert@cs.ucla.edu>
74983
74984         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74985         * m4/savedir.m4:
74986         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74987         macros into the GNU _D_EXACT_NAMLEN.
74988
74989 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74990
74991         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74992         around the absolute name, to work around a problem with the HP-UX
74993         11.23 native C compiler, reported by Bob Proulx.
74994
74995 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * doc/maintain.texi, make-stds.texi: Sync from
74998         <http://savannah.gnu.org/projects/gnustandards>.
74999
75000 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75003
75004 2006-07-09  Jim Meyering  <jim@meyering.net>
75005
75006         * m4/glob.m4: Remove a doubled word in a comment.
75007
75008 2006-07-09  Jim Meyering  <jim@meyering.net>
75009
75010         * lib/argp-pv.c: Remove a doubled word in a comment.
75011         * lib/check-version.c (check_version): Likewise.
75012         * lib/javacomp.c (compile_java_class): Likewise.
75013
75014 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75015
75016         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75017         for the benefit of people using Autoconf 2.60.  If you want to
75018         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75019         (or m4/onceonly.m4, if pre-2.57) manually.
75020
75021 2006-07-08  Jim Meyering  <jim@meyering.net>
75022
75023         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75024         comment.
75025         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75026         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75027         comment.
75028
75029 2006-07-08  Jim Meyering  <jim@meyering.net>
75030
75031         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75032
75033 2006-07-07  Simon Josefsson  <jas@extundo.com>
75034
75035         * tests/test-crc.c: Change expected crc value, the test vector
75036         were probably computed using the old broken crc.c?
75037
75038 2006-07-06  Simon Josefsson  <jas@extundo.com>
75039
75040         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75041         now the canonical place for the M4 file).
75042
75043         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75044         from the sys_socket dependency now.
75045
75046         * modules/inet_pton (Files): Ditto.
75047
75048         * modules/inet_ntop (Files): Ditto.
75049
75050 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75051
75052         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75053         not gl_PREREQ_GETUSERSHELL.
75054
75055 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75056
75057         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75058         with only one argument, for Autoconf 2.60.
75059         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75060         expand to nothing, so add a shell command to avoid syntax error.
75061         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75062
75063 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75064
75065         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75066
75067 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75070         no longer needed.  Check for isblank decl.
75071         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75072         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75073         of existence.
75074
75075 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75076
75077         * lib/getloadavg.c: Use __VMS, not VMS.
75078         * lib/getopt.c: Likewise.
75079         * lib/getpagesize.h: Likewise.
75080         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75081         and probably does not work.
75082
75083 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * lib/.cppi-disable: Add wcwidth.
75086         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75087         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75088         (ISGRAPH): Remove.  All uses changed to isgraph.
75089         (FOLD) [!defined _LIBC]: Remove special case.
75090         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75091         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75092         HAVE_ISBLANK.
75093         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75094         case.
75095
75096 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75097
75098         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75099         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75100         brackets.  Other minor changes to suppress some compiler
75101         warnings.
75102
75103 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75104         and Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75107         of invoking obsolescent AC_HEADER_DIRENT macro.
75108         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75109         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75110         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75111         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75112         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75113         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75114         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75115         * m4/readdir.m4: Remove; no longer needed.
75116
75117 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75118         and Paul Eggert  <eggert@cs.ucla.edu>
75119
75120         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75121         Don't worry about this obsolete case any more.
75122         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75123         directories.
75124         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75125         worry about this obsolete case any more.
75126         * lib/fts.c: Likewise.
75127         * lib/getcwd.c: Likewise.
75128         * lib/glob.h: Likewise.
75129         * lib/savedir.c: Likewise.
75130
75131 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75132
75133         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75134         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75135         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75136         needed.
75137         All uses removed.
75138         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75139         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75140         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75141         needed.
75142         * m4/getdate.m4 (gl_GETDATE): Likewise.
75143         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75144         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75145         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75146         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75147         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75148         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75149         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75150         needed.
75151
75152 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         * lib/memcasecmp.c: Include <limits.h>.
75155         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75156         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75157         Don't assume isdigit succeeds only on '0' through '9'.
75158
75159 2006-07-05  Eric Blake  <ebb9@byu.net>
75160
75161         * modules/getaddrinfo (Depends-on): Add snprintf.
75162
75163 2006-07-05  Eric Blake  <ebb9@byu.net>
75164
75165         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75166         to avoid 'header present but could not be compiled' on cygwin.
75167
75168 2006-07-05  Eric Blake  <ebb9@byu.net>
75169
75170         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75171         missing from netdb.h.
75172         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75173
75174 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75175
75176         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75177         no longer needed.
75178         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75179         * m4/getdate.m4 (gl_GETDATE): Likewise.
75180         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75181         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75182         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75183         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75184         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75185
75186 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75187
75188         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75189         All uses of is_space replaced by isspace.
75190         * lib/exit.h: Don't talk about STDC_HEADERS.
75191         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75192         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75193         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75194         replaced by isprint etc.
75195         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75196         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75197         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75198         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75199         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75200         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75201
75202 2006-07-05  Bruno Haible  <bruno@clisp.org>
75203
75204         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75205         the function exists, before testing against AIX.
75206         Reported by Martin Lambers <marlam@marlam.de>.
75207
75208 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75211         From Mark D. Baushke.
75212
75213 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75214
75215         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75216         to the absolute name, not just one, to bypass Sun C 5.8's
75217         "warning: #include of /usr/include/... may be non-portable".
75218
75219 2006-07-04  Eric Blake  <ebb9@byu.net>
75220
75221         * modules/dirname-tests: New test module.
75222         * tests/test-dirname.c: New file, replacing dirname.c
75223         TEST_DIRNAME section that was recently deleted.
75224
75225 2006-07-04  Bruno Haible  <bruno@clisp.org>
75226
75227         Assume ANSI C header files and <ctype.h> functions.
75228         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75229         (mbsnwidth): Use isprint, iscntrl instead.
75230
75231 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75232
75233         Merge from coreutils.
75234         * MODULES.html.sh: Add xstrtold.
75235         * modules/xstrtold: New file.
75236         * modules/cycle-check (Files): Add lib/same-inode.h.
75237         * modules/dirname (Files): Add m4/double-slash-root.m4.
75238         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75239         * modules/mkdir-p (Files): Add lib/same-inode.h.
75240         * modules/same (Files): Add lib/same-inode.h.
75241
75242 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75245         This is to keep the terminology clean; POSIX talks about
75246         "absolute pathnames", not "full pathnames", but the GNU
75247         Coding Standards say to use "path" for something else;
75248         so use "absolute" to keep both sides happy.
75249         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75250         Set gl_absolute_header, not gl_full_header_path.
75251         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75252         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75253         All uses changed.
75254
75255         Merge from coreutils.
75256
75257         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75258
75259         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75260         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75261         want to require the building of c-strtod.o.
75262         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75263         needs -lm directly.
75264         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75265
75266         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75267
75268         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75269         --as-needed option if available.  Problem reported by Albert Chin in
75270         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75271         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75272         cc merely issues a bunch of annoying warnings for --as-needed
75273         (this problem was reported by Bob Proulx).  Also, try linking with
75274         -lm to detect a bug in binutils 2.16 (this problem was reported
75275         by Ralf Wildenhues).
75276
75277         2006-06-18  Jim Meyering  <jim@meyering.net>
75278
75279         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75280         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75281         macro.
75282         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75283         also check for glibc-2.4's abort-inducing bug.
75284
75285         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75286         Low-probability clean-up should be to use rmdir to get rid of
75287         the just-created directory, not unlink.
75288
75289         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75290         configure fail, and request a bug report to inform us about it.
75291         Add a comment that, barring reports to the contrary, in 2007 we'll
75292         assume ftruncate is universally available.
75293
75294         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75295
75296         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75297
75298         2006-03-12  Jim Meyering  <jim@meyering.net>
75299
75300         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75301         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75302         * m4/same.m4 (gl_SAME): Likewise.
75303         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75304
75305         2006-03-11  Eric Blake  <ebb9@byu.net>
75306
75307         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75308         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75309         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75310         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75311
75312 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75313
75314         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75315         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75316         reported by Mark D. Baushke, one in
75317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75318
75319         Merge from coreutils.
75320
75321         * lib/.cppi-disable: Add stdint_.h.
75322         * lib/.cvsignore: Add stdint.h.
75323
75324         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75325
75326         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75327         both double and long double versions.
75328         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75329         * lib/xstrtold.c: New file.
75330         * lib/xstrtod.h (xstrtold): New decl.
75331
75332         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75333
75334         * lib/filemode.c (setst): Remove.
75335         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75336         (arguably) clearer, and the generated code is a bit smaller on my
75337         Debian GNU/Linux stable x86 host.
75338
75339         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75340
75341         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75342         Assume that filemode.h includes sys/types.h and sys/stat.h.
75343         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75344         (ftypelet): Reorder to put common cases first, for efficiency.
75345         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75346         to do 'M'.
75347         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75348         of 10, for compatibility with FreeBSD.  All callers changed.
75349         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75350         types that can't be deduced solely from st_mode.  First arg is now a
75351         const pointer.
75352         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75353         (strmode): Renamed from mode_string.
75354         (filemodestring): New decl.
75355         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75356         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75357         needed.
75358         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75359
75360         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75363         fsusage.h now does that.  Include fsusage.h first, to test interface.
75364         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75365         at most one method (the old code could have generated decls that
75366         didn't conform to C89, not that this was ever exercised).
75367         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75368
75369         2006-03-19  Jim Meyering  <jim@meyering.net>
75370
75371         Work even in a chroot where d_ino values for entries in "/"
75372         don't match the stat.st_ino values for the same names.
75373         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75374         number, iterate through all entries again, using lstat instead.
75375         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75376         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75377
75378         * lib/getcwd.c (__getcwd): Clarify a comment.
75379         Use memcpy in place of a call to strcpy.
75380
75381         2006-03-12  Jim Meyering  <jim@meyering.net>
75382
75383         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75384         matches that of the current directory (which we're about to chdir ".."
75385         out of), then save the dev-ino of the parent, instead.
75386
75387         * lib/same-inode.h (SAME_INODE): New file/macro.
75388         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75389         Include "same-inode.h", instead.
75390         * lib/same.c: Likewise.
75391         * lib/cycle-check.h: Include "same-inode.h".
75392         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75393         * lib/cycle-check.c (SAME_INODE): Remove definition.
75394         * lib/root-dev-ino.h: Include "same-inode.h".
75395
75396         2006-03-11  Eric Blake  <ebb9@byu.net>
75397
75398         * lib/same.c (same_name): s/base_name/last_component/
75399         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75400         * lib/filenamecat.c (file_name_concat): Likewise.
75401
75402         2006-03-11  Eric Blake  <ebb9@byu.net>,
75403                     Paul Eggert  <eggert@cs.ucla.edu>
75404
75405         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75406         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75407         drive prefix.
75408         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75409         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75410         (last_component): New method.
75411         * lib/dirname.c (dir_len): Determine when drive letters need a
75412         subsequent slash.  Preserve // when it is special.
75413         (dir_name): Don't append dot when drive letter is absolute.
75414         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75415         * lib/basename.c (base_name): New semantics - malloc the result.
75416         Preserve // when it is special.  Preserve relative files that look
75417         like drive letters.
75418         (base_len): Preserve // when it is special.
75419         (last_component): New method, similar to old base_name semantics.
75420         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75421         base_name.  Strip redundant slashes from ///.
75422
75423 2006-07-03  Jim Meyering  <jim@meyering.net>
75424
75425         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75426         macro is used before the first cycle_check call.
75427
75428 2006-07-03  Eric Blake  <ebb9@byu.net>
75429
75430         * modules/dirname (Depends-on): Add xstrndup.
75431
75432 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75435         test cases, so that config.log is a bit easier to follow.
75436
75437 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75440         both are 64 bits, since this seems to be the tradition, and this
75441         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75442         we ever run into a host that prefers long long to long in this
75443         case, we'll need another configure-time test.  Problem reported by
75444         Jim Meyering.
75445
75446 2006-07-02  Eric Blake  <ebb9@byu.net>
75447
75448         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75449
75450 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * modules/inttypes (Depends-on): No longer depends on stdint.
75453         * modules/stdint (Description): Say more about assumptions.
75454         Say that the fast types might differ.  Say macros are used.
75455         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75456         (Makefile.am): Revise list of substituted symbols to match
75457         new stdint.m4.
75458         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75459         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75460         * tests/test-stdint.c (verify_same_types)
75461         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75462         the code conforms to C99/C89.
75463         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75464         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75465
75466 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75467
75468         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75469         but fix a bug, by requiring at least 64 bits.
75470         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75471         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75472         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75473         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75474
75475         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75476         changes.  Make 2.59 a prerequisite.  Check and substitute for
75477         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75478         inttypes.h.  Do not use special include files; just use the
75479         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75480         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75481         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75482         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75483         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75484         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75485         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75486         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75487         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75488         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75489         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75490         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75491         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75492         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75493         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75494         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75495         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75496         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75497         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75498         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75499         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75500         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75501         not check for things that C99 does not require, e.g., int8_t.  If
75502         a test isn't needed unless <stdint.h> isn't working, and is
75503         unlikely to be needed for any other reason, then don't do it
75504         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75505         size_t, since we assume C89 freestanding at least.  Do not check
75506         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75507         the right thing even if the types are not defined.  Instead use:
75508         (gl_STDINT_TYPE_PROPERTIES): New macro.
75509         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75510         testing whether <sys/types.h> clashes, as Autoconf does this for
75511         us now.  All uses removed.
75512         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75513         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75514         (gl_CHECK_TYPE_SAME):
75515         Remove; no longer needed.
75516         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75517         exists, since we'll return 0 anyway in that case.
75518         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75519
75520 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75521
75522         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75523         possible collision with system files.
75524         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75525         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75526         WCHAR_MIN and WCHAR_MAX in this case.
75527         (<stddef.h>): Do not include; no longer needed.
75528         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75529         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75530         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75531         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75532         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75533         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75534         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75535         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75536         !defined(__c99))]: Include in this case too, since it's harmless
75537         now.
75538         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75539         dangerous to do so.
75540         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75541         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75542         (_STDINT_MIN, _STDINT_MAX): New macros.
75543         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75544         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75545         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75546         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75547         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75548         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75549         macros, not typedefs; this simplifies things quite a bit.
75550         Use long int for all types narrower than int64_t.
75551         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75552         Define in terms of long long int or int64_t or long int,
75553         not int64_t or int32_t.  This saves some compile-time testing.
75554         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75555         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75556         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75557         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75558         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75559         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75560         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75561         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75562         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75563         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75564         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75565         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75566         undef any previous version and define our own version, for
75567         simplicity and consistency with the new macros for types.
75568         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75569         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75570         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75571         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75572         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75573         @WINT_T_SUFFIX@ to keep things simple here.
75574         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75575         Simplify by assuming typical 8/16/32/64 host, since we're
75576         already doing that elsewhere anyway.
75577         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75578         and assume long long int is 64 bits if available.  This
75579         speeds up 'configure'.
75580
75581 2006-07-01  Eric Blake  <ebb9@byu.net>
75582
75583         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75584         Reported by Andreas Buening.
75585
75586 2006-07-01  Eric Blake  <ebb9@byu.net>
75587
75588         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75589
75590 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75591
75592         * lib/getaddrinfo.c: fixed typo
75593
75594 2006-06-29  Jim Meyering  <jim@meyering.net>
75595
75596         * modules/strftime (Maintainer): Add my name, since with the
75597         FPRINTFTIME changes strftime.c has forked from glibc.
75598
75599 2006-06-29  Eric Blake  <ebb9@byu.net>
75600
75601         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
75602
75603 2006-06-29  Eric Blake  <ebb9@byu.net>
75604
75605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
75606
75607 2006-06-29  Eric Blake  <ebb9@byu.net>
75608
75609         * lib/stat_.h: New file.
75610
75611 2006-06-29  Eric Blake  <ebb9@byu.net>
75612
75613         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
75614         unused static function.
75615
75616 2006-06-29  Eric Blake  <ebb9@byu.net>
75617
75618         * doc/functions.texi (Function Portability): Document missing lstat
75619         on mingw.
75620
75621 2006-06-29  Eric Blake  <ebb9@byu.net>
75622
75623         * MODULES.html.sh: Add sys_stat.
75624         * modules/sys_stat: New module.
75625         * modules/mkstemp (Depends-on): Add sys_stat.
75626
75627 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75628
75629         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
75630
75631 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75632
75633         * m4/c-bs-a.m4: Removed.
75634
75635 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75636
75637         * lib/strftime.c: Assume strftime() exists.
75638
75639 2006-06-29  Derek Price  <derek@ximbiot.com>
75640
75641         * modules/c-bs-a: Removed - \a is C89.
75642         * MODULES.html.sh: Remove c-bs-a.
75643
75644 2006-06-29  Bruno Haible  <bruno@clisp.org>
75645
75646         * modules/wcwidth (License): Change to LGPL.
75647
75648 2006-06-28  Simon Josefsson  <jas@extundo.com>
75649
75650         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
75651         on _WIN32.
75652
75653         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
75654         getnameinfo.
75655
75656 2006-06-28  Simon Josefsson  <jas@extundo.com>
75657
75658         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
75659
75660 2006-06-28  Simon Josefsson  <jas@extundo.com>
75661
75662         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
75663         functions there.  It will succeed on Windows XP, but on Windows
75664         2000 and (presumably) earlier, it will fail, and use the internal
75665         re-implementation.
75666         (use_win32_p): New function.
75667         (getaddrinfo): Use strtoul on servname, to support numeric ports.
75668         Support AI_NUMERICSERV to disable getservbyname.
75669         (getnameinfo): New function, only supports
75670         NI_NUMERICHOST|NI_NUMERICSERV for now.
75671
75672         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
75673         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
75674         getnameinfo.
75675
75676 2006-06-28  Eric Blake  <ebb9@byu.net>
75677
75678         * modules/wcwidth: New file.
75679         * modules/mbchar (Depends-on): Add wcwidth.
75680         * modules/mbswidth (Depends-on): Add wcwidth.
75681         * MODULES.html.sh: Add wcwidth.
75682
75683 2006-06-28  Eric Blake  <ebb9@byu.net>
75684
75685         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
75686         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
75687
75688 2006-06-28  Eric Blake  <ebb9@byu.net>
75689
75690         * lib/xvasprintf.h: Fix comments.
75691
75692 2006-06-28  Eric Blake  <ebb9@byu.net>
75693
75694         * lib/mbchar.h (wcwidth): Include wcwidth.h.
75695         * lib/mbswidth.c (wcwidth): Move from here...
75696         * lib/wcwidth.h: ...to this new file.
75697
75698 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75699
75700         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
75701
75702         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
75703         it's obsolete.
75704         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
75705
75706 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75707
75708         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
75709         Autoconf 2.60 says this stuff was obsolete.
75710
75711 2006-06-28  Bruno Haible  <bruno@clisp.org>
75712
75713         * modules/wcwidth (Files): Add m4/wchar_t.m4.
75714
75715 2006-06-28  Bruno Haible  <bruno@clisp.org>
75716
75717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
75718         gt_TYPE_WCHAR_T.
75719
75720 2006-06-28  Bruno Haible  <bruno@clisp.org>
75721
75722         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
75723         declaration for wcwidth.
75724         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
75725
75726 2006-06-28  Bruno Haible  <bruno@clisp.org>
75727
75728         * lib/mkdtemp.c [MINGW]: Include <io.h>.
75729         (mkdir): Define using _mkdir.
75730
75731 2006-06-28  Bruno Haible  <bruno@clisp.org>
75732
75733         * lib/getaddrinfo.h: Fix POSIX URL.
75734         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
75735         _WIN32.
75736         (use_win32_p): Make static.
75737         (getaddrinfo): Reject service name if it is empty or does not consist
75738         solely of decimal digits, or if its value is > 65535.
75739         (getnameinfo): Remove useless casts.
75740
75741 2006-06-27  Simon Josefsson  <jas@extundo.com>
75742
75743         * modules/sys_select: New file, suggested by Bruno Haible, Paul
75744         Eggert and Martin Lambers.
75745
75746 2006-06-27  Simon Josefsson  <jas@extundo.com>
75747
75748         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
75749         Eggert and Martin Lambers.
75750
75751 2006-06-27  Bruno Haible  <bruno@clisp.org>
75752
75753         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
75754         result to 0, not to empty.
75755         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
75756
75757 2006-06-27  Bruno Haible  <bruno@clisp.org>
75758
75759         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
75760
75761 2006-06-26  Simon Josefsson  <jas@extundo.com>
75762
75763         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
75764         present.
75765
75766 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
75769         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
75770         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
75771
75772 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
75773
75774         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
75775
75776 2006-06-26  Bruno Haible  <bruno@clisp.org>
75777
75778         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
75779
75780 2006-06-26  Bruno Haible  <bruno@clisp.org>
75781
75782         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
75783
75784 2006-06-26  Bruno Haible  <bruno@clisp.org>
75785
75786         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
75787         SGI C compiler in pre-C99 mode.
75788         Suggested by Mark D. Baushke and Larry Jones.
75789
75790 2006-06-26  Bruno Haible  <bruno@clisp.org>
75791
75792         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
75793         WCHAR_MAX.
75794         Reported by Mark D. Baushke and Larry Jones.
75795
75796 2006-06-26  Bruno Haible  <bruno@clisp.org>
75797
75798         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
75799         in pre-C99 mode.
75800         Suggested by Mark D. Baushke and Larry Jones.
75801
75802 2006-06-23  Simon Josefsson  <jas@extundo.com>
75803             Bruno Haible  <bruno@clisp.org>
75804
75805         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
75806         Emit mostlyclean-local rule.
75807         (func_emit_tests_Makefile_am): Likewise.
75808         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
75809
75810 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
75811
75812         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
75813
75814 2006-06-23  Bruno Haible  <bruno@clisp.org>
75815
75816         * tests/test-stdint.c: Update to match ISO C 99 Technical
75817         Corrigendum 1.
75818
75819 2006-06-23  Bruno Haible  <bruno@clisp.org>
75820
75821         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
75822
75823 2006-06-23  Bruno Haible  <bruno@clisp.org>
75824
75825         * lib/stdint_.h: Treat IRIX like OpenBSD.
75826
75827 2006-06-23  Bruno Haible  <bruno@clisp.org>
75828
75829         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
75830         ISO C 99 Technical Corrigendum 1.
75831
75832 2006-06-22  Simon Josefsson  <jas@extundo.com>
75833
75834         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
75835         MinGW.
75836
75837 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
75840         needed.  Some compiler complained about some of them.  Problem reported
75841         by Larry Jones in
75842         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
75843
75844 2006-06-21  Simon Josefsson  <jas@extundo.com>
75845
75846         * tests/test-getaddrinfo.c: New file.
75847
75848         * modules/getaddrinfo-tests: New file.
75849
75850         * MODULES.html.sh: Add inet_pton.
75851
75852         * modules/inet_pton: New file.
75853
75854 2006-06-21  Simon Josefsson  <jas@extundo.com>
75855
75856         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
75857         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
75858         of using the (limited) gnulib implementation on Windows XP.
75859
75860         * m4/inet_pton.m4: New file.
75861
75862 2006-06-21  Simon Josefsson  <jas@extundo.com>
75863
75864         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
75865         variable.
75866
75867         * lib/socket_.h: Don't define WINVER.
75868
75869         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
75870         slightly modified to work in gnulib.
75871
75872 2006-06-21  Simon Josefsson  <jas@extundo.com>
75873
75874         * doc/gnulib.texi (Windows sockets): Add.
75875
75876 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
75877
75878         * lib/read-file.c (fread_file): Start with buffer allocation of
75879         0 bytes rather than 1 byte; this simplifies the code.
75880         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
75881         code to free buffer and save/restore errno.
75882         (internal_read_file): Remove unused local.
75883
75884 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
75887         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
75888         Problem reported by Denis Excoffier in
75889         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
75890
75891 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75892
75893         * modules/sys_socket, modules/socklen: Include sys/types since
75894         FreeBSD 4.x's sys/socket.h needs it.
75895
75896 2006-06-19  Simon Josefsson  <jas@extundo.com>
75897
75898         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
75899
75900 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75901
75902         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
75903
75904 2006-06-19  Bruno Haible  <bruno@clisp.org>
75905
75906         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
75907         and FULL_PATH_INTTYPES_H in angle brackets.
75908         Reported by Mark D. Baushke <mdb@gnu.org>.
75909
75910 2006-06-17  Eric Blake  <ebb9@byu.net>
75911
75912         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
75913         errno.
75914
75915 2006-06-17  Bruno Haible  <bruno@clisp.org>
75916
75917         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
75918         <sys/inttypes.h>.
75919
75920 2006-06-17  Bruno Haible  <bruno@clisp.org>
75921
75922         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
75923         whether errno is declared. Assume <errno.h> declares errno.
75924
75925 2006-06-17  Bruno Haible  <bruno@clisp.org>
75926
75927         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
75928
75929 2006-06-17  Bruno Haible  <bruno@clisp.org>
75930
75931         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
75932         problem on Solaris 2.5.1.
75933
75934 2006-06-16  Eric Blake  <ebb9@byu.net>
75935
75936         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
75937         * lib/unicodeio.c [!defined errno]: Likewise.
75938         * lib/strtol.c [!defined errno]: Likewise.
75939         * lib/strtod.c [!defined errno]: Likewise.
75940
75941 2006-06-15  Eric Blake  <ebb9@byu.net>
75942
75943         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
75944
75945 2006-06-15  Eric Blake  <ebb9@byu.net>
75946
75947         * config/srclist.txt (ssize_t.m4): Lose sync.
75948
75949 2006-06-15  Bruno Haible  <bruno@clisp.org>
75950
75951         * modules/stdint (Files): Include m4/full-header-path.m4,
75952         m4/size_max.m4, m4/wchar_t.m4.
75953         (Makefile.am): Many more substitutions.
75954         * modules/stdint-tests: New file.
75955         * tests/test-stdint.c: New file.
75956
75957 2006-06-15  Bruno Haible  <bruno@clisp.org>
75958
75959         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75960         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75961         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75962         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75963         gl_CHECK_TYPE_SAME): New macros.
75964
75965 2006-06-15  Bruno Haible  <bruno@clisp.org>
75966
75967         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75968
75969 2006-06-15  Bruno Haible  <bruno@clisp.org>
75970
75971         * lib/stdint_.h: Rewritten to be fully auto-configured.
75972         Fixes bug on HP-UX/IA64.
75973
75974 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * lib/getdate.y (__attribute__): Don't define if already defined.
75977         Problem reported by Larry Jones.
75978         * lib/utimens.c (__attribute__): Likewise.
75979
75980 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75983         reported by Andreas Schwab.
75984
75985 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75986             Bruno Haible  <bruno@clisp.org>
75987
75988         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75989         check for the declaration of strnlen and a run test that exposes the
75990         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75991         rpl_strndup.
75992
75993 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75994             Bruno Haible  <bruno@clisp.org>
75995
75996         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75997
75998 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75999
76000         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76001         compile test, for Tru64 4.0D.
76002
76003 2006-05-28  Karl Berry  <karl@gnu.org>
76004
76005         * config/srclist.txt (printf-args.c): lose sync.
76006
76007 2006-05-26  Martin Lambers  <marlam@marlam.de>
76008
76009         * lib/getpass.c: Updates the test for the native W32 API, and adds
76010         missing includes, thus fixing compilation warnings.
76011
76012 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76013
76014         * lib/exclude.c (exclude_fnmatch): New function.
76015         (excluded_file_name): Call exclude_fnmatch.
76016         * lib/exclude.h (excluded_file_name): New prototype
76017
76018 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * lib/tempname.c (small_open, large_open): New macros.
76021         (__open, __open64) [!_LIBC]: Remove.
76022         (__gen_tempname): Use small_open and large_open instead of __open
76023         and __open64.  This fixes a portability bug on HP-UX 11.11i
76024         reported by Simon Wing-Tang in
76025         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76026
76027 2006-05-24  Bruno Haible  <bruno@clisp.org>
76028
76029         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76030         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76031         Reported by Thorsten Maerz <torte@netztorte.de> via
76032         Aaron Stone <aaron@serendipity.cx>.
76033
76034 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76035
76036         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76037         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76038         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76039         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76040         not really conditional on the cache.
76041         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76042
76043 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76044
76045         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76046         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76047         (my_usleep): Don't mishandle maximum value.
76048
76049 2006-05-19  Jim Meyering  <jim@meyering.net>
76050
76051         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76052
76053 2006-05-17  Bruno Haible  <bruno@clisp.org>
76054
76055         Cygwin portability.
76056         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76057
76058 2006-05-17  Bruno Haible  <bruno@clisp.org>
76059
76060         * lib/stdint_.h: Fix recognition of Cygwin.
76061
76062 2006-05-15  Bruno Haible  <bruno@clisp.org>
76063
76064         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76065         on libtool patch by Ralf Wildenhues.
76066
76067 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76070         test for C99 conformance; (bool) 0.5 is an integer constant
76071         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76072         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76073
76074 2006-05-11  Simon Josefsson  <jas@extundo.com>
76075
76076         * m4/xvasprintf.m4: Fix obvious typo.
76077
76078 2006-05-11  Jim Meyering  <jim@meyering.net>
76079
76080         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76081         James Lemley.
76082
76083 2006-05-10  Simon Josefsson  <jas@extundo.com>
76084
76085         * lib/md4.c: Typo fix, update copyright years.
76086         (K1, K2): Don't use L because it turn computations into 64-bit on
76087         64-bit platforms.
76088
76089 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76090
76091         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76092         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76093         unwanted sign propagation, e.g., on hosts with 64-bit int.
76094         There still are some problems with reeelly weird theoretical hosts
76095         (e.g., 33-bit int) but it's not worth worrying about now.
76096         * lib/sha1.c (rol): Likewise.
76097         (K1, K2, K3, K4): Remove unnecessary L suffix.
76098
76099 2006-05-10  Bruno Haible  <bruno@clisp.org>
76100
76101         * lib/des.c: Cast to avoid warnings.
76102
76103 2006-05-09  Bruno Haible  <bruno@clisp.org>
76104
76105         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76106         (Depends-on): Depend also on xsize, stdarg.
76107         (configure.ac): Add gl_XVASPRINTF.
76108
76109 2006-05-09  Bruno Haible  <bruno@clisp.org>
76110
76111         * m4/xvasprintf.m4: New file.
76112
76113 2006-05-09  Bruno Haible  <bruno@clisp.org>
76114
76115         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76116         (EOVERFLOW): Define fallback value.
76117         (xstrcat): New function.
76118         (xvasprintf): Recognize the special case of a string concatenation.
76119
76120 2006-05-08  Eric Blake  <ebb9@byu.net>
76121
76122         * gnulib-tool (func_version): Base copyright year on CVS date.
76123         (func_emit_copyright_notice): New function.
76124         (func_emit_lib_Makefile_am): Use it.
76125         (func_emit_tests_Makefile_am): Likewise.
76126         (func_import): Likewise.
76127
76128 2006-05-08  Bruno Haible  <bruno@clisp.org>
76129
76130         * modules/stdarg: New file.
76131         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76132
76133 2006-05-08  Bruno Haible  <bruno@clisp.org>
76134
76135         * m4/stdarg.m4: New file, from GNU gettext.
76136
76137 2006-05-08  Bruno Haible  <bruno@clisp.org>
76138
76139         * config/srclist.txt (build-aux/config.rpath): different from latest
76140         release.
76141
76142 2006-05-08  Bruno Haible  <bruno@clisp.org>
76143
76144         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76145
76146 2006-05-05  Jim Meyering  <jim@meyering.net>
76147
76148         * m4/warning.m4: New file, derived from bison's file by the same name.
76149
76150 2006-05-03  Bruno Haible  <bruno@clisp.org>
76151
76152         * lib/stdint_.h: Shorter URL.
76153         * lib/inttypes.h: Likewise.
76154
76155 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76156
76157         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76158
76159 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76160
76161         * lib/verify.h: Document the internals better.  Most of this change
76162         was written by Bruno Haible.
76163
76164 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76165
76166         * doc/verify.texi: New file, partly based on a proposal by
76167         Bruno Haible.
76168
76169 2006-05-02  Bruno Haible  <bruno@clisp.org>
76170
76171         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76172         test from here...
76173         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76174
76175 2006-04-29  Bruno Haible  <bruno@clisp.org>
76176
76177         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76178         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76179
76180 2006-04-29  Bruno Haible  <bruno@clisp.org>
76181
76182         * gnulib-tool: Make --update option actually work.
76183
76184 2006-04-29  Bruno Haible  <bruno@clisp.org>
76185
76186         * doc/gcd.texi: New file.
76187         * doc/gnulib.texi: Include it.
76188
76189 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         * lib/getdate.y (get_date): When adding relative date, start with the
76192         initial time, not with the result of the first mktime call.
76193
76194 2006-04-25  Bruno Haible  <bruno@clisp.org>
76195
76196         * gnulib-tool (func_import): Output the include directives in three
76197         blocks, sorted separately.
76198         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76199
76200 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76201
76202         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76203         to define main with arguments, for C++.  Reported by Eric Blake.
76204         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76205         Prefer 'int main ()' to 'int main (void)', for C++.
76206         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76207         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76208         for 'main', for C99 and C++.
76209
76210 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76211
76212         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76213         Don't assume that exit status -1 is valid.
76214         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76215         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76216         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76217         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76218         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76219         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76220         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76221         functions can be used without declaring them, or that you can
76222         exit with status -1.
76223         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76224
76225 2006-04-24  Karl Berry  <karl@gnu.org>
76226
76227         * config/srclist.txt (longdouble.m4): sync lost.
76228
76229 2006-04-24  Eric Blake  <ebb9@byu.net>
76230
76231         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76232
76233 2006-04-24  Bruno Haible  <bruno@clisp.org>
76234
76235         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76236         poll() implementation in AIX.
76237         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76238
76239 2006-04-24  Bruno Haible  <bruno@clisp.org>
76240
76241         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76242         assigned exactly once.
76243
76244 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76245             Bruno Haible  <bruno@clisp.org>
76246
76247         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76248         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76249         for AM_CPPFLAGS.
76250
76251 2006-04-23  Bruno Haible  <bruno@clisp.org>
76252
76253         * modules/copy-file: Depend on unistd.
76254         * modules/execute: Likewise.
76255         * modules/fatal-signal: Likewise.
76256         * modules/findprog: Likewise.
76257         * modules/mkdtemp : Likewise.
76258         * modules/pipe: Likewise.
76259         * modules/wait-process: Likewise.
76260
76261 2006-04-23  Bruno Haible  <bruno@clisp.org>
76262
76263         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76264         condition was already detected.
76265         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76266
76267 2006-04-23  Bruno Haible  <bruno@clisp.org>
76268
76269         * lib/copy-file.c: Include <unistd.h> unconditionally.
76270         * lib/execute.c: Likewise.
76271         * lib/fatal-signal.c: Likewise.
76272         * lib/findprog.c: Likewise.
76273         * lib/mkdtemp.c: Likewise.
76274         * lib/pipe.h: Likewise.
76275         * lib/pipe.c: Likewise.
76276         * lib/wait-process.h: Likewise.
76277
76278 2006-04-23  Bruno Haible  <bruno@clisp.org>
76279
76280         * gnulib-tool (func_usage): Fix --import description. Document
76281         --update.
76282         (func_import): Create temporary file in a temporary directory, if
76283         --dry-run is specified. Silence errors from 'grep' when there are no
76284         m4 files in $m4dir.
76285         (func_create_testdir): Silence errors from 'grep' when there are no
76286         m4 files in $m4dir.
76287         Reported by Karl Berry <karl@freefriends.org>.
76288
76289 2006-04-20  Bruno Haible  <bruno@clisp.org>
76290
76291         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76292         one argument, so that the code will be portable to Autoconf 2.60.
76293         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76294         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76295         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76296
76297 2006-04-19  Derek Price  <derek@ximbiot.com>
76298             Eric Blake  <ebb9@byu.net>
76299
76300         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76301         rather than "/full/path.h".  Update comment to match.  Shorten &
76302         generalize m4_translit call via AS_TR_CPP.
76303
76304 2006-04-19  Derek Price  <derek@ximbiot.com>
76305             Eric Blake  <ebb9@byu.net>
76306
76307         * lib/inttypes.h: Correct grammar in comment.
76308
76309 2006-04-18  Derek Price  <derek@ximbiot.com>
76310             Paul Eggert  <eggert@cs.ucla.edu>
76311
76312         * modules/inttypes: New file.
76313         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76314
76315 2006-04-18  Derek Price  <derek@ximbiot.com>
76316             Paul Eggert  <eggert@cs.ucla.edu>
76317
76318         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76319         New files.
76320
76321 2006-04-18  Derek Price  <derek@ximbiot.com>
76322             Paul Eggert  <eggert@cs.ucla.edu>
76323
76324         * lib/inttypes.h: New file.
76325         * lib/strtoimax.c: Assume <inttypes.h>.
76326
76327 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76328
76329         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76330         isn't mounted.  Problem reported by Kir Kolyshkin.
76331
76332 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76335         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76336         Derek R. Price.
76337         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76338         implementation.
76339
76340 2006-04-12  Eric Blake  <ebb9@byu.net>
76341
76342         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76343         is now done automatically by the corresponding Autoconf macro.
76344
76345 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76346
76347         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76348         time_r.h.
76349
76350 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76351
76352         Merge regex changes from libc, removing some of our
76353         POSIX-conformance changes that were rejected and redoing them in a
76354         less-intrusive way.
76355
76356         * lib/regcomp.c (re_compile_internal, init_dfa):
76357         Length arg is now size_t, not Idx.  All uses changed.
76358         (peek_token): Forward decl now says internal_function.
76359         (__re_error_msgid, __re_error_msgid_idx):
76360         Now static rather than extern with attribute_hidden.
76361         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76362         For some reason libc prefers K&R style defns for external functions.
76363         (regerror) [!defined _LIBC]: Likewise.
76364         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76365         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76366         (build_range_exp, build_collating_symbol):
76367         Use K&R-style defn.
76368         (re_compile_fastmap): Use '\0' to memset, not 0.
76369         (utf8_sb_map): Make the calculations more obvious.
76370         (init_dfa, parse_bracket_exp, build_charclass_op):
76371         Call calloc and cast result, as glibc does.
76372         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76373         (build_range_exp, build_collating_symbol):
76374         Now internal functions.
76375
76376         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76377
76378         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76379         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76380         Don't depend on VMS; depend on __VMS instead, for POSIX
76381         namespace cleanness.
76382         (regoff_t): Define to ssize_t, not long int.
76383
76384         Remove the REG_ macros named below.  Instead, make the old names
76385         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76386         __USE_GNU_REGEX.
76387         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76388         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76389         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76390         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76391         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76392         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76393         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76394         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76395         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76396         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76397         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76398         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76399         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76400         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76401         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76402         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76403         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76404         (REG_NREGS):
76405         Remove.  All uses replaced by the old RE_* names.
76406         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76407         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76408         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76409         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76410         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76411         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76412         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76413         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76414         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76415         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76416         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76417         Don't bother having these macros be independent of each others'
76418         values, since they no longer exist in the POSIX name space.
76419
76420         Rename the following member names back to their old names,
76421         unless !__USE_GNU_REGEX.  All uses changed back.
76422         (buffer): Renamed from re_buffer.
76423         (allocated): Renamed from re_allocated.
76424         (used): Renamed from re_used.
76425         (syntax): Renamed from re_syntax.
76426         (fastmap): Renamed from re_fastmap.
76427         (translate): Renamed from re_translate.
76428         (can_be_null): Renamed from re_can_be_null.
76429         (regs_allocated): Renamed from re_regs_allocated.
76430         (fastmap_accurate): Renamed from re_fastmap_accurate.
76431         (no_sub): Renamed from re_no_sub.
76432         (not_bol): Renamed from re_not_bol.
76433         (not_eol): Renamed from re_not_eol.
76434         (newline_anchor): Renamed from re_newline_anchor.
76435         (num_regs): Renamed from rm_num_regs.
76436         (start): Renamed from rm_start.
76437         (end): Renamed from rm_end.
76438
76439         (free_state): Move up a bit.
76440
76441         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76442         #define to be empty.
76443         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76444         when that is what is intended.
76445         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76446         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76447         (MAX): New macro.
76448         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76449         All uses changed back to re_malloc, etc.  It's now the caller's
76450         responsibility to check for overflow; all callers changed.
76451         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76452         (re_x2nrealloc): Remove.
76453         (free_state): Remove decl.
76454
76455         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76456         (re_set_registers, re_exec):
76457         Use K&R-style defn.
76458
76459         2006-01-31  Roland McGrath  <roland@redhat.com>
76460
76461         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76462         Reported by Mike Frysinger <vapier@gentoo.org>.
76463
76464         2006-01-15  Andreas Jaeger  <aj@suse.de>
76465
76466         [BZ #1950]
76467         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76468         build_wcs_upper_buffer change.
76469         (build_wcs_upper_buffer): Change return type.
76470
76471         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76472
76473         * lib/regex_internal.h: Include <stdint.h> if available.
76474
76475         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76476
76477         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76478
76479         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76480
76481         * lib/regcomp.c: Adjust for changed secondary hash function.
76482
76483         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76484
76485         * lib/regex.h: Pretty printing.
76486         Clean up namespace a bit.
76487
76488         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76489
76490         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76491         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76492
76493         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76494                     Ulrich Drepper  <drepper@redhat.com>
76495
76496         [BZ #1302]
76497         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76498         changed.
76499         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76500
76501         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76502
76503         [BZ #281]
76504         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76505         * lib/regcomp.c: Remove unnecessary uses of
76506         unsigned RE_TRANSLATE_TYPE.
76507         * lib/regex_internal.h: Likewise.
76508         * lib/regex_internal.c: Likewise.
76509         * lib/regexec.c: Likewise.
76510         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76511
76512         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76513
76514         * lib/regexec.c (find_recover_state): Remove unnecessary
76515         initialization.
76516         (transit_state_bkref): Make DFA a const pointer.
76517         (get_subexp): Likewise.
76518         (check_arrival): Likewise.
76519         (update_cur_sifted_state): Likewise.
76520         (re_search_internal): Likewise.
76521         (prune_impossible_nodes): Likewise.
76522         (acquire_init_state_context): Likewise.
76523         (proceed_next_node): Likewise.
76524         (set_regs): Likewise.
76525         (free_fail_stack_return): Likewise.
76526         (check_arrival_expand_ecl): Mark DFA parameter as const.
76527         (check_arrival_expand_ecl_sub): Likewise.
76528         (check_subexp_limits): Likewise.
76529         (sub_epsilon_src_nodes):  Likewise.
76530         (add_epsilon_src_nodes):  Likewise.
76531         (merge_state_array): Likewise.
76532         (update_regs): Likewise.
76533         (build_trtable): Likewise.
76534         (sift_states_backward): Mark MCTX parameter as const.
76535         (build_sifted_states): Likewise.
76536         (update_cur_sifted_state): Likewise.
76537         (sift_states_mkref): Likewise.
76538         (check_arrival_expand_ecl): Mark eclosure as const.
76539         (check_dst_limits_calc_pos_1): Likewise.
76540         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76541         pointer.
76542
76543         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76544
76545         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76546         (transit_state_sb): Likewise.
76547         (transit_state_mb): Likewise.
76548         (sift_states_iter_mb): Likewise.
76549         (check_arrival_add_next_nodes): Likewise.
76550         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76551         [_LIBC] (re_search_2_stub): Use mempcpy.
76552
76553         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76554         mbrtowc for very simple UTF-8 case.
76555
76556         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76557         a pointer-to-const.
76558         (re_acquire_state_context): Likewise.
76559         * lib/regex_internal.h: Adjust prototypes.
76560
76561         * lib/regex.c: Prevent using C++ compilers.
76562
76563         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76564         (re_acquire_state_context): Likewise.
76565
76566 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76567
76568         * modules/regex (Depends-on): Add ssize_t.
76569
76570 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76571
76572         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76573         translation table.
76574
76575 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76576
76577         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76578
76579 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76580             Bruno Haible  <bruno@clisp.org>
76581
76582         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76583         <sys/types.h> and <inttypes.h>.
76584
76585 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76586
76587         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76588         `__error_t_defined', so argp.h will not typedef the former.
76589
76590 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76593         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76594         glibc names.  Even if glibc is changed to conform to POSIX, the
76595         traditional names will be available anyway, since regex depends on
76596         the extensions module.  Also, fix a longstanding typo in the
76597         implementation of Spencer ERE test #75 from grep 2.3.  Problems
76598         reported by Emanuele Giaquinta.  Also, change sense of cached
76599         variable, so that the message makes sense.
76600
76601 2006-03-24  Simon Josefsson  <jas@extundo.com>
76602
76603         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
76604         including some doc fixes.
76605         (base64_encode_alloc): Fix +1 bug on allocation failures.
76606
76607 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76608
76609         * lib/base64.c (base64_encode): Do not read past end of array with
76610         unsanitized input on systems with CHAR_BIT > 8.
76611
76612 2006-03-24  Eric Blake  <ebb9@byu.net>
76613
76614         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
76615
76616 2006-03-22  Karl Berry  <karl@gnu.org>
76617
76618         * config/srclist.txt (*setenv.[ch]): get from coreutils.
76619         * config/srclistvars.sh (COREUTILS): new var.
76620
76621 2006-03-17  Jim Meyering  <jim@meyering.net>
76622
76623         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
76624         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
76625
76626 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76627
76628         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
76629         no longer needs it.  Instead, check that regoff_t is as least
76630         as wide as ptrdiff_t.
76631
76632         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
76633         so that our regex.h stays compatible with the installed regex.
76634         This is helpful for installers who configure --without-included-regex.
76635         Problem reported by Emanuele Giaquinta.
76636
76637 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
76640         Typedef to long int, not to off_, as POSIX will likely change
76641         in that direction.
76642
76643 2006-03-15  Eric Blake  <ebb9@byu.net>
76644
76645         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
76646
76647 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76648
76649         * lib/argp-help.c (validate_uparams): Fix typo
76650         * lib/argp-parse.c (argp_default_options): Consistently begin help
76651         messages with a lowercase letter.
76652
76653 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
76654
76655         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
76656         overrun buffers and shouldn't be used (much as gets shouldn't be
76657         used).
76658         * lib/time_r.c (asctime_r, ctime_r): Likewise.
76659
76660 2006-03-08  Simon Josefsson  <jas@extundo.com>
76661
76662         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
76663         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76664
76665 2006-03-08  Simon Josefsson  <jas@extundo.com>
76666
76667         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
76668         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76669
76670 2006-03-08  Simon Josefsson  <jas@extundo.com>
76671
76672         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
76673         signal that configure disabled the device.
76674
76675 2006-03-08  Simon Josefsson  <jas@extundo.com>
76676
76677         * build-aux/maint.mk: Fix refresh-po, to handle no translated
76678         languages.
76679
76680 2006-03-07  Simon Josefsson  <jas@extundo.com>
76681
76682         * modules/getopt (Depends-on): Add unistd.
76683
76684         * modules/unistd: New file.
76685
76686 2006-03-07  Simon Josefsson  <jas@extundo.com>
76687
76688         * modules/gc-random: New file.
76689
76690 2006-03-07  Simon Josefsson  <jas@extundo.com>
76691
76692         * m4/unistd_h.m4: New file.
76693
76694 2006-03-07  Simon Josefsson  <jas@extundo.com>
76695
76696         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
76697         test to be side-effect free by storing the result in the cache
76698         variable gl_cv_lib_readline, and moving the assignment of
76699         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
76700         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76701
76702 2006-03-07  Simon Josefsson  <jas@extundo.com>
76703
76704         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
76705         error on missing devices (the functions will return an error).
76706
76707         * m4/gc.m4: Move random stuff to gc-random.m4
76708
76709 2006-03-07  Simon Josefsson  <jas@extundo.com>
76710
76711         * lib/unistd_.h: New file.
76712
76713 2006-03-07  Simon Josefsson  <jas@extundo.com>
76714
76715         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
76716
76717 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76718
76719         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
76720         Problem reported by Juan Manuel Guerrero.
76721
76722 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76723
76724         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
76725         the unistd module.
76726         * lib/getlogin_r.c: Likewise.
76727         * lib/getlogin_r.h: Likewise.
76728         * lib/glob.c: Likewise.
76729         * lib/pagealign_alloc.c: Likewise.
76730         * lib/unistd_.h: Remove; no longer needed.
76731
76732 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * MODULES.html.sh (Support for systems lacking POSIX:2001):
76735         Add unistd.
76736         * modules/c-stack (Depends-on): Add unistd.
76737         * modules/getlogin_r: Likewise.
76738         * modules/glob: Likewise.
76739         * modules/pagealign_alloc: Likewise.
76740         * modules/unistd (Files): Remove lib/unistd_.h.
76741         (EXTRA_DIST): Remove.
76742         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76743         need unistd_.h.
76744         (MOSTLYCLEANFILES): Remove unistd.h-t.
76745
76746 2006-03-03  Simon Josefsson  <jas@extundo.com>
76747
76748         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
76749
76750 2006-03-03  Simon Josefsson  <jas@extundo.com>
76751
76752         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
76753         libidn and bison.
76754
76755 2006-03-03  Simon Josefsson  <jas@extundo.com>
76756
76757         * build-aux/maint.mk: Add indent target.
76758
76759 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
76760
76761         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
76762         our replacement poll.h in any case, to avoid a differing
76763         declaration from a system header.  Seen on AIX.
76764
76765 2006-03-01  Simon Josefsson  <jas@extundo.com>
76766
76767         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
76768         <kasal@ucw.cz>.
76769
76770 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76771
76772         * modules/gettime (Depends-on): Add extensions module.
76773         * modules/nanosleep (Depends-on): Likewise.
76774         * modules/settime (Depends-on): Likewise.
76775
76776 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
76779         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
76780         pedantically.
76781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76782         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
76783
76784         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
76785         not "==".  Reported by Ralf Wildenhues.
76786
76787 2006-03-01  Karl Berry  <karl@gnu.org>
76788
76789         * doc/Copyright/request-*: new files, synced from gnuorg.
76790
76791 2006-03-01  Karl Berry  <karl@gnu.org>
76792
76793         * config/srclist.txt (Copyright/*): new entries.
76794
76795 2006-02-28  Simon Josefsson  <jas@extundo.com>
76796
76797         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
76798
76799 2006-02-27  Simon Josefsson  <jas@extundo.com>
76800
76801         * lib/base64.h: Indent #define's.  From Jim Meyering
76802         <jim@meyering.net>.
76803
76804 2006-02-27  Jim Meyering  <jim@meyering.net>
76805
76806         Revert the change of 2006-02-24, so these files can continue
76807         to be sync'd from gettext.
76808         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
76809         of `config.h'.
76810
76811 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76812
76813         * modules/intprops: New file.
76814         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76815         Add intprops.
76816         * modules/getloadavg (Files): Remove lib/intprops.h.
76817         (Depends-on): Add intprops.
76818         * modules/human: Likewise.
76819         * modules/inttostr: Likewise.
76820         * modules/openat: Likewise.
76821         * modules/sig2str: Likewise.
76822         * modules/userspec: Likewise.
76823         * modules/utimecmp: Likewise.
76824         * modules/xnanosleep: Likewise.
76825         * modules/xstrtol: Likewise.
76826
76827 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
76828
76829         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
76830         * modules/lock-tests (TESTS): Use $(EXEEXT).
76831         * modules/tls-tests: Likewise.
76832         * modules/argp-tests: Likewise.
76833         (check_PROGRAMS): New var, replacing...
76834         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
76835
76836 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76837
76838         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
76839         `config.h'.
76840
76841 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
76842
76843         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
76844
76845 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76846
76847         Sync from coreutils.
76848         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
76849         gl_CHDIR_SAFER.
76850
76851 2006-02-22  Jim Meyering  <jim@meyering.net>
76852
76853         Sync from coreutils.
76854         * m4/chdir-safer.m4: New file.
76855
76856 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
76859         AT_FDCWD exceeds INT_MAX.
76860         * lib/openat.h (AT_FDCWD): Likewise.
76861
76862 2006-02-17  Eric Blake  <address@hidden>
76863
76864         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
76865
76866 2006-02-16  Simon Josefsson  <jas@extundo.com>
76867
76868         * modules/getaddrinfo (Depends-on): Add sys_socket.
76869
76870 2006-02-15  Simon Josefsson  <jas@extundo.com>
76871
76872         * build-aux/maint.mk: Add dsyntax-check rule.
76873
76874 2006-02-15  Eric Blake  <ebb9@byu.net>
76875
76876         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
76877         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
76878         'present but cannot compile' warnings on cygwin.
76879         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
76880         use ws2tcpip.h if sys/socket.h works.
76881         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
76882         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
76883
76884 2006-02-14  Simon Josefsson  <jas@extundo.com>
76885
76886         * modules/maintainer-makefile (Files): Rename.
76887
76888         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
76889         and (the local) Makefile.cfg to maint-cfg.mk.
76890
76891         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
76892         to the latter.
76893
76894         * modules/maintainer-makefile: New module.
76895
76896         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
76897         severaly stripped to make it possible to build it up from scratch
76898         with reliable tests.
76899
76900         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
76901         fixes to permit overriding the default actions when configure and
76902         makefile are not available.
76903
76904 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         Sync from coreutils.
76907         * modules/lstat (Depends-on): Don't depend on xalloc.
76908         (License): Change from GPL to LGPL, since this is now simply a
76909         replacement for a libc function.
76910
76911 2006-02-14  Jim Meyering  <jim@meyering.net>
76912
76913         Sync from coreutils.
76914
76915         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
76916         failure on deficient systems, and simplify gnulib lgpl dependencies.
76917         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
76918         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
76919
76920         * lib/xalloc-die.c: Remove unused definition of N_.
76921
76922 2006-02-14  Jim Meyering  <jim@meyering.net>
76923
76924         Sync from coreutils.
76925         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
76926         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
76927         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
76928         double-quote uses of that variable, to accommodate the rare case in
76929         which getmntent is available in none of the libraries checked.  This
76930         happens at least on FreeBSD 5.0.
76931
76932 2006-02-13  Simon Josefsson  <jas@extundo.com>
76933
76934         * gnulib-tool (Usage): Fix --import, from
76935         karl@freefriends.org (Karl Berry).
76936
76937 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76938
76939         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
76940
76941 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
76942
76943         * lib/argp-namefrob.h: Restore changes accidentally lost during the
76944         "autoupdate" on 2005-12-12.
76945
76946 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76947
76948         * modules/closeout (Depends-on): Remove atexit.
76949
76950 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76951
76952         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76953         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76954
76955 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76958         __EXTENSIONS__ if this causes compilation to fail.  Problem
76959         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76960         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76961
76962 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76963
76964         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76965         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76966         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76967         All uses changed.
76968
76969 2006-01-26  Simon Josefsson  <jas@extundo.com>
76970
76971         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76972         prototype is visible on mingw32.
76973
76974         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76975         for mingw32.
76976
76977         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76978         mingw32).
76979
76980 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76983         attempt to open for write; this always fails, at least on POSIX
76984         hosts.  This reinstates the 2006-01-09 change, which was
76985         inadvertently removed.
76986
76987 2006-01-26  Bruno Haible  <bruno@clisp.org>
76988
76989         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76990         Reported by Paul Eggert.
76991
76992 2006-01-26  Bruno Haible  <bruno@clisp.org>
76993             Paul Eggert  <eggert@cs.ucla.edu>
76994
76995         * lib/stdbool_.h (_Bool)
76996         [(! (defined __cplusplus || defined __BEOS__)
76997           && !defined __GNUC__
76998           && !(defined __HP_cc || defined __xlc__
76999                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77000                || defined __sgi))]:
77001         #define to signed char in these cases too; this simplifies
77002         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77003         etc., separately) and makes it more conservative.
77004
77005 2006-01-25  Simon Josefsson  <jas@extundo.com>
77006
77007         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77008         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77009         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77010
77011 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77012
77013         * lib/argp-namefrob.h: Bugfix. Remove stray #
77014
77015 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77016
77017         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77018         so that we test the test.
77019         Check for yet another HP-UX cc bug involving *bool |= bool.
77020
77021 2006-01-25  Karl Berry  <karl@gnu.org>
77022
77023         * config/srclist.txt (vasnprintf.c): sync lost.
77024
77025 2006-01-25  Jim Meyering  <jim@meyering.net>
77026
77027         Sync from the stable (b5) branch of coreutils:
77028
77029         * lib/fts.c (fts_children): Don't let close() clobber errno from
77030         failed fchdir().
77031
77032         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77033         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77034         a dangling symlink.  That can also happen at least for ELOOP.
77035         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77036         FYI, this bug predates the inclusion of fts.c in coreutils.
77037
77038         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77039         in their own block, so pre-c99 compilers don't object.
77040
77041         Avoid the double-free (first in fts_read, second in fts_close) that
77042         would occur when an `active' directory is made inaccessible (e.g.,
77043         via chmod a-x) during a traversal.
77044         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77045         before returning.  Reproduce this failure by
77046         mkdir -p a/b; cd a; chmod a-x . b
77047         Reported by Stavros Passas.
77048
77049 2006-01-25  Jim Meyering  <jim@meyering.net>
77050
77051         * lib/fileblocks.c: Remove more useless parentheses.
77052         * lib/readutmp.h: Likewise.
77053
77054 2006-01-25  Bruno Haible  <bruno@clisp.org>
77055
77056         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77057         warnings.
77058         Reported by Paul Eggert.
77059
77060 2006-01-25  Bruno Haible  <bruno@clisp.org>
77061
77062         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77063         rid of a trap command. For Solaris sh.
77064         Reported by Mark D. Baushke <mdb@gnu.org>.
77065
77066 2006-01-24  Simon Josefsson  <jas@extundo.com>
77067
77068         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77069         Bruno.
77070
77071 2006-01-24  Karl Berry  <karl@gnu.org>
77072
77073         * config/srclist.txt (argp-namefrob.h): sync lost.
77074
77075 2006-01-24  Jim Meyering  <jim@meyering.net>
77076
77077         * modules/openat (Files): Add lib/intprops.h.
77078         From Mark D. Baushke.
77079
77080 2006-01-24  Jim Meyering  <jim@meyering.net>
77081
77082         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77083         Reported by Mark D. Baushke.
77084
77085 2006-01-24  Jim Meyering  <jim@meyering.net>
77086
77087         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77088
77089 2006-01-24  Bruno Haible  <bruno@clisp.org>
77090
77091         * modules/strnlen (Maintainer): Change from glibc to all.
77092
77093 2006-01-24  Bruno Haible  <bruno@clisp.org>
77094
77095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77096         Patch by Paul Eggert.
77097
77098 2006-01-24  Bruno Haible  <bruno@clisp.org>
77099
77100         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77101         already has it.
77102         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77103         2005-11-26.
77104
77105         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77106         'signed char' to avoid problems with the built-in _Bool type.
77107         Reported by Paul Eggert on 2005-11-26.
77108
77109 2006-01-24  Bruno Haible  <bruno@clisp.org>
77110
77111         * gnulib-tool (func_import): Avoid constructing complicated sed
77112         expressions inside backquote.
77113         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77114
77115 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77116
77117         These changes imported from libc.
77118         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77119         test and two separate function calls.
77120         * lib/strndup.c (__strndup): Add libc_hidden_def.
77121
77122 2006-01-23  Simon Josefsson  <jas@extundo.com>
77123
77124         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77125         Remove the test_*_SOURCES variable: automake infers it by default.
77126         * modules/tls-tests: Likewise.
77127
77128 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77129
77130         Work around porting bugs reported by Dieter in
77131         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77132         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77133         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77134         Include "getopt.h" first, to check interface.
77135         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77136         !HAVE_DECL_GETENV.
77137         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77138         (__strndup): Revert to K&R-style function dfns, the glibc style.
77139         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77140         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77141         Include strnlen.h first, to get prototype properly.
77142         (strnlen): Renamed from __strnlen.
77143         Remove weak alias.
77144
77145 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77148
77149 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77150
77151         * config/srclist.txt: Adjust to reflect glibc reorganization.
77152         This affects only comments.
77153
77154 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77155
77156          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77157          Reported by Bruce Korb <bkorb@gnu.org>.
77158
77159 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77160
77161         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77162         to pacify gcc -Wswitch-default.
77163
77164 2006-01-22  Bruno Haible  <bruno@clisp.org>
77165
77166         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77167         temporary buffer for sprintf, take into account the precision also
77168         for 'd', 'i', 'u', 'o', 'x', 'X'.
77169
77170 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77171
77172         * modules/argp-tests: New module
77173         * tests/test-argp.c: New file
77174         * tests/test-argp-2.sh: New file
77175
77176 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77177
77178         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77179         (__argp_base_name): Removed
77180         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77181         typo.
77182         (__argp_base_name): Provide macro definition or extern declaration
77183         depending on the configuration
77184
77185 2006-01-20  Simon Josefsson  <jas@extundo.com>
77186
77187         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77188
77189 2006-01-20  Simon Josefsson  <jas@extundo.com>
77190
77191         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77192
77193 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77194
77195         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77196         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77197         Suggested by Bruno Haible.
77198
77199 2006-01-20  Karl Berry  <karl@gnu.org>
77200
77201         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77202         until changes propagate, I guess.
77203
77204 2006-01-19  Simon Josefsson  <jas@extundo.com>
77205
77206         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77207
77208 2006-01-19  Simon Josefsson  <jas@extundo.com>
77209
77210         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77211
77212 2006-01-19  Simon Josefsson  <jas@extundo.com>
77213
77214         * gnulib-tool: Set check_PROGRAMS.
77215
77216         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77217         modules/des-tests, modules/gc-arcfour-tests,
77218         modules/gc-arctwo-tests, modules/gc-des-tests,
77219         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77220         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77221         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77222         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77223         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77224         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77225         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77226         test_*_SOURCES.
77227
77228 2006-01-18  Simon Josefsson  <jas@extundo.com>
77229
77230         * modules/socklen (Depends-on): Depend on sys_socket.
77231
77232 2006-01-18  Simon Josefsson  <jas@extundo.com>
77233
77234         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77235         modules/des-tests, modules/gc-arcfour-tests,
77236         modules/gc-arctwo-tests, modules/gc-des-tests,
77237         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77238         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77239         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77240         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77241         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77242         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77243         $(EXEEXT) to automake TESTS variable, for mingw32.
77244
77245 2006-01-17  Simon Josefsson  <jas@extundo.com>
77246
77247         * modules/socklen (Include): Need sys/socket.h.
77248
77249 2006-01-17  Bruno Haible  <bruno@clisp.org>
77250
77251         * modules/ssize_t (Include): Add <sys/types.h>.
77252
77253 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77254
77255         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77256         it's not portable and it doesn't work with cross-compiles.
77257         Problem reported by Bruno Haible.  Fix missing-$ typo in
77258         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77259         -zignore from being used with Sun's C compiler.
77260
77261 2006-01-12  Simon Josefsson  <jas@extundo.com>
77262
77263         * lib/base64.c: Fix warning, reported by Bruno Haible
77264         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77265
77266 2006-01-12  Bruno Haible  <bruno@clisp.org>
77267
77268         * modules/ldd: New file.
77269         * build-aux/ldd.sh.in: New file.
77270         * MODULES.html.sh (Support for building libraries and executables): Add
77271         ldd.
77272
77273 2006-01-12  Bruno Haible  <bruno@clisp.org>
77274
77275         * m4/ldd.m4: New file.
77276
77277 2006-01-12  Bruno Haible  <bruno@clisp.org>
77278
77279         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77280         endless loop while replacing $auxdir with build-aux.
77281
77282 2006-01-11  Simon Josefsson  <jas@extundo.com>
77283
77284         * lib/stdint_.h (SIZE_MAX): Add missing (.
77285
77286 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77287
77288         Sync from coreutils.
77289         * lib/md5.c: Fix commentary typos.
77290         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77291         * lib/md5.h (__attribute__): Remove; unused.
77292         * lib/sha1.c: Fix commentary to match md5 better.
77293         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77294         so that we don't need to worry about alignment.  All uses changed.
77295         This merges the 2005-10-28 md5 change into sha1.
77296
77297 2006-01-11  Jim Meyering  <jim@meyering.net>
77298
77299         Sync from coreutils.
77300         * lib/md5.c (OP): Fix spacing.
77301
77302 2006-01-11  Bruno Haible  <bruno@clisp.org>
77303
77304         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77305         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77306         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77307
77308 2006-01-11  Bruno Haible  <bruno@clisp.org>
77309
77310         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77311         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77312         the "early" section as well.
77313
77314 2006-01-11  Bruno Haible  <bruno@clisp.org>
77315
77316         Avoid "ar: no archive members specified" error on MacOS X.
77317         * gnulib-tool (func_modules_add_dummy): New function.
77318         (func_import, func_create_testdir): Invoke it.
77319
77320 2006-01-11  Bruno Haible  <bruno@clisp.org>
77321
77322         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77323         with $auxdir in AC_CONFIG_FILES statements.
77324
77325 2006-01-11  Bruno Haible  <bruno@clisp.org>
77326
77327         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77328         Initialize also noinst_HEADERS to empty.
77329
77330 2006-01-11  Bruno Haible  <bruno@clisp.org>
77331
77332         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77333         variables.
77334         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77335         autoreconf.
77336
77337 2006-01-11  Bruno Haible  <bruno@clisp.org>
77338
77339         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77340         overridable by the user.
77341         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77342
77343 2006-01-10  Simon Josefsson  <jas@extundo.com>
77344
77345         * modules/sys_socket: New file.
77346
77347 2006-01-10  Simon Josefsson  <jas@extundo.com>
77348
77349         * m4/sys_socket_h.m4: New file.
77350
77351 2006-01-10  Simon Josefsson  <jas@extundo.com>
77352
77353         * lib/socket_.h: New file.
77354
77355 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77356
77357         * modules/readutmp (Maintainer): Add myself.
77358
77359 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77360
77361         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77362         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77363         People who are still concerned with buggy memcmp implementations
77364         can invoke gl_FUNC_MEMCMP themselves.
77365
77366 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77367
77368         * lib/regex_internal.h (BITSET_WORD_BITS):
77369         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77370         preprocessor mishandles large unsigned values as if they were signed.
77371         Problem reported by Claudio Fontana in
77372         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77373
77374 2006-01-10  Jim Meyering  <jim@meyering.net>
77375
77376         Avoid the double-free (first in fts_read, second in fts_close) that
77377         would occur when an `active' directory is made inaccessible (e.g.,
77378         via chmod a-x) during a traversal.
77379         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77380         before returning.  Reproduce this failure by
77381         mkdir -p a/b; cd a; chmod a-x . b
77382         Reported by Stavros Passas.
77383
77384         Sync from coreutils.
77385         * lib/sha1.c: Tweak grammar in a comment.
77386
77387 2006-01-10  Jim Meyering  <jim@meyering.net>
77388
77389         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77390         Patch by Joerg Sonnenberger.
77391
77392 2006-01-10  Bruno Haible  <bruno@clisp.org>
77393
77394         * modules/readutmp: Depend on module free.
77395         * modules/strtok_r: Depend on module restrict.
77396
77397 2006-01-10  Bruno Haible  <bruno@clisp.org>
77398
77399         * modules/gettext (configure.ac): Add an invocation of
77400         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77401
77402 2006-01-10  Bruno Haible  <bruno@clisp.org>
77403
77404         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77405         Reported by Werner Lemberg <wl@gnu.org>.
77406
77407 2006-01-10  Bruno Haible  <bruno@clisp.org>
77408
77409         * lib/localcharset.c: Update from GNU gettext.
77410
77411 2006-01-10  Bruno Haible  <bruno@clisp.org>
77412
77413         * lib/argp.h (__const): Remove macro. Use const instead.
77414         * lib/argp-fmtstream.h (__const): Likewise.
77415         * lib/glob_.h (__const): Remove macro.
77416         * lib/glob-libc.h: Use const instead of __const.
77417
77418 2006-01-10  Bruno Haible  <bruno@clisp.org>
77419
77420         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77421         variable.
77422         Needed to avoid an automake error regarding the 'gettext' module.
77423
77424 2006-01-09  Simon Josefsson  <jas@extundo.com>
77425
77426         * modules/inet_ntop (Depends-on): Add restrict.
77427
77428 2006-01-09  Simon Josefsson  <jas@extundo.com>
77429
77430         * modules/gc-rijndael-tests (License): Put under LGPL.
77431
77432         * modules/gc-des-tests (License): Likewise.
77433
77434         * modules/gc-arcfour-tests (License): Likewise.
77435
77436         * modules/gc-arctwo-tests (License): Likewise.
77437
77438         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77439
77440         * modules/gc-hmac-sha1-tests (Files): Likewise.
77441
77442         * modules/gc-hmac-md5-tests (License): Likewise.
77443
77444         * modules/gc-sha1-tests (License): Likewise.
77445
77446         * modules/gc-md5-tests (License): Likewise.
77447
77448         * modules/gc-md4-tests (License): Likewise.
77449
77450         * modules/gc-md2-tests (License): Likewise.
77451
77452         * modules/gc-tests (License): Likewise.
77453
77454         * modules/des-tests (License): Likewise.
77455
77456         * modules/md4-tests (License): Likewise.
77457
77458         * modules/md2-tests (License): Likewise.
77459
77460 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         Sync from coreutils:
77463
77464         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77465         * modules/lib-ignore: New file.
77466         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77467         chdir-safer.m4, lchmod.m4.
77468         * modules/openat: Add mkdirat.c, openat-priv.h.
77469
77470 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77471
77472         Sync from coreutils.
77473         * m4/lib-ignore.m4: New file.
77474         * m4/lchmod.m4: New file.
77475
77476 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77477
77478         Sync from coreutils.
77479         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77480         for write access: POSIX says that must fail.
77481         * lib/fts.c (diropen): Likewise.
77482         * lib/save-cwd.c (save_cwd): Likewise.
77483         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77484         well, for minor improvements on hosts that lack O_DIRECTORY.
77485         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77486         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77487         Fall back on chown if open failed with EACCES.
77488
77489         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77490         Report an error at compile-time if only a 1-second nominal clock
77491         resolution is found.
77492
77493         * lib/lchmod.h: New file.
77494         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77495         (make_dir_parents): Use lchown rather than chown, and
77496         lchmod rather than chmod.
77497
77498         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77499         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77500         "proc" reported by n0dalus.
77501
77502         * lib/mountlist.c: Include <limits.h>.
77503         (dev_from_mount_options)
77504         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77505         New function.  It no longer assumes "dev=" has the System V meaning
77506         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77507         (read_file_system_list)
77508         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77509         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77510         dev= in that case.
77511
77512         * lib/posixtm.h (PDS_PRE_2000): New macro.
77513         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77514         allow_century.  All usages changed.  Reject dates outside the range
77515         1969-1999 if PDS_PRE_2000 is used.
77516
77517 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77518
77519         Sync from coreutils.
77520         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77521         (Time of day items): Mention the possibility of leap seconds.
77522         Problem reported by Dr. David Alan Gilbert.
77523
77524 2006-01-09  Jim Meyering  <jim@meyering.net>
77525
77526         Sync from coreutils.
77527
77528         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77529
77530         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77531
77532         * lib/modechange.c (mode_compile): Reject an invalid mode string
77533         that starts with an octal digit.  From Andreas Gruenbacher.
77534
77535         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77536         and dup to open_safer and dup_safer, respectively.
77537         (openat_permissive): Fix typo in comment.
77538
77539         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77540         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77541         (_): Remove; no longer needed.
77542         (openat): Renamed from rpl_openat; no need for rpl_openat
77543         since openat.h renames openat for us.
77544         Replace most of the body with a call to openat_permissive,
77545         to avoid duplicate code.
77546         Port to (probably hypothetical) environments were mode_t is
77547         wider than int.
77548         (openat_permissive): Require mode arg, so that we can check
77549         types better.  Put it just after flags.  Change cwd failure
77550         indicator from pointer-to-bool to pointer-to-errno-value.
77551         All callers changed.
77552         Invoke openat_save_fail and/or openat_restore_fail if
77553         cwd_errno is null, so that openat can call us.
77554         (openat_permissive, fdopendir, fstatat, unlinkat):
77555         Simplify errno handling to avoid some duplicate code,
77556         as it's OK to set errno on success.
77557         * lib/openat.h: Revamp code so that function macros depend on
77558         __OPENAT_PREFIX only, not also on AT_FDCWD.
77559         (openat_ro): Remove.  Caller changed to use openat_permissive.
77560         (openat_permissive): Now a macro, if not a function.
77561         (openat_restore_fail, openat_save_fail): Now always functions,
77562         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77563
77564         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77565         and openat.c.
77566         * lib/mkdirat.c: Include openat-priv.h.
77567         Remove definitions of macros defined therein.
77568         * lib/openat.c: Likewise.
77569
77570         * lib/mkdirat.c (mkdirat): New file and function.
77571         * lib/openat.h (mkdirat): Declare.
77572
77573         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77574
77575         * lib/openat.h (openat_permissive): Declare.
77576         (openat_ro): Define.
77577
77578         * lib/openat.c (EXPECTED_ERRNO): New macro.
77579         (openat_permissive): New function -- used in remove.c rewrite.
77580         (all functions): Set errno just before returning, only if there
77581         was an actual failure.
77582         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77583
77584         Emulate openat-family functions using Linux's procfs, if possible.
77585         Idea and some code based on Ulrich Drepper's glibc changes.
77586
77587         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77588         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77589         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77590         before falling back on save_cwd and restore_cwd.
77591         (fdopendir, fstatat, unlinkat): Likewise.
77592
77593         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77594         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77595
77596         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
77597         as second argument to va_arg.  Otherwise, some versions of gcc
77598         warn that `if this code is reached, the program will abort'.
77599
77600 2006-01-09  Jim Meyering  <jim@meyering.net>
77601
77602         Sync from coreutils.
77603         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
77604         Require openat-priv.h.
77605
77606 2006-01-09  Bruno Haible  <bruno@clisp.org>
77607
77608         * modules/strnlen (Include): Use strnlen.h.
77609
77610 2006-01-09  Bruno Haible  <bruno@clisp.org>
77611
77612         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
77613
77614 2006-01-09  Bruno Haible  <bruno@clisp.org>
77615
77616         * lib/sysexit_.h (EX_OK): New macro.
77617         Suggested by Martin Lambers <marlam@marlam.de>.
77618
77619 2006-01-09  Bruno Haible  <bruno@clisp.org>
77620
77621         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
77622         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
77623
77624 2006-01-09  Bruno Haible  <bruno@clisp.org>
77625
77626         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
77627         numbers.
77628
77629 2006-01-09  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
77632         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
77633         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
77634         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
77635
77636 2006-01-09  Bruno Haible  <bruno@clisp.org>
77637
77638         * build-aux/javacomp.sh.in: New file, moved from lib/.
77639         * modules/javacomp-script (Files): Update.
77640         (configure.ac): Add AC_CONFIG_FILES invocation.
77641         (EXTRA_DIST): Remove variable.
77642
77643         * build-aux/javaexec.sh.in: New file, moved from lib/.
77644         * modules/javaexec (Files): Update.
77645         (configure.ac): Add AC_CONFIG_FILES invocation.
77646         (EXTRA_DIST): Remove javaexec.sh.in.
77647
77648         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
77649         * modules/csharpcomp-script (Files): Update.
77650         (configure.ac): Add AC_CONFIG_FILES invocation.
77651         (EXTRA_DIST): Remove variable.
77652
77653         * build-aux/csharpexec.sh.in: New file, moved from lib/.
77654         * modules/csharpexec (Files): Update.
77655         (configure.ac): Add AC_CONFIG_FILES invocation.
77656         (EXTRA_DIST): Remove csharpexec.sh.in.
77657
77658 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77659
77660         Sync from coreutils.
77661
77662         Add POSIX ACL support
77663         * lib/acl.h (copy_acl, set_acl): Add declarations.
77664         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
77665         systems other than Linux.
77666         (chmod_or_fchmod): New function: use fchmod when possible,
77667         and chmod otherwise.
77668         (file_has_acl): Add a POSIX ACL implementation, with a
77669         Linux-specific subcase.
77670         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
77671         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
77672         acls are unsupported.
77673         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
77674         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
77675         are unsupported.
77676
77677 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77678
77679         Sync from coreutils.
77680         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
77681
77682 2006-01-07  Bruno Haible  <bruno@clisp.org>
77683
77684         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
77685         gl_EARLY.
77686
77687 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77688
77689         * lib/strftime.c (tzname): Don't declare if it is already #defined.
77690         Problem reported for Mingw by Mark Junker.
77691
77692 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * README: Gnulib normally doesn't generate a tarball.
77695
77696 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
77699         long int, not int, for nanosecond counts, so that people who are
77700         used to POSIX struct timespec won't be surprised.  Reported by Jim
77701         Meyering.
77702
77703 2005-12-28  Bruno Haible  <bruno@clisp.org>
77704
77705         * build-aux/config.rpath: Update from GNU gettext.
77706
77707 2005-12-16  Jim Meyering  <jim@meyering.net>
77708
77709         * modules/fprintftime: New module.
77710         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
77711
77712 2005-12-16  Jim Meyering  <jim@meyering.net>
77713
77714         * m4/fprintftime.m4: New file.
77715
77716 2005-12-16  Jim Meyering  <jim@meyering.net>
77717
77718         * lib/fprintftime.c, lib/fprintftime.h: New files.
77719
77720 2005-12-15  Simon Josefsson  <jas@extundo.com>
77721
77722         * modules/socklen (configure.ac): Fix M4 macro name, to align with
77723         new m4/socklen.m4.
77724
77725 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77726
77727         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
77728         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
77729
77730 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77731
77732         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
77733         * lib/argp-help.c (fill_in_uparams): Check if the constructed
77734         struct uparams is valid. Fall back to the default values if it is
77735         not.
77736
77737 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77738
77739         * modules/argp (Files): Add argp-pin.c
77740         (Depends-on): dirname
77741         (lib_SOURCES): Add argp-pin.c
77742
77743 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77744
77745         * m4/argp.m4:  Check if program_invocation_name and
77746         program_invocation_short_name are declared and define appropriate
77747         macros if they are not.
77748
77749 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77750
77751         * lib/argp-help.c (__argp_base_name): New function
77752         (__argp_short_program_name): Rewrite using __argp_base_name
77753         * lib/argp-namefrob.h: Define program_invocation_name and
77754         program_invocation_short_name if requested
77755         (__argp_base_name): Add prototype
77756         * lib/argp-parse.c (argp_def): Use gettext wrappers
77757         (argp_default_parser): Use __argp_base_name
77758         * lib/argp-pin.c: New file. Defines program_invocation_name and
77759         program_invocation_short_name on systems that lack them.
77760
77761 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77762
77763         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
77764         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77765         porting problem reported by Georg Schwarz in
77766         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77767
77768 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
77771         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77772         porting problem reported by Georg Schwarz in
77773         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77774
77775 2005-12-05  Bruno Haible  <bruno@clisp.org>
77776
77777         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
77778         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
77779         Reported by Mark Junker <mjscod@gmx.de>.
77780
77781 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
77782
77783         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
77784         Use implementation from Albert Chin, with some
77785         comments/corrections by Stepan Kasal and myself.
77786
77787 2005-12-02  Bruno Haible  <bruno@clisp.org>
77788
77789         * gnulib-tool (func_import): Accept GPLed build tool modules when
77790         --lgpl is given.
77791         * modules/csharpcomp-script: New file.
77792         * modules/csharpcomp: Depend on it.
77793         * modules/javacomp-script: New file.
77794         * modules/javacomp: Depend on it.
77795         Suggested by Simon Josefsson.
77796
77797 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
77798
77799         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
77800         statement, to work around an HP-UX 10.20 compiler bug reported by
77801         Peter O'Gorman.
77802
77803 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77804
77805         * modules/savedir (Depends-on): Add openat.
77806
77807 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
77810         (uintmax_t) [defined uintmax_t]: Do not declare.
77811         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
77812         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
77813         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
77814         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
77815         sake of portability to weird hosts that C allows (though we don't
77816         know of any practical examples).
77817
77818         * lib/savedir.h (fdsavedir): New decl.
77819         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
77820         contains most of the former guts of savedir.
77821         (savedir): Use savedirstream.
77822         Include "openat.h".
77823
77824 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77825
77826         * modules/obstack (Files): Add m4/ulonglong.m4.
77827         Problem reported by Davide Angelocola.
77828
77829 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77830
77831         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
77832         coreutils no longer futzes with rounding modes.
77833
77834 2005-11-14  Jim Meyering  <jim@meyering.net>
77835
77836         * lib/mkstemp-safer.c: Include <config.h>, required for possible
77837         replacement of mkstemp.
77838
77839 2005-11-10  Simon Josefsson  <jas@extundo.com>
77840
77841         * lib/readline.c: Remove EOL.
77842
77843 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77844
77845         * modules/gethrxtime (Depends-on): Add gettime.
77846
77847 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77848
77849         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
77850         or gettimeofday; no longer needed.
77851
77852 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77853
77854         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
77855         time business.
77856         (gethrxtime) [! (HAVE_NANOUPTIME
77857         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
77858         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
77859         our own approximation.
77860
77861 2005-11-08  Eric Blake  <ebb9@byu.net>
77862
77863         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77864
77865 2005-11-08  Eric Blake  <ebb9@byu.net>
77866
77867         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77868
77869 2005-11-04  Bruno Haible  <bruno@clisp.org>
77870
77871         * gnulib-tool: Implement --update mode.
77872
77873 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77874
77875         Fix porting problem reported by Theodoros V. Kalamatianos.
77876         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
77877         Don't assume that futimes failing means we must fail.
77878
77879 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
77882         variables to suggest the intended function of the PATH_MAX check.
77883
77884 2005-10-30  Kean Johnston  <jkj@sco.com>
77885
77886         Trivial changes to support SCO systems.
77887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
77888         as PATH_MAX.
77889         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
77890         where __ptr is null when no I/O is pending.
77891
77892 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77893
77894         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
77895         leave errno alone.  Problem reported by Dmitry V. Levin.
77896
77897 2005-10-28  Simon Josefsson  <jas@extundo.com>
77898
77899         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
77900         Test more.
77901
77902         * tests/test-gc-md2.c, tests/test-md2.c: New files.
77903
77904         * modules/md2, modules/md2-tests: New files.
77905
77906 2005-10-28  Simon Josefsson  <jas@extundo.com>
77907
77908         * m4/inet_ntop.m4: More tests.
77909
77910         * m4/gc-md2.m4, md2.m4: New file.
77911
77912 2005-10-28  Simon Josefsson  <jas@extundo.com>
77913
77914         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
77915         "restrict" keywords, as per POSIX.  Protect the function
77916         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
77917         Don't use K&R prototypes.  Check the sprintf return values.
77918         Re-define EAFNOSUPPORT if not present.  Indent.
77919
77920         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
77921         suggested by Bruno Haible <bruno@clisp.org>.
77922
77923         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
77924
77925         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
77926
77927         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
77928         libgcrypt).
77929
77930         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
77931
77932         * lib/md2.h, lib/md2.c: New files.
77933
77934 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
77935
77936         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
77937         errno alone.  Problem reported by Frederic Jolliton.
77938
77939 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77940
77941         * modules/verify (License): Change from GPL to LGPL.  This is a
77942         tiny module and there are apparently near-equivalents that are
77943         under the BSD license.
77944
77945 2005-10-24  Simon Josefsson  <jas@extundo.com>
77946
77947         * modules/sha1: Relicense to LGPL.
77948
77949 2005-10-24  Simon Josefsson  <jas@extundo.com>
77950
77951         * lib/md4.h: Shrink buffer size, now that we changed the type.
77952
77953 2005-10-23  Simon Josefsson  <jas@extundo.com>
77954
77955         * gnulib-tool (func_import): Fix --tests-base.
77956
77957 2005-10-22  Simon Josefsson  <jas@extundo.com>
77958
77959         * modules/arcfour (Depends-on): Need stdint.
77960
77961 2005-10-22  Simon Josefsson  <jas@extundo.com>
77962
77963         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77964         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77965
77966 2005-10-22  Simon Josefsson  <jas@extundo.com>
77967
77968         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77969         suggested by Bruno Haible <bruno@clisp.org>.
77970
77971 2005-10-22  Simon Josefsson  <jas@extundo.com>
77972
77973         * lib/crc.h: Include stddef.h, for size_t.
77974
77975 2005-10-22  Simon Josefsson  <jas@extundo.com>
77976
77977         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77978         arcfour_context struct (simplify test vector testing in GNU
77979         Shishi).
77980
77981 2005-10-21  Simon Josefsson  <jas@extundo.com>
77982
77983         * modules/des, modules/des-tests: New files.
77984
77985         * modules/gc-des, modules/gc-des-tests: New files.
77986
77987         * tests/test-des.c, tests/test-gc-des.c: New file.
77988
77989 2005-10-21  Simon Josefsson  <jas@extundo.com>
77990
77991         * modules/arctwo, modules/arctwo-tests: New files.
77992
77993         * tests/test-arctwo.c: New file.
77994
77995         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77996
77997         * tests/test-gc-arctwo.c: New file.
77998
77999 2005-10-21  Simon Josefsson  <jas@extundo.com>
78000
78001         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78002         Bruno Haible <bruno@clisp.org>.
78003
78004         * m4/gc-des.m4: New file.
78005
78006 2005-10-21  Simon Josefsson  <jas@extundo.com>
78007
78008         * m4/arctwo.m4: New file.
78009
78010         * m4/gc-arctwo.m4: New file.
78011
78012 2005-10-21  Simon Josefsson  <jas@extundo.com>
78013
78014         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78015         block.
78016
78017 2005-10-21  Simon Josefsson  <jas@extundo.com>
78018
78019         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78020         <bruno@clisp.org>.
78021
78022         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78023
78024         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78025         Bruno Haible <bruno@clisp.org>.
78026
78027         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78028         <bruno@clisp.org>.
78029
78030 2005-10-21  Simon Josefsson  <jas@extundo.com>
78031
78032         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78033
78034 2005-10-21  Simon Josefsson  <jas@extundo.com>
78035
78036         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78037
78038 2005-10-21  Simon Josefsson  <jas@extundo.com>
78039
78040         * lib/des.h, lib/des.c: New files.
78041
78042         * lib/gc-gnulib.c: Support DES.c
78043
78044 2005-10-21  Simon Josefsson  <jas@extundo.com>
78045
78046         * lib/arctwo.h, lib/arctwo.c: New files.
78047
78048         * lib/gc-gnulib.c: Support ARCTWO.
78049
78050 2005-10-21  Simon Josefsson  <jas@extundo.com>
78051
78052         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78053         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78054
78055 2005-10-21  Simon Josefsson  <jas@extundo.com>
78056
78057         * gnulib-tool (func_import, func_create_testdir): Define automake
78058         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78059         Makefile.am snippet),
78060         suggested by Bruno Haible <bruno@clisp.org>.
78061
78062         * modules/gc (Makefile.am): Use it.
78063
78064 2005-10-21  Bruno Haible  <bruno@clisp.org>
78065
78066         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78067         patch.
78068
78069 2005-10-19  Simon Josefsson  <jas@extundo.com>
78070
78071         * tests/test-gc-rijndael.c: New file.
78072
78073         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78074
78075 2005-10-19  Simon Josefsson  <jas@extundo.com>
78076
78077         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78078         interface too.
78079
78080 2005-10-19  Simon Josefsson  <jas@extundo.com>
78081
78082         * tests/test-gc-arcfour.c: New file.
78083
78084         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78085
78086 2005-10-19  Simon Josefsson  <jas@extundo.com>
78087
78088         * modules/gc-md4, modules/gc-md4-tests: New file.
78089
78090         * tests/test-gc-md4.c: New file.
78091
78092 2005-10-19  Simon Josefsson  <jas@extundo.com>
78093
78094         * m4/gc-md4.m4: New file.
78095
78096 2005-10-19  Simon Josefsson  <jas@extundo.com>
78097
78098         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78099         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78100         <kasal@ucw.cz>.
78101
78102 2005-10-19  Simon Josefsson  <jas@extundo.com>
78103
78104         * m4/gc-arcfour.m4: New file.
78105
78106         * m4/gc-rijndael.m4: New file.
78107
78108 2005-10-19  Simon Josefsson  <jas@extundo.com>
78109
78110         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78111
78112 2005-10-19  Simon Josefsson  <jas@extundo.com>
78113
78114         * lib/gc-gnulib.c: Support ARCFOUR.
78115
78116 2005-10-19  Simon Josefsson  <jas@extundo.com>
78117
78118         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78119         support.
78120
78121         * lib/gc.h: Add ECB enum type.
78122
78123         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78124
78125 2005-10-18  Simon Josefsson  <jas@extundo.com>
78126
78127         * tests/test-md5.c: New file.
78128
78129         * modules/md5-tests: New file.
78130
78131 2005-10-18  Simon Josefsson  <jas@extundo.com>
78132
78133         * tests/test-md4.c: New file.
78134
78135         * modules/md4, modules/md4-tests: New files.
78136
78137 2005-10-18  Simon Josefsson  <jas@extundo.com>
78138
78139         * m4/md4.m4: New file.
78140
78141 2005-10-18  Simon Josefsson  <jas@extundo.com>
78142
78143         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78144
78145 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78146
78147         * gnulib-tool (func_create_testdir): Omit the second check whether
78148         BUILT_SOURCES in nonempty.
78149
78150 2005-10-17  Simon Josefsson  <jas@extundo.com>
78151
78152         * tests/test-rijndael.c: New file.
78153
78154 2005-10-17  Simon Josefsson  <jas@extundo.com>
78155
78156         * modules/sha1: Depend on stdint instead of md5.
78157
78158         * modules/md5: Depend on stdint, remove uint32_t.
78159
78160 2005-10-17  Simon Josefsson  <jas@extundo.com>
78161
78162         * modules/gc-sha1-tests: New file.
78163
78164         * tests/test-gc-sha1.c: New file.
78165
78166 2005-10-17  Simon Josefsson  <jas@extundo.com>
78167
78168         * m4/md5.m4: Remove call to uint32_t.m4.
78169
78170 2005-10-17  Simon Josefsson  <jas@extundo.com>
78171
78172         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78173
78174         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78175         md5.h.
78176
78177         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78178
78179         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78180
78181 2005-10-17  Simon Josefsson  <jas@extundo.com>
78182
78183         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78184
78185 2005-10-17  Simon Josefsson  <jas@extundo.com>
78186
78187         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78188
78189 2005-10-17  Simon Josefsson  <jas@extundo.com>
78190
78191         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78192
78193         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78194
78195 2005-10-17  Bruno Haible  <bruno@clisp.org>
78196
78197         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78198         that it can also be used in a test.
78199
78200 2005-10-16  Bruno Haible  <bruno@clisp.org>
78201
78202         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78203         TESTS_ENVIRONMENT, so that individual tests can augment it.
78204
78205         * gnulib-tool (func_create_testdir): Use an intermediate target for
78206         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78207         macros, like $(ALLOCA_H), which cannot be passed through the command
78208         line.
78209
78210 2005-10-15  Simon Josefsson  <jas@extundo.com>
78211
78212         * modules/rijndael-tests: New file.
78213
78214         * modules/rijndael: New file.
78215
78216 2005-10-15  Simon Josefsson  <jas@extundo.com>
78217
78218         * m4/rijndael.m4: New file.
78219
78220 2005-10-15  Simon Josefsson  <jas@extundo.com>
78221
78222         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78223
78224         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78225
78226 2005-10-14  Simon Josefsson  <jas@extundo.com>
78227
78228         * tests/test-arcfour.c: New file.
78229
78230         * modules/arcfour, modules/arcfour-tests: New files.
78231
78232 2005-10-14  Simon Josefsson  <jas@extundo.com>
78233
78234         * m4/arcfour.m4: New file.
78235
78236 2005-10-14  Simon Josefsson  <jas@extundo.com>
78237
78238         * lib/arcfour.h, lib/arcfour.c: New files.
78239
78240 2005-10-14  Roland McGrath  <roland@redhat.com>
78241
78242         Import from libc.  [BZ #1331]
78243         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78244         macro argument.
78245         Reported by Matej Vela <vela@debian.org>.
78246
78247 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78248
78249         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78250         include <wchar.h>; no longer needed.
78251
78252 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78253
78254         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78255
78256 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78257         and  Ulrich Drepper  <drepper@redhat.com>
78258
78259         Import from libc.
78260         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78261         instead of inline stream orientation test and two separate
78262         function calls.  Pay no attention to USE_IN_LIBIO.
78263
78264 2005-10-13  Simon Josefsson  <jas@extundo.com>
78265
78266         * modules/gc-hmac-md5-tests: New file.
78267
78268         * tests/test-gc-hmac-sha1.c: New file.
78269
78270         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78271
78272         * modules/gc-hmac-md5-tests: New file.
78273
78274         * tests/test-gc-md5.c: New file.
78275
78276         * modules/gc-md5-tests: New file.
78277
78278 2005-10-13  Simon Josefsson  <jas@extundo.com>
78279
78280         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78281         Move memory allocation outside of loop.
78282
78283 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78286         intermediate directory is in a read-only file system.  Problem
78287         reported by Eric Blake.
78288
78289 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78290
78291         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78292
78293 2005-10-12  Simon Josefsson  <jas@extundo.com>
78294
78295         * tests/test-hmac-sha1.c: New file.
78296
78297         * modules/hmac-sha1-tests: New file.
78298
78299         * modules/hmac-sha1: New file.
78300
78301 2005-10-12  Simon Josefsson  <jas@extundo.com>
78302
78303         * modules/gc-sha1: New file.
78304
78305 2005-10-12  Simon Josefsson  <jas@extundo.com>
78306
78307         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78308
78309         * tests/test-gc-pbkdf2-sha1.c: New file.
78310
78311 2005-10-12  Simon Josefsson  <jas@extundo.com>
78312
78313         * modules/gc-md5, modules/gc-hmac-md5: New files.
78314
78315         * modules/gc (Files): Remove md5, memxor and hmac files.
78316
78317 2005-10-12  Simon Josefsson  <jas@extundo.com>
78318
78319         * m4/gc-pbkdf2-sha1.m4: New file.
78320
78321         * m4/gc-hmac-sha1.m4: New file.
78322
78323         * m4/gc-sha1: New file.
78324
78325         * m4/hmac-sha1.m4: New file.
78326
78327 2005-10-12  Simon Josefsson  <jas@extundo.com>
78328
78329         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78330
78331         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78332
78333 2005-10-12  Simon Josefsson  <jas@extundo.com>
78334
78335         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78336         suggested by Bruno Haible <bruno@clisp.org>.
78337
78338 2005-10-12  Simon Josefsson  <jas@extundo.com>
78339
78340         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78341
78342 2005-10-12  Simon Josefsson  <jas@extundo.com>
78343
78344         * lib/gc-pbkdf2-sha1.c: New file.
78345
78346         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78347
78348 2005-10-12  Simon Josefsson  <jas@extundo.com>
78349
78350         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78351
78352         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78353
78354 2005-10-12  Simon Josefsson  <jas@extundo.com>
78355
78356         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78357         GC_USE_HMAC_MD5, respectively.
78358
78359         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78360         (gc_md5): Fix typo.
78361
78362         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78363
78364         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78365
78366         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78367
78368 2005-10-12  Bruno Haible  <bruno@clisp.org>
78369
78370         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78371         Reported by Stepan Kasal <kasal@ucw.cz>.
78372
78373 2005-10-11  Simon Josefsson  <jas@extundo.com>
78374
78375         * tests/test-crc.c: New file.
78376
78377         * modules/crc, modules/crc-tests: New files.
78378
78379 2005-10-11  Simon Josefsson  <jas@extundo.com>
78380
78381         * m4/crc.m4: New file.
78382
78383 2005-10-11  Simon Josefsson  <jas@extundo.com>
78384
78385         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78386
78387         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78388
78389         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78390
78391 2005-10-11  Simon Josefsson  <jas@extundo.com>
78392
78393         * lib/crc.h, lib/crc.c: New files.
78394
78395         * lib/gc.h (gc_hash_buffer): Add doc.
78396
78397 2005-10-11  Bruno Haible  <bruno@clisp.org>
78398
78399         * modules/c-strcasestr: New file.
78400         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78401
78402 2005-10-11  Bruno Haible  <bruno@clisp.org>
78403
78404         * modules/c-strcase: New file.
78405         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78406
78407 2005-10-11  Bruno Haible  <bruno@clisp.org>
78408
78409         * lib/strcasecmp.c: Include limits.h.
78410         (strcasecmp): Avoid integer overflow on exotic platforms.
78411         * lib/strncasecmp.c: Include limits.h.
78412         (strncasecmp): Avoid integer overflow on exotic platforms.
78413         Reported by Paul Eggert.
78414
78415 2005-10-11  Bruno Haible  <bruno@clisp.org>
78416
78417         * lib/c-strcasestr.h: New file, from GNU gettext.
78418         * lib/c-strcasestr.c: New file, from GNU gettext.
78419
78420 2005-10-11  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/c-strcase.h: New file, from GNU gettext.
78423         * lib/c-strcasecmp.c: New file, from GNU gettext.
78424         * lib/c-strncasecmp.c: New file, from GNU gettext.
78425
78426 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * modules/mempcpy (License): GPL -> LGPL.
78429         * modules/strchrnul (License): Likewise.
78430         * modules/sysexits (License): Likewise.
78431
78432 2005-10-08  Simon Josefsson  <jas@extundo.com>
78433
78434         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78435
78436 2005-10-07  Simon Josefsson  <jas@extundo.com>
78437
78438         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78439
78440 2005-10-06  Simon Josefsson  <jas@extundo.com>
78441
78442         * tests/test-hmac-md5.c: New file.
78443
78444         * modules/hmac-md5-tests: New file.
78445
78446         * modules/hmac-md5: New file.
78447
78448 2005-10-06  Simon Josefsson  <jas@extundo.com>
78449
78450         * m4/hmac-md5.m4: New file.
78451
78452         * m4/memxor.m4: Require gl_C_RESTRICT.
78453
78454 2005-10-06  Simon Josefsson  <jas@extundo.com>
78455
78456         * lib/memxor.c (memxor): Avoid casts and warnings.
78457
78458 2005-10-06  Simon Josefsson  <jas@extundo.com>
78459
78460         * lib/hmac-md5.c: New file.
78461
78462         * lib/hmac.h: New file.
78463
78464 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78465
78466         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78467         promotes to int, not unsigned int, to catch the AIX 5.3
78468         compiler bug.
78469
78470 2005-10-05  Simon Josefsson  <jas@extundo.com>
78471
78472         * modules/memxor: New file.
78473
78474         * modules/iconv (Files): Move config.rpath to havelib, it is used
78475         there.
78476
78477         * modules/havelib (Files): Add config.rpath.
78478
78479 2005-10-05  Simon Josefsson  <jas@extundo.com>
78480
78481         * m4/memxor.m4: New file.
78482
78483 2005-10-05  Simon Josefsson  <jas@extundo.com>
78484
78485         * lib/memxor.c (memxor): Fix compiler error.
78486
78487         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78488         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78489
78490         * lib/memxor.h, lib/memxor.c: New files.
78491
78492         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78493         we assume all systems have it, suggested by Jim Meyering
78494         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78495         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78496         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78497         same reasons.
78498
78499 2005-10-05  Simon Josefsson  <jas@extundo.com>
78500
78501         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78502
78503 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78504
78505         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78506         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78507         needed, since the source code now assumes these .h files.
78508
78509 2005-10-05  Derek Price  <derek@ximbiot.com>
78510
78511         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78512
78513 2005-10-05  Bruno Haible  <bruno@clisp.org>
78514
78515         * modules/stdint (License): Change to LGPL.
78516
78517 2005-10-04  Simon Josefsson  <jas@extundo.com>
78518
78519         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78520         D. Baushke" <mdb@gnu.org>.
78521
78522 2005-10-04  Bruno Haible  <bruno@clisp.org>
78523
78524         * lib/verify.h (verify_true): Provide alternative definition for C++.
78525
78526 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78527
78528         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78529         (SSIZE_MAX): New macro, if not already defined.
78530         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78531         than 2 GiB.
78532
78533 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         Sync from coreutils.
78536         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78537         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78538         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78539         ULLONG_MAX doesn't work with 2.7.2.1.
78540
78541 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78542
78543         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78544         From Ben Pfaff.
78545
78546         * modules/exclude (Depends-on): Depend on verify.
78547         * modules/strtoimax (Depends-on): Likewise.
78548         * modules/utimecmp (Depends-on): Likewise.
78549
78550 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78551
78552         * lib/exclude.c: Include verify.h.
78553         (verify): Remove.  All callers changed to use verify.h's version.
78554         * lib/strtoimax.c: Likewise.
78555         * lib/utimecmp.c: Likewis.e
78556
78557         Sync from coreutils.
78558         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78559         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78560         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78561         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78562         bother returning ENOSYS if settimeofday or stime fails; just let
78563         them return whatever errno they want to return.
78564         * lib/utimens.c: Include unistd.h, for dup2.
78565         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78566         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78567
78568 2005-10-02  Jim Meyering  <jim@meyering.net>
78569
78570         Sync from coreutils.
78571         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78572         from glibc-2.2.5 that fails for read-only files.
78573
78574 2005-10-02  Jim Meyering  <jim@meyering.net>
78575
78576         Sync from coreutils.
78577         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78578         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78579         `#if HAVE_CONFIG_H'.
78580         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78581         Remove AT_FDCWD test.
78582         Do not consume the fd unless successful.
78583         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78584         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78585         block, so that we don't even try to compile it if settimeofday is
78586         available.  This works around a compilation failure on OSF1 V5.1,
78587         due to stime requiring a `long int*' while tv_sec is `int'.
78588
78589 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78590
78591         Sync from coreutils.
78592         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78593         against `yes', rather than just testing for nonempty.
78594
78595 2005-10-01  Simon Josefsson  <jas@extundo.com>
78596
78597         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
78598         and Darwin.
78599
78600         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
78601         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
78602         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
78603         freeaddrinfo and gai_strerror are declared by the POSIX headers.
78604         Check if struct addrinfo is declared.
78605
78606 2005-10-01  Simon Josefsson  <jas@extundo.com>
78607
78608         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
78609         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
78610         AI_* and EAI_* definitions.  Protect function declarations.
78611
78612 2005-10-01  Jim Meyering  <jim@meyering.net>
78613
78614         Sync from coreutils.
78615
78616         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
78617         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
78618         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
78619         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78620         in the inet and nsl libraries.  Required on Solaris 5.7.
78621
78622 2005-10-01  Jim Meyering  <jim@meyering.net>
78623
78624         Sync from coreutils.
78625         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78626         in the inet and nsl libraries.  Required on Solaris 5.7.
78627
78628 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
78629
78630         * lib/getdelim.c (getdelim): Remove unused variables.
78631
78632 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78633
78634         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
78635         so that the code works even with ancient cpp.  Portability problem
78636         with GCC 2.7.2.1 reported by Thomas M.Ott.
78637
78638 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78639
78640         * modules/regex (Depends-on): Add strcase.
78641
78642         * modules/gethostname (Licence): Change from GPL to LGPL, since
78643         gethostname.c is a trivial implementation of a standard library
78644         function.
78645         * modules/poll (License): Change from GPL to LGPL, since it's
78646         derived from LGPL code.
78647
78648 2005-09-27  Jim Meyering  <jim@meyering.net>
78649
78650         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
78651         HAVE_CONFIG_H.
78652
78653         * lib/intprops.h (signed_type_or_expr__): Define.
78654         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
78655         for unsigned types.
78656
78657 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         * lib/verify.h (verify_expr): Remove, replacing with:
78660         (verify_true): New macro that returns true instead of void.
78661         (verify_type__): Remove.
78662         (verify): Use verify_true rather than verify_type__.
78663
78664 2005-09-26  Bruno Haible  <bruno@clisp.org>
78665
78666         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
78667         is necessary.
78668         (lib_SOURCES): Remove mbchar.c.
78669         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
78670         (Files): Add m4/mbrtowc.m4.
78671         * modules/mbiter: Likewise.
78672         * modules/mbuiter: Likewise.
78673
78674 2005-09-26  Bruno Haible  <bruno@clisp.org>
78675
78676         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
78677         compile mbchar.c if they are not both present.
78678         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
78679         * m4/mbiter.m4 (gl_MBITER): Likewise.
78680         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
78681         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
78682         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
78683
78684 2005-09-25  Jim Meyering  <jim@meyering.net>
78685
78686         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
78687         also uses socklen_t.
78688
78689 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
78690
78691         * lib/utimens.c (ENOSYS): Define if not already defined.
78692         (futimens): Support having a null PATH if the file descriptor
78693         is nonnegative.
78694
78695         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
78696         Remove.
78697         (__attribute): Define to empty unless GCC 3.1 or later.
78698         This works around a core dump on OpenBSD 3.4, which has GCC
78699         2.95.3, which dumps core when given __attribute__(()).  It also
78700         simplifies other tests, since we really don't want to bother with
78701         worrying about which ancient version of GCC supported what.
78702         Original problem reported by Yoann Vandoorselaere, with part of
78703         the fix suggested by Derek Price.
78704
78705 2005-09-24  Jim Meyering  <jim@meyering.net>
78706
78707         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
78708         so we can once again use a positive bitfield width of 1 -- now we
78709         don't have to explain why we were using a bitfield width of 2.
78710
78711 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78712
78713         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
78714         and similarly for the other external symbols.  Problem reported
78715         by James Gallager.
78716
78717         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
78718         bug reported by Jim Meyering.
78719
78720         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
78721         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
78722         not needed, since socklen is a prerequisite module.
78723
78724 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78725
78726         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
78727         Problem reported by Eric Blake.
78728         (getaddrinfo): Initialize se so that it's not garbage.
78729         Redo internal storage allocation so that it doesn't make unportable
78730         assumptions about alignment.
78731         Fix a memory leak.
78732
78733         * lib/utimens.c (futimens): Use futimesat if available.
78734         Prefer it to futimes since it doesn't have the futimes bug.
78735
78736         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
78737         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78738         Instead, declare a function that returns a pointer to an array,
78739         and use verify_type__ to declare the size of the array.
78740         Problem and germ of a solution reported by Bruno Haible.
78741         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78742         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78743
78744 2005-09-23  Jim Meyering  <jim@meyering.net>
78745
78746         Sync from coreutils.
78747         Correct build failure (socklen_t not defined) on at least
78748         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
78749         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
78750
78751 2005-09-23  Jim Meyering  <jim@meyering.net>
78752
78753         * modules/getaddrinfo (Depends-on): Add socklen.
78754
78755 2005-09-23  Bruno Haible  <bruno@clisp.org>
78756
78757         * tests/test-verify.c: New file.
78758
78759 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78760
78761         Sync from coreutils.
78762
78763         * modules/argmatch (Depends-on): Add verify.
78764         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
78765         unistd-safer.
78766         * modules/save-cwd (Depends-on): Likewise.
78767
78768         * modules/openat (Files): Add lib/openat-die.c.
78769         (Depends-on): Remove error, exitfail.
78770         Add dirname.
78771
78772         * modules/verify: New file.
78773         * MODULES.html.sh (Diagnostics <assert.h>): New section,
78774         with "verify" module.
78775
78776 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78777
78778         Sync from coreutils.
78779
78780         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
78781         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
78782         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
78783         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
78784         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
78785         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
78786         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
78787         Don't bother checking for string.h, stdlib.h, unistd.h.
78788         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
78789         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
78790         module's job.
78791         * m4/jm-macros.m4 (gl_MACROS): Likewise.
78792         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
78793
78794         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
78795         (gl_GETDATE): Use it.
78796
78797         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
78798
78799 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         Sync from coreutils.
78802
78803         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
78804         stat-time.h.
78805         * lib/argmatch.h: Include verify.h
78806         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
78807         (ARGMATCH_ASSERT): Remove; unused.
78808         * lib/canonicalize.c: Assume STDC_HEADERS.
78809         * lib/exclude.c: Include "strcase.h".
78810         * lib/regex_internal.h [!defined _LIBC]: Likewise.
78811         * lib/getusershell.c: Include stdio--.h rather than stdio.h
78812         and stdio-safer.h.
78813         (getusershell): Call fopen, not fopen_safer.
78814         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
78815         Do not include unistd-safer.h.
78816         (save_cwd): Don't call fd_safer; no longer needed
78817         now that we include fcntl--.h.
78818
78819         * lib/getdate.y (relative_time): New type.
78820         (RELATIVE_TIME_0): New constant.
78821         (parser_control): Use relative_time instead of doing it ourselves.
78822         (%union): Add new relative_time rel member.
78823         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
78824         Now typeless.
78825         (relunit, relunit_snumber): Now of type rel.
78826         (zone, rel, relunit, get_date): Adjust to above changes.
78827
78828         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
78829         Do not include unistd-safer.h.
78830         (getloadavg): Don't call fd_safer; no longer needed
78831         now that we include fcntl--.h.
78832
78833         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
78834         (make_dir_parents): Treat ENOSYS like EEXIST.
78835
78836         Improve quality of diagnostics on restore_cwd failure.
78837         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
78838         (make_dir_parents): Last arg is now int * (for errno), not bool *.
78839         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
78840         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
78841         each time through the loop.  Do not diagnose restore_cwd failure;
78842         that is the caller's job (and perhaps the caller does not care).
78843
78844         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
78845         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
78846         If the file already exists but is not a directory, don't bother
78847         to try to make its parents.
78848         Close potential file descriptor leak if we can't chdir("/") (!).
78849         Don't always return true if chdir($PWD) fails; return true only
78850         if the requested action was done successfully (except for the
78851         chdir($PWD)).
78852         Don't log final directory unless we actually made it.
78853         Refactor to avoid duplicate code to fix up permissions.
78854         Don't attempt to fix up parent permissions if chdir($PWD) fails.
78855
78856         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
78857         to make it a bit faster and (I hope) clearer.
78858         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
78859         Fix bug in formats like %2N.
78860
78861         * lib/verify.h: New file.
78862
78863 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78864
78865         Sync from coreutils.
78866         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
78867
78868 2005-09-22  Jim Meyering  <jim@meyering.net>
78869
78870         Sync from coreutils.
78871
78872         * m4/lstat.m4 (gl_FUNC_LSTAT):
78873         Use AC_LIBSOURCES to require lstat.c and lstat.h.
78874         Remove obsolete comment.
78875         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
78876         * m4/xstrtod.m4: Likewise.
78877
78878         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
78879
78880 2005-09-22  Jim Meyering  <jim@meyering.net>
78881
78882         Sync from coreutils.
78883
78884         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
78885
78886         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
78887         the .tm_year member, since otherwise gcc-4.0 would now warn about
78888         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
78889
78890         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
78891         order to avoid an unsuppressible warning from gcc on 64-bit systems.
78892
78893         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
78894         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
78895         when run in a time zone for which daylight savings time is in effect
78896         for the starting date.
78897
78898         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
78899         stop us from restricting permissions of just-created absolute-named
78900         directories.
78901         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
78902         to restore initial working directory.
78903         * lib/mkdir-p.c (make_dir_parents): New parameter:
78904         different_working_dir, to tell caller if/when we change the working
78905         directory and are unable to return to the initial one.
78906         * lib/mkdir-p.h (make_dir_parents): Update prototype.
78907         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
78908         `return false'.  This fixes a bug introduced on 2004-07-30.
78909
78910         * lib/openat.c (fdopendir): Be sure to close the supplied
78911         file descriptor before returning.  This makes our replacement
78912         implementation a little closer to Solaris's, where fdopendir
78913         ties the file descriptor to the returned DIR* pointer.
78914         * lib/openat.c (unlinkat): New function.
78915         * lib/openat.h (unlinkat): Add prototype.
78916         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
78917         (openat_restore_fail): Rename from openat_restore_die.
78918         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
78919
78920         Provide an alternative to exiting immediately upon save_cwd or
78921         restore_cwd failure.  Now, an application can arrange e.g.,
78922         to perform a longjump in that case.
78923         * lib/openat.c: Include dirname.h.
78924         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
78925         (rpl_openat, fdopendir, fstatat): Call openat_save_die
78926         and openat_restore_die rather than calling error directly.
78927         Don't include "error.h" or "exitfail.h"; they're no longer needed.
78928
78929         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
78930         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
78931         define.
78932
78933         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
78934         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
78935                             int utc, int nanoseconds);
78936         Background:
78937         date should not have to allocate a megabyte of virtual memory to
78938         handle a format argument like +%1048575T.  When implemented with
78939         strftime, it must allocate such a buffer, use strftime to fill it
78940         in, print it, then free it.
78941         With fprintftime, it simply prints everything and exits.
78942         With no need for memory allocation, that's one fewer way to fail.
78943         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
78944         optional field width, not before, so we accept %9:z, not %:9z.
78945         (my_strftime): Be sure to use L_('x') for literals.
78946
78947         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78948         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78949         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78950         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78951         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78952         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78953         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78954         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78955         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78956         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78957         * lib/xgethostname.c, lib/xreadlink.c:
78958         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78959
78960         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78961         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78962         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78963         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78964         and don't include <sys/file.h>).
78965
78966 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78967
78968         Sync from coreutils.
78969
78970         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78971         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78972         [!LDAV_DONE]: Avoid unused variable warning.
78973
78974 2005-09-21  Bruno Haible  <bruno@clisp.org>
78975
78976         * lib/unicodeio.h (unicode_to_mb): New declaration.
78977
78978 2005-09-20  Derek Price  <derek@ximbiot.com>
78979
78980         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78981         getaddrinfo.h.
78982
78983 2005-09-20  Bruno Haible  <bruno@clisp.org>
78984
78985         * gnulib-tool: Remove trailing slashes from the values specified for
78986         --source-base, --m4-base, --tests-base, --aux-dir.
78987         Suggested by Simon Josefsson <jas@extundo.com>.
78988
78989 2005-09-20  Bruno Haible  <bruno@clisp.org>
78990
78991         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78992         func_modules_to_filelist, func_import, func_create_testdir): Make all
78993         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78994         change when gnulib-tool is invoked in a different locale.
78995
78996 2005-09-19  Simon Josefsson  <jas@extundo.com>
78997
78998         * m4/socklen.m4: Fix typo.
78999
79000 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79001
79002         Use a consistent style for including <config.h>.
79003         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79004         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79005         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79006         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79007         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79008         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79009         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79010         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79011         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79012         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79013         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79014         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79015         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79016         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79017         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79018         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79019         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79020         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79021         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79022         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79023         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79024         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79025         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79026         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79027         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79028         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79029         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79030         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79031         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79032         lib/xstrtoumax.c, lib/yesno.c:
79033         Standardize inclusion of config.h.
79034         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79035         lib/inttostr.h:  Removed inclusion of config.h from header files.
79036         * lib/inttostr.c:  Adjusted in-tree users.
79037         * lib/timespec.h: Remove superfluous warning to include config.h.
79038         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79039         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79040         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79041         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79042         config.h with HAVE_CONFIG_H.
79043
79044 2005-09-19  Jim Meyering  <jim@meyering.net>
79045
79046         * modules/pathmax (License): Change to LGPL.
79047
79048 2005-09-19  Derek Price  <derek@ximbiot.com>
79049
79050         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79051
79052 2005-09-19  Bruno Haible  <bruno@clisp.org>
79053
79054         * gnulib-tool (import): Provide default for --tests-base.
79055
79056 2005-09-19  Bruno Haible  <bruno@clisp.org>
79057
79058         * doc/quote.texi: New file, extracted from gnulib.texi.
79059         * doc/ctime.texi: New file, extracted from gnulib.texi.
79060         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79061         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79062         * doc/gnulib.texi: Include them.
79063
79064 2005-09-18  Bruno Haible  <bruno@clisp.org>
79065
79066         Portability fix.
79067         * gnulib-tool (func_readlink): New function.
79068         (func_ln_if_changed): Use it.
79069
79070 2005-09-18  Bruno Haible  <bruno@clisp.org>
79071
79072         * gnulib-tool: Support --with-tests also with --import.
79073         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79074         (func_import): Use variables $testsbase and $inctests. Emit a
79075         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79076         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79077         SUBDIRS += $testsdir.
79078         (func_create_testdir): Update.
79079
79080 2005-09-18  Bruno Haible  <bruno@clisp.org>
79081
79082         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79083         instead of $dry_run.
79084         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79085         (func_ln_if_changed): Don't handle dry-run here.
79086         (func_import): In dry-run mode, detect more precisely which actions
79087         would be performed, and don't use "...ing" verbs.
79088
79089 2005-09-18  Bruno Haible  <bruno@clisp.org>
79090
79091         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79092         (func_import): Use join on two temporary files instead of three nested
79093         loops, in order to determine which files are new or old.
79094
79095 2005-09-18  Bruno Haible  <bruno@clisp.org>
79096
79097         * gnulib-tool (func_import): Comment out code that spits out the
79098         new files with --dry-run.
79099
79100 2005-09-18  Bruno Haible  <bruno@clisp.org>
79101
79102         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79103
79104 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * lib/stat-time.h: New file.
79107         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79108         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79109         in a different way.
79110         (timespec_cmp): New function.
79111         * lib/utimecmp.c: Include stat-time.h.
79112         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79113         members exist, not on the obsolescent ST_MTIM_NSEC.
79114         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79115
79116 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79117
79118         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79119
79120 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79121
79122         * MODULES.html.sh (File system functions): Add stat-time.
79123         * modules/stat-time: New file.
79124         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79125         is now done in a different way, by the stat-time module.
79126         * modules/utimecmp (Depends-on): Add stat-time.
79127
79128 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79129
79130         * m4/st_mtim.m4: Remove.  Superseded by...
79131         * m4/stat-time.m4: New file.
79132         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79133         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79134
79135 2005-09-15  Derek Price  <derek@ximbiot.com>
79136
79137         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79138
79139 2005-09-15  Derek Price  <derek@ximbiot.com>
79140
79141         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79142         * lib/regex_internal.c: Ditto, using this...
79143         (__GNUC_PREREQ): ...new macro.
79144         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79145         using...
79146         (__GNUC_PREREQ): ...this new macro.
79147
79148         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79149
79150 2005-09-15  Derek Price  <derek@ximbiot.com>
79151             Paul Eggert  <eggert@cs.ucla.edu>
79152
79153         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79154         changes, consolidating in...
79155         * lib/regex_internal.h: ...this file.
79156
79157 2005-09-13  Jim Meyering  <jim@meyering.net>
79158
79159         * lib/canon-host.c: Filter through gnu indent and reword comments
79160         slightly.
79161         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79162
79163 2005-09-13  Derek Price  <derek@ximbiot.com>
79164
79165         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79166         failure.
79167         Reported by Jim Meyering  <jim@meyering.net>.
79168
79169 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79170
79171         * lib/base64.c: Typo.
79172         (base64_encode): Put b64str in initialized data section.
79173
79174 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79175
79176         Merge glibc and coreutils changes into gnulib, plus a few
79177         extra fixes.
79178         * lib/md5.c: Use #error rather than a string.
79179         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79180         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79181         (__attribute__): Define to empty for non recent-GCC.
79182         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79183         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79184         Renamed from their non-__ counterparts, with new macros replacing
79185         them if not _LIBC.  Add __THROW attribute.
79186         (rol): Remove.
79187         (struct md5_ctx): Align buffer if using GCC.
79188         * lib/sha1.h (struct sha1_ctx): Likewise.
79189         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79190         The old name was backwards.
79191         (NOTSWAP): Remove; not used.
79192         (rol): New macro, moved here from md5.h.
79193         (sha1_process_block): Remove a FIXME that doesn't make sense.
79194
79195 2005-09-12  Derek Price  <derek@ximbiot.com>
79196
79197         Return usable errors from canon-host.
79198         * lib/canon-host.h: New file.
79199         * lib/canon-host.c (canon_host): Wrap...
79200         (canon_host_r): ...this new function, which now relies exclusively on
79201         getaddrinfo.
79202         (ch_strerror): New function.
79203         (last_cherror): New global.
79204         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79205         interface.
79206         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79207         void *.
79208         (freeaddrinfo): Free ai->ai_canonname when set.
79209
79210 2005-09-12  Derek Price  <derek@ximbiot.com>
79211
79212         Make canon-host require getaddrinfo.
79213         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79214         AC_LIBSOURCE canon-host.h.  Call...
79215         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79216         gl_GETADDRINFO.
79217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79218
79219 2005-09-12  Derek Price  <derek@ximbiot.com>
79220
79221         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79222         LGPL.
79223         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79224
79225 2005-09-12  Derek Price  <derek@ximbiot.com>
79226
79227         * lib/gai_strerror.c: Include config.h when available.  Include
79228         getaddrinfo.h before other headers to test interface.
79229         Reported by Larry Jones <lawrence.jones@ugs.com>.
79230
79231 2005-09-12  Derek Price  <derek@ximbiot.com>
79232             Paul Eggert  <eggert@cs.ucla.edu>
79233
79234         * modules/glob (Files): Add glob-libc.h.
79235
79236 2005-09-12  Derek Price  <derek@ximbiot.com>
79237             Paul Eggert  <eggert@cs.ucla.edu>
79238
79239         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79240         glob_.h, glob-libc.h.
79241         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79242
79243 2005-09-12  Derek Price  <derek@ximbiot.com>
79244             Paul Eggert  <eggert@cs.ucla.edu>
79245
79246         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79247         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79248         protecting things that should be done only in gnulib contexts.
79249         * lib/glob_.h: New file, containing only the glob things needed for
79250         gnulib.
79251         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79252         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79253         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79254         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79255         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79256         and to respect the namespace rules better.
79257
79258 2005-09-08  Simon Josefsson  <jas@extundo.com>
79259
79260         * modules/socklen: New file.
79261
79262 2005-09-08  Simon Josefsson  <jas@extundo.com>
79263
79264         * m4/socklen.m4: New file.
79265
79266 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79267
79268         * modules/utimens (Files): Add m4/utimbuf.m4, since
79269         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79270         Reported by Sergey Poznyakoff.
79271
79272 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79275         definitions, since that's the preferred style in glibc.
79276         Fix a minor spacing issue, and update copyright notice to match
79277         glibc's.
79278
79279 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79280
79281         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79282
79283 2005-09-06  Simon Josefsson  <jas@extundo.com>
79284
79285         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79286         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79287
79288 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79289
79290         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79291         warning.
79292
79293 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79294
79295         * config/srclist.txt: Add glibc bug 1302.
79296
79297 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79298
79299         Change bitset word type from unsigned int to unsigned long int,
79300         as this has better performance on typical 64-bit hosts.
79301         Port bitset code to hosts with unusual word sizes.
79302         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79303         (build_collating_symbol):
79304         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79305         argument is a bitset.  This is merely a style issue, but it makes
79306         it clearer that an entire array is expected.
79307         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79308         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79309         Port to the case where bitset_word is not the same as unsigned int.
79310         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79311         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79312         Likewise.
79313         * lib/regexec.c (check_dst_limits_calc_pos_1,
79314         check_subexp_matching_top):
79315         (build_trtable, group_nodes_into_DFAstates):
79316         Likewise.
79317         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79318         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79319         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79320         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79321         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79322         * lib/regcomp.c (optimize_subexps, lower_subexp):
79323         Work even if bitset_word has holes in its bitwise representation.
79324         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79325         * lib/regexec.c (check_dst_limits_calc_pos_1,
79326         check_subexp_matching_top):
79327         Likewise.
79328         * lib/regex_internal.c (re_string_reconstruct):
79329         Don't assume UCHAR_MAX == 255.
79330         * lib/regex_internal.h (bitset_set_all): Likewise.
79331         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79332         All uses changed.
79333         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79334         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79335         All uses changed.
79336         (BITSET_WORD_MAX): New macro.
79337         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79338         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79339         (bitset_empty, bitset_copy):
79340         Prefer sizeof (bitset) to multiplying it out ourselves.
79341         (bitset_not_merge): Remove; unused.
79342         (bitset_contain): Return bool, not unsigned int with one bit on.
79343         All callers changed.
79344         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79345         alignment than re_node_set; do this by defining a new internal
79346         type struct dests_alloc and using it to allocate memory.
79347
79348 2005-09-05  Bruno Haible  <bruno@clisp.org>
79349
79350         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79351         links.
79352
79353 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79354
79355         * modules/size_max (Makefile.am): Add size_max.h
79356
79357 2005-09-04  Derek Price  <derek@ximbiot.com>
79358
79359         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79360
79361 2005-09-03  Simon Josefsson  <jas@extundo.com>
79362
79363         * gnulib-tool: Fix typo.
79364
79365 2005-09-03  Simon Josefsson  <jas@extundo.com>
79366
79367         * config/srclist.txt: Add glibc bug 1293.
79368
79369 2005-09-03  Derek Price  <derek@ximbiot.com>
79370
79371         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79372         From Larry Jones <lawrence.jones@ugs.com>.
79373
79374 2005-09-02  Simon Josefsson  <jas@extundo.com>
79375
79376         * modules/socklen: New file.
79377
79378 2005-09-02  Simon Josefsson  <jas@extundo.com>
79379
79380         * modules/havelib: New module.
79381
79382         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79383         Use havelib.
79384
79385 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79386
79387         Check for arithmetic overflow when calculating sizes, to prevent
79388         some buffer-overflow issues.  These patches are conservative, in the
79389         sense that when I couldn't determine whether an overflow was possible,
79390         I inserted a run-time check.
79391         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79392         macros.
79393         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79394         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79395         (re_xnrealloc, re_x2nrealloc): New inline functions.
79396         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79397         parse_bracket_exp):
79398         (build_equiv_class, build_charclass): Check for arithmetic overflow
79399         in size expression calculations.
79400         * lib/regex_internal.c (re_string_realloc_buffers):
79401         (build_wcs_upper_buffer, re_node_set_add_intersect):
79402         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79403         (re_dfa_add_node, register_state): Likewise.
79404         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79405         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79406         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79407         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79408
79409 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79412         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79413
79414 2005-09-02  Bruno Haible  <bruno@clisp.org>
79415
79416         Support for lib vs. lib64 distinction on biarch platforms.
79417         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79418         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79419         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79420
79421 2005-09-02  Bruno Haible  <bruno@clisp.org>
79422
79423         * gnulib-tool (import): In the other first-use case, provide defaults
79424         as well.
79425
79426 2005-09-02  Bruno Haible  <bruno@clisp.org>
79427
79428         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79429         patches not yet found in the latest gettext release.
79430
79431 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79432
79433         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79434         to avoid a collision with bits/local_lim.h in glibc.
79435         All uses changed.  Problem reported by Dmitry V. Levin in
79436         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79437
79438         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79439         bugs in int versus size_t comparisons.
79440         (re_string_context_at): Fix bug where the code assumed that
79441         Idx is signed.
79442
79443         Use bool where appropriate.
79444         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79445         All callers changed.
79446         (calc_eclosure_iter): Likewise, for ROOT arg.
79447         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79448         (build_charclass_op): Likewise, for NON_MATCH arg.
79449         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79450         (re_string_construct_common): Likewise, for ICASE arg.
79451         * lib/regexec.c (re_search_2_stub, re_search_stub):
79452         Likewise, for RET_LEN arg.
79453         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79454         (set_regs): Likewise, for FL_BACKTRACK arg.
79455         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79456         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79457         (calc_eclosure_iter, parse_bracket_exp):
79458         Use bool for internal variables that are booleans.
79459         * lib/regexec.c (re_search_internal, check_matching,
79460         proceed_next_node):
79461         (set_regs, build_sifted_states, sift_states_bkref):
79462         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79463         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79464         (find_collation_sequence_value):
79465         Likewise.
79466         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79467         (re_node_set_compare):
79468         Return bool, not int. All callers changed.
79469         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79470         (build_trtable, check_node_accept): Likewise.
79471         * lib/regex_internal.h: Include stdbool.h.
79472
79473         Fix bugs uncovered when converting to bool.
79474         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79475         failure instead of charging ahead blindly.
79476         * lib/regex_internal.c (register_state): Likewise.
79477         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79478         for freeing internal storage.
79479         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79480         bitset pieces used as boolean, to avoid undefined behavior
79481         on hosts that do int overflow checking.
79482
79483 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79484
79485         * config/srclist.txt: Add glibc bugs 1285-1287.
79486
79487 2005-09-01  Jim Meyering  <jim@meyering.net>
79488
79489         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79490         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79491         Require gl_STAT_MACROS, too.
79492
79493 2005-09-01  Bruno Haible  <bruno@clisp.org>
79494
79495         * gnulib-tool (import): In the first-use case, provide defaults.
79496
79497 2005-09-01  Bruno Haible  <bruno@clisp.org>
79498
79499         * gnulib-tool (func_import): Remove the .tmp files.
79500
79501 2005-09-01  Bruno Haible  <bruno@clisp.org>
79502
79503         * gnulib-tool (func_import): Fix handling of symbolic links.
79504
79505 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79506
79507         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79508         old glibc regex code mishandles strings longer than 2**31 bytes.
79509         This patch fixes this when the regex code is used in gnulib
79510         (i.e., outside glibc).
79511
79512         This patch should not affect the use of the regex code inside
79513         glibc.  No doubt this problem also needs to be handled for glibc
79514         as well, but the result will be an incompatible change to the
79515         glibc ABI, and the old ABI will have to be supported too.  That
79516         can be the the subject for another patch.
79517
79518         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79519         governing whether the rest of this patch is active.  By default,
79520         the macro is disabled and the patch has no effect.
79521         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79522         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79523         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79524         (re_match_2, re_set_registers): Use the new types.
79525         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79526         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79527         New macros.
79528         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79529         (re_string_context_at, bin_tree_t, re_dfastate_t):
79530         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79531         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79532         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79533         (re_string_char_size_at, re_string_wchar_at):
79534         (re_string_elem_size_at):
79535         Use the new types and macros to port to 64-bit hosts.
79536         Use unsigned types for internal values, so that the code
79537         mostly works even for arrays larger than SSIZE_MAX.
79538         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79539         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79540         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79541         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79542         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79543         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79544         (calc_inveclosure, parse_dup_op, build_range_exp):
79545         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79546         (fetch_number, create_token_tree, mark_opt_subexp):
79547         Likewise.
79548         * lib/regex_internal.c (re_string_construct_common,
79549         create_ci_newstate):
79550         (create_cd_newstate, re_string_allocate, re_string_construct):
79551         (re_string_realloc_buffers, build_wcs_upper_buffer):
79552         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79553         (re_string_reconstruct, re_string_peek_byte_case):
79554         (re_string_fetch_byte_case, re_string_context_at):
79555         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79556         (re_node_set_init_copy, re_node_set_add_intersect):
79557         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79558         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79559         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79560         (re_acquire_state, re_acquire_state_context, register_state):
79561         Likewise.
79562         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79563         search_cur_bkref_entry):
79564         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79565         (re_search_internal, re_search_2_stub, re_search_stub)
79566         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79567         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79568         (update_cur_sifted_state, check_dst_limits):
79569         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79570         (check_subexp_limits, sift_states_bkref, merge_state_array):
79571         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79572         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79573         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79574         (expand_bkref_cache, check_node_accept_bytes):
79575         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79576         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79577         (acquire_init_state_context, check_halt_node_context):
79578         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79579         (sift_states_backward, clean_state_log_if_needed):
79580         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79581         (find_recover_state, transit_state_sb, transit_state_mb):
79582         (transit_state_bkref, build_trtable, match_ctx_clean):
79583         Likewise.
79584         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79585         to work around an assumption that REG_MISSING is negative.
79586
79587         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79588         (seek_collating_symbol_entry) [defined _LIBC]:
79589         (lookup_collation_sequence_value) [defined _LIBC]:
79590         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79591         Use prototypes rather than old-style function definitions.
79592         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79593         (transit_state_sb) [0]:
79594         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79595
79596         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
79597         rm_eo.
79598
79599         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
79600         (optimize_subexps, lower_subexp):
79601         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
79602         since the signed shift might overflow.  Use 1u<<31 instead.
79603         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79604         Likewise.
79605         * lib/regexec.c (check_dst_limits_calc_pos_1,
79606         check_subexp_matching_top): Likewise.
79607
79608         * lib/regcomp.c (optimize_subexps, lower_subexp):
79609         Use CHAR_BIT rather than 8, for clarity.
79610         * lib/regexec.c (check_dst_limits_calc_pos_1):
79611         (check_subexp_matching_top): Likewise.
79612         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
79613         have to worry about portability issues when shifting it left.
79614         Remove no-longer-needed test for table_size > 0.
79615         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
79616         in a word, as the resulting behavior is undefined.
79617         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
79618         in one case, a <= should have been an <, and in another case the
79619         whole test was missing.
79620         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
79621         the standard name CHAR_BIT.
79622         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
79623         this is not true on one's complement and signed-magnitude hosts.
79624
79625         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
79626         next_last_offset.
79627         (struct re_dfa_t): Remove unused member states_alloc.
79628         * lib/regcomp.c (init_dfa): Don't initialize unused members.
79629
79630 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
79633         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
79634         and large-file glibc and in 32-bit large-file Solaris.
79635
79636 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79637
79638         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
79639         lengths fit in regoff_t; this isn't true if regoff_t is the same
79640         width as size_t.
79641         * lib/regex.c (re_search_internal): 5th arg is LAST_START
79642         (= START + RANGE) instead of RANGE.  This avoids overflow
79643         problems when regoff_t is the same width as size_t.
79644         All callers changed.
79645         (re_search_2_stub): Check for overflow when adding the
79646         sizes of the two strings.
79647         (re_search_stub): Check for overflow when adding START
79648         to RANGE; if it occurs, substitute the extreme value.
79649
79650 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79651
79652         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
79653
79654 2005-08-31  Jim Meyering  <jim@meyering.net>
79655
79656         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
79657         a pointer-to-const.
79658         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
79659         (register_state): Likewise.
79660         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
79661         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79662         (group_nodes_into_DFAstates): Likewise.
79663
79664 2005-08-31  Jim Meyering  <jim@meyering.net>
79665
79666         * check-module: Add a FIXME comment.
79667
79668 2005-08-31  Eric Blake  <ebb9@byu.net>
79669
79670         * modules/unistd-safer (Files): Add unistd--.h.
79671         * modules/stdio-safer (Files): Add stdio--.h.
79672
79673 2005-08-31  Derek Price  <derek@ximbiot.com>
79674
79675         * lib/getdelim.c (getdelim): Return EOF on EOF.
79676         Reported by Larry Jones <lawrence.jones@ugs.com>.
79677
79678 2005-08-31  Bruno Haible  <bruno@clisp.org>
79679
79680         Avoid unnecessary diffs in the generated lib/Makefile.am.
79681         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
79682         the generated files.
79683         (func_import): Don't set cmd.
79684
79685 2005-08-31  Bruno Haible  <bruno@clisp.org>
79686
79687         * lib/strstr.c: Include <stddef.h>, for NULL.
79688         * lib/strcasestr.c: Likewise.
79689         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79690
79691 2005-08-31  Bruno Haible  <bruno@clisp.org>
79692
79693         * gnulib-tool: New option --macro-prefix.
79694         (func_import): Use macro_prefix.
79695         (import): Handle option --macro-prefix.
79696
79697 2005-08-31  Bruno Haible  <bruno@clisp.org>
79698
79699         * gnulib-tool (import): Rename most ac_* variables to cached_*.
79700         Also use new variables cached_lgpl, cached_libtool.
79701
79702 2005-08-31  Bruno Haible  <bruno@clisp.org>
79703
79704         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
79705         always instantiating them.
79706
79707 2005-08-31  Bruno Haible  <bruno@clisp.org>
79708
79709         * gnulib-tool (func_import): Read the previous cached settings
79710         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
79711         earlier added by gnulib but are now dropped. Warn when a gnulib file
79712         overwrites a non-gnulib file.
79713
79714 2005-08-31  Bruno Haible  <bruno@clisp.org>
79715
79716         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
79717         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
79718         projects that don't keep autogenerated files in CVS. Put into
79719         actioncmd only the specified modules, not the transitive closure.
79720
79721 2005-08-31  Bruno Haible  <bruno@clisp.org>
79722
79723         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
79724         Create directories that shall be filled.
79725         (import): Don't look for gl_* macros in configure.ac. Recurse across
79726         all directories containing a gnulib-cache.m4 files, if meaningful.
79727
79728 2005-08-31  Bruno Haible  <bruno@clisp.org>
79729
79730         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
79731         (import): Set seen_libtool when we see gl_LIBTOOL.
79732
79733 2005-08-31  Bruno Haible  <bruno@clisp.org>
79734
79735         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
79736         declaration macro definitions from generated gnulib.m4.
79737
79738 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79739
79740         * lib/iconvme.h: Add prototype for iconv_alloc.
79741
79742 2005-08-29  Simon Josefsson  <jas@extundo.com>
79743
79744         * lib/iconvme.c: Fix errno.
79745
79746 2005-08-29  Bruno Haible  <bruno@clisp.org>
79747
79748         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
79749         that it works when the directory contains spaces.
79750
79751 2005-08-29  Bruno Haible  <bruno@clisp.org>
79752
79753         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
79754
79755 2005-08-29  Bruno Haible  <bruno@clisp.org>
79756
79757         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
79758         Emit more advice.
79759
79760 2005-08-29  Bruno Haible  <bruno@clisp.org>
79761         and Stepan Kasal  <kasal@ucw.cz>
79762
79763         * check-module: If more parameters are given, check each of them
79764         separately; add more exceptions, as noted by Jim Meyering.
79765         (check_module): New procedure.
79766         (%exempt_header): Now contains all exceptions.
79767
79768 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
79769
79770         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
79771
79772 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79773
79774         * lib/iconvme.c: Split iconv_string into iconv_alloc.
79775
79776 2005-08-28  Bruno Haible  <bruno@clisp.org>
79777
79778         * m4/gnulib-tool.m4: New file.
79779
79780 2005-08-27  Jim Meyering  <jim@meyering.net>
79781
79782         * modules/unistd-safer (Files): Add pipe-safer.c.
79783         * modules/fcntl-safer (Files): Add creat-safer.c.
79784
79785 2005-08-27  Jim Meyering  <jim@meyering.net>
79786
79787         * m4/stdlib-safer.m4: New file.  From coreutils.
79788         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
79789         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
79790         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
79791         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
79792         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
79793
79794 2005-08-27  Jim Meyering  <jim@meyering.net>
79795
79796         * lib/fopen-safer.c: Merge minor changes from coreutils.
79797         * lib/dup-safer.c: Likewise.
79798         * lib/fd-safer.c: Likewise.
79799
79800         Merge from coreutils.
79801         * lib/stdio--.h: New file.
79802         * lib/stdlib--.h: New file.
79803         * lib/mkstemp-safer.c: New file.
79804
79805         GNU tar needs these.
79806         * lib/pipe-safer.c: New file.
79807         * lib/creat-safer.c: New file.
79808         * lib/fcntl--.h (creat): Define to creat_safer.
79809         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
79810         * lib/unistd--.h (pipe): Define to pipe_safer.
79811         * lib/unistd-safer.h: Declare pipe_safer.
79812
79813 2005-08-26  Simon Josefsson  <jas@extundo.com>
79814
79815         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
79816         Haible <bruno@clisp.org>.
79817
79818 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
79819
79820         * lib/regex_internal.h: Remove all references to
79821         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
79822         or better.
79823         (bitset_not, bitset_merge, bitset_not_merge):
79824         (bitset_mask, re_string_allocate, re_string_construct):
79825         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
79826         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
79827         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
79828         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
79829         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79830         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79831         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
79832         (re_acquire_state_context):
79833         Remove unnecessary forward decls.
79834         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
79835         Put __attribute at function definition,
79836         now that the function decl has been removed.
79837         * lib/regex_internal.c (re_string_peek_byte_case):
79838         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
79839         Likewise.
79840
79841 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
79842
79843         * m4/regex.m4: Add AC_PREREQ(2.50).
79844         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
79845
79846 2005-08-25  Simon Josefsson  <jas@extundo.com>
79847
79848         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
79849         __fsetlocking.
79850
79851 2005-08-25  Simon Josefsson  <jas@extundo.com>
79852
79853         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
79854         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
79855         GLIBC specific code.
79856
79857 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79858
79859         Make regex safe for g++.  This fixes one real bug (an "err"
79860         that should have been "*err").  g++ problem reported by
79861         Sam Steingold.
79862         * lib/regex_internal.h (re_calloc): New macro, consistent with
79863         re_malloc etc.  All callers of calloc changed to use re_calloc.
79864         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
79865         not int.  All callers changed.
79866         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
79867         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
79868         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
79869         (find_recover_state): Change "err" to "*err"; this fixes what
79870         appears to be a real bug.
79871         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
79872         versus int.
79873
79874 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79875
79876         * modules/regex (Depends-on): Add malloc, since the code
79877         assumes that !malloc(0) means failure.
79878
79879 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79880
79881         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
79882
79883         alloca modernization/simplification for regex.
79884         * lib/regex.c: Remove portability cruft for alloca.  This no longer
79885         needs to be at the start of the file, and can be moved into
79886         regex_internal.h and simplified.
79887         * lib/regex_internal.h: Include <alloca.h>.
79888         (__libc_use_alloca) [!defined _LIBC]: New macro.
79889         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
79890         now works outside glibc.
79891
79892 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79893
79894         * config/srclist.txt: Add glibc bugs 1241, 1245.
79895
79896 2005-08-25  Jim Meyering  <jim@meyering.net>
79897
79898         * lib/open-safer.c: Include <config.h>.
79899         Otherwise, we'd lose LARGEFILE support in any file using
79900         e.g. "fcntl--.h"
79901
79902 2005-08-25  Bruno Haible  <bruno@clisp.org>
79903
79904         * m4/minmax.m4: Require autoconf 2.52.
79905         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
79906         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
79907         alternatives of translit over the alphabet.
79908         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
79909
79910 2005-08-24  Simon Josefsson  <jas@extundo.com>
79911
79912         * tests/test-getpass.c: New file.
79913
79914 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79915
79916         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
79917         for GNU regex features.
79918
79919 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79920
79921         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
79922         * lib/regex.h (regerror): Likewise.
79923
79924         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
79925         requires this.  (The code never needed it.)
79926
79927         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
79928         All uses of recently-renamed identifiers changed to use the new,
79929         POSIX-compliant names.  The code will build and run just fine
79930         without these changes, but it's better to eat our own dog food
79931         and use the standard-conforming names.
79932
79933         * lib/regex.h: Fix a multitude of POSIX name space violations.
79934         These changes have an effect only for programs that define
79935         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
79936         do not change anything for programs compiled in the normal way.
79937         Also, there is no effect on the ABI.
79938
79939         (_REGEX_SOURCE): New macro.
79940         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
79941         defined and _GNU_SOURCE is not; this fixes a name space violation.
79942
79943         Rename the following macros to obey POSIX requirements.
79944         The old names are still visible as macros if _REGEX_SOURCE is defined.
79945         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
79946         RE_BACKSLASH_ESCAPE_IN_LISTS.
79947         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79948         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79949         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79950         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79951         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79952         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79953         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79954         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79955         (REG_INTERVALS): renamed from RE_INTERVALS.
79956         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79957         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79958         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79959         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79960         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79961         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79962         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79963         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79964         RE_UNMATCHED_RIGHT_PAREN_ORD.
79965         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79966         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79967         (REG_DEBUG): renamed from RE_DEBUG.
79968         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79969         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79970         unusual, since we can't clash with the POSIX REG_ICASE.
79971         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79972         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79973         (REG_NO_SUB): renamed from RE_NO_SUB.
79974         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79975         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79976         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79977         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79978         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79979         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79980         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79981         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79982         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79983         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79984         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79985         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79986         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79987         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79988         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79989         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79990         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79991         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79992         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79993         (REG_FIXED): Renamed from REGS_FIXED.
79994         (REG_NREGS): Renamed from RE_NREGS.
79995
79996         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79997         of other REG_* macros, since POSIX says the user is allowed to
79998         #undef these macros selectively.
79999
80000         (reg_errcode_t): Update comment stating what other tables need
80001         to be consistent.
80002
80003         Rename the following enum values to obey POSIX requirements.
80004         The old names are still visible as macros.
80005         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80006         is not defined, since GNU is supposed to be a superset of POSIX as
80007         much as possible, and since we want reg_errcode_t to be a signed
80008         type for implementation consistency.
80009         (_REG_NOERROR): Renamed from REG_NOERROR.
80010         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80011         (_REG_BADPAT): Renamed from REG_BADPAT.
80012         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80013         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80014         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80015         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80016         (_REG_EBRACK): Renamed from REG_EBRACK.
80017         (_REG_EPAREN): Renamed from REG_EPAREN.
80018         (_REG_EBRACE): Renamed from REG_EBRACE.
80019         (_REG_BADBR): Renamed from REG_BADBR.
80020         (_REG_ERANGE): Renamed from REG_ERANGE.
80021         (_REG_ESPACE): Renamed from REG_ESPACE.
80022         (_REG_BADRPT): Renamed from REG_BADRPT.
80023         (_REG_EEND): Renamed from REG_EEND.
80024         (_REG_ESIZE): Renamed from REG_ESIZE.
80025         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80026         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80027         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80028         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80029         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80030
80031         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80032         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80033         changed.  But support the old name if the new one is not defined
80034         and if _REGEX_SOURCE.
80035
80036         Change the following member names in struct re_pattern_buffer.
80037         The old names are still supported if !_REGEX_SOURCE.
80038         The new names are always supported, regardless of _REGEX_SOURCE.
80039         (re_buffer): Renamed from buffer.
80040         (re_allocated): Renamed from allocated.
80041         (re_used): Renamed from used.
80042         (re_syntax): Renamed from syntax.
80043         (re_fastmap): Renamed from fastmap.
80044         (re_translate): Renamed from translate.
80045         (re_can_be_null): Renamed from can_be_null.
80046         (re_regs_allocated): Renamed from regs_allocated.
80047         (re_fastmap_accurate): Renamed from fastmap_accurate.
80048         (re_no_sub): Renamed from no_sub.
80049         (re_not_bol): Renamed from not_bol.
80050         (re_not_eol): Renamed from not_eol.
80051         (re_newline_anchor): Renamed from newline_anchor.
80052
80053         Change the following member names in struct re_registers.
80054         The old names are still supported if !_REGEX_SOURCE.
80055         The new names are always supported, regardless of _REGEX_SOURCE.
80056         (rm_num_regs): Renamed from num_regs.
80057         (rm_start): Renamed from start.
80058         (rm_end): Renamed from end.
80059
80060         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80061         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80062         Prepend __ to parameter names.
80063
80064         Undo yesterday's changes.
80065
80066 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80067
80068         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80069         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80070         lib/regex.c.
80071
80072 2005-08-24  Jim Meyering  <jim@meyering.net>
80073
80074         Sync from coreutils.
80075         * m4/fcntl-safer.m4: New file.
80076
80077         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80078         and object files for this module.
80079
80080 2005-08-24  Jim Meyering  <jim@meyering.net>
80081
80082         Sync from coreutils.
80083         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80084
80085 2005-08-24  Jim Meyering  <jim@meyering.net>
80086
80087         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80088         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80089
80090 2005-08-24  Jim Meyering  <jim@meyering.net>
80091
80092         * modules/fcntl-safer: New module.
80093         * modules/fts (Depends-on): Add fcntl-safer.
80094         * MODULES.html.sh (File descriptor based Input/Output):
80095         Add fcntl-safer.
80096
80097 2005-08-24  Bruno Haible  <bruno@clisp.org>
80098
80099         Support for unit test modules.
80100         * modules/README: Mention tests modules.
80101         * modules/TEMPLATE-TESTS: New file.
80102         * gnulib-tool: New options --extract-tests-module, --with-tests and
80103         --tests-base (unused for the moment).
80104         (testsbase, inctests): New variables.
80105         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80106         (func_verify_module): Exclude TEMPLATE-TESTS.
80107         (func_verify_nontests_module, func_verify_tests_module): New functions.
80108         (func_get_dependencies): Add implicit dependency for tests modules.
80109         (func_get_tests_module): New function.
80110         (func_modules_transitive_closure): When --with-tests was specified,
80111         include the unit tests as well, unless explicitly avoided.
80112         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80113         (func_emit_tests_Makefile_am): New function.
80114         (func_create_testdir): When --with-tests was specified, emit a
80115         tests/ directory.
80116         * MODULES.html.sh (Future developments): Update.
80117
80118 2005-08-24  Bruno Haible  <bruno@clisp.org>
80119
80120         * modules/tls-tests: New file.
80121         * tests/test-tls.c: New file, from GNU gettext.
80122
80123 2005-08-24  Bruno Haible  <bruno@clisp.org>
80124
80125         * modules/lock-tests: New file.
80126         * tests/test-lock.c: New file, from GNU gettext.
80127
80128 2005-08-24  Bruno Haible  <bruno@clisp.org>
80129
80130         * lib/lock.h: Add multiple inclusion guard.
80131         * lib/tls.h: Add multiple inclusion guard.
80132
80133 2005-08-24  Bruno Haible  <bruno@clisp.org>
80134
80135         * gnulib-tool: Add support for the --aux-dir option to
80136         --create-testdir, --create-megatestdir, --test, --megatest.
80137         (func_create_testdir, func_create_megatestdir): Optionally emit a
80138         AC_CONFIG_AUX_DIR directive.
80139         (create-testdir, create-megatestdir, test, megatest): Provide a
80140         default value for $auxdir.
80141
80142 2005-08-24  Bruno Haible  <bruno@clisp.org>
80143
80144         * gnulib-tool (import): Use compound statement instead of subshell
80145         where possible.
80146
80147 2005-08-24  Bruno Haible  <bruno@clisp.org>
80148
80149         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80150
80151 2005-08-24  Bruno Haible  <bruno@clisp.org>
80152
80153         * gnulib-tool (func_version): Update.
80154
80155 2005-08-24  Bruno Haible  <bruno@clisp.org>
80156
80157         * gnulib-tool (func_import, func_create_testdir,
80158         func_create_megatestdir): Quote all autoconf macro arguments.
80159
80160 2005-08-24  Bruno Haible  <bruno@clisp.org>
80161
80162         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80163         option --force, because --force causes the aclocal.m4 of each
80164         subdirectory to be newer than the corresponding config.h.in.
80165
80166 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80167
80168         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80169         All contents moved to gl_REGEX.
80170         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80171         assume that it does.
80172
80173 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80174
80175         * lib/regex.h (REG_NOSYS)
80176         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80177         Define, since POSIX requires it as of 2001.
80178         (_REG_ENOSYS)
80179         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80180         New private symbol, used to keep the enum signed in all cases.
80181         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80182         Youngman in
80183         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80184
80185         * lib/regex_internal.c (re_string_skip_chars, register_state):
80186         (calc_state_hash):
80187         Remove forward decls; no longer needed now that we use prototypes.
80188         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80189         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80190         (clean_state_log_if_needed): Likewise.
80191
80192 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         * config/srclist.txt: Add glibc bugs 1231-1233.
80195
80196 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80197
80198         Fix problems reported by Sam Steingold in
80199         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80200         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80201         assumed that reg_errcode_t is a signed type, which is not
80202         necessarily true if _XOPEN_SOURCE is not defined.
80203         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80204         since some compilers warn about it otherwise.
80205
80206 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80209         (init_word_char, create_initial_state, duplicate_node_closure):
80210         (fetch_token, peek_token_bracket, build_range_exp):
80211         (build_collating_symbol): Remove forward decls; no longer needed
80212         now that we use prototypes.
80213
80214         * lib/regcomp.c:
80215         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80216         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80217         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80218         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80219         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80220         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80221         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80222         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80223         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80224         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80225         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80226         (build_charclass, build_charclass_op, fetch_number, create_tree):
80227         (create_token_tree, mark_opt_subexp, duplicate_tree):
80228         Use prototypes rather than old-style definitions.
80229
80230         * lib/regex_internal.c:
80231         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80232         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80233         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80234         (re_string_reconstruct, re_string_peek_byte_case):
80235         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80236         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80237         (re_node_set_init_copy, re_node_set_add_intersect):
80238         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80239         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80240         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80241         (re_acquire_state, re_acquire_state_context, register_state):
80242         (create_ci_newstate, create_cd_newstate, free_state):
80243         Likewise.
80244         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80245         re_search_2):
80246         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80247         (re_search_internal, prune_impossible_nodes):
80248         (acquire_init_state_context, check_matching, static):
80249         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80250         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80251         (update_regs, sift_states_backward, build_sifted_states):
80252         (clean_state_log_if_needed, merge_state_array):
80253         (update_cur_sifted_state, add_epsilon_src_nodes):
80254         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80255         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80256         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80257         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80258         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80259         (check_arrival, check_arrival_add_next_nodes):
80260         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80261         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80262         (check_node_accept_bytes, check_node_accept, extend_buffers):
80263         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80264         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80265         (sift_ctx_init):
80266         Likewise.
80267
80268         * lib/regex_internal.h:
80269         (re_string_allocate, re_string_construct, re_string_reconstruct):
80270         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80271         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80272         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80273         (re_string_context_at, re_string_peek_byte_case):
80274         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80275         is defined, since we now use prototypes always.
80276
80277         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80278         C89 or better.  All uses removed.
80279
80280 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80281
80282         * config/srclist.txt: Add glibc bugs 1220-1227.
80283
80284 2005-08-20  Jim Meyering  <jim@meyering.net>
80285
80286         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80287         of unused local, dfa.
80288
80289 2005-08-20  Bruno Haible  <bruno@clisp.org>
80290
80291         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80292
80293 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80294
80295         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80296         (re_node_set_insert_last, re_dfa_add_node):
80297         Rename local variables to avoid GCC shadowing warnings.
80298
80299 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80300
80301         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80302         [defined lint]: Suppress bogus uninitialized-variable warnings.
80303
80304         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80305         and let the caller return REG_ESPACE if out of space.  This
80306         removes an uninitialied-variable warning with GCC 4.0.1, and also
80307         avoids taking the address of a local variable.  All callers
80308         changed.
80309
80310 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80313         $LIBCSRC/posix/regexec.c.
80314         Add glibc bug 1217 for regcomp.c.
80315
80316 2005-08-19  Jim Meyering  <jim@meyering.net>
80317
80318         * lib/regexec.c (proceed_next_node): Redo local variables to
80319         avoid GCC shadowing warnings.
80320
80321 2005-08-18  Bruno Haible  <bruno@clisp.org>
80322
80323         * lib/strstr.c (strstr): Fix return value in multibyte case.
80324         * lib/strcasestr.c (strcasestr): Likewise.
80325
80326 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80327
80328         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80329
80330 2005-08-17  Jim Meyering  <jim@meyering.net>
80331
80332         Make the %s format (seconds since the epoch) work for a negative
80333         number and when used with a zero-padded field width, e.g. %015s.
80334
80335         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80336         label so that it precedes the code to set `digits'.  Otherwise,
80337         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80338         print `00-22'.  Now, it prints `-0022', as it should.
80339
80340 2005-08-17  Bruno Haible  <bruno@clisp.org>
80341
80342         * modules/strstr (Files): Add m4/mbrtowc.m4.
80343         (Depends-on): Add mbuiter.
80344
80345 2005-08-17  Bruno Haible  <bruno@clisp.org>
80346
80347         * modules/strcasestr: New file.
80348         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80349         strcasestr.
80350
80351 2005-08-17  Bruno Haible  <bruno@clisp.org>
80352
80353         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80354
80355 2005-08-17  Bruno Haible  <bruno@clisp.org>
80356
80357         * modules/mbuiter: New file.
80358         * MODULES.html.sh (Extended multibyte and wide character utilities):
80359         Add mbuiter.
80360
80361 2005-08-17  Bruno Haible  <bruno@clisp.org>
80362
80363         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80364         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80365
80366 2005-08-17  Bruno Haible  <bruno@clisp.org>
80367
80368         * m4/strcasestr.m4: New file.
80369
80370 2005-08-17  Bruno Haible  <bruno@clisp.org>
80371
80372         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80373         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80374
80375 2005-08-17  Bruno Haible  <bruno@clisp.org>
80376
80377         * lib/strcasestr.h: New file.
80378         * lib/strcasestr.c: New file.
80379
80380 2005-08-17  Bruno Haible  <bruno@clisp.org>
80381
80382         * lib/strcasecmp.c: Use mbuiter.h.
80383
80384 2005-08-17  Bruno Haible  <bruno@clisp.org>
80385
80386         * lib/mbuiter.h: New file.
80387
80388 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80389
80390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80391         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80392         and gl_GETOPT are both invoked via different paths (as happens
80393         with GNU tar CVS because it uses both argp and getopt), the former
80394         wins.
80395
80396 2005-08-16  Bruno Haible  <bruno@clisp.org>
80397
80398         * modules/tls: New file.
80399         * MODULES.html.sh (Multithreading): Add tls.
80400
80401 2005-08-16  Bruno Haible  <bruno@clisp.org>
80402
80403         * modules/strnlen1: New file.
80404         * MODULES.html.sh (String handling): Add strnlen1.
80405
80406 2005-08-16  Bruno Haible  <bruno@clisp.org>
80407
80408         * modules/strcase (Files): Add m4/mbrtowc.m4.
80409         (Depends-on): Add strnlen1, mbchar.
80410
80411 2005-08-16  Bruno Haible  <bruno@clisp.org>
80412
80413         * modules/mbiter: New file.
80414         * MODULES.html.sh (Extended multibyte and wide character utilities):
80415         Add mbiter.
80416
80417 2005-08-16  Bruno Haible  <bruno@clisp.org>
80418
80419         * modules/mbfile: New file.
80420         * MODULES.html.sh (Extended multibyte and wide character utilities):
80421         Add mbfile.
80422
80423 2005-08-16  Bruno Haible  <bruno@clisp.org>
80424
80425         * modules/mbchar: New file.
80426         * MODULES.html.sh (Extended multibyte and wide character utilities):
80427         New section.
80428
80429 2005-08-16  Bruno Haible  <bruno@clisp.org>
80430
80431         * m4/tls.m4: New file, from GNU gettext.
80432
80433 2005-08-16  Bruno Haible  <bruno@clisp.org>
80434
80435         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80436         always.
80437         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80438
80439 2005-08-16  Bruno Haible  <bruno@clisp.org>
80440
80441         * m4/mbiter.m4: New file.
80442
80443 2005-08-16  Bruno Haible  <bruno@clisp.org>
80444
80445         * m4/mbfile.m4: New file.
80446
80447 2005-08-16  Bruno Haible  <bruno@clisp.org>
80448
80449         * m4/mbchar.m4: New file.
80450
80451 2005-08-16  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/tls.h: New file, from GNU gettext.
80454         * lib/tls.c: New file, from GNU gettext.
80455
80456 2005-08-16  Bruno Haible  <bruno@clisp.org>
80457
80458         * lib/strnlen1.h: New file.
80459         * lib/strnlen1.c: New file.
80460
80461 2005-08-16  Bruno Haible  <bruno@clisp.org>
80462
80463         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80464         (mbi_init): Update.
80465         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80466         NUL byte, not after it.
80467
80468 2005-08-16  Bruno Haible  <bruno@clisp.org>
80469
80470         * lib/strcase.h (strcasecmp): Add note in comments.
80471         * lib/strncasecmp.c: Use code from strcasecmp.c.
80472         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80473         (strcasecmp): Work correctly in multibyte locales.
80474
80475 2005-08-16  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/mbiter.h: New file.
80478
80479 2005-08-16  Bruno Haible  <bruno@clisp.org>
80480
80481         * lib/mbfile.h: New file.
80482
80483 2005-08-16  Bruno Haible  <bruno@clisp.org>
80484
80485         * lib/mbchar.h: New file.
80486         * lib/mbchar.c: New file.
80487
80488 2005-08-16  Bruno Haible  <bruno@clisp.org>
80489
80490         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80491         the valid ones. Makes the comparison operations transitive:
80492         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80493         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80494
80495 2005-08-15  Simon Josefsson  <jas@extundo.com>
80496
80497         * modules/ssize_t (License): Change to 'unlimited'.
80498
80499         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80500
80501 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80502
80503         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80504         Add comments for each pending glibc patch.
80505
80506 2005-08-15  Bruno Haible  <bruno@clisp.org>
80507
80508         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80509         __cplusplus is defined.
80510
80511 2005-08-14  Jim Meyering  <jim@meyering.net>
80512
80513         Sync from coreutils.
80514
80515         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80516         Use the hash-table-based cycle-detection code not just when
80517         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80518         Reported by James Youngman in
80519         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80520         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80521         FTS_TIGHT_CYCLE_CHECK.
80522         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80523         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80524         once again.
80525         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80526         * lib/fts.c (fd_safer): Remove decl.
80527         Include fcntl--.h rather than unistd-safer.h
80528         (fts_safe_changedir): Don't call fd_safer; no longer needed
80529         now that we include fcntl--.h.
80530
80531 2005-08-12  Simon Josefsson  <jas@extundo.com>
80532
80533         * modules/getndelim2: Use ssize_t module.
80534         * modules/getnline: Likewise.
80535         * modules/safe-read: Likewise.
80536         * modules/xreadlink: Likewise.
80537
80538         * modules/ssize_t: New file.
80539
80540 2005-08-12  Simon Josefsson  <jas@extundo.com>
80541
80542         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80543
80544 2005-08-12  Simon Josefsson  <jas@extundo.com>
80545
80546         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80547         ssize_t.
80548
80549 2005-08-12  Simon Josefsson  <jas@extundo.com>
80550
80551         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80552         readline, getdelim and check_version.
80553         (Support for systems lacking ISO C 99: Sizes of integer types):
80554         Add size_max.
80555
80556 2005-08-12  Bruno Haible  <bruno@clisp.org>
80557
80558         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80559
80560 2005-08-11  Simon Josefsson  <jas@extundo.com>
80561
80562         * modules/readline: New file.
80563
80564         * modules/strnlen (Files): Add strnlen.h.
80565
80566 2005-08-11  Simon Josefsson  <jas@extundo.com>
80567
80568         * m4/readline.m4: New file.
80569
80570 2005-08-11  Simon Josefsson  <jas@extundo.com>
80571
80572         * lib/readline.h, readline.c: New file.
80573
80574 2005-08-11  Simon Josefsson  <jas@extundo.com>
80575
80576         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80577         gl_AVOID.
80578
80579 2005-08-11  Bruno Haible  <bruno@clisp.org>
80580
80581         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80582
80583 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80584
80585         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80586
80587 2005-08-10  Simon Josefsson  <jas@extundo.com>
80588
80589         * tests/test-iconvme.c: New file.
80590
80591 2005-08-10  Simon Josefsson  <jas@extundo.com>
80592
80593         * m4/strnlen.m4: New file.
80594
80595         * m4/strndup.m4: Don't check for strnlen declaration, done in
80596         strnlen.m4.
80597
80598 2005-08-10  Simon Josefsson  <jas@extundo.com>
80599
80600         * lib/strndup.c: Use strnlen.h.
80601
80602         * lib/strnlen.h: New file.
80603
80604 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80605
80606         * README: Typos.
80607
80608 2005-08-02  Simon Josefsson  <jas@extundo.com>
80609
80610         * modules/readline: New file.
80611
80612 2005-08-02  Simon Josefsson  <jas@extundo.com>
80613
80614         * modules/getdelim: New file.
80615
80616         * modules/getline: Rewrite, don't use getndelim2.
80617
80618 2005-08-02  Simon Josefsson  <jas@extundo.com>
80619
80620         * m4/getline.m4: Separate out getdelim stuff into separate module.
80621
80622         * m4/getdelim.m4: New file.
80623
80624 2005-08-02  Simon Josefsson  <jas@extundo.com>
80625
80626         * lib/getline.h, getline.c: Rewrite.
80627
80628         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
80629
80630 2005-07-31  Bruno Haible  <bruno@clisp.org>
80631
80632         * lib/lock.h (gl_lock_initializer): New macro.
80633         (gl_lock_define_initialized): Use it.
80634         (gl_rwlock_initializer): New macro.
80635         (gl_rwlock_define_initialized): Use it.
80636         (gl_recursive_lock_initializer): New macro.
80637         (gl_recursive_lock_define_initialized): Use it.
80638
80639 2005-07-30  Karl Berry  <karl@gnu.org>
80640
80641         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
80642         Report from Ben Pfaff, regarding getopt.
80643
80644 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
80645
80646         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
80647         normal way.
80648         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
80649         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
80650         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
80651         (gl_GETOPT): Use the new macros.  Most of the implementation
80652         is moved to the new macros.  This is for programs like Emacs
80653         that don't want all the functionality of gl_GETOPT.
80654
80655 2005-07-26  Bruno Haible  <bruno@clisp.org>
80656
80657         * m4/lock.m4: Update from GNU gettext.
80658
80659 2005-07-26  Bruno Haible  <bruno@clisp.org>
80660
80661         * lib/lock.h: Update from GNU gettext.
80662         * lib/lock.c: Update from GNU gettext.
80663
80664 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
80665
80666         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
80667         obsolescent AC_TRY_RUN.  Include the default includes files, for
80668         'exit'.
80669
80670 2005-07-24  Bruno Haible  <bruno@clisp.org>
80671
80672         * modules/visibility: New file.
80673         * MODULES.html.sh (Misc): Add visibility.
80674
80675 2005-07-24  Bruno Haible  <bruno@clisp.org>
80676
80677         * m4/visibility.m4: New file.
80678
80679 2005-07-24  Bruno Haible  <bruno@clisp.org>
80680
80681         * doc/visibility.texi: New file.
80682
80683 2005-07-22  Bruno Haible  <bruno@clisp.org>
80684
80685         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
80686         $(ALLOCA_H), redundant through BUILT_SOURCES.
80687         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
80688         redundant through BUILT_SOURCES.
80689         * modules/byteswap (Makefile.am): Remove explicit dependency on
80690         $(BYTESWAP_H), redundant through BUILT_SOURCES.
80691         * modules/fnmatch (Makefile.am): Remove explicit dependency on
80692         $(FNMATCH_H), redundant through BUILT_SOURCES.
80693         * modules/getopt (Makefile.am): Remove explicit dependency on
80694         $(GETOPT_H), redundant through BUILT_SOURCES.
80695         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
80696         redundant through BUILT_SOURCES.
80697         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
80698         redundant through BUILT_SOURCES.
80699         * modules/stdbool (Makefile.am): Remove explicit dependency on
80700         $(STDBOOL_H), redundant through BUILT_SOURCES.
80701         * modules/stdint (Makefile.am): Remove explicit dependency on
80702         $(STDINT_H), redundant through BUILT_SOURCES.
80703         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
80704         Remove explicit dependency on $(SYSEXITS_H).
80705         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
80706
80707 2005-07-18  Simon Josefsson  <jas@extundo.com>
80708
80709         * lib/check-version.c (check_version): Accept identical versions too.
80710
80711 2005-07-18  Bruno Haible  <bruno@clisp.org>
80712
80713         * modules/lock: New file.
80714         * MODULES.html.sh (Multithreading): New section.
80715
80716 2005-07-18  Bruno Haible  <bruno@clisp.org>
80717
80718         * m4/lock.m4: New file, from GNU gettext.
80719
80720 2005-07-18  Bruno Haible  <bruno@clisp.org>
80721
80722         * lib/lock.h: New file, from GNU gettext.
80723         * lib/lock.c: New file, from GNU gettext.
80724
80725 2005-07-18  Bruno Haible  <bruno@clisp.org>
80726
80727         * lib/lock.h (gl_once_t): New type.
80728         (gl_once_define, gl_once): New macros.
80729         * lib/lock.c (fresh_once): New variable.
80730         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
80731         functions.
80732
80733 2005-07-16  Simon Josefsson  <jas@extundo.com>
80734
80735         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
80736         workaround, suggested by Bruno.
80737
80738 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80739
80740         * modules/xalloc (Depends-on): Add xalloc-die.
80741         * modules/xvasprintf (Depends-on): Add xalloc-die.
80742
80743 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
80746         with a minor change.
80747
80748 2005-07-15  Bruno Haible  <bruno@clisp.org>
80749
80750         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
80751         When using lib/poll.c, define poll as rpl_poll.
80752
80753 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * modules/argp (Depends-on): Remove unlocked-io.
80756
80757 2005-07-14  Derek Price  <derek@ximbiot.com>
80758
80759         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
80760         for glob symlink bug.
80761
80762 2005-07-14  Bruno Haible  <bruno@clisp.org>
80763
80764         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
80765         Instead, test for *_unlocked function declarations directly.
80766
80767 2005-07-11  Simon Josefsson  <jas@extundo.com>
80768
80769         * modules/size_max: New file.
80770
80771         * modules/xsize: Depend on size_max module for size_max.m4.
80772
80773 2005-07-11  Simon Josefsson  <jas@extundo.com>
80774
80775         * lib/size_max.h: New file.
80776
80777 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
80780         copyright symbol and the year.
80781         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
80782         (version_etc_va): Use parameterized copyright notice.
80783         Reword to conform to the current GNU coding standards.
80784
80785 2005-07-11  Karl Berry  <karl@gnu.org>
80786
80787         * doc/gnulib.texi (Quoting): new node.
80788         (Initial import): more info, from Patrice.
80789
80790 2005-07-11  Bruno Haible  <bruno@clisp.org>
80791
80792         * gnulib-tool (func_usage): Document option --avoid.
80793         (Command line options): Handle --avoid.
80794         (func_acceptable): New function.
80795         (func_modules_transitive_closure): Use it.
80796
80797 2005-07-11  Bruno Haible  <bruno@clisp.org>
80798
80799         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
80800         Reported by Jim Meyering.
80801
80802 2005-07-10  Bruno Haible  <bruno@clisp.org>
80803
80804         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
80805         Needed when size_t is smaller than 'unsigned int'.
80806         Reported by Paul Eggert.
80807
80808 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80809
80810         * modules/argp (Depends-on): Add unlocked-io
80811
80812 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80813
80814         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
80815         block of defines.
80816
80817 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80818
80819         * config/srclist.txt: Comment out regcomp.c, since we have a porting
80820         fix now.
80821
80822 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
80823         and Paul Eggert  <eggert@cs.ucla.edu>
80824
80825         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
80826         in wint_t, not wchar_t.  Remove now-unnecessary cast.
80827
80828 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80829
80830         * modules/regex (Files): Add lib/regex_internal.c,
80831         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
80832         (Depends-on): Add extensions.
80833         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
80834
80835 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80836
80837         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
80838         pathconf.
80839         * m4/same.m4 (gl_SAME): Likewise.
80840         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
80841
80842         * m4/regex.m4: Adjust to new libc regex implementation.
80843         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
80844         all the .c and .h parts of (the new) regex.
80845         Quote the m4 stuff better.
80846         Check for RE_ICASE bug of old gnulib.
80847         Check for REG_STARTEND of recent libc.
80848         Rename local variables from jm_* to gl_*.
80849         Quote operand of "test -f".
80850         Say "recent enough" version of libc, not "version 2".
80851         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
80852         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
80853         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
80854         Remove check for btowc, isascii.
80855         Require AM_LANGINFO_CODESET.
80856
80857 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * lib/regex.c, regex.h: Sync from libc.
80860         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
80861         * lib/regexec.c:
80862         New files, synced from libc, except that regex_internal.h
80863         currently has a small porting fix.
80864
80865 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80866
80867         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
80868         regex_internal.c, regexec.c.
80869         Add regex_internal.h too, but as a comment, since the libc version
80870         is currently broken in gnulib mode.
80871
80872 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80873
80874         Support programs like Emacs that use gnulib but not gettext.
80875         * MODULES.html.sh (Internationalization functions): Add gettext-h.
80876         * modules/gettext-h: New file.
80877         * modules/gettext (Files): Remove lib/gettext.h.
80878         (Depends-on): Add gettext-h.
80879         (Makefile.am): Remove lib_SOURCES.
80880         * modules/argmatch, modules/c-stack, modules/closeout:
80881         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
80882         * modules/execute, modules/file-type, modules/getaddrinfo:
80883         * modules/getopt, modules/human, modules/javacomp:
80884         * modules/javaexec, modules/mkdir-p, modules/obstack:
80885         * modules/openat, modules/pagealign_alloc, modules/pipe:
80886         * modules/quotearg, modules/regex, modules/rpmatch:
80887         * modules/unicodeio, modules/userspec, modules/version-etc:
80888         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
80889         * modules/xsetenv:
80890         Depend on gettext-h, not gettext.
80891
80892 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80893
80894         * gnulib-tool (func_import): Add support for 'public domain' license.
80895         * modules/alloca, modules/atexit, modules/memmove:
80896         Now public domain, not GPL.
80897         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
80898         * modules/realloc, modules/strerror, modules/strtod:
80899         Now LGPL, not GPL.
80900
80901 2005-07-05  Bruno Haible  <bruno@clisp.org>
80902
80903         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
80904         autoconf CVS. Needed for mingw.
80905
80906 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80907
80908         Remove the dependency of the strftime module on the tzset module.
80909         * modules/strftime (Depends-on): Remove dependency on tzset.
80910
80911 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         Remove the dependency of the strftime module on the tzset module.
80914         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
80915         gl_FUNC_TZSET_CLOBBER.
80916
80917 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80918
80919         Remove the dependency of the strftime module on the tzset module.
80920         * lib/strftime.c (my_strftime)
80921         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
80922         Copy the input structure, to work around some of the bug with
80923         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
80924         Solaris releases, you should also use the tzset module, but we won't
80925         require it as a dependency any more since we don't want LGPLed code
80926         to depend on GPLed code.
80927
80928 2005-07-02  Jim Meyering  <jim@meyering.net>
80929
80930         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
80931         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
80932         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
80933         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
80934
80935 2005-07-02  Jim Meyering  <jim@meyering.net>
80936
80937         * lib/backupfile.c (backup_args): Change a `0' to NULL.
80938
80939 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80940
80941         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
80942         declares only 'struct timespec;' (!).
80943
80944 2005-07-01  Jim Meyering  <jim@meyering.net>
80945
80946         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80947         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80948         * lib/save-cwd.c, tempname.c:
80949         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80950         and don't include <sys/file.h>).
80951
80952 2005-06-29  Jim Meyering  <jim@meyering.net>
80953
80954         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80955         type name.  Use the variable name instead.
80956         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80957         Likewise.
80958
80959 2005-06-28  Simon Josefsson  <jas@extundo.com>
80960
80961         * modules/check-version (Files): Add check-version.m4.
80962
80963 2005-06-28  Simon Josefsson  <jas@extundo.com>
80964
80965         * m4/check-version.m4: New file, suggested by Jim Meyering
80966         <jim@meyering.net>.
80967
80968 2005-06-28  Simon Josefsson  <jas@extundo.com>
80969
80970         * lib/check-version.h, lib/check-version.c: New files.
80971
80972 2005-06-28  Simon Josefsson  <jas@extundo.com>
80973
80974         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80975         collision with global variable.  Better indentation.  Don't
80976         increment buffer pointer beyond buffer end.  Based on comments
80977         from Paul Eggert <eggert@cs.ucla.edu>.
80978
80979         * lib/base64.h: Indent.
80980
80981 2005-06-28  Simon Josefsson  <jas@extundo.com>
80982
80983         * doc/gnulib.texi (Library version handling): New section.
80984
80985 2005-06-28  Jim Meyering  <jim@meyering.net>
80986
80987         * check-module (find_included_lib_files): Hard-code another
80988         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80989         but modules/fts-lgpl (correctly) does not list those files.
80990
80991         * modules/canonicalize (Files): Add lib/pathmax.h.
80992
80993 2005-06-25  Simon Josefsson  <jas@extundo.com>
80994
80995         * modules/check-version: New file.
80996
80997 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80998
80999         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81000         initializer of struct addrinfo, as an indication that we don't
81001         care how many members the structure has.
81002
81003 2005-06-24  Derek Price  <derek@ximbiot.com>
81004         and Bruno Haible  <bruno@clisp.org>
81005
81006         Remove stat module & update lstat.
81007         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81008         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81009         * m4/stat.m4: Remove this file.
81010
81011 2005-06-24  Derek Price  <derek@ximbiot.com>
81012         and Bruno Haible  <bruno@clisp.org>
81013
81014         Remove stat module & update lstat.
81015         * lib/stat.c: Remove this file...
81016         (slash_aware_lstat): ...moving this content and its support...
81017         * lib/lstat.c (rpl_lstat): ...into here.
81018         * lib/lstat.h: New file.
81019
81020 2005-06-24  Derek Price  <derek@ximbiot.com>
81021         and Bruno Haible  <bruno@clisp.org>
81022
81023         Remove stat module & update lstat.
81024         * config/srclist.txt (libc sources): Remove stat.
81025
81026 2005-06-24  Derek Price  <derek@ximbiot.com>
81027         and Bruno Haible  <bruno@clisp.org>
81028
81029         Remove stat module & update lstat.
81030         * MODULES.html.sh (stat): Remove.
81031         * MODULES.html: Regenerated.
81032         * modules/lstat (Description): Correct function name.
81033         (Files): Add "lstat.h".
81034         (Depends-on): Remove stat, add xalloc, stat-macros.
81035         * modules/stat: Remove this file.
81036         (Include): Add "lstat.h", remove <sys/stat.h>.
81037
81038 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81039
81040         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81041         (ranged_convert): Don't save conversion in a temporary struct.
81042         This causes a warning with GCC 4.0.0, and anyway in the typical
81043         case it's not worth the extra 100 bytes or so of code.
81044         (ranged_convert, __mktime_internal): When calling a function via a
81045         pointer P, use P () rather than (*P) (), as we now assume C89 or
81046         better.
81047
81048 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81051         "who -r" failed to give output.  Problem reported by Tim Waugh.
81052
81053         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81054         (xcalloc): Use it to avoid needless tests.
81055         Problem reported by Jim Meyering.
81056
81057 2005-06-20  Derek Price  <derek@ximbiot.com>
81058
81059         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81060         unnecessary for Autoconfs > 2.59c.
81061
81062 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81063
81064         * lib/argp.h (__option_is_short): Check upper limit of
81065         __key. Isprint() requires its argument to have the value
81066         of an unsigned char or EOF.
81067
81068 2005-06-16  Jim Meyering  <jim@meyering.net>
81069
81070         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81071         when either N or S is zero.
81072
81073 2005-06-16  Derek Price  <derek@ximbiot.com>
81074
81075         * m4/bison.m4: Declare YACC & YFLAGS precious.
81076
81077 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81078
81079         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81080         multibyte string or pattern, fall back on unibyte matching.
81081         Problem reported by James Youngman.
81082
81083 2005-06-08  Bruno Haible  <bruno@clisp.org>
81084
81085         * modules/csharpcomp: New file.
81086         * MODULES.html.sh (C#): Add csharpcomp.
81087
81088 2005-06-08  Bruno Haible  <bruno@clisp.org>
81089
81090         * m4/csharpcomp.m4: New file, from GNU gettext.
81091
81092 2005-06-08  Bruno Haible  <bruno@clisp.org>
81093
81094         * lib/csharpcomp.h: New file, from GNU gettext.
81095         * lib/csharpcomp.c: New file, from GNU gettext.
81096         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81097
81098 2005-06-08  Bruno Haible  <bruno@clisp.org>
81099
81100         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81101         warning on mingw.
81102
81103 2005-06-07  Derek Price  <derek@ximbiot.com>
81104
81105         Sync from CVS.
81106         * lib/glob_.h: Indent nested #ifdef.
81107
81108 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81109
81110         Sync from coreutils.
81111         Use "file name" when talking about file names, instead of "filename"
81112         or "path", as per the GNU coding standards.
81113         * lib/mkdir-p.c: Renamed from makepath.c.
81114         (make_dir_parents): Renamed from make_path.  All callers changed.
81115         * lib/mkdir-p.h: Likewise.  All includers changed.
81116         * lib/filenamecat.c: Renamed from path-concat.c.
81117         (file_name_concat): Renamed from path_concat.  All callers changed.
81118         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81119         * lib/filenamecat.h: Likewise.  All includers changed.
81120         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81121         in comments or local variable names.
81122         * lib/basename.c: Likewise.
81123         * lib/canonicalize.c, canonicalize.h: Likewise.
81124         * lib/dirname.c, dirname.h: Likewise.
81125         * lib/euidaccess.c: Likewise.
81126         * lib/exclude.c: Likewise
81127         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81128         * lib/fsusage.c, fsuage.h: Likewise.
81129         * lib/fts.c, fts_.h: Likewise.
81130         * lib/getcwd.c: Likewise.
81131         * lib/getloadavg.c: Likewise.
81132         * lib/mkstemp.c: Likewise.
81133         * lib/mountlist.c, mountlist.h: Likewise.
81134         * lib/openat.c, openat.h: Likewise.
81135         * lib/readlink-stub.c: Likewise.
81136         * lib/readutmp.c, readutmp.h: Likewise.
81137         * lib/rename.c: Likewise.
81138         * lib/rmdir.c: Likewise.
81139         * lib/same.c: Likewise.
81140         * lib/savedir.c: Likewise.
81141         * lib/stripslash.c: Likewise.
81142         * lib/tempname.c: Likewise.
81143         * lib/xreadlink.c: Likewise.
81144         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81145         All uses changed.
81146         * lib/exclude.h: Likewise.
81147
81148         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81149         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81150         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81151         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81152         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81153         files have been getting away with it for years (MORE/BSD 4.3
81154         is extinct now).
81155         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81156         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81157
81158         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81159         Define to 256, not 255, as per modern POSIX.
81160
81161 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         Sync from coreutils.
81164         Use "file name" when talking about file names, instead of "filename"
81165         or "path", as per the GNU coding standards.
81166         * MODULES.html.sh: mkdir-p renamed from makepath.
81167         filenamecat renamed from path-concat.
81168         * modules/filenamecat: Renamed from modules/path-concat.
81169         (Files): filenamecat.h and filenamecat.c renamed from
81170         path-concat.h and path-concat.c.
81171         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81172         (Include): filenamecat.h, not path-concat.h.
81173         * modules/mkdir-p: Renamed from modules/makepath.
81174         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81175         makepath.c.
81176         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81177         (Include): mkdir-p.h, not makepath.h.
81178
81179 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81180
81181         Sync from coreutils.
81182         * m4/mkdir-p.m4: Renamed from makepath.m4.
81183         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81184         Rename files from makepath.c to mkdir-p.c, and from
81185         makepath.h to mkdir-p.h.
81186         * m4/filenamecat.m4: Renamed from path-concat.m4.
81187         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81188         Rename files from path-concat.c to filenamecat.c,
81189         and from path-concat.h to filenamecat.h.
81190         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81191         "file name" in local variables or comments.
81192         * m4/rename.m4: Likewise.
81193
81194 2005-06-01  Bruno Haible  <bruno@clisp.org>
81195
81196         * modules/csharpexec: New file.
81197         * MODULES.html.sh (C#): New section.
81198
81199 2005-06-01  Bruno Haible  <bruno@clisp.org>
81200
81201         * m4/csharp.m4: New file, from GNU gettext.
81202         * m4/csharpexec.m4: New file, from GNU gettext.
81203
81204 2005-06-01  Bruno Haible  <bruno@clisp.org>
81205
81206         * lib/csharpexec.h: New file, from GNU gettext.
81207         * lib/csharpexec.c: New file, from GNU gettext.
81208         * lib/csharpexec.sh.in: New file, from GNU gettext.
81209
81210 2005-05-31  Derek Price  <derek@ximbiot.com>
81211             Paul Eggert  <eggert@cs.ucla.edu>
81212
81213         Sync from cvs.
81214         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81215
81216 2005-05-31  Derek Price  <derek@ximbiot.com>
81217             Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         Sync from cvs.
81220         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81221
81222 2005-05-29  Derek Price  <derek@ximbiot.com>
81223
81224         * config/srclist.txt (glob_.h, glob.c): Add these files.
81225
81226 2005-05-29  Derek Price  <derek@ximbiot.com>
81227
81228         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81229         * modules/glob: New file.
81230         * modules/getlogin_r: Add link to POSIX spec in description.
81231
81232 2005-05-29  Derek Price  <derek@ximbiot.com>
81233             Paul Eggert  <eggert@cs.ucla.edu>
81234
81235         * m4/glob.m4: New file.
81236
81237 2005-05-29  Derek Price  <derek@ximbiot.com>
81238             Paul Eggert  <eggert@cs.ucla.edu>
81239
81240         * lib/glob_.h, lib/glob.c: New files.
81241
81242 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81243
81244         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81245         * modules/fts-lgpl (Depends-on): Remove gettext.
81246
81247 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81250         and don't require gt_INTTYPES_PRI.
81251
81252 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81253
81254         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81255
81256         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81257         the configuration hassle isn't worth it.
81258         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81259         (LONGEST_MODIFIER, PRIuMAX): Remove.
81260
81261 2005-05-27  Bruno Haible  <bruno@clisp.org>
81262
81263         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81264
81265 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81266
81267         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81268         _POSIX_PTHREAD_SEMANTICS for Solaris.
81269
81270 2005-05-25  Derek Price  <derek@ximbiot.com>
81271
81272         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81273
81274 2005-05-25  Derek Price  <derek@ximbiot.com>
81275             Paul Eggert  <eggert@cs.ucla.edu>
81276
81277         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81278         * lib/getlogin_r.c, getlogin_r.h: New files.
81279
81280 2005-05-25  Bruno Haible  <bruno@clisp.org>
81281             Derek Price  <derek@ximbiot.com>
81282
81283         * lib/getlogin_r.h: Simplify API documentation.
81284
81285 2005-05-23  Derek Price  <derek@ximbiot.com>
81286
81287         * modules/minmax (Files): Add m4/minmax.m4.
81288         (configure.ac): Add gl_MINMAX.
81289
81290 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81293         so that unistd-safer.h (GPL'ed code) need not be included.
81294
81295 2005-05-22  Bruno Haible  <bruno@clisp.org>
81296
81297         * m4/minmax.m4: New file.
81298         Based on a patch by Derek Price <derek@ximbiot.com>.
81299
81300 2005-05-22  Bruno Haible  <bruno@clisp.org>
81301
81302         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81303         (INT64_MIN): Fix definition.
81304         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81305
81306         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81307         NEED_SIGNED_INT_TYPES.
81308
81309         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81310         HAVE_SYSTEM_INTTYPES.
81311
81312 2005-05-22  Bruno Haible  <bruno@clisp.org>
81313
81314         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81315         Also include <sys/param.h> if it defines MIN, MAX.
81316         Based on a patch by Derek Price <derek@ximbiot.com>.
81317
81318 2005-05-21  Jim Meyering  <jim@meyering.net>
81319
81320         * modules/fts (Files): Add m4/inttypes-pri.m4.
81321         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81322
81323 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81324
81325         New fts module.
81326         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81327         (setup_dir, free_dir): New functions.
81328         (enter_dir, leave_dir): Define trivial
81329         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81330         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81331         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81332         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81333         Move to fts-cycle.c.
81334         (fts_open): Use setup_dir.
81335         (fts_close): Use free_dir.
81336         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81337         This adds a label and some gotos, but the alternatives were messier.
81338         Check for memory allocation failure when entering a dir.
81339         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81340         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81341         (FTS): New member fts_cycle, that is a union that contains the
81342         old active_dir_ht and cycle_state.  All uses changed to mention
81343         fts_cycle.ht and fts_cycle.state.
81344         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81345         fts.c, with the following changes:
81346         (setup_dir, free_dir): New functions.
81347         (enter_dir): Now returns bool.  Return true if successful, false
81348         if memory exhausted.  All callers changed.
81349         Do not bother partly cleaning up on
81350         memory allocation failure; that is free_dir's job.
81351         However, free ad if hash_insert fails, to avoid memory leak.
81352         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81353         fts->fts_options to see which union member to use.
81354
81355 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81356
81357         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81358         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81359
81360 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81361
81362         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81363
81364 2005-05-20  Jim Meyering  <jim@meyering.net>
81365
81366         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81367         Now a macro, to pacify GCC.
81368
81369 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81370
81371         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81372         of -1.
81373
81374 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81375
81376         * lib/chown.c (rpl_chown): Return -1 on failure.
81377
81378 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81379
81380         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81381         Don't check for stddef.h.
81382         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81383         don't use its results.
81384         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81385         since we include them unconditionally.  Don't require
81386         AM_STDBOOL_H, since stdbool is a prerequisite.
81387         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81388         since we assume C89 or better.
81389         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81390         as we don't use their results.
81391         Don't check for fchdir, memmove, memset, strrchr, as we use
81392         them unconditionally.
81393         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81394         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81395
81396 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81399         Include <stddef.h> unconditionally, since we assume C89 now.
81400         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81401         * lib/fts.c: Include fts_.h first, to check interface.
81402         Do not include intprops.h; no longer needed.
81403         Include cycle-check.h and hash.h, since fts_.h no longer does.
81404         Remove unnecessary casts of closedir to void.
81405         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81406         decide whether to decrement nlinks.
81407         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81408         (FTS): Use struct hash_table * instead of Hash_table, so that
81409         we no longer need to include hash.h here.
81410
81411 2005-05-18  Jim Meyering  <jim@meyering.net>
81412
81413         * modules/dirfd (License): Change to LGPL.  Most of the code
81414         is already in the public domain.
81415
81416 2005-05-18  Jim Meyering  <jim@meyering.net>
81417
81418         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81419         Reported by Yoann Vandoorselaere.
81420
81421 2005-05-17  Jim Meyering  <jim@meyering.net>
81422
81423         * m4/fts.m4: New file, from coreutils.
81424
81425 2005-05-17  Jim Meyering  <jim@meyering.net>
81426
81427         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81428
81429 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81430
81431         Sync from coreutils.
81432         * m4/unlinkdir.m4: New file.
81433
81434 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81435
81436         Sync from coreutils.
81437         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81438         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81439         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81440         White space changes only.
81441         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81442         special.
81443         * lib/yesno.c: Include getline.h, not ctype.h.
81444         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81445         Use getline to remove arbitrary restriction on response length.
81446
81447 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81448
81449         * config/srclist-update: Spell out "Street" in FSF postal
81450         mail address; this is the style the FSF seems to prefer.
81451
81452         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81453         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81454         this updates FSF postal mail address.
81455
81456         Sync from coreutils.
81457         * modules/unlinkdir: New file.
81458         * modules/yesno (Depends-on): Add getline.
81459         * MODULES.html.sh (File system functions): Add unlinkdir.
81460
81461 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81462
81463         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81464         lib/strsep.h:
81465         Change the initial comment to refer to GPL, not LGPL.
81466         gnulib-tool will change it to LGPL as needed.
81467
81468         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81469         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81470         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81471         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81472         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81473         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81474         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81475         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81476         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81477         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81478         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81479         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81480         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81481         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81482         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81483         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81484         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81485         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81486         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81487         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81488         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81489         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81490         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81491         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81492         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81493         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81494         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81495         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81496         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81497         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81498         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81499         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81500         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81501         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81502         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81503         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81504         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81505         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81506         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81507         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81508         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81509         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81510         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81511         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81512         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81513         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81514         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81515         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81516         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81517         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81518         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81519         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81520         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81521         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81522         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81523         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81524         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81525         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81526         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81527         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81528         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81529         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81530         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81531         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81532         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81533         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81534         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81535         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81536         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81537         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81538         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81539         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81540         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81541         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81542         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81543         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81544         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81545         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81546         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81547         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81548         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81549         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81550         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81551         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81552         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81553         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81554         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81555         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81556         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81557         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81558         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81559         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81560         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81561         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81562         lib/yesno.c, lib/yesno.h:
81563         Update FSF postal mail address.
81564
81565 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81566
81567         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81568         tests/test-memmem.c, tests/test-stpncpy.c:
81569         Update FSF postal mail address.
81570
81571 2005-05-13  Bruno Haible  <bruno@clisp.org>
81572
81573         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81574         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81575         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81576         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81577         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81578         Add support for 64-bit integers in the MSVC compiler.
81579
81580 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81581
81582         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81583
81584 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81585
81586         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81587
81588 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81589
81590         * doc/getdate.texi (General date syntax): Don't say that date
81591         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81592         Problem reported by Nic Ferrier.
81593
81594 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81595
81596         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
81597         specified in ai_socktype. Fix invalid ai_protocol
81598         check. ai_protocol is usually set to 0 or depending on
81599         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
81600         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
81601         ai_socktype / ai_protocol in the returned addrinfo structure.
81602
81603 2005-05-10  Simon Josefsson  <jas@extundo.com>
81604
81605         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
81606         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81607
81608 2005-05-10  Karl Berry  <karl@gnu.org>
81609
81610         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
81611         (from http://www.gnu.org/licenses).
81612         * doc/COPYING.LIB: also rename to COPYING.LESSER.
81613         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
81614         fdl.texi suffices.
81615
81616 2005-05-10  Karl Berry  <karl@gnu.org>
81617
81618         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
81619         (COPYING.DOC): remove.
81620
81621         * config/srclist-update: new FSF address.
81622
81623 2005-05-10  Derek Price  <derek@ximbiot.com>
81624
81625         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
81626         possible.
81627
81628 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81629             Bruno Haible  <bruno@clisp.org>
81630
81631         * modules/inet_ntop: New file.
81632         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81633         inet_ntop.
81634
81635 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81636             Bruno Haible  <bruno@clisp.org>
81637
81638         * m4/inet_ntop.m4: New file.
81639
81640 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81641             Bruno Haible  <bruno@clisp.org>
81642
81643         * lib/inet_ntop.h: New file.
81644         * lib/inet_ntop.c: New file, from glibc with modifications.
81645
81646 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
81647
81648         * modules/time_r (License): Change to LGPL.
81649         * modules/extensions (License): Change to LGPL.  Actually,
81650         the license is more permissive than that, but currently gnulib-tool
81651         doesn't know how to handle more-permissive licenses.
81652
81653         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
81654         Problem reported by Dave Love.
81655
81656 2005-05-08  Jim Meyering  <jim@meyering.net>
81657
81658         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
81659         blank.
81660
81661 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81662
81663         * modules/argmatch (Depends-on): Add stdbool.
81664         * modules/backupfile (Depends-on): Likewise.
81665         * modules/chdir-long (Depends-on): Likewise.
81666         * modules/closeout (Depends-on): Likewise.
81667         * modules/cycle-check (Depends-on): Likewise.
81668         * modules/dirname (Depends-on): Likewise.
81669         * modules/fnmatch (Depends-on): Likewise.
81670         * modules/fsusage (Depends-on): Likewise.
81671         * modules/fwriteerror (Depends-on): Likewise.
81672         * modules/getcwd (Depends-on): Likewise.
81673         * modules/getloadavg (Depends-on): Likewise.
81674         * modules/hard-locale (Depends-on): Likewise.
81675         * modules/makepath (Depends-on): Likewise.
81676         * modules/mountlist (Depends-on): Likewise.
81677         * modules/nanosleep (Depends-on): Likewise.
81678         * modules/posixtm (Depends-on): Likewise.
81679         * modules/quotearg (Depends-on): Likewise.
81680         * modules/readtokens (Depends-on): Likewise.
81681         * modules/readtokens0 (Depends-on): Likewise.
81682         * modules/readutmp (Depends-on): Likewise.
81683         * modules/save-cwd (Depends-on): Likewise.
81684         * modules/strftime (Depends-on): Likewise.
81685         * modules/userspec (Depends-on): Likewise.
81686         * modules/utimecmp (Depends-on): Likewise.
81687         * modules/xgetcwd (Depends-on): Likewise.
81688         * modules/xnanosleep (Depends-on): Likewise.
81689         * modules/xstrtod (Depends-on): Likewise.
81690         * modules/yesno (Depends-on): Likewise.
81691
81692 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
81693
81694         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
81695         needless checks.
81696
81697 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81698
81699         Merge from coreutils.  Among other things,
81700         add bulletproofing for cases where stdin, stdout, or stderr are closed.
81701         * lib/fd-safer.c: New file.
81702         * lib/fcntl-safer.h, open-safer.c: Remove.
81703         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
81704         * lib/dup-safer.c: Include unistd-safer.h first.
81705         Don't include errno.h.
81706         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
81707         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
81708         * lib/file-type.c: Rely on file-type.h change.
81709         * lib/getloadavg.c: Include unistd-safer.h.
81710         (getloadavg): Use safer open.
81711         * lib/getusershell.c: Include "stdio-safer.h".
81712         (getusershell): Use safer fopen.
81713         * lib/long-options.c (long_options): Use NULL rather than 0.
81714         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
81715         'free'.
81716         * lib/modechange.c: Likewise.
81717         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
81718         (MODE_DONE): New constant.
81719         (struct mode_change): Remove 'next' member.
81720         (make_node_op_equals): New function; like the old one of the
81721         same name, except it allocates an array.
81722         (mode_compile, mode_create_from_ref): Use it.
81723         (mode_compile): Allocate result as an array, not a linked list.
81724         Parse octal string ourself, so that we catch mistakes like "+0".
81725         (mode_adjust): Arg is an array, not a linked list.
81726         * lib/modechange.c: Include stat-macros.h, xalloc.h.
81727         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
81728         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
81729         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
81730         Remove.  This is now stat-macros.h's job.
81731         (talloc): Remove.  All callers replaced by xalloc, so that
81732         our invokers don't have to worry about reporting memory failures.
81733         (make_node_op_equals): Remove.
81734         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81735         New constants.
81736         (struct mode_change): Moved here from modechange.h.
81737         (mode_append_entry): Remove.
81738         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81739         apps to have incorrect behavior.  Use simpler algorithm for head
81740         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81741         Detect more invalid usages rather than having somewhat-random behavior.
81742         Don't insert an "a=" action, as that leads to incorrect behavior.
81743         (mode_compile, mode_create_from_ref): Return NULL on error instead
81744         of an enum, since now there's only one way to have an error.  All
81745         callers changed.
81746         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
81747         at the correct time.  Simplify calculation of "+u" and its ilk.
81748         Don't mishandle "+X".
81749         (mode_free): Remove "register" and localize decls.
81750         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81751         (struct mode_change): Move to modechange.c; callers don't
81752         need to see this stuff.
81753         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
81754         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
81755         (mode_change, mode_adjust): Reflect the new signatures noted above.
81756         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
81757         that might redefine system include files.
81758         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
81759         (my_usleep): Use NULL rather than (void *) 0.
81760         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
81761         Use siginterrupt to specify that system calls should be interrupted.
81762         (rpl_nanosleep): Move initialization of suspended closer to call of
81763         my_usleep.
81764         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
81765         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
81766         (desirable_utmp_entry): New function.
81767         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
81768         using x2nrealloc, to simplify logic.
81769         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
81770         size calculation.  Do not assume utmp file is a regular file.
81771         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
81772         (READ_UTMP_CHECK_PIDS): New constant.
81773         * lib/save-cwd.c: Include unistd-safer.h.
81774         (save_cwd): Use fd_safer.
81775         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
81776         [!_LIBC] Include "stat-macros.h" instead.
81777         * lib/unistd-safer.h (fd_safer): New decl.
81778
81779 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81780
81781         * modules/getloadavg (Depends-on): Add unistd-safer.
81782         * modules/getusershell (Depends-on): Add stdio-safer.
81783         * modules/lstat (Depends-on): Remove xalloc.
81784         * modules/mkstemp (Depends-on): Add stat-macros.
81785         * modules/modechange (Depends-on): Remove xstrtol.
81786         Add stat-macros, xalloc.
81787         * modules/save-cwd (Depends-on): Add unistd-safer.
81788         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
81789         * modules/unistd-safer (Files): Add lib/fd-safer.c
81790         (Makefile.am): Remove lib_SOURCES.
81791
81792         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
81793         Remove fcntl-safer; unistd-safer supersedes it.
81794
81795 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
81798         AC_HEADER_STAT.
81799         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
81800         (gl_PREREQ_CHOWN): Remove.
81801         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
81802         it.  Don't require AC_HEADER_STAT.
81803         (gl_PREREQ_LSTAT): Remove.
81804         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
81805         Don't require AC_HEADER_STAT.
81806         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
81807         (gl_PREREQ_RMDIR): Remove.
81808         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
81809         mention stat-macros.h or AC_HEADER_STAT, since we'll make
81810         the stat-macros module a prerequisite.
81811         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
81812         * m4/filemode.m4 (gl_FILEMODE): Likewise.
81813         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
81814         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
81815         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
81816         variable names.
81817         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
81818         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
81819         variable prefixes.
81820         * m4/fcntl-safer.m4: Remove.
81821         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
81822         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
81823         Invoke gl_PREREQ_FD_SAFER.
81824         (gl_PREREQ_FD_SAFER): New macro.
81825         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
81826         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
81827         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
81828         Remove duplicate call to AC_LIBOBJ(readutmp).
81829         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
81830
81831         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
81832         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
81833
81834 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81835
81836         * MODULES.html.sh (Misc): Add byteswap.
81837
81838 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81839
81840         * modules/getcwd (Depends-on): Add extensions.
81841         * modules/openat (Depends-on): Likewise.
81842
81843 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81844
81845         * modules/byteswap: New file.
81846
81847 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81848
81849         * m4/byteswap.m4: New file.
81850
81851 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81852
81853         * lib/byteswap_.h: New file.
81854
81855 2005-04-25  Karl Berry  <karl@gnu.org>
81856
81857         * m4/gettext.m4: Update from GNU gettext 0.14.4.
81858
81859 2005-04-25  Albert Chin  <china@thewrittenword.com>
81860
81861         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
81862         Toolkit C bug.
81863
81864 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
81865
81866         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
81867         (func_ln_if_changed): Remove forcibly for no error message
81868         in case file does not exist.
81869
81870 2005-04-19  Simon Josefsson  <jas@extundo.com>
81871
81872         * gnulib-tool (Options): Make --symlink mean --symbolic.
81873
81874 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
81875
81876         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
81877
81878 2005-04-16  Simon Josefsson  <jas@extundo.com>
81879
81880         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
81881
81882 2005-04-15  Simon Josefsson  <jas@extundo.com>
81883
81884         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
81885
81886 2005-04-15  Simon Josefsson  <jas@extundo.com>
81887
81888         * gnulib-tool: Rename --symlink to --symbolic.
81889
81890 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
81891
81892         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
81893         symbolic links to files instead of copying/moving.  Add --aux-dir,
81894         specifying directory relative --dir where auxiliary build tools
81895         are placed.
81896
81897 2005-04-14  Bruno Haible  <bruno@clisp.org>
81898
81899         * modules/allocsa (License): Change to LGPL.
81900         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81901
81902 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
81905         that "UTC +1 second" continues to work.  Problem reported
81906         by Dmitry V. Levin.
81907         (relunit_snumber): New rule.
81908         (relunit): Use it.
81909
81910 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81911
81912         * lib/getdate.y (universal_time_zone_table): New constant.
81913         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
81914         universal_time_zone_table.
81915         (lookup_zone): Prefer universal_time_zone_table to
81916         local_time_zone_table, so that "GMT" time stamps are allowed in
81917         London during the summer.  Problem reported by Ian Abbott.
81918
81919 2005-04-12  Jim Meyering  <jim@meyering.net>
81920
81921         * lib/human.c (humblock): Set *options even when returning due to
81922         xstrtoumax conversion failure.  Thanks to a used-uninitialized
81923         warning from gcc-4.
81924
81925 2005-04-09  Jim Meyering  <jim@meyering.net>
81926
81927         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
81928         -Wuninitialized: initialize tm0.tm_year.
81929
81930 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81931
81932         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
81933         count, since there's no maximum.  All uses changed.
81934         Add member dsts_seen.
81935         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
81936         not being INT_MAX.
81937         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
81938         Use pc_rels_seen to decide whther a date is absolute.
81939
81940         * lib/getdate.y (number): Don't overwrite year.
81941         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
81942         check.
81943
81944 2005-04-02  Simon Josefsson  <jas@extundo.com>
81945
81946         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81947         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81948
81949 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81950
81951         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81952         where no absolute path name can be longer than PATH_MAX.
81953
81954 2005-03-27  Jim Meyering  <jim@meyering.net>
81955
81956         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81957
81958 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81959
81960         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81961         "one's complement" -> "ones' complement" in comment, as per Knuth.
81962         "value of type" -> "type or expression" in comment.
81963         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81964
81965 2005-03-26  Jim Meyering  <jim@meyering.net>
81966
81967         Comment nits.
81968         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81969         Correct typos: s/or/of/.
81970
81971 2005-03-26  Jim Meyering  <jim@meyering.net>
81972
81973         * modules/check-include-files: Move to ../ and rename to...
81974         * check-module: ...this.
81975
81976 2005-03-25  Jim Meyering  <jim@meyering.net>
81977
81978         * modules/xvasprintf (Files): Add xalloc.h.
81979
81980 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81981
81982         * modules/gettext (Files): config/config.rpath ->
81983         build-aux/config.rpath
81984         * modules/iconv (Files): Likewise.
81985         Problem reported by Oskar Liljeblad.
81986
81987 2005-03-23  Jim Meyering  <jim@meyering.net>
81988
81989         * modules/check-include-files: New script to check for
81990         missing dependencies, multiple includes, etc.
81991
81992         * modules/c-strtold (Depends-on): Add xalloc.
81993         * modules/c-strtod (Depends-on): Add xalloc.
81994         * modules/hash (Depends-on): Add xalloc.
81995         (Files): Remove lib/xalloc.h.
81996
81997         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81998         * modules/userspec (Files): Add lib/inttostr.h.
81999
82000 2005-03-23  Jim Meyering  <jim@meyering.net>
82001
82002         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82003
82004 2005-03-22  Jim Meyering  <jim@meyering.net>
82005
82006         * modules/stat-macros: New module.
82007         * modules/canonicalize, modules/euidaccess, modules/file-type,
82008         * modules/filemode, modules/lchown, modules/makepath,
82009         * modules/rmdir, modules/stat: Depend on new stat-macros module
82010         rather than listing lib/stat-macros.h manually.
82011         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82012
82013 2005-03-22  Jim Meyering  <jim@meyering.net>
82014
82015         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82016
82017 2005-03-22  Bruno Haible  <bruno@clisp.org>
82018
82019         * config/srclist.txt: Replace target directory 'config' with
82020         'build-aux'.
82021         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82022         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82023         ../build-aux/.
82024
82025 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82026
82027         * modules/chdir-long (Depends-on): Add mempcpy.
82028
82029         * modules/acl, modules/backupfile, modules/c-strtod,
82030         modules/c-strtold, modules/canon-host, modules/canonicalize,
82031         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82032         modules/exclude, modules/exitfail, modules/file-type,
82033         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82034         modules/getdate, modules/getline, modules/getpagesize,
82035         modules/getpass, modules/getugroups, modules/group-member,
82036         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82037         modules/inttostr, modules/long-options, modules/makepath,
82038         modules/md5, modules/memcasecmp, modules/memcoll,
82039         modules/modechange, modules/mountlist, modules/path-concat,
82040         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82041         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82042         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82043         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82044         modules/strftime, modules/strndup, modules/strverscmp,
82045         modules/timespec, modules/unlocked-io, modules/userspec,
82046         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82047         modules/yesno:
82048         Remove lib_SOURCES line from Makefile.am section, as this is now
82049         done automatically by the corresponding Autoconf macro.
82050
82051 2005-03-21  Jim Meyering  <jim@meyering.net>
82052
82053         Changes imported from coreutils.
82054
82055         * lib/cycle-check.c: Don't include xalloc.h.
82056
82057         * lib/path-concat.c: Don't include assert.h.
82058         (path_concat): Remove assertion that would have triggered
82059         for ABASE starting with more than one slash.
82060         Reported by Andreas Schwab.
82061
82062         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82063         properly when ABASE is an absolute file name.
82064         Correct the description of this function.
82065         Include <assert.h>.
82066         Add an assertion and a test driver.
82067         This fixes a bug introduced on 2004-07-02.
82068         Andreas Schwab reported the resulting failure of cp --parents:
82069         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82070
82071 2005-03-21  Jim Meyering  <jim@meyering.net>
82072
82073         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82074         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82075
82076 2005-03-21  Jim Meyering  <jim@meyering.net>
82077         and  Paul Eggert  <eggert@cs.ucla.edu>
82078
82079         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82080         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82081         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82082         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82083         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82084         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82085         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82086         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82087         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82088         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82089         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82090         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82091         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82092         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82093         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82094         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82095         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82096         for these modules.
82097
82098 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82099
82100         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82101         (which shouldn't happen), generate nothing instead of returning 0
82102         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82103
82104 2005-03-16  Bruno Haible  <bruno@clisp.org>
82105
82106         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82107         HAVE_LONGLONG_64BIT.
82108
82109 2005-03-16  Bruno Haible  <bruno@clisp.org>
82110
82111         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82112         HAVE_LONGLONG_64BIT.
82113
82114 2005-03-16  Bruno Haible  <bruno@clisp.org>
82115
82116         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82117         HAVE_LONGLONG_64BIT.
82118
82119 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82120
82121         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82122         reliably distinguish strftime failure from empty output on POSIX
82123         hosts.
82124
82125 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82126
82127         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82128         (iconv_string): Don't guess a size-zero buffer, as that might cause
82129         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82130         result would be 'too large', where 'too large' is (heuristically)
82131         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82132         overflow concerns.  This will prevent some unwanted malloc failures
82133         when the inputs are very large.
82134
82135 2005-03-15  Karl Berry  <karl@gnu.org>
82136
82137         * config/srclist.txt (config.rpath): from gettext.
82138         * config/config.rpath: update.
82139
82140 2005-03-15  Bruno Haible  <bruno@clisp.org>
82141
82142         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82143         to 'negate'.
82144
82145         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82146         variable.
82147
82148         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82149         results.
82150
82151 2005-03-14  Simon Josefsson  <jas@extundo.com>
82152
82153         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82154         <fx@gnu.org>.
82155
82156 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82157
82158         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82159         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82160         intprops.h.
82161         * lib/strtol.c: Likewise.
82162
82163 2005-03-14  Jim Meyering  <jim@meyering.net>
82164
82165         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82166         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82167         to be nonzero so that we (and caller) can detect the difference
82168         between a valid zero-length expansion and an error return, even
82169         when the underlying strftime fails before writing anything into
82170         that location.
82171
82172 2005-03-14  Bruno Haible  <bruno@clisp.org>
82173
82174         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82175         Update from GNU gettext 0.14.3.
82176
82177 2005-03-10  Jim Meyering  <jim@meyering.net>
82178
82179         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82180
82181 2005-03-10  Jim Meyering  <jim@meyering.net>
82182
82183         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82184         so that this module works on systems without fchdir.
82185
82186 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82187
82188         Factor int-properties macros into a single file, except for
82189         glibc-related files.
82190         * lib/intprops.h: New file.
82191         * lib/getloadavg.c: Include it instead of limits.h.
82192         (INT_STRLEN_BOUND): Remove.
82193         * lib/human.c: Include intprops.h.
82194         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82195         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82196         302/1000.
82197         * lib/inttostr.h: Include intprops.h instead of limits.h.
82198         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82199         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82200         for consistency with intprops.h.
82201         (time_t_is_integer, twos_complement_arithmetic): Use them.
82202         * lib/sig2str.h: Include <signal.h>, intprops.h.
82203         (INT_STRLEN_BOUND): Remove.
82204         * lib/strftime.c (TYPE_SIGNED): Remove.
82205         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82206         * lib/strtol.c: Adjust comments to match intprops.h.
82207         * lib/userspec.c: Include intprops.h.
82208         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82209         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82210         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82211         instead of rolling our own expressions.
82212         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82213
82214         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82215         instead of int.
82216         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82217         the right thing even if adding 1900 would overflow.  Similarly
82218         for tm_mon + 1 and tm_yday + 1.
82219         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82220         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82221         (DO_SIGNED_NUMBER): New macro.
82222         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82223
82224 2005-03-07  Bruno Haible  <bruno@clisp.org>
82225
82226         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82227
82228 2005-03-07  Bruno Haible  <bruno@clisp.org>
82229
82230         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82231
82232 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82233
82234         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82235         (func_import): Only replace files via --import when they have actually
82236         changed.
82237
82238 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82239
82240         * m4/mmap-anon.m4: New file.
82241         * m4/pagealign_alloc.m4: New file.
82242
82243 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82244             Bruno Haible  <bruno@clisp.org>
82245
82246         * modules/pagealign_alloc: New file.
82247         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82248
82249 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82250             Bruno Haible  <bruno@clisp.org>
82251
82252         * lib/pagealign_alloc.h: New file.
82253         * lib/pagealign_alloc.c: New file.
82254
82255 2005-03-03  Bruno Haible  <bruno@clisp.org>
82256
82257         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82258         Use an all-permissive copyright notice, recommended by RMS.
82259
82260 2005-03-02  Bruno Haible  <bruno@clisp.org>
82261
82262         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82263         of AIX, the replacement has to be done only after <string.h> is
82264         included, therefore not in config.h. stpncpy.h does the replacement,
82265         and stpncpy.c uses it.
82266
82267 2005-03-02  Bruno Haible  <bruno@clisp.org>
82268
82269         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82270         stpncpy.c uses it.
82271
82272 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82273
82274         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82275         The workaround isn't strictly needed for POSIX conformance, and
82276         it's too much of a pain to configure and maintain.  We'll ask
82277         people to fix their kernels instead.
82278         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82279         (NANOSLEEP_BUG_WORKAROUND): Remove.
82280         (xnanosleep): Remove the workaround.
82281
82282 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82285         Reported by Derek Price.
82286         (Include): Add "timespec.h".
82287
82288         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82289
82290 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82291
82292         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82293         to detect nanosleep bug.
82294
82295 2005-03-01  Bruno Haible  <bruno@clisp.org>
82296
82297         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82298
82299 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82300
82301         * modules/gethrxtime: New file.
82302         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82303         (Depends-on): Add gethrxtime.
82304         (configure.ac): Add gl_XNANOSLEEP.
82305         (Makefile.am): Remove lib_SOURCES line.
82306
82307 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82308
82309         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82310         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82311
82312 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82315         * lib/timespec.h (gettime): Return void, since it always
82316         succeeds now.  All uses changed.
82317         * lib/gettime.c (gettime): Likewise.
82318         [HAVE_NANOTIME]: Prefer nanotime.
82319         Assume gettimeofday succeeds, as POSIX requires.
82320         Assime time () succeeds, since other code already does.
82321         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82322         (timespec_subtract): Remove.
82323         (NANOSLEEP_BUG_WORKAROUND): New constant.
82324         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82325         things considerably.  Use it only on GNU/Linux hosts, since the
82326         workaround shouldn't be needed elsewhere.
82327
82328 2005-02-24  Bruno Haible  <bruno@clisp.org>
82329
82330         * modules/gettext (Files): Add m4/glibc2.m4.
82331
82332 2005-02-24  Bruno Haible  <bruno@clisp.org>
82333
82334         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82335         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82336         * m4/progtest.m4:
82337         Update from GNU gettext 0.14.2.
82338         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82339
82340 2005-02-24  Bruno Haible  <bruno@clisp.org>
82341
82342         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82343         * lib/config.charset: Update from GNU gettext 0.14.2.
82344
82345 2005-02-24  Bruno Haible  <bruno@clisp.org>
82346
82347         * lib/gettext.h: Update from GNU gettext 0.14.2.
82348
82349 2005-02-23  Simon Josefsson  <jas@extundo.com>
82350
82351         * m4/iconvme.m4: New file.
82352
82353 2005-02-23  Jim Meyering  <jim@meyering.net>
82354
82355         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82356         change.
82357         Thanks to Bruno Haible for catching it.
82358
82359 2005-02-22  Simon Josefsson  <jas@extundo.com>
82360
82361         * modules/iconvme: New file.
82362
82363         * MODULES.html.sh: Add iconvme.
82364
82365 2005-02-22  Simon Josefsson  <jas@extundo.com>
82366
82367         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82368
82369 2005-02-22  Simon Josefsson  <jas@extundo.com>
82370
82371         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82372
82373 2005-02-22  Jim Meyering  <jim@meyering.net>
82374
82375         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82376         s/ifndef/ifdef/.
82377
82378 2005-02-20  Neil Conway  <neilc@samurai.com>
82379
82380         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82381         returned by OSX/Darwin if the specified buffer is not large
82382         enough for the hostname.
82383
82384 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82385
82386         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82387         pass it to _help, otherwise the latter coredumps trying to
82388         dereference state.root_argp.
82389
82390 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82391
82392         * modules/chdir-long (Depends-on): Add memrchr.
82393         * modules/memrchr (Files): Add lib/memrchr.h.
82394         (Include): "memrchr.h".
82395
82396 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82397
82398         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82399
82400 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82401
82402         * lib/memrchr.h: New file.
82403         * lib/chdir-long.c: Include it.
82404         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82405         Don't bother including stddef.h.
82406
82407 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82408
82409         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82410         inclusion.
82411         Include <sys/types.h>, for dev_t.
82412         (ME_DUMMY, ME_REMOTE): Move from here....
82413         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82414         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82415         Dmitry V. Levin.
82416         Include mountlist.h first, to test the interface.
82417
82418 2005-01-29  Bruno Haible  <bruno@clisp.org>
82419
82420         * lib/progname.c (program_name): Initialize.
82421         Needed when linking statically on MacOS X.
82422
82423 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82424
82425         Sync from coreutils.
82426         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82427         (Depends-on): Add c-strtod.
82428         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82429
82430 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82431
82432         Sync from coreutils.
82433         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82434
82435         Remove files that are specific to coreutils.
82436         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82437
82438 2005-01-28  Bruno Haible  <bruno@clisp.org>
82439
82440         * modules/javacomp: New file.
82441         * MODULES.html.sh (Java): Add javacomp.
82442
82443 2005-01-28  Bruno Haible  <bruno@clisp.org>
82444
82445         * m4/javacomp.m4: New file, from GNU gettext.
82446
82447 2005-01-28  Bruno Haible  <bruno@clisp.org>
82448
82449         * lib/javacomp.sh.in: New file, from GNU gettext.
82450         * lib/javacomp.h: New file, from GNU gettext.
82451         * lib/javacomp.c: New file, from GNU gettext.
82452
82453 2005-01-26  Simon Josefsson  <jas@extundo.com>
82454
82455         * lib/gai_strerror.c: Use GPL in header.
82456
82457 2005-01-26  Bruno Haible  <bruno@clisp.org>
82458
82459         * modules/javaexec: New file.
82460         * MODULES.html.sh (Java): Add javaexec.
82461
82462 2005-01-26  Bruno Haible  <bruno@clisp.org>
82463
82464         * m4/javaexec.m4: New file, from GNU gettext.
82465
82466 2005-01-26  Bruno Haible  <bruno@clisp.org>
82467
82468         * lib/javaexec.sh.in: New file, from GNU gettext.
82469         * lib/javaexec.h: New file, from GNU gettext.
82470         * lib/javaexec.c: New file, from GNU gettext.
82471
82472 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82473
82474         * modules/lchown (Depends-on): Remove lchown.h
82475
82476 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82477
82478         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82479         must be defined if the header file was not found, in order
82480         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82481
82482 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82483
82484         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82485         initializers for struct pentry_state.
82486         (__argp_error): Check return value of __asprintf
82487         (__argp_failure): Translate error message
82488
82489         * lib/argp-parse.c: Removed braces around the expansion of N_()
82490
82491 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82492
82493         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82494         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82495         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82496         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82497         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82498         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82499         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82500         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82501         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82502         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82503         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82504         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82505         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82506         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82507         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82508         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82509         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82510         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82511         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82512         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82513         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82514         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82515         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82516         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82517         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82518         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82519         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82520         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82521         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82522         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82523         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82524         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82525         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82526         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82527         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82528         Use an all-permissive copyright notice, recommended by RMS.
82529
82530 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82531
82532         * modules/chdir-long (Depends-on): Remove mempcpy.
82533
82534 2005-01-21  Jim Meyering  <jim@meyering.net>
82535
82536         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82537         same value as for Solaris 9.
82538
82539         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82540         component length.  This included changing the parameter to be
82541         of type `char *' rather than `char const *'.
82542         * lib/chdir-long.h (chdir_long): Update prototype.
82543
82544         * lib/openat.c (fdopendir, fstatat): New functions.
82545         * lib/openat.h: Include headers required for use of DIR and struct
82546         stat.
82547         [AT_SYMLINK_NOFOLLOW]: Define.
82548         (fdopendir, fstatat): Add prototypes.
82549
82550 2005-01-21  Bruno Haible  <bruno@clisp.org>
82551
82552         * modules/classpath: New file.
82553         * MODULES.html.sh (Java): Add classpath.
82554
82555 2005-01-21  Bruno Haible  <bruno@clisp.org>
82556
82557         * lib/classpath.h: New file, from GNU gettext.
82558         * lib/classpath.c: New file, from GNU gettext.
82559
82560 2005-01-20  Simon Josefsson  <jas@extundo.com>
82561
82562         * modules/version-etc-fsf: New file.
82563
82564 2005-01-20  Simon Josefsson  <jas@extundo.com>
82565
82566         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82567         * lib/version-etc.c: Remove version_etc_copyright.
82568         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82569         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82570
82571 2005-01-20  Simon Josefsson  <jas@extundo.com>
82572
82573         * lib/base64.h (isbase64): Add.
82574
82575         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82576         using a unsigned prototype, don't inline.
82577         (base64_decode): Use it.
82578
82579 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82580
82581         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82582         it.
82583
82584 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82585
82586         * lib/save-cwd.c (save_cwd): Remove code to support the case
82587         where fchdir is missing or flaky.
82588
82589 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82590
82591         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82592
82593 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82594
82595         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82596         AC_LIBSOURCES now does this.
82597         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
82598         with new ullong_max module.
82599
82600 2005-01-19  Bruno Haible  <bruno@clisp.org>
82601
82602         * modules/sh-quote: New file.
82603         * MODULES.html.sh (Executing programs): Add sh-quote.
82604
82605 2005-01-19  Bruno Haible  <bruno@clisp.org>
82606
82607         * lib/sh-quote.h: New file, from GNU gettext.
82608         * lib/sh-quote.c: New file, from GNU gettext.
82609
82610 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82611
82612         Merge from coreutils.
82613         * m4/ullong_max.m4: New file.
82614         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
82615         (gl_MACROS): Assume localeconv exists.
82616
82617 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82618
82619         Merge changes from coreutils, as described below in several
82620         changelogs dated today.
82621
82622         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
82623         (O_DIRECTORY): Remove; not needed here, since "." must be
82624         a directory.  All uses removed.
82625         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
82626         universal on Suns, and we also need to test for IRIX.
82627         Revamp code to use 'if' rather than '#if'.
82628         Avoid unnecessary comparison of cwd->desc to 0.
82629
82630         * lib/utimens.c (futimens): Robustify the previous patch, by checking
82631         for known valid error numbers rather than observed invalid ones.
82632
82633 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82634
82635         * modules/ullong_max: New file.
82636
82637         * modules/chdir-long, modules/openat: New files.
82638         * modules/save-cwd (Depends-on): Depend on chdir-long.
82639         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
82640
82641 2005-01-18  Jim Meyering  <jim@meyering.net>
82642
82643         Merge from coreutils.
82644         * m4/chdir-long.m4, m4/openat.m4: New files.
82645         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
82646         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
82647         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
82648         is sane and DOES follow symlinks.  Besides, testing 20 different
82649         systems found no broken chown implementations.
82650         Prompted by a change in rsync's copy of this macro.
82651         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
82652
82653         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
82654
82655         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
82656         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
82657         NULL-means-set-to-current-time semantics.
82658         Remove temporary file immediately, rather than waiting
82659         for configure's at-exit trap code to do it.
82660
82661 2005-01-18  Jim Meyering  <jim@meyering.net>
82662
82663         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82664
82665         * lib/utimens.c (futimens): Account for the fact that futimes
82666         can also fail with errno == ENOSYS or errno == ENOENT.
82667         Patch from Dmitry V. Levin.
82668
82669         Change the name of the robust chdir function from chdir to chdir_long.
82670         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
82671         (restore_cwd): Use chdir_long, not chdir.
82672         * lib/chdir-long.c: Renamed from chdir.c.
82673         * lib/chdir-long.h: Renamed from chdir.h.
82674         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
82675         Hurd.
82676
82677 2005-01-18  Bruno Haible  <bruno@clisp.org>
82678
82679         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
82680         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
82681         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
82682         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
82683         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
82684         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
82685         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
82686         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
82687         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
82688         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
82689         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
82690         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
82691         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
82692         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
82693         Use an all-permissive copyright notice, recommended by RMS.
82694
82695 2005-01-18  Bob Proulx  <bob@proulx.com>
82696
82697         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
82698         simplify offsetof() macro construct to avoid compile failure with
82699         native HP-UX 11.0 ANSI C compiler.
82700
82701 2005-01-17  Bruno Haible  <bruno@clisp.org>
82702
82703         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
82704         redundant because stpncpy.m4 takes care of it.
82705
82706 2005-01-17  Bruno Haible  <bruno@clisp.org>
82707
82708         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
82709
82710 2005-01-17  Bruno Haible  <bruno@clisp.org>
82711
82712         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
82713         used.
82714
82715 2005-01-17  Bruno Haible  <bruno@clisp.org>
82716
82717         * lib/fwriteerror.h (fwriteerror): Change specification to include
82718         fclose.
82719         * lib/fwriteerror.c: Include <stdbool.h>.
82720         (fwriteerror): At the end, close the file stream. Record whether
82721         stdout was already closed.
82722
82723 2005-01-17  Bruno Haible  <bruno@clisp.org>
82724
82725         * lib/execute.c (environ): Declare if needed.
82726         * lib/pipe.c (environ): Likewise.
82727         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
82728
82729 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82730
82731         * modules/argp: Depend on vsnprintf
82732
82733 2005-01-10  Jim Meyering  <jim@meyering.net>
82734
82735         * modules/closeout (Depends-on): Add atexit.
82736
82737 2005-01-06  Bruno Haible  <bruno@clisp.org>
82738
82739         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82740
82741 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82742
82743         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
82744         definitions to be after all include files, to avoid collisions.
82745         Problem reported by Bob Proulx.
82746
82747 2005-01-04  Jim Meyering  <jim@meyering.net>
82748
82749         Changes imported from coreutils.
82750         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
82751         as the mkstemp template, use a temporary directory and an
82752         8.3-friendly template to avoid trouble on systems like DJGPP.
82753         Reported by Juan M. Guerrero via Stepan Kasal.
82754         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
82755         close. Remove the temporary directory right away, rather than waiting
82756         for configure's at-exit trap code to do it.
82757         Suggestion from Stepan Kasal.
82758
82759 2005-01-01  Simon Josefsson  <jas@extundo.com>
82760
82761         * gnulib-tool: Print #include directives when --import'ing.
82762
82763 2004-12-28  Simon Josefsson  <jas@extundo.com>
82764
82765         * tests/test-base64.c: Include required header files.  Remove
82766         unused variables.
82767
82768 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82769
82770         * modules/error (Depends-on): Remove gettext.
82771
82772 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82773
82774         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
82775         not needed.  This removes a dependency on the gettext module.
82776         [defined _LIBC]: Do not include <libintl.h>; not needed.
82777
82778 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82779
82780         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
82781         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
82782
82783 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82784
82785         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
82786         HAVE_DECL_STRTOLD.
82787
82788 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82789
82790         * modules/getdate (Depends-on): Remove alloca-opt.
82791
82792 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82793
82794         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
82795
82796 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * lib/argp-parse.c: Include <stddef.h>.
82799         (alignof, alignto): New macros.
82800         (parser_init): Don't assume that void * is aligned sufficiently
82801         for struct option.
82802
82803         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
82804         need to extend the stack.
82805         (YYINITDEPTH): New macro, so that the initial stack isn't overly
82806         large.
82807
82808 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82809
82810         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
82811
82812 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82813
82814         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
82815         (2004-10-24) change.  Apparently this was a false alarm.
82816
82817         * modules/getdate: Depend on alloca-opt, not alloca.
82818
82819 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
82822         Remove now-obsolete comment about AIX.
82823         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
82824         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
82825         (YYMAXDEPTH): New macro.
82826
82827 2004-12-18  Simon Josefsson  <jas@extundo.com>
82828
82829         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
82830
82831 2004-12-18  Bruno Haible  <bruno@clisp.org>
82832
82833         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
82834
82835 2004-12-18  Bruno Haible  <bruno@clisp.org>
82836
82837         * lib/fatal-signal.c (fatal_signals): Make non-const.
82838         (init_fatal_signals): New function.
82839         (uninstall_handlers, install_handlers): Ignore signals that were set to
82840         SIG_IGN.
82841         (at_fatal_signal): Call init_fatal_signals.
82842         (init_fatal_signal_set): Likewise. Ignore signals that were set to
82843         SIG_IGN.
82844         Reported by Paul Eggert.
82845
82846 2004-12-18  Bruno Haible  <bruno@clisp.org>
82847
82848         * doc/alloca.texi: New file.
82849         * doc/alloca-opt.texi: New file.
82850
82851 2004-12-17  Jim Meyering  <jim@meyering.net>
82852
82853         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
82854         Otherwise, install-sh could exit with improper exit status when
82855         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
82856
82857 2004-12-16  Simon Josefsson  <jas@extundo.com>
82858
82859         * tests/test-base64.c: Add license.
82860
82861 2004-12-15  Stepan Kasal  <address@hidden>
82862
82863         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
82864
82865 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
82866
82867         * modules/getcwd (Files): Add m4/d-ino.m4.
82868         Suggested by Mark D. Baushke.
82869
82870 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82871
82872         * lib/getdate.y (textint): New member "negative".
82873         (time_zone_hhmm): New function.
82874         Expect 14 shift-reduce conflicts, not 13.
82875         (o_colon_minutes): New rule.
82876         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
82877         (yylex): Set the "negative" member of signed numbers.
82878
82879 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         * doc/getdate.texi (Time of day items, Time zone items):
82882         Describe new formats +00:00, UTC+00:00.
82883
82884 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82885
82886         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
82887         spurious "-l"s.  Problem reported by Stepan Kasal.
82888
82889 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
82890
82891         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
82892         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
82893
82894 2004-12-04  Simon Josefsson  <jas@extundo.com>
82895
82896         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
82897         Vandoorselaere <yoann@prelude-ids.org>.
82898
82899 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82900
82901         Changes imported from coreutils.
82902         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
82903         exist.
82904         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
82905
82906 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82907
82908         Changes imported from coreutils.
82909         * lib/hard-locale.c: Assume <locale.h> exists.
82910         Include "strdup.h".
82911         (GLIBC_VERSION): New macro.
82912         (hard_locale): Assume setlocale exists.
82913         Rewrite to avoid #ifdef.
82914         Use strdup rather than malloc + strcpy.
82915         * lib/human.c: Assume <locale.h> exists.
82916         (human_readable): Assume localeconv exists.
82917
82918 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82919
82920         * modules/hard-locale (Depends-on): Add strdup.
82921
82922 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
82923
82924         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
82925         convert T2, not T.  (Imported from libc.)
82926
82927 2004-11-30  Simon Josefsson  <jas@extundo.com>
82928
82929         * modules/restrict (License): Change to LGPL.
82930
82931 2004-11-30  Simon Josefsson  <jas@extundo.com>
82932
82933         * m4/restrict.m4: Add copyright and copying conditions.
82934
82935 2004-11-30  Simon Josefsson  <jas@extundo.com>
82936
82937         * m4/base64.m4: New file.
82938
82939 2004-11-30  Simon Josefsson  <jas@extundo.com>
82940
82941         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
82942         base64.
82943
82944         * tests/test-base64.c: New file.
82945
82946         * modules/base64: New file.
82947
82948 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82949
82950         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82951         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82952
82953         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82954
82955 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82956
82957         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82958         (__getcwd.c): Don't restore errno; glibc doesn't.
82959         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82960         first, falling back to our code only if its results look suspicious.
82961         Ensure that the resulting buffer is only as large as necessary.
82962
82963         * lib/readutmp.c: Include readutmp.h first.
82964         Include <errno.h>, since readutmp.h no longer does that.
82965         * lib/readutmp.h: Don't include <errno.h>,
82966         <sys/param.h>, <time.h>; not needed to establish interface.
82967         (errno): Remove decl.
82968         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82969         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82970         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82971
82972 2004-11-28  Simon Josefsson  <jas@extundo.com>
82973
82974         * lib/base64.h, base64.c: New file.
82975
82976 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82979
82980 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82981
82982         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82983         (Depends-on): Remove pathmax, same.  Add mempcpy.
82984         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82985         (Makefile.am): Append getcwd.h to lib_SOURCES.
82986         (Include): Add getcwd.h.
82987         (Maintainer): Change from Jim Meyering to "all, glibc",
82988         since getdate now uses intended-for-glibc code.
82989         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82990         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82991
82992 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82995         HP's ANSI C compiler.
82996         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82997         Declaring int functions causes warnings on some modern systems and
82998         shouldn't be needed to compile on ancient ones.
82999         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83000         defined.
83001
83002         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83003         with the following changes.
83004         (__set_errno): Parenthesize properly.
83005         Include <stdbool.h>.
83006         (MIN, MAX, MATCHING_INO): New macros.
83007         (__getcwd): Define with prototype, not K&R form.
83008         Use heuristics to allocate default buffer on stack if possible.
83009         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83010         behavior, and to avoid the PATH_MAX limit when computing
83011         ../../../../...
83012         Use MATCHING_INO to compare inode number to file.
83013         Check for arithmetic overflow in size calculations.
83014         Fix bug in reallocation of dot array that caused getcwd to fail
83015         on directories nested deeper than 75.
83016         Be more careful about saving errno on error.
83017         Do not use realloc; use only free+malloc, as this is a bit
83018         more flexible and avoids a needless copy operation.
83019         Do not inspect st_dev and st_ino for symbolic links; POSIX
83020         doesn't specify the latter.
83021         Check for closedir errors.
83022         Avoid needless casts.
83023         Use "#ifdef weak_alias" around weak_alias, to be like other
83024         glibc code.
83025         The following changes to getcwd.c have effect only when used in
83026         gnulib; they have no effect inside glibc proper.
83027         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83028         as alloca isn't used.
83029         (alloca, __alloca): Likewise.
83030         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83031         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83032         unconditionally, as gnulib assumes C89 or better.
83033         Do not include <sys/param.h>.
83034         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83035         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83036         better.
83037         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83038         Include <dirent.h> in a way that is compatible with modern Autoconf.
83039         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83040         New macros, if not already defined.
83041         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83042         Use "_LIBC", not "defined _LIBC", for consistency.
83043         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83044         a mempcpy module.
83045         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83046         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83047         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83048         credit only to Jim Meyering and adjust the copyright dates.
83049         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83050         <stdlib.h>, <unistd.h>, "pathmax.h".
83051         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83052         (INITIAL_BUFFER_SIZE): Remove.
83053         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83054
83055 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83056
83057         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83058         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83059         Use the _ONCE methods, for efficiency.
83060         Check for fcntl.h.  In test program, include <errno.h>
83061         and <fcntl.h> if available.  Remove old K&R cruft from
83062         test program.  Check for common errors in GNU/Linux,
83063         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83064         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83065         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83066         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83067         name accordingly.
83068         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83069         accommodate new getcwd.c.
83070         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83071         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83072         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83073         that's all we need now.
83074
83075 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83076
83077         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83078         argp-parse.c depends on getopt internals, that means we should
83079         always use our getopt, to be on the safe side.
83080         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83081         order not to spoil the result of an eventual previous invocation
83082         of gl_GETOPT_SUBSTITUTE.
83083
83084 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83085
83086         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83087         redefinition warnings. To avoid them, include the defines
83088         in `#if !defined __need_getopt ... #endif'. The only place
83089         where __getopt_argv_const is used is in definitions
83090         of getopt_long and getopt_long_only below, which are as well
83091         protected by `#ifndef __need_getopt'.
83092         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83093         __need_getopt after including <stdio.h> and <unistd.h> These
83094         headers might have defined it.
83095
83096 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83097
83098         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83099
83100 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83101
83102         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83103         (futimens): New function, which uses futimes if available.
83104         (futimens, utimens): Support timespec==NULL, with same semantics
83105         as utime and utimens.
83106         * lib/utimens.h (futimens): New decl.
83107
83108 2004-11-23  Jim Meyering  <jim@meyering.net>
83109
83110         * lib/getopt_.h: Remove trailing blanks.
83111
83112 2004-11-23  Jim Meyering  <jim@meyering.net>
83113
83114         * lib/__fpending.c: Add comment.
83115
83116 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83117
83118         * modules/canonicalize (Depends-on): Add xreadlink.
83119         Problem reported by James Youngman.
83120
83121 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83122
83123         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83124         New macros.
83125         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83126         optopt): Use them instead of invoking ## directly; otherwise, the
83127         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83128
83129 2004-11-19  Bruno Haible  <bruno@clisp.org>
83130
83131         * lib/strtok_r.c: Move comments from here...
83132         * lib/strtok_r.h: ... to here.
83133
83134 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83137         implementations that mishandle size_t overflow.
83138
83139 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83140
83141         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83142         might fail.  Problem reported by Yoann Vandoorselaere.
83143         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83144         implementations that mishandle size_t overflow.
83145
83146 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83147
83148         * modules/canon-host (Depends-on): Add strdup.
83149
83150 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83151
83152         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83153
83154 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83155
83156         * lib/canon-host.c: Include "strdup.h".
83157         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83158         Use strdup instead of malloc/strcpy to duplicate strings.
83159
83160         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83161         (human_space_before_unit): New constant.
83162         * lib/human.c (human_readable): Support it.
83163
83164         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83165         (xgetcwd): Set errno correctly when failing.
83166         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83167         the failure is actually due to a PATH_MAX problem.
83168
83169         Further getopt changes to make it more likely that glibc will
83170         buy the changes back.
83171         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83172         (getopt): Use it, so to preserve glibc semantic
83173         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83174         when compiling for libc.
83175         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83176         (getopt_long, getopt_long_only): Use it.
83177
83178         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83179         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83180         (getopt): Argv is now char * const *, as per standard.
83181         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83182         not char *__getopt_argv_const *.
83183         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83184         _getopt_long_only_r): Likewise.
83185         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83186         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83187         _getopt_long_r, _getopt_long_only_r): Likewise.
83188         * lib/getopt_.h (__getopt_argv_const): Remove.
83189         (getopt): Argv is now char * const *, as per standard.
83190
83191         * lib/getdate.y (tORDINAL): New token.
83192         (day, relunit): Allow it for relative times.
83193         (relative_time_table): Use tORDINAL for ordinals.
83194
83195 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83196
83197         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83198         Document that "second" isn't allowed as an ordinal number.
83199
83200 2004-11-16  Jim Meyering  <jim@meyering.net>
83201
83202         * modules/closeout (Depends-on): Add fpending.
83203
83204 2004-11-15  Jim Meyering  <jim@meyering.net>
83205
83206         * lib/closeout.c: Include "__fpending.h" once again.
83207         Include <stdbool.h>.
83208         (close_stdout): Don't fail just because stdout was closed initially,
83209         since some programs don't write to stdout in the normal course of
83210         operation (other than --version and --help), and we don't want this
83211         function to make e.g. `touch file >&-' fail.
83212         But do fail if it was closed and someone has tried to write to it.
83213         E.g., `printf foo >&-' must fail.
83214
83215 2004-11-13  Jim Meyering  <jim@meyering.net>
83216
83217         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83218
83219 2004-11-12  Simon Josefsson  <jas@extundo.com>
83220
83221         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83222         small doc fix is still pending.
83223
83224 2004-11-11  Simon Josefsson  <jas@extundo.com>
83225
83226         * modules/strtok_r: New file.
83227
83228         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83229         strtok_r.
83230
83231 2004-11-11  Simon Josefsson  <jas@extundo.com>
83232
83233         * m4/strtok_r.m4: New file.
83234
83235         * m4/getopt.m4: Replace opterr.
83236
83237 2004-11-11  Simon Josefsson  <jas@extundo.com>
83238
83239         * lib/strtok_r.h, strtok_r.c: New file.
83240
83241 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83242
83243         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83244         of replacing opterr, getopt, etc.  This should handle the
83245         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83246
83247 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83248
83249         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83250         we can stop lying to compilers about the constness of argv when we
83251         are compiled outside glibc.
83252         (getopt, getopt_long, getopt_long_only): Use it.
83253         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83254         _getopt_internal, getopt): Likewise.
83255         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83256         _getopt_long_only_r): Likewise.
83257         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83258         _getopt_long_r, _getopt_long_only_r): Likewise.
83259
83260         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83261         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83262         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83263         the other external symbols.
83264         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83265         declaration, since the above renaming now works around collisions.
83266
83267 2004-11-11  Jim Meyering  <jim@meyering.net>
83268
83269         * lib/linebreak.c: Remove trailing blanks.
83270         * lib/alloca_.h: Likewise.
83271         * lib/acosl.c: Likewise.
83272         * lib/euidaccess.c: Likewise.
83273         * lib/allocsa.h: Likewise.
83274
83275 2004-11-10  Simon Josefsson  <jas@extundo.com>
83276
83277         * m4/getaddrinfo.m4: New file.
83278
83279 2004-11-10  Simon Josefsson  <jas@extundo.com>
83280
83281         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83282
83283 2004-11-10  Simon Josefsson  <jas@extundo.com>
83284
83285         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83286         getaddrinfo.
83287
83288         * modules/getaddrinfo: New file.
83289
83290 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83291
83292         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83293
83294 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83295
83296         * lib/mktime.c (SHR): New macro, which is a portable
83297         substitute for >> that should work even on Crays.
83298         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83299         Problem reported by Mark D. Baushke in
83300         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83301         * lib/getdate.y (SHR): Likewise.
83302         (tm_diff): Use it.
83303         * lib/strftime.c (SHR): Likewise.
83304         (tm_diff): Use it.
83305         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83306         quote_these_too, so that right shifts are well defined.  All uses
83307         changed.
83308
83309 2004-11-10  Jim Meyering  <jim@meyering.net>
83310
83311         Ensure that no close failure goes unreported.
83312         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83313         return early when it seems there's nothing to flush.
83314         Don't include __fpending.h.
83315
83316 2004-11-10  Jim Meyering  <jim@meyering.net>
83317
83318         * modules/closeout (Depends-on): Remove fpending.
83319
83320 2004-11-10  Jim Meyering  <jim@meyering.net>
83321
83322         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83323
83324 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83325
83326         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83327         gl_FUNC_STRFTIME.
83328         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83329         and AC_REQUIRE when possible, to avoid duplicate checks.
83330         Check for <wchar.h>.
83331
83332 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83333
83334         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83335
83336 2004-11-09  Bruno Haible  <bruno@clisp.org>
83337
83338         * m4/sockpfaf.m4: New file.
83339
83340 2004-11-05  Bruno Haible  <bruno@clisp.org>
83341
83342         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83343         Reported by Mark D. Baushke <mdb@cvshome.org>.
83344
83345 2004-11-04  Bruno Haible  <bruno@clisp.org>
83346
83347         2004-09-11  Bruno Haible  <bruno@clisp.org>
83348                 * allocsa.valgrind: New file.
83349         2004-02-06  Bruno Haible  <bruno@clisp.org>
83350                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83351                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83352                 Reported by Christopher Seip <chris.seip@hp.com>.
83353
83354 2004-11-04  Bruno Haible  <bruno@clisp.org>
83355
83356         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83357         (Makefile.am): Distribute it.
83358
83359 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83360
83361         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83362         with errno == ERANGE if the buffer is too small.
83363         Problem reported by Mark D. Baushke.
83364
83365 2004-11-03  Albert Chin  <china@thewrittenword.com>
83366             Paul Eggert  <eggert@cs.ucla.edu>
83367
83368         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83369         equivalent, substitute $ac_type for equivalent type rather than
83370         blindly using uint32_t *always* which won't work if uint32_t is not
83371         available.  Define _UINT32_T to work around typedef of uint32_t if
83372         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83373         2.5.1.
83374
83375 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         * m4/jm-macros.m4: Sync from coreutils.
83378         (gl_MACROS): Check for mbrlen, for pathchk.
83379         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83380
83381 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83382
83383         * lib/xreadlink.c (MAXSIZE): New macro.
83384         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83385         size does not exceed MAXSIZE.  Avoid cast.
83386         As suggested by Mark D. Baushke in
83387         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83388         if readlink fails with buffer size just under MAXSIZE, try again
83389         with MAXSIZE.
83390
83391 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83392
83393         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83394
83395 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83396         and  Paul Eggert  <eggert@cs.ucla.edu>
83397
83398         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83399         (get_date): Overparenthesize to avoid GCC warning.
83400
83401 2004-11-02  Bruno Haible  <bruno@clisp.org>
83402
83403         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83404         returns void.
83405
83406 2004-11-02  Bruno Haible  <bruno@clisp.org>
83407
83408         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83409         function returns void.
83410
83411 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83412
83413         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83414         fflush_unlocked, flockfile, funlockfile, funlockfile,
83415         fputs_unlocked, putc_unlocked.
83416
83417 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83418
83419         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83420         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83421         already declared.
83422
83423 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         * modules/getdate (Files): Add doc/getdate.texi.
83426         (Depends-on): Add setenv, xalloc.
83427
83428 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83429
83430         * lib/getdate.y: Add support for TZ="foo" within a date string.
83431         Fix some bugs near time_t boundaries.  Reject dates with
83432         out-of-range components, e.g., "Sept 31".
83433         Include <stdlib.h>, "setenv.h", "xalloc.h".
83434         (ISDIGIT_LOCALE): Remove; unused.
83435         Note that the TZ and time functions used here are not reentrant.
83436         (mktime_ok, get_tz): New functions.
83437         (TZBUFSIZE): New constant.
83438         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83439         This requires that we sometimes generate our own TZ="XXX..." setting.
83440
83441 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83442
83443         * doc/getdate.texi: New file, from coreutils with modifications for
83444         the new TZ parsing.
83445
83446 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83447
83448         * lib/mktime.c (not_equal_tm): Remove redundant check.
83449
83450 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83451
83452         * modules/regex (lib_SOURCES): Add regex.c.
83453         Reported by James Youngman in
83454         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83455
83456 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83457
83458         * lib/getdate.y: Use Bison 1.875 features, and some minor
83459         code cleanups.  This change does not affect semantics.
83460         Don't include <stdlib.h>; no longer needed.
83461         Don't include unlocked-io.h; only the "#if TEST" code uses
83462         stdio, and performance isn't crucial there.
83463         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83464         Bison 1.875 features as described below.
83465         All uses of "PC." replaced by "pc->".
83466         (YYSTYPE): Add a forward declaration.
83467         (yylex, yyerror): Use full prototypes in forward decls.
83468         Use "%pure-parser" rather than obsolescent "%pure_parser".
83469         Use %parse-param and %lex-param instead of obsolescent
83470         YYPARSE_PARAM and YYLEX_PARAM.
83471         (meridian_table, month_and_day_table, time_units_table,
83472         relative_time_table, time_zone_table, military_table,
83473         lookup_zone, lookup_word, get_date):
83474         Use NULL instead of 0 where appropriate.
83475         (to_hour): Avoid abort (), to avoid a dependency on
83476         stdlib.h.
83477         (yyerror, yylex): Now accepts parser_control * arg.
83478         (main) [TEST]: Use '\0' rather than 0 for char.
83479
83480 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83483
83484 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83485
83486         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83487         It's now the caller's responsibility to handle the case where
83488         !HAVE_GETPAGESIZE && !defined getpagesize.
83489
83490         * lib/mktime.c (leapyear): Arg is long int, not int.
83491
83492 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83493
83494         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83495
83496 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83497
83498         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83499         missing.  Problem reported by James Youngman.
83500
83501 2004-10-16  Simon Josefsson  <jas@extundo.com>
83502
83503         * gnulib-tool: Fix comments.  Fix parse problem.
83504         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83505
83506 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83507
83508         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83509         implementation of getopt_long.  Problem reported by Alexander Taler in:
83510         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83511
83512 2004-10-15  Bruno Haible  <bruno@clisp.org>
83513
83514         * gnulib-tool: Untabify. Initialize supplied_libname.
83515         (func_usage): More homogenous output.
83516         (func_modules_transitive_closure, func_modules_to_filelist,
83517         func_emit_lib_Makefile_am): New functions.
83518         (func_import): New function, extracted from big case statement. Use
83519         func_get_license, func_modules_transitive_closure,
83520         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83521         opt_lgpl. Don't use test -a, as it's not portable.
83522         (func_create_testdir): Use func_modules_transitive_closure,
83523         func_modules_to_filelist, func_emit_lib_Makefile_am.
83524
83525 2004-10-15  Bruno Haible  <bruno@clisp.org>
83526
83527         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83528
83529 2004-10-15  Bruno Haible  <bruno@clisp.org>
83530
83531         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83532         the portions belonging to each module.
83533         Suggested by Derek Robert Price <derek@ximbiot.com>.
83534
83535 2004-10-12  Simon Josefsson  <jas@extundo.com>
83536
83537         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83538         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83539         to real functions.
83540
83541 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83542
83543         * modules/vsnprintf: New file.
83544
83545 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83546
83547         * m4/vsnprintf.m4: New file.
83548
83549 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83550
83551         * lib/vsnprintf.h: New file.
83552         * lib/vsnprintf.c: New file.
83553
83554 2004-10-11  Bruno Haible  <bruno@clisp.org>
83555
83556         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83557         vsnprintf.
83558
83559 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83560
83561         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83562
83563 2004-10-07  Bruno Haible  <bruno@clisp.org>
83564
83565         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83566         fits into the provided buffer.
83567
83568 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83569
83570         * lib/diacrit.c, diacrit.h: Add GPL notice.
83571
83572         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83573         notice.
83574         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83575         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83576         This avoids a potential constant-folding bug.
83577
83578 2004-10-05  Bruno Haible  <bruno@clisp.org>
83579
83580         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83581         for the declaration of strsep.
83582
83583 2004-10-05  Bruno Haible  <bruno@clisp.org>
83584
83585         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83586
83587 2004-10-04  Simon Josefsson  <jas@extundo.com>
83588
83589         * modules/memmem: New file.
83590         * tests/test-memmem.c: New file.
83591         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83592
83593 2004-10-04  Simon Josefsson  <jas@extundo.com>
83594
83595         * m4/memmem.m4: New file.
83596
83597 2004-10-04  Simon Josefsson  <jas@extundo.com>
83598
83599         * lib/memmem.h: New file.
83600         * lib/memmem.c: New file, taken from glibc.
83601
83602 2004-10-04  Simon Josefsson  <jas@extundo.com>
83603
83604         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
83605         '#ifdef USE_UNLOCKED_IO'.
83606
83607 2004-10-04  Simon Josefsson  <jas@extundo.com>
83608
83609         * config/srclist.txt: Add memmem from glibc.
83610
83611 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83612
83613         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
83614
83615         * modules/argmatch, modules/argp, modules/closeout, modules/error,
83616         modules/exclude, modules/getdate, modules/getline,
83617         modules/getndelim2, modules/getpass, modules/getpass-gnu,
83618         modules/getusershell, modules/linebuffer, modules/md5,
83619         modules/mountlist, modules/posixtm, modules/readtokens,
83620         modules/readutmp, modules/regex, modules/sha1,
83621         modules/version-etc, modules/yesno:
83622         Remove dependency on unlocked-io.
83623
83624 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83625
83626         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
83627
83628         * m4/unlocked-io.m4: Add copyright notice.
83629         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
83630
83631 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83632
83633         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
83634         * lib/xmalloc.c (xmemdup): Likewise.
83635         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
83636         XFREE): Remove these long-obsolescent macros.
83637         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
83638         * lib/xstrdup.c: Remove.
83639
83640         * lib/regex.c (re_comp): Cast gettext return value to char *,
83641         Problem reported by Martin Neitzel via Mark D. Baushke.
83642
83643 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
83646         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
83647         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
83648         regex.c, sha1.c, version-etc.c, yesno.c:
83649         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
83650         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
83651         the includer's responsibility.
83652
83653         Sync from coreutils.
83654
83655         * lib/modechange.c (mode_compile): Don't decrement a pointer that
83656         points to the start of a string, as the C Standard says the
83657         resulting behavior is undefined.
83658
83659         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
83660         simple -> simple_backups, numbered_existing ->
83661         numbered_existing_backups, numbered -> numbered_backups
83662         to avoid shadowing problems.  All uses changed.
83663         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
83664         * lib/backupfile.c (check_extension, numbered_backup):
83665         Rename locals to avoid shadowing 'basename'.
83666         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
83667         once.
83668
83669         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
83670         * lib/.cvsignore: Add getopt.h.
83671
83672 2004-10-04  Bruno Haible  <bruno@clisp.org>
83673
83674         * modules/README: New file.
83675         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
83676         not a module.
83677
83678 2004-10-02  Jim Meyering  <jim@meyering.net>
83679
83680         * lib/dirfd.h, getpagesize.h: Add copyright notice.
83681
83682 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83683
83684         * modules/strsep: New file.
83685
83686 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83687
83688         * m4/strsep.m4: New file.
83689
83690 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83691
83692         * lib/strsep.h: New file.
83693         * lib/strsep.c: New file.
83694
83695 2004-10-01  Simon Josefsson  <jas@extundo.com>
83696
83697         * lib/snprintf.c (snprintf): Handle size==0.
83698
83699 2004-10-01  Simon Josefsson  <jas@extundo.com>
83700             Bruno Haible  <bruno@clisp.org>
83701
83702         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
83703         (snprintf): Declare 'args'.
83704
83705 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
83706
83707         * lib/snprintf.c: Remove comments as to why each header is needed.
83708
83709 2004-10-01  Bruno Haible  <bruno@clisp.org>
83710
83711         * MODULES.html.sh: Add strsep.
83712
83713 2004-09-30  Simon Josefsson  <jas@extundo.com>
83714
83715         * modules/snprintf: New file.
83716
83717 2004-09-30  Simon Josefsson  <jas@extundo.com>
83718
83719         * m4/snprintf.m4: New file.
83720
83721 2004-09-30  Simon Josefsson  <jas@extundo.com>
83722
83723         * lib/snprintf.h, lib/snprintf.c: New files.
83724
83725 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83726
83727         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
83728         (hol_entry_help): Never translate an empty string.
83729         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
83730         * lib/argp.h (OPTION_NO_TRANS): New option.
83731
83732 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83733
83734         * modules/argp (Maintainer): Replace Simon Josefsson
83735         by Sergey Poznyakoff.
83736
83737 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83738
83739         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83740         changes merged back into glibc.
83741
83742 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
83745
83746 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83747
83748         * lib/xvasprintf.c: Include xalloc.h.
83749         (xvasprintf): Use xalloc_die, not xmalloc_die.
83750
83751 2004-09-29  Bruno Haible  <bruno@clisp.org>
83752
83753         * modules/alloca-opt: New file, derived from modules/alloca.
83754         * modules/allocsa: Depend on alloca-opt instead of alloca.
83755         * modules/setenv: Likewise.
83756         * modules/vasnprintf: Likewise.
83757         * MODULES.html.sh: Add alloca-opt.
83758
83759 2004-09-28  Simon Josefsson  <jas@extundo.com>
83760
83761         * gnulib-tool: New parameter --lgpl, to asseert that modules are
83762         LGPL, and to replace license template from GPL to LGPL.
83763
83764 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83765
83766         * modules/dummy: Change license to LGPL.
83767
83768 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83769
83770         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
83771
83772 2004-09-24  Simon Josefsson  <jas@extundo.com>
83773
83774         * modules/minmax (License): Change from GPL to LGPL.
83775
83776 2004-09-23  Simon Josefsson  <jas@extundo.com>
83777
83778         * gnulib-tool (--import): Typo.
83779
83780 2004-09-23  Simon Josefsson  <jas@extundo.com>
83781
83782         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
83783
83784 2004-09-22  Bruno Haible  <bruno@clisp.org>
83785
83786         * modules/*: Add 'License' field.
83787         * gnulib-tool: Accept --extract-license option.
83788         (func_get_license): New function.
83789
83790 2004-09-21  Bruno Haible  <bruno@clisp.org>
83791
83792         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
83793         Reported by Simon Josefsson.
83794
83795 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83796
83797         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
83798         gl_AC_TYPE_LONG_LONG.
83799
83800 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83801
83802         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
83803
83804 2004-09-18  Simon Josefsson  <jas@extundo.com>
83805         and  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
83808         calls with autoreconf.  Define GL_LIB.
83809
83810 2004-09-14  Karl Berry  <karl@gnu.org>
83811
83812         * config/srclist.txt: unsync setenv.c, sigh.
83813
83814 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83815
83816         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
83817         Problem reported by Bruno Haible in:
83818         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
83819
83820 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83821
83822         * config/srclist.txt: Comment out argp-pvh.c.
83823
83824 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
83827         in case some system header has #define'd it.  Problem reported by
83828         Soeren D. Schulze in
83829         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
83830
83831 2004-09-09  Karl Berry  <karl@gnu.org>
83832
83833         * regex.[ch]: delete from the root.  These were supposed to be
83834                 synced with emacs cvs, but this has not happened for about
83835                 a year, and anyway nothing else uses emacs regex.[ch].
83836                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
83837                 lib/regex[.ch] is untouched.
83838
83839 2004-09-09  Bruno Haible  <bruno@clisp.org>
83840
83841         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
83842
83843 2004-09-09  Bruno Haible  <bruno@clisp.org>
83844
83845         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
83846         modifications.
83847         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
83848
83849 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83850
83851         * modules/xvasprintf: New file.
83852         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
83853
83854 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83855
83856         * lib/xvasprintf.h: New file.
83857         * lib/xvasprintf.c: New file.
83858         * lib/xasprintf.c: New file.
83859
83860 2004-09-08  Bruno Haible  <bruno@clisp.org>
83861
83862         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
83863
83864 2004-09-08  Bruno Haible  <bruno@clisp.org>
83865
83866         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
83867         length is > INT_MAX.
83868         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
83869         more.
83870
83871 2004-09-08  Bruno Haible  <bruno@clisp.org>
83872
83873         * lib/stdint_.h: New file, taken from GNU clisp.
83874
83875 2004-09-08  Bruno Haible  <bruno@clisp.org>
83876             Oskar Liljeblad  <oskar@osk.mine.nu>
83877
83878         * modules/stdint: New file.
83879         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
83880
83881 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         Import from coreutils.
83884         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
83885         strings on unbounded length.  alloca's performance benefits aren't
83886         that important here.
83887         (V_STRDUP): Remove.
83888         (parse_with_separator): New function, with most of the internals
83889         of the old parse_user_spec.  Allow user to omit both user and group,
83890         for compatibility with FreeBSD.
83891         Clone only the user name, not the entire spec.
83892         Do not set *uid, *gid unless entirely successful.
83893         Avoid memory leak in some failing cases.
83894         Fix regression for USER.GROUP reported by Dmitry V. Levin in
83895         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
83896         (parse_user_spec): Rewrite to use parse_with_separator.
83897
83898 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83899
83900         * modules/userspec: Don't depend on alloca.
83901
83902 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83903
83904         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
83905
83906 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
83909         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
83910         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
83911
83912 2004-08-16  Simon Josefsson  <jas@extundo.com>
83913
83914         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
83915         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
83916         Add --dry-run for --import.
83917         Let user provided command line parameters override configure.ac
83918         settings.
83919
83920 2004-08-12  Simon Josefsson  <jas@extundo.com>
83921
83922         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
83923         as discussed with Paul Eggert in threads rooted at
83924         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
83925         and
83926         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
83927         Before, the test was empty, and relied on ELIDE_CODE in source
83928         code.)
83929         (gl_PREREQ_GETOPT): New macro.
83930         (gl_GETOPT): Use them.
83931
83932 2004-08-12  Simon Josefsson  <jas@extundo.com>
83933
83934         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
83935         * lib/getopt_.h: Renamed from getopt.h.
83936
83937 2004-08-12  Simon Josefsson  <jas@extundo.com>
83938
83939         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
83940         Change default library name from libfoo to libgnu.
83941         Now, if you have a configure.ac that says:
83942                 gl_SOURCE_BASE(gl)
83943                 gl_M4_BASE(gl/m4)
83944                 gl_MODULES(error getopt etcetera)
83945                 gl_INIT
83946         you can import all you need by running:
83947                 ../gnulib/gnulib-tool --import
83948
83949         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83950         (Makefile.am): Rewrite, use logic from argz.
83951         (Include): Use <getopt.h> instead of "getopt.h".
83952
83953 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83954
83955         * modules/argp (Files): Add m4/unlocked-io.m4.
83956         (Depends-on): Add extensions.
83957
83958 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83959
83960         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83961         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83962         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83963         Check for program_invocation_name, program_invocation_short_name,
83964         flockfile, funlockfile, features.h, _getopt_long_only_r.
83965
83966 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83967
83968         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83969         its complicated substitute.
83970         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83971         and program_invocation_name.
83972         (__argp_basename) [!_LIBC]: Remove; the only use was
83973         replaced by its body.
83974         (__argp_short_program_name): Change condition from
83975         !defined __argp_short_program_name to
83976         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83977         to match argp-namefrob.h.
83978         (__argp_failure): Don't assume strerror_r returns char *.
83979         * lib/argp-parse.c (N_): Define unconditionally.
83980         (argp_default_options): Fill out initializers with 0 to avoid
83981         gcc warnings.
83982
83983 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83984
83985         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83986         getopt1.c.
83987
83988 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         Merge from coreutils.
83991
83992         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83993
83994         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83995         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83996
83997 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         Merge from coreutils.
84000
84001         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84002         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84003         for Reliant Unix 5.43.
84004
84005         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84006         (union fooround): Use uintmax_t, not long int.
84007         The rest is a merge from libc:
84008         [defined _LIBC]: Include <shlib-compat.h>.
84009         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84010
84011         * lib/settime.c (settime): Recode to avoid warning with
84012         Sun Forte C 6U2.
84013
84014         * lib/strverscmp.c: Convert to UTF-8.
84015
84016 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84017
84018         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84019         m4/uintmax_t.m4.
84020
84021 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84022
84023         * modules/xalloc-die: New file.
84024         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84025
84026         * modules/md5 (Files): Add m4/uint32_t.m4.
84027         * modules/sha1: Renamed from modules/sha.
84028         (Files):
84029         Rename lib/sha.h to lib/sha1.h.
84030         Rename lib/sha.c to lib/sha1.c.
84031         Rename m4/sha.m4 to m4/sha1.m4.
84032         (lib_SOURCES): Likewise.
84033         (configure.ac): Rename gl_SHA to gl_SHA1.
84034         (Include): sha.h -> sha1.h.
84035
84036 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84037
84038         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84039         * m4/sha1.m4: Renamed from sha.m4.
84040         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84041
84042 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84043
84044         * lib/obstack.h (obstack_empty_p):
84045         Don't assume that chunk->contents is suitably aligned.
84046         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84047         Likewise. Problem reported by Benno in
84048         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84049
84050         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84051         readable.  This could be improved further but it'd take some work.
84052
84053 2004-08-08  Simon Josefsson  <jas@extundo.com>
84054
84055         * modules/xgethostname (Depends-on): Remove exit and error (not
84056         used).
84057
84058         * modules/getpass-gnu: Add getpass.h.
84059         (Depends-on): Add stdbool.
84060         * modules/getpass: Add getpass.h.
84061
84062 2004-08-08  Simon Josefsson  <jas@extundo.com>
84063
84064         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84065         Check getpass declaration.
84066
84067 2004-08-08  Simon Josefsson  <jas@extundo.com>
84068
84069         * lib/xgethostname.c: Don't include error.h (not used).
84070
84071         * lib/getpass.h: Add.
84072         * lib/getpass.c: Include getpass.h first.
84073
84074 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84075
84076         * lib/xalloc-die.c: New file.
84077         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84078         All uses removed.
84079         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84080         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84081         xalloc-die.c.
84082         (_, N_, xalloc_die): Move to xalloc-die.c.
84083         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84084         so that we needn't mess with xalloc_msg_memory_exhausted.
84085
84086         * lib/sha1.h: Renamed from sha.h.
84087         (SHA1_H): Renamed from _SHA_H.
84088         (sha1_ctx): Renamed from sha_ctx.
84089         (sha1_init_ctx): Renamed from sha_init_ctx.
84090         (sha1_process_block): Renamed from sha_process_block.
84091         (sha1_process_bytes): Renamed from sha_process_bytes.
84092         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84093         (sha1_read_ctx): Renamed from sha_read_ctx.
84094         (sha1_stream): Renamed from sha_stream.
84095         (sha1_buffer): Renamed from sha_buffer.
84096         * lib/sha1.c: Likewise; renamed from sha.c.
84097         Do not include <sys/types.h>.
84098         Include <stddef.h> rather than <stdlib.h>.
84099
84100 2004-08-08  Bruno Haible  <bruno@clisp.org>
84101
84102         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84103         FILESYSTEM_PREFIX_LEN.
84104         * lib/progreloc.c: Likewise.
84105         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84106
84107 2004-08-06  Simon Josefsson  <jas@extundo.com>
84108
84109         * modules/progname (Depends-on): Don't depend on stdbool.
84110
84111 2004-08-06  Simon Josefsson  <jas@extundo.com>
84112
84113         * modules/getsubopt: New file.
84114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84115         getsubopt.
84116
84117 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84118
84119         More merge from coreutils.
84120
84121         * m4/utimens.m4, m4/utimecmp.m4: New files.
84122         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84123         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84124         prereq.m4, sha.m4: Import changes from coreutils.
84125
84126 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84127
84128         More merge from coreutils.
84129         * modules/raise, modules/readtokens0, modules/utimens:
84130         * modules/utimecmp, module/xnanosleep: New files.
84131         * modules/strftime: Add lib/strftime.h.
84132         Change include from <time.h> to "strftime.h".
84133         * modules/yesno: Add lib/yesno.h.
84134         * modules/backupfile: Remove lib/addext.c.
84135         * modules/euidaccess: Add stat-macros.h.
84136         * modules/canonicalize, modules/euidaccess,
84137         modules/filemode, modules/lchown, modules/makepath,
84138         modules/rmdir, modules/stat: Likewise.
84139
84140 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84141
84142         Merge from tar.
84143         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84144         SIZE_MAX is a valid preprocessor constant.
84145         (__argp_basename): Change from "#ifndef _LIBC"
84146         to "#ifndef __argp_short_program_name", so that
84147         we don't compile these functions for tar.
84148
84149         More merges from coreutils.
84150         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84151         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84152         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84153         * lib/addext.c: Remove; no longer needed.
84154         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84155         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84156         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84157         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84158         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84159         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84160         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84161         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84162         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84163         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84164         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84165         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84166         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84167         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84168         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84169         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84170         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84171         Import changes from coreutils.
84172
84173 2004-08-05  Simon Josefsson  <jas@extundo.com>
84174
84175         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84176
84177 2004-08-05  Simon Josefsson  <jas@extundo.com>
84178
84179         * m4/getsubopt.m4: New file.
84180
84181 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84182
84183         Merge from coreutils.
84184
84185         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84186         * m4/getcwd-path-max.m4: New files.
84187
84188         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84189         FILESYSTEM_PREFIX_LEN ->
84190         FILE_SYSTEM_PREFIX_LEN.
84191         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84192         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84193         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84194         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84195
84196         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84197         prerequisite modules now handle the DOS stuff.
84198         Don't check for unistd.h.
84199
84200 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84201
84202         Merge from coreutils.
84203
84204         * lib/.gdb-history: Remove; this doesn't belong here.
84205
84206         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84207         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84208         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84209         * lib/getcwd.c: New files.
84210
84211         * lib/dirname.h: Include <stdbool.h>.
84212         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84213         for consistency with POSIX terminology.  All uses changed.
84214         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84215         (strip_trailing_slashes): Use bool for booleans.
84216         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84217
84218         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84219         sometimes returns a positive errno value even when it succeeds.
84220         (print_errno_message) [!LIBC]: Fall back on strerror if
84221         __strerror_r fails.
84222
84223         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84224         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84225         (longest_relative_suffix): New function.
84226         (path_concat): Use it.  Assume first argument is not NULL.
84227         Port to DOS.  Omit redundant separators.
84228         Report an error instead of returning NULL.
84229         Use mempcpy instead of memcpy.
84230         (xpath_concat): Remove: not declared or used.
84231
84232         * lib/same.h: Include <stdbool.h>
84233         (same_name): Return bool, not int.
84234         * lib/same.c (same_name): Likewise.
84235         (errno): Don't declare; we assume C89 or better now.
84236
84237         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84238         if not already defined.
84239
84240         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84241         * lib/dup-safer.c (errno): Likewise.
84242
84243 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84244
84245         Merge from coreutils.
84246         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84247         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84248         * modules/path-concat: Don't depend on strdup.
84249
84250 2004-08-03  Simon Josefsson  <jas@extundo.com>
84251
84252         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84253         * lib/progname.h: Don't include stdbool.h.
84254
84255 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84256
84257         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84258         * MODULES.html.sh (func_all_modules): Remove fatal.
84259
84260 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84263
84264 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84265
84266         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84267         working.
84268
84269 2004-08-02  Simon Josefsson  <jas@extundo.com>
84270
84271         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84272         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84273         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84274
84275 2004-08-01  Simon Josefsson  <jas@extundo.com>
84276
84277         * lib/xgetdomainname.c: Include stdlib.h, for free().
84278
84279 2004-07-19  Bruno Haible  <bruno@clisp.org>
84280
84281         * MODULES.html.sh (func_all_modules): Add dummy.
84282
84283 2004-07-16  Simon Josefsson  <jas@extundo.com>
84284
84285         * modules/dummy: New file.
84286
84287 2004-07-16  Simon Josefsson  <jas@extundo.com>
84288
84289         * lib/dummy.c: New file.
84290
84291 2004-07-16  Bruno Haible  <bruno@clisp.org>
84292
84293         * lib/backupfile.h: Add extern "C" for C++.
84294         * lib/closeout.h: Likewise.
84295         * lib/copy-file.h: Likewise.
84296         * lib/findprog.h: Likewise.
84297         * lib/full-write.h: Likewise.
84298         * lib/pathname.h: Likewise.
84299         * lib/progname.h: Likewise.
84300         * lib/stpcpy.h: Likewise.
84301         * lib/stpncpy.h: Likewise.
84302         * lib/strcase.h: Likewise.
84303         * lib/strstr.h: Likewise.
84304         * lib/xalloc.h: Likewise.
84305
84306         * lib/mbswidth.h: Add extern "C" for C++.
84307         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84308
84309 2004-07-13  Robert Millan  <robertmh@gnu.org>
84310
84311         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84312
84313 2004-07-09  Simon Josefsson  <jas@extundo.com>
84314
84315         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84316         failed without this.)
84317
84318 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84319
84320         * modules/chown (Files): Add lib/fchown-stub.c, since
84321         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84322
84323 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84324
84325         * lib/fchown-stub.c: New file.
84326
84327 2004-06-24  Jim Meyering  <jim@meyering.net>
84328
84329         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84330
84331 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         * modules/argz: Omit "#include".
84334
84335         * MODULES.html.sh (func_all_modules): Add calloc, to match
84336         2004-06-01 addition of calloc module.
84337
84338 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84339
84340         * m4/argz.m4: New file, which is autoupdated from libtool.
84341
84342 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84345         libtool.
84346
84347 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * config/srclist-update: Don't insist on "USA." before the
84350         close-comment, as libtool omits the period and puts the */ on a
84351         separate line.
84352         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84353         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84354
84355 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84356
84357         * modules/argz: New file.
84358         * MODULES.html.sh (func_all_modules): Add argz.
84359
84360 2004-06-12  Jim Meyering  <jim@meyering.net>
84361         and  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * modules/hash (Files): Add lib/xalloc.h.
84364         * modules/pipe (Depends-on): Add wait-process.
84365         * modules/stat (Depends-on): Add xalloc.
84366         * modules/userspec (Files): Add lib/userspec.h.
84367         * modules/xstrto
84368
84369         Upgrade from gettext-0.13.
84370         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84371         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84372         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84373
84374 2004-06-10  Jim Meyering  <jim@meyering.net>
84375
84376         * lib/calloc.c: New file.
84377
84378 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84379
84380         * lib/getdate.y (yylex): Allow space between sign and number.
84381         Problem reported by Dan Jacobson.
84382
84383 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84384
84385         Merge from coreutils CVS.
84386
84387         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84388         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84389         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84390         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84391         xstrtol.m4: Fix copyright date and/or serial number.
84392
84393         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84394         See if we need an fchown replacement.
84395         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84396         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84397         and use the replacement function if we detect either defect.
84398
84399         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84400         gl_UTIMECMP.
84401
84402 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84403         and  Jim Meyering  <jim@meyering.net>
84404
84405         Merge from coreutils CVS.
84406
84407         * lib/stat-macros.h: New file, with contents from file-type.h
84408         and coreutils' system.h.
84409         * lib/file-type.c: Include "stat-macros.h".
84410         * lib/file-type.h (file_type): Move all macro definitions to new file,
84411         stat-macros.h.
84412
84413         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84414         Wrap old code with this conditional.
84415         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84416         function that does not dereference symlinks.
84417         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84418
84419         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84420         dependency problems.
84421         (xreadlink): Accept new arg SIZE, for efficiency.
84422         All decls and uses changed.
84423         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84424
84425         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84426         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84427
84428         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84429         sysexits.h.
84430
84431 2004-06-01  Jim Meyering  <jim@meyering.net>
84432
84433         * m4/calloc.m4: New file.
84434
84435 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84436
84437         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84438         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84439         Also, fix a typo in a diagnostic.
84440
84441 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84442
84443         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84444         or AC_FUNC_REALLOC.
84445
84446 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84447
84448         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84449         macros to be defined.
84450         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84451         the allocator returns NULL because the requested size is zero.
84452
84453 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84456         var.  Add comment explaining why libc still defines it.  This
84457         merges the following patch from glibc:
84458         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84459
84460 2004-05-20  Andreas Schwab  <schwab@suse.de>
84461
84462         * m4/free.m4: Replace free if it not known to work, not the other
84463         way round.
84464
84465 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84466
84467         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84468         present in glibc since revision 1.1 of this file.
84469         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84470         obstack_alignment_mask, obstack_alloc, obstack_base,
84471         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84472         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84473         obstack_grow0, obstack_init, obstack_int_grow,
84474         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84475         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84476         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84477         nonexistent functions.
84478
84479 2004-05-18  Karl Berry  <karl@gnu.org>
84480
84481         * config/srclist.txt: break link for vasnprintf.c.
84482
84483 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84484
84485         Port obstack to the AS/400, where pointers are 16 bytes wide and
84486         you cannot cast an integer to a valid pointer.  This patch is
84487         currently waiting to be integrated into glibc; see
84488         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84489
84490         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84491         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84492         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84493         (struct obstack): temp member is now a union of a pointer and
84494         an integer, instead of an integer.  All integer uses changed.
84495         This does not affect the physical layout of struct obstack,
84496         except on hosts (like the AS/400) where the size or alignment of
84497         void * is greater than that of ptrdiff_t.
84498         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84499         __STDC__)]: Store temporary in pointer member of union, not
84500         integer member.
84501         * lib/obstack.c: Include <stddef.h>, for offsetof.
84502         (struct fooalign): Remove; it doesn't need a name.
84503         (union fooround): Change double to long double, and add void *.
84504         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84505         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84506         not a macro.  Hence the values are always int; so remove all
84507         casts-to-int in uses.
84508
84509 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84510
84511         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84512         we can get this patch merged into glibc.
84513
84514 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84515             Paul Eggert  <eggert@cs.ucla.edu>
84516
84517         * m4/argp: Depend on alloca.
84518
84519 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84520             Paul Eggert  <eggert@cs.ucla.edu>
84521
84522         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84523         freecoding.
84524
84525 2004-05-17  Bruno Haible  <bruno@clisp.org>
84526
84527         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84528         precision that consists of a '.' followed by an empty digit string.
84529         Patch by Tor Lillqvist <tml@iki.fi>.
84530
84531 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84532
84533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84534         for backward compatibility with older code.  We need our own
84535         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84536         it under some other name, and our alloca.h will define it.
84537
84538 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84539             Derek Price  <derek@ximbiot.com>
84540
84541         * lib/alloca.c: Include <alloca.h>, to get our interface.
84542         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84543         include <alloca.h> first.  Use C89 prototype for alloca; this
84544         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84545         Use #elif for simplicity, since we can assume C89 now.
84546         Don't try to source the system alloca.h since it will not be found
84547         and to prevent recursively including its replacement.
84548         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84549         * lib/regex.c: Likewise.
84550
84551 2004-05-16  Derek Price  <derek@ximbiot.com>
84552             Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         getline cleanup.  This changes the getndelim2 API: both order of
84555         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84556         no delimiter).
84557
84558         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84559         interface does that.
84560         (getline): Always use getdelim, so that we don't have two
84561         copies of this code.
84562         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84563         if available.
84564         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84565         (GETNDELIM2_MAXIMUM): New macro.
84566         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84567         instead of the old practice of delim2==0.  All callers changed.
84568         Return -1 on overflow, instead of returning junk.
84569         Do not set *linesize unless allocation succeeds.
84570         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84571         that we include sys/types.h.
84572         * lib/getnline.h: Likewise.
84573         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84574         (getndelim2): Reorder arguments.
84575         * lib/getnline.c (getnline, getndelim):
84576         Don't discard the NMAX argument.
84577         (getnline): Invoke getndelim, to avoid code duplication.
84578         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84579         of (size_t) -1 by callers of the getnline family.
84580
84581 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84582
84583         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84584         Check for gettimeofday.
84585         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84586         Check for settimeofday, stime.
84587
84588 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84589
84590         * lib/nanosleep.c (suspended): Change its type from int to
84591         sig_atomic_t volatile.
84592         (first_call): Make it private to rpl_nanosleep, and have it
84593         be zero initially as that's a bit faster.
84594         (my_usleep): Round up fractional times instead of truncating them,
84595         as this is the usual meaning for 'sleep'.
84596
84597         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
84598         doesn't work.
84599         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
84600         (ENOSYS): Define if not defined.
84601         (settime): Fall back on stime if it exists and settimeofday fails.
84602         But don't bother with fallbacks if a method fails with errno == EPERM.
84603
84604 2004-05-11  Jim Meyering  <jim@meyering.net>
84605
84606         Prior to this change, the save_cwd caller required read access to the
84607         current directory on most systems (ones with the fchdir function).
84608
84609         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
84610         fails, try write-only, and finally, resort to using xgetcwd.
84611
84612 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84613
84614         * lib/obstack.c, obstack.h: Import changes from libc.
84615
84616 2004-04-28  Bruno Haible  <bruno@clisp.org>
84617
84618         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
84619         also implicitly appends .exe to executables.
84620         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
84621         accepts Windows pathnames.
84622         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84623         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84624         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84625         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84626         Reported by Derek Robert Price <derek@ximbiot.com>.
84627
84628 2004-04-21  Karl Berry  <karl@gnu.org>
84629
84630         * config/srclist.txt (localcharset.c): break sync.
84631
84632 2004-04-20  Paul Eggert  <eggert@twinsun.com>
84633
84634         * m4/host-os.m4: Add a copyright notice.
84635
84636 2004-04-20  Jim Meyering  <jim@meyering.net>
84637
84638         Change UTILS_ to gl_ in AC_DEFINE'd names.
84639         Change utils_- and jm_-prefixed variables, too.
84640         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
84641         UTILS_FUNC_MKDIR_TRAILING_SLASH.
84642         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
84643
84644         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
84645         Don't emit trailing blanks.
84646         Also rename jm_-prefixed variables to have gl_ prefix.
84647
84648         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
84649         Also rename jm_-prefixed variables to have gl_ prefix.
84650
84651         * m4/jm-macros.m4: Reflect the renamings.
84652         * m4/prereq.m4: Likewise.
84653
84654 2004-04-20  Jim Meyering  <jim@meyering.net>
84655
84656         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
84657         memory.
84658
84659 2004-04-20  Jim Meyering  <jim@meyering.net>
84660             Bruno Haible  <bruno@clisp.org>
84661
84662         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
84663         memory when realloc fails.
84664
84665 2004-04-19  Jim Meyering  <jim@meyering.net>
84666
84667         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
84668         now that readutmp.c may call `free (0)'.
84669
84670 2004-04-19  Bruno Haible  <bruno@clisp.org>
84671
84672         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
84673         * m4/inttypes_h.m4: Likewise.
84674         * m4/stdint_h.m4: Likewise.
84675         * m4/intmax_t.m4: Likewise.
84676         * m4/uintmax_t.m4: Likewise.
84677
84678 2004-04-18  Jim Meyering  <jim@meyering.net>
84679
84680         * m4/prereq.m4: Don't forbid jm_ prefix.
84681
84682         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
84683         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
84684         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
84685         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
84686         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
84687         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
84688         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
84689         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
84690         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
84691         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
84692         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
84693         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
84694         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
84695         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
84696         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
84697         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
84698         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
84699         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
84700         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
84701
84702 2004-04-18  Jim Meyering  <jim@meyering.net>
84703
84704         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
84705         failure, don't leak memory and do call END_UTMP_ENT.
84706
84707 2004-04-16  Jim Meyering  <jim@meyering.net>
84708
84709         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
84710         coreutils' stat program.
84711         (gl_PREREQ): Don't require jm_PREREQ_STAT.
84712
84713 2004-04-11  Paul Eggert  <eggert@twinsun.com>
84714
84715         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
84716         C89.
84717         (CHAR_BIT): Remove, since we assume C89.
84718         Include <stdint.h> if available, as per current Autoconf CVS advice.
84719
84720 2004-03-31  Jim Meyering  <jim@meyering.net>
84721
84722         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
84723         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
84724         * m4/xalloc.m4: Likewise.
84725
84726 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84727
84728         Merge from coreutils.
84729
84730         * m4/inttostr.m4: New file.
84731         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
84732         Require AM_STDBOOL_H and gl_TIMESPEC instead.
84733         Require gl_CLOCK_TIME.
84734         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
84735
84736 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84737
84738         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84739         not bool, to be more consistent with Unix conventions.
84740         Suggested by Bruno Haible.
84741
84742         Merge from coreutils.
84743
84744         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
84745         * lib/umaxtostr.c: New files.
84746
84747         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
84748         the usual <time.h> dance.
84749         (get_date): Change signature to support fractional time stamps.
84750         All callers changed.
84751         * lib/getdate.y: Include "getdate.h" first, as we can now
84752         assume C89 and don't need to worry about 'const'.
84753         Similarly, include "unlocked-io.h" near start, not in middle.
84754         Include <limits.h>.
84755         (textint.value): Use long int rather than int.
84756         (textint.digits): Use size_t rather than int.
84757         (BILLION, LOG10_BILLION): New constants.
84758         (parser_control): New member rel_ns.  Members day_ordinal,
84759         time_zone, month, day, hour, minutes, rel_year, rel_month,
84760         rel_day, rel_hour, rel_minutes, rel_seconds
84761         are now long int, not int.  Member seconds is now struct timespec,
84762         not int.  New member timespec_seen.  Members dates_seen, days_seen,
84763         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
84764         not int.
84765         (%union.intval): Now long int, not int.
84766         New member timespec.
84767         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
84768         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
84769         (spec): Now is a timespec or an item list.
84770         (timespec, items): New nonterminals.
84771         (time, rel, relunit, number, get_date):
84772         Add support for fractional seconds.
84773         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
84774         (gmtime, localtime, mktime): Remove decls; not needed with C89.
84775         (to_hour): First arg is now long int, not int.
84776         (to_year): Returns long int, not int.
84777         Don't treat year -70 like 70.
84778         (tm_diff): Returns long int, not int.
84779         (lookup_word): Use bool instead of int when appropriate.
84780         (yylex): Use size_t for count, not int.
84781         Detect overflow when parsing large integer constants.
84782         Add support for fractions.
84783         (get_date): Make pointers 'const' if possible.
84784         Use more-portable code to detect integer overflow.
84785         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
84786         Don't use ctime; it's not reliable if the year has >4 digits.
84787
84788         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
84789         This is for compatibility with BSD.
84790
84791         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
84792         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
84793         From coreutils' system.h.
84794
84795         * lib/userspec.c: Don't include "posixver.h".
84796         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
84797         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
84798         compatible extension.  Simplify code by removing a boolean int
84799         that was always nonzero if a string was nonnull.
84800
84801 2004-03-30  Jim Meyering  <jim@meyering.net>
84802
84803         Merge from coreutils.
84804
84805         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
84806         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
84807         on some systems one must include <grp.h> before it.
84808         Reported by Christian Krackowizer.
84809
84810 2004-03-30  Jim Meyering  <jim@meyering.net>
84811
84812         Merge from coreutils.
84813
84814         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
84815
84816         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
84817         an empty input stream.
84818
84819         * lib/readtokens.c: Include <stdbool.h>.
84820         (readtoken): Use `size_t' rather than int/long.
84821         All callers adjusted.
84822         Use `bool' rather than `int' where appropriate.
84823         Use memset rather than an explicit loop.
84824         Use x2nrealloc rather than xrealloc.
84825         Allow the use of `\0' as a delimiter.
84826         (readtokens): Likewise.
84827         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
84828
84829 2004-03-30  Jim Meyering  <jim@meyering.net>
84830
84831         * m4/realloc.m4: Remove file, since now it does no more than
84832         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
84833         the `configure.ac' section of module/realloc.
84834         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
84835
84836 2004-03-30  Bruno Haible  <bruno@clisp.org>
84837
84838         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
84839         nonnull.
84840
84841 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84842
84843         Merge changes to getloadavg.c from coreutils and Emacs.
84844
84845         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
84846         Define to an expression, not to the empty string.
84847         Include cloexec.h and xalloc.h.
84848         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
84849         Use set_cloexec_flag rather than rolling our own.
84850         * lib/cloexec.c, lib/cloexec.h: New files.
84851
84852 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84853
84854         * m4/cloexec.m4: New file.
84855
84856 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84857
84858         * lib/getopt.h: Sync with libc CVS.
84859
84860 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84861             Bruno Haible  <bruno@clisp.org>
84862
84863         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
84864         mbswidth.
84865
84866 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84867             Bruno Haible  <bruno@clisp.org>
84868
84869         * lib/mbswidth.h: Include <wchar.h> only if
84870         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
84871         <wchar.h>.
84872         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
84873
84874 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84875
84876         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
84877         Sync with libc CVS.
84878         * lib/getopt_int.h: New file, also synced from libc.
84879
84880 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84881
84882         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
84883         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
84884         Bring back getopt.c, getopt.h, getopt1.c.
84885
84886 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84887
84888         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
84889         All uses changed.  Check for sa_sigaction member; this fixes
84890         a bug first reported by Jason Andrade in
84891         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84892
84893 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84894
84895         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
84896         '#if' expressions.  Unlike the code it replaces, it does not
84897         depend on (defined _SC_PAGESIZE).  However, it does depend on
84898         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
84899         first reported by Jason Andrade in
84900         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84901
84902 2004-02-25  Simon Josefsson  <jas@extundo.com>
84903
84904         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
84905
84906 2004-02-25  Simon Josefsson  <jas@extundo.com>
84907
84908         * lib/strdup.h: New file.
84909         * lib/strdup.c: Include it.
84910         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
84911         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
84912
84913 2004-02-23  Karl Berry  <karl@gnu.org>
84914
84915         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
84916         (from fencepost.gnu.org:/gd/gnuorg).
84917
84918 2004-02-23  Karl Berry  <karl@gnu.org>
84919
84920         * config/srclistvars.sh (GNUORG) [karl]: redefine.
84921         * config/srclist.txt: add maintain/standards documents.
84922
84923 2004-02-18  Bruno Haible  <bruno@clisp.org>
84924
84925         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
84926         Reported by Derek Robert Price <derek@ximbiot.com>.
84927
84928 2004-02-16  Karl Berry  <karl@gnu.org>
84929
84930         * config/mkinstalldirs, install-sh: update from automake.
84931
84932 2004-02-06  Karl Berry  <karl@gnu.org>
84933
84934         * m4/po.m4: update from gettext 0.14.1.
84935
84936 2004-02-06  Karl Berry  <karl@gnu.org>
84937
84938         * lib/config.charset: update from gettext 0.14.1.
84939
84940 2004-02-05  Paul Eggert  <eggert@twinsun.com>
84941
84942         Add comments and code, prompted by suggestions from Bruno Haible
84943         for sh-quote.
84944         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
84945         describing the enum quoting_style values.
84946         * lib/quotearg.c (quotearg_alloc): New function.
84947         (quotearg_buffer_restyled): Treat lone { and } as special.
84948         Treat = as special.  Work around bug with older shells
84949         that "see" a '\' that is really the 2nd byte of a multibyte char.
84950         Quote empty string with shell_quoting_style.
84951
84952 2004-02-03  Bruno Haible  <bruno@clisp.org>
84953
84954         * m4/pipe.m4: New file, from GNU gettext.
84955
84956 2004-02-03  Bruno Haible  <bruno@clisp.org>
84957
84958         * lib/pipe.h: New file, from GNU gettext.
84959         * lib/pipe.c: New file, from GNU gettext.
84960
84961 2004-01-27  Bruno Haible  <bruno@clisp.org>
84962
84963         * m4/execute.m4: New file, from GNU gettext.
84964
84965 2004-01-27  Bruno Haible  <bruno@clisp.org>
84966
84967         * lib/execute.h: New file, from GNU gettext.
84968         * lib/execute.c: New file, from GNU gettext.
84969         * lib/w32spawn.h: New file, from GNU gettext.
84970
84971 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84972
84973         Merge from diffutils.
84974
84975         * lib/file-type.c (file_type): Add typed memory objects.
84976         * lib/file-type.h (S_TYPEISTMO): New macro.
84977
84978         * lib/c-stack.h (c_stack_action): Remove argv argument.
84979         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84980         (die): Don't calculate message unless segv_action returns.
84981         (get_stack_location, min_address_from_argv, max_address_from_argv,
84982         volatile stack_base, volatile_stack_size): Remove.
84983         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84984         that every segmentation violation is a stack overflow.  (Ouch!)
84985         See Debian bug 136249 (still outstanding) for more info about why
84986         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84987
84988 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84989
84990         Exit-status fix from coreutils.
84991
84992         Use exit_failure consistently in place of EXIT_FAILURE,
84993         so that program exit statuses are consistent on failure.
84994
84995         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84996         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84997         * lib/argmatch.h: Comment fix to match the above.
84998         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84999         Now a macro referring to exit_failure, instead of a separate
85000         variable.  Include "exitfail.h" to get it.
85001         * lib/xstrtol.h: Include "exitfail.h".
85002         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85003
85004         * lib/long-options.c (parse_long_options): Use prototype
85005         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85006         for clarity.
85007
85008 2004-01-21  Jim Meyering  <jim@meyering.net>
85009
85010         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85011         so as not to conflict with a different-sized __mktime_internal
85012         function in GNU libc.
85013         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85014         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85015
85016 2004-01-20  Karl Berry  <karl@gnu.org>
85017
85018         * config/config.guess: update from config.
85019
85020         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85021
85022 2004-01-20  Bruno Haible  <bruno@clisp.org>
85023
85024         Safer stack allocation.
85025         * lib/setenv.c: Include allocsa.h.
85026         (alloca): Remove fallback definition.
85027         (freea): Remove macro.
85028         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85029         instead of freea.
85030
85031 2004-01-20  Bruno Haible  <bruno@clisp.org>
85032
85033         * m4/eealloc.m4: New file, from GNU gettext.
85034
85035 2004-01-20  Bruno Haible  <bruno@clisp.org>
85036
85037         * m4/allocsa.m4: New file, from GNU gettext.
85038
85039 2004-01-20  Bruno Haible  <bruno@clisp.org>
85040
85041         * lib/xallocsa.h: New file, from GNU gettext.
85042         * lib/xallocsa.c: New file, from GNU gettext.
85043
85044 2004-01-20  Bruno Haible  <bruno@clisp.org>
85045
85046         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85047
85048 2004-01-20  Bruno Haible  <bruno@clisp.org>
85049
85050         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85051         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85052         specially.
85053
85054 2004-01-20  Bruno Haible  <bruno@clisp.org>
85055
85056         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85057         patch.
85058
85059 2004-01-20  Bruno Haible  <bruno@clisp.org>
85060
85061         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85062
85063 2004-01-20  Bruno Haible  <bruno@clisp.org>
85064
85065         * lib/eealloc.h: New file.
85066
85067 2004-01-20  Bruno Haible  <bruno@clisp.org>
85068
85069         * lib/binary-io.h: Avoid warnings on Cygwin.
85070
85071 2004-01-20  Bruno Haible  <bruno@clisp.org>
85072
85073         * lib/allocsa.h: New file, from GNU gettext.
85074         * lib/allocsa.c: New file, from GNU gettext.
85075
85076 2004-01-18  Karl Berry  <karl@gnu.org>
85077
85078         * doc/gpl.texi, doc/lgpl.texi: new files.
85079
85080 2004-01-18  Karl Berry  <karl@gnu.org>
85081
85082         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85083         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85084
85085 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85086
85087         Merge from coreutils.
85088
85089         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85090         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85091         (gl_DEFAULT_POSIX2_VERSION): Move
85092         the documentation from 'configure' into 'config.hin',
85093         so that 'configure --help' isn't burdened by it and
85094         we don't have to worry about its formatting there.
85095         Reword the documentation so that it's more succinct
85096         and can be run together into a single paragraph.
85097         * m4/same.m4 (gl_SAME): Check for pathconf.
85098
85099 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85100
85101         Merge from coreutils.
85102
85103         * lib/posixver.c: Include posixver.h.
85104
85105         * lib/same.c: Include <stdbool.h>, <limits.h>.
85106         (_POSIX_NAME_MAX): Define if not defined.
85107         (MIN): New macro.
85108         (same_name): If file names are silently truncated, report
85109         that the file names are the same if they are the same after
85110         the silent truncation.
85111
85112         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85113         conversion function.
85114         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85115         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85116         longer needed.
85117
85118 2004-01-15  Jim Meyering  <jim@meyering.net>
85119
85120         Merge from coreutils.
85121
85122         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85123         if no library is required.
85124         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85125         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85126         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85127         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85128         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85129         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85130         value, $ac_cv_search_crypt, if it's "none required".
85131         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85132         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85133         not gl_FUNC_GETLOADAVG.
85134         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85135         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85136
85137 2004-01-15  Jim Meyering  <jim@meyering.net>
85138
85139         Merge from coreutils.
85140
85141         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85142         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85143         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85144
85145         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85146         optional configure-time default.
85147
85148         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85149
85150         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85151
85152 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85153
85154         Merge from coreutils.
85155
85156         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85157         value, $ac_cv_search_nanosleep, if it's "none required".
85158
85159 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85160
85161         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85162         with like-named macro in fnmatch.c.
85163         (EXT): Use an internal constant instead.
85164
85165         Merge fnmatch patches from glibc.
85166         * lib/fnmatch.c (mbsinit): Remove define.
85167         Add libc_hidden_ver (__fnmatch, fnmatch).
85168         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85169         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85170
85171 2004-01-14  Karl Berry  <karl@gnu.org>
85172
85173         * config/install-sh: update from automake.
85174
85175 2004-01-13  Karl Berry  <karl@gnu.org>
85176
85177         * config/install-sh: update from automake.
85178
85179 2004-01-09  Karl Berry  <karl@gnu.org>
85180
85181         * config/install-sh: update from automake.
85182
85183 2004-01-05  Karl Berry  <karl@gnu.org>
85184
85185         * config/config.{sub,guess}: update from config.
85186
85187 2003-12-31  Karl Berry  <karl@gnu.org>
85188
85189         * config/depcomp: update from automake.
85190
85191 2003-12-14  Karl Berry  <karl@gnu.org>
85192
85193         * lib/config.charset: update from gettext-runtime.
85194
85195 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85196
85197         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85198         Bug reported by Alfred M. Szmidt.
85199
85200 2003-12-03  Bruno Haible  <bruno@clisp.org>
85201
85202         * m4/gettext.m4: Upgrade from gettext-0.13.
85203         * m4/po.m4: Upgrade from gettext-0.13.
85204         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85205         * m4/intmax.m4: New file, from gettext-0.13.
85206         * m4/printf-posix.m4: New file, from gettext-0.13.
85207
85208 2003-11-29  Karl Berry  <karl@gnu.org>
85209
85210         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85211
85212 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85213             Bruno Haible  <bruno@clisp.org>
85214
85215         * lib/printf-parse.h: Don't include sys/types.h.
85216         (ARG_NONE): New macro.
85217         (char_directive): Change type of *arg_index fields to size_t.
85218         * lib/printf-parse.c: Don't include sys/types.h.
85219         (SSIZE_MAX): Remove macro.
85220         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85221         Remove unnecessary overflow check.
85222         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85223         fields.
85224
85225 2003-11-25  Bruno Haible  <bruno@clisp.org>
85226
85227         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85228
85229 2003-11-25  Bruno Haible  <bruno@clisp.org>
85230
85231         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85232         gt_TYPE_SSIZE_T.
85233
85234 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85235
85236         * modules/alloca: Remove dependency on xalloc.
85237
85238 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85239
85240         * lib/alloca.c: Remove dependency on xalloc module.
85241         (xalloc_die): Remove.
85242         (memory_full) [!defined emacs]: New macro.
85243         [!defined emacs]: Don't include xalloc.h.
85244         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85245         address arithmetic overflows.  Change datatypes a bit to avoid
85246         unnecessary casts.
85247
85248 2003-11-22  Jim Meyering  <jim@meyering.net>
85249
85250         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85251         s/size/size_t/.
85252
85253 2003-11-21  Karl Berry  <karl@gnu.org>
85254
85255         * config/config.{sub,guess}: update from config.
85256
85257 2003-11-18  Karl Berry  <karl@gnu.org>
85258
85259         * config/config.{sub,guess}: update from config.
85260
85261         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85262
85263 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85264
85265         * README: Mention that S+T cannot overflow if S is the size of
85266         an existing object and T is sufficiently small.
85267
85268 2003-11-17  Jim Meyering  <jim@meyering.net>
85269
85270         On systems without utime and without a utimes function capable of
85271         dealing with a NULL struct utimbuf* argument, this utime replacement
85272         could -- in unusual circumstances -- leak a file descriptor.
85273         * lib/utime.c: Include <unistd.h> and <errno.h>.
85274         (utime_null): Be sure to close `fd' and to preserve errno.
85275         Reported by Geoff Collyer via Arnold Robbins.
85276
85277 2003-11-17  Bruno Haible  <bruno@clisp.org>
85278
85279         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85280         (Depends-on): Add xsize.
85281
85282 2003-11-17  Bruno Haible  <bruno@clisp.org>
85283
85284         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85285
85286 2003-11-17  Bruno Haible  <bruno@clisp.org>
85287
85288         * lib/vasnprintf.c (alloca): Remove fallback definition.
85289         (freea): Remove definition.
85290         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85291         Reported by Paul Eggert.
85292
85293 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85294             Bruno Haible  <bruno@clisp.org>
85295
85296         Protect against address arithmetic overflow.
85297         * lib/printf-args.h: Include stddef.h.
85298         (arguments): Change type of field 'count' to size_t.
85299         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85300         'unsigned int' where appropriate.
85301         * lib/printf-parse.h: Include sys/types.h.
85302         (char_directive): Change type of *arg_index fields to ssize_t.
85303         (char_directives): Change type of fields 'count', max_*_length to
85304         size_t.
85305         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85306         (SSIZE_MAX): Define fallback value.
85307         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85308         instead of 'int' where appropriate. Check a_allocated, d_allocated
85309         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85310         * lib/vasnprintf.c: Include xsize.h.
85311         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85312         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85313         overflow. Avoid wraparound when converting a width or precision from
85314         decimal to binary.
85315
85316 2003-11-16  Bruno Haible  <bruno@clisp.org>
85317
85318         Update from GNU gettext.
85319         * lib/printf-parse.c: Generalize to it can be compiled for wide
85320         strings.
85321         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85322         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85323         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85324         SNPRINTF): New macros.
85325         Don't include <alloca.h> if the file is used inside libintl.
85326         (local_wcslen): New function, for Solaris 2.5.1.
85327         (VASNPRINTF): Use it instead of wcslen.
85328
85329 2003-11-16  Bruno Haible  <bruno@clisp.org>
85330
85331         * lib/xsize.h (xmax): New function.
85332         (xsum, xsum3, xsum4): Declare as "pure" functions.
85333
85334 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85335
85336         * modules/xalloc (Files): Undo latest change, since xalloc.h
85337         no longer needs SIZE_MAX or PTRDIFF_MAX.
85338
85339 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85340
85341         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85342         gl_PTRDIFF_MAX.
85343
85344 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85345
85346         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85347         "return", to pacify some unknown compiler.  Problem reported
85348         by Joerg Schilling.
85349
85350 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85351
85352         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85353         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85354         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85355         heuristic is just as accurate as far as we know, and it removes a
85356         dependency on size_max.m4 and ptrdiff_max.m4.
85357
85358 2003-11-11  Bruno Haible  <bruno@clisp.org>
85359
85360         * modules/xsize (Files): Add m4/size_max.m4.
85361         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85362
85363 2003-11-11  Bruno Haible  <bruno@clisp.org>
85364
85365         * m4/size_max.m4: New file.
85366         * m4/ptrdiff_max.m4: New file.
85367         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85368         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85369         (gl_XALLOC): Invoke it.
85370
85371 2003-11-11  Bruno Haible  <bruno@clisp.org>
85372
85373         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85374         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85375         defined.
85376
85377 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85378
85379         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85380         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85381         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85382         From Bruno Haible.
85383         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85384         not (size_t) -1, since it's defined here.
85385
85386 2003-11-09  Karl Berry  <karl@gnu.org>
85387
85388         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85389
85390 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85391
85392         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85393         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85394         Reject sizes of exactly SIZE_MAX bytes.
85395         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85396         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85397
85398 2003-11-05  Bruno Haible  <bruno@clisp.org>
85399
85400         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85401         SIZE_MAX defined in <limits.h> on Solaris.
85402
85403 2003-11-04  Jim Meyering  <jim@meyering.net>
85404
85405         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85406         variable names, rather than @VAR@.
85407         * modules/poll: Likewise.
85408
85409 2003-11-04  Bruno Haible  <bruno@clisp.org>
85410
85411         * modules/xsize: New file.
85412         * modules/linebreak: Depend on xsize.
85413         * MODULES.html.sh (func_all_modules): Add xsize.
85414
85415 2003-11-04  Bruno Haible  <bruno@clisp.org>
85416
85417         * m4/xsize.m4: New file.
85418
85419 2003-11-04  Bruno Haible  <bruno@clisp.org>
85420
85421         * lib/xsize.h: New file.
85422         * lib/linebreak.c: Include xsize.h.
85423         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85424         argument for overflow.
85425         Suggested by Paul Eggert.
85426
85427 2003-11-03  Karl Berry  <karl@gnu.org>
85428
85429         * config/config.{guess,sub}: update from config.
85430
85431 2003-11-03  Jim Meyering  <jim@meyering.net>
85432
85433         * modules/userspec (lib_SOURCES): Add userspec.h.
85434         (Include): Add "userspec.h".
85435         Improve description.
85436
85437 2003-11-03  Jim Meyering  <jim@meyering.net>
85438
85439         * lib/userspec.c: Include "userspec.h".
85440         * lib/userspec.h: New file.
85441
85442 2003-11-03  Bruno Haible  <bruno@clisp.org>
85443
85444         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85445
85446 2003-11-03  Bruno Haible  <bruno@clisp.org>
85447
85448         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85449         available, to avoid (extremely rare) race condition.
85450         Suggested by Paul Eggert.
85451
85452 2003-11-02  Karl Berry  <karl@gnu.org>
85453
85454         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85455
85456 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85457
85458         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85459         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85460         (read_filesystem_list): Set and use me_type_malloced.
85461         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85462         whatever the type happens to be), for brevity and consistency.
85463         Check for size calculation overflow on Alphas running OSF/1.
85464
85465 2003-10-31  Jim Meyering  <jim@meyering.net>
85466
85467         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85468
85469         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85470
85471 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85472             Bruno Haible  <bruno@clisp.org>
85473
85474         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85475         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85476
85477 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85478
85479         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85480         netbsd*-gnu*.  Suggested by Robert Millan.
85481
85482 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85483
85484         * modules/group-member: Depend on stdbool.
85485
85486 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85487
85488         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85489
85490 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85491
85492         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85493         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85494         after the 'gnu' in these cases.  This fixes some bugs in the
85495         previous change, and is based on suggestions by Robert Millan.
85496
85497 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85498
85499         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85500         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85501         no longer needed.
85502         * lib/quotearg.c (quotearg_n_options): Use it.
85503         * lib/group-member.c: Include <stdbool.h>.
85504         (free_group_info): Arg is now const *; don't free arg.
85505         (get_group_info): Now returns bool and accepts struct group_info *,
85506         rather than returning a malloc'ed struct group_info *.
85507         All uses changed.  Check for overflow in internal size calculation.
85508
85509         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85510         rather than xmalloc/xrealloc.
85511         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85512         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85513         conformance bug: the old code used a pointer after freeing the
85514         storage that it addressed.
85515         * lib/hash.c (hash_initialize): Simplify the code by using
85516         xalloc_oversized rather than doing it by hand.
85517         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85518         the buffer preserved.  Use free and xmalloc instead.
85519         * lib/quotearg.c (quotearg_n_options): Likewise.
85520         Use a simpler test for size overflow.  Don't use xalloc_oversized
85521         because unsigned int might be wider than size_t (!); this suggests
85522         that we should switch from unsigned int to size_t for slot numbers.
85523
85524 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85525
85526         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85527         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85528         NetBSD kernels.  Requested by Richard Stallman.
85529
85530 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85531
85532         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85533         to allocate the returned structure.  Do not allocate a subarray,
85534         as x2nrealloc will do that.
85535         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85536         instead of xnrealloc.
85537         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85538
85539 2003-10-27  Bruno Haible  <bruno@clisp.org>
85540
85541         * lib/stdbool_.h: Better support for BeOS.
85542
85543 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85544
85545         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85546         now uses inline.
85547
85548 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85549
85550         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85551         callers that want to do their own size-overflow checking.  Include
85552         <stdbool.h>, since xalloc_oversized returns bool.
85553         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85554         to use xalloc_oversized.
85555
85556         Add two functions x2realloc, x2nrealloc, for programs that grow
85557         arrays dynamically by doubling their sizes.
85558         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85559         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85560         New functions.
85561
85562         Port to C99 semantics for 'inline' of external functions.
85563         Bug reported by Bruno Haible.
85564         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85565         with the old contents of xnmalloc.
85566         (xnmalloc, xmalloc): Use it.
85567         (xnrealloc_inline): New static inline function,
85568         with the old contents of xnrealloc.
85569         (xnrealloc, xrealloc): Use it.
85570
85571         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85572         that.
85573
85574 2003-10-26  Karl Berry  <karl@gnu.org>
85575
85576         * config/srclist.txt (COPYING.DOC): no longer available from
85577         /gd/gnuorg; don't know where the ultimate source is.
85578
85579 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85580
85581         Fix several address-calculation bugs in the hash modules,
85582         plus some minor code cleanup.
85583
85584         * lib/hash.h: Include <stdbool.h>, for bool.
85585         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85586         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85587         hash_get_n_entries, hash_get_max_bucket_length,
85588         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85589         hash_rehash): Use size_t rather than unsigned.
85590         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85591         hash_get_n_buckets_used, hash_get_n_entries,
85592         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85593         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85594         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85595         Likewise.
85596         (SIZE_MAX): Define if not defined.
85597         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
85598         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
85599         hash_print):
85600         Use const * when possible.
85601         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
85602         (check_tuning): Fix bug: if tuning parameters were very close to
85603         0 or 1, rounding errors could have caused subscript violations.
85604         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
85605         (hash_initialize): Add 'fail:' label
85606         to free table and return NULL, and use it to simplify code.
85607         Use calloc rather than clearing the storage ourself.
85608         (hash_initialize, hash_rehash): Check for arithmetic overflow in
85609         buffer size calculations.
85610         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
85611         Include <stddef.h>, for size_t.
85612         * lib/hash-pjw.c (hash_pjw): Likewise.
85613         Switch to method described by Bruno Haible.
85614         Include <limits.h>, for CHAR_BIT.
85615         (SIZE_BITS): New macro.
85616
85617 2003-10-23  Paul Eggert  <eggert@twinsun.com>
85618
85619         * m4/getline.m4 (AM_FUNC_GETLINE):
85620         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
85621         hosts.  Problem reported by Derek Robert Price in
85622         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
85623         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
85624         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
85625
85626 2003-10-21  Paul Eggert  <eggert@twinsun.com>
85627
85628         * lib/getndelim2.c (getndelim2): When size calculation overflows,
85629         ceiling the allocation at NMAX bytes rather than silently
85630         discarding input bytes before NMAX is reached.  This makes
85631         a difference only if NMAX exceeds SIZE_MAX / 2.
85632
85633         * lib/obstack.c: Merge from glibc.
85634         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
85635         Add libc_hidden_def (_obstack_newchunk).
85636         (_obstack_free) [! defined _LIBC]: Remove.
85637         [defined _LIBC]: Make a strong alias from obstack_free, rather than
85638         a clone of the function body.
85639         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
85640         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
85641
85642         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
85643         glibc.
85644         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
85645         arg to memcpy.
85646
85647         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
85648         (obstack_ptr_grow_fast, obstack_int_grow_fast):
85649         Don't use lvalue casts, as GCC plans to remove support for them
85650         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
85651         was also present in the non-GCC version, indicating that this
85652         code had always been buggy and had never been widely used.
85653         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
85654         Use the fast variant of each macro, rather than copying the
85655         definiens of the fast variant; that way, we'll be more likely to
85656         catch future bugs in the fast variants.
85657
85658 2003-10-20  Bruno Haible  <bruno@clisp.org>
85659
85660         * modules/wait-process: New file.
85661         * MODULES.html.sh (func_all_modules): Add wait-process.
85662
85663 2003-10-20  Bruno Haible  <bruno@clisp.org>
85664
85665         * m4/wait-process.m4: New file.
85666
85667 2003-10-20  Bruno Haible  <bruno@clisp.org>
85668
85669         * lib/wait-process.h: New file, from GNU gettext.
85670         * lib/wait-process.c: New file, from GNU gettext.
85671
85672 2003-10-19  Jim Meyering  <jim@meyering.net>
85673
85674         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
85675         HPUX 10.20.
85676
85677 2003-10-18  Karl Berry  <karl@gnu.org>
85678
85679         * config/config.guess: update from config.
85680
85681 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85682
85683         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
85684         (getgroups): First arg is int, not size_t.
85685         Don't let 'free' mangle errno.
85686
85687 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85688
85689         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
85690
85691 2003-10-16  Karl Berry  <karl@gnu.org>
85692
85693         * config/config.{guess,sub}: update from config.
85694
85695 2003-10-16  Jim Meyering  <jim@meyering.net>
85696
85697         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
85698         memcpy.
85699
85700 2003-10-15  Paul Eggert  <eggert@twinsun.com>
85701
85702         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
85703         (SIZE_MAX): Remove.
85704         (new_exclude, add_exclude_file): Initial size no longer needs to
85705         be a power of 2.
85706         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
85707         our own address arithmetic overflow checking.
85708
85709         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
85710         (fnmatch): Do not alloca more than 2000 wide characters;
85711         instead, use malloc for large buffers.
85712         Check for address arithmetic overflow, and return -1
85713         with errno set to ENOMEM in that case.
85714         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
85715         (NEW_PATTERN): Do not alloca more than 8000 bytes;
85716         instead, return -1.  Check for address arithmetic overflow.
85717
85718 2003-10-14  Paul Eggert  <eggert@twinsun.com>
85719
85720         Handle invalid suffixes and overflow independently, so that
85721         callers can treat them independently as needed.  Fix some bugs in
85722         suffix handling, e.g., "100k@" was not diagnosed as an invalid
85723         suffix for a human-readable blocksize.  The major caller-visible
85724         change is the addition of a new
85725         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
85726         that both overflow and suffix chars were found.
85727
85728         * lib/human.c (humblock): Don't check separately for invalid suffix
85729         char; that is xstrtoumax's job (now that its bug is fixed).
85730         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
85731         INTMAX_MAX]: New macros.
85732         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
85733         TYPE_MAXIMUM): New macros.
85734         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
85735         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
85736         if overflow occurs, as it's what __strtol does and it's more useful
85737         in practice.
85738         (__xstrtol): If __strtol reports some error other than ERANGE,
85739         reflect it to the caller as LONGINT_INVALID.  If it reports
85740         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85741         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85742         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85743         value.
85744         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
85745         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
85746         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
85747         [defined UINTMAX_MAX]: New macros.
85748
85749 2003-10-14  Bruno Haible  <bruno@clisp.org>
85750
85751         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
85752
85753 2003-10-14  Bruno Haible  <bruno@clisp.org>
85754
85755         * m4/sig_atomic_t: New file, from GNU gettext.
85756         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
85757
85758 2003-10-14  Bruno Haible  <bruno@clisp.org>
85759
85760         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
85761         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
85762         Also use volatile where needed.
85763
85764 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85765
85766         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
85767         Change maintainer from Bruno Haible to 'all'.
85768
85769 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85770
85771         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
85772
85773 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85774
85775         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
85776         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
85777         and define in terms of the other primitives.
85778         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
85779         (SIZE_MAX): Define if not already defined.
85780         (array_size_overflow): New function.
85781         (xalloc_die): Abort instead of exiting if 'error' returns.
85782         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
85783         (xmalloc, xrealloc): Use them.
85784         (xcalloc): Check for address arithmetic overflow.
85785         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
85786         a bit faster than strcpy.
85787
85788 2003-10-10  Simon Josefsson  <jas@extundo.com>
85789
85790         * modules/argp (Depends-on): Add restrict and strcase.
85791
85792 2003-10-10  Simon Josefsson  <jas@extundo.com>
85793
85794         * m4/argp.m4: Add AC_C_INLINE.
85795
85796 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85797
85798         Merge getpass from libc, plus a few fixes.
85799
85800         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
85801         Include <stdbool.h>.
85802         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
85803         __fsetlocking to empty.
85804         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
85805         do include <bits/libc-lock.h>.
85806         Do not include <fcntl.h>; not needed.
85807         [_LIBC]: Include <wchar.h>.
85808         (NOTCANCEL_MODE): New macro.
85809         (flockfile, funlockfile) [_LIBC]: New macros.
85810         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
85811         [!_LIBC]: New macros.
85812         (call_fclose): New function.
85813         (getpass): Use it.  Save tty stream separately; this simplifies the
85814         code and makes it more reliable if stdin happens to equal stdout.
85815         Invoke __fsetlocking on tty.
85816         Handle thread cancellation if needed.
85817         Namespace cleanup (use __tcgetattr, __getline).
85818         Use bool for Booleans.
85819         [USE_IN_LIBIO]: Handle wide streams.
85820         [!_LIBC]: Unconditionally do the fseek, since we don't know what
85821         stream might go where.
85822
85823         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
85824         doesn't have to include <stdio.h> before us.
85825         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
85826         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
85827         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
85828         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
85829         if not declared, so that we can use getpass.c code from libc without
85830         rewriting it.
85831         (flockfile, ftrylockfile, funlockfile): New macros.
85832
85833 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85834
85835         * modules/getpass: Depend on stdbool.
85836
85837 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85838
85839         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
85840
85841 2003-10-07  Karl Berry  <karl@gnu.org>
85842
85843         * config/config.{guess,sub}: update from config.
85844
85845 2003-10-06  Jim Meyering  <jim@meyering.net>
85846             Bruno Haible  <bruno@clisp.org>
85847
85848         This lets translators provide better translations for the
85849         "Written by ..." part of --version output.
85850         * lib/version-etc.h: Include stdarg.h.
85851         (version_etc_copyright): Declare as readonly.
85852         (version_etc): Make this function variadic with a NULL-terminated list
85853         of author name strings.
85854         (version_etc_va): New declaration.
85855         * lib/version-etc.c: Include stdarg.h, stdlib.h.
85856         (version_etc_copyright): Declare as readonly.
85857         (version_etc_va): New function. Provide a different translatable string
85858         for each possible number of authors < 10. Abbreviate when there are 10
85859         authors or more.
85860         (version_etc): Make this function variadic. Call version_etc_va.
85861         Suggestion from Gary V. Vaughan.
85862
85863         * lib/long-options.h (parse_long_options): Change prototype: the
85864         authors string is moved to the end and becomes variadic.
85865         * lib/long-options.c: Include stdarg.h.
85866         (parse_long_options): Make this function variadic, too.
85867         Call version_etc_va, not version_etc.
85868
85869 2003-10-06  Bruno Haible  <bruno@clisp.org>
85870
85871         * modules/version-etc-2: Remove file.
85872         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
85873
85874 2003-10-06  Bruno Haible  <bruno@clisp.org>
85875
85876         * modules/fatal-signal: New file.
85877         * MODULES.html.sh (func_all_modules): Add fatal-signal.
85878
85879 2003-10-06  Bruno Haible  <bruno@clisp.org>
85880
85881         * m4/fatal-signal.m4: New file.
85882         * m4/signalblocking.m4: New file, from GNU gettext.
85883
85884 2003-10-06  Bruno Haible  <bruno@clisp.org>
85885
85886         * lib/version-etc-2.h: Remove file.
85887         * lib/version-etc-2.c: Remove file.
85888
85889 2003-10-06  Bruno Haible  <bruno@clisp.org>
85890
85891         * lib/fatal-signal.h: New file, from GNU gettext.
85892         * lib/fatal-signal.c: New file, from GNU gettext.
85893
85894 2003-10-05  Paul Eggert  <eggert@twinsun.com>
85895
85896         * README: Rework advice for preventing empty .o files.
85897         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
85898         not <sys/types.h>.
85899
85900 2003-10-04  Karl Berry  <karl@gnu.org>
85901
85902         * lib/argp*: update from libc.
85903
85904 2003-10-04  Karl Berry  <karl@gnu.org>
85905
85906         * config/config.{guess,sub}: update from config.
85907
85908 2003-10-02  Bruno Haible  <bruno@clisp.org>
85909
85910         * modules/lchown (Include): Add lchown.h.
85911         * modules/time_r (Include): Use "..." syntax.
85912         * modules/xgetdomainname (Include): Add xgetdomainname.h.
85913
85914 2003-10-01  Simon Josefsson  <jas@extundo.com>
85915
85916         * MODULES.html.sh (func_all_modules): Move gethostname from section
85917         'based on' to section 'lacking' POSIX:2001.
85918
85919 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
85920
85921         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
85922         to output mode on the same stream.
85923
85924 2003-09-29  Paul Eggert  <eggert@twinsun.com>
85925
85926         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
85927         Fix arg typo in previous patch.
85928
85929 2003-09-28  Jim Meyering  <jim@meyering.net>
85930
85931         * lib/error.c: Correct cpp indentation.
85932
85933 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85934
85935         * modules/free: New file.
85936
85937 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85938
85939         * m4/free.m4: New file.
85940
85941 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85942
85943         * lib/minmax.h (MIN, MAX)
85944         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
85945         Omit the special code that used __typeof__, since we worry that
85946         it could be more trouble than it's worth.  See:
85947         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85948         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85949
85950         * lib/free.c: New file.
85951
85952 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85953
85954         Trivial fixes to Makefile.am parts of module listings.
85955         * modules/strstr: Append strstr.h to lib_SOURCES.
85956         * modules/strcase: Likewise, for strcase.h.
85957
85958 2003-09-27  Karl Berry  <karl@gnu.org>
85959
85960         * config/mkinstalldirs: update from automake.
85961
85962 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85963
85964         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85965         (error_tail): Do not loop, reallocating temporary buffer, since
85966         the output cannot contain more wide characters than the input
85967         contains bytes, the size must be big enough already.  This avoids
85968         one potential size overflow calculation.  Check for size overflow
85969         when calculating temporary buffer size.  Free temporary buffer
85970         when done, if it was allocated with malloc; this plugs a memory
85971         leak.  Remove casts from void * to pointers, that are no longer
85972         needed now that we're assuming C89 or better.
85973
85974         Merge error changes from glibc.
85975
85976         * lib/error.c, error.h: Update copyright notice header to match glibc.
85977         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85978         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85979         Disable cancellation while printing error.
85980         * lib/error.h: Prepend __ to parameter names.
85981
85982 2003-09-26  Jim Meyering  <jim@meyering.net>
85983
85984         * lib/error.c (error_tail): Move some declarations
85985         into inner scope where the local variables are used.
85986
85987 2003-09-26  Bruno Haible  <bruno@clisp.org>
85988
85989         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85990         stpncpy().
85991         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85992
85993 2003-09-26  Bruno Haible  <bruno@clisp.org>
85994
85995         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85996         (stpncpy): Define as alias for gnu_stpncpy.
85997         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85998
85999 2003-09-25  Simon Josefsson  <jas@extundo.com>
86000
86001         * lib/xgetdomainname.h: New file.
86002         * lib/xgetdomainname.c: New file.
86003
86004 2003-09-25  Simon Josefsson  <jas@extundo.com>
86005             Bruno Haible  <bruno@clisp.org>
86006
86007         * modules/getdomainname: New file.
86008         * modules/xgetdomainname: New file.
86009         * MODULES.html.sh (func_all_modules): Add getdomainname,
86010         xgetdomainname.
86011
86012 2003-09-25  Simon Josefsson  <jas@extundo.com>
86013             Bruno Haible  <bruno@clisp.org>
86014
86015         * m4/getdomainname.m4: New file.
86016
86017 2003-09-25  Simon Josefsson  <jas@extundo.com>
86018             Bruno Haible  <bruno@clisp.org>
86019
86020         * lib/getdomainname.h: New file.
86021         * lib/getdomainname.c: New file.
86022
86023 2003-09-25  Karl Berry  <karl@gnu.org>
86024
86025         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86026
86027 2003-09-25  Karl Berry  <karl@gnu.org>
86028
86029         * config/install-sh: update from automake.
86030
86031 2003-09-25  Bruno Haible  <bruno@clisp.org>
86032
86033         * modules/version-etc-2: New file, from modules/version-etc with
86034         modifications.
86035         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86036
86037 2003-09-25  Bruno Haible  <bruno@clisp.org>
86038
86039         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86040         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86041
86042 2003-09-24  Simon Josefsson  <jas@extundo.com>
86043
86044         * modules/xgethostname: Add xgethostname.h.
86045
86046 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86047
86048         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86049         the buffer associated with the argument.  Bug reported by
86050         Simon Josefsson.
86051
86052 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86053
86054         * README: Document assumptions that 'int' is at least 32 bits
86055         wide, that integer arithmetic is 2's complement without overflow,
86056         that there are no holes in integer values, that adding sizes of
86057         two nonoverlapping objects can't overflow, and that all-bits-zero
86058         yields scalar zero.  Fix spelling and capitalization typos.
86059
86060 2003-09-19  Karl Berry  <karl@gnu.org>
86061
86062         * lib/argp.h: update from libc.
86063
86064 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86065
86066         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86067         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86068         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86069
86070 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86071
86072         * gnulib-tool: Use "test -h", not "test -L", for portability
86073         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86074         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86075         (sed_extract_prog): Issue s commands one-by-one, rather than
86076         using \| in one s command.
86077
86078 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86079
86080         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86081         input error, instead of returning NULL the next time we are called
86082         (and therefore losing track of errno).
86083
86084 2003-09-16  Bruno Haible  <bruno@clisp.org>
86085
86086         * gnulib-tool (func_create_testdir): Warn about duplicated
86087         dependencies.
86088
86089 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86090
86091         * modules/argmatch, modules/fatal, modules/obstack,
86092         modules/xalloc, modules/xgethostname: Sort dependencies by
86093         importance, not alphabetically.
86094
86095 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86096
86097         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86098         fails, so that the caller gets the proper errno.
86099
86100         * lib/readutmp.c (read_utmp): Likewise.
86101         Check for fstat error.  Close stream and free storage
86102         when failing.
86103
86104 2003-09-14  Karl Berry  <karl@gnu.org>
86105
86106         * config/srclist.txt (strdup.c): disable for c89 changes.
86107
86108 2003-09-14  Jim Meyering  <jim@meyering.net>
86109
86110         * lib/getloadavg.c: Correct cpp indentation.
86111         * lib/strdup.c: Likewise.
86112         * lib/vasnprintf.c: Likewise.
86113
86114 2003-09-14  Bruno Haible  <bruno@clisp.org>
86115
86116         * modules/fwriteerror: New file.
86117         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86118
86119 2003-09-14  Bruno Haible  <bruno@clisp.org>
86120
86121         * lib/fwriteerror.h: New file.
86122         * lib/fwriteerror.c: New file.
86123
86124 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86125
86126         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86127         modules/xgethostname, modules/xalloc: Depend on exit.
86128
86129 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86130
86131         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86132
86133         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86134         and AC_MINIX, too, so that their extensions are available.
86135
86136         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86137         This macro has been superseded by gl_BACKUPFILE.
86138
86139         More patches to assume C89 or better.
86140
86141         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86142
86143         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86144         unconditionally.
86145         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86146         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86147         Include <string.h>, <stdlib.h> unconditionally.
86148         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86149         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86150         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86151         headers or for string.h.
86152         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86153         or strtoul.
86154
86155         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86156         headers.
86157         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86158         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86159         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86160         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86161         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86162         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86163         memcpy, memset.
86164         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86165         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86166         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86167         strtol.
86168         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86169         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86170         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86171         strtoul.
86172
86173 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86174
86175         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86176         * lib/obstack.c [!defined _LIBC]: Likewise.
86177         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86178         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86179         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86180
86181         More changes to assume C89 or better.
86182
86183         * lib/error.c (error_tail): Assume vprintf.
86184
86185         * lib/argmatch.c (getenv): Remove decl.
86186         * lib/progreloc.c (get_full_program_name): Define via prototype.
86187         * lib/setenv.c (clearenv): Likewise.
86188         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86189         needed.
86190         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86191         (malloc, memcpy): Remove decls.
86192         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86193         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86194         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86195         (memcpy): Remove macro.
86196         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86197         (__P): Remove.  All uses removed.
86198         (PTR): Remove.  All uses changed to void *.
86199         (CHAR_BIT, NULL): Remove.
86200         (spaces, zeros, memset_space, memset_zero)
86201         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86202         Remove.
86203         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86204         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86205         Define with prototype.
86206         Remove now-unnecessary prototype decl.
86207         (extra_args_spec): Assume ANSI C.  All uses changed.
86208         (extra_args_spec_iso): Remove.
86209         (my_strftime, emacs_strftimeu): Define via prototype.
86210         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86211         unconditionally.
86212         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86213         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86214         (strtoul, strtol): Remove decls.
86215         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86216         LONG_MAX): Remove.
86217         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86218         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86219         (LOCALE_PARAM_PROTO): New macro.
86220         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86221         (INTERNAL (strtol), strtol): Define with a prototype.
86222         (PARAMS): Remove.  All uses removed.
86223         * lib/tempname.c: Include <string.h> unconditionally.
86224         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86225         * lib/xgethostname.c (main): Define with a prototype.
86226         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86227         Include <stdlib.h> unconditionally.
86228         (calloc, malloc, realloc, free): Remove decls.
86229         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86230         Include <stdlib.h> unconditionally.  Sort include file names.
86231         (strtod): Remove.
86232         (xstrtod): Define with a prototype.
86233         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86234         (strtol, strtoul): Remove decls.
86235
86236 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86237
86238         More patches to assume C89 or better.
86239         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86240         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86241         string.h, memchr, STDC_HEADERS.
86242
86243 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86244
86245         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86246         Include <stdlib.h>, <string.h> unconditionally.
86247         Remove now-unnecessary cast to char *.
86248         * lib/strnlen.c: Include <string.h> unconditionally.
86249         * lib/yesno.c (yesno): Define with a prototype.
86250
86251 2003-09-11  Bruno Haible  <bruno@clisp.org>
86252
86253         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86254
86255 2003-09-10  Jim Meyering  <jim@meyering.net>
86256
86257         * lib/error.c: Correct indentation of cpp directives.
86258
86259 2003-09-10  Bruno Haible  <bruno@clisp.org>
86260
86261         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86262         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86263         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86264         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86265         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86266         <stdlib.h> and <string.h> checks.
86267         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86268         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86269
86270 2003-09-10  Bruno Haible  <bruno@clisp.org>
86271
86272         * lib/strcspn.c: Include <string.h> unconditionally.
86273         * lib/strpbrk.c: Include <string.h> unconditionally.
86274         * lib/strstr.c: Include <string.h> unconditionally.
86275         * lib/unicodeio.c: Include <string.h> unconditionally.
86276         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86277         * lib/unsetenv.c: Likewise.
86278         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86279         * lib/yesno.c: Include <stdlib.h> unconditionally.
86280         (rpmatch): Add prototype.
86281
86282 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86283
86284         More patches to assume C89 or better.
86285         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86286         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86287         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86288         or for string.h.
86289         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86290         stdlib.h.
86291         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86292         C headers.
86293         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86294         string.h.
86295         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86296         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86297         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86298         or for string.h.
86299         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86300         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86301         C headers.
86302         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86303         memcpy.
86304         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86305         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86306         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86307         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86308         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86309         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86310         string.h, free.
86311         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86312         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86313         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86314         C headers, or for string.h.
86315         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86316         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86317         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86318         headers, memory.h, stdlib.h, string.h, strings.h.
86319         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86320         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86321         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86322         strchr.
86323         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86324         headers, memory.h, string.h.
86325         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86326         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86327         free.
86328         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86329         headers.
86330         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86331         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86332         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86333         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86334         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86335
86336 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86337
86338         More K&R removal.
86339
86340         * lib/acosl.c (main): Use a prototype.
86341         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86342         tanl.c: Likewise.
86343
86344         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86345
86346         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86347         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86348         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86349         with a prototype.
86350         * lib/getopt.c (const): Remove macro.
86351         Include <string.h> unconditionally.
86352         (my_index): Remove; all uses changed to strchr.
86353         (strlen): Remove decl.
86354         (exchange): Remove forward decl; no longer needed.
86355         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86356         Define with prototype.
86357         * lib/getopt1.c (const): Remove macro.
86358         (getopt_long, getopt_long_only, main): Define with prototype.
86359
86360         * lib/getugroups.c: Include <string.h> unconditionally.
86361
86362         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86363         (getusershell, setusershell, endusershell, readname, main):
86364         Define with prototypes.
86365
86366         * lib/group-member.c: Include group-member.h first.
86367         Include <stdlib.h> unconditionally.
86368
86369         * lib/hard-locale.c: Include hard-locale.h first.
86370         Include <stdlib.h>, <string.h> unconditionally.
86371
86372         * lib/hash.c (free, malloc): Remove decls.
86373         Include <stdlib.h> unconditionally.
86374
86375         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86376         (getenv): Do not declare.
86377
86378         * lib/idcache.c: Include <string.h> unconditionally.
86379
86380         * lib/long-options.c: Include long-options.h first, to test interface.
86381         Include <stdlib.h> unconditionally.
86382
86383         * lib/makepath.c: Include makepath.h first, to test interface.
86384         Include <stdlib.h> and <string.h> unconditionally.
86385
86386         * lib/linebuffer.c: Include <stdlib.h>.
86387         (free): Remove decl.
86388
86389         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86390         stddef.h. rpl_malloc returns void *, not char *.
86391         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86392         prototype.
86393
86394         * lib/md5.h: Include <limits.h> unconditionally.
86395         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86396         (__P): Remove; all uses removed.
86397         * lib/md5.c: Include "md5.h" first.
86398         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86399         md5_buffer, md5_process_bytes, md5_process_block):
86400         Define with prototypes.
86401         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86402         * lib/sha.c: Include "sha.h" first.
86403         Include <stdlib.h>, <string.h> unconditionally.
86404
86405         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86406         * lib/memcmp.c (__ptr_t): Likewise.
86407         * lib/memrchr.c (__ptr_t): Likewise.
86408         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86409         Include <string.h> unconditionally.
86410         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86411         * lib/memchr.c: Include <stdlib.h> unconditionally.
86412         * lib/memchr.c (LONG_MAX): Remove.
86413         * lib/memrchr.c (LONG_MAX): Likewise.
86414         * lib/memchr.c (__memchr): Define via a prototype.
86415         * lib/memrchr.c (__memrchr): Likewise.
86416         * lib/memcmp.c (__P): Remove, and remove all uses.
86417         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86418         Remove forward decls; no longer needed.
86419         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86420         Use types required by C89 in prototype.
86421
86422         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86423         * lib/savedir.c: Likewise.
86424         * lib/mkdir.c (free): Remove decl.
86425         * lib/rmdir.c (rmdir): Define with a prototype.
86426         * lib/savedir.c: Include savedir.h first, to test interface.
86427
86428         * lib/mktime.c (STDC_HEADERS): Remove.
86429         Include <stdlib.h>, <string.h> unconditionally.
86430
86431         * lib/modechange.c: Include <stdlib.h> unconditionally.
86432         (malloc): Remove decl.
86433
86434         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86435         (free): Remove decl.
86436
86437         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86438         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86439         (This type really should be intptr_t, but that's a C99ism.)
86440         (_obstack_memcpy): Remove: all uses changed to memcpy.
86441         Include <string.h> unconditionally.
86442         (struct obstack): Assume __STDC__ for types of members
86443         chunkfun, freefun, extra_arg.
86444         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86445         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86446         obstack_begin, obstack_specify_allocation,
86447         obstack_specify_allocation_with_arg, obstack_chunkfun,
86448         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86449         Remove unprototyped decls and the macros that use them.
86450         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86451         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86452         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86453         (defined __STDC__ && __STDC__)]:
86454         Remove nonprototyped code.
86455         Include <stdlib.h> unconditionally.
86456         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86457         _obstack_allocated_p, _obstack_free, obstack_free,
86458         _obstack_memory_used, print_and_abort):
86459         Define using prototypes.
86460         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86461         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86462         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86463         obstack_next_free, obstack_object_size, obstack_room) [0]:
86464         Remove unused, unprototyped code.
86465
86466         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86467
86468         * lib/physmem.c (physmem_total, physmem_available, main): Define
86469         with prototypes.
86470
86471         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86472         (main): Define with a prototype.
86473
86474         * lib/posixver.c (getenv): Remove decl.
86475
86476         * lib/putenv.c (malloc): Returns void *, not char *.
86477         Include <string.h> unconditionally.
86478         (strchr, memcpy, NULL): Do not define.
86479
86480         * lib/readtokens.c: Include readtokens.h first, to test interface.
86481         Include <stdlib.h>, <string.h> unconditionally.
86482         (init_tokenbuffer): Define with a prototype.
86483
86484         * lib/regex.c (PARAMS): Remove.  All uses removed.
86485         All uses of _RE_ARGS removed, too.
86486         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86487         unconditionally.
86488         (bzero): Assume memset exists.
86489         (memcmp, memcpy, NULL): Remove.
86490         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86491         char, or assignments to local vars of type signed char.
86492         (init_syntax_once, PREFIX(extract_number_and_incr),
86493         PREFIX(print_partial_compiled_pattern),
86494         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86495         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86496         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86497         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86498         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86499         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86500         wcs_compile_range, byte_compile_range, truncate_wchar,
86501         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86502         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86503         count_mbs_length, wcs_re_match_2_internal,
86504         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86505         PREFIX(alt_match_null_string_p),
86506         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86507         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86508         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86509         now-unnecessary declaration, if any.
86510         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86511         regcomp, regexec):
86512         Remove now-unnecessary casts among pointer types.
86513         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86514
86515         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86516         (free): Remove decl.
86517
86518         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86519
86520         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86521         (free): Remove decl.
86522
86523         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86524         * lib/xgetcwd.c: Likewise.
86525
86526         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86527         (free): Remove decl.
86528
86529         * lib/strchrnul.c (strchrnul): Define with a prototype.
86530         Fix bug: c_in was not converted to char before searching.
86531
86532         The following changes are not K&R related:
86533
86534         * lib/group-member.h: Include <sys/types.h>, so that this file is
86535         self-contained.
86536         * lib/makepath.h: Likewise.
86537
86538         * lib/getusershell.c (readname, default_index, line_size, readname):
86539         Use size_t, not int, for sizes.
86540         (readname): If the size overflows, report an error instead of
86541         looping forever.
86542
86543 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86544
86545         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86546         libc.
86547
86548 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86549
86550         * README: New section: portability guidelines.
86551
86552 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86553
86554         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86555         C89 spec.
86556
86557 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86558
86559         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86560
86561 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86562
86563         Assume C89 or better; remove K&R cruft.
86564         A few of these changes were first proposed by Derek Robert Price
86565         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86566
86567         * lib/addext.c: Include <string.h> unconditionally.
86568         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86569         Don't declare getenv or malloc.
86570
86571         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86572         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86573         (NULL): Remove.
86574         (find_stack_direction, alloca): Use prototypes.
86575
86576         * lib/atexit.c (atexit): Define using a prototype.
86577
86578         * lib/basename.c, dirname.c, stripslash.c:
86579         Include <string.h> unconditionally.
86580
86581         * lib/bcopy.c: Include <stddef.h>.
86582         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86583
86584         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86585
86586         * lib/error.h (error, error_at_line, error_print_progname)
86587         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86588         * lib/error.c: Include error.h first, to check interface.
86589         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86590         (VA_START): Remove; all uses changeed to va_start.
86591         (exit, strerror): Remove decls.
86592         (error_print_progname): Prototype uncondionally.
86593         Don't include <errno.h>; no longer needed.
86594         (private_strerror): Remove.
86595         (error_tail): Always define.
86596         (error, error_at_line): Assume C89 or better; always use prototypes.
86597         * lib/fatal.c: Include "fatal.h" first, to test interface.
86598         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86599         (VA_START): Remove; all uses changed to va_start.
86600         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
86601         this case.
86602         (exit): Remove decl.
86603         (fatal): Prototype unconditionally.  Assume va_start works.
86604         Abort at end, to pacify gcc.
86605
86606         * lib/euidaccess.c (main): Define with a prototype.
86607
86608         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
86609
86610         * lib/exitfail.c: Include <stdlib.h> unconditionally.
86611
86612         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
86613         prototypes.
86614         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
86615         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
86616         (getenv): Remove decl.
86617         (fnmatch): Define using a prototype.
86618         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
86619         (FCT): Define using a prototype.
86620
86621         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
86622
86623         * lib/gethostname.c: Include <stddef.h>.
86624         (gethostname): Define with prototype.  Length is size_t, not int.
86625
86626 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86627
86628         Assume C89 or better; remove K&R cruft.
86629         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
86630         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
86631         string.h, getenv, malloc.
86632         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
86633         headers.
86634         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
86635         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
86636         do not check for strerror.
86637         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
86638         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
86639         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
86640         do not check for doprnt or vprintf.
86641         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
86642         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
86643
86644 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86645
86646         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
86647         getversion.c should have been removed then, but was accidentally
86648         preserved.
86649
86650         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
86651         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
86652
86653 2003-09-08  Karl Berry  <karl@gnu.org>
86654
86655         * config/config.sub, config.guess, srclistvars.sh: update from savannah
86656                 config, forget about prep.
86657
86658         * config/depcomp, missing: update from automake.
86659
86660 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86661
86662         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
86663         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86664
86665 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86666
86667         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
86668         copy_tm_result.  Bug reported by Simon Josefsson in
86669         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86670
86671 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86672
86673         * m4/time_r.m4: New file.
86674         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
86675         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
86676         is. Check for timegm declaration.
86677         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
86678         Do not check for gmtime_r.
86679         Replace mktime if __mktime_internal does not exist and if mktime
86680         hasn't been replaced already.
86681
86682 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86683
86684         * lib/time_r.c, lib/time_r.h: New files.
86685
86686         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
86687         __localtime_r.
86688         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
86689         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
86690
86691         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
86692         __gmtime_r.
86693         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
86694         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
86695         Include <time_r.h>.
86696
86697         * lib/timegm.c: Switch to glibc implementation, with the following
86698         changes:
86699         [defined HAVE_CONFIG_H]: Include <config.h>.
86700         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
86701         (__mktime_internal) [!defined _LIBC]: New decl.
86702         (__gmtime_r) [!defined _LIBC]: New macro and function.
86703         (timegm): Use a prototype, since gnulib assumes C89.
86704         Do not bother declaring tmp to be const, as it's not really usefu.
86705         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
86706         (timegm): Declare only if HAVE_DECL_TIMEGM.
86707
86708 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86709
86710         * MODULES.html.sh (func_all_modules): Add time_r.
86711         * modules/time_r: New file.
86712         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
86713         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
86714
86715 2003-09-03  Paul Eggert  <eggert@twinsun.com>
86716
86717         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
86718         Bug reported by Lute Kamstra in
86719         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
86720
86721         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
86722         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
86723         course with correspondingly smaller numbers for tomorrow and
86724         yesterday.  From Tadayoshi Funaba.  Originally installed into
86725         sh-utils on 1999-08-07, but the patch got lost (I guess during the
86726         coreutils merge?).
86727
86728 2003-08-31  Simon Josefsson  <jas@extundo.com>
86729
86730         * modules/timegm: New file.
86731         * MODULES.html.sh (func_all_modules): Add timegm.
86732
86733 2003-08-31  Simon Josefsson  <jas@extundo.com>
86734
86735         * m4/timegm.m4: New file.
86736
86737 2003-08-31  Simon Josefsson  <jas@extundo.com>
86738
86739         * lib/timegm.h: New file.
86740         * lib/timegm.c: New file.  Based on
86741         wget-1.8.2/src/http.c:mktime_from_utc.
86742
86743 2003-08-31  Karl Berry  <karl@gnu.org>
86744
86745         * lib/argp.h: update from libc.
86746
86747 2003-08-28  Bruno Haible  <bruno@clisp.org>
86748
86749         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
86750         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
86751         followed by '#define fnmatch fnmatch_posix' gives an error.
86752
86753 2003-08-28  Bruno Haible  <bruno@clisp.org>
86754
86755         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
86756         warning on QNX, which defines O_BINARY to 000000.
86757
86758 2003-08-27  Jim Meyering  <jim@meyering.net>
86759
86760         * m4/mkstemp.m4: Require that the system mkstemp be able to create
86761         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
86762         would fail after 32.  Reported by Danny Levinson.  Details here:
86763         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
86764
86765 2003-08-24  Bruno Haible  <bruno@clisp.org>
86766
86767         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
86768         MSVC7 <stdio.h> is included later.
86769
86770 2003-08-22  Simon Josefsson  <jas@extundo.com>
86771
86772         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
86773
86774 2003-08-20  Karl Berry  <karl@gnu.org>
86775
86776         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
86777
86778 2003-08-20  Bruno Haible  <bruno@clisp.org>
86779
86780         * modules/progname: New file.
86781         * MODULES.html.sh (func_all_modules): Add progname.
86782
86783 2003-08-20  Bruno Haible  <bruno@clisp.org>
86784
86785         * lib/progname.h: New file, from GNU gettext.
86786         * lib/progname.c: New file, from GNU gettext.
86787         * lib/progreloc.c: New file, from GNU gettext.
86788
86789 2003-08-19  Jim Meyering  <jim@meyering.net>
86790
86791         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
86792         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
86793
86794 2003-08-19  Bruno Haible  <bruno@clisp.org>
86795
86796         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
86797         more.
86798
86799 2003-08-19  Bruno Haible  <bruno@clisp.org>
86800
86801         * lib/xstrdup.c: Assume <string.h> exists.
86802
86803 2003-08-18  Paul Eggert  <eggert@twinsun.com>
86804
86805         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
86806         in makefile rules.
86807
86808 2003-08-18  Jim Meyering  <jim@meyering.net>
86809
86810         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
86811         * m4/lib-ld.m4: Likewise.
86812
86813 2003-08-18  Jim Meyering  <jim@meyering.net>
86814
86815         * lib/setenv.h: Indent nested cpp directive.
86816         * lib/vasnprintf.c: Remove trailing blanks.
86817
86818 2003-08-17  Simon Josefsson  <jas@extundo.com>
86819
86820         * modules/xstrndup: New file.
86821         * MODULES.html.sh (func_all_modules): Add xstrndup.
86822
86823 2003-08-17  Simon Josefsson  <jas@extundo.com>
86824
86825         * modules/argp: Fix autoconf macro name. Add more dependencies.
86826
86827 2003-08-17  Simon Josefsson  <jas@extundo.com>
86828
86829         * m4/xstrndup.m4: New file.
86830
86831 2003-08-17  Simon Josefsson  <jas@extundo.com>
86832
86833         * m4/argp.m4: New file.
86834
86835 2003-08-17  Simon Josefsson  <jas@extundo.com>
86836             Bruno Haible  <bruno@clisp.org>
86837
86838         * lib/xstrndup.h: New file.
86839         * lib/xstrndup.c: New file.
86840
86841 2003-08-17  Bruno Haible  <bruno@clisp.org>
86842
86843         * modules/strndup (Files, Include): Add lib/strndup.h.
86844
86845 2003-08-17  Bruno Haible  <bruno@clisp.org>
86846
86847         * modules/euidaccess (Files): Add lib/euidaccess.h.
86848
86849 2003-08-17  Bruno Haible  <bruno@clisp.org>
86850
86851         * lib/strndup.h: New file.
86852
86853 2003-08-17  Bruno Haible  <bruno@clisp.org>
86854
86855         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
86856         like AC_GNU_SOURCE.
86857         * modules/extensions (configure.ac): Comment out the invocation of
86858         gl_USE_SYSTEM_EXTENSIONS.
86859
86860 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86861
86862         Merges from coreutils, etc.
86863         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
86864         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
86865         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
86866         fixing a typo.
86867         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
86868         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
86869
86870 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86871
86872         Document merge from coreutils.
86873         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
86874         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
86875         * modules/utime: Add m4/utimes-null.m4.
86876
86877 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86878
86879         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86880         space, undoing this 2003-08-12 change:
86881         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86882
86883 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86884
86885         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
86886         strtoul.c from libc, undoing this 2003-08-12 change:
86887         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86888
86889 2003-08-16  Jim Meyering  <jim@meyering.net>
86890
86891         Merges from coreutils.
86892         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
86893         prefix.  Adjust cache variables similarly.  Create 500 rather than
86894         just 300 files, to exercise bug on Darwin6.5, too.
86895         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
86896         $missing_dir.
86897         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
86898         AM_SYS_POSIX_TERMIOS.
86899         Reported by mkc@mathdogs.com.
86900         Also change use of $am_cv_sys_posix_termios
86901         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
86902         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
86903         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
86904         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
86905         in /proc/mounts until it finds one with matching device number.  This
86906         is unnecessary when the FILE argument *is* a mount point.  No stat call
86907         is necessary in that case.  So, disable the statvfs-testing code on
86908         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
86909         as RedHat bug# 84846.
86910         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86911         to 1MB, so as not to render systems with no stack size limit (e.g.,
86912         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86913         Include <unistd.h>.  On some systems,
86914         it is required for the definition of _SC_PAGESIZE.
86915
86916 2003-08-16  Jim Meyering  <jim@meyering.net>
86917
86918         Merge from coreutils.
86919         * lib/xstrtoimax.c: #else #if -> #elif.
86920         * lib/xstrtoumax.c: Likewise.
86921
86922 2003-08-16  Jim Meyering  <jim@meyering.net>
86923
86924         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
86925         * m4/utimes.m4: Removed.
86926         * m4/utimes-null.m4: Renamed from utimes.m4.
86927
86928         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86929         to 1MB, so as not to render systems with no stack size limit (e.g.,
86930         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86931         Include <unistd.h>.  On some systems,
86932         it is required for the definition of _SC_PAGESIZE.
86933
86934 2003-08-16  Jim Meyering  <jim@meyering.net>
86935         and Paul Eggert  <eggert@cs.ucla.edu>
86936
86937         Merges from coreutils, etc.
86938
86939         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
86940         using the latest version from cvs.  This avoids problems with #line
86941         directives using a vendor (Sun) compiler.
86942         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
86943         Don't set GETGROUPS_LIB here; now it's
86944         done via getgroups.m4's wrapper function.
86945         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
86946         rather than just in sh-util/configure.in, so that the
86947         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86948         same.
86949         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86950         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86951         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86952         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86953         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86954         Remove code that is now done by the newly-required macros.
86955         Append $(EXEEXT) to DF_PROG.
86956         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86957         Do not invoke or require the following here,
86958         since prereq.m4 or some gnulib .m4 now does this for us:
86959         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86960         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86961         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86962         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86963         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86964         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86965         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86966         AC_FUNC_OBSTACK.
86967         Do not replace the following functions, as this is now the job
86968         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86969         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86970         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86971         atexit getpass, strdup, getpagesize.
86972         Replace 'raise'.
86973         Do not check for the following functions, as this is now the job
86974         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86975         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86976         setregid.
86977         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86978         Check for sys/sysctl.h.
86979         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86980         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86981         of checking for ssize_t ourselves.
86982
86983         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86984         Require every macro that gnulib/modules/* suggests for us.
86985         (jm_PREREQ_ADDEXT): New macro.
86986         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86987         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86988
86989         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86990         (gl_PHYSMEM): Use it.
86991         Also check for `table' function.
86992         Check for new headers and functions.
86993         Add check for sys/sysmp.h.
86994         With suggestions from Kaveh Ghazi.
86995         Ignore headers that are present but cannot be compiled.  This
86996         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86997         C 5.4.
86998
86999 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87000
87001         Document merge from coreutils.
87002         * modules/userspec: Depend on posixver.
87003         * modules/strftime: Depend on tzset.
87004
87005 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87006
87007         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87008         rather than tab, after '#' in shell-script copyright notices.
87009         Suggested by Bruno Haible.
87010
87011 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87012
87013         * config/srclist-update: Use three spaces, rather than tab, after '#'
87014         in shell-script copyright notices.  Suggested by Bruno Haible.
87015         Remove unnecessary parenthesization in regular expression.
87016
87017 2003-08-15  Jim Meyering  <jim@meyering.net>
87018
87019         Merge from coreutils.
87020         * lib/xgethostname.c: Include <stdlib.h>.
87021         (xghostname): Don't exit for anything other than memory-related
87022         failure; just return NULL.
87023         * lib/userspec.c: Include "posixver.h".
87024         (parse_user_spec): Accept `.' as a separator only
87025         in pre-POSIX-200112 mode.
87026         * lib/strtoimax.c: Use #elif rather than #else #if.
87027         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87028         Remove function, now that we can rely on a working tzset function.
87029         [!_LIBC]: Ensure that the required autoconf test has been run.
87030         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87031         Use underlying_strftime for %r.
87032         * lib/sha.c: Merge in some clean-up and optimization changes from
87033         glibc.
87034         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87035         Ensure that it is a multiple of 64.
87036         Rearrange loop exit tests so as to avoid performing an
87037         additional fread after encountering an error or EOF.
87038         * lib/realloc.c: Update copyright date.
87039
87040 2003-08-15  Jim Meyering  <jim@meyering.net>
87041         and Paul Eggert  <eggert@twinsun.com>
87042
87043         Merge from coreutils.
87044         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87045         member but strut utmpx does not.  Needed for AIX 4.3.3.
87046         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87047
87048 2003-08-15  Jim Meyering  <jim@meyering.net>
87049         and Paul Eggert  <eggert@cs.ucla.edu>
87050
87051         Merges from coreutils, etc.
87052         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87053         Require gl_FUNC_TZSET_CLOBBER.
87054         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87055         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87056         members.
87057
87058 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87059
87060         Help the merge from coreutils.
87061         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87062         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87063         * m4/tzset.m4: Use it too.
87064
87065 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87066
87067         * modules/tzset: New file.
87068
87069 2003-08-14  Jim Meyering  <jim@meyering.net>
87070
87071         Merges from coreutils.
87072         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87073         variable names, rather than @FNMATCH_H@.
87074         * modules/alloca: Likewise for $(ALLOCA_H).
87075
87076         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87077         the three copies of the literal target, `fnmatch.h'.
87078         * modules/alloca (alloca.h): Likewise.
87079
87080 2003-08-14  Jim Meyering  <jim@meyering.net>
87081
87082         Merge from coreutils.
87083         * m4/tzset.m4: New file.
87084         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87085         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87086         otherwise, AIX 5.1 systems would end up using the latter.
87087         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87088         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87089         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87090         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87091
87092 2003-08-14  Jim Meyering  <jim@meyering.net>
87093
87094         Merge from coreutils.
87095         * lib/obstack.h: Whitespace changes.
87096         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87097         and xcalloc return values.
87098         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87099         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87100         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87101         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87102         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87103         error from mntctl.
87104         Use mntctl's return value to drive the entry-processing loop, since
87105         we can't rely on the value of the vmt_length member in the last
87106         entry.  On some systems doing so could result in exhausting
87107         virtual memory.  Based in part on a patch from Mike Jetzer.
87108
87109 2003-08-14  Jim Meyering  <jim@meyering.net>
87110         and Paul Eggert  <eggert@twinsun.com>
87111
87112         Merges from coreutils, plus other fixes.
87113         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87114         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87115         for credits and details.  Thanks to Kaveh Ghazi for helping
87116         to keep these files in sync.
87117         (ARRAY_SIZE): Define it.
87118         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87119         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87120         (memcasecmp): Don't assume size_t fits in unsigned int.
87121         Remove casts and duplicate code.
87122         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87123         (memcpy): Remove definition.
87124         Merge in some clean-up and optimization changes from glibc.
87125         [BLOCKSIZE]: Move definition to top of file.
87126         Ensure that it is a multiple of 64.
87127         Rearrange loop exit tests so as to avoid performing an
87128         additional fread after encountering an error or EOF.
87129         * lib/md5.h (md5_uintptr): Define.
87130         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87131         return to the initial working directory.  Preserve errno
87132         for caller.
87133         * lib/idcache.c: Include "xalloc.h".
87134         (xmalloc, xrealloc): Remove decls.
87135         (getuser): Remove casts no longer required in C89.
87136         * lib/human.c: Include stdio.h, for sprintf.
87137         * lib/group-member.c: Include "xalloc.h".
87138         (xmalloc, xrealloc): Remove decls.
87139         (get_group_info): Remove casts no longer required in C89.
87140         * lib/getusershell.c (readname): Remove casts no longer required in
87141         C89.
87142         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87143         * lib/getline.c: Whitespace fix, from coreutils.
87144
87145 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87146
87147         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87148         Check for isascii.
87149
87150         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87151         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87152         Undo previous (whitespace-only) change.
87153
87154 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87155
87156         * lib/exclude.c: Include <ctype.h>
87157         (IN_CTYPE_DOMAIN): New macro.
87158         (is_space): New fn.
87159         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87160         and empty lines.
87161
87162         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87163         Undo previous (whitespace-only) change.
87164
87165 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87166
87167         * config/srclist-update: Change update back to the old behavior,
87168         leaving whitespace alone.  Use one 'sed' command rather than a
87169         pipeline.
87170         (fixlicense): Now a variable, not a function.
87171         (remove_trailing_blanks): Remove.
87172         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87173         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87174         Undo previous (whitespace-only) change.
87175
87176 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87177
87178         Merge from coreutils.
87179         * modules/euidaccess: Add lib_SOURCES, include for new
87180         file euidaccess.h
87181
87182 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87183
87184         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87185         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87186         Normalize leading white space and remove trailing white space.
87187
87188         Merge from coreutils
87189         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87190
87191         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87192         0.12.1.  These files are now being upgraded automatically by
87193         ../config/srclist-update.
87194
87195 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87196
87197         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87198         Normalize leading white space and remove trailing white space.
87199         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87200         notice, as per ../config/srclist-update.
87201
87202         Merge from coreutils.
87203         * lib/euidaccess.h: New file.
87204         * lib/euidaccess.c: Include it.
87205         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87206         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87207         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87208
87209 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87210
87211         * config/srclist-update: Add copyright notice.
87212         (remove_id_lines, remove_trailing_blanks): New constants.
87213         (fixfile): Use them to normalize spacing a bit in copied files.
87214         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87215         Normalize leading white space and remove trailing white space.
87216
87217         * config/texinfo.tex: Sync with texinfo.
87218
87219         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87220         strtoul.c from libc, to merge coreutils whitespace changes.
87221
87222         * config/srclist.txt: Get the following m4 files from gettext:
87223         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87224         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87225         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87226         wint_t.m4.
87227
87228 2003-08-12  Karl Berry  <karl@gnu.org>
87229
87230         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87231         been made.
87232
87233 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87234
87235         * modules/gnu-source, m4/gnu-source.m4:
87236         Remove; we're assuming Autoconf 2.54 or later now.
87237         Suggested by Bruno Haible.
87238         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87239
87240 2003-08-11  Bruno Haible  <bruno@clisp.org>
87241
87242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87243
87244 2003-08-11  Bruno Haible  <bruno@clisp.org>
87245
87246         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87247         (vasnprintf): Use it instead of wcslen.
87248
87249 2003-08-11  Bruno Haible  <bruno@clisp.org>
87250
87251         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87252         value to ensure that _Bool promotes to int. Use #define for _Bool when
87253         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87254
87255 2003-08-10  Karl Berry  <karl@gnu.org>
87256
87257         * lib/regex.h: update from libc (whitespace fix).
87258
87259 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87260
87261         Merge some files from coreutils.  These changes were
87262         originally made by Jim Meyering.
87263         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87264         many older Unixes require this.
87265         * lib/alloca.c (alloca): Remove cast to argument of free;
87266         no longer needed in C89.
87267         * lib/alloca_.h, regex.h: Fix white space to match
87268         what GNU indent does.
87269
87270 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87271
87272         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87273         apparently Emacs's Unicode mode got confused before my 2003-08-05
87274         checkin.
87275
87276 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87277
87278         * m4/extensions.m4: New file.
87279         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87280         Require gl_USE_SYSTEM_EXTENSIONS.
87281         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87282         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87283
87284 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87285
87286         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87287         * modules/extensions, modules/gnu-source: New files.
87288         * modules/timespec, modules/unlocked-io: Depend on extensions.
87289
87290 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87291
87292         * modules/restrict: New file.
87293         * MODULES.html.sh (func_all_modules): Add restrict.
87294         * modules/regex: Depend on restrict.
87295
87296 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87297
87298         * m4/restrict.m4: New file.
87299         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87300
87301 2003-08-07  Bruno Haible  <bruno@clisp.org>
87302
87303         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87304         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87305
87306 2003-08-07  Bruno Haible  <bruno@clisp.org>
87307
87308         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87309         makes the module 'getndelim2' compatible with the module 'getline'.
87310
87311 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87312
87313         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87314         byte with "\201" to avoid glitches when editing that source file
87315         with multi-gnome-terminal.
87316
87317 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87318
87319         * lib/bumpalloc.h: Remove.
87320
87321 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87322
87323         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87324         * modules/bumpalloc: Remove.
87325
87326 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87327
87328         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87329         GNU coding style.
87330
87331         Merge from coreutils.
87332         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87333         1. From glibc.
87334         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87335         from Karl Berry, implemented by Jim Meyering.
87336         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87337         from Dmitry V. Levin.
87338         Remove anachronistic cast of xrealloc.
87339         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87340         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87341         type. Otherwise, it wouldn't compile with at least /bin/cc on
87342         ymp-cray-unicos9.0.2.X.
87343         Combine two mostly-identical uses of alloca into one.
87344         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87345
87346 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87347
87348         [From Emacs.]
87349
87350         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87351         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87352         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87353         obsolete NLIST_NAME_UNION.
87354         [__GNU__]: Undef BSD and FSCALE.
87355         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87356
87357 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87358
87359         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87360         an enum type, so that it's guaranteed to promote to int.  See:
87361         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87362
87363 2003-08-03  Karl Berry  <karl@gnu.org>
87364
87365         * config/depcomp: update from automake.
87366
87367 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87368
87369         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87370         (strerror): Don't assume that a printable int fits in 14 bytes.
87371
87372 2003-07-31  Bruno Haible  <bruno@clisp.org>
87373
87374         * modules/getpass-gnu: New file.
87375         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87376
87377 2003-07-31  Bruno Haible  <bruno@clisp.org>
87378
87379         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87380
87381 2003-07-24  Karl Berry  <karl@gnu.org>
87382
87383         * config/missing: update from automake.
87384
87385 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87386             Bruno Haible  <bruno@clisp.org>
87387
87388         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87389         * lib/getline.c (getline, getdelim): Likewise.
87390         Remove _GNU_SOURCE define; now it's defined in config.h through
87391         m4/getline.m4.
87392
87393 2003-07-23  Karl Berry  <karl@gnu.org>
87394
87395         * config/config.sub: update from prep.
87396
87397 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87398
87399         * modules/xalloc (Depends-on): Add exitfail.
87400         * modules/xmemcoll: Likewise.
87401
87402 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87403
87404         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87405         over-parenthesization in macros.
87406
87407         Sync with coreutils.
87408
87409         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87410         required by C99.
87411
87412         Use `exit_failure' for xalloc and xmemcoll instead of their own
87413         private exit-failure variables.
87414         * lib/xalloc.h (xalloc_exit_failure): Remove.
87415         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87416         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87417         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87418         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87419         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87420
87421 2003-07-20  Jim Meyering  <jim@meyering.net>
87422
87423         * modules/closeout (Depends-on): Add exitfail.
87424         Suggestion from Bruno Haible.
87425
87426 2003-07-19  Karl Berry  <karl@gnu.org>
87427
87428         * config/config.sub: update from prep.
87429
87430 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87431
87432         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87433         Remove.
87434         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87435         to test that it can stand by itself.  Include "exitfail.h".
87436         Clients should set exit_failure instead.
87437         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87438
87439 2003-07-18  Bruno Haible  <bruno@clisp.org>
87440
87441         * modules/getndelim2: New file.
87442         * modules/getline: Share files with module getndelim2.
87443         * modules/getnline: Depend on getndelim2 instead of sharing files with
87444         it. Add getnline.c to lib_SOURCES.
87445         * MODULES.html.sh (func_all_modules): Add getndelim2.
87446
87447 2003-07-18  Bruno Haible  <bruno@clisp.org>
87448
87449         * m4/getndelim2.m4: New file.
87450         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87451         invoke gl_PREREQ_GETNDELIM2.
87452         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87453         gl_PREREQ_GETNDELIM2.
87454         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87455         gl_GETNDELIM2.
87456
87457 2003-07-18  Bruno Haible  <bruno@clisp.org>
87458
87459         * lib/getndelim2.h: New file.
87460         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87461         getndelim2.h.
87462         (getndelim2): Make non-static. Change return type to ssize_t.
87463         * lib/getline.h: Change argument names.
87464         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87465         * lib/getnline.c: Include getndelim2.h.
87466
87467 2003-07-18  Andreas Schwab  <schwab@suse.de>
87468
87469         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87470
87471 2003-07-17  Karl Berry  <karl@gnu.org>
87472
87473         * config/config.sub: update from prep.
87474
87475 2003-07-17  Bruno Haible  <bruno@clisp.org>
87476
87477         * modules/getnline: New file.
87478         * modules/getline: Add lib/getndelim2.c to source file list.
87479         * MODULES.html.sh (func_all_modules): Add getnline.
87480
87481 2003-07-17  Bruno Haible  <bruno@clisp.org>
87482
87483         * m4/getnline.m4: New file.
87484
87485 2003-07-17  Bruno Haible  <bruno@clisp.org>
87486
87487         * m4/Makefile.am.in: Remove file.
87488         * m4/Makefile.am: Remove file.
87489         * m4/Makefile.in: Remove file.
87490
87491 2003-07-17  Bruno Haible  <bruno@clisp.org>
87492
87493         * lib/getnline.h: New file.
87494         * lib/getnline.c: New file.
87495         * lib/getndelim2.c: New file, extracted from getline.c.
87496         (getndelim2): Renamed from getdelim2, with added nmax argument.
87497         * lib/getline.c: Include getndelim2.c.
87498         (getdelim2): Moved out to getndelim2.c.
87499         (getline, getdelim): Update.
87500
87501 2003-07-17  Bruno Haible  <bruno@clisp.org>
87502
87503         * lib/Makefile.am: Remove file.
87504         * lib/Makefile.in: Remove file.
87505
87506 2003-07-17  Bruno Haible  <bruno@clisp.org>
87507
87508         * configure.in: Remove file.
87509         * Makefile.in: Remove file.
87510
87511 2003-07-17  Bruno Haible  <bruno@clisp.org>
87512
87513         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87514
87515 2003-07-16  Karl Berry  <karl@gnu.org>
87516
87517         * config/srclist-update: was running fixlicense twice, which caused
87518                 texinfo.tex to be nullified for some reason.  Simplify,
87519                 $gplsrc is no longer needed as far as I can see?
87520
87521 2003-07-16  Jim Meyering  <jim@meyering.net>
87522
87523         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87524
87525 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87526
87527         * config/srclist.txt: Get the following files from gettext-runtime/intl
87528         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87529         ref-del.sin.  From Bruno Haible.
87530         * config/srclist-update (fixfile): Change grep pattern again, since the
87531         previous fix didn't work (there was another trailing $).  Use
87532         '[$]' to escape the $s.
87533
87534 2003-07-15  Karl Berry  <karl@gnu.org>
87535
87536         * lib/vasnprintf.c: update from gettext.
87537
87538 2003-07-15  Karl Berry  <karl@gnu.org>
87539
87540         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87541         gets expanded when surrounded by '$'.
87542
87543 2003-07-15  Jim Meyering  <jim@meyering.net>
87544
87545         * modules/save-cwd: Don't depend on error.  From Derek Price.
87546
87547 2003-07-15  Jim Meyering  <jim@meyering.net>
87548
87549         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87550
87551 2003-07-14  Simon Josefsson  <jas@extundo.com>
87552
87553         * modules/mempcpy: New file.
87554         * MODULES.html.sh (func_all_modules): Add mempcpy.
87555
87556 2003-07-14  Simon Josefsson  <jas@extundo.com>
87557
87558         * m4/mempcpy.m4: New file.
87559
87560 2003-07-14  Simon Josefsson  <jas@extundo.com>
87561
87562         * lib/mempcpy.h: New file.
87563         * lib/mempcpy.c: New file.
87564
87565 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87566
87567         * modules/getdate, modules/posixtm: Depend on mktime.
87568
87569 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87570
87571         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87572         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87573         unicodeio.c, unicodeio.h, unlocked-io.h:
87574         Switch from LGPL to GPL.
87575
87576 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87577
87578         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87579         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87580         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87581         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87582         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87583         updated automatically by ../config/srclist-update.  This changes
87584         their license from LPGL to GPL.
87585
87586 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87587
87588         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87589         assumed to refer to the root of the most recent stable gettext version.
87590         * config/srclistvars.sh: Add defaults for eggert.
87591         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87592         Match "This program" as well as "The program".  This is needed
87593         for gettext.
87594
87595 2003-07-14  Jim Meyering  <jim@meyering.net>
87596
87597         Don't emit diagnostics.  Let callers do that.
87598         * lib/save-cwd.c: Don't include "error.h".
87599         (save_cwd): Don't call error.  Ensure that errno is valid
87600         when returning nonzero.
87601
87602         * lib/save-cwd.h (restore_cwd): Update prototype.
87603         * lib/save-cwd.c (restore_cwd): Remove two parameters.
87604         Simplify.  Don't call error upon failure.  Let callers do that.
87605         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
87606         when auditing is enabled.  But don't bother updating the #if.
87607
87608 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
87609
87610         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
87611         it breaks C++ compilation.
87612         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
87613
87614 2003-07-10  Simon Josefsson  <jas@extundo.com>
87615
87616         * modules/strchrnul (Makefile.am): Add strchrnul.h.
87617
87618 2003-07-10  Jim Meyering  <jim@meyering.net>
87619
87620         * m4/clock_time.m4: Remove trailing blank.
87621         * m4/intmax_t.m4: Likewise.
87622
87623 2003-07-10  Jim Meyering  <jim@meyering.net>
87624
87625         * lib/vasnprintf.c: Remove trailing blanks.
87626         Make cpp indentation consistent.
87627
87628 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87629
87630         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
87631         posixver.c, strftime.c, strnlen.c, strverscmp.c:
87632         Switch from LGPL to GPL.
87633
87634 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87635
87636         * config/srclist.txt: Sort sublists.  Add
87637         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
87638         that differ from gnulib for one reason or another; we'd like this list
87639         to be smaller but for now let's document what we have.
87640
87641 2003-07-08  Paul Eggert  <eggert@twinsun.com>
87642
87643         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
87644         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
87645         and sweeter "eval x=$x".
87646         * config/srclist.txt: Get lib/argp* from glibc.
87647
87648 2003-07-07  Paul Eggert  <eggert@twinsun.com>
87649
87650         * lib/mktime.c: Fix some boundary cases and remove need for floating
87651         point.
87652
87653         Issue a compile-time diagnostic if time_t is floating point, or if
87654         two's complement arithmetic is not in effect, or if arithmetic
87655         right shift does not propagate the sign.  These assumptions were
87656         all in the original code but they weren't checked.
87657
87658         (TIME_T_MIDPOINT, verify): New macros.
87659         (__isleap): Remove; it has integer overflow problems.
87660         (leapyear): New function, without those problems.
87661         (ydhms_tm_diff): Remove; splitting into two parts.
87662         (ydhms_diff): New function, containing the arithmetic part of
87663         the old ydhms_tm_diff function.  Issue a compile-time
87664         diagnostic if we are not using C99 integer division.
87665         Avoid casts when possible.
87666         (guess_time_tm): New function, containing the checking part of
87667         the old ydhms_tm_diff function.  Return the new value, rather than
87668         the difference between it and the old.  Accept a new argument T
87669         so that *T specifies the old value.  Check for overflow in the result.
87670
87671         (__mktime_internal): Use a time_t offset, not a long int offset.
87672         This undoes the 2003-06-04 change, which is no longer needed now
87673         that we have better overflow checking.
87674         (localtime_offset): Likewise.
87675
87676         (__mktime_internal): Avoid harmful overflow on hosts where time_t
87677         and long are 64-bit but int is only 32-bit.
87678         (ydhms_diff): Use long int to store year1 and yday1.
87679         Issue a compile-time diagnostic if long int is not wide enough.
87680
87681         (__mktime_internal): Use long int to store adjusted year and yday.
87682         Use plain C rather than preprocessor commands, if that doesn't
87683         affect efficiency.
87684         Check for overflow (and try to repair) after each probe
87685         rather than checking only at the very end.  This avoids some bugs
87686         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
87687         does not equal GMT offset at maximum time).
87688         Use integer to check for overflow rather than floating point; this
87689         is more portable to non-IEEE hosts, and is a tad faster.
87690         When we detect that we are oscillating between two values,
87691         don't check whether tm_isdst has the requested value, since
87692         we already know the answer.  When tm_isdst has the wrong value,
87693         use a different heuristic to find the right one, based on the
87694         extreme values actually observed in practice in tz2003a,
87695         rather than the (overly optimistic) "previous 3 calendar quarters".
87696
87697         (not_equal_tm, print_tm, check_result): Use "const T" rather than
87698         "T const" to accommodate glibc style.
87699         (check_result): Use less-confusing report format.  "long" -> "long int.
87700         (main): Likewise.
87701         Don't loop if the iteration overflows time_t.
87702         Allow a negative step in the iteration.
87703
87704 2003-07-06  Karl Berry  <karl@gnu.org>
87705
87706         * config/depcomp: update from automake.
87707         * config/config.sub: update from prep.
87708
87709 2003-07-03  Karl Berry  <karl@gnu.org>
87710
87711         * config/config.guess: update from prep.
87712
87713 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87714
87715         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
87716         xreadlink.c now includes it unconditionally.
87717
87718 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87719
87720         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
87721         having it depend on HAVE_SYS_TYPES_H.
87722
87723 2003-07-01  Bruno Haible  <bruno@clisp.org>
87724
87725         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
87726         <sys/types.h> should be sufficient.
87727         Reported by Paul Eggert.
87728
87729 2003-06-26  Karl Berry  <karl@gnu.org>
87730
87731         * config/depcomp: update from automake.
87732
87733 2003-06-26  Bruno Haible  <bruno@clisp.org>
87734
87735         * modules/human: Depend on module stdbool.
87736
87737 2003-06-25  Bruno Haible  <bruno@clisp.org>
87738
87739         * modules/readlink: New file.
87740         * modules/xreadlink: Depend on it.
87741         * MODULES.html.sh (func_all_modules): Add readlink.
87742
87743 2003-06-25  Bruno Haible  <bruno@clisp.org>
87744
87745         * m4/readlink.m4: New file.
87746
87747 2003-06-25  Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/readlink.c: New file.
87750
87751 2003-06-22  Karl Berry  <karl@gnu.org>
87752
87753         * config/srclist.txt: update mkinstalldirs from automake.
87754         * config/mkinstalldirs: update.
87755
87756 2003-06-22  Bruno Haible  <bruno@clisp.org>
87757
87758         Portability to mingw32.
87759         * m4/ssize_t.m4: New file, from GNU gettext.
87760         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
87761         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
87762
87763 2003-06-22  Bruno Haible  <bruno@clisp.org>
87764
87765         * modules/safe-read: Add m4/ssize_t.m4.
87766         * modules/xreadlink: Add m4/ssize_t.m4.
87767
87768 2003-06-20  Bruno Haible  <bruno@clisp.org>
87769
87770         Assume C89, so PARAMS isn't needed.
87771         * lib/unicodeio.h (PARAMS): Remove.
87772         * lib/unicodeio.c: Don't use PARAMS.
87773
87774 2003-06-18  Karl Berry  <karl@gnu.org>
87775
87776         * config/config.{guess,sub}: update from prep.
87777
87778 2003-06-18  Jim Meyering  <jim@meyering.net>
87779
87780         Merge changes from coreutils.
87781         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
87782         Remove explicit declarations of xmalloc and realloc.
87783         Include xalloc.h.
87784         (read_utmp): Remove anachronistic cast of xmalloc.
87785
87786 2003-06-17  Paul Eggert  <eggert@twinsun.com>
87787
87788         Assume C89, so PARAMS isn't needed.
87789         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
87790         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
87791         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
87792         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
87793         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
87794         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
87795         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
87796         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
87797         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
87798         lib/xstrtod.h, lib/xstrtol.h: Likewise.
87799         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
87800         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
87801         no longer needed. Anyway, config.h should always be included before any
87802         other file.
87803
87804 2003-06-11  Simon Josefsson  <jas@extundo.com>
87805
87806         * modules/sysexits: New file.
87807         * MODULES.html.sh (func_all_modules): Add sysexits.
87808
87809 2003-06-11  Simon Josefsson  <jas@extundo.com>
87810
87811         * lib/sysexit_.h: New file.
87812
87813 2003-06-11  Derek Price  <derek@ximbiot.com>
87814
87815         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
87816         necessary.
87817
87818 2003-06-11  Bruno Haible  <bruno@clisp.org>
87819
87820         * m4/sysexits.m4: New file.
87821
87822 2003-06-10  Simon Josefsson  <jas@extundo.com>
87823
87824         * lib/argp.h: New file, from glibc.
87825         * lib/argp-ba.c: New file, from glibc.
87826         * lib/argp-eexst.c: New file, from glibc.
87827         * lib/argp-fmtstream.c: New file, from glibc.
87828         * lib/argp-fmtstream.h: New file, from glibc.
87829         * lib/argp-fs-xinl.c: New file, from glibc.
87830         * lib/argp-help.c: New file, from glibc.
87831         * lib/argp-namefrob.h: New file, from glibc.
87832         * lib/argp-parse.c: New file, from glibc.
87833         * lib/argp-pv.c: New file, from glibc.
87834         * lib/argp-pvh.c: New file, from glibc.
87835         * lib/argp-xinl.c: New file, from glibc.
87836
87837 2003-06-10  Simon Josefsson  <jas@extundo.com>
87838
87839         * modules/strchrnul: New file.
87840
87841 2003-06-10  Simon Josefsson  <jas@extundo.com>
87842
87843         * modules/argp: New file.
87844
87845 2003-06-10  Simon Josefsson  <jas@extundo.com>
87846
87847         * m4/strchrnul.m4: New file.
87848
87849 2003-06-10  Simon Josefsson  <jas@extundo.com>
87850
87851         * lib/strchrnul.h: New file.
87852         * lib/strchrnul.c: New file.
87853
87854 2003-06-10  Bruno Haible  <bruno@clisp.org>
87855
87856         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
87857
87858 2003-06-07  Karl Berry  <karl@gnu.org>
87859
87860         * config/config.{guess,sub}: update from prep.
87861
87862 2003-06-07  Jim Meyering  <jim@meyering.net>
87863
87864         * modules/strtod: Use $(...) notation, not @...@ for
87865         AC_REPLACE'd variables.
87866         * modules/localcharset: Likewise.
87867
87868 2003-06-07  Jim Meyering  <jim@meyering.net>
87869
87870         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
87871         in place of my name in the copyright comment.
87872         Remove definition and uses of __P.
87873
87874         From coreutils.
87875         * lib/stat.c: Don't declare xmalloc explicitly.
87876         Instead, include "xalloc.h".
87877         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
87878         xrealloc, and xcalloc return values.
87879         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
87880         Improve comment.
87881         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
87882
87883 2003-06-07  Bruno Haible  <bruno@clisp.org>
87884
87885         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
87886         avoid AC_CONFIG_LINKS.
87887         * modules/fnmatch (Makefile.am): Use explicit creation rule for
87888         fnmatch.h, to avoid AC_CONFIG_LINKS.
87889         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
87890
87891 2003-06-07  Bruno Haible  <bruno@clisp.org>
87892
87893         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
87894         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
87895         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87896         directory.
87897         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
87898         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87899         directory.
87900
87901 2003-06-06  Jim Meyering  <jim@meyering.net>
87902
87903         Merge from coreutils.
87904         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
87905         Consolidate declarations and initializations of *_base* locals.
87906
87907         Merge from coreutils.
87908         This avoids a core dump on systems without GNU putenv,
87909         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
87910         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
87911         (unsetenv): New static function, from GNU libc.
87912         (rpl_putenv): Use it.
87913
87914         * lib/modechange.c: Remove trailing blanks.
87915
87916         Merge from coreutils.
87917         * lib/fsusage.c: Remove declaration of statfs.
87918         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
87919
87920         * lib/posixtm.c: Include <stdbool.h> unconditionally.
87921
87922 2003-06-06  Jim Meyering  <jim@meyering.net>
87923
87924         * lib/stdbool_.h: Renamed from stdbool.h.in.
87925
87926 2003-06-06  Jim Meyering  <jim@meyering.net>
87927             Bruno Haible  <bruno@clisp.org>
87928
87929         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
87930         Adjust Makefile.am snippet not to redirect directly to target.
87931         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
87932
87933 2003-06-05  Paul Eggert  <eggert@twinsun.com>
87934
87935         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
87936         mismatch, look in future quarters as well as past.  This fixes a
87937         bug when processing fall-backwards gaps immediately after a long
87938         period of daylight-saving time.
87939
87940         * lib/mktime.c: Assume freestanding C89 or better.
87941         (HAVE_LIMITS_H): Remove.  Assume it's 1.
87942         (__P): Remove; not used.
87943         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
87944         (mktime, not_equal_tm, print_tm, check_result,
87945         main): Use prototypes.  Use const * where appropriate.
87946         (main): Fix typo in testing code that uncovered by above changes.
87947         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87948
87949 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87950
87951         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87952         locale.h, localeconv.  This merges changes from coreutils.
87953
87954         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87955         It can be removed after the next Autoconf is released.
87956         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87957         needed.
87958
87959 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87960
87961         * lib/mktime.c: Fix Debian bug 177940
87962         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87963         (localtime_offset): Now long int, not time_t, because we want it
87964         to be guaranteed to be signed.  All uses changed.
87965         (__mktime_internal): If overflow would occur when adding offset,
87966         don't add it.
87967
87968         Merge 'human' changes from coreutils.  Rewrite to support
87969         locale-specific notations like thousands separators.
87970         * lib/human.c: Simplify authorship notice.
87971         Include human.h immediately after config.h.
87972         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87973         <limits.h>: Do not include, since human.h does.
87974         (SIZE_MAX, UINTMAX_MAX): New macros.
87975         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87976         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87977         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87978         (power_letter): Renamed from suffixes.
87979         (generate_suffix_backwards): Remove.
87980         (adjust_value): Now takes int style (because of human.h changes)
87981         and long double value (for greater precision on some platforms).
87982         (group_number): New function.
87983         (human_readable): Use it.  Use integer options, not enum.
87984         Put the options before the sizes in the arg list.
87985         Support all the new options.
87986         The old human_readable function has been removed;
87987         use inttostr.h instead.
87988         (human_readable, default_block_size, humblock):
87989         Use uintmax_t, not int, for block sizes.
87990         (human_readable_inexact, block_size_types): Remove.
87991         (block_size_opts): New constant.
87992         (human_options): Renamed from human_block_size, with new signature
87993         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87994         * lib/human.h: Add copyright and authorship notice.
87995         Include <limits.h> and <stdbool.h> unconditionally.
87996         (PARAMS): Remove.  All uses removed.
87997         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87998         (enum human_inexact_style): Remove tag; now a nameless enum.
87999         (human_floor, human_ceiling, human_round_to_even): Now have
88000         values 2, 0, 1 rather than -1, 1, 0.
88001         (human_group_digits, human_suppress_point_zero, human_autoscale,
88002         human_base_1024, human_SI, human_B): New constants.
88003         (human_readable_inexact, human_block_size): Remove.
88004         (human_readable): Size args are now uintmax_t, not int.
88005         (human_options): New decl.
88006
88007         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88008         unnecessary now that we assume C89 or better.  This change
88009         imported from coreutils.
88010
88011         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88012         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88013         in the 2003-05-30 sync from glibc.
88014
88015         .h files should stand alone, but we shouldn't include <sys/types.h>
88016         if we can get away with just <stddef.h>.
88017
88018         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88019         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88020         rather than <sys/types.h>, as we merely need size_t.
88021         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88022         to get size_t.
88023         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88024         Include <stdio.h>, to get FILE.
88025         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88026         memcasecmp.h has included <stddef.h> and all we need is size_t.
88027         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88028         our interface, instead of including <sys/types.h>
88029
88030 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88031
88032         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88033         now, as glibc mktime is buggy on non-glibc systems.
88034
88035 2003-06-03  Karl Berry  <karl@gnu.org>
88036
88037         * config/config.sub: update from prep.
88038
88039 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88040
88041         [from coreutils]
88042         Fix some minor time-related bugs with POSIX time arguments.
88043         Some valid time stamps were being rejected (notably -1, and
88044         time stamps before 1900 on 64-bit hosts).  And some invalid
88045         time stamps were being accepted, e.g. September 31.
88046
88047         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88048         that we can return (time_t) -1 successfully.
88049         * lib/posixtm.c: Likewise.
88050         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88051         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88052         (t): Remove static var.
88053         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88054         of static var.  All uses changed.
88055         (year): Do not reject years before 1900; they can occur with
88056         64-bit time_t.
88057         (posix_time_parse): Do not check for out-of-range components;
88058         that is now the caller's responsibility, since our checks were
88059         only approximations.
88060         (posixtime): Use mktime to check for out-of-range components,
88061         since it knows them exactly.
88062         If mktime returns (time_t) -1, check whether an error actually occurred
88063         by invoking localtime on -1.
88064         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88065         posixtime failures better.
88066         Improve the test data (in comments only).
88067
88068 2003-06-02  Karl Berry  <karl@gnu.org>
88069
88070         * config/mkinstalldirs (version): new variable.
88071         (--version): new option.
88072         (usage): improve message.
88073
88074 2003-05-30  Karl Berry  <karl@gnu.org>
88075
88076         * lib/mktime.c: update from libc.
88077
88078 2003-05-30  Bruno Haible  <bruno@clisp.org>
88079
88080         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88081         * config/config.rpath: Upgrade to gettext-0.12.1.
88082
88083 2003-05-30  Bruno Haible  <bruno@clisp.org>
88084
88085         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88086         * m4/nls.m4: New file, from gettext-0.12.1.
88087         * m4/po.m4: New file, from gettext-0.12.1.
88088         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88089
88090 2003-05-30  Bruno Haible  <bruno@clisp.org>
88091
88092         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88093         * lib/localcharset.h: Likewise.
88094         * lib/localcharset.c: Likewise.
88095
88096 2003-05-29  Karl Berry  <karl@gnu.org>
88097
88098         * config/config.rpath: update from gettext.
88099
88100 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88101
88102         Assume the headers required for C89 freestanding compilers.
88103         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88104         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88105         * m4/human.m4 (gl_HUMAN): Likewise.
88106         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88107         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88108         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88109         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88110         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88111         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88112
88113 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88114
88115         Assume the headers required for C89 freestanding compilers.
88116         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88117         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88118         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88119         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88120         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88121         define, since <limits.h> is guaranteed to do that.
88122         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88123         * lib/exclude.c: Include <stdbool.h> unconditionally.
88124         * lib/tempname.c: Include <stddef.h> unconditionally.
88125         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88126         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88127         <stddef.h> does that.
88128         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88129         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88130         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88131         needed.
88132         * lib/xstrtol.c: Likewise.
88133         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88134         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88135
88136         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88137         warnings on some platforms.
88138
88139         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88140         arbitrarily.
88141
88142 2003-05-26  Jim Meyering  <jim@meyering.net>
88143
88144         Merge in a change from coreutils:
88145         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88146         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88147         that condition, rather than `-1' which is slightly misleading.
88148         Change the name of the cache variable to have the gl_ prefix.
88149         Prompted by a patch from Richard Dawe for DJGPP.
88150
88151 2003-05-24  Karl Berry  <karl@gnu.org>
88152
88153         * config/config.guess: update from prep.
88154
88155 2003-05-22  Karl Berry  <karl@gnu.org>
88156
88157         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88158
88159 2003-05-20  Karl Berry  <karl@gnu.org>
88160
88161         * config/config.guess: update from prep.
88162
88163 2003-05-18  Karl Berry  <karl@gnu.org>
88164
88165         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88166         might actually be set by the user.
88167
88168         * config/depcomp, install-sh, mdate-sh: update from automake.
88169
88170 2003-05-17  Bruno Haible  <bruno@clisp.org>
88171
88172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88173         invalid expansion for AC_EGREP_CPP.
88174         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88175         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88176         Suggested by Akim Demaille <akim@epita.fr> in
88177         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88178
88179 2003-05-12  Jim Meyering  <jim@meyering.net>
88180
88181         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88182         the space-padded-by-default conversion specifiers, %e, %k, %l.
88183
88184 2003-05-12  Bruno Haible  <bruno@clisp.org>
88185
88186         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88187         the string is longer than 4 KB.
88188
88189 2003-05-11  Karl Berry  <karl@gnu.org>
88190
88191         * config/config.{guess,sub}: update from prep.
88192
88193 2003-05-09  Bruno Haible  <bruno@clisp.org>
88194
88195         * modules/error: Add m4/strerror_r.m4 to file list.
88196
88197 2003-05-03  Bruno Haible  <bruno@clisp.org>
88198
88199         Upgrade to Unicode-4.0.
88200         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88201         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88202         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88203         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88204         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88205         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88206         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88207         Change width of U+E0100..U+E01EF from 1 to 0.
88208
88209 2003-04-25  Jim Meyering  <jim@meyering.net>
88210
88211         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88212         of type size_t, not int.
88213
88214 2003-04-25  Bruno Haible  <bruno@clisp.org>
88215
88216         * lib/copy-file.c: Include <stddef.h>, for size_t.
88217
88218 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88219
88220         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88221         code which expansion is under static control.  Patch imported from
88222         Akim Demaille's patch to Bison; see
88223         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88224
88225 2003-04-14  Bruno Haible  <bruno@clisp.org>
88226
88227         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88228
88229 2003-04-11  Jim Meyering  <jim@meyering.net>
88230
88231         Merge changes from Coreutils.
88232
88233         2003-03-22  Jim Meyering  <jim@meyering.net>
88234
88235         * lib/strftime.c (widen): Cast alloca return value to proper type.
88236
88237         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88238
88239         From GNU libc.
88240         * lib/strftime.c (my_strftime): Handle very large width
88241         specifications for numeric values correctly.  Improve checks for
88242         overflow.
88243
88244         2003-01-19  Jim Meyering  <jim@meyering.net>
88245
88246         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88247         definitions.
88248         (nl_get_alt_digit) [! defined my_strftime]: Define.
88249         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88250         _nl_get_alt_digit and _nl_get_walt_digit.
88251
88252         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88253         libc. These changes have no effect outside of _LIBC.
88254
88255 2003-04-10  Bruno Haible  <bruno@clisp.org>
88256
88257         * modules/findprog: New file.
88258         * MODULES.html.sh (func_all_modules): Add it.
88259
88260 2003-04-10  Bruno Haible  <bruno@clisp.org>
88261
88262         * m4/findprog.m4: New file.
88263         * m4/eaccess.m4: New file.
88264
88265 2003-04-10  Bruno Haible  <bruno@clisp.org>
88266
88267         * lib/findprog.h: New file, from GNU gettext.
88268         * lib/findprog.c: New file, from GNU gettext.
88269
88270 2003-04-05  Jim Meyering  <jim@meyering.net>
88271
88272         Merge changes from Coreutils.
88273
88274         * lib/exclude.h (PARAMS): Remove definition and uses.
88275         * lib/exclude.c: Remove uses of `PARAMS'.
88276
88277         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88278         Add test-cases for DOS filenames. Declare program_name.
88279         (main): Set up program_name.  Patch by Rich Dawe.
88280
88281         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88282         error from mntctl.
88283         Use mntctl's return value to drive the entry-processing loop, since
88284         we can't rely on the value of the vmt_length member in the last
88285         entry.  On some systems doing so could result in exhausting
88286         virtual memory.  Based in part on a patch from Mike Jetzer.
88287
88288 2003-04-04  Bruno Haible  <bruno@clisp.org>
88289
88290         * modules/linebreak: New file.
88291         * MODULES.html.sh (func_all_modules): Add it.
88292
88293 2003-04-04  Bruno Haible  <bruno@clisp.org>
88294
88295         * m4/linebreak.m4: New file.
88296
88297 2003-04-04  Bruno Haible  <bruno@clisp.org>
88298
88299         * lib/linebreak.h: New file, from GNU gettext.
88300         * lib/linebreak.c: New file, from GNU gettext with slight
88301         modifications.
88302         * lib/lbrkprop.h: New file, from GNU gettext.
88303
88304 2003-04-03  Bruno Haible  <bruno@clisp.org>
88305
88306         * modules/utf8-ucs4: New file.
88307         * modules/utf16-ucs4: New file.
88308         * modules/ucs4-utf8: New file.
88309         * modules/ucs4-utf16: New file.
88310         * MODULES.html.sh (func_all_modules): Add them.
88311
88312 2003-04-03  Bruno Haible  <bruno@clisp.org>
88313
88314         * m4/utf-ucs4.m4: New file.
88315         * m4/ucs4-utf.m4: New file.
88316
88317 2003-04-03  Bruno Haible  <bruno@clisp.org>
88318
88319         * lib/utf8-ucs4.h: New file, from GNU gettext.
88320         * lib/utf16-ucs4.h: New file, from GNU gettext.
88321         * lib/ucs4-utf8.h: New file, from GNU gettext.
88322         * lib/ucs4-utf16.h: New file, from GNU gettext.
88323
88324 2003-04-02  Bruno Haible  <bruno@clisp.org>
88325
88326         * modules/binary-io: New file.
88327         * MODULES.html.sh (func_all_modules): Add it.
88328
88329 2003-04-02  Bruno Haible  <bruno@clisp.org>
88330
88331         * lib/binary-io.h: New file, from GNU gettext.
88332
88333 2003-04-01  Bruno Haible  <bruno@clisp.org>
88334
88335         * modules/pathname: New file.
88336         * MODULES.html.sh (func_all_modules): Add it.
88337
88338 2003-04-01  Bruno Haible  <bruno@clisp.org>
88339
88340         * lib/pathname.h: New file, from GNU gettext.
88341         * lib/concatpath.c: New file, from GNU gettext.
88342
88343 2003-03-30  Bruno Haible  <bruno@clisp.org>
88344
88345         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88346
88347 2003-03-30  Bruno Haible  <bruno@clisp.org>
88348
88349         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88350         function chown() doesn't exist.
88351
88352 2003-03-28  Bruno Haible  <bruno@clisp.org>
88353
88354         * modules/copy-file: New file.
88355         * MODULES.html.sh (func_all_modules): Add it.
88356
88357 2003-03-28  Bruno Haible  <bruno@clisp.org>
88358
88359         * m4/copy-file.m4: New file.
88360
88361 2003-03-28  Bruno Haible  <bruno@clisp.org>
88362
88363         * lib/copy-file.h: New file, from GNU gettext.
88364         * lib/copy-file.c: New file, from GNU gettext.
88365
88366 2003-03-18  Jim Meyering  <jim@meyering.net>
88367
88368         * lib/quote.c (quote_n): Fix typo in comment.
88369
88370 2003-03-18  Bruno Haible  <bruno@clisp.org>
88371
88372         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88373         checking.
88374         * m4/onceonly_2_57.m4: Likewise.
88375
88376 2003-03-17  Bruno Haible  <bruno@clisp.org>
88377
88378         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88379         (m4_quote): Remove macro.
88380         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88381
88382 2003-03-14  Jim Meyering  <jim@meyering.net>
88383
88384         Merge changes from Coreutils.
88385         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88386         to be const, in order to avoid warnings.
88387         (obstack_room): Likewise.
88388         (obstack_empty_p): Likewise.
88389
88390 2003-03-14  Bruno Haible  <bruno@clisp.org>
88391
88392         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88393         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88394
88395 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88396
88397         Merge changes from Bison.
88398         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88399         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88400         when compiling Bison 1.875's `bitset bset = obstack_alloc
88401         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88402         * lib/hash.c: Include <stdbool.h> unconditionally.
88403
88404 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88405
88406         * m4/onceonly.m4 (m4_quote): New macro.
88407         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88408         Quote AC_FOREACH variable-expansions properly.
88409
88410 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88411
88412         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88413
88414 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88417         Reported by Bruce Becker; see:
88418         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88419
88420 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88421             Bruno Haible  <bruno@clisp.org>
88422
88423         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88424         Reported by John Hughes, see
88425         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88426
88427 2003-02-20  Bruno Haible  <bruno@clisp.org>
88428
88429         * MODULES.html.sh (func_all_modules): Add poll.
88430
88431 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88432
88433         * modules/poll: New file.
88434
88435 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88436
88437         * lib/poll_.h: New file.
88438         * lib/poll.c: New file.
88439
88440 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88441
88442         * m4/poll.m4: New file.
88443
88444 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88445
88446         * modules/mathl: New file.
88447
88448 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88449
88450         * lib/mathl.h: New file.
88451         * lib/acosl.c: New file.
88452         * lib/asinl.c: New file.
88453         * lib/atanl.c: New file.
88454         * lib/ceill.c: New file.
88455         * lib/cosl.c: New file.
88456         * lib/expl.c: New file.
88457         * lib/floorl.c: New file.
88458         * lib/frexpl.c: New file.
88459         * lib/ldexpl.c: New file.
88460         * lib/logl.c: New file.
88461         * lib/sincosl.c: New file.
88462         * lib/sinl.c: New file.
88463         * lib/sqrtl.c: New file.
88464         * lib/tanl.c: New file.
88465         * lib/trigl.c: New file.
88466         * lib/trigl.h: New file.
88467
88468 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88469
88470         * m4/mathl.m4: New file.
88471
88472 2003-02-18  Bruno Haible  <bruno@clisp.org>
88473
88474         * MODULES.html.sh (func_all_modules): Add mathl.
88475
88476 2003-02-17  Bruno Haible  <bruno@clisp.org>
88477
88478         * modules/mkdtemp: New module.
88479         * MODULES.html.sh (func_all_modules): Add it.
88480
88481 2003-02-17  Bruno Haible  <bruno@clisp.org>
88482
88483         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88484
88485 2003-02-17  Bruno Haible  <bruno@clisp.org>
88486
88487         * lib/mkdtemp.h: New file, from GNU gettext.
88488         * lib/mkdtemp.c: New file, from GNU gettext.
88489
88490 2003-02-02  Jim Meyering  <jim@meyering.net>
88491
88492         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88493         e.g. glibc-2.2.93.
88494
88495 2003-01-31  Bruno Haible  <bruno@clisp.org>
88496
88497         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88498         'rpl_rename'.
88499         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88500         'rpl_strnlen'.
88501         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88502         'rpl_strtod'.
88503         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88504         'rpl_utime'.
88505
88506 2003-01-31  Bruno Haible  <bruno@clisp.org>
88507
88508         * lib/rename.c: #undef rename before defining rpl_rename.
88509         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88510
88511 2003-01-30  Bruno Haible  <bruno@clisp.org>
88512
88513         * modules/vasnprintf, modules/vasprintf: New modules.
88514         * MODULES.html.sh (func_all_modules): Add them.
88515
88516 2003-01-30  Bruno Haible  <bruno@clisp.org>
88517
88518         * m4/signed.m4: New file, from GNU gettext.
88519         * m4/longdouble.m4: New file, from GNU gettext.
88520         * m4/wchar_t.m4: New file, from GNU gettext.
88521         * m4/wint_t.m4: New file, from GNU gettext.
88522         * m4/vasnprintf.m4: New file.
88523         * m4/vasprintf.m4: New file.
88524
88525 2003-01-30  Bruno Haible  <bruno@clisp.org>
88526
88527         * lib/printf-args.h: New file, from GNU gettext.
88528         * lib/printf-args.c: New file, from GNU gettext.
88529         * lib/printf-parse.h: New file, from GNU gettext.
88530         * lib/printf-parse.c: New file, from GNU gettext.
88531         * lib/vasnprintf.h: New file, from GNU gettext.
88532         * lib/vasnprintf.c: New file, from GNU gettext.
88533         * lib/asnprintf.c: New file, from GNU gettext.
88534         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88535         * lib/vasprintf.c: New file, from GNU gettext.
88536         * lib/asprintf.c: New file, from GNU gettext.
88537
88538 2003-01-29  Bruno Haible  <bruno@clisp.org>
88539
88540         * modules/stpncpy: New module.
88541         * MODULES.html.sh (func_all_modules): Add it.
88542
88543 2003-01-29  Bruno Haible  <bruno@clisp.org>
88544
88545         * m4/stpncpy.m4: New file.
88546
88547 2003-01-29  Bruno Haible  <bruno@clisp.org>
88548
88549         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88550         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88551
88552 2003-01-28  Bruno Haible  <bruno@clisp.org>
88553
88554         * modules/c-ctype: New module.
88555         * MODULES.html.sh (func_all_modules): Add it.
88556
88557 2003-01-28  Bruno Haible  <bruno@clisp.org>
88558
88559         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88560         Paul Eggert.
88561         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88562         Paul Eggert.
88563
88564 2003-01-27  Bruno Haible  <bruno@clisp.org>
88565
88566         * modules/xsetenv: New module.
88567         * MODULES.html.sh (func_all_modules): Add it.
88568
88569 2003-01-27  Bruno Haible  <bruno@clisp.org>
88570
88571         * lib/xsetenv.h: New file, from GNU gettext.
88572         * lib/xsetenv.c: New file, from GNU gettext.
88573
88574 2003-01-23  Jim Meyering  <jim@meyering.net>
88575
88576         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88577         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88578
88579 2003-01-23  Bruno Haible  <bruno@clisp.org>
88580
88581         * modules/minmax: New module.
88582         * MODULES.html.sh (func_all_modules): Add it.
88583
88584 2003-01-23  Bruno Haible  <bruno@clisp.org>
88585
88586         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88587         Eggert.
88588
88589 2003-01-22  Bruno Haible  <bruno@clisp.org>
88590
88591         * modules/exit: New module.
88592         * MODULES.html.sh (func_all_modules): Add it.
88593
88594 2003-01-22  Bruno Haible  <bruno@clisp.org>
88595
88596         * lib/exit.h: New file, from GNU gettext.
88597
88598 2003-01-19  Bruno Haible  <bruno@clisp.org>
88599
88600         * gnulib-tool: Recognize option --extract-maintainer.
88601         (func_get_maintainer): New function.
88602         * modules/*: Add Maintainer entry.
88603
88604 2003-01-16  Jim Meyering  <jim@meyering.net>
88605
88606         * m4/regex.m4: The `regex' struct is both input and output.
88607         Initialize it before each use.  Patch by Tim Waugh.
88608
88609 2003-01-16  Bruno Haible  <bruno@clisp.org>
88610
88611         * MODULES.html.sh: Add a table of contents. Add the module name as
88612         leftmost column. Add hyperlinks.
88613
88614 2003-01-15  Bruno Haible  <bruno@clisp.org>
88615
88616         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
88617
88618 2003-01-15  Bruno Haible  <bruno@clisp.org>
88619
88620         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
88621         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
88622         suffix.
88623
88624 2003-01-15  Bruno Haible  <bruno@clisp.org>
88625
88626         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
88627
88628 2003-01-15  Bruno Haible  <bruno@clisp.org>
88629
88630         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
88631         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
88632
88633 2003-01-14  Jim Meyering  <jim@meyering.net>
88634
88635         * lib/same.c (same_name): Tweak a comment.
88636
88637 2003-01-14  Bruno Haible  <bruno@clisp.org>
88638
88639         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
88640         when a string comparison is sufficient.
88641
88642 2003-01-14  Bruno Haible  <bruno@clisp.org>
88643
88644         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
88645         'unsigned int'.
88646
88647 2003-01-14  Bruno Haible  <bruno@clisp.org>
88648
88649         * lib/hash-pjw.c: Add comment about low quality of this function.
88650
88651 2003-01-13  Bruno Haible  <bruno@clisp.org>
88652
88653         * modules/stpcpy: Distribute lib/stpcpy.h.
88654         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
88655
88656 2003-01-13  Bruno Haible  <bruno@clisp.org>
88657
88658         * modules/*: Add a description.
88659         * modules/strpbrk: Fix Makefile.am snippet.
88660         * modules/strtoimax: Fix dependencies.
88661         * modules/strtoumax: Likewise.
88662
88663 2003-01-13  Bruno Haible  <bruno@clisp.org>
88664
88665         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
88666         * modules/alloca (Makefile.am): All object files depend on alloca.h.
88667         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
88668
88669 2003-01-13  Bruno Haible  <bruno@clisp.org>
88670
88671         * gnulib-tool (func_create_testdir): Store config/* files in the main
88672         directory.
88673         * config.rpath: Move to ...
88674         * config/config.rpath: ... here.
88675         * modules/gettext: Contains config/config.rpath, not config.rpath.
88676         * modules/iconv: Likewise.
88677
88678 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88679
88680         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88681         to avoid collisions with libcurses and libreadline.
88682
88683         * m4/getstr.m4: Remove.
88684         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
88685
88686 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88687
88688         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88689         to avoid collisions with libcurses and libreadline.
88690
88691         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
88692         * lib/getstr.h, getstr.c: Remove.
88693         * lib/getline.c: Include "getline.h", to check interface.
88694         Move body of old getstr.c here: this defines MIN_CHUNK and
88695         declares getdelim2, which is renamed from getstr.
88696         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
88697
88698         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
88699         All uses changed.
88700         * lib/linebuffer.h: Likewise.
88701         (readline): Remove backward-compatibility macro.
88702
88703 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88704
88705         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88706         to avoid collisions with libcurses and libreadline.
88707         * getstr: Remove.
88708         * MODULES.html.sh: Remove getstr.
88709         * modules/getline: Depend on unlocked-io, not getstr.
88710
88711 2003-01-12  Jim Meyering  <jim@meyering.net>
88712
88713         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
88714
88715 2003-01-10  Bruno Haible  <bruno@clisp.org>
88716
88717         * modules/alloca: Change Makefile.am requirements. Simplify Include
88718         requirements. Add lib/alloca_.h to file list.
88719
88720 2003-01-10  Bruno Haible  <bruno@clisp.org>
88721
88722         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
88723
88724 2003-01-10  Bruno Haible  <bruno@clisp.org>
88725
88726         * lib/alloca_.h: New file.
88727         * lib/getdate.y: Unconditionally include alloca.h.
88728         * lib/makepath.c: Likewise.
88729         * lib/setenv.c: Likewise.
88730         * lib/userspec.c: Likewise.
88731
88732 2003-01-09  Karl Berry  <karl@gnu.org>
88733
88734         * MODULES.html.sh: include `dirname $0` in PATH, to find
88735         gnulib-tool.
88736
88737 2003-01-09  Bruno Haible  <bruno@clisp.org>
88738
88739         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88740         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88741
88742 2003-01-09  Bruno Haible  <bruno@clisp.org>
88743
88744         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
88745
88746 2003-01-09  Bruno Haible  <bruno@clisp.org>
88747
88748         * lib/stdbool.h.in: New file.
88749
88750 2003-01-09  Bruno Haible  <bruno@clisp.org>
88751
88752         * gnulib-tool (func_all_modules): Ignore files ending in ~.
88753         * MODULES.html.sh: Likewise.
88754
88755 2003-01-08  Jim Meyering  <jim@meyering.net>
88756
88757         * lib/full-write.c: Undefine and define-away `const' after inclusion
88758         of errno.h, not before.  Suggestion from Bruno Haible.
88759
88760 2003-01-08  Bruno Haible  <bruno@clisp.org>
88761
88762         * modules/full-read: Depend on full-write.
88763
88764 2003-01-08  Bruno Haible  <bruno@clisp.org>
88765
88766         * lib/safe-read.c: Include specification header first, to ensure its
88767         selfcontainedness.
88768         * lib/full-write.c: Likewise.
88769
88770 2003-01-07  Jim Meyering  <jim@meyering.net>
88771
88772         * lib/full-write.c: Rework so that it may serve to define full_read,
88773         too.
88774         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
88775
88776 2003-01-07  Bruno Haible  <bruno@clisp.org>
88777
88778         * lib/strtoimax.c: Include <stdint.h> as an alternative to
88779         <inttypes.h>.
88780         * lib/xstrtol.h: Likewise.
88781         * lib/xstrtoimax.c: Likewise.
88782         * lib/xstrtoumax.c: Likewise.
88783         * lib/human.h: Likewise.
88784
88785         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
88786         on systems that have <inttypes.h> but not <stdint.h>.
88787
88788 2003-01-07  Bruno Haible  <bruno@clisp.org>
88789
88790         * MODULES.html.sh: Add copyright notice.
88791         (missed_files): Omit CVS directory entries.
88792         (func_module): Make it work with sed-3.02.
88793         * MODULES.txt: Remove file.
88794
88795 2003-01-06  Jim Meyering  <jim@meyering.net>
88796
88797         * lib/version-etc.c: Update year in translatable copyright string.
88798
88799 2003-01-03  Karl Berry  <karl@gnu.org>
88800
88801         * config/config.{guess,sub}: update from prep.
88802
88803 2003-01-02  Karl Berry  <karl@gnu.org>
88804
88805         * doc/COPYING.DOC: belatedly updated to 1.2.
88806
88807 2003-01-01  Karl Berry  <karl@gnu.org>
88808
88809         * gnulib-tool (func_verify_module): report module name $module in
88810         error message, not $1.
88811         * gnulib-tool (create-testdir): don't complain if destdir couldn't
88812         be created, only if it doesn't exist.
88813         * gnulib-tool (last_checkin_date): don't expand the $Date here.
88814
88815 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88816
88817         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
88818
88819 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88820
88821         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
88822         memcmp if strcoll doesn't work.
88823
88824 2002-12-31  Bruno Haible  <bruno@clisp.org>
88825
88826         * lib/utime.c (utime_null): No need to call ftruncate if the file was
88827         nonempty.
88828
88829 2002-12-31  Bruno Haible  <bruno@clisp.org>
88830
88831         * lib/memcoll.c (STRCOLL): New macro.
88832         (memcoll): Use it.
88833
88834 2002-12-31  Bruno Haible  <bruno@clisp.org>
88835
88836         * lib/localcharset.h: New file.
88837         * lib/localcharset.c: Include it.
88838         * lib/unicodeio.c: Likewise.
88839
88840 2002-12-31  Bruno Haible  <bruno@clisp.org>
88841
88842         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
88843         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
88844
88845 2002-12-31  Bruno Haible  <bruno@clisp.org>
88846
88847         * lib/getline.h: Include <stddef.h>, for size_t.
88848
88849         * lib/unicodeio.h: Include <stddef.h>, for size_t.
88850         * lib/unicodeio.c: Don't include <stddef.h>.
88851
88852 2002-12-31  Bruno Haible  <bruno@clisp.org>
88853
88854         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
88855         HAVE_TM_ZONE.
88856
88857 2002-12-24  Karl Berry  <karl@gnu.org>
88858
88859         * config/config.guess: update from prep.
88860
88861 2002-12-24  Bruno Haible  <bruno@clisp.org>
88862
88863         General infrasructure.
88864         * m4/README: Rewritten.
88865         * m4/onceonly.m4: New file.
88866         * m4/onceonly_2_57.m4: New file.
88867
88868         Module atexit.
88869         * m4/atexit.m4: New file.
88870
88871         Module strtod.
88872         * m4/strtod.m4: New file.
88873
88874         Module strtol.
88875         * m4/strtol.m4: New file.
88876
88877         Module strtoul.
88878         * m4/strtoul.m4: New file.
88879
88880         Module memchr.
88881         * m4/memchr.m4: New file.
88882
88883         Module memcmp.
88884         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
88885         (jm_FUNC_MEMCMP): Invoke it.
88886
88887         Module memcpy.
88888         * m4/memcpy.m4: New file.
88889
88890         Module memmove.
88891         * m4/memmove.m4: New file.
88892
88893         Module memset.
88894         * m4/memset.m4: New file.
88895
88896         Module strcspn.
88897         * m4/strcspn.m4: New file.
88898
88899         Module strpbrk.
88900         * m4/strpbrk.m4: New file.
88901
88902         Module strstr.
88903         * m4/strstr.m4: New file.
88904
88905         Module strerror.
88906         * m4/strerror.m4: New file.
88907
88908         Module mktime.
88909         * m4/mktime.m4: Renamed from jm-mktime.m4.
88910         (gl_PREREQ_MKTIME): New macro.
88911         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
88912
88913         Module malloc.
88914         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
88915         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
88916         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
88917
88918         Module realloc.
88919         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
88920         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
88921         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
88922
88923         Module strftime.
88924         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
88925         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
88926         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
88927         gl_TM_GMTOFF.
88928         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
88929
88930         Module xalloc.
88931         * m4/xalloc.m4: New file.
88932
88933         Module alloca.
88934         * m4/alloca.m4: New file.
88935
88936         Module putenv.
88937         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88938         (jm_FUNC_PUTENV): Invoke it.
88939
88940         Module setenv.
88941         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
88942         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
88943         when invoked twice.
88944         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
88945         gt_FUNC_SETENV.
88946
88947         Module memrchr.
88948         * m4/memrchr.m4: New file.
88949
88950         Module stpcpy.
88951         * m4/stpcpy.m4: New file.
88952
88953         Module strcase.
88954         * m4/strcase.m4: New file.
88955
88956         Module strdup.
88957         * m4/strdup.m4: New file.
88958
88959         Module strnlen.
88960         * m4/strnlen.m4: New file.
88961
88962         Module strndup.
88963         * m4/strndup.m4: New file.
88964
88965         Module xstrtod.
88966         * m4/xstrtod.m4: New file.
88967
88968         Module xstrtol.
88969         * m4/xstrtol.m4: New file.
88970
88971         Module getdate.
88972         * m4/getdate.m4: New file.
88973
88974         Module unlocked-io.
88975         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88976         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88977         * m4/jm-glibc-io.m4n: Remove file.
88978
88979         Module long-options.
88980         * m4/long-options.m4: New file.
88981
88982         Module md5.
88983         * m4/md5.m4: New file.
88984
88985         Module sha.
88986         * m4/sha.m4: New file.
88987
88988         Module getstr.
88989         * m4/getstr.m4: New file.
88990
88991         Module getline.
88992         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88993         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88994         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88995         simply getline. Infoke gl_PREREQ_GETLINE.
88996
88997         Module obstack.
88998         * m4/obstack.m4: New file.
88999
89000         Module hash.
89001         * m4/hash.m4: New file.
89002
89003         Module readtokens.
89004         * m4/readtokens.m4: New file.
89005
89006         Module strverscmp.
89007         * m4/strverscmp.m4: New file.
89008
89009         Module stdbool.
89010         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89011         OSF/1.
89012
89013         Module strtoll.
89014         * m4/strtoll.m4: New file.
89015
89016         Module strtoull.
89017         * m4/strtoull.m4: New file.
89018
89019         Module strtoimax.
89020         * m4/strtoimax.m4: New file.
89021
89022         Module strtoumax.
89023         * m4/strtoumax.m4: New file.
89024
89025         Module xstrtoimax.
89026         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89027         jm_AC_PREREQ_XSTRTOIMAX.
89028         Moved the strtol prerequisites to strtol.m4.
89029         Moved the strtoll prerequisites to strtoll.m4.
89030         Moved the strtoimax prerequisites to strtoimax.m4.
89031
89032         Module xstrtoumax.
89033         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89034         jm_AC_PREREQ_XSTRTOUMAX.
89035         Moved the strtoul prerequisites to strtoul.m4.
89036         Moved the strtoull prerequisites to strtoull.m4.
89037         Moved the strtoumax prerequisites to strtoumax.m4.
89038
89039         Module chown.
89040         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89041         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89042
89043         Module dup2.
89044         * m4/dup2.m4: New file.
89045
89046         Module ftruncate.
89047         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89048         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89049
89050         Module getgroups.
89051         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89052         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89053
89054         Module gettimeofday.
89055         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89056         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89057         gl_PREREQ_GETTIMEOFDAY.
89058
89059         Module mkdir.
89060         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89061         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89062
89063         Module mkstemp.
89064         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89065         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89066         jm_AC_TYPE_UINTMAX_T.
89067         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89068
89069         Module stat.
89070         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89071         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89072
89073         Module lstat.
89074         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89075         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89076
89077         Module timespec.
89078         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89079         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89080         * m4/st_mtim.m4: Indentation.
89081
89082         Module nanosleep.
89083         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89084         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89085         gl_PREREQ_NANOSLEEP.
89086
89087         Module regex.
89088         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89089         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89090         (gl_REGEX): New macro.
89091
89092         Module rename.
89093         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89094         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89095
89096         Module rmdir.
89097         * m4/rmdir.m4: New file.
89098
89099         Module utime.
89100         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89101         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89102         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89103
89104         Module dirname.
89105         * m4/dirname.m4: New file.
89106
89107         Module getopt.
89108         * m4/getopt.m4: New file.
89109
89110         Module unistd-safer.
89111         * m4/unistd-safer.m4: New file.
89112
89113         Module fnmatch.
89114         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89115         declaration.
89116         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89117         (gl_FUNC_FNMATCH_POSIX): New macro.
89118         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89119         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89120         simply fnmatch.
89121
89122         Module exclude.
89123         * m4/exclude.m4: New file.
89124
89125         Module human.
89126         * m4/human.m4: New file.
89127
89128         Module acl.
89129         * m4/acl.m4: Nop.
89130
89131         Module backupfile.
89132         * m4/backupfile.m4: New file.
89133         * m4/d-ino.m4: Indentation.
89134
89135         Module fsusage.
89136         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89137         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89138         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89139
89140         Module dirfd.
89141         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89142         requirements.
89143
89144         Module euidaccess.
89145         * m4/euidaccess.m4: New file.
89146
89147         Module file-type.
89148         * m4/file-type.m4: New file.
89149
89150         Module fileblocks.
89151         * m4/fileblocks.m4: New file.
89152
89153         Module filemode.
89154         * m4/filemode.m4: New file.
89155
89156         Module isdir.
89157         * m4/isdir.m4: New file.
89158
89159         Module lchown.
89160         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89161         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89162
89163         Module makepath.
89164         * m4/makepath.m4: New file.
89165
89166         Module modechange.
89167         * m4/modechange.m4: New file.
89168
89169         Module mountlist.
89170         * m4/mountlist.m4: New file.
89171         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89172         Indentation.
89173
89174         Module path-concat.
89175         * m4/path-concat.m4: New file.
89176
89177         Module pathmax.
89178         * m4/pathmax.m4: New file.
89179
89180         Module same.
89181         * m4/same.m4: New file.
89182
89183         Module save-cwd.
89184         * m4/save-cwd.m4: New file.
89185
89186         Module savedir.
89187         * m4/savedir.m4: New file.
89188
89189         Module xgetcwd.
89190         * m4/xgetcwd.m4: New file.
89191         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89192
89193         Module xreadlink.
89194         * m4/xreadlink.m4: New file.
89195
89196         Module safe-read.
89197         * m4/safe-read.m4: New file.
89198
89199         Module safe-write.
89200         * m4/safe-write.m4: New file.
89201
89202         Module closeout.
89203         * m4/closeout.m4: New file.
89204
89205         Module stdio-safer.
89206         * m4/stdio-safer.m4: New file.
89207
89208         Module getpass.
89209         * m4/getpass.m4: New file.
89210
89211         Module getugroups.
89212         * m4/getugroups.m4: New file.
89213
89214         Module group-member.
89215         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89216         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89217
89218         Module idcache.
89219         * m4/idcache.m4: New file.
89220
89221         Module userspec.
89222         * m4/userspec.m4: New file.
89223
89224         Module gettime.
89225         * m4/clock_time.m4: New file.
89226         * m4/gettime.m4: New file.
89227
89228         Module settime.
89229         * m4/settime.m4: New file.
89230
89231         Module posixtm.
89232         * m4/posixtm.m4: New file.
89233
89234         Module gethostname.
89235         * m4/gethostname.m4: New file.
89236
89237         Module canon-host.
89238         * m4/canon-host.m4: New file.
89239
89240         Module gettext.
89241         * m4/codeset.m4: New file, from gettext-0.11.5.
89242         * m4/gettext.m4: New file, from gettext-0.11.5.
89243         * m4/glibc21.m4: New file, from gettext-0.11.5.
89244         * m4/iconv.m4: New file, from gettext-0.11.5.
89245         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89246         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89247         * m4/inttypes.m4: New file, from gettext-0.11.5.
89248         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89249         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89250         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89251         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89252         * m4/lib-link.m4: New file, from gettext-0.11.5.
89253         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89254         * m4/progtest.m4: New file, from gettext-0.11.5.
89255         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89256         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89257         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89258
89259         Module localcharset.
89260         * m4/localcharset.m4: New file.
89261
89262         Module hard-locale.
89263         * m4/hard-locale.m4: New file.
89264
89265         Module mbswidth.
89266         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89267         onceonly macros.
89268         * m4/mbrtowc.m4: Add comment.
89269
89270         Module memcasecmp.
89271         * m4/memcasecmp.m4: New file.
89272
89273         Module memcoll.
89274         * m4/memcoll.m4: New file.
89275
89276         Module unicodeio.
89277         * m4/unicodeio.m4: New file.
89278
89279         Module rpmatch.
89280         * m4/rpmatch.m4: New file.
89281
89282         Module yesno.
89283         * m4/yesno.m4: New file.
89284
89285         Module exitfail.
89286         * m4/exitfail.m4: New file.
89287
89288         Module c-stack.
89289         * m4/c-stack.m4 (gl_C_STACK): New macro.
89290         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89291
89292         Module error.
89293         * m4/error.m4 (gl_ERROR): New macro.
89294         (jm_PREREQ_ERROR): Use onceonly macros.
89295
89296         Module fatal.
89297         * m4/fatal.m4: New file.
89298
89299         Module getloadavg.
89300         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89301         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89302
89303         Module getpagesize.
89304         * m4/getpagesize.m4: New file.
89305
89306         Module getusershell.
89307         * m4/getusershell.m4: New file.
89308
89309         Module physmem.
89310         * m4/physmem.m4: New file.
89311
89312         Module posixver.
89313         * m4/posixver.m4: New file.
89314
89315         Module quotearg.
89316         * m4/quotearg.m4: New file.
89317
89318         Module quote.
89319         * m4/quote.m4: New file.
89320
89321         Module readutmp.
89322         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89323
89324         Module sig2str.
89325         * m4/sig2str.m4: New file.
89326
89327         Other.
89328         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89329         ulonglong.m4.
89330         * m4/intmax_t.m4: New file.
89331         * m4/d-type.m4: Indentation.
89332         * m4/jm-macros.m4: Update.
89333         * m4/prereq.m4 (jm_PREREQ): Update.
89334         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89335         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89336         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89337         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89338         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89339         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89340         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89341         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89342         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89343         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89344         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89345         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89346         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89347         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89348         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89349         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89350         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89351         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89352         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89353
89354 2002-12-24  Bruno Haible  <bruno@clisp.org>
89355
89356         * MODULES.txt: Update according to m4/ changes.
89357
89358         Module gettext.
89359         * config.rpath: New file, from gettext-0.11.5.
89360
89361         * modules/*: New module descriptions.
89362         * gnulib-tool: New file.
89363         * MODULES.html.sh: New file.
89364
89365 2002-12-21  Karl Berry  <karl@gnu.org>
89366
89367         * doc/fdl.texi: update to version 1.2.
89368
89369 2002-12-19  Karl Berry  <karl@gnu.org>
89370
89371         * config/config.guess: update from prep.
89372
89373 2002-12-18  Bruno Haible  <bruno@clisp.org>
89374
89375         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89376         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89377
89378 2002-12-17  Bruno Haible  <bruno@clisp.org>
89379
89380         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89381         stdlib.h, string.h.
89382
89383 2002-12-17  Bruno Haible  <bruno@clisp.org>
89384
89385         * lib/canon-host.c (strdup): Remove unused declaration.
89386
89387         * lib/fsusage.c: Include full_read.h.
89388         (get_fs_usage): Use full_read instead of safe_read.
89389
89390         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89391
89392 2002-12-12  Karl Berry  <karl@gnu.org>
89393
89394         * config/config.guess: update from prep.
89395
89396 2002-12-11  Bruno Haible  <bruno@clisp.org>
89397
89398         * m4/setenv.m4: New file, from gettext-0.11.5.
89399
89400 2002-12-11  Bruno Haible  <bruno@clisp.org>
89401
89402         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89403         not unsetenv().
89404         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89405         modifications:
89406
89407         2002-12-11  Bruno Haible  <bruno@clisp.org>
89408
89409                 * setenv.c (alloca): Fall back to malloc.
89410                 (freea): New macro.
89411                 (setenv): Use freea() to free memory allocated with alloca().
89412
89413         2002-11-13  Bruno Haible  <bruno@clisp.org>
89414
89415                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89416                 function declarations.
89417                 * unsetenv.c (unsetenv): Likewise.
89418
89419         2002-03-04  Bruno Haible  <bruno@clisp.org>
89420
89421                 Portability to AIX 4.3.3.
89422                 * unsetenv.c: New file, extracted from setenv.c.
89423                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89424
89425         2001-12-20  Bruno Haible  <bruno@clisp.org>
89426
89427                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89428                 use malloc instead. For SunOS 4.
89429
89430         2001-12-11  Bruno Haible  <bruno@clisp.org>
89431
89432                 * setenv.c: Declare alloca.
89433                 (compar_fn_t): New typedef.
89434                 (KNOWN_VALUE, STORE_VALUE): Use it.
89435
89436         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89437         setenv.h.
89438
89439 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89440
89441         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89442         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89443         Choose values that are less likely to collide with system fnmatch
89444         options.
89445         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89446         defined (e.g., a pure POSIX system).
89447         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89448         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89449
89450 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89451
89452         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89453         a pain in practice to deal with generated m4 files.  This change
89454         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89455
89456         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89457         and jm-glibc-io.m4, as they are no longer a special case.
89458         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89459         kludge and the auto-generation stuff.  Check only whether the
89460         functions are declared, not whether they exist, since older hosts
89461         that don't declare the functions can't use the optimization anyway.
89462
89463 2002-12-06  Jim Meyering  <jim@meyering.net>
89464
89465         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89466
89467         Merge in changes from libc's misc/error.c, in preparation
89468         for the merge of gnulib's changes back into libc.
89469
89470         * lib/error.c (_): Define only if not already defined.
89471         Move definition to follow all #include directives.
89472         Include unlocked-io.h only if !_LIBC.
89473         [_LIBC]: Include <libio/libioP.h>.
89474         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89475         (fflush): Tweak definition to use INTUSE.
89476         (putc): Define.
89477
89478 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89479
89480         * lib/alloca.c [defined emacs]: Include "lisp.h".
89481         (xalloc_die) [defined emacs]: New macro.
89482         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89483         [! defined emacs]: Include <xalloc.h>.
89484         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89485         (pointer): Typedef to POINTER_TYPE *.
89486         (malloc): Remove decl; we now always use xmalloc.
89487         (alloca): Use old-style definition, since Emacs needs this.
89488         Check for arithmetic overflow when computing combined size.
89489
89490 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89491
89492         Do not generate unlocked-io.h automatically, since it's easier to
89493         maintain it by hand.
89494
89495         * lib/unlocked-io.h: New file, from GNU diffutils,
89496         but with proper copyright notice and attribution.
89497         * lib/gen-uio: Remove.
89498         * lib/Makefile.am: Add copyright notice.
89499         (libfetish_a_SOURCES): Add unlocked-io.h.
89500         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89501         (DISTCLEANFILES, io_functions): Remove macros.
89502         (EXTRA_DIST): Remove gen_uio.
89503         (unlocked-io.h): Remove rule.
89504
89505 2002-12-04  Jim Meyering  <jim@meyering.net>
89506
89507         Reflect the fact that stat.c and lstat.c are no longer generated.
89508         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89509         (DISTCLEANFILES): Likewise.
89510         (EXTRA_DIST): Likewise.
89511         (all_local): Don't depend on stat.c or lstat.c.
89512         (stat.c, lstat.c): Remove rules.
89513         (EXTRA_DIST): Remove xstat.in.
89514
89515         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89516         * lib/stat.c: New file.  Contents mostly from xstat.in.
89517         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89518         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89519
89520         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89521         too.
89522         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89523
89524 2002-12-03  Jim Meyering  <jim@meyering.net>
89525
89526         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89527         but not semantics, to minimize the differences between these two files.
89528         (safe_read): Change comment to mention SAFE_READ_ERROR.
89529
89530         * lib/safe-read.c (IS_EINTR): Define.
89531         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89532
89533 2002-12-02  Jim Meyering  <jim@meyering.net>
89534
89535         * lib/safe-read.c (EINTR): Define.
89536         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89537         (INT_MAX): Provide fallback.
89538         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89539
89540         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89541
89542 2002-12-02  Bruno Haible  <bruno@clisp.org>
89543
89544         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89545         Define, taken from safe-read.c.
89546         (INT_MAX): Provide fallback.
89547         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89548         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89549
89550         * lib/safe-read.c (EINTR): Remove definition.
89551         (safe_read): Don't use EINTR if it is absent.
89552
89553 2002-12-01  Jim Meyering  <jim@meyering.net>
89554
89555         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89556         zero.
89557         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89558
89559 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89560
89561         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89562         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89563         with `if (! (value < limit)) abort ();', for readability.
89564
89565 2002-11-26  Karl Berry  <karl@gnu.org>
89566
89567         * lib/strdup.c: copy from libc again, with jim's ok.
89568         * lib/.cppi-disable: re-add strdup.c
89569
89570 2002-11-25  Karl Berry  <karl@gnu.org>
89571
89572         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89573         instead of "strtol.c".
89574
89575 2002-11-25  Karl Berry  <karl@gnu.org>
89576
89577         * config/install-sh: update from automake for variable quoting, $0 in
89578         error msgs, etc.
89579
89580         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89581         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89582         entry.
89583
89584 2002-11-25  Jim Meyering  <jim@meyering.net>
89585
89586         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89587
89588 2002-11-24  Karl Berry  <karl@gnu.org>
89589
89590         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89591         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89592
89593 2002-11-24  Jim Meyering  <jim@meyering.net>
89594
89595         Update from coreutils:
89596
89597         * lib/mktime.c: Merge in changes from libc.
89598
89599         Avoid a link-time failure on some Linux systems.
89600         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
89601         (otherwise).
89602         (__mon_yday): Declare with the STATIC attribute.
89603         (__mktime_internal): Likewise.
89604         Based on a report from Greg Schafer.
89605
89606 2002-11-23  Jim Meyering  <jim@meyering.net>
89607
89608         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
89609         Use `unsigned', not `int', as type of index.
89610
89611         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
89612
89613         * lib/fsusage.c: Remove unneeded parentheses around operands of
89614         `defined'.
89615
89616 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89617
89618         * lib/quotearg.h: Allow multiple inclusion by surrounding with
89619         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
89620         so that we can be included first.
89621         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
89622         * lib/quotearg.c: Include quotearg.h immediately after config.h.
89623         No need to include stddef.h or sys/types.h any more.
89624         Surround local include files with "", not "<>".
89625         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
89626         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
89627         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
89628         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
89629         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89630         (ISPRINT): Remove; no longer needed now that we assume C89.
89631
89632         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
89633         Preserve errno.
89634
89635         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
89636         quotearg_char): Use SIZE_MAX rather than
89637         (size_t) -1 when we are talking about "infinity".
89638
89639         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
89640
89641 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89642
89643         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
89644         hint that one should use `if (! x) abort ();' rather than `assert
89645         (x);', and anyway it's one less thing to worry about configuring.
89646         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
89647         hash_rehash, hash_insert): Use abort rather than assert.
89648
89649 2002-11-22  Bruno Haible  <bruno@clisp.org>
89650
89651         * lib/safe-read.h: Assume C89. Add comments.
89652         (safe_read): Change return type to size_t.
89653         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
89654         byte counts > SSIZE_MAX correctly.
89655         * lib/safe-write.h: New file.
89656         * lib/safe-write.c: New file.
89657         * lib/full-read.h: New file.
89658         * lib/full-read.c: New file.
89659         * lib/full-write.h: Assume C89. Add comments.
89660         * lib/full-write.c: Include safe-write.h.
89661         (full_write): Rewritten to use safe_write.
89662         Suggested by Jim Meyering and Paul Eggert.
89663
89664 2002-11-21  Jim Meyering  <jim@meyering.net>
89665
89666         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
89667
89668         Merge in changes from the coreutils.
89669
89670         2002-09-25  Paul Eggert  <eggert@twinsun.com>
89671         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
89672         <stdint.h>.
89673         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
89674         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
89675         int.  Work more efficiently if X is the same width as uintmax_t.
89676         Do not compare X to -1, to avoid bogus compiler warning.
89677         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
89678         Don't assume that f_frsize and f_bsize are the same type.
89679
89680         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
89681         warning on FreeBSD.
89682
89683         * lib/makepath.c (make_path): Restore umask *before* creating the final
89684         component.
89685         (make_path): Minor reformatting.
89686
89687         * lib/xmalloc.c: Adjust to work with new autoconf macros,
89688         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
89689         HAVE_MALLOC/HAVE_REALLOC.
89690
89691         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
89692         dummy ones.  At least on GNU/Linux systems, `auto' means something
89693         else.
89694         From Michael Stone.
89695
89696 2002-11-21  Bruno Haible  <bruno@clisp.org>
89697
89698         Remove case insensitive option matching.
89699         * lib/argmatch.h (argcasematch): Remove declaration.
89700         (ARGCASEMATCH): Remove macro.
89701         (__xargmatch_internal): Remove case_sensitive argument.
89702         (XARGMATCH): Update.
89703         (XARGCASEMATCH): Remove macro.
89704         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
89705         case_sensitive argument.
89706         (argcasematch): Remove function.
89707         (__xargmatch_internal): Remove case_sensitive argument.
89708         (main): Use XARGMATCH instead of XARGCASEMATCH.
89709
89710         * lib/xmalloc.c: Change compile-time error message. Add comment about
89711         required autoconf version.
89712
89713 2002-11-20  Paul Eggert  <eggert@twinsun.com>
89714
89715         Merge argmatch cleanups from Bison.  Assume C89.
89716
89717         * lib/argmatch.c: Include config.h here, not in argmatch.h.
89718         Include stdlib.h, for EXIT_FAILURE.
89719         Always include <string.h>, since we assume C89.
89720         (EXIT_FAILURE): Remove pre-C89 bug workaround.
89721         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
89722         Include <stddef.h> instead, since it's all we need for size_t.
89723         (PARAMS): Remove.  All uses removed.
89724         (ARRAY_CARDINALITY): Do not bother to #undef.
89725         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
89726         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89727         Remove unnecessary parentheses.
89728         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89729         Insert necessary parentheses.
89730         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
89731         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
89732
89733 2002-11-19  Bruno Haible  <bruno@clisp.org>
89734
89735         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
89736         * lib/mbswidth.h: Include <stddef.h>, for size_t.
89737
89738         * lib/mbswidth.h (PARAMS): Remove macro.
89739         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89740         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89741
89742         * lib/gcd.h (PARAMS): Remove macro.
89743         (gcd): Use ANSI C function declarations.
89744         * lib/gcd.c (gcd): Likewise.
89745
89746 2002-11-15  Bruno Haible  <bruno@clisp.org>
89747
89748         * lib/strcspn.c: Include <stddef.h>.
89749         (strcspn): Use ANSI C function declaration. Change return type to
89750         size_t. Use NULL.
89751         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
89752         (strpbrk): Use NULL.
89753         * lib/strpbrk.h (PARAMS): Remove macro.
89754         (strpbrk): Use ANSI C function declaration.
89755         * lib/strstr.c: Don't include <sys/types.h>.
89756         * lib/strstr.h (PARAMS): Remove macro.
89757         (strstr): Use ANSI C function declarations.
89758
89759 2002-11-14  Karl Berry  <karl@gnu.org>
89760
89761         * config/mkinstalldirs: `do' on separate line, instead of
89762         `for var; do'.
89763
89764 2002-11-06  Bruno Haible  <bruno@clisp.org>
89765
89766         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
89767         * lib/gcd.c (gcd): Likewise.
89768
89769 2002-11-05  Bruno Haible  <bruno@clisp.org>
89770
89771         * lib/gcd.h: New file, from gettext-0.11.5.
89772         * lib/gcd.c: New file, from gettext-0.11.5.
89773
89774 2002-11-05  Bruno Haible  <bruno@clisp.org>
89775
89776         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89777         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89778         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89779         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89780
89781         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
89782         <libintl.h>.
89783         * lib/makepath.c: Include gettext.h instead of <locale.h> and
89784         <libintl.h>.
89785
89786         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
89787         * lib/human.c: Include gettext.h instead of <libintl.h>.
89788         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
89789         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
89790         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
89791         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
89792         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
89793         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
89794         (textdomain): Remove definition.
89795         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
89796
89797         * lib/long-options.c: Remove include of <libintl.h> and definition of
89798         _.
89799         * lib/same.c: Remove include of <libintl.h> and definition of _.
89800
89801 2002-11-04  Owen Taylor  <otaylor@redhat.com>
89802
89803         * lib/config.charset: A few additions for Solaris.
89804
89805 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89806
89807         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
89808         * lib/localcharset.c (locale_charset): Declare as extern "C".
89809
89810 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89811
89812         * lib/config.charset: msdos in uk_UA uses CP1125.
89813
89814 2002-11-04  Bruno Haible  <bruno@clisp.org>
89815
89816         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
89817         * lib/strcase.h: New file, from GNU gettext-0.11.5.
89818         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
89819         * lib/strstr.h: New file, from GNU gettext-0.11.5.
89820         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
89821
89822 2002-11-04  Bruno Haible  <bruno@clisp.org>
89823
89824         * lib/localcharset.c (locale_charset): Don't return an empty string.
89825
89826 2002-11-04  Bruno Haible  <bruno@clisp.org>
89827
89828         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
89829         aliases.
89830
89831 2002-11-04  Bruno Haible  <bruno@clisp.org>
89832
89833         * lib/config.charset: Update for newest glibc. Add canonical names
89834         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
89835
89836 2002-11-04  Bruno Haible  <bruno@clisp.org>
89837
89838         * lib/config.charset: Add support for NetBSD.
89839
89840 2002-11-04  Bruno Haible  <bruno@clisp.org>
89841
89842         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
89843
89844 2002-11-01  Bruno Haible  <bruno@clisp.org>
89845
89846         * configure.in: Add AC_CONFIG_AUX_DIR call.
89847         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
89848         test/Makefile.
89849         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
89850
89851 2002-09-28  Karl Berry  <karl@gnu.org>
89852
89853         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
89854         installed automake until the next release, since changes have been
89855         made.
89856
89857 2002-09-25  Karl Berry  <karl@gnu.org>
89858
89859         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
89860         * lib/getopt*: copy from libc/posix.
89861         * lib/gettext.h: copy from gettext.
89862         * lib/.cppi-disable: add strdup.c, gettext.h.
89863
89864 2002-09-25  Karl Berry  <karl@gnu.org>
89865
89866         * config/srclist.txt: enable gettext.h check.
89867         * config/config.{guess,sub}: update from prep.
89868         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
89869                 from automake 1.6.3.
89870         See srclist*.
89871
89872 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
89873
89874         * regex.c (PATFETCH): Remove the translating fetch.
89875         (PATFETCH_RAW): Rename to PATFETCH.
89876         (set_image_of_range): New fun.
89877         (SET_RANGE_TABLE_WORK_AREA): Use it.
89878         (regex_compile): Don't translate the pattern chars so eagerly.
89879         Only do it when inserting an `exactn' bytecode or when handling
89880         a char-range.
89881         (mutually_exclusive_p): Avoid empty statement.
89882
89883 2002-07-06  Jim Meyering  <meyering@lucent.com>
89884
89885         * m4/README: Don't mention Makefile.am.in.
89886         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
89887
89888 2002-07-01  Jim Meyering  <meyering@lucent.com>
89889
89890         * lib/c-stack.c: Include sys/time.h.
89891         From Volker Borchert.
89892
89893 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89894
89895         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
89896
89897 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89898
89899         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
89900         New macro.  Use it uniformly instead of
89901         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
89902         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
89903         reported by Vin Shelton.
89904
89905 2002-06-22  Paul Eggert  <eggert@twinsun.com>
89906
89907         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
89908         Do not assume SA_SIGINFO behavior.
89909         Bug reported by Jim Meyering on NetBSD 1.5.2.
89910
89911 2002-06-22  Jim Meyering  <meyering@lucent.com>
89912
89913         * m4/c-stack.m4: New file, from diffutils-2.8.2.
89914         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
89915
89916         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
89917         now that configure.ac uses AC_GNU_SOURCE.
89918         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
89919         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
89920
89921         Update to latest tools.  Suggestions from Paul Eggert.
89922         * m4/stdbool.m4: New file, from diffutils-2.8.2.
89923         * m4/gnu-source.m4: Update from diffutils-2.8.2.
89924         * m4/fnmatch.m4: Likewise.
89925         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
89926         to AC_HEADER_STDBOOL
89927
89928 2002-06-22  Jim Meyering  <meyering@lucent.com>
89929
89930         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
89931         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
89932
89933 2002-06-22  Jim Meyering  <meyering@lucent.com>
89934
89935         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
89936
89937         * lib/exitfail.c, exitfail.h: Likewise.
89938         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
89939
89940         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
89941         of fnmatch.h.
89942         (EXTRA_DIST): Add fnmatch_loop.c.
89943         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
89944
89945         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
89946         * lib/fnmatch.c: Update from diffutils-2.8.2.
89947         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89948         * lib/fnmatch.h: Remove file.
89949
89950 2002-06-21  Jim Meyering  <meyering@lucent.com>
89951
89952         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89953         * m4/mbrtowc.m4: Likewise.
89954
89955         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89956         * m4/mbswidth.m4: Reflect name change:
89957         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89958         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89959
89960         * m4/lib-link.m4: Update from gettext-0.11.2.
89961         * m4/gettext.m4: Likewise.
89962
89963         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89964         From Alfred M. Szmidt.
89965
89966 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89967
89968         * lib/file-type.h: Report an error if neither S_ISREG nor
89969         S_IFREG is defined, instead of using a test specific to glibc
89970         2.2.  This should be safe, since POSIX requires S_ISREG and
89971         Unix Version 7 had S_IFREG.  We don't need to check for
89972         <sys/types.h> since we don't use any symbols that it defines.
89973
89974 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89975
89976         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89977         $@-t, so that each temporary file name is unique and valid in the first
89978         8 characters, for operation under DOS.
89979
89980 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89981
89982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89983
89984 2002-06-15  Jim Meyering  <meyering@lucent.com>
89985
89986         Work even with DJGPP 2.03, which lacks support for symlinks.
89987         From Richard Dawe.
89988         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89989         is defined.
89990         * lib/lchown.c (S_ISLNK): Likewise.
89991
89992 2002-06-15  Jim Meyering  <meyering@lucent.com>
89993
89994         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89995         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89996         have been included before this file.
89997
89998 2002-06-14  Jim Meyering  <meyering@lucent.com>
89999
90000         * lib/file-type.h: Use the version from diffutils-2.8.2.
90001         * lib/file-type.c: Likewise.
90002
90003 2002-06-07  Jim Meyering  <meyering@lucent.com>
90004
90005         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90006         They're needed at least for NetBSD 1.5.2.
90007         ($statxfs_includes): Include those same headers.
90008         ($statxfs_includes): Include sys/vfs.h if available.
90009         ($statxfs_includes): Likewise for sys/statvfs.h.
90010         Check for the following members in both structs statfs and statvfs:
90011         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90012
90013 2002-06-01  Jim Meyering  <meyering@lucent.com>
90014
90015         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90016         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90017
90018 2002-05-28  Jim Meyering  <meyering@lucent.com>
90019
90020         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90021         Reported by Volker Borchert.
90022
90023 2002-05-27  Jim Meyering  <meyering@lucent.com>
90024
90025         Fix a problem seen only on nonconforming systems whereby ls.c's
90026         use of localtime, and then of gettimeofday would cause trouble:
90027         the localtime call used to initialize rpl_gettimeofday's save
90028         mechanism would clobber ls's current local time information so
90029         that in any long listing the first file would always be listed
90030         with date 1970-01-01.  Analysis by Volker Borchert.
90031
90032         * lib/gettimeofday.c (localtime): Undefine.
90033         (rpl_localtime): New function.
90034
90035 2002-05-27  Jim Meyering  <meyering@lucent.com>
90036
90037         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90038         localtime.
90039
90040         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90041         use the replacement function; it wouldn't resolve at link time.
90042         Reported by Volker Borchert.
90043
90044 2002-05-22  Jim Meyering  <meyering@lucent.com>
90045
90046         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90047         file-type.h.
90048         * lib/file-type.h: New file.
90049         * lib/file-type.c (file_type): New file/function.  Extracted from
90050         diffutils.
90051
90052 2002-04-30  Jim Meyering  <meyering@lucent.com>
90053
90054         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90055
90056 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90057
90058         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90059
90060 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90061
90062         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90063         Do not check for alloca.h (no longer used) or stdbool.h (was never
90064         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90065
90066 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90067
90068         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90069
90070 2002-04-29  Jim Meyering  <meyering@lucent.com>
90071
90072         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90073         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90074         Use AC_FUNC_STRNLEN here instead.
90075
90076         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90077         With autoconf-2.53a, it's part of AC_PROG_CC.
90078
90079 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90080
90081         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90082         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90083
90084 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90085
90086         * lib/sig2str.h, lib/sig2str.c: New files.
90087         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90088
90089 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90090
90091         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90092         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90093         of 127, since 64 is the largest conceivable number for ancient
90094         nonstandard hosts.
90095         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90096
90097 2002-04-28  Jim Meyering  <meyering@lucent.com>
90098
90099         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90100
90101 2002-04-24  Jim Meyering  <meyering@lucent.com>
90102
90103         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90104         (jm_PREREQ): Use it.
90105
90106         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90107         mach/mach.h fcntl.h.
90108         Check for this function: setlocale.
90109
90110 2002-04-24  Jim Meyering  <meyering@lucent.com>
90111
90112         * lib/gettext.h: New file, from Gettext.
90113         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90114         (libfetish_a_SOURCES): Add gettext.h.
90115
90116 2002-04-16  Jim Meyering  <meyering@lucent.com>
90117
90118         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90119         ut_pid, ut_id, ut_exit.
90120
90121 2002-04-16  Jim Meyering  <meyering@lucent.com>
90122
90123         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90124         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90125         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90126
90127 2002-04-12  Jim Meyering  <meyering@lucent.com>
90128
90129         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90130         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90131         existence of the getmntinfo function.  Needed for Darwin 5.3.
90132
90133         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90134         This is necessary at least on Darwin 5.3.
90135
90136         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90137         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90138         strnlen.o in the library, and that makes some versions of ranlib
90139         object.
90140
90141 2002-04-12  Jim Meyering  <meyering@lucent.com>
90142
90143         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90144
90145 2002-04-09  Jim Meyering  <meyering@lucent.com>
90146
90147         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90148         to be more precise.  Rather than saying we're checking whether the
90149         function `works', say what we're testing.
90150         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90151         Reported by Bruno Haible.
90152
90153 2002-03-10  Jim Meyering  <meyering@lucent.com>
90154
90155         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90156         Suggestion from Santiago Vila.
90157
90158 2002-03-08  Jim Meyering  <meyering@lucent.com>
90159
90160         * lib/rename.c: Mention that this wrapper is needed also on
90161         mips-dec-ultrix4.4 systems.
90162
90163 2002-03-02  Jim Meyering  <meyering@lucent.com>
90164
90165         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90166         not HAVE_CLOCK_SETTIME.
90167
90168 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90169
90170         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90171         Check for clock_settime.
90172
90173 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90174
90175         * lib/nanosleep.h: Rename to....
90176         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90177
90178         * lib/gettime.c: New file.
90179         * lib/settime.c: New file.
90180         * lib/stime.c: Remove.
90181
90182         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90183         timespec.h.  Remove nanosleep.h.
90184
90185 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90186
90187         * m4/acl.m4: New file.
90188         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90189         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90190
90191 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90192
90193         * lib/acl.c, lib/acl.h: New files.
90194         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90195
90196 2002-02-24  Jim Meyering  <meyering@lucent.com>
90197
90198         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90199         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90200         cause trouble.  Reported by Nelson Beebe.
90201
90202 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90203
90204         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90205         compilers that don't know that xalloc_die never returns.
90206
90207 2002-02-20  Jim Meyering  <meyering@lucent.com>
90208
90209         * lib/getdate.c: Regenerate using bison-1.33.
90210
90211 2002-02-17  Jim Meyering  <meyering@lucent.com>
90212
90213         * config/config.guess (main): Don't use `head -1'; it's no longer
90214         portable. Use `sed 1q' instead.
90215
90216 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90217
90218         * m4/codeset.m4: Upgrade to gettext-0.11.
90219         * m4/gettext.m4: Upgrade to gettext-0.11.
90220         * m4/glibc21.m4: Upgrade to gettext-0.11.
90221         * m4/iconv.m4: Upgrade to gettext-0.11.
90222         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90223         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90224         * m4/lib-ld.m4: New file, from gettext-0.11.
90225         * m4/lib-link.m4: New file, from gettext-0.11.
90226         * m4/lib-prefix.m4: New file, from gettext-0.11.
90227         * m4/progtest.m4: Upgrade to gettext-0.11.
90228
90229 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90230
90231         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90232         (jm_PREREQ): Use it.
90233
90234 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90235
90236         * lib/posixver.c, lib/posixver.h: New files.
90237         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90238
90239 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90240             Bruno Haible  <bruno@clisp.org>
90241
90242         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90243         (fwrite_success_callback): New declaration.
90244         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90245         print_unicode_char. Call failure callback instead of error.
90246         (fwrite_success_callback): New function.
90247         (exit_failure_callback): New function.
90248         (fallback_failure_callback): New function.
90249         (print_unicode_char): Call unicode_to_mb.
90250
90251 2002-01-26  Jim Meyering  <meyering@lucent.com>
90252
90253         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90254         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90255
90256 2002-01-26  Jim Meyering  <meyering@lucent.com>
90257
90258         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90259
90260 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90261
90262         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90263
90264 2002-01-22  Jim Meyering  <meyering@lucent.com>
90265
90266         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90267         Otherwise, some versions of automake would omit the rule that makes
90268         Makefile from Makefile.in.
90269
90270 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90271
90272         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90273         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90274         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90275         (memcoll): Set errno to zero if there is no error.
90276
90277         * lib/quotearg.c (quotearg_buffer_restyled):
90278         Fix bug with quoting buffers containing NUL when backslashing escapes.
90279         This bug was exposed by the other changes in this patch.
90280         (quotearg_n_options): New arg ARGSIZE.
90281         All callers changed.
90282         (quoting_options_from_style): New function.
90283         (quotearg_n_style): Use it.
90284         (quotearg_n_style_mem): New function.
90285
90286         * lib/quotearg.h (quotearg_n_style_mem): New function.
90287
90288 2002-01-19  Jim Meyering  <meyering@lucent.com>
90289
90290         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90291         Remove useless quotes: DF_PROG="df".
90292         * m4/strnlen.m4: New file.
90293
90294 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90295
90296         * lib/backupfile.c (ISDIGIT): Comment fix.
90297         * lib/getdate.y (ISDIGIT): Likewise.
90298         * lib/posixtm.c (ISDIGIT, year): Likewise.
90299         * lib/strverscmp.c (ISDIGIT): Likewise.
90300         * lib/userspec.c (ISDIGIT): Likewise.
90301
90302 2002-01-16  Jim Meyering  <meyering@lucent.com>
90303
90304         * lib/getdate.y: Add three semicolons, each just before a closing
90305         brace. Bison (as of version 1.31) no longer papers over that mistake.
90306
90307 2002-01-05  Jim Meyering  <meyering@lucent.com>
90308
90309         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90310
90311 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90312
90313         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90314         not silently exit merely because the output buffer happens to
90315         have nothing pending.
90316
90317 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90318
90319         See the big note in ../ChangeLog.
90320         * lib/human.c (suffixes): Prefer K to k for 1024.
90321         (generate_suffix_backwards): New function.
90322         (human_readable_inexact): Use it.
90323         * lib/xstrtol.c (__xstrtol): If there is no number but there
90324         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90325         Accept 'K' as well as 'k'.
90326
90327 2001-12-15  Jim Meyering  <meyering@lucent.com>
90328
90329         * lib/regex.h (__restrict_arr): Update from libc.
90330
90331         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90332         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90333         (STREQ): Define.
90334
90335 2001-12-14  Jim Meyering  <meyering@lucent.com>
90336
90337         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90338         Suggestion from Bruno Haible.
90339
90340 2001-12-10  Jim Meyering  <meyering@lucent.com>
90341
90342         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90343         xrealloc, Instead, include "xalloc.h".
90344         (initbuffer): Don't cast xmalloc return value to char*.
90345         (readline): Reword comment.
90346         Don't cast xrealloc return value to char*
90347         Return NULL, not 0.
90348
90349 2001-12-09  Jim Meyering  <meyering@lucent.com>
90350
90351         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90352         about `signed and unsigned type in conditional expression'.
90353         * lib/posixtm.c (posix_time_parse): Likewise.
90354
90355         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90356
90357         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90358         to avoid a pedantic warning.
90359
90360         * lib/getstr.c: Don't include assert.h.
90361         (getstr): Remove warning-evoking assertions.
90362         Return -1 if offset parameter is out of bounds.
90363         Change the type of a local from int to size_t.
90364
90365         * lib/strftime.c (my_strftime_localtime_r): Include this function
90366         definition in the `#if ! HAVE_TM_GMTOFF' block.
90367
90368         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90369         Include xalloc.h instead.
90370
90371 2001-12-02  Jim Meyering  <meyering@lucent.com>
90372
90373         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90374         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90375         included.
90376
90377         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90378         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90379
90380 2001-11-30  Akim Demaille  <akim@epita.fr>
90381
90382         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90383         before being defined.
90384
90385 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90386
90387         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90388         First arg is int, not unsigned.
90389         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90390         (SIZE_MAX, UINT_MAX): New macros.
90391         (quotearg_n_options): Abort if N is negative.
90392         Avoid overflow check on hosts where size_t is 64 bits and int
90393         is 32 bits, as overflow is impossible there.
90394         Fix off-by-one typo that caused unnecessary reallocation.
90395
90396 2001-11-27  Jim Meyering  <meyering@lucent.com>
90397
90398         * lib/tempname.c: Merge with version from libc.
90399         * lib/regex.c: Likewise.
90400
90401         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90402         systems for which STDC_HEADERS is 0, it was not included, resulting in
90403         a warning about an integer-to-pointer conversion problem with getenv.
90404         Reported by Volker Borchert.
90405
90406 2001-11-26  Jim Meyering  <meyering@lucent.com>
90407
90408         * lib/gtod.h: Remove file.
90409         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90410         * lib/gettimeofday.c: Don't include gtod.h.
90411         (GTOD_init): Remove function.
90412         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90413         Suggestion from Volker Borchert.
90414
90415 2001-11-23  Jim Meyering  <meyering@lucent.com>
90416
90417         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90418         it.
90419         * lib/hash.c (struct hash_table): Define it here instead.
90420
90421 2001-11-22  Jim Meyering  <meyering@lucent.com>
90422
90423         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90424
90425 2001-11-20  Jim Meyering  <meyering@lucent.com>
90426
90427         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90428         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90429
90430 2001-11-19  Jim Meyering  <meyering@lucent.com>
90431
90432         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90433         directory.  Use "conftestXXXXXX" as the template.
90434         Suggestion from Paul Eggert.
90435
90436         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90437         immediately, so the test doesn't mistakenly hit the max-open-files
90438         limit.
90439
90440 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90441
90442         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90443         (TEMPORARIES): New macro.
90444         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90445         removes an artificial limitation (e.g. HP-UX 10.20, where
90446         TMP_MAX is 17576).
90447
90448 2001-11-18  Jim Meyering  <meyering@lucent.com>
90449
90450         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90451
90452 2001-11-18  Jim Meyering  <meyering@lucent.com>
90453
90454         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90455         on SunOS 4.
90456
90457         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90458         files will be created before anything else.
90459
90460 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90461
90462         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90463         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90464
90465 2001-11-17  Jim Meyering  <meyering@lucent.com>
90466
90467         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90468         Prompted by a report from Bob Proulx.
90469
90470         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90471         Instead, require UTILS_FUNC_MKSTEMP.
90472
90473 2001-11-17  Jim Meyering  <meyering@lucent.com>
90474
90475         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90476         Now, that's done as part of AC_FUNC_STRTOD.
90477
90478 2001-11-17  Jim Meyering  <meyering@lucent.com>
90479
90480         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90481         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90482         rather than group writable.  Patch by Juan F. Codagnone.
90483
90484         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90485         xrealloc, Instead, include "xalloc.h".
90486
90487         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90488         Remove explicit declarations of xmalloc, xrealloc,
90489         and xstrdup.  Instead, include "xalloc.h".
90490
90491         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90492         unlocked-io.h.
90493         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90494         Likewise.
90495         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90496
90497         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90498         Reported by Padraig Brady.
90499
90500         * lib/mkstemp.c: #undef mkstemp.
90501         Include config.h.
90502         (rpl_mkstemp): Rename from mkstemp.
90503         Protoize.
90504
90505 2001-11-16  Jim Meyering  <meyering@lucent.com>
90506
90507         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90508         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90509         determine the amount of total physical memory, use pstat_getstatic.
90510         HPUX-11 doesn't define _SC_PHYS_PAGES.
90511         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90512         If sysconf couldn't be used to determine the amount of available
90513         physical memory, use both pstat_getstatic and pstat_getdynamic.
90514         Based on a patch from Bob Proulx.
90515
90516 2001-11-10  Jim Meyering  <meyering@lucent.com>
90517
90518         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90519         (jm_PREREQ): Use it.
90520
90521 2001-11-09  Jim Meyering  <meyering@lucent.com>
90522
90523         * m4/jm-macros.m4: Require autoconf-2.52f.
90524         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90525         Use these AC_-prefixed names, not the AM_-prefixed ones.
90526
90527         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90528
90529 2001-11-05  Jim Meyering  <meyering@lucent.com>
90530
90531         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90532
90533 2001-11-04  Jim Meyering  <meyering@lucent.com>
90534
90535         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90536         $DEFS.
90537
90538 2001-11-03  Jim Meyering  <meyering@lucent.com>
90539
90540         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90541         of AC_DEFUN.
90542
90543         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90544         know the name of the variable in the macro definition.
90545
90546 2001-11-03  Jim Meyering  <meyering@lucent.com>
90547
90548         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90549         in argmatch_to_argument call.
90550
90551         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90552         argument.
90553
90554         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90555         e.g., a fault due to an attempt to free a NULL pointer.
90556
90557 2001-11-01  Jim Meyering  <meyering@lucent.com>
90558
90559         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90560         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90561
90562 2001-11-01  Jim Meyering  <meyering@lucent.com>
90563
90564         * lib/dirfd.c, lib/dirfd.h: New files.
90565         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90566
90567         * lib/hash.c (hash_print) [TESTING]: Clean up.
90568
90569 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90570
90571         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90572         to avoid a warning if -Wall.
90573
90574 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90575
90576         * README: New file
90577         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90578         (per RMS's instructions, this is now the canonical source)
90579         * lgpl/, gpl/: New directories.
90580
90581 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90582
90583         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90584
90585 2001-10-21  Jim Meyering  <meyering@lucent.com>
90586
90587         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90588         this code would end up calling gettext even in packages built
90589         with --disable-nls.
90590         * lib/getopt.c (_): Likewise.
90591         * lib/regex.c (_): Likewise.
90592
90593 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90594
90595         * m4/error.m4 (jm_PREREQ_ERROR):
90596         Do not invoke AC_CHECK_FUNCS with strerror_r, as
90597         AC_FUNC_STRERROR_R does that.
90598         Check for strerror declaration.
90599
90600         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
90601         are supposed to have them these days.
90602         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
90603         Merge changes from latest Autoconf CVS.
90604         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
90605         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
90606         POSIX decided to standardize on the int flavor of strerror_r.
90607
90608 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90609
90610         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
90611         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
90612         Use strerror_r that is only a macro, even if it is not a function.
90613         (strerror): Check for HAVE_DECL_STRERROR before declaring.
90614         (private_strerror): Use prototypes, not old-style function definition.
90615         (print_errno_message): New function.
90616         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
90617         char*-flavored one.
90618         (error_tail, error, error_at_line): Use it.
90619
90620 2001-10-11  Jim Meyering  <meyering@lucent.com>
90621
90622         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
90623         and quote_n (1, ... to avoid clobbering a buffer.
90624
90625 2001-10-05  Jim Meyering  <meyering@lucent.com>
90626
90627         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
90628         hash-pjw.h.
90629         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
90630         * lib/hash-pjw.h: New file.
90631
90632 2001-09-30  Jim Meyering  <meyering@lucent.com>
90633
90634         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
90635         `struct fsstat' has the `f_fstypename' member.
90636         Use that to define FS_TYPE, which is now used to make
90637         the getfsstat link test tighter.
90638
90639 2001-09-30  Jim Meyering  <meyering@lucent.com>
90640
90641         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
90642         Include <sys/ucred.h>, for Apple Darwin.
90643         Include sys/mount.h and sys/fs_types.h only if available.
90644         (FS_TYPE): Define.
90645         (read_filesystem_list): Use FS_TYPE.
90646
90647 2001-09-29  Paul Eggert  <eggert@twinsun.com>
90648
90649         * lib/exclude.c (excluded_filename): 0 -> false, since it's
90650         a boolean context.
90651
90652 2001-09-29  Jim Meyering  <meyering@lucent.com>
90653
90654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90655         [one-argument getmntent function]): Include stdio.h before mntent.h.
90656         SunOS 4.1.x needs it for the declaration of `FILE'.
90657         Patch by Volker Borchert.
90658
90659         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90660         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
90661         sys/fs_types.h, and make the link-test for getfsstat guard #include
90662         directives with appropriate #if HAVE_*_H tests so that we can
90663         detect getfsstat on Apple Darwin1.3.7 systems.
90664         Reported by Nelson Beebe.
90665         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
90666
90667 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90668
90669         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90670         #defines strtoimax.  Also treat the other strto* functions
90671         like strtoimax.
90672
90673         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90674         Check for strtoul and strtoumax,
90675         as those declarations are made even in the signed case.
90676         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
90677         Likewise, for strtol and strtoimax.
90678
90679 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90680
90681         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90682         #defines strtoimax.  Also treat the other strto* functions
90683         like strtoimax.
90684
90685         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
90686         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
90687         (strtoimax, strtoumax): Do not declare if already defined as a macro.
90688
90689 2001-09-26  Jim Meyering  <meyering@lucent.com>
90690
90691         Most macros in unlocked-io.h had the wrong number of arguments.
90692         * lib/gen-uio: New script.
90693         (USE_UNLOCKED_IO): Define to 1 if not already defined.
90694         * lib/unlocked-io.hin: Remove file.
90695         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
90696         rather than trying to embed it here.
90697         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
90698         Reported by Padraig Brady.
90699
90700 2001-09-25  Volker Borchert  <bt@teknon.de>
90701
90702         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
90703         `result'.
90704
90705 2001-09-24  Jim Meyering  <meyering@lucent.com>
90706
90707         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
90708
90709 2001-09-23  Jim Meyering  <meyering@lucent.com>
90710
90711         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
90712         instead of the mere test for existence of mntent.h.  The latter
90713         would get a false-positive on AIX 3.4 systems.
90714         In the outer getmntent if-block, don't die if neither of the getmntent
90715         tests succeeds.  Instead, just fall through and continue with the
90716         remaining tests.
90717
90718 2001-09-23  Jim Meyering  <meyering@lucent.com>
90719
90720         * lib/mountlist.c: Remove useless parentheses in #if directives.
90721         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
90722         the deprecated MOUNTED symbol is no longer defined in mntent.h.
90723
90724 2001-09-22  Jim Meyering  <meyering@lucent.com>
90725
90726         * m4/gettext.m4: New file.  From gettext.
90727         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
90728         * m4/progtest.m4: Likewise
90729         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
90730         * m4/glibc21.m4: Likewise.
90731
90732         * m4/libintl.m4: Remove.  No longer used.
90733
90734 2001-09-22  Jim Meyering  <meyering@lucent.com>
90735
90736         * lib/localcharset.c: Update from latest gettext.
90737         * lib/config.charset: Likewise.
90738
90739 2001-09-20  Jim Meyering  <meyering@lucent.com>
90740
90741         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90742         strtoimax.
90743         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
90744         strtoumax.
90745
90746 2001-09-20  Jim Meyering  <meyering@lucent.com>
90747
90748         * lib/xstrtol.c (strtoimax): Guard declaration with
90749         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
90750         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
90751         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
90752         (strtoumax): Likewise, for completeness (it wasn't necessary).
90753
90754 2001-09-17  Paul Eggert  <eggert@twinsun.com>
90755
90756         * lib/strtoimax.c (HAVE_LONG_LONG):
90757         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
90758         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
90759         to work around bug in IBM C compiler.
90760
90761 2001-09-17  Jim Meyering  <meyering@lucent.com>
90762
90763         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
90764         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
90765         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
90766         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
90767         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
90768         whenever the right hand side need not be expanded by the shell.
90769
90770 2001-09-16  Paul Eggert  <eggert@twinsun.com>
90771
90772         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
90773         library.  It's not correct, as some older glibcs are buggy.
90774         fnmatch wasn't fixed until glibc 2.2.
90775
90776         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
90777         special shell magic here.
90778
90779 2001-09-16  Jim Meyering  <meyering@lucent.com>
90780
90781         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
90782         * m4/jm-macros.m4: Require it.
90783
90784 2001-09-16  Jim Meyering  <meyering@lucent.com>
90785
90786         * lib/mkdir.c: New file.
90787
90788 2001-09-15  Jim Meyering  <meyering@lucent.com>
90789
90790         * m4/jm-macros.m4: Check for help2man.
90791
90792 2001-09-11  Jim Meyering  <meyering@lucent.com>
90793
90794         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
90795         The body, by Paul Eggert, was moved here from configure.in.
90796         * m4/jm-macros.m4: Require UTILS_HOST_OS.
90797
90798 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90799
90800         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
90801         (jm_PREREQ): Use it.
90802
90803 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90804
90805         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
90806         Use ssize_t, not int, to store result of readlink.
90807         Check for ssize_t overflow as well as size_t overflow,
90808         as POSIX says the result of readlink is implementation-defined
90809         when ssize_t overflows.
90810         Remove unnecessary cast to char*.
90811         Use free+malloc instead of realloc, as the storage doesn't need
90812         to be preserved and it's clearer and can be more efficient that way.
90813         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
90814         * lib/xreadlink.h (xreadlink): Update prototype.
90815
90816 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90817
90818         * lib/xgetcwd.c: Revert some of the previous change; intead,
90819         fix the HAVE_GETCWD_NULL code to behave more like the
90820         !HAVE_GETCWD_NULL code used to.
90821
90822         Include "xalloc.h".
90823         (xgetcwd): Do not return NULL when memory is exhausted; instead,
90824         invoke xalloc_die.
90825
90826 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90827
90828         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
90829         sys/param.h, as pathmax.h includes them.
90830
90831 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90832
90833         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
90834         (jm_PREREQ_XGETCWD): New macro.
90835
90836         * m4/getcwd.m4: New file.
90837
90838 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90839
90840         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
90841         like the HAVE_GETCWD_NULL code.
90842         Include pathmax.h if not HAVE_GETCWD.
90843         Do not include xalloc.h.
90844         (INITIAL_BUFFER_SIZE): New symbol.
90845         Do not use xmalloc / xrealloc, since the caller is responsible for
90846         handling errors.  Preserve errno around `free' during failure.
90847         Do not overrun buffer when using getwd.
90848
90849 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90850
90851         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
90852         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
90853         getcwd (NULL, 0).
90854
90855 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90856
90857         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
90858         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
90859         spotted by Jim Meyering.
90860
90861 2001-09-03  Jim Meyering  <meyering@lucent.com>
90862
90863         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
90864         failure.
90865
90866 2001-09-02  Jim Meyering  <meyering@lucent.com>
90867
90868         * lib/error.c: Update from GNU libc.
90869
90870 2001-09-01  Jim Meyering  <meyering@lucent.com>
90871
90872         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
90873         Used by df.
90874
90875 2001-09-01  Jim Meyering  <meyering@lucent.com>
90876
90877         * lib/xreadlink.c: New file.
90878         * lib/xreadlink.h: New file.
90879         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
90880         xreadlink.h.
90881
90882         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
90883         doesn't conflict with sparc Solaris 7's definition in
90884         /usr/include/sys/int_types.h.
90885
90886         * lib/exclude.c: Use `""', not `<>' to #include non-system header
90887         files.
90888         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
90889         and strncasecmp as r-values.  Unixware didn't have declarations.
90890
90891 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90892
90893         * lib/xstrtol.h: Add copyright notice.
90894         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
90895         LONGINT_INVALID_SUFFIX_CHAR.
90896
90897 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90898
90899         * lib/xstrtol.c (strtoimax): New decl.
90900
90901 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90902
90903         * lib/xgetcwd.c: Don't include pathmax.h.
90904         Include stdlib.h and unistd.h if available.
90905         Include xalloc.h.
90906         (xmalloc, xstrdup, free): Remove decls.
90907         (xgetcwd): Don't assume sizes fit in unsigned.
90908         Check for overflow when computing sizes.
90909         Simplify reallocation code.
90910
90911 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90912
90913         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
90914         a directory's st_size can have an arbitrary value, so the old
90915         usage could waste an arbitrary amount of memory.  All uses
90916         changed.
90917         * lib/savedir.h: Update prototype.
90918
90919 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90920
90921         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
90922
90923         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
90924         old strtoimax.c.
90925
90926         Also, make the following further changes to make this file's
90927         configuration more similar to that of strtol.c:
90928         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
90929         (strtoumax, uintmax_t, strtoull, strtol): Remove.
90930         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
90931         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
90932         changed to signed values.
90933
90934         And make the following changes as well:
90935         Fix copyright notice, as 1999 was missing.
90936         (verify): New macro.
90937         (strtoimax): Check sizes at compile-time, not run-time.
90938         Prefer strtol to strtoll if both work.
90939         (main): Remove; it was not that useful and was a pain to maintain.
90940
90941         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
90942
90943 2001-08-31  Jim Meyering  <meyering@lucent.com>
90944
90945         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
90946         Use an initial, malloc'd, buffer of length 128 rather than
90947         a statically allocated one of length 1024.
90948
90949 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90950
90951         Simplify code, partly by assuming autoconf 2.52 semantics.
90952
90953         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90954
90955         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90956         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90957         All uses removed.
90958         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90959         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90960         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90961         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90962         jm_AC_HEADER_INTTYPES_H.
90963         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90964
90965         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90966
90967         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90968         Quote first arg of AC_DEFUN.
90969         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90970         since they are needed to parse the include file even if we need
90971         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90972         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90973         but with opposite signedness.
90974
90975 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90976
90977         Merge 'exclude' changes from tar 1.13.22.
90978         This fixes one or two unlikely storage allocation overflow bugs,
90979         but doesn't change user-visible behavior otherwise.
90980
90981 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90982
90983         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90984         (jm_PREREQ_EXCLUDE): New macro.
90985
90986 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90987
90988         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90989         tm to be declared.
90990
90991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90992
90993         * lib/hash.c: Remove '2001' from copyright notice.
90994
90995 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90996
90997         * lib/full-write.h: New file.
90998         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90999         * lib/full-write.c: Correct credits, as cccp.c no longer
91000         exists and anyway it was so heavily changed from the old cccp
91001         code as to be unrecognizable.  Include full-write.h.
91002         (full_write): Return size_t, with short writes meaning failure.
91003         All callers changed.  This fixes a bug with large buffers
91004         on 64-bit hosts.
91005         * lib/utime.c: Include full-write.h.
91006
91007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91008
91009         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91010         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91011         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91012         Include if available.
91013         (<xalloc.h>): Include
91014         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91015         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91016         collide with FNM macros.
91017         (struct patopts): New struct.
91018         (struct exclude): Use it, as exclude patterns now come with options.
91019         (new_exclude): Support above changes.
91020         (new_exclude, add_exclude_file):
91021         Initial size must now be a power of two to simplify overflow checking.
91022         (free_exclude, fnmatch_no_wildcards): New function.
91023         (excluded_filename): No longer requires options arg, as the options
91024         are determined by add_exclude.  Now returns bool, not int.
91025         (excluded_filename, add_exclude):
91026         Add support for the fancy new exclusion options.
91027         (add_exclude, add_exclude_file): Now takes int options arg.
91028         Check for arithmetic overflow when computing sizes.
91029         (add_exclude_file): xrealloc might modify errno, so don't
91030         realloc until after errno might be used.
91031
91032         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91033         New macros.
91034         (free_exclude): New decl.
91035         (add_exclude, add_exclude_file): Now takes int options arg.
91036         (excluded_filename): No longer requires options arg, as the options
91037         are determined by add_exclude.  Now returns bool, not int.
91038
91039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91040
91041         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91042
91043 2001-08-27  Jim Meyering  <meyering@lucent.com>
91044
91045         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91046
91047         * lib/version-etc.c (N_): Remove definition.
91048         Revert most of last change.
91049         Instead, simply don't mark the `Copyright...' string for translation.
91050         Based on advice from Paul Eggert.
91051
91052         * lib/strtoxmax.c: Tweak comment.
91053
91054 2001-08-26  Jim Meyering  <meyering@lucent.com>
91055
91056         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91057
91058         * m4/xstrtoimax.m4: New file.
91059         * m4/xstrtoumax.m4: Add comments explaining why we
91060         AC_REPLACE_FUNCS(strtol).
91061
91062 2001-08-26  Jim Meyering  <meyering@lucent.com>
91063
91064         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91065         of copyright with `%s' so translators don't get an untranslated
91066         message in 2002.
91067         (COPYRIGHT_YEAR): Define.
91068         (version_etc): Use fprintf rather than fputs.
91069         Suggestion from Ulrich Drepper.
91070
91071         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91072
91073         * lib/strtoll.c: New file, from GNU libc.
91074         * lib/xstrtoimax.c: New file.
91075
91076         * lib/xstrtol.h: Add xstrtoimax.
91077         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91078         * lib/strtoimax.c: New file.  Likewise, but first define
91079         STRTOUXMAX_SIGNED.
91080
91081         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91082         ...
91083         * lib/strtoxmax.c: ... then renamed to this.
91084
91085 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91086
91087         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91088         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91089         (jm_AC_TYPE_INTMAX_T): New macro.
91090         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91091
91092         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91093
91094         * m4/longlong.m4: Renamed from ulonglong.m4.
91095         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91096         * m4/uintmax_t.m4: Removed.
91097
91098 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91099
91100         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91101         Port to Solaris 8, where 'sed' requires a space after the 'r'
91102         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91103         Redirect output to $tmp just once.
91104
91105 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91106
91107         * lib/addext.c (<errno.h>): Include.
91108         (errno): Declare if not defined.
91109         (addext): Work correctly when pathconf returns -1 and leaves
91110         errno alone because there is no limit.  Also, work even if
91111         pathconf returns a value greater than SIZE_MAX.
91112
91113 2001-08-12  Jim Meyering  <meyering@lucent.com>
91114
91115         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91116         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91117         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91118         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91119         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91120         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91121         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91122         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91123         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91124         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91125         utime.m4, utimes.m4, xstrtoumax.m4:
91126         Quote the first argument in each use of AC_DEFUN.
91127
91128 2001-08-12  Jim Meyering  <meyering@lucent.com>
91129
91130         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91131         Simply `return getcwd (NULL, 0);'.
91132         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91133         Use 1300 as initial value for length, not PATH_MAX.
91134
91135         * lib/pathmax.h: Clean up cpp syntax.
91136
91137 2001-08-12  Jim Meyering  <meyering@lucent.com>
91138
91139         * lib/gettimeofday.c: New file.
91140         * lib/gtod.h: New file.
91141         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91142
91143 2001-08-05  Jim Meyering  <meyering@lucent.com>
91144
91145         * m4/jm-macros.m4: Require autoconf-2.52.
91146
91147 2001-08-04  Jim Meyering  <meyering@lucent.com>
91148
91149         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91150         stmt, to get in sync with glibc.
91151
91152 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91153
91154         The following changes are from gettext 0.10.39 as maintained by
91155         Bruno Haible.
91156
91157         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91158         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91159         with inverted sense.  All uses changed.
91160
91161         * lib/mbswidth.c: Don't include <limits.h>.
91162         Include <stdlib.h> and <string.h> unconditionally.
91163         (iswcntrl, mbsinit, ISCNTRL): New macros.
91164         (mbsnwidth): Use K&R style function declarations.
91165         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91166         can optimize it when MB_CUR_MAX == 1.
91167         The width of control characters is zero, not 1.
91168
91169 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91170
91171         The following changes are from gettext 0.10.39 as maintained by
91172         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91173
91174         * m4/codeset.m4: Upgrade to serial AM1.
91175         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91176         all uses changed.  Quote first arg of AC_DEFUN.
91177         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91178
91179         * m4/iconv.m4: Upgrade to serial AM2.
91180         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91181         Add --with-libconv-prefix.
91182         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91183         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91184         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91185         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91186         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91187
91188         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91189         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91190         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91191         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91192         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91193         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91194         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91195         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91196         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91197
91198         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91199         string.h any more.
91200
91201         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91202         not the default value.
91203
91204         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91205         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91206         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91207         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91208         Also check for iswcntrl, used for wcwidth fallback.
91209         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91210         to Autoconf 2.13.
91211
91212 2001-08-03  Jim Meyering  <meyering@lucent.com>
91213
91214         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91215         as it was in the original.  Reported by Paul Eggert.
91216
91217 2001-07-16  Jim Meyering  <meyering@lucent.com>
91218
91219         * m4/gettimeofday.m4: New file.
91220         Prompted by a report from Bernhard Baehr.
91221
91222 2001-07-15  Jim Meyering  <meyering@lucent.com>
91223
91224         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91225         stuff. Now it's in ../Makefile.cfg.
91226
91227 2001-07-15  Jim Meyering  <meyering@lucent.com>
91228
91229         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91230         (BUILT_SOURCES): Add unlocked-io.h.
91231         (io_functions): Define.
91232         (unlocked-io.h): New rule.
91233         (DISTCLEANFILES): Add unlocked-io.h.
91234         (all-local): Depend on unlocked-io.h, to ensure it is created.
91235
91236         * lib/unlocked-io.hin: New file
91237
91238         * lib/regex.c: Update from glibc.
91239
91240 2001-07-05  Jim Meyering  <meyering@lucent.com>
91241
91242         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91243         recommendation.
91244         (libfetish_a_SOURCES): Put all .h files here instead.
91245         Remove a thus-exposed (better checks in automake) duplicate and
91246         two unnecessary .h files.
91247
91248 2001-07-04  Jim Meyering  <meyering@lucent.com>
91249
91250         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91251         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91252         distcheck failure.
91253
91254 2001-07-02  Jim Meyering  <meyering@lucent.com>
91255
91256         The following changes were prompted by suggestions from Bruno Haible.
91257
91258         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91259         is now generated.
91260         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91261         definition of EXTRA_DIST.
91262         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91263         ensure that the generated file is created/updated whenever the list
91264         of $(unlocked_functions) is changed.
91265         (jm-glibc-io.m4): New rule.
91266         (unlocked-io.h): New rule -- currently unused.
91267
91268 2001-06-24  Jim Meyering  <meyering@lucent.com>
91269
91270         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91271         unmatched right bracket, rather than kludging it with an extra,
91272         falsely-matching quote in a comment.  Patch by Akim Demaille.
91273
91274 2001-06-11  Jim Meyering  <meyering@lucent.com>
91275
91276         * lib/regex.c: Update from GNU libc.
91277
91278 2001-05-27  Jim Meyering  <meyering@lucent.com>
91279
91280         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91281         Check for ut_type in struct utmp.
91282
91283 2001-05-27  Jim Meyering  <meyering@lucent.com>
91284
91285         * lib/readutmp.h (UT_TYPE): Define.
91286
91287 2001-05-24  Jim Meyering  <meyering@lucent.com>
91288
91289         * lib/argmatch.c: Include "quote.h".
91290         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91291         quote function.  Reported by Göran Uddeborg.
91292
91293 2001-05-22  Jim Meyering  <meyering@lucent.com>
91294
91295         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91296         now that we use the package-supplied version unconditionally.
91297         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91298
91299 2001-05-21  Jim Meyering  <meyering@lucent.com>
91300
91301         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91302         shell syntax errors.
91303
91304 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91305
91306         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91307
91308 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91309
91310         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91311         Don't bother to check library strftime, since
91312         we'll be using our own my_strftime function anyway.
91313         Define my_strftime instead of strftime.
91314
91315 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91316
91317         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91318         which is not yet declared.
91319
91320 2001-05-15  Jim Meyering  <meyering@lucent.com>
91321
91322         * m4/regex.m4: Use proper quoting so brackets appear in the test
91323         program.
91324         Reported by, and with help from, Bruno Haible.
91325
91326 2001-05-13  Jim Meyering  <meyering@lucent.com>
91327
91328         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91329         undefined.
91330
91331 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91332
91333         dirname code cleanup.  base_name now behaves more compatibly
91334         with POSIX basename when given file names that have trailing
91335         slashes, and similarly for dir_name.  Add new primitives
91336         base_len and dir_len.  Put the directory-name-related decls
91337         into dirname.h.
91338
91339         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91340         * lib/backupfile.c (base_name): Likewise.
91341         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91342         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91343         * lib/makepath.c (strip_trailing_slashes): Likewise.
91344         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91345         ISSLASH): Likewise.
91346         * lib/rename.c (strip_trailing_slashes): Likewise.
91347         * lib/same.c (base_name): Likewise.
91348         * lib/stripslash.c (ISSLASH): Likewise.
91349
91350         * lib/addext.c: Include <dirname.h> after size_t is defined.
91351         * lib/backupfile.c: Likewise.
91352
91353         * lib/addext.c (addext): Use base_len to trim redundant
91354         trailing slashes instead of doing it ourselves.
91355         But do not trim the last slash if it is not redundant.
91356
91357         * lib/backupfile.c (find_backup_file_name,
91358         max_backup_version): Use base_len instead of rolling it ourselves.
91359         Handle the case of "" and (on DOS) "C:" correctly.
91360
91361         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91362         needed. Include <string.h>, <dirname.h>.
91363         (base_name): Allow file names ending in slashes, other than names
91364         that are all slashes.  In this case, return the basename followed
91365         by the slashes.  This is more general, and can be used in places
91366         where the original base_name purposely had an assertion failure.
91367         (base_len): New function.
91368
91369         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91370         Do not include <assert.h>; no longer needed.
91371         Include xalloc.h.
91372         (memrchr): Remove decl.
91373         (dir_name_r): Remove.
91374         (dir_len): Renamed from dirlen.  All callers changed.
91375         Rewrite in terms of base_name, for simplicity and consistency.
91376         (dir_name): Never return NULL.  All callers changed.
91377         Do not include <stdlib.h> in test program; no longer needed.
91378         return 0; is fine for test program.
91379
91380         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91381         New macros.
91382         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91383
91384         * lib/path-concat.c (path_concat): Use base_len to compute
91385         base length, not strlen; this means we cannot rely on memcpy
91386         to null-terminate.
91387
91388         * lib/same.c (STREQ): Remove.
91389         (same_name): Handle the case where the basename ends in trailing '/'.
91390
91391         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91392         a slash was stripped.  Do not strip the last slash after a
91393         file system prefix.
91394
91395 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91396
91397         * lib/Makefile.am (libfetish_a_SOURCES):
91398         Add strftime.c, since we now compile it on all hosts.
91399
91400         * lib/strftime.c (my_strftime):
91401         Define to nstrftime if emacs, but only if my_strftime is not defined.
91402         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91403         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91404         Add one more extra argument: a nanoseconds value.
91405         All uses changed.
91406         (ns): New macro.
91407         (my_strftime function): Add %N format.
91408         (emacs_strftimeu): Renamed from emacs_strftime,
91409         with extra ut argument.
91410
91411 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91412
91413         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91414
91415 2001-04-21  Jim Meyering  <meyering@lucent.com>
91416
91417         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91418         doesn't interfere.
91419
91420 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91421
91422         * m4/ftruncate.m4: Check for chsize.
91423         Link with ftruncate.o unconditionally if ftruncate is missing.
91424         This was required when cross-compiling to i586-mingw32msvc.
91425
91426 2001-04-08  Jim Meyering  <meyering@lucent.com>
91427
91428         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91429         recomputed; that's necessary when the offset spans a DST transition.
91430         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91431
91432 2001-04-02  Jim Meyering  <meyering@lucent.com>
91433
91434         * lib/regex.h, regex.c: Update from GNU libc.
91435
91436 2001-03-24  Jim Meyering  <meyering@lucent.com>
91437
91438         * m4/jm-macros.m4: Require autoconf-2.49d.
91439
91440 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91441
91442         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91443
91444 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91447
91448 2001-03-17  Jim Meyering  <meyering@lucent.com>
91449
91450         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91451         now that the version in autoconf is equivalent.
91452         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91453
91454         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91455         Suggestion from Akim Demaille.
91456
91457         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91458         (jm_PREREQ_TEMPNAME): New function.
91459
91460 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91461
91462         * lib/tempname.c (uint64_t): Define to uintmax_t if
91463         not defined, and if UINT64_MAX is not defined.
91464         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91465         Reported by John David Anglin.
91466
91467 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91468
91469         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91470         resolve alias if codeset is empty.
91471         * lib/config.charset (BeOS): Use wildcard syntax.
91472
91473 2001-03-13  Jim Meyering  <meyering@lucent.com>
91474
91475         * lib/path-concat.c (path_concat)
91476         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91477         concatenating e.g., `C:' and `foo'.
91478         From Bruno Haible.
91479
91480 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91481
91482         * lib/localcharset.c (locale_charset): Don't use
91483         setlocale(LC_CTYPE,NULL). Don't return NULL.
91484         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91485
91486 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91487
91488         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91489         support for DOS/DJGPP.
91490
91491 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91492
91493         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91494         lacks mkstemp.  Compile our own tempname.c if we compile our own
91495         mkstemp.c, as mkstemp relies on tempname.
91496
91497 2001-03-01  Jim Meyering  <meyering@lucent.com>
91498
91499         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91500         AH_VERBATIM really does output its argument verbatim.
91501
91502 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91503
91504         * lib/Makefile.am (libfetish_a_SOURCES):
91505         Add dup-safer.c, fopen-safer.c.
91506         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91507
91508         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91509         * lib/unistd-safer.h: New files.
91510
91511 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91512
91513         The mkstemp replacement is taken from glibc 2.2.2, with some
91514         portability fixes for use outside glibc, as follows:
91515
91516         * lib/tempname.c (struct_stat64): New macro.
91517         (direxists, __gen_tempname): Use it.
91518         This avoids a portability problem with Solaris 8.
91519
91520         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91521         (<stddef.h>, <stdint.h>, <string.h>):
91522         Include only if STDC_HEADERS || _LIBC.
91523         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91524         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91525         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91526         (__set_errno): Define this macro if <errno.h> doesn't.
91527         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91528         Define these macros if <stdio.h> doesn't.
91529         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91530         Define these macros if <sys/stat.h>
91531         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91532         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91533         __xstat64): Define if not _LIBC.
91534         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91535         (__gen_tempname): Invoke gettimeofday only if
91536         HAVE_GETTIMEOFDAY || _LIBC;
91537         otherwise, fall back on plain "time".
91538         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91539
91540         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91541
91542         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91543
91544 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91545
91546         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91547
91548 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91549
91550         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91551         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91552         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91553         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91554
91555 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91556
91557         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91558         Remove workaround macros for hosts that have mbrtowc but not
91559         mbstate_t, as we now insist on proper declarations for both
91560         before using mbrtowc.
91561
91562 2001-02-17  Jim Meyering  <meyering@lucent.com>
91563
91564         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91565         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91566         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91567         UnixWare 7.1.1.
91568
91569         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91570         rather than AC_CACHE_VAL.
91571
91572 2001-02-17  Jim Meyering  <meyering@lucent.com>
91573
91574         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91575         around included file name.
91576
91577         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91578
91579         * lib/strftime.c: Update from GNU libc (the only changes were to
91580         comments).
91581
91582 2001-02-17  Jim Meyering  <meyering@lucent.com>
91583
91584         * lib/regex.c: Update from libc.
91585
91586 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91587
91588         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91589         clash.
91590
91591 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91592
91593         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91594         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91595         Reported by Mark Hounschell via Paul Eggert.
91596
91597 2001-02-07  Jim Meyering  <meyering@lucent.com>
91598
91599         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
91600
91601 2001-02-05  Jim Meyering  <meyering@lucent.com>
91602
91603         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
91604         it includes the patch required for `large file' support with at least
91605         HP-UX's 10.20 /bin/cc.
91606
91607 2001-02-03  Jim Meyering  <meyering@lucent.com>
91608
91609         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
91610         AS_IF, now that it works once again (mysteriously).
91611         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91612
91613 2001-01-30  Jim Meyering  <meyering@lucent.com>
91614
91615         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
91616         * m4/chown.m4: Rename conftestchown to conftest.chown.
91617         * m4/rename.m4: s/conftestdir/conftest.d1/ and
91618         s/conftestdir2/conftest.d2/.
91619         * m4/utimes.m4: s/conftestdata/conftest.data/
91620         Inspired by Pavel Roskin's change in autoconf.
91621
91622 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
91623
91624         * lib/config.charset: Update for FreeBSD 4.2.
91625
91626 2001-01-27  Jim Meyering  <meyering@lucent.com>
91627
91628         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
91629         a use of AS_IF.
91630         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91631
91632 2001-01-26  Jim Meyering  <meyering@lucent.com>
91633
91634         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
91635         quotearg.c includes it.
91636
91637 2001-01-26  Jim Meyering  <meyering@lucent.com>
91638
91639         * lib/quotearg.c: Include stddef.h.
91640         * lib/quote.c: Include stddef.h.
91641         Reported by Axel Kittenberger.
91642
91643         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
91644         line in double quotes so that it evokes a better diagnostic.
91645         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
91646         Reported by Axel Kittenberger.
91647
91648 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
91649
91650         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
91651         as if it was a `charset'.
91652
91653 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91654
91655         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
91656         has const.
91657
91658 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91659
91660         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
91661         to avoid a warning.  Add back 'const' to inptr.
91662
91663 2001-01-20  Jim Meyering  <meyering@lucent.com>
91664
91665         Be sure that headers are checked before used in code compiled
91666         for the type checks.
91667         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
91668         In place of that, invoke jm_CHECK_ALL_TYPES.
91669         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
91670         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
91671         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
91672         The check for ssize_t was mistakenly run before the test for unistd.h.
91673
91674         The configure-time check for stdbool.h was missing.
91675         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
91676         (jm_PREREQ_HASH): New function.
91677
91678 2001-01-17  Jim Meyering  <meyering@lucent.com>
91679
91680         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
91681         for autoconf-2.49c.
91682         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
91683
91684 2001-01-16  Jim Meyering  <meyering@lucent.com>
91685
91686         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
91687         From Bruno Haible.
91688
91689 2001-01-14  Jim Meyering  <meyering@lucent.com>
91690
91691         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
91692         foo and bar.  Create conftestdir/ in the script, not in the C code.
91693         Remove directories in the script, not in the C code.
91694         Remove conftestdir{,2} before trying to create the directory.
91695         Make the entire configure script fail if the mkdir fails.
91696
91697 2001-01-14  Jim Meyering  <meyering@lucent.com>
91698
91699         * lib/rename.c: New file.  From Volker Borchert.
91700         Include stdlib.h, string.h or strings.h, and xalloc.h.
91701         Use strip_trailing_slashes rather than open-coding it.
91702
91703 2001-01-03  Paul Eggert  <eggert@twinsun.com>
91704
91705         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
91706
91707 2001-01-03  Jim Meyering  <meyering@lucent.com>
91708
91709         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
91710         of local `inptr' to avoid warning with some system declarations of
91711         iconv.
91712
91713 2001-01-02  Volker Borchert  <bt@teknon.de>
91714
91715         * m4/rename.m4: New file.
91716         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
91717
91718 2001-01-01  Jim Meyering  <meyering@lucent.com>
91719
91720         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
91721         even on systems with utmpx.h.  It's necessary for the declaration of
91722         utmp's ut_user member.  Reported by Andreas Jaeger.
91723
91724         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
91725         available. They are required for the declarations of getgrgid and
91726         getpwuid resp.
91727         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
91728         Reported by Andreas Jaeger.
91729
91730 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
91731
91732         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
91733         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
91734         so `make install' also works in VPATH builds.
91735
91736 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
91737
91738         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91739         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91740         can be used in subdirectories.
91741
91742 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91743
91744         * lib/modechange.c: Do not assume that mode_t uses the
91745         traditional octal encoding.  E.g. "chmod 1 FOO" should set
91746         the other-execute bit of FOO even if S_IXOTH != 1.
91747
91748         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
91749         WOTH, XOTH, ALLM): New macros.
91750         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
91751          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
91752         Use them.
91753         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
91754         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
91755         (mode_compile):
91756         No need to use uintmax_t; unsigned long is long enough.
91757         Don't bother to get suffix since we don't use it.
91758
91759 2000-12-26  Jim Meyering  <meyering@lucent.com>
91760
91761         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
91762         better with autoheader.
91763
91764 2000-12-24  Jim Meyering  <meyering@lucent.com>
91765
91766         * lib/hash.c (is_prime): Return explicit boolean values.
91767         (hash_get_first): Return NULL to appease Irix5.6's 89.
91768         Reported by Nelson Beebe.
91769
91770 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
91771
91772         * lib/localcharset.c (locale_charset): Add support for Win32.
91773
91774 2000-12-18  Paul Eggert  <eggert@twinsun.com>
91775
91776         * lib/physmem.h, lib/physmem.c: New files.
91777
91778         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
91779         (noinst_HEADERS): Add physmem.h.
91780
91781         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
91782         't' for compatibility with Solaris 8 sort.
91783
91784 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
91785
91786         * lib/config.charset: Add support for BeOS.
91787
91788 2000-12-17  Jim Meyering  <meyering@lucent.com>
91789
91790         * m4/dos.m4 (jm_AC_DOS): New file and macro.
91791         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
91792
91793 2000-12-16  Jim Meyering  <meyering@lucent.com>
91794
91795         This bug had a serious impact on chown: `chown N:M FILE' (for integer
91796         N and M) would have treated it like `chown N:N FILE'.
91797
91798         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
91799
91800 2000-12-16  Jim Meyering  <meyering@lucent.com>
91801
91802         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
91803         SHELLS_FILE to a file name that's useful on djgpp systems.
91804         Include stdlib.h.
91805         (ADDITIONAL_DEFAULT_SHELLS): Define.
91806         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
91807         Based mostly on a patch from Prashant TR.
91808
91809 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
91810
91811         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
91812         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
91813         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
91814
91815 2000-12-08  Andreas Schwab  <schwab@suse.de>
91816
91817         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
91818         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
91819
91820 2000-12-07  Jim Meyering  <meyering@lucent.com>
91821
91822         * lib/stripslash.c (ISSLASH): Define.
91823         (strip_trailing_slashes): Use ISSLASH rather than comparing against
91824         `/'.
91825         From Prashant TR.
91826
91827         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
91828         (dir_name_r): Declare this function as static.
91829         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
91830         manifest itself on a name containing a mix of slashes and
91831         backslashes.
91832         Make this function work with names starting with a DOS-style
91833         drive letter and colon prefix.
91834         (dir_name): Append `.' if necessary.
91835         Based mostly on patches from Prashant TR and Eli Zaretskii.
91836
91837         * lib/dirname.h (dir_name_r): Remove prototype.
91838
91839 2000-12-06  Paul Eggert  <eggert@twinsun.com>
91840
91841         * m4/off_t-format.m4: Remove this file.
91842         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
91843
91844 2000-12-06  Jim Meyering  <meyering@lucent.com>
91845
91846         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
91847         replacement strtoull, we may well need the replacement strtoul, too.
91848         Check for declarations of strtoul and strtoull.
91849         Check for strtol.  Mainly as a cue to cause automake to include
91850         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
91851         Check for limits.h -- strtol.c needs it.
91852
91853 2000-12-05  Jim Meyering  <meyering@lucent.com>
91854
91855         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
91856
91857 2000-12-04  Jim Meyering  <meyering@lucent.com>
91858
91859         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
91860         Also include memory.h, stdlib.h, unistd.h if appropriate.
91861         Reported by Andreas Jaeger (conflicting declaration of malloc).
91862
91863 2000-12-02  Jim Meyering  <meyering@lucent.com>
91864
91865         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
91866         * m4/jm-macros.m4 (jm_MACROS): require it.
91867
91868 2000-12-02  Jim Meyering  <meyering@lucent.com>
91869
91870         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
91871
91872 2000-12-01  Paul Eggert  <eggert@twinsun.com>
91873
91874         * lib/memrchr.c: Include <config.h> before any system include file.
91875
91876 2000-11-30  Jim Meyering  <meyering@lucent.com>
91877
91878         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
91879
91880 2000-11-30  Jim Meyering  <meyering@lucent.com>
91881
91882         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
91883
91884 2000-11-29  Paul Eggert  <eggert@twinsun.com>
91885
91886         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
91887
91888 2000-11-26  Jim Meyering  <meyering@lucent.com>
91889
91890         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
91891
91892 2000-11-22  Paul Eggert  <eggert@twinsun.com>
91893
91894         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
91895         size of (size_t) -1; it's not portable.
91896
91897 2000-11-17  Jim Meyering  <meyering@lucent.com>
91898
91899         * lib/strstr.c: Update from GNU libc.
91900
91901 2000-11-17  Akim Demaille  <akim@epita.fr>
91902
91903         * lib/obstack.h: Formatting changes.
91904         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
91905         prevent type checking.
91906         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
91907         cast the value to (void *): assigning a `foo *' to a `void *'
91908         variable is valid.
91909         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
91910
91911 2000-11-16  Jim Meyering  <meyering@lucent.com>
91912
91913         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
91914
91915 2000-11-11  Jim Meyering  <meyering@lucent.com>
91916
91917         * lib/error.c: Add a couple #includes, merging from GNU libc version.
91918
91919 2000-11-10  Jim Meyering  <meyering@lucent.com>
91920
91921         * lib/obstack.h: Update from GNU libc.
91922         * lib/obstack.c: Likewise.
91923
91924 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
91925
91926         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
91927
91928 2000-11-06  Paul Eggert  <eggert@twinsun.com>
91929
91930         * lib/getusershell.c (setusershell): Use rewind rather than
91931         fseek/fseeko, to avoid configuration hassles with fseeko.
91932         Don't bother opening SHELLS_FILE if shellstream is NULL;
91933         it's not necessary.
91934
91935 2000-11-05  Jim Meyering  <meyering@lucent.com>
91936
91937         * lib/makepath.h (make_dir): Declare.
91938         * lib/makepath.c (make_dir): Remove `static' attribute.
91939         Tweak a comment.
91940
91941 2000-11-04  Jim Meyering  <meyering@lucent.com>
91942
91943         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
91944
91945 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
91946
91947         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91948         last one in a bucket, advance to the next bucket.
91949
91950 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91951
91952         * lib/fnmatch.c: Do not comment out all the code if we are using
91953         the GNU C library, because in some cases we are replacing buggy
91954         code in the GNU C library itself.
91955
91956 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91957
91958         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91959         (regex_compile): Catch bogus \(\1\).
91960
91961 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91962
91963         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91964         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91965         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91966
91967 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91968
91969         * lib/error.h, getline.h, modechange.h:
91970         Remove "2000" from Copyright line, as the file hasn't been
91971         changed this year other than in the copyright notice.
91972
91973         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91974         was changed this year.
91975
91976 2000-10-29  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91979         renaming.
91980         * m4/ls-mntd-fs.m4: Likewise
91981
91982 2000-10-29  Jim Meyering  <meyering@lucent.com>
91983
91984         * lib/xstat.in: Fix grammar in comment.
91985
91986 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91987
91988         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91989         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91990         doesn't define __restrict_arr.
91991
91992 2000-10-28  Jim Meyering  <meyering@lucent.com>
91993
91994         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91995         (jm_PREREQ_MEMCHR): New function.
91996
91997 2000-10-28  Jim Meyering  <meyering@lucent.com>
91998
91999         * lib/memchr.c: Update from libc.
92000         Adjust for portability:
92001         [HAVE_STDLIB_H]: Include stdlib.h.
92002         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92003         Undef __memchr, too.
92004         [!weak_alias]: Define __memchr to memchr.
92005
92006         * lib/regex.c: Update from libc.
92007         * lib/regex.h: Likewise.
92008         * lib/getopt1.c: Likewise.
92009         * lib/memcmp.c: Likewise.
92010
92011         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92012         Avoid using fseek, when possible -- it's broken by design.
92013         Patch by Ulrich Drepper.
92014
92015 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92016
92017         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92018         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92019         Giving in to popular pressure to shut up the compiler with casts.
92020
92021 2000-10-26  Jim Meyering  <meyering@lucent.com>
92022
92023         * lib/strftime.c: Update from libc.
92024
92025 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92026
92027         * regex.c: More `unsigned char' -> `re_char' changes.
92028         Also change several `int' into `re_wchar_t'.
92029         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92030         (PUSH_FAILURE_POINTER): Don't cast any more.
92031         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92032         We want GCC to complain, since this piece of code makes
92033         re_match non-reentrant, which *should* be fixed.
92034         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92035         (EXTEND_BUFFER): Use RETALLOC.
92036         (SET_LIST_BIT): Don't cast.
92037         (re_wchar_t): New type.
92038         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92039         that those two functions will always properly return.
92040         (IMMEDIATE_QUIT_CHECK): Cast to void.
92041         (analyse_first): Use recursion rather than an explicit stack.
92042         (re_compile_fastmap): Can't fail anymore.
92043         (re_search_2): Don't check re_compile_fastmap for failure.
92044         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92045         Now also sets the new value (passed in a new argument).
92046         (re_match_2_internal): Use it.
92047         Also, use a new var `reg' of type size_t when looping through regs
92048         rather than reuse the inappropriate `mcnt'.
92049
92050 2000-10-25  Jim Meyering  <meyering@lucent.com>
92051
92052         * lib/obstack.c: Update from libc.
92053
92054 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92055
92056         * regex.c (regex_compile): Change the way of handling a range from
92057         a char less than 256 to a char not less than 256.
92058
92059 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92060
92061         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92062         NT-Emacs only.
92063         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92064         so that re_search functions only quit when callers expect them to.
92065
92066 2000-10-23  Jim Meyering  <meyering@lucent.com>
92067
92068         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92069         wrong.  That set_locale call must not have any side effects.
92070         From Paul Eggert.
92071
92072 2000-10-22  Jim Meyering  <meyering@lucent.com>
92073
92074         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92075         [CYCLIC]: Remove now-unused definition.
92076
92077         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92078         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92079         Suggestion from Ulrich Drepper.
92080
92081 2000-10-21  Jim Meyering  <meyering@lucent.com>
92082
92083         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92084         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92085         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92086
92087 2000-10-21  Jim Meyering  <meyering@lucent.com>
92088
92089         * lib/dirname.c (memrchr): Declare if necessary.
92090         (dir_name): Remove the restriction that there be no
92091         trailing slashes.  Now, this code skips past them, effectively
92092         ignoring them.
92093         [TEST_DIRNAME] (main): New unit tests.
92094
92095         * lib/memrchr.c: New file from GNU libc.
92096         Undef __memrchr, too.
92097         [!weak_alias]: Define __memrchr to memrchr.
92098         Guard weak_alias use with `#ifdef weak_alias'.
92099
92100 2000-10-21  Jim Meyering  <meyering@lucent.com>
92101
92102         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92103         (dir_name): Use dir_name_r.
92104         * lib/dirname.h (dir_name_r): Declare it.
92105
92106 2000-10-17  Jim Meyering  <meyering@lucent.com>
92107
92108         * lib/quote.h (PARAMS): Define and use.
92109         Reported by Akim Demaille.
92110
92111         * lib/getopt.c: Update from libc.
92112
92113 2000-10-16  Jim Meyering  <meyering@lucent.com>
92114
92115         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92116         setlocale.
92117         From Jan Fedak.
92118
92119 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92120
92121         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92122
92123 2000-09-25  Jim Meyering  <meyering@lucent.com>
92124
92125         * lib/md5.h (rol): Define (from GnuPG).
92126
92127         * lib/sha.c: Give credit (GnuPG) where due.
92128         (M): Use rol rather than open-coding it.
92129         Add a FIXME comment.
92130
92131 2000-09-21  Jim Meyering  <meyering@lucent.com>
92132
92133         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92134         Reported by Michael Stone.
92135
92136 2000-09-20  Jim Meyering  <meyering@lucent.com>
92137
92138         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92139         (noinst_HEADERS): Add sha.h.
92140         Based on code from Scott G. Miller and from GnuPG.
92141
92142 2000-09-18  Jim Meyering  <meyering@lucent.com>
92143
92144         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92145         LIBS. Otherwise, everyone ends up linking with -lelf for some
92146         configurations.
92147         Reported by Mike Stone.
92148
92149 2000-09-15  Jim Meyering  <meyering@lucent.com>
92150
92151         * lib/regex.c: Update from libc.
92152
92153 2000-09-10  Jim Meyering  <meyering@lucent.com>
92154
92155         * lib/getopt.c (_getopt_internal): Update from glibc.
92156
92157 2000-09-09  Jim Meyering  <meyering@lucent.com>
92158
92159         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92160         think it should be used as a general replacement for isascii.
92161         * lib/fnmatch.c: Likewise.
92162         * lib/mbswidth.c: Likewise
92163         * lib/regex.c: Likewise.
92164
92165         Don't use atoi.
92166         * lib/userspec.c: Include sys/param.h and limits.h.
92167         Include xstrtol.h.
92168         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92169         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92170         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92171         UID, GID.  Check range.
92172
92173 2000-09-06  Jim Meyering  <meyering@lucent.com>
92174
92175         * lib/getopt.c (_getopt_internal): Update from glibc.
92176
92177 2000-08-30  Jim Meyering  <meyering@lucent.com>
92178
92179         * lib/strftime.c: Merge in changes from GNU libc.
92180
92181 2000-08-26  Jim Meyering  <meyering@lucent.com>
92182
92183         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92184         * m4/fpending.m4: New file.
92185
92186 2000-08-26  Jim Meyering  <meyering@lucent.com>
92187
92188         * lib/closeout.c: Include "__fpending.h".
92189         (close_stdout_status): Return right away if there's nothing to flush.
92190
92191         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92192         * lib/__fpending.c: New file.
92193         * lib/__fpending.h: New file.
92194
92195 2000-08-20  Jim Meyering  <meyering@lucent.com>
92196
92197         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92198         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92199         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92200
92201 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92202
92203         Improve fileutils installation on systems where running
92204         programs (like install) can't be unlinked.
92205         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92206         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92207
92208 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92209
92210         Standardize on "memory exhausted" instead of "Memory exhausted"
92211         or "virtual memory exhausted".
92212         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92213         "virtual memory exhausted".
92214         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92215         our own message.
92216         * lib/userspec.c (parse_user_spec): Likewise.
92217         * lib/bumpalloc.h: comment fix
92218         * lib/same.c, userspec.c: Include xalloc.h.
92219
92220         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92221         not char *const and pointing to a constant array.
92222         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92223         (xrealloc): Comment fix.
92224
92225         * lib/userspec.c (parse_user_spec):
92226         Don't translate a message until just before returning,
92227         to avoid unnecessary translation.
92228
92229 2000-08-07  Jim Meyering  <meyering@lucent.com>
92230
92231         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92232         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92233         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92234         getgroups.c, gethostname.c, getopt.h, group-member.c,
92235         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92236         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92237         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92238         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92239         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92240         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92241         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92242         yesno.c: Back out Copyright date changes for each file with no change
92243         this year.  This eases coordination with other programs using the same
92244         source code modules.  From Paul Eggert.
92245
92246 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92247
92248         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92249         not char, for compatibility with glibc 2.1.3 strftime.c.
92250
92251 2000-08-03  Greg McGary  <greg@mcgary.org>
92252
92253         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92254         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92255         (EXTEND_BUFFER): Use them.
92256
92257 2000-08-01  Jim Meyering  <meyering@lucent.com>
92258
92259         * lib/dirname.c (ISSLASH): Define.
92260         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92261         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92262         both `\' and `/' may be use as path separators.
92263         Based on a patch from Prashant TR.
92264
92265 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92266
92267         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92268         slot vector a constant, since it might get modified.
92269
92270 2000-07-31  Jim Meyering  <meyering@lucent.com>
92271
92272         * lib/xmalloc.c: Use `virtual memory exhausted', not
92273         `Memory exhausted'.
92274         * lib/obstack.c (print_and_abort): Likewise.
92275
92276 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92277
92278         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92279         buffer, so that the caller can always quote one small
92280         component of a "memory exhausted" message in slot 0.
92281         From a suggestion by Jim Meyering.
92282
92283 2000-07-30  Jim Meyering  <meyering@lucent.com>
92284
92285         * lib/makepath.c (make_path): Quote the other instance, too.
92286
92287         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92288         (STATIC_BUF_SIZE): Define.
92289         (quotearg_n_options): Use only statically allocated storage when
92290         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92291         than STATIC_BUF_SIZE.
92292
92293 2000-07-29  Jim Meyering  <meyering@lucent.com>
92294
92295         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92296         * lib/dirname.c (dir_name): Likewise.
92297
92298         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92299         `/'.
92300
92301         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92302         (dir_name): Assert that there are no trailing slashes.
92303
92304 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92305
92306         * lib/mbswidth.h (mbswidth): Add a flags argument.
92307         (mbswidth): New declaration.
92308         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92309         * lib/mbswidth.c (mbswidth): Add a flags argument.
92310         (mbsnwidth): New function.
92311
92312 2000-07-24  Jim Meyering  <meyering@lucent.com>
92313
92314         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92315
92316 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92317
92318         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92319
92320 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92321
92322         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92323         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92324         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92325         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92326         invoke multibyte primitives.
92327
92328 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92329
92330         * lib/quotearg.c:
92331         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92332         so that mbstate_t is always defined.
92333
92334         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92335         be 1 in at least one GCC installation, and this configuration
92336         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92337         performance on hosts that have mbrtowc but have only unibyte
92338         locales, but I assume these hosts are rare.
92339
92340 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92341
92342         * lib/mbswidth.c (_XOPEN_SOURCE):
92343         Don't define; this causes problems on Solaris 7.
92344         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92345
92346 2000-07-23  Jim Meyering  <meyering@lucent.com>
92347
92348         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92349         too: getgrgid, getpwuid, getuid.
92350
92351 2000-07-23  Jim Meyering  <meyering@lucent.com>
92352
92353         * lib/basename.c (base_name): Add an assertion.
92354
92355 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92356
92357         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92358         shadow its mbsinit function.
92359
92360 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92361
92362         * lib/mbswidth.h: New file.
92363         * lib/mbswidth.c: New file.
92364         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92365         (noinst_HEADERS): Add mbswidth.h.
92366
92367 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92368
92369         * lib/config.charset: Add support for FreeBSD. Improve support for
92370         HP-UX and IRIX 6.
92371
92372 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92373
92374         * m4/mbswidth.m4: New file.
92375         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92376
92377 2000-07-15  Jim Meyering  <meyering@lucent.com>
92378
92379         * lib/makepath.c: Include quote.h.
92380         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92381         corresponding argument in a `quote (...)' call.
92382         Give better diagnostics.
92383
92384         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92385         (noinst_HEADERS): Add quote.h.
92386
92387         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92388         from tar's src/misc.c.
92389         * lib/quote.h: New file.  Prototypes for same.
92390
92391 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92392
92393         From a suggestion by Bruno Haible.
92394         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92395         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92396         to decide whether to define the BeOS workaround macro;
92397         this adjusts to the change to AC_MBSTATE_T.
92398
92399 2000-07-14  Jim Meyering  <meyering@lucent.com>
92400
92401         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92402         jm_AC_TYPE_UINTMAX_T.
92403
92404 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92405
92406         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92407
92408         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92409         quotearg_buffer_restyled): Add support for
92410         clocale_quoting_style.  Undo previous change to
92411         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92412         and "{RIGHT QUOTATION MARK}" msgids.
92413
92414 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92415
92416         From a suggestion by Bruno Haible.
92417         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92418         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92419         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92420         and mbstate_t, to a single-part test that simply defines mbstate_t.
92421         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92422         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92423
92424 2000-07-10  Jim Meyering  <meyering@lucent.com>
92425
92426         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92427
92428         * m4/gnu-source.m4: Output to confdefs.h directly.
92429         Suggestion from Akim Demaille.
92430
92431 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92432
92433         The old behavior of quoting `like this' doesn't look good with
92434         newer, ISO-style fonts.  See:
92435         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92436
92437         Instead, quote "like this" by default.  Let the translator
92438         tailor the locale-specific quoting behavior by providing
92439         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92440
92441         * lib/quotearg.c (N_): New macro.
92442         (gettext_default): New function.
92443         (quotearg_buffer_restyled): Use
92444         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92445         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92446
92447 2000-07-09  Jim Meyering  <meyering@lucent.com>
92448
92449         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92450         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92451
92452         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92454
92455 2000-07-09  Jim Meyering  <meyering@lucent.com>
92456
92457         * lib/Most files: Update copyright dates to include 2000.
92458
92459 2000-07-08  Jim Meyering  <meyering@lucent.com>
92460
92461         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92462         if not defined.
92463         (xgethostname): Remove now-unnecessary #ifdef.
92464         Move declaration of `err' into loop where it's used.
92465
92466 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92467         and Bruno Haible  <haible@clisp.cons.org>
92468
92469         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92470         only if the test for an object-type mbstate_t fails.  This
92471         prevents us from mistakenly reporting that mbstate_t is a
92472         system object type after we "#define mbstate_t int" to work
92473         around its lack.
92474
92475 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92476         and Bruno Haible  <haible@clisp.cons.org>
92477
92478         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92479
92480 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92481
92482         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92483         to strerror_r.
92484         Include <ctype.h> for use of isalpha.
92485
92486 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92487
92488         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92489         by allocating a larger buffer. Test the gethostname return value for
92490         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92491         returns an error and ENAMETOOLONG isn't defined.
92492
92493 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92494
92495         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92496         dimension.
92497
92498 2000-07-04  Jim Meyering  <meyering@lucent.com>
92499
92500         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92501         of the deprecated AC_CHECKING.
92502
92503 2000-07-04  Jim Meyering  <meyering@lucent.com>
92504
92505         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92506         Reported by Bruno Haible.
92507
92508 2000-07-04  Jim Meyering  <meyering@lucent.com>
92509
92510         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92511         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92512         lacks mbrtowc.
92513
92514 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92515
92516         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92517         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92518
92519 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92520         and Bruno Haible  <haible@clisp.cons.org>
92521
92522         * lib/quotearg.c (mbrtowc):
92523         Assign to *pwc, and return 1 only if result is nonzero.
92524         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92525
92526 2000-07-03  Jim Meyering  <meyering@lucent.com>
92527
92528         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92529
92530 2000-07-03  Jim Meyering  <meyering@lucent.com>
92531
92532         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92533         This is necessary to get a definition of e.g., UTMP_FILE on
92534         HP-UX 10.20.
92535         From Bob Proulx.
92536
92537 2000-07-02  Jim Meyering  <meyering@lucent.com>
92538
92539         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92540
92541         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92542         AC_LIBOBJ(function_name).
92543         * m4/chown.m4: Likewise.
92544         * m4/fnmatch.m4: Likewise.
92545         * m4/ftruncate.m4: Likewise.
92546         * m4/getgroups.m4: Likewise.
92547         * m4/getline.m4: Likewise.
92548         * m4/group-member.m4: Likewise.
92549         * m4/jm-macros.m4: Likewise.
92550         * m4/lstat.m4: Likewise.
92551         * m4/malloc.m4: Likewise.
92552         * m4/memcmp.m4: Likewise.
92553         * m4/nanosleep.m4: Likewise.
92554         * m4/putenv.m4: Likewise.
92555         * m4/realloc.m4: Likewise.
92556         * m4/regex.m4: Likewise.
92557         * m4/stat.m4: Likewise.
92558         * m4/strftime.m4: Likewise.
92559
92560 2000-07-02  Jim Meyering  <meyering@lucent.com>
92561
92562         * lib/quotearg.c (mbstate_t): Don't define here.
92563
92564 2000-07-02  Jim Meyering  <meyering@lucent.com>
92565
92566         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92567
92568 2000-07-01  Jim Meyering  <meyering@lucent.com>
92569
92570         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92571
92572 2000-07-01  Jim Meyering  <meyering@lucent.com>
92573
92574         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92575         problem.
92576
92577 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92578
92579         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92580         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92581
92582 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92583
92584         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92585         per change in ../m4/ls-mntd-fs.m4.
92586         (read_filesystem_list): Ignore symbolic links.
92587
92588 2000-06-29  Jim Meyering  <meyering@lucent.com>
92589
92590         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92591         for declaration of strcmp.
92592
92593         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92594
92595         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92596         Avoid warning by casting result to `char *' to remove `const'.
92597
92598 2000-06-28  Jim Meyering  <meyering@lucent.com>
92599
92600         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
92601         included by quotearg.c, for which we perform this test.  From
92602         Bruno Haible.
92603
92604 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92605
92606         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
92607         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
92608         <utmpx.h> exists, put readutmp.o into LIBOBJS.
92609
92610 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92611
92612         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
92613
92614 2000-06-26  Paul Eggert  <eggert@twinsun.com>
92615
92616         savedir now sets errno on failure and invokes xmalloc to get memory.
92617         Fix a couple of other minor bugs while we're at it.
92618
92619         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
92620         (NAMLEN): Remove macro.
92621         (malloc, realloc): Remove decls.
92622         (stpcpy): Likewise.
92623         ("xalloc.h"): Include.
92624         (NAME_SIZE_DEFAULT): New macro.
92625         (savedir): Use xmalloc / xrealloc to allocate memory.
92626         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
92627         Skip "" directory entries.
92628         Use strlen to calculate directory entry length, since the old method
92629         is rarely used these days and isn't worth supporting.
92630         Don't use a pointer after freeing it.
92631         Check for integer overflow when calculating allocation size.
92632         Use memcpy to copy entries, instead of stpcpy.
92633         Set errno properly when returning NULL.
92634         Check for readdir error.
92635
92636 2000-06-26  Jim Meyering  <meyering@lucent.com>
92637
92638         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
92639
92640 2000-06-25  Jim Meyering  <meyering@lucent.com>
92641
92642         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
92643         Linux header bug when _XOPEN_SOURCE is defined to 500.
92644
92645 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92646
92647         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
92648         deficiency.
92649
92650 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92651
92652         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
92653         Include xalloc.h.
92654         Don't include <stdlib.h>.  Don't declare malloc, realloc.
92655
92656 2000-06-24  Jim Meyering  <meyering@lucent.com>
92657
92658         * m4/strerror_r.m4: Revive this file -- to try out an experimental
92659         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
92660         for which strerror does return char*, but which lacks a conveniently
92661         accessible declaration of the function.  If the compile-test says
92662         strerror_r doesn't work, then resort to a `run'-test that works on
92663         BeOS and segfaults on DEC Unix.
92664
92665 2000-06-24  Jim Meyering  <meyering@lucent.com>
92666
92667         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
92668
92669 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92670
92671         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
92672         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
92673
92674 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92675
92676         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
92677         (mbrtowc, mbstate_t): Define substitutes if
92678         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
92679         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
92680         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
92681
92682 2000-06-23  Jim Meyering  <meyering@lucent.com>
92683
92684         * m4/afs.m4: Add missing AC_MSG_RESULT.
92685         Reported by Bruno Haible.
92686
92687         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
92688         Suggestion from Bruno Haible.
92689
92690 2000-06-23  Jim Meyering  <meyering@lucent.com>
92691
92692         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
92693
92694 2000-06-21  Jim Meyering  <meyering@lucent.com>
92695
92696         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
92697
92698 2000-06-21  Jim Meyering  <meyering@lucent.com>
92699
92700         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
92701         (noinst_HEADERS): Add getstr.h.
92702
92703         * lib/getline.c (getstr): Move into a separate file.
92704         * lib/getstr.c (getstr): New file, extracted from getline.c, with
92705         the following changes: new parameter, delim2; both delim[12]
92706         parameters have type `int', not `char'.  The latter would lose
92707         with 8-bit delimiters.
92708         * lib/getstr.h: New file.
92709
92710 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92711
92712         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
92713         than 1024, return a memory chunk of least possible size, instead
92714         of size PATH_MAX + 2. In the loop, increment the size proportionally.
92715         Use free/xmalloc instead of xrealloc to avoid copying for very long
92716         paths.
92717
92718 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92719
92720         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
92721         the empty string.
92722
92723 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92724
92725         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
92726         address, not strdup.  Include <stdlib.h> and don't declare free().
92727
92728 2000-06-19  Jim Meyering  <meyering@lucent.com>
92729
92730         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
92731
92732 2000-06-18  Jim Meyering  <meyering@lucent.com>
92733
92734         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
92735
92736         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
92737         `checking whether...' message to be consistent with that of the
92738         lstat test.
92739
92740 2000-06-18  Jim Meyering  <meyering@lucent.com>
92741
92742         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92743         Besides, these days every porting target provides a mkdir function.
92744
92745         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
92746         needed. (this snippet comes from src/system.h).
92747
92748 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
92749
92750         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
92751
92752 2000-06-15  Paul Eggert  <eggert@twinsun.com>
92753
92754         * lib/human.c (adjust_value): New function.
92755         (human_readable_inexact): Apply rounding style even when
92756         printing approximate values.
92757
92758 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92759
92760         * lib/human.c (human_readable_inexact): Allow an input block
92761         size that is not a multiple of the output block size, and vice versa.
92762         Reported by Piergiorgio Sartor.
92763
92764 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92765
92766         * lib/getdate.y (get_date): Apply relative times after time
92767         zone indicator, not before.  Reported by Todd A. Jacobs.
92768
92769 2000-06-13  Jim Meyering  <meyering@lucent.com>
92770
92771         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
92772
92773         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
92774
92775 2000-06-12  Paul Eggert  <eggert@twinsun.com>
92776
92777         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
92778
92779 2000-06-12  Jim Meyering  <meyering@lucent.com>
92780
92781         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
92782         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
92783         optional argument.
92784         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
92785         the optional argument, `lib'.
92786
92787 2000-06-08  Jim Meyering  <meyering@lucent.com>
92788
92789         * m4/largefile.m4: Remove file (now that it's part of autoconf).
92790
92791 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92792
92793         Rewrite largefile configuration so that we don't need to run
92794         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
92795         AC_CANONICAL_HOST in configure.in -- jmm]
92796
92797         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
92798         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
92799         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
92800         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
92801         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
92802         All uses changed.
92803         Instead of inspecting the output of getconf, try to compile the
92804         test program without and with the macro definition.
92805         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
92806         for getconf.  Instead, check for the needed flags by compiling
92807         test programs.
92808
92809 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92810
92811         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
92812
92813 2000-06-04  Jim Meyering  <meyering@lucent.com>
92814
92815         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
92816         SunOS 4.1.4 for which gid_t is an unsigned type.
92817
92818 2000-06-03  Jim Meyering  <meyering@lucent.com>
92819
92820         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
92821         now that autoconf requires that.
92822
92823         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
92824         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
92825         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
92826
92827 2000-06-03  Jim Meyering  <meyering@lucent.com>
92828
92829         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
92830
92831 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92832
92833         * m4/glibc21.m4: New file.
92834         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
92835
92836 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92837
92838         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
92839         newer, don't install charset.alias.
92840         * lib/config.charset: Change the Linux/glibc rules so they become empty
92841         on glibc-2.1 or newer.
92842
92843 2000-06-02  Jim Meyering  <meyering@lucent.com>
92844
92845         * lib/mountlist.c: Back out last change.  Instead, do this...
92846         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
92847         me_dummy member using the same `ignore'-testing code.
92848         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
92849         fs_type strings.
92850         From Mark D. Roth.
92851
92852 2000-05-29  Jim Meyering  <meyering@lucent.com>
92853
92854         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
92855         mounts with the `ignore' attribute.  Based on a patch from
92856         Mark D. Roth.
92857
92858 2000-05-28  Jim Meyering  <meyering@lucent.com>
92859
92860         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
92861         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92862         * m4/stat.m4: Likewise.
92863         * m4/lstat.m4: Likewise.
92864         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
92865
92866         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
92867         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
92868
92869 2000-05-26  Jim Meyering  <meyering@lucent.com>
92870
92871         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
92872
92873 2000-05-24  Jim Meyering  <meyering@lucent.com>
92874
92875         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
92876         autoconf requires that.
92877         * m4/lib-check.m4: Likewise.
92878         * m4/jm-macros.m4: Likewise.
92879         * m4/strftime.m4: Likewise.
92880
92881         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
92882         AC_CHECK_DECLS, now that autoconf requires that.
92883
92884 2000-05-22  Jim Meyering  <meyering@lucent.com>
92885
92886         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92887         * m4/lstat.m4: Likewise.
92888
92889 2000-05-22  Jim Meyering  <meyering@lucent.com>
92890
92891         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
92892
92893 2000-05-20  Jim Meyering  <meyering@lucent.com>
92894
92895         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
92896         (jm_PREREQ): Use it.
92897
92898 2000-05-18  Jim Meyering  <meyering@lucent.com>
92899
92900         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
92901         back, too, since it may have been modified by allocate_entry.
92902         (hash_delete): Rewrite to use neither the assignment operator
92903         nor the comma operator in an if-expression.
92904
92905 2000-05-15  Paul Eggert  <eggert@twinsun.com>
92906
92907         * lib/closeout.c:
92908         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
92909         Remove; no longer needed.
92910         "quotearg.h": Add include.
92911         (file_name): Do not bother to explicitly initialize to NULL; it's less
92912         efficient on some hosts.
92913         (close_stdout_status): Remove test as to whether stdout was already
92914         closed; it breaks for the case "echo x | sort >&-".
92915         Quote file name colons.
92916         Do not assume that _("write error") lacks format strings.
92917
92918 2000-05-15  Jim Meyering  <meyering@lucent.com>
92919
92920         * lib/version-etc.c (version_etc_copyright): Update the copyright
92921         string used in all --version output.
92922
92923 2000-05-14  Jim Meyering  <meyering@lucent.com>
92924
92925         * lib/closeout.c (close_stdout_set_file_name): New function.
92926         (close_stdout_status): Use new file-scoped global.
92927         Return right away if fstat says the stdout file descriptor is invalid.
92928         * lib/closeout.h (close_stdout_set_file_name): Declare.
92929
92930 2000-05-10  Jim Meyering  <meyering@lucent.com>
92931
92932         * lib/closeout.c [default_exit_status]: New file-scoped variable.
92933         (close_stdout_set_status): New function.
92934         * lib/closeout.h (close_stdout_set_status): Declare.
92935
92936 2000-05-09  Jim Meyering  <meyering@lucent.com>
92937
92938         * m4/gettext.m4: Rename this...
92939         * m4/libintl.m4: ...to this.
92940
92941 2000-05-08  Jim Meyering  <meyering@lucent.com>
92942
92943         * lib/long-options.c: Don't include closeout.h.
92944         (parse_long_options): Don't call close_stdout for --version.
92945
92946 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92947
92948         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92949         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92950         2.1.3 bug.  This avoids a clash when files like regex.c define
92951         _GNU_SOURCE.
92952
92953 2000-05-06  Jim Meyering  <meyering@lucent.com>
92954
92955         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92956         (AC_REPLACE_FUNCS): Add strnlen.
92957
92958         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92959         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92960
92961         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92962         AC_SEARCH_LIBS call for nanosleep.
92963         (LIB_NANOSLEEP): Set and AC_SUBST.
92964
92965 2000-05-06  Jim Meyering  <meyering@lucent.com>
92966
92967         * lib/strnlen.c: Undefine __strnlen and strnlen.
92968         [!weak_alias]: Define __strnlen to strnlen.
92969
92970         * lib/atexit.c: New file, from libiberty.
92971
92972 2000-05-06  Jim Meyering  <meyering@lucent.com>
92973
92974         * lib/closeout.c (close_stdout_status): Also check for errors on the
92975         stderr stream.
92976
92977 2000-05-05  Jim Meyering  <meyering@lucent.com>
92978
92979         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92980         AC_SEARCH_LIBS call for clock_gettime.
92981         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92982
92983         * m4/search-libs.m4: Update from autoconf.
92984
92985         su doesn't work on Solaris 2.6.
92986         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92987         <shadow.h>.  Reported by Dragos Harabor.
92988
92989 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92990
92991         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92992         memcpy instead of xmalloc, xrealloc, path_concat.
92993         (locale_charset): Treat empty environment variables as absent.
92994         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92995
92996 2000-05-04  Jim Meyering  <meyering@lucent.com>
92997
92998         * lib/getopt.c: Update from glibc.
92999         * lib/obstack.c: Likewise.
93000         * lib/obstack.h: Likewise.
93001         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93002         file
93003
93004         * lib/regex.h: Likewise.
93005         * lib/strndup.c: Likewise.
93006         * lib/strnlen.c: New file, from glibc.
93007
93008 2000-05-03  Jim Meyering  <meyering@lucent.com>
93009
93010         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93011
93012 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93013
93014         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93015         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93016         compile-time test, rather than inspecting host and OS, to
93017         decide whether to define _LARGEFILE_SOURCE.
93018
93019 2000-05-01  Jim Meyering  <meyering@lucent.com>
93020
93021         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93022
93023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93024         Based on a patch from Bruno Haible.
93025
93026 2000-05-01  Jim Meyering  <meyering@lucent.com>
93027
93028         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93029
93030 2000-04-29  Jim Meyering  <meyering@lucent.com>
93031
93032         * lib/path-concat.c: Declare strdup only if it's not defined.
93033         * lib/canon-host.c: Likewise.
93034
93035 2000-04-28  Jim Meyering  <meyering@lucent.com>
93036
93037         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93038         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93039         is included first, then limits.h is included by locale.h by libintl.h.
93040         From John David Anglin.
93041
93042 2000-04-25  Jim Meyering  <meyering@lucent.com>
93043
93044         * lib/makepath.c (S_IRWXUGO): Define.
93045         (make_path): Always perform explicit chmod if MODE specifies any
93046         of the `special' permission bits.  Prompted by a bug report against
93047         install from Mate Wierdl and Joost van Baal.
93048
93049 2000-04-18  Jim Meyering  <meyering@lucent.com>
93050
93051         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93052         (jm_PREREQ): Use it.
93053
93054 2000-04-18  Jim Meyering  <meyering@lucent.com>
93055
93056         * lib/README: New file.
93057
93058         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93059         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93060
93061 2000-04-17  Jim Meyering  <meyering@lucent.com>
93062
93063         Get it right :-)
93064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93065         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93066         Suggestion from Akim Demaille.
93067
93068 2000-04-17  Jim Meyering  <meyering@lucent.com>
93069
93070         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93071         the definition of it to rpl_strftime also defined-away the system's
93072         declaration.
93073
93074 2000-04-15  Jim Meyering  <meyering@lucent.com>
93075
93076         Use `C' to denote so-called `contiguous' files, the same way
93077         that tar does.
93078         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93079         (ftypelet): Use S_ISCTG.
93080         From Michael Deutschmann.
93081
93082 2000-04-14  Jim Meyering  <meyering@lucent.com>
93083
93084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93085         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93086         clobbered.
93087
93088 2000-04-14  Jim Meyering  <meyering@lucent.com>
93089
93090         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93091
93092 2000-04-13  Jim Meyering  <meyering@lucent.com>
93093
93094         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93095         AH_VERBATIM to insert required #ifndef into config.h.in.
93096         Suggestion from Akim Demaille.
93097
93098 2000-04-12  Jim Meyering  <meyering@lucent.com>
93099
93100         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93101         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93102         Christian Krackowizer.
93103
93104         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93105         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93106         (AC_SYS_LARGEFILE): Require.
93107         (AM_C_PROTOTYPES): Require.
93108
93109 2000-04-08  Jim Meyering  <meyering@lucent.com>
93110
93111         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93112         names don't conflict.  Reported by Eli Zaretskii.
93113
93114 2000-04-07  Jim Meyering  <meyering@lucent.com>
93115
93116         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93117         sys/types.h, to work around system header problems on AIX 3.2.5.
93118         From Bruno Haible.
93119
93120 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93121
93122         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93123         bug.  Deal with the different error behavior of Irix iconv.
93124
93125 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93126
93127         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93128         IRIX if the installer said otherwise.
93129
93130 2000-04-05  Jim Meyering  <meyering@lucent.com>
93131
93132         Portability tweaks required for ultrix4.3.
93133         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93134         (jm_CHECK_DECLS): Add getutent to the list of functions.
93135         (_jm_DECL_HEADERS): Add utmpx.h.
93136         From John David Anglin.
93137
93138         * m4/strftime.m4: Back out the 2000-04-02 change.
93139         Instead of that change, simply undefine putenv in the test program.
93140
93141 2000-04-05  Jim Meyering  <meyering@lucent.com>
93142
93143         Portability tweaks required for ultrix4.3.
93144         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93145         getutent.
93146         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93147         * lib/canon-host.c: Declare strdup.
93148         * lib/path-concat.c: Likewise.
93149         From John David Anglin.
93150
93151 2000-04-04  Jim Meyering  <meyering@lucent.com>
93152
93153         Be more DOS 8.3-friendly.
93154         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93155         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93156         * lib/Makefile.am: Reflect renaming.
93157         Reported by Eli Zaretskii.
93158
93159         Use a temporary file name that won't clash with `charset.alias'
93160         in the DOS 8.3 name space.
93161         * lib/Makefile.am (charset_tmp): Define.
93162         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93163         (uninstall-local): Likewise.
93164         Reported by Eli Zaretskii.
93165
93166 2000-04-03  Jim Meyering  <meyering@lucent.com>
93167
93168         * m4/gettext.m4: Fix typo in comment.
93169
93170         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93171         textutils/configure.in).  Suggestion from Paul Eggert.
93172         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93173
93174 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93175
93176         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93177         variable in the shell rather than using putenv, which isn't
93178         portable.  This avoids the configure-time inter-test dependency
93179         on the potentially-renamed putenv function.
93180
93181 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93182
93183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93184         before checking struct stat.st_blksize, so that
93185         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93186
93187 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93188
93189         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93190         since strftime.c uses HAVE_STRFTIME to decide whether to use
93191         the underlying strftime.
93192
93193 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93194
93195         * lib/time/strftime.c (my_strftime): Make sure we call the system
93196         strftime, not ourselves, when invoking the underlying strftime.
93197
93198 2000-03-24  Jim Meyering  <meyering@lucent.com>
93199
93200         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93201         (charset_alias): Define.
93202         (install-exec-local): Factor out common code.
93203         (uninstall-local): Split lines longer than 80.
93204         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93205         (SUFFIXES): Define.
93206         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93207         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93208
93209 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93210
93211         * lib/config.charset: Output a line containing "Packages using this
93212         file".
93213         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93214         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93215         ref-del.sed): New rules.
93216
93217 2000-03-17  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93220         Otherwise, include <strings.h>
93221
93222 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93223
93224         * lib/unicodeio.c (utf8_wctomb): New function.
93225         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93226         format instead of in UCS-4 with platform dependent endianness.
93227
93228 2000-03-10  Jim Meyering  <meyering@lucent.com>
93229
93230         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93231         From Marco Franzen.
93232
93233 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93234
93235         * lib/savedir.c (savedir): Work even if directory size is
93236         negative; this can happen with some screwy NFS configurations.
93237
93238 2000-03-06  Jim Meyering  <meyering@lucent.com>
93239
93240         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93241         if it's NULL (because we ran out of memory).  From Bruno Haible.
93242
93243 2000-03-05  Jim Meyering  <meyering@lucent.com>
93244
93245         * lib/localcharset.c ("path-concat.h"): Include.
93246         (get_charset_aliases): Use path_concat instead of ANSI string
93247         concatenation.
93248
93249         * lib/unicodeio.h (PARAMS): Define.
93250         Use it to guard prototype.
93251
93252 2000-03-04  Jim Meyering  <meyering@lucent.com>
93253
93254         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93255         for lib/localcharset.c.
93256
93257 2000-03-04  Jim Meyering  <meyering@lucent.com>
93258
93259         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93260         installing into it.
93261         (uninstall-local): Uncomment this rule so `make distcheck' works
93262         once again.
93263
93264         * lib/unicodeio.c (<errno.h>): Include it.
93265         (errno): Declare if not defined.
93266
93267         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93268
93269         * lib/config.charset: New version, incorporating remarks from a linux
93270         i18n mailing list.  From Bruno Haible.
93271
93272 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93273
93274         * m4/codeset.m4: New file.
93275         * m4/iconv.m4: New file.
93276         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93277
93278 2000-03-03  Jim Meyering  <meyering@lucent.com>
93279
93280         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93281
93282 2000-03-02  Jim Meyering  <meyering@lucent.com>
93283
93284         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93285         the messages come out on separate lines.
93286
93287         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93288         rather than jm_CHECK_DECLARATIONS.
93289         * m4/decl.m4: Remove now-unused file.
93290
93291         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93292         geteuid.
93293
93294 2000-03-02  Jim Meyering  <meyering@lucent.com>
93295
93296         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93297
93298 2000-03-01  Jim Meyering  <meyering@lucent.com>
93299
93300         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93301         * lib/unicodeio.c: Likewise.
93302
93303 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93304
93305         * lib/config.charset: New file.
93306         * lib/localcharset.c: New file.
93307         * lib/unicodeio.h, lib/unicodeio.c: New files.
93308         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93309         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93310         (noinst_HEADERS): Add unicodeio.h.
93311         (all-local, install-exec-local, charset.alias): New targets.
93312
93313 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93314
93315         * lib/quotearg.c (ALERT_CHAR): New macro.
93316         (quotearg_buffer_restyled): Use it.
93317
93318 2000-02-27  Jim Meyering  <meyering@lucent.com>
93319
93320         * m4/check-decl.m4: Add getenv to the list.
93321
93322 2000-02-27  Jim Meyering  <meyering@lucent.com>
93323
93324         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93325         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93326
93327         * lib/backupfile.c: Guard inclusion of stdlib.h with
93328         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93329         Declare malloc if needed.
93330
93331         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93332         `#ifndef HAVE_DECL..'
93333         now that autoconf always defines the HAVE_DECL_ symbols.
93334         * lib/human.c: Likewise.
93335         * lib/same.c: Likewise.
93336         * lib/strtoumax.c: Likewise.
93337
93338         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93339         declaration check was not run.
93340         * lib/hash.c: Likewise.
93341         * lib/human.c: Likewise.
93342         * lib/same.c: Likewise.
93343         * lib/strtoumax.c: Likewise.
93344
93345         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93346         `.', then first look up the entire `.'-containing string as a login
93347         name.
93348
93349 2000-02-23  Jim Meyering  <meyering@lucent.com>
93350
93351         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93352         in place of my hack.
93353
93354 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93355
93356         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93357         (textint): New typedef.
93358         (parser_control): Member year changed from int to textint.
93359         All uses changed.
93360         (YYSTYPE): Removed; replaced by %union with int and textint members.
93361         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93362         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93363         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93364         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93365         (date, number, to_year): Use width of number in digits, not its value,
93366         to determine whether it's a 2-digit year, or a 2-digit time.
93367         (yylex): Store number of digits of numeric tokens.
93368         Reported by John Kendall.
93369
93370         (parser_control): Changed from struct parser_control to typedef (for
93371         consistency).  All uses changed.
93372
93373         (tID): Removed; not used.
93374         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93375
93376 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93377
93378         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93379         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93380
93381 2000-02-12  Jim Meyering  <meyering@lucent.com>
93382
93383         * lib/userspec.c (ISDIGIT): Define it.
93384         (isdigit): Remove definition.
93385         (is_number): Use ISDIGIT, not isdigit.
93386         <libintl.h>: Include.
93387         (_ and N_): Define.
93388         (parse_user_spec): Mark translatable strings.
93389
93390 2000-02-10  Jim Meyering  <meyering@lucent.com>
93391
93392         With these changes, nanosleep.[ch] are finally enough like the other
93393         lib/* replacement files to compile on a few more losing systems.
93394
93395         * lib/nanosleep.h: Don't include config.h.
93396         Remove prototype from declaration of nanosleep.
93397         (PARAMS): Remove now-unneeded definition.
93398         * lib/nanosleep.c: #undef nanosleep.
93399         (rpl_nanosleep): Rename from nanosleep.
93400
93401 2000-02-10  Jim Meyering  <meyering@lucent.com>
93402
93403         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93404         gnu_nanosleep to rpl_nanosleep.
93405
93406 2000-02-09  Jim Meyering  <meyering@lucent.com>
93407
93408         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93409         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93410
93411 2000-02-08  Akim Demaille  <akim@epita.fr>
93412
93413         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93414         `[' and `]' and remove uses of `changequote'.
93415         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93416         (AC_SYS_LARGEFILE): Likewise.
93417         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93418         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93419         of changequote.
93420         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93421         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93422         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93423         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93424
93425 2000-02-05  Jim Meyering  <meyering@lucent.com>
93426
93427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93428         Remove explicit use of AC_HEADER_TIME.  It is required by
93429         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93430         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93431         in autoconf whereby the expansion of the latter ended up preceding
93432         the expansion of its prerequisite, AC_HEADER_TIME.
93433         Reported by Volker Borchert.
93434
93435 2000-02-03  Jim Meyering  <meyering@lucent.com>
93436
93437         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93438
93439 2000-02-03  Jim Meyering  <meyering@lucent.com>
93440
93441         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93442         rather than with `#if HAVE_UTMPNAME'.
93443
93444 2000-02-02  Jim Meyering  <meyering@lucent.com>
93445
93446         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93447         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93448         Reported by Eli Zaretskii.
93449
93450 2000-02-01  Jim Meyering  <meyering@lucent.com>
93451
93452         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93453
93454 2000-01-31  Jim Meyering  <meyering@lucent.com>
93455
93456         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93457         functions.  Add the time.h and sys/time.h headers along with the
93458         AC_REQUIRE'ment of AC_HEADER_TIME.
93459
93460 2000-01-31  Jim Meyering  <meyering@lucent.com>
93461
93462         * lib/nanosleep.h (nanosleep): Guard declaration with
93463         `#if ! HAVE_DECL_NANOSLEEP'.
93464         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93465         the declaration in that vendor's sys/timers.h.
93466         Reported by Christian Krackowizer.
93467
93468         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93469         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93470         (ISPRINT): Likewise.
93471         Reported by Tom Tromey.
93472
93473 2000-01-30  Jim Meyering  <meyering@lucent.com>
93474
93475         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93476
93477         * m4/prereq.m4 (utmp_includes): Define.
93478         Check for ut_user and ut_name members in both struct utmpx
93479         and struct utmp.
93480
93481 2000-01-30  Jim Meyering  <meyering@lucent.com>
93482
93483         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93484         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93485         header files where only utmpx.ut_user is declared.
93486
93487         * lib/readutmp.h (UT_USER): Define.
93488
93489 2000-01-29  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/lib-check.m4: New file containing library-related checks from
93492         fileutils and sh-utils (textutils had none).
93493
93494 2000-01-28  Jim Meyering  <meyering@lucent.com>
93495
93496         * m4/perl.m4: Change format of warning message to look more like that
93497         from the missing script.  Suggestion from François Pinard.
93498
93499 2000-01-25  Jim Meyering  <meyering@lucent.com>
93500
93501         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93502         well as time.h in the compile check.
93503         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93504         Fix typo in cross-compiling case: s/yes/no/.
93505
93506 2000-01-23  Jim Meyering  <meyering@lucent.com>
93507
93508         * m4/jm-macros.m4: Move df-related tests here from
93509         fileutils/configure.in
93510
93511         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93512         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93513
93514         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93515         s/space/ac_fsusage_space/.
93516         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93517
93518         * m4/ftruncate.m4: New file (derived from part of
93519         fileutils/configure.in).
93520         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93521         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93522
93523         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93524         AC_SUBST these here, rather than just in sh-util/configure.in, so
93525         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93526         all the same.
93527         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93528         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93529         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93530         (AC_SUBST(POW_LIBM)): Likewise.
93531         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93532
93533 2000-01-23  Jim Meyering  <meyering@lucent.com>
93534
93535         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93536         obstack.c.
93537
93538 2000-01-22  Jim Meyering  <meyering@lucent.com>
93539
93540         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93541
93542         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93543
93544         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93545         configure.in
93546         (AC_CHECK_HEADERS): Likewise for sh-utils.
93547         (AC_CHECK_HEADERS): Likewise for textutils.
93548         Merge the three lists of headers.
93549
93550         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93551         from fileutils' configure.in.
93552
93553         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93554         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93555         check-decl.m4.
93556
93557         * m4/check-decl.m4: Use #if rather than #ifdef.
93558         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93559         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93560         (_jm_DECL_HEADERS): Define new function.
93561         (jm_CHECK_DECLARATIONS): Require it.
93562
93563 2000-01-22  Jim Meyering  <meyering@lucent.com>
93564
93565         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93566         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93567         Required for some AIX systems.  Reported by Christian Krackowizer.
93568         [TESTING] (main): New function.
93569
93570         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93571         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93572         letters.
93573
93574         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93575         iswprint.
93576
93577         * lib/strverscmp.c (ISDIGIT): Define.
93578         (strverscmp): Use ISDIGIT, not isdigit.
93579
93580 2000-01-19  Jim Meyering  <meyering@lucent.com>
93581
93582         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93583         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93584         defines `struct timespec' in <sys/time.h>
93585
93586         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93587         Thanks to Akim for explaining.
93588
93589 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93590
93591         * lib/nanosleep.c (nanosleep):
93592         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93593         POSIX.1 doesn't require SA_INTERRUPT and some systems
93594         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93595         it's been part of POSIX.1 since day 1 (in 1988).
93596
93597 2000-01-17  Jim Meyering  <meyering@lucent.com>
93598
93599         * lib/interlock: Remove unused file.  Reported by François Pinard.
93600
93601 2000-01-16  Paul Eggert  <eggert@twinsun.com>
93602
93603         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
93604         alert, backslash, formfeed, and vertical tab unnecessarily in
93605         shell quoting style.
93606
93607 2000-01-16  Jim Meyering  <meyering@lucent.com>
93608
93609         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
93610         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
93611         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
93612         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
93613
93614 2000-01-16  Jim Meyering  <meyering@lucent.com>
93615
93616         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
93617         because the latter didn't work.
93618
93619 2000-01-15  Jim Meyering  <meyering@lucent.com>
93620
93621         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
93622         (AC_REPLACE_FUNCS): Add memcpy and memset.
93623         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
93624         Add strpbrk.
93625         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
93626
93627 2000-01-12  Jim Meyering  <meyering@lucent.com>
93628
93629         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
93630         (jm_PREREQ): Use it.
93631         (jm_PREREQ_READUTMP): New macro.
93632         (jm_PREREQ): Use it.
93633
93634 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93635
93636         Quote multibyte characters correctly.
93637         * m4/c-bs-a.m4: New file.
93638         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
93639         (jm_PREREQ): Use it.
93640
93641 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93642
93643         * m4/uintmax_t.m4: Port to autoconf 2.13.
93644
93645 2000-01-08  Jim Meyering  <meyering@ascend.com>
93646
93647         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
93648         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
93649
93650 2000-01-04  Jim Meyering  <meyering@ascend.com>
93651
93652         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
93653         jm_STRUCT_DIRENT_D_TYPE.
93654         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
93655         jm_STRUCT_DIRENT_D_INO.
93656         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
93657         jm_STRUCT_UTIMBUF.
93658         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
93659         renamings.
93660         * m4/utime.m4: Likewise.
93661
93662         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
93663         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
93664
93665 2000-01-03  Paul Eggert  <eggert@twinsun.com>
93666
93667         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
93668         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
93669
93670 2000-01-02  Jim Meyering  <meyering@ascend.com>
93671
93672         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
93673         remember if this is necessary.
93674
93675 1999-12-26  Jim Meyering  <meyering@ascend.com>
93676
93677         * m4/jm-macros.m4: Use it here.
93678         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
93679
93680 1999-12-23  Jim Meyering  <meyering@ascend.com>
93681
93682         * m4/jm-macros.m4: Check for clock_gettime (moved from
93683         fileutils/configure.in)
93684         Check for gettimeofday.
93685
93686 1999-12-20  Jim Meyering  <meyering@ascend.com>
93687
93688         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
93689         autoconf-2.14a-1999-12-20.
93690
93691 1999-12-19  Jim Meyering  <meyering@ascend.com>
93692
93693         * m4/lstat-slash.m4: New file.
93694         * m4/jm-macros.m4: Use the new macro:
93695         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93696
93697 1999-12-07  Jim Meyering  <meyering@ascend.com>
93698
93699         * m4/perl.m4: Require that File::Compare be available, too.
93700         Too many systems seem to lack it.
93701
93702         * m4/strftime.m4: Add checks for most of the cpp macros tested in
93703         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
93704
93705 1999-11-18  Paul Eggert  <eggert@twinsun.com>
93706
93707         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
93708         problem with the QNX 4.25 shell, which doesn't propagate exit
93709         status of failed commands inside shell assignments.
93710
93711 1999-11-17  Jim Meyering  <meyering@ascend.com>
93712
93713         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
93714
93715 1999-11-07  Jim Meyering  <meyering@ascend.com>
93716
93717         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
93718
93719 1999-11-06  Jim Meyering  <meyering@ascend.com>
93720
93721         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
93722         * m4/jm-macros.m4 (jm_MACROS): Use it here.
93723
93724 1999-11-05  Jim Meyering  <meyering@ascend.com>
93725
93726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
93727         configure.in of textutils, fileutils, and sh-utils into this one
93728         (shared between those packages) file.
93729         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
93730         AC_STRUCT_ST_BLKSIZE.
93731
93732 1999-11-03  Jim Meyering  <meyering@ascend.com>
93733
93734         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
93735         of AC_CHECK_TYPE checks includes unistd.h.
93736         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
93737         Suggestion from Akim Demaille.
93738
93739 1999-10-30  Jim Meyering  <meyering@ascend.com>
93740
93741         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93742         m4-quoted string.
93743         * m4/ls-mntd-fs.m4: Likewise.
93744         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
93745         * m4/jm-winsz1.m4: Likewise.
93746
93747         * m4/const.m4: Remove file, since the fix made it into the experimental
93748         version of autoconf.
93749         * m4/mktime.m4: Likewise.
93750
93751         * m4/check-type.m4: Remove file, now that the latest version of
93752         AC_CHECK_TYPE takes a third arg to specify additional #includes.
93753
93754         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
93755         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
93756         AC_CHECK_TYPE.
93757
93758 1999-10-04  Jim Meyering  <meyering@ascend.com>
93759
93760         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
93761
93762 1999-09-22  Paul Eggert  <eggert@twinsun.com>
93763
93764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
93765         2.95.1 bug with HP-UX 10.20.
93766
93767 1999-09-17  Jim Meyering  <meyering@ascend.com>
93768
93769         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
93770         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
93771         due to missing strdup (against sh-utils-2.0).
93772
93773 1999-08-29  Jim Meyering  <meyering@ascend.com>
93774
93775         * m4/jm-macros.m4: Require jm_BISON.
93776         * m4/bison.m4: New file.
93777
93778 1999-08-17  Paul Eggert  <eggert@twinsun.com>
93779
93780         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
93781         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
93782
93783 1999-08-05  Jim Meyering  <meyering@ascend.com>
93784
93785         * m4/getline.m4: Rename test file from conftestdata to conftest.data
93786         to avoid conflicts with `conftest' on 8+3 filesystems.
93787         Suggestion from Eli Zaretskii.
93788
93789 1999-08-04  Jim Meyering  <meyering@ascend.com>
93790
93791         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
93792         fileutils and sh-utils (textutils's getline test was inadequate).
93793         (AM_FUNC_GETLINE): Run this test.
93794         (AC_CHECK_FUNCS): Check for getdelim.
93795         Reported by Bob Proulx.
93796
93797 1999-08-02  Jim Meyering  <meyering@ascend.com>
93798
93799         * m4/jm-macros.m4: Add a comment.
93800
93801 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93802
93803         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
93804         <inttypes.h> defines strtoumax as a macro (and not as a
93805         function).
93806
93807 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93808
93809         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
93810         that we can shift, multiply and divide unsigned long long
93811         values; Ultrix cc can't do it.
93812
93813 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93814
93815         * m4/mktime.m4: New file, which is a preview of what should appear
93816         in the next public autoconf release.
93817
93818 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93819
93820         * m4/lfs.m4: Remove this file.
93821         * m4/largefile.m4: New file.  It contains the old contents of
93822         lfs.m4, except that all names with prefix AC_LFS have been
93823         changed to use the prefix AC_SYS_LARGEFILE instead, to be
93824         compatible with future autoconf versions.  Also, some minor m4
93825         quoting problems have been fixed.
93826
93827 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93828
93829         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
93830         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
93831         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
93832         and simplify the shell code.
93833
93834 1999-08-01  Jim Meyering  <meyering@ascend.com>
93835
93836         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
93837         m4.
93838
93839 1999-07-20  Jim Meyering  <meyering@ascend.com>
93840
93841         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
93842
93843 1999-07-15  Jim Meyering  <meyering@ascend.com>
93844
93845         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
93846
93847 1999-05-22  Jim Meyering  <meyering@ascend.com>
93848
93849         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
93850
93851 1999-05-20  Jim Meyering  <meyering@ascend.com>
93852
93853         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
93854         Add a colon after each `then' in case $4 is empty.
93855
93856 1999-05-16  Jim Meyering  <meyering@ascend.com>
93857
93858         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
93859
93860 1999-05-10  Jim Meyering  <meyering@ascend.com>
93861
93862         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
93863
93864         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
93865         AC_FUNC_MKTIME.
93866
93867 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93868
93869         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
93870
93871 1999-05-04  Paul Eggert  <eggert@twinsun.com>
93872
93873         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
93874         not CPPFLAGS, so that linking works correctly in IRIX.
93875
93876 1999-04-30  Paul Eggert  <eggert@twinsun.com>
93877
93878         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
93879
93880 1999-04-20  Paul Eggert  <eggert@twinsun.com>
93881
93882         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
93883         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
93884         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
93885         jm_AC_TYPE_UNSIGNED_LONG_LONG.
93886         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
93887
93888         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
93889
93890 1999-04-20  Jim Meyering  <meyering@ascend.com>
93891
93892         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
93893         AC_REPLACE xstroull if necessary.  From Paul Eggert.
93894         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
93895
93896 1999-04-18  Jim Meyering  <meyering@ascend.com>
93897
93898         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
93899         * m4/jm-macros.m4: Use it.
93900
93901 1999-04-06  Jim Meyering  <meyering@ascend.com>
93902
93903         * m4/strftime.m4: Remove test for %f.
93904
93905 1999-03-29  Jim Meyering  <meyering@ascend.com>
93906
93907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
93908         superset of the AC_TYPE_* checks in the textutils, fileutils,
93909         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
93910         AC_TYPE_PID_T.
93911
93912 1999-03-28  Jim Meyering  <meyering@ascend.com>
93913
93914         * m4/jm-macros.m4: Define GNU_PACKAGE here.
93915         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
93916         replaced e.g., in the *.sh files of the sh-utils.
93917
93918 1999-03-20  Jim Meyering  <meyering@ascend.com>
93919
93920         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
93921         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
93922         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
93923
93924 1999-03-19  Jim Meyering  <meyering@ascend.com>
93925
93926         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
93927
93928 1999-03-12  Jim Meyering  <meyering@ascend.com>
93929
93930         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
93931
93932 1999-03-07  Jim Meyering  <meyering@ascend.com>
93933
93934         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
93935         declared.
93936
93937 1999-02-17  Jim Meyering  <meyering@ascend.com>
93938
93939         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
93940         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
93941
93942 1999-02-07  Jim Meyering  <meyering@ascend.com>
93943
93944         * m4/group-member.m4: New file -- extracted from sh-utils'
93945         configure.in.
93946
93947         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93948         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93949
93950 1999-02-06  Jim Meyering  <meyering@ascend.com>
93951
93952         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93953         * m4/fnmatch.m4: Likewise.
93954         * m4/getgroups.m4: Likewise.
93955         * m4/lstat.m4: Likewise.
93956         * m4/malloc.m4: Likewise.
93957         * m4/putenv.m4: Likewise.
93958         * m4/realloc.m4: Likewise.
93959         * m4/regex.m4: Likewise.
93960         * m4/stat.m4: Likewise.
93961         * m4/strftime.m4: Likewise.
93962         Suggestion from Alain Magloire.
93963
93964         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93965         * m4/fnmatch.m4: Likewise.
93966         * m4/getgroups.m4: Likewise.
93967         * m4/getline.m4: Likewise.
93968         * m4/lstat.m4: Likewise.
93969         * m4/malloc.m4: Likewise.
93970         * m4/memcmp.m4: Likewise.
93971         * m4/putenv.m4: Likewise.
93972         * m4/realloc.m4: Likewise.
93973         * m4/regex.m4: Likewise.
93974         * m4/stat.m4: Likewise.
93975         * m4/strftime.m4: Likewise.
93976         Suggestion from Alain Magloire.
93977
93978         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93979         an argument.
93980
93981         * m4/regex.m4: Add a run-time Test for proper operation of
93982         re_compile_pattern.
93983
93984 1999-01-31  Jim Meyering  <meyering@ascend.com>
93985
93986         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93987
93988 1999-01-30  Jim Meyering  <meyering@ascend.com>
93989
93990         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93991
93992         * m4/jm-mktime.m4: Make this a wrapper around the official
93993         AM_FUNC_MKTIME rather than my private copy, now that the official one
93994         is up to date.
93995         * m4/mktime.m4: Remove file.
93996
93997         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93998         * m4/uptime.m4: Likewise.
93999         * m4/uintmax_t.m4: Likewise.
94000
94001 1999-01-28  Jim Meyering  <meyering@ascend.com>
94002
94003         * m4/jm-macros.m4: Use jm_AFS.
94004         * m4/afs.m4: New file (from fileutils' configure.in).
94005
94006         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94007         * m4/chown.m4: Likewise.
94008         * m4/d-ino.m4: Likewise.
94009         * m4/d-type.m4: Likewise.
94010         * m4/fnmatch.m4: Likewise.
94011         * m4/getgroups.m4: Likewise.
94012         * m4/gettext.m4: Likewise.
94013         * m4/jm-mktime.m4: Likewise.
94014         * m4/jm-winsz2.m4: Likewise.
94015         * m4/lcmessage.m4: Likewise.
94016         * m4/ls-mntd-fs.m4: Likewise.
94017         * m4/malloc.m4: Likewise.
94018         * m4/memcmp.m4: Likewise.
94019         * m4/putenv.m4: Likewise.
94020         * m4/realloc.m4: Likewise.
94021         * m4/st_mtim.m4: Likewise.
94022         * m4/strftime.m4: Likewise.
94023
94024 1999-01-16  Jim Meyering  <meyering@ascend.com>
94025
94026         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94027         (ARGMATCH_DIE_DECL): Define.
94028
94029 1999-01-12  Jim Meyering  <meyering@ascend.com>
94030
94031         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94032         Reported by Lars Hecking.
94033
94034 1999-01-10  Jim Meyering  <meyering@ascend.com>
94035
94036         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94037         gross kludge.
94038         * m4/inttypes_h.m4: Likewise.
94039         * m4/lstat.m4: Likewise.
94040         * m4/malloc.m4: Likewise.
94041         * m4/readdir.m4: Likewise.
94042         * m4/realloc.m4: Likewise.
94043         * m4/st_dm_mode.m4: Likewise.
94044         * m4/stat.m4: Likewise.
94045         * m4/utimbuf.m4: Likewise.
94046         * m4/utimes.m4: Likewise.
94047
94048         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94049         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94050         comments in config.h.in are meaningful.
94051
94052         * m4/jm-macros.m4: Require autoconf-2.13 here.
94053
94054         * m4/regex.m4: By default, don't use the included regex.c on systems
94055         with glibc 2.  Suggestion from Uli Drepper.
94056
94057 1999-01-02  Jim Meyering  <meyering@ascend.com>
94058
94059         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94060
94061 1998-12-18  Jim Meyering  <meyering@ascend.com>
94062
94063         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94064         Based on a suggestion from Lars Hecking.
94065
94066 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94067
94068         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94069
94070 1998-11-16  Jim Meyering  <meyering@ascend.com>
94071
94072         * m4/lfs.m4: Double-quote the `uname...` expression.
94073
94074 1998-11-14  Jim Meyering  <meyering@ascend.com>
94075
94076         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94077         * m4/stat.m4: Likewise.
94078
94079 1998-11-03  Jim Meyering  <meyering@ascend.com>
94080
94081         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94082         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94083
94084 1998-10-18  Jim Meyering  <meyering@ascend.com>
94085
94086         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94087
94088 1998-10-17  Jim Meyering  <meyering@ascend.com>
94089
94090         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94091         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94092         calls for those previously hard-coded headers.  Instead, take a new
94093         parameter.
94094         (jm_CHECK_DECLARATIONS): Reflect interface change.
94095         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94096         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94097
94098         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94099
94100 1998-10-14  Jim Meyering  <meyering@ascend.com>
94101
94102         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94103         instead of "TZ=America/Vancouver".  From Paul Eggert.
94104
94105 1998-10-11  Jim Meyering  <meyering@ascend.com>
94106
94107         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94108         This adds a test for a recently added compatibility fix for mktime.c.
94109         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94110
94111 1998-09-27  Jim Meyering  <meyering@ascend.com>
94112
94113         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94114
94115         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94116         ../configure.in, including a change from Gordon Matzigkeit to allow
94117         cross-compiling for the Hurd.
94118
94119         * m4/glibc.m4: New file/macro to test for the GNU C Library
94120         versions 1 and 2.  From Gordon Matzigkeit.
94121         Indent.
94122
94123 1998-09-21  Jim Meyering  <meyering@ascend.com>
94124
94125         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94126
94127 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94128
94129         Port nanosecond-resolution times to UnixWare 2.1.2 and
94130         pedantic Solaris 2.6.
94131
94132         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94133         AC_STRUCT_ST_MTIM.
94134         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94135         Generate name of ns member, instead of just 1 or undef.
94136         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94137
94138 1998-08-15  Jim Meyering  <meyering@ascend.com>
94139
94140         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94141         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94142         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94143         instead of jm_TYPE_SSIZE_T.
94144
94145 1998-08-12  Jim Meyering  <meyering@ascend.com>
94146
94147         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94148
94149 1998-08-02  Jim Meyering  <meyering@ascend.com>
94150
94151         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94152         in acconfig.h manually.
94153
94154 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94155
94156         * m4/st_mtim.m4: New file.
94157
94158 1998-07-28  Jim Meyering  <meyering@ascend.com>
94159
94160         * m4/utimes.m4: Undef stat.
94161
94162 1998-07-25  Jim Meyering  <meyering@ascend.com>
94163
94164         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94165         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94166
94167 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94168
94169         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94170         uid and gid actually remain unchanged.
94171
94172 1998-07-07  Jim Meyering  <meyering@ascend.com>
94173
94174         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94175
94176 1998-07-04  Jim Meyering  <meyering@ascend.com>
94177
94178         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94179         to prove that this macro can be used in packages without regex.c.
94180
94181 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94182
94183         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94184         is to be used.
94185
94186 1998-07-03  Jim Meyering  <meyering@ascend.com>
94187
94188         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94189
94190         * m4/gettext.m4: New file -- from gettext-0.10.35.
94191         * m4/lcmessage.m4: Likewise.
94192         * m4/progtest.m4: Likewise.
94193
94194         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94195         * m4/jm-macros.m4: Require the new macro.
94196
94197 1998-06-29  Jim Meyering  <meyering@ascend.com>
94198
94199         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94200         for the definition of NGROUPS (used in a system header included
94201         by sys/mount.h).
94202
94203 1998-06-28  Jim Meyering  <meyering@ascend.com>
94204
94205         * m4/ls-mntd-fs.m4: New file.
94206         * m4/fstypename.m4: New file.
94207
94208         * m4/jm-macros.m4: Require the new macro.
94209         * m4/jm-glibc-io.m4: New file.
94210
94211 1998-05-19  Jim Meyering  <meyering@ascend.com>
94212
94213         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94214         * m4/lchown.m4: New file.
94215
94216         * m4/Makefile.am.in: New file.
94217         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94218
94219 1998-05-14  Jim Meyering  <meyering@ascend.com>
94220
94221         * m4/Makefile.am (EXTRA_DIST): Add them.
94222         * m4/jm-macros.m4: New file.
94223         * m4/utimbuf.m4: New file.
94224
94225 1998-05-12  Jim Meyering  <meyering@ascend.com>
94226
94227         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94228
94229 1998-05-11  Jim Meyering  <meyering@ascend.com>
94230
94231         * m4/isc-posix.m4: New file.
94232
94233 1998-05-10  Jim Meyering  <meyering@ascend.com>
94234
94235         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94236
94237 1998-05-09  Jim Meyering  <meyering@ascend.com>
94238
94239         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94240         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94241         with automake.
94242
94243         * m4/ssize_t.m4: New file.
94244         * m4/mktime.m4: Remove file -- the new automake has this now.
94245
94246 1998-04-26  Jim Meyering  <meyering@ascend.com>
94247
94248         * m4/assert.m4: New file.
94249         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94250
94251 1998-04-05  Jim Meyering  <meyering@ascend.com>
94252
94253         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94254         (jm_PREREQ): Use it here.
94255
94256 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94257
94258         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94259         in acconfig.h.
94260
94261 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94262
94263         * m4/prereq.m4: New file.
94264         * m4/error.m4: New file.
94265         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94266
94267 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94268
94269         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94270         cache-check for the same variable -- that defeated the purpose of
94271         the test; the test program was never run.  This was a problem only
94272         on systems with losing getline functions -- HP-UX 10.20 is one.
94273         Reported by Bjorn Helgaas.
94274
94275 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94276
94277         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94278
94279 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94280
94281         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94282
94283         * m4/const.m4: New file.  Use an initializer in this declaration
94284         typedef int charset[2]; const charset x;
94285         Reported by Bob Glickstein.
94286
94287 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94288
94289         * m4/chown.m4: Fix reversed types on -1 args to chown.
94290         From Kaveh Ghazi.
94291
94292 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94293
94294         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94295         Add lseek and memchr.
94296
94297         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94298         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94299         have a 20-character limit on names.
94300
94301 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94302
94303         * m4/inttypes_h.m4: New file.
94304         * m4/uintmax_t.m4: New file.
94305         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94306
94307
94308         -----
94309
94310         Local Variables:
94311         coding: utf-8
94312         End:
94313
94314         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94315
94316         Copying and distribution of this file, with or without
94317         modification, are permitted provided the copyright notice
94318         and this notice are preserved.