2deb869ea43ce9a62a41f71a4d32d206123265e4
[gnulib.git] / ChangeLog
1 2012-03-10  Bruno Haible  <bruno@clisp.org>
2
3         math tests: Small simplification.
4         * tests/test-exp.h (test_function): Use the same err_bound for
5         'double' on platforms with sizeof (long double) == sizeof (double)
6         than on platforms with sizeof (long double) > sizeof (double).
7         * tests/test-exp2.h (test_function): Likewise.
8         * tests/test-expm1.h (test_function): Likewise.
9         * tests/test-log.h (test_function): Likewise.
10
11 2012-03-10  Bruno Haible  <bruno@clisp.org>
12
13         Fix some comments.
14         * lib/expl.c: Fix an ambiguous comment.
15         * lib/expm1.c: Likewise.
16         * lib/expm1l.c: Likewise.
17         * lib/exp2.c: Likewise.
18         * lib/exp2l.c: Likewise.
19
20 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
21
22         regex: allow inclusion of <regex.h> before <limits.h>
23         Without this patch, portable programs had to include <limits.h> before
24         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
25         I ran into this problem with a test version of GNU grep on Solaris 8.
26         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
27         This is done conditionally so that this change can be merged
28         back to glibc.
29         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
30         using the included regex.
31
32         fts: depend on fdopendir
33         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
34         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
35         problem was introduced when fdopendir was split out.
36
37 2012-03-10  Bruno Haible  <bruno@clisp.org>
38
39         Remove unused variables.
40         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
41         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
42
43 2012-03-10  Bruno Haible  <bruno@clisp.org>
44
45         isnanf-nolibm: Fix last commit.
46         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
47
48         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
49         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
50
51 2012-03-10  Bruno Haible  <bruno@clisp.org>
52
53         logf-ieee: Work around test failure on NetBSD 5.1.
54         * m4/logf-ieee.m4: New file.
55         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
56         whether logf works with a negative argument. Replace it if not.
57         * lib/logf.c (logf): For negative arguments, return NaN.
58         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
59         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
60         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
61
62         logf-ieee: Work around test failure on Solaris 9.
63         * modules/logf-ieee (Depends-on): Add log-ieee.
64         (configure.ac): Require gl_FUNC_LOGF.
65
66         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
67         * m4/log-ieee.m4: New file.
68         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
69         log works with a negative argument. Replace it if not.
70         * lib/log.c (log): For negative arguments, return NaN.
71         * modules/log-ieee (Files): Add m4/log-ieee.m4.
72         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
73         * doc/posix-functions/log.texi: Mention the log-ieee module.
74
75         Tests for module 'logl-ieee'.
76         * modules/logl-ieee-tests: New file.
77         * tests/test-logl-ieee.c: New file.
78
79         New module 'logl-ieee'.
80         * modules/logl-ieee: New file.
81
82         Tests for module 'log-ieee'.
83         * modules/log-ieee-tests: New file.
84         * tests/test-log-ieee.c: New file.
85
86         New module 'log-ieee'.
87         * modules/log-ieee: New file.
88
89         Tests for module 'logf-ieee'.
90         * modules/logf-ieee-tests: New file.
91         * tests/test-logf-ieee.c: New file.
92         * tests/test-log-ieee.h: New file.
93
94         New module 'logf-ieee'.
95         * modules/logf-ieee: New file.
96
97 2012-03-10  Bruno Haible  <bruno@clisp.org>
98
99         log: Fix bug introduced on 2012-03-09.
100         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
101
102 2012-03-10  Pádraig Brady  <P@draigBrady.com>
103
104         timer-time: link explicitly with pthreads on glibc
105         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
106         to support static linking, when newer glibc is
107         detected, as that contains pthread emulation of
108         POSIX timer functions where required.
109         * modules/timer-time: Depend on threadlib to
110         pull in the appropriate library to link.
111
112 2012-03-10  Bruno Haible  <bruno@clisp.org>
113
114         log* tests: More tests.
115         * tests/test-log.h: New file.
116         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
117         (main): Invoke test_function.
118         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
119         (main): Invoke test_function.
120         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
121         (main): Invoke test_function.
122         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
123         tests/randomd.c.
124         (Makefile.am): Add randomd.c to test_log_SOURCES.
125         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
126         tests/randomf.c.
127         (Makefile.am): Add randomf.c to test_logf_SOURCES.
128         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
129         tests/randoml.c.
130         (Depends-on): Add 'float'.
131         (Makefile.am): Add randoml.c to test_logl_SOURCES.
132
133 2012-03-09  Bruno Haible  <bruno@clisp.org>
134
135         logl: Work around OSF/1 5.1 bug.
136         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
137         * lib/logl.c (logl): If logf exists, use it and provide just the
138         workaround.
139         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
140         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
141         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
142         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
143         * modules/logl (configure.ac): Consider REPLACE_LOGL.
144         (Depends-on): Update conditions.
145         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
146
147 2012-03-09  Bruno Haible  <bruno@clisp.org>
148
149         logf: Work around OSF/1 5.1 bug.
150         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
151         * lib/logf.c (logf): If logf exists, use it and provide just the
152         workaround.
153         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
154         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
156         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
157         * modules/logf (configure.ac): Consider REPLACE_LOGF.
158         (Depends-on): Update conditions.
159         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
160
161 2012-03-09  Bruno Haible  <bruno@clisp.org>
162
163         log: Work around OSF/1 5.1 bug.
164         * lib/math.in.h (log): New declaration.
165         * lib/log.c: New file.
166         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
167         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
168         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
169         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
170         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
171         * modules/log (Files): Add lib/log.c.
172         (Depends-on): Add math.
173         (configure.ac): If REPLACE_LOG is 1, compile an override.
174         * tests/test-math-c++.cc: Check the declaration of log.
175         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
176
177 2012-03-09  Jim Meyering  <meyering@redhat.com>
178
179         readtokens.c: adjust wording in a comment
180         * lib/readtokens.c: Insert omitted "that" in a comment.
181
182 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
183
184         modechange: add notations +40, 00440, etc.
185         * lib/modechange.c (mode_compile): Support new notations
186         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
187
188 2012-03-08  Bruno Haible  <bruno@clisp.org>
189
190         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
191         * m4/exp2l-ieee.m4: New file.
192         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
193         test whether exp2l works with a NaN argument and with a negative
194         infinity argument. Replace it if not.
195         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
196         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
197         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
198         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
199         (Depends-on): Update conditions.
200         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
201         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
202         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
203
204         Tests for module 'exp2l-ieee'.
205         * modules/exp2l-ieee-tests: New file.
206         * tests/test-exp2l-ieee.c: New file.
207
208         New module 'exp2l-ieee'.
209         * modules/exp2l-ieee: New file.
210
211         Tests for module 'exp2-ieee'.
212         * modules/exp2-ieee-tests: New file.
213         * tests/test-exp2-ieee.c: New file.
214
215         New module 'exp2-ieee'.
216         * modules/exp2-ieee: New file.
217
218         Tests for module 'exp2f-ieee'.
219         * modules/exp2f-ieee-tests: New file.
220         * tests/test-exp2f-ieee.c: New file.
221         * tests/test-exp2-ieee.h: New file.
222
223         New module 'exp2f-ieee'.
224         * modules/exp2f-ieee: New file.
225
226 2012-03-08  Bruno Haible  <bruno@clisp.org>
227
228         Tests for module 'exp2l'.
229         * modules/exp2l-tests: New file.
230         * tests/test-exp2l.c: New file.
231
232         New module 'exp2l'.
233         * lib/math.in.h (exp2l): New declaration.
234         * lib/exp2l.c: New file.
235         * lib/expl-table.c: New file, extracted from lib/expl.c.
236         * lib/expl.c (gl_expl_table): New declaration.
237         (expl): Remove expl_table. Update reference.
238         * m4/exp2l.m4: New file.
239         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
241         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
242         * modules/exp2l: New file.
243         * modules/expl (Files): Add lib/expl-table.c.
244         (configure.ac): Compile also expl-table.c.
245         * tests/test-math-c++.cc: Check the declaration of exp2l.
246         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
247         problem.
248
249 2012-03-08  Bruno Haible  <bruno@clisp.org>
250
251         Tests for module 'exp2f'.
252         * modules/exp2f-tests: New file.
253         * tests/test-exp2f.c: New file.
254
255         New module 'exp2f'.
256         * lib/math.in.h (exp2f): New declaration.
257         * lib/exp2f.c: New file.
258         * m4/exp2f.m4: New file.
259         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
260         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
261         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
262         * modules/exp2f: New file.
263         * tests/test-math-c++.cc: Check the declaration of exp2f.
264         * doc/posix-functions/exp2f.texi: Mention the new module and the
265         IRIX problem.
266
267 2012-03-08  Bruno Haible  <bruno@clisp.org>
268
269         Tests for module 'exp2'.
270         * modules/exp2-tests: New file.
271         * tests/test-exp2.c: New file.
272         * tests/test-exp2.h: New file.
273
274         New module 'exp2'.
275         * lib/math.in.h (exp2): New declaration.
276         * lib/exp2.c: New file.
277         * m4/exp2.m4: New file.
278         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
279         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
280         REPLACE_EXP2.
281         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
282         REPLACE_EXP2.
283         * modules/exp2: New file.
284         * tests/test-math-c++.cc: Check the declaration of exp2.
285         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
286         and OpenBSD problems.
287
288 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
289
290         savedir: fix comment typo
291         * lib/savedir.c (savedirstream): Fix typo in comment.
292
293 2012-03-08  Bruno Haible  <bruno@clisp.org>
294
295         test-readtokens.c: use const; remove unwarranted cast
296         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
297
298 2012-03-08  Bruno Haible  <bruno@clisp.org>
299
300         fmal: Avoid compilation error on AIX.
301         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
302         AIX 5.2..7.1.
303
304 2012-03-08  Bruno Haible  <bruno@clisp.org>
305
306         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
307         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
308         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
309         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
310         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
311         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
312         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
313
314 2012-03-08  Bruno Haible  <bruno@clisp.org>
315
316         remainderf: Override buggy system function on IRIX 6.5.
317         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
318         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
319         when it exists.
320         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
321
322 2012-03-08  Jim Meyering  <meyering@redhat.com>
323
324         test-readtokens.c: avoid const-related compilation warnings
325         * tests/test-readtokens.c: Avoid const-related compilation warnings.
326
327 2012-03-07  Jim Meyering  <meyering@redhat.com>
328             Bruno Haible  <bruno@clisp.org>
329
330         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
331         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
332         tests/randomd.c.
333         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
334         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
335         tests/randoml.c.
336         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
337
338 2012-03-07  Bruno Haible  <bruno@clisp.org>
339
340         expm1l: Avoid compilation error on AIX.
341         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
342         AIX 5.2..7.1.
343
344 2012-03-07  Bruno Haible  <bruno@clisp.org>
345
346         expm1l: Don't override undeclared system function on IRIX 6.5.
347         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
348         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
349         it exists. Set HAVE_DECL_EXPM1L.
350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
351         HAVE_EXPM1L.
352         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
353         HAVE_EXPM1L.
354         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
355
356 2012-03-07  Bruno Haible  <bruno@clisp.org>
357
358         remainderl: Don't override undeclared system function on IRIX 6.5.
359         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
360         HAVE_REMAINDERL.
361         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
362         declared when it exists. Set HAVE_DECL_REMAINDERL.
363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
364         not HAVE_REMAINDERL.
365         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
366         HAVE_REMAINDERL.
367         * doc/posix-functions/remainderl.texi: Mention missing declaration
368         problem.
369
370 2012-03-07  Bruno Haible  <bruno@clisp.org>
371
372         rintf: Don't override undeclared system function on IRIX 6.5.
373         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
374         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
375         exists. Set HAVE_DECL_RINTF.
376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
377         HAVE_RINTF.
378         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
379         HAVE_RINTF.
380         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
381
382 2012-03-07  Bruno Haible  <bruno@clisp.org>
383
384         roundl: Avoid compilation error on AIX.
385         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
386         AIX 5.2..7.1.
387
388 2012-03-07  Bruno Haible  <bruno@clisp.org>
389
390         roundl: Don't override undeclared system function on IRIX 6.5.
391         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
392         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
393         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
394         * modules/roundl (configure.ac): For replacement code, test
395         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
396         (Depends-on): Update conditions.
397         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
398
399 2012-03-07  Bruno Haible  <bruno@clisp.org>
400
401         roundf: Don't override undeclared system function on IRIX 6.5.
402         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
403         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
404         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
405         * modules/roundf (configure.ac): For replacement code, test
406         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
407         (Depends-on): Update conditions.
408         * modules/roundf-ieee (Depends-on): Update conditions.
409         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
410
411 2012-03-07  Bruno Haible  <bruno@clisp.org>
412
413         round: Don't override undeclared system function on IRIX 6.5.
414         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
415         argument.
416         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
417         also when it is not declared. Set HAVE_ROUND. For replacement code,
418         test HAVE_ROUND, not HAVE_DECL_ROUND.
419         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
420         not HAVE_DECL_ROUND.
421         (Depends-on): Update conditions.
422         * modules/round-ieee (Depends-on): Update conditions.
423         * doc/posix-functions/round.texi: Mention the IRIX problem.
424
425 2012-03-07  Bruno Haible  <bruno@clisp.org>
426
427         copysignf: Don't override undeclared system function on IRIX 6.5.
428         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
429         HAVE_COPYSIGNF.
430         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
431         declared when it exists. Set HAVE_DECL_COPYSIGNF.
432         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
433         not HAVE_COPYSIGNF.
434         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
435         HAVE_COPYSIGNF.
436         * doc/posix-functions/copysignf.texi: Mention missing declaration
437         problem.
438
439 2012-03-07  Jim Meyering  <meyering@redhat.com>
440
441         readtokens: add tests
442         * modules/readtokens-tests: New file.
443         * tests/test-readtokens.c: New file.
444
445 2012-03-07  Jim Meyering  <meyering@redhat.com>
446
447         quotearg: the module must now include quote.h
448         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
449         So must the module.
450         * modules/quotearg (Files): Add quote.h.
451
452 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
453
454         readtokens: avoid core dumps with unusual calling patterns
455         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
456         * lib/readtokens.c: Include limits.h.
457         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
458         (readtoken): Don't cache the delimiters; the cache code was buggy
459         if !delim && saved_delim, or if the new n_delim differs from the old.
460         Also, it wasn't thread-safe.
461
462 2012-03-07  Bruno Haible  <bruno@clisp.org>
463
464         quote: Adhere to common module description layout.
465         * modules/quote (Makefile.am): Add back empty section.
466
467 2012-03-06  Akim Demaille  <demaille@gostai.com>
468
469         quote: fuse into quotearg
470         This patch is made for the benefit of Bison.
471         quote does not leave the choice of the quoting style to the user.
472         quoting_style provides poor customizability, yet quoting_options,
473         which is very rich, is hidden inside quotearg.c.  So in order to
474         allow quote customization, move its implementation to quotearg.c.
475         * lib/quote.c: Remove.
476         * modules/quote: Adjust.
477         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
478         warning: provide all the members of literal structs.
479         (quote_quoting_options): New.
480         (quote, quote_n): Import implementation from quote.c.
481         * lib/quote.h: Import the comments from quote.c.
482         (quote_quoting_options): New.
483
484 2012-03-06  Bruno Haible  <bruno@clisp.org>
485
486         Tests for module 'expm1l-ieee'.
487         * modules/expm1l-ieee-tests: New file.
488         * tests/test-expm1l-ieee.c: New file.
489
490         New module 'expm1l-ieee'.
491         * modules/expm1l-ieee: New file.
492
493         Tests for module 'expm1f-ieee'.
494         * modules/expm1f-ieee-tests: New file.
495         * tests/test-expm1f-ieee.c: New file.
496
497         New module 'expm1f-ieee'.
498         * modules/expm1f-ieee: New file.
499
500         Tests for module 'expm1-ieee'.
501         * modules/expm1-ieee-tests: New file.
502         * tests/test-expm1-ieee.c: New file.
503         * tests/test-expm1-ieee.h: New file.
504
505         New module 'expm1-ieee'.
506         * modules/expm1-ieee: New file.
507         * m4/expm1-ieee.m4: New file.
508         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
509         whether expm1 works with a minus zero argument. Replace it if not.
510         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
511         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
512         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
513         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
514         (Depends-on): Update conditions.
515         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
516         AIX problem.
517
518 2012-03-06  Bruno Haible  <bruno@clisp.org>
519
520         Work around expm1f bug on IRIX 6.5.
521         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
522         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
523         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
524         not work.
525         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
526         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
527         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
528         (Depends-on): Update conditions.
529         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
530
531 2012-03-06  Bruno Haible  <bruno@clisp.org>
532
533         Tests for module 'expm1l'.
534         * modules/expm1l-tests: New file.
535         * tests/test-expm1l.c: New file.
536
537         New module 'expm1l'.
538         * lib/math.in.h (expm1l): New declaration.
539         * lib/expm1l.c: New file.
540         * m4/expm1l.m4: New file.
541         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
543         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
544         * modules/expm1l: New file.
545         * tests/test-math-c++.cc: Check the declaration of expm1l.
546         * doc/posix-functions/expm1l.texi: Mention the new module.
547
548 2012-03-06  Bruno Haible  <bruno@clisp.org>
549
550         Tests for module 'expm1f'.
551         * modules/expm1f-tests: New file.
552         * tests/test-expm1f.c: New file.
553
554         New module 'expm1f'.
555         * lib/math.in.h (expm1f): New declaration.
556         * lib/expm1f.c: New file.
557         * m4/expm1f.m4: New file.
558         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
560         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
561         * modules/expm1f: New file.
562         * tests/test-math-c++.cc: Check the declaration of expm1f.
563         * doc/posix-functions/expm1f.texi: Mention the new module.
564
565 2012-03-06  Bruno Haible  <bruno@clisp.org>
566
567         Tests for module 'expm1'.
568         * modules/expm1-tests: New file.
569         * tests/test-expm1.c: New file.
570         * tests/test-expm1.h: New file.
571
572         New module 'expm1'.
573         * lib/math.in.h (expm1): New declaration.
574         * lib/expm1.c: New file.
575         * m4/expm1.m4: New file.
576         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
577         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
578         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
579         * modules/expm1: New file.
580         * tests/test-math-c++.cc: Check the declaration of expm1.
581         * doc/posix-functions/expm1.texi: Mention the new module.
582
583 2012-03-06  Bruno Haible  <bruno@clisp.org>
584
585         math: Ensure declarations of math functions.
586         * modules/acosf (Depends-on): Add 'extensions'.
587         * modules/asinf (Depends-on): Likewise.
588         * modules/atan2f (Depends-on): Likewise.
589         * modules/atanf (Depends-on): Likewise.
590         * modules/cbrt (Depends-on): Likewise.
591         * modules/cbrtf (Depends-on): Likewise.
592         * modules/cbrtl (Depends-on): Likewise.
593         * modules/copysignf (Depends-on): Likewise.
594         * modules/copysignl (Depends-on): Likewise.
595         * modules/cosf (Depends-on): Likewise.
596         * modules/coshf (Depends-on): Likewise.
597         * modules/expf (Depends-on): Likewise.
598         * modules/fabsf (Depends-on): Likewise.
599         * modules/fabsl (Depends-on): Likewise.
600         * modules/fmaf (Depends-on): Likewise.
601         * modules/fmal (Depends-on): Likewise.
602         * modules/fmodf (Depends-on): Likewise.
603         * modules/fmodl (Depends-on): Likewise.
604         * modules/frexpf (Depends-on): Likewise.
605         * modules/frexpl (Depends-on): Likewise.
606         * modules/hypot (Depends-on): Likewise.
607         * modules/hypotf (Depends-on): Likewise.
608         * modules/hypotl (Depends-on): Likewise.
609         * modules/ldexpf (Depends-on): Likewise.
610         * modules/ldexpl (Depends-on): Likewise.
611         * modules/log10f (Depends-on): Likewise.
612         * modules/log10l (Depends-on): Likewise.
613         * modules/log1p (Depends-on): Likewise.
614         * modules/logb (Depends-on): Likewise.
615         * modules/logf (Depends-on): Likewise.
616         * modules/modff (Depends-on): Likewise.
617         * modules/modfl (Depends-on): Likewise.
618         * modules/powf (Depends-on): Likewise.
619         * modules/remainderf (Depends-on): Likewise.
620         * modules/remainderl (Depends-on): Likewise.
621         * modules/rintf (Depends-on): Likewise.
622         * modules/rintl (Depends-on): Likewise.
623         * modules/sinf (Depends-on): Likewise.
624         * modules/sinhf (Depends-on): Likewise.
625         * modules/sqrtf (Depends-on): Likewise.
626         * modules/tanf (Depends-on): Likewise.
627         * modules/tanhf (Depends-on): Likewise.
628         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
629         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
630         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
631         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
632         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
633         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
634         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
635         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
636         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
637         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
638         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
639         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
640         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
641         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
642         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
643         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
644         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
645         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
646         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
647         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
648         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
649         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
650         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
651         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
652         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
653         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
654         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
655         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
656         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
657         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
658         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
659         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
660         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
661         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
662         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
663         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
664         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
665         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
666         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
667         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
668         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
669
670 2012-03-06  Bruno Haible  <bruno@clisp.org>
671
672         math: Update module names in warnings.
673         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
674         tanl): Use specific module name in warn-on-use warning.
675
676 2012-03-06  Bruno Haible  <bruno@clisp.org>
677
678         expl: Simplify computation.
679         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
680
681 2012-03-05  Bruno Haible  <bruno@clisp.org>
682
683         exp* tests: More tests.
684         * tests/test-exp.h: New file.
685         * tests/test-exp.c: Include <float.h> and test-exp.h.
686         (main): Invoke test_function.
687         * tests/test-expf.c: Include <float.h> and test-exp.h.
688         (main): Invoke test_function.
689         * tests/test-expl.c: Include <float.h> and test-exp.h.
690         (main): Invoke test_function.
691         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
692         (Makefile.am): Add randomd.c to test_exp_SOURCES.
693         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
694         (Makefile.am): Add randomf.c to test_expf_SOURCES.
695         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
696         (Depends-on): Add 'float'.
697         (Makefile.am): Add randoml.c to test_expl_SOURCES.
698
699         expl: Fix precision of computed result.
700         * lib/expl.c: Completely rewritten.
701         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
702         (Maintainer): Add me.
703         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
704
705 2012-03-05  Bruno Haible  <bruno@clisp.org>
706
707         cbrt* tests: More tests.
708         * tests/test-cbrt.h: New file.
709         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
710         (main): Invoke test_function.
711         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
712         (main): Invoke test_function.
713         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
714         (main): Invoke test_function.
715         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
716         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
717         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
718         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
719         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
720         (Depends-on): Add 'float'.
721         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
722
723 2012-03-05  Bruno Haible  <bruno@clisp.org>
724
725         hypot* tests: More tests.
726         * tests/test-hypot.h: New file, partially extracted from
727         tests/test-hypotl.c.
728         * tests/test-hypot.c: Include test-hypot.h.
729         (main): Invoke test_function.
730         * tests/test-hypotf.c: Include test-hypot.h.
731         (main): Invoke test_function.
732         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
733         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
734         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
735         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
736         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
737         tests/randomf.c.
738         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
739         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
740         tests/randoml.c.
741         (Depends-on): Add 'fpucw', 'float'.
742         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
743
744 2012-03-05  Bruno Haible  <bruno@clisp.org>
745
746         fpucw: Doc about FreeBSD.
747         * lib/fpucw.h: Mention FreeBSD in comments.
748
749 2012-03-04  Bruno Haible  <bruno@clisp.org>
750
751         sqrt* tests: More tests.
752         * tests/test-sqrt.h: New file.
753         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
754         (main): Invoke test_function.
755         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
756         (main): Invoke test_function.
757         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
758         (main): Invoke test_function.
759         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
760         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
761         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
762         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
763         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
764         (Depends-on): Add 'float'.
765         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
766
767 2012-03-04  Bruno Haible  <bruno@clisp.org>
768
769         remainder* tests: More tests.
770         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
771         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
772         (main): Invoke test_function.
773         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
774         (main): Invoke test_function.
775         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
776         (main): Invoke test_function.
777         * modules/remainder-tests (Files): Add tests/test-remainder.h,
778         tests/randomd.c.
779         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
780         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
781         tests/randomf.c.
782         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
783         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
784         tests/randoml.c.
785         (Depends-on): Add 'float'.
786         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
787
788 2012-03-04  Bruno Haible  <bruno@clisp.org>
789
790         remainder, remainderf, remainderl: Fix computation for large quotients.
791         * lib/remainder.c: Completely rewritten.
792         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
793         USE_FLOAT.
794         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
795         USE_LONG_DOUBLE.
796         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
797         isnand, isinf. Remove round, fma.
798         * modules/remainderf (Files): Add lib/remainder.c.
799         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
800         Remove roundf, fmaf.
801         * modules/remainderl (Files): Add lib/remainder.c.
802         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
803         isinf. Remove roundl, fmal.
804         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
805         REMAINDER_LIBM.
806         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
807         REMAINDERF_LIBM.
808         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
809         REMAINDERL_LIBM.
810
811 2012-03-04  Bruno Haible  <bruno@clisp.org>
812
813         fmod* tests: More tests.
814         * tests/test-fmod.h (my_ldexp): New function.
815         (test_function): Reduce amount of random numbers to test. Add tests
816         of very large quotients x / y.
817         * tests/test-fmod.c (MAX_EXP): New macro.
818         * tests/test-fmodf.c (MAX_EXP): Likewise.
819         * tests/test-fmodl.c (MAX_EXP): Likewise.
820
821 2012-03-04  Bruno Haible  <bruno@clisp.org>
822
823         fmod, fmodl: Fix computation for large quotients x / y.
824         * lib/fmod.c: Completely rewritten.
825         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
826         USE_LONG_DOUBLE.
827         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
828         isnand. Remove fma.
829         * modules/fmodl (Files): Add lib/fmod.c.
830         (Depends-on): Add float, isfinite, signbit, fabsl,
831         frexpl, ldexpl, isnanl. Remove fma.
832         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
833         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
834
835 2012-03-03  Bruno Haible  <bruno@clisp.org>
836
837         fmod* tests: More tests.
838         * tests/test-fmod.h: New file.
839         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
840         (main): Invoke test_function.
841         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
842         (main): Invoke test_function.
843         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
844         (main): Invoke test_function.
845         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
846         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
847         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
848         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
849         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
850         (Depends-on): Add 'float'.
851         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
852
853 2012-03-03  Bruno Haible  <bruno@clisp.org>
854
855         rint* tests: More tests.
856         * tests/test-rint.h: New file, partially extracted from
857         tests/test-rintl.c.
858         * tests/test-rint.c: Include test-rint.h.
859         (main): Invoke test_function.
860         * tests/test-rintf.c: Include test-rint.h.
861         (main): Invoke test_function.
862         * tests/test-rintl.c: Include test-rint.h.
863         (main): Invoke test_function.
864         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
865         (Makefile.am): Add randomd.c to test_rint_SOURCES.
866         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
867         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
868         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
869         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
870
871 2012-03-03  Bruno Haible  <bruno@clisp.org>
872
873         modf* tests: More tests.
874         * tests/test-modf.h: New file.
875         * tests/test-modf.c: Include <float.h> and test-modf.h.
876         (main): Invoke test_function.
877         * tests/test-modff.c: Include <float.h> and test-modf.h.
878         (main): Invoke test_function.
879         * tests/test-modfl.c: Include <float.h> and test-modf.h.
880         (main): Invoke test_function.
881         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
882         (Makefile.am): Add randomd.c to test_modf_SOURCES.
883         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
884         (Makefile.am): Add randomf.c to test_modff_SOURCES.
885         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
886         (Depends-on): Add 'float'.
887         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
888
889 2012-03-03  Bruno Haible  <bruno@clisp.org>
890
891         fabs* tests: More tests.
892         * tests/test-fabs.h: New file, partially extracted from
893         tests/test-fabsl.c.
894         * tests/test-fabs.c (RANDOM): New macro.
895         * tests/test-fabsf.c (RANDOM): New macro.
896         * tests/test-fabsl.c (RANDOM): New macro.
897         * modules/fabs-tests (Files): Add tests/randomd.c.
898         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
899         * modules/fabsf-tests (Files): Add tests/randomf.c.
900         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
901         * modules/fabsl-tests (Files): Add tests/randoml.c.
902         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
903
904 2012-03-03  Bruno Haible  <bruno@clisp.org>
905
906         ldexp* tests: More tests.
907         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
908         * tests/test-ldexp.c (RANDOM): New macro.
909         * tests/test-ldexpf.c (RANDOM): New macro.
910         * tests/test-ldexpl.c (RANDOM): New macro.
911         * modules/ldexp-tests (Files): Add tests/randomd.c.
912         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
913         * modules/ldexpf-tests (Files): Add tests/randomf.c.
914         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
915         * modules/ldexpl-tests (Files): Add tests/randoml.c.
916         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
917
918 2012-03-03  Bruno Haible  <bruno@clisp.org>
919
920         frexp* tests: More tests.
921         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
922         * tests/test-frexp.c (RANDOM): New macro.
923         * tests/test-frexpf.c (RANDOM): New macro.
924         * tests/test-frexpl.c (RANDOM): New macro.
925         * modules/frexp-tests (Files): Add tests/randomd.c.
926         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
927         * modules/frexpf-tests (Files): Add tests/randomf.c.
928         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
929         * modules/frexpl-tests (Files): Add tests/randoml.c.
930         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
931
932 2012-03-03  Bruno Haible  <bruno@clisp.org>
933
934         Support for pseudo-random numbers in tests.
935         * tests/randomf.c: New file.
936         * tests/randomd.c: New file.
937         * tests/randoml.c: New file.
938         * tests/macros.h (randomf, randomd, randoml): New declarations.
939
940 2012-03-03  Bruno Haible  <bruno@clisp.org>
941
942         frexp* tests: Refactor.
943         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
944         * tests/test-frexp.c: Include and use it.
945         * tests/test-frexpf.c: Likewise.
946         * tests/test-frexpl.c: Likewise.
947         * modules/frexp-tests (Files): Add tests/test-frexp.h.
948         * modules/frexpf-tests (Files): Likewise.
949         * modules/frexpl-tests (Files): Likewise.
950
951 2012-03-02  Jim Meyering  <meyering@redhat.com>
952
953         maint: don't specify XZ_OPT=-9ev in dist-related rule
954         Using xz's -9 option is warranted only if you have a very large
955         tarball (see xz's documentation for the sizes vs. presets), and
956         requires 64MiB of memory at decompression time.
957         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
958         Automake's default of just "-e" is fine.  Override on a
959         per-package basis by setting XZ_OPT e.g., in cfg.mk.
960
961 2012-03-01  Eric Blake  <eblake@redhat.com>
962
963         maint.mk: allow announcement for non-gnulib project
964         * maint.mk (announcement): Skip gnulib version if not used.
965
966 2012-03-01  Jim Meyering  <meyering@redhat.com>
967
968         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
969         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
970         envvar settings cannot interfere.  Otherwise, setting envvars like
971         prohibit=foo require=bar, etc. would cause spurious test failures.
972
973 2012-03-01  Eric Blake  <eblake@redhat.com>
974
975         maint.mk: add per-line exclusions to prohibitions
976         * maint.mk (_sc_search_regexp): Add $exclude parameter.
977         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
978         (sc_const_long_option): Use it.
979
980 2012-03-01  Bruno Haible  <bruno@clisp.org>
981
982         Tests for module 'expl-ieee'.
983         * modules/expl-ieee-tests: New file.
984         * tests/test-expl-ieee.c: New file.
985
986         New module 'expl-ieee'.
987         * modules/expl-ieee: New file.
988
989         Tests for module 'exp-ieee'.
990         * modules/exp-ieee-tests: New file.
991         * tests/test-exp-ieee.c: New file.
992
993         New module 'exp-ieee'.
994         * modules/exp-ieee: New file.
995
996         Tests for module 'expf-ieee'.
997         * modules/expf-ieee-tests: New file.
998         * tests/test-expf-ieee.c: New file.
999         * tests/test-exp-ieee.h: New file.
1000
1001         New module 'expf-ieee'.
1002         * modules/expf-ieee: New file.
1003
1004 2012-02-29  Bruno Haible  <bruno@clisp.org>
1005
1006         cbrtl-ieee: Work around test failure on IRIX 6.5.
1007         * m4/cbrtl-ieee.m4: New file.
1008         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1009         test whether cbrtl works with a minus zero argument. Replace it if not.
1010         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1012         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1013         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1014         (Depends-on): Update conditions.
1015         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1016         m4/signbit.m4.
1017         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1018         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1019         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1020
1021         Tests for module 'cbrtl-ieee'.
1022         * modules/cbrtl-ieee-tests: New file.
1023         * tests/test-cbrtl-ieee.c: New file.
1024
1025         New module 'cbrtl-ieee'.
1026         * modules/cbrtl-ieee: New file.
1027
1028         Tests for module 'cbrt-ieee'.
1029         * modules/cbrt-ieee-tests: New file.
1030         * tests/test-cbrt-ieee.c: New file.
1031
1032         New module 'cbrt-ieee'.
1033         * modules/cbrt-ieee: New file.
1034
1035         Tests for module 'cbrtf-ieee'.
1036         * modules/cbrtf-ieee-tests: New file.
1037         * tests/test-cbrtf-ieee.c: New file.
1038         * tests/test-cbrt-ieee.h: New file.
1039
1040         New module 'cbrtf-ieee'.
1041         * modules/cbrtf-ieee: New file.
1042
1043 2012-02-29  Bruno Haible  <bruno@clisp.org>
1044
1045         cbrtf: Work around bug in IRIX 6.5 system function.
1046         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1047         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1048         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1049         work.
1050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1051         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1052         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1053         (Depends-on): Update conditions.
1054         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1055
1056 2012-02-29  Bruno Haible  <bruno@clisp.org>
1057
1058         Tests for module 'cbrtl'.
1059         * modules/cbrtl-tests: New file.
1060         * tests/test-cbrtl.c: New file.
1061
1062         New module 'cbrtl'.
1063         * lib/math.in.h (cbrtl): New declaration.
1064         * lib/cbrtl.c: New file.
1065         * m4/cbrtl.m4: New file.
1066         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1067         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1068         HAVE_DECL_CBRTL.
1069         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1070         HAVE_DECL_CBRTL.
1071         * modules/cbrtl: New file.
1072         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1073         * doc/posix-functions/cbrtl.texi: Mention the new module.
1074
1075 2012-02-29  Bruno Haible  <bruno@clisp.org>
1076
1077         Tests for module 'cbrtf'.
1078         * modules/cbrtf-tests: New file.
1079         * tests/test-cbrtf.c: New file.
1080
1081         New module 'cbrtf'.
1082         * lib/math.in.h (cbrtf): New declaration.
1083         * lib/cbrtf.c: New file.
1084         * m4/cbrtf.m4: New file.
1085         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1087         HAVE_DECL_CBRTF.
1088         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1089         HAVE_DECL_CBRTF.
1090         * modules/cbrtf: New file.
1091         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1092         * doc/posix-functions/cbrtf.texi: Mention the new module.
1093
1094 2012-02-29  Bruno Haible  <bruno@clisp.org>
1095
1096         cbrt: Provide replacement on MSVC and Minix.
1097         * lib/math.in.h (cbrt): New declaration.
1098         * lib/cbrt.c: New file.
1099         * m4/cbrt.m4: New file.
1100         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1102         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1103         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1104         (Depends-on): Add dependencies.
1105         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1106         * tests/test-math-c++.cc: Check the declaration of cbrt.
1107         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1108         replacement.
1109
1110 2012-02-29  Bruno Haible  <bruno@clisp.org>
1111
1112         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1113         * m4/hypotl-ieee.m4: New file.
1114         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1115         test whether hypotl works with mixed NaN and Infinity arguments.
1116         Replace it if not.
1117         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1119         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1120         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1121         (Depends-on): Update conditions.
1122         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1123         (Depends-on): Add hypot-ieee.
1124         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1125         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1126
1127         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1128         * m4/hypotf-ieee.m4: New file.
1129         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1130         test whether hypotf works with mixed NaN and Infinity arguments.
1131         Replace it if not.
1132         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1133         (Depends-on): Add hypot-ieee.
1134         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1135         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1136
1137         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1138         * lib/math.in.h (hypot): New declaration.
1139         * lib/hypot.c: New file.
1140         * m4/hypot-ieee.m4: New file.
1141         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1142         whether hypot works with mixed NaN and Infinity arguments. Replace it
1143         if not.
1144         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1145         REPLACE_HYPOT.
1146         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1147         * modules/hypot (Files): Add lib/hypot.c.
1148         (Depends-on): Add dependencies.
1149         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1150         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1151         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1152         * tests/test-math-c++.cc: Check the declaration of hypot.
1153         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1154
1155         Tests for module 'hypotl-ieee'.
1156         * modules/hypotl-ieee-tests: New file.
1157         * tests/test-hypotl-ieee.c: New file.
1158
1159         New module 'hypotl-ieee'.
1160         * modules/hypotl-ieee: New file.
1161
1162         Tests for module 'hypot-ieee'.
1163         * modules/hypot-ieee-tests: New file.
1164         * tests/test-hypot-ieee.c: New file.
1165
1166         New module 'hypot-ieee'.
1167         * modules/hypot-ieee: New file.
1168
1169         Tests for module 'hypotf-ieee'.
1170         * modules/hypotf-ieee-tests: New file.
1171         * tests/test-hypotf-ieee.c: New file.
1172         * tests/test-hypot-ieee.h: New file.
1173
1174         New module 'hypotf-ieee'.
1175         * modules/hypotf-ieee: New file.
1176
1177 2012-02-29  Bruno Haible  <bruno@clisp.org>
1178
1179         Remove unused variables.
1180         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1181         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1182         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1183         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1184
1185 2012-02-29  Eric Blake  <eblake@redhat.com>
1186
1187         termios: fix pid_t always, not just for tcgetsid
1188         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1189         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1190         just when building tcgetsid.
1191
1192 2012-02-29  Bruno Haible  <bruno@clisp.org>
1193
1194         Tests for module 'hypotl'.
1195         * modules/hypotl-tests: New file.
1196         * tests/test-hypotl.c: New file.
1197
1198         New module 'hypotl'.
1199         * lib/math.in.h (hypotl): New declaration.
1200         * lib/hypotl.c: New file.
1201         * m4/hypotl.m4: New file.
1202         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1203         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1204         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1205         * modules/hypotl: New file.
1206         * tests/test-math-c++.cc: Check the hypotl declaration.
1207         * doc/posix-functions/hypotl.texi: Mention the new module.
1208
1209 2012-02-29  Eric Blake  <eblake@redhat.com>
1210
1211         tcgetsid: fix cygwin header bug
1212         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1213
1214         docs: update cygwin progress
1215         * doc/posix-functions/llround.texi (llround): Added in cygwin
1216         1.7.8.
1217         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1218         * doc/glibc-functions/program_invocation_name.texi
1219         (program_invocation_name): Likewise.
1220         * doc/glibc-functions/program_invocation_short_name.texi
1221         (program_invocation_short_name): Likewise.
1222         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1223         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1224         Likewise.
1225         * doc/posix-functions/pthread_spin_destroy.texi
1226         (pthread_spin_destroy): Added in cygwin 1.7.10.
1227         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1228         Likewise.
1229         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1230         Likewise.
1231         * doc/posix-functions/pthread_spin_trylock.texi
1232         (pthread_spin_trylock): Likewise.
1233         * doc/posix-functions/pthread_spin_unlock.texi
1234         (pthread_spin_unlock): Likewise.
1235         * doc/posix-functions/pthread_setschedprio.texi
1236         (pthread_setschedprio): Likewise.
1237         * doc/posix-functions/pthread_attr_getstack.texi
1238         (pthread_attr_getstack): Likewise.
1239         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1240         (pthread_attr_getstackaddr): Likewise.
1241         * doc/glibc-functions/pthread_getattr_np.texi
1242         (pthread_getattr_np): Likewise.
1243         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1244         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1245         * doc/posix-functions/clock_settime.texi (clock_settime):
1246         Likewise.
1247         * doc/posix-functions/pthread_attr_getguardsize.texi
1248         (pthread_attr_getguardsize): Likewise.
1249         * doc/posix-functions/pthread_attr_setguardsize.texi
1250         (pthread_attr_setguardsize): Likewise.
1251         * doc/posix-functions/pthread_attr_setstack.texi
1252         (pthread_attr_setstack): Likewise.
1253         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1254         (pthread_attr_setstackaddr): Likewise.
1255         * doc/posix-functions/clock_getcpuclockid.texi
1256         (clock_getcpuclockid): Likewise.
1257         * doc/posix-functions/pthread_getcpuclockid.texi
1258         (pthread_getcpuclockid): Likewise.
1259         * doc/glibc-functions/error.texi (error): Likewise.
1260         * doc/glibc-functions/error_at_line.texi (error_at_line):
1261         Likewise.
1262         * doc/glibc-functions/error_message_count.texi
1263         (error_message_count): Likewise.
1264         * doc/glibc-functions/error_one_per_line.texi
1265         (error_one_per_line): Likewise.
1266         * doc/glibc-functions/error_print_progname.texi
1267         (error_print_progname): Likewise.
1268         * doc/posix-functions/pthread_condattr_getclock.texi
1269         (pthread_condattr_getclock): Likewise.
1270         * doc/posix-functions/pthread_condattr_setclock.texi
1271         (pthread_condattr_setclock): Likewise.
1272         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1273         Likewise.
1274         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1275         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1276         * doc/glibc-functions/get_current_dir_name.texi
1277         (get_current_dir_name): Likewise.
1278         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1279         Likewise.
1280         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1281         wrong return type.
1282         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1283         1.7.11.
1284
1285 2012-02-29  Bruno Haible  <bruno@clisp.org>
1286
1287         Tests for module 'hypotf'.
1288         * modules/hypotf-tests: New file.
1289         * tests/test-hypotf.c: New file.
1290
1291         New module 'hypotf'.
1292         * lib/math.in.h (hypotf): New declaration.
1293         * lib/hypotf.c: New file.
1294         * m4/hypotf.m4: New file.
1295         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1296         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1297         REPLACE_HYPOTF.
1298         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1299         REPLACE_HYPOTF.
1300         * modules/hypotf: New file.
1301         * tests/test-math-c++.cc: Check the hypotf declaration.
1302         * doc/posix-functions/hypotf.texi: Mention the new module.
1303
1304         hypot: Prepare for hypotf module.
1305         * m4/hypot.m4: New file.
1306         * modules/hypot (Files): Add m4/hypot.m4.
1307         (configure.ac): Invoke gl_FUNC_HYPOT.
1308
1309 2012-02-29  Bruno Haible  <bruno@clisp.org>
1310
1311         hypot tests: More tests.
1312         * tests/test-hypot.c: Include <float.h>.
1313         (main): Add tests about overflow and underflow.
1314
1315 2012-02-29  Bruno Haible  <bruno@clisp.org>
1316
1317         math code: Add comments.
1318         * lib/acosl.c: Add comment about related glibc source files.
1319         * lib/asinl.c: Likewise.
1320         * lib/atanl.c: Likewise.
1321         * lib/expl.c: Likewise.
1322         * lib/logl.c: Likewise.
1323         * lib/sincosl.c: Likewise.
1324         * lib/sinl.c: Likewise.
1325         * lib/tanl.c: Likewise.
1326         * lib/trigl.c: Likewise.
1327         * lib/cosl.c: Likewise. Fix comments.
1328
1329 2012-02-28  Bruno Haible  <bruno@clisp.org>
1330
1331         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1332         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1333         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1334         HUGE_VALL are defined.
1335         (numeric_equald): Renamed from numeric_equal.
1336         (numeric_equalf, numeric_equall): New functions.
1337         (main): Check also HUGE_VALF, HUGE_VALL.
1338         * modules/math-tests (Files): Add tests/macros.h.
1339         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1340         HUGE_VALL.
1341
1342 2012-02-28  Bruno Haible  <bruno@clisp.org>
1343
1344         doc: Move ISO C11 feature notes into POSIX chapters.
1345         * doc/posix-functions/aligned_alloc.texi: Renamed from
1346         doc/glibc-functions/aligned_alloc.texi.
1347         * doc/posix-functions/quick_exit.texi: Renamed from
1348         doc/glibc-functions/quick_exit.texi.
1349         * doc/posix-headers/uchar.texi: Renamed from
1350         doc/glibc-headers/uchar.texi.
1351         * doc/posix-functions/c16rtomb.texi: Renamed from
1352         doc/glibc-functions/c16rtomb.texi.
1353         * doc/posix-functions/c32rtomb.texi: Renamed from
1354         doc/glibc-functions/c32rtomb.texi.
1355         * doc/posix-functions/mbrtoc16.texi: Renamed from
1356         doc/glibc-functions/mbrtoc16.texi.
1357         * doc/posix-functions/mbrtoc32.texi: Renamed from
1358         doc/glibc-functions/mbrtoc32.texi.
1359         * doc/gnulib.texi: Update.
1360         (Glibc uchar.h): Remove section.
1361         Suggested by Eric Blake.
1362
1363 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1364
1365         stdnoreturn: port to MSVC better
1366         MSVC standard headers use __declspec(noreturn), so #define noreturn
1367         to empty on that platform.  Reported by Bruno Haible in
1368         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1369         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1370         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1371
1372 2012-02-28  Bruno Haible  <bruno@clisp.org>
1373
1374         doc: Mention new glibc headers and functions.
1375         * doc/glibc-headers/uchar.texi: New file.
1376         * doc/glibc-functions/aligned_alloc.texi: New file.
1377         * doc/glibc-functions/c16rtomb.texi: New file.
1378         * doc/glibc-functions/c32rtomb.texi: New file.
1379         * doc/glibc-functions/clock_adjtime.texi: New file.
1380         * doc/glibc-functions/fanotify_init.texi: New file.
1381         * doc/glibc-functions/fanotify_mark.texi: New file.
1382         * doc/glibc-functions/inet6_opt_append.texi: New file.
1383         * doc/glibc-functions/inet6_opt_find.texi: New file.
1384         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1385         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1386         * doc/glibc-functions/inet6_opt_init.texi: New file.
1387         * doc/glibc-functions/inet6_opt_next.texi: New file.
1388         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1389         * doc/glibc-functions/inet6_rth_add.texi: New file.
1390         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1391         * doc/glibc-functions/inet6_rth_init.texi: New file.
1392         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1393         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1394         * doc/glibc-functions/inet6_rth_space.texi: New file.
1395         * doc/glibc-functions/login.texi: New file.
1396         * doc/glibc-functions/mbrtoc16.texi: New file.
1397         * doc/glibc-functions/mbrtoc32.texi: New file.
1398         * doc/glibc-functions/name_to_handle_at.texi: New file.
1399         * doc/glibc-functions/ntp_gettimex.texi: New file.
1400         * doc/glibc-functions/open_by_handle_at.texi: New file.
1401         * doc/glibc-functions/prlimit.texi: New file.
1402         * doc/glibc-functions/process_vm_readv.texi: New file.
1403         * doc/glibc-functions/process_vm_writev.texi: New file.
1404         * doc/glibc-functions/recvmmsg.texi: New file.
1405         * doc/glibc-functions/scandirat.texi: New file.
1406         * doc/glibc-functions/sendmmsg.texi: New file.
1407         * doc/glibc-functions/setns.texi: New file.
1408         * doc/glibc-functions/timespec_get.texi: New file.
1409         * doc/gnulib.texi: Include them.
1410         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1411         sections.
1412         Reported by Eric Blake.
1413
1414 2012-02-28  Bruno Haible  <bruno@clisp.org>
1415
1416         Avoid compilation errors with MSVC option -fp:strict.
1417         * lib/floor.c: Use MSVC specific pragma fenv_access.
1418         * lib/ceil.c: Likewise.
1419         * lib/trunc.c: Likewise.
1420         * lib/round.c: Likewise.
1421         * lib/rint.c: Likewise.
1422         * lib/fma.c: Likewise.
1423         * lib/integer_length.c: Likewise.
1424         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1425         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1426         * tests/test-floor2.c: Likewise.
1427         * tests/test-floorf2.c: Likewise.
1428         * tests/test-ceil2.c: Likewise.
1429         * tests/test-ceilf2.c: Likewise.
1430         * tests/test-trunc2.c: Likewise.
1431         * tests/test-truncf2.c: Likewise.
1432         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1433
1434 2012-02-27  Bruno Haible  <bruno@clisp.org>
1435
1436         Tests for module 'sqrtl-ieee'.
1437         * modules/sqrtl-ieee-tests: New file.
1438         * tests/test-sqrtl-ieee.c: New file.
1439
1440         New module 'sqrtl-ieee'.
1441         * modules/sqrtl-ieee: New file.
1442
1443         Tests for module 'sqrt-ieee'.
1444         * modules/sqrt-ieee-tests: New file.
1445         * tests/test-sqrt-ieee.c: New file.
1446
1447         New module 'sqrt-ieee'.
1448         * modules/sqrt-ieee: New file.
1449
1450         Tests for module 'sqrtf-ieee'.
1451         * modules/sqrtf-ieee-tests: New file.
1452         * tests/test-sqrtf-ieee.c: New file.
1453         * tests/test-sqrt-ieee.h: New file.
1454
1455         New module 'sqrtf-ieee'.
1456         * modules/sqrtf-ieee: New file.
1457
1458 2012-02-27  Bruno Haible  <bruno@clisp.org>
1459
1460         remainderl-ieee: Work around test failure on OSF/1.
1461         * m4/remainderl-ieee.m4: New file.
1462         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
1463         present, test whether remainderl works with a zero second argument.
1464         Replace it if not.
1465         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
1466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
1467         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
1468         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
1469         (Depends-on): Update conditions.
1470         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
1471         (Depends-on): Add remainder-ieee.
1472         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
1473         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
1474         module.
1475
1476         remainderf-ieee: Work around test failure on OSF/1.
1477         * m4/remainderf-ieee.m4: New file.
1478         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
1479         present, test whether remainderf works with a zero second argument.
1480         Replace it if not.
1481         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
1482         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
1483         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
1484         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
1485         (Depends-on): Update conditions.
1486         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
1487         (Depends-on): Add remainder-ieee.
1488         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
1489         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
1490         module.
1491
1492         remainder-ieee: Work around test failure on OSF/1.
1493         * m4/remainder-ieee.m4: New file.
1494         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
1495         present, test whether remainder works with a zero second argument.
1496         Replace it if not.
1497         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
1498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
1499         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
1500         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
1501         (Depends-on): Update dependencies.
1502         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
1503         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
1504         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
1505
1506         Tests for module 'remainderl-ieee'.
1507         * modules/remainderl-ieee-tests: New file.
1508         * tests/test-remainderl-ieee.c: New file.
1509
1510         New module 'remainderl-ieee'.
1511         * modules/remainderl-ieee: New file.
1512
1513         Tests for module 'remainder-ieee'.
1514         * modules/remainder-ieee-tests: New file.
1515         * tests/test-remainder-ieee.c: New file.
1516
1517         New module 'remainder-ieee'.
1518         * modules/remainder-ieee: New file.
1519
1520         Tests for module 'remainderf-ieee'.
1521         * modules/remainderf-ieee-tests: New file.
1522         * tests/test-remainderf-ieee.c: New file.
1523         * tests/test-remainder-ieee.h: New file.
1524
1525         New module 'remainderf-ieee'.
1526         * modules/remainderf-ieee: New file.
1527
1528 2012-02-27  Bruno Haible  <bruno@clisp.org>
1529
1530         modff, modfl: Fix configure syntax error.
1531         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
1532         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1533
1534 2012-02-27  Bruno Haible  <bruno@clisp.org>
1535
1536         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
1537         * m4/fmodl-ieee.m4: New file.
1538         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
1539         whether fmodl works with zero arguments. Replace it if not.
1540         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
1541         (Depends-on): Add fmod-ieee.
1542         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
1543         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
1544
1545         fmodf-ieee: Work around test failure on OSF/1.
1546         * m4/fmodf-ieee.m4: New file.
1547         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
1548         whether fmodf works with zero arguments. Replace it if not.
1549         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
1550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
1551         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
1552         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
1553         (Depends-on): Update dependencies.
1554         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
1555         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
1556         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
1557
1558         fmodf-ieee: Work around test failure on MSVC 9.
1559         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
1560         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
1561
1562         fmod-ieee: Work around test failures on OSF/1, mingw.
1563         * m4/fmod-ieee.m4: New file.
1564         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
1565         whether fmod works with zero arguments. Replace it if not.
1566         * lib/math.in.h (fmod): New declaration.
1567         * lib/fmod.c: New file.
1568         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
1569         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
1570         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
1571         * modules/fmod (Files): Add lib/fmod.c.
1572         (Depends-on): Add math, isinf, trunc, fma.
1573         (configure.ac): Arrange to compile lib/fmod.c if needed.
1574         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
1575         m4/signbit.m4.
1576         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
1577         * tests/test-math-c++.cc: Check the declaration of fmod.
1578         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
1579
1580         fmodl-ieee: Fix test failures.
1581         * lib/fmodl.c (fmodl): Treat Inf specially.
1582         * modules/fmodl (Depends-on): Add isinf.
1583
1584         Tests for module 'fmodl-ieee'.
1585         * modules/fmodl-ieee-tests: New file.
1586         * tests/test-fmodl-ieee.c: New file.
1587
1588         New module 'fmodl-ieee'.
1589         * modules/fmodl-ieee: New file.
1590
1591         Tests for module 'fmod-ieee'.
1592         * modules/fmod-ieee-tests: New file.
1593         * tests/test-fmod-ieee.c: New file.
1594
1595         New module 'fmod-ieee'.
1596         * modules/fmod-ieee: New file.
1597
1598         Tests for module 'fmodf-ieee'.
1599         * modules/fmodf-ieee-tests: New file.
1600         * tests/test-fmodf-ieee.c: New file.
1601         * tests/test-fmod-ieee.h: New file.
1602
1603         New module 'fmodf-ieee'.
1604         * modules/fmodf-ieee: New file.
1605
1606 2012-02-27  Bruno Haible  <bruno@clisp.org>
1607
1608         Tests for module 'rintl-ieee'.
1609         * modules/rintl-ieee-tests: New file.
1610         * tests/test-rintl-ieee.c: New file.
1611
1612         New module 'rintl-ieee'.
1613         * modules/rintl-ieee: New file.
1614
1615         Tests for module 'rint-ieee'.
1616         * modules/rint-ieee-tests: New file.
1617         * tests/test-rint-ieee.c: New file.
1618
1619         New module 'rint-ieee'.
1620         * modules/rint-ieee: New file.
1621
1622         Tests for module 'rintf-ieee'.
1623         * modules/rintf-ieee-tests: New file.
1624         * tests/test-rintf-ieee.c: New file.
1625         * tests/test-rint-ieee.h: New file.
1626
1627         New module 'rintf-ieee'.
1628         * modules/rintf-ieee: New file.
1629
1630 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
1631
1632         regex: re_search etc. should return -2 when memory exhausted
1633         This bug was uncovered when testing 'grep'.  Without the fix,
1634         re_search and friends return -1 when memory is exhausted, but -1
1635         means no match, and this causes grep to falsely report no-match
1636         instead of memory-exhaustion.  See
1637         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
1638         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
1639         trouble; this can occur if re_search_internal ran out of memory.
1640
1641 2012-02-26  Bruno Haible  <bruno@clisp.org>
1642
1643         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
1644         * m4/modfl-ieee.m4: New file.
1645         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
1646         whether modfl works with Inf. Replace it if not.
1647         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
1648         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
1649         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
1650         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
1651         (Depends-on): Update dependencies.
1652         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
1653         m4/signbit.m4.
1654         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
1655         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
1656
1657         modfl-ieee: Fix dependencies.
1658         * modules/modfl-ieee (Depends-on): Add modf-ieee.
1659
1660         modfl-ieee: Fix test failures.
1661         * lib/modfl.c (modfl): Treat NaN and Inf specially.
1662         * modules/modfl (Depends-on): Add isfinite, isinf.
1663
1664         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
1665         * m4/modff-ieee.m4: New file.
1666         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
1667         whether modff works with NaN and Inf. Replace it if not.
1668         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
1669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
1670         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
1671         * modules/modff (configure.ac): Consider REPLACE_MODFF.
1672         (Depends-on): Update dependencies.
1673         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
1674         m4/signbit.m4.
1675         (Depends-on): Add modf-ieee.
1676         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
1677         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
1678
1679         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
1680         * m4/modf-ieee.m4: New file.
1681         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
1682         whether modf works with NaN and Inf. Replace it if not.
1683         * lib/math.in.h (modf): New declaration.
1684         * lib/modf.c: New file.
1685         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
1686         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
1687         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
1688         * modules/modf (Files): Add lib/modf.c.
1689         (Depends-on): Add math, isfinite, trunc, isinf.
1690         (configure.ac): Addrange to compile lib/modf.c if needed.
1691         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
1692         m4/signbit.m4.
1693         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
1694         * tests/test-math-c++.cc: Check the declaration of modf.
1695         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
1696
1697         Tests for module 'modfl-ieee'.
1698         * modules/modfl-ieee-tests: New file.
1699         * tests/test-modfl-ieee.c: New file.
1700
1701         New module 'modfl-ieee'.
1702         * modules/modfl-ieee: New file.
1703
1704         Tests for module 'modf-ieee'.
1705         * modules/modf-ieee-tests: New file.
1706         * tests/test-modf-ieee.c: New file.
1707
1708         New module 'modf-ieee'.
1709         * modules/modf-ieee: New file.
1710
1711         Tests for module 'modff-ieee'.
1712         * modules/modff-ieee-tests: New file.
1713         * tests/test-modff-ieee.c: New file.
1714         * tests/test-modf-ieee.h: New file.
1715
1716         New module 'modff-ieee'.
1717         * modules/modff-ieee: New file.
1718
1719 2012-02-26  Bruno Haible  <bruno@clisp.org>
1720
1721         Tests for module 'fabsl-ieee'.
1722         * modules/fabsl-ieee-tests: New file.
1723         * tests/test-fabsl-ieee.c: New file.
1724
1725         New module 'fabsl-ieee'.
1726         * modules/fabsl-ieee: New file.
1727
1728         Tests for module 'fabs-ieee'.
1729         * modules/fabs-ieee-tests: New file.
1730         * tests/test-fabs-ieee.c: New file.
1731
1732         New module 'fabs-ieee'.
1733         * modules/fabs-ieee: New file.
1734
1735         Tests for module 'fabsf-ieee'.
1736         * modules/fabsf-ieee-tests: New file.
1737         * tests/test-fabsf-ieee.c: New file.
1738         * tests/test-fabs-ieee.h: New file.
1739
1740         New module 'fabsf-ieee'.
1741         * modules/fabsf-ieee: New file.
1742
1743 2012-02-26  Bruno Haible  <bruno@clisp.org>
1744
1745         Tests for module 'fmal-ieee'.
1746         * modules/fmal-ieee-tests: New file.
1747         * tests/test-fmal-ieee.c: New file.
1748
1749         New module 'fmal-ieee'.
1750         * modules/fmal-ieee: New file.
1751
1752         Tests for module 'fma-ieee'.
1753         * modules/fma-ieee-tests: New file.
1754         * tests/test-fma-ieee.c: New file.
1755
1756         New module 'fma-ieee'.
1757         * modules/fma-ieee: New file.
1758
1759         Tests for module 'fmaf-ieee'.
1760         * modules/fmaf-ieee-tests: New file.
1761         * tests/test-fmaf-ieee.c: New file.
1762         * tests/test-fma-ieee.h: New file.
1763
1764         New module 'fmaf-ieee'.
1765         * modules/fmaf-ieee: New file.
1766
1767 2012-02-26  Bruno Haible  <bruno@clisp.org>
1768
1769         Tests for module 'ldexpl-ieee'.
1770         * modules/ldexpl-ieee-tests: New file.
1771         * tests/test-ldexpl-ieee.c: New file.
1772
1773         New module 'ldexpl-ieee'.
1774         * modules/ldexpl-ieee: New file.
1775
1776         Tests for module 'ldexp-ieee'.
1777         * modules/ldexp-ieee-tests: New file.
1778         * tests/test-ldexp-ieee.c: New file.
1779
1780         New module 'ldexp-ieee'.
1781         * modules/ldexp-ieee: New file.
1782
1783         Tests for module 'ldexpf-ieee'.
1784         * modules/ldexpf-ieee-tests: New file.
1785         * tests/test-ldexpf-ieee.c: New file.
1786         * tests/test-ldexp-ieee.h: New file.
1787
1788         New module 'ldexpf-ieee'.
1789         * modules/ldexpf-ieee: New file.
1790
1791 2012-02-26  Bruno Haible  <bruno@clisp.org>
1792
1793         Refactor frexp*-ieee tests.
1794         * tests/test-frexp-ieee.h: New file.
1795         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
1796         (main): Just call test_function.
1797         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
1798         (main): Just call test_function.
1799         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
1800         (main): Just call test_function.
1801         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
1802         * modules/frexp-ieee-tests (Files): Likewise.
1803         * modules/frexpl-ieee-tests (Files): Likewise.
1804
1805         Tests for module 'frexpl-ieee'.
1806         * modules/frexpl-ieee-tests: New file.
1807         * tests/test-frexpl-ieee.c: New file.
1808
1809         New module 'frexpl-ieee'.
1810         * modules/frexpl-ieee: New file.
1811
1812         Tests for module 'frexp-ieee'.
1813         * modules/frexp-ieee-tests: New file.
1814         * tests/test-frexp-ieee.c: New file.
1815
1816         New module 'frexp-ieee'.
1817         * modules/frexp-ieee: New file.
1818
1819         Tests for module 'frexpf-ieee'.
1820         * modules/frexpf-ieee-tests: New file.
1821         * tests/test-frexpf-ieee.c: New file.
1822
1823         New module 'frexpf-ieee'.
1824         * modules/frexpf-ieee: New file.
1825
1826 2012-02-26  Bruno Haible  <bruno@clisp.org>
1827
1828         roundl-ieee tests: More tests.
1829         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1830         (main): Add tests for [MX] shaded specification in POSIX.
1831         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1832         (Depends-on): Add isnanl-nolibm.
1833
1834         round-ieee tests: More tests.
1835         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1836         (main): Add tests for [MX] shaded specification in POSIX.
1837         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1838         (Depends-on): Add isnand-nolibm.
1839
1840         roundf-ieee tests: More tests.
1841         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1842         (main): Add tests for [MX] shaded specification in POSIX.
1843         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1844         (Depends-on): Add isnanf-nolibm.
1845
1846         truncl-ieee tests: More tests.
1847         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1848         (main): Add tests for [MX] shaded specification in POSIX.
1849         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1850         (Depends-on): Add isnanl-nolibm.
1851
1852         trunc-ieee tests: More tests.
1853         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1854         (main): Add tests for [MX] shaded specification in POSIX.
1855         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1856         (Depends-on): Add isnand-nolibm.
1857
1858         truncf-ieee tests: More tests.
1859         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1860         (main): Add tests for [MX] shaded specification in POSIX.
1861         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1862         (Depends-on): Add isnanf-nolibm.
1863
1864         ceill-ieee tests: More tests.
1865         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1866         (main): Add tests for [MX] shaded specification in POSIX.
1867         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1868         (Depends-on): Add isnanl-nolibm.
1869
1870         ceil-ieee tests: More tests.
1871         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1872         (main): Add tests for [MX] shaded specification in POSIX.
1873         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1874         (Depends-on): Add isnand-nolibm.
1875
1876         ceilf-ieee tests: More tests.
1877         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1878         (main): Add tests for [MX] shaded specification in POSIX.
1879         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1880         (Depends-on): Add isnanf-nolibm.
1881
1882         floorl-ieee tests: More tests.
1883         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
1884         (main): Add tests for [MX] shaded specification in POSIX.
1885         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1886         (Depends-on): Add isnanl-nolibm.
1887
1888         floor-ieee tests: More tests.
1889         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
1890         (main): Add tests for [MX] shaded specification in POSIX.
1891         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1892         (Depends-on): Add isnand-nolibm.
1893
1894         floorf-ieee tests: More tests.
1895         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
1896         (main): Add tests for [MX] shaded specification in POSIX.
1897         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
1898         (Depends-on): Add isnanf-nolibm.
1899
1900 2012-02-26  Bruno Haible  <bruno@clisp.org>
1901
1902         fpieee: More comments.
1903         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
1904
1905 2012-02-25  Bruno Haible  <bruno@clisp.org>
1906
1907         Tests for module 'log10l'.
1908         * modules/log10l-tests: New file.
1909         * tests/test-log10l.c: New file.
1910         * tests/test-math-c++.cc: Check the declaration of log10l.
1911
1912         New module 'log10l'.
1913         * lib/math.in.h (log10l): New declaration.
1914         * lib/log10l.c: New file.
1915         * m4/log10l.m4: New file.
1916         * modules/log10l: New file.
1917         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
1918         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
1919         HAVE_DECL_LOG10L.
1920         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
1921         HAVE_DECL_LOG10L.
1922         * doc/posix-functions/log10l.texi: Mention the new module.
1923
1924 2012-02-25  Bruno Haible  <bruno@clisp.org>
1925
1926         fmodl, remainder*: Avoid wrong results due to rounding errors.
1927         * lib/fmodl.c (fmodl): Correct the result if it is not within the
1928         expected bounds.
1929         * lib/remainderf.c (remainderf): Likewise.
1930         * lib/remainder.c (remainder): Likewise.
1931         * lib/remainderl.c (remainderl): Likewise.
1932
1933 2012-02-25  Bruno Haible  <bruno@clisp.org>
1934
1935         Tests for module 'remainderl'.
1936         * modules/remainderl-tests: New file.
1937         * tests/test-remainderl.c: New file.
1938         * tests/test-math-c++.cc: Check the declaration of remainderl.
1939
1940         New module 'remainderl'.
1941         * lib/math.in.h (remainderl): New declaration.
1942         * lib/remainderl.c: New file.
1943         * m4/remainderl.m4: New file.
1944         * modules/remainderl: New file.
1945         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
1946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
1947         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
1948         HAVE_REMAINDERL.
1949         * doc/posix-functions/remainderl.texi: Mention the new module.
1950
1951 2012-02-25  Bruno Haible  <bruno@clisp.org>
1952
1953         Tests for module 'remainderf'.
1954         * modules/remainderf-tests: New file.
1955         * tests/test-remainderf.c: New file.
1956         * tests/test-math-c++.cc: Check the declaration of remainderf.
1957
1958         New module 'remainderf'.
1959         * lib/math.in.h (remainderf): New declaration.
1960         * lib/remainderf.c: New file.
1961         * m4/remainderf.m4: New file.
1962         * modules/remainderf: New file.
1963         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
1964         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
1965         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
1966         HAVE_REMAINDERF.
1967         * doc/posix-functions/remainderf.texi: Mention the new module.
1968
1969 2012-02-25  Bruno Haible  <bruno@clisp.org>
1970
1971         remainder: Support for MSVC.
1972         * lib/math.in.h (remainder): New declaration.
1973         * lib/remainder.c: New file.
1974         * m4/remainder.m4: New file.
1975         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
1976         (Depends-on): Add math, round, fma.
1977         (configure.ac): Use results of gl_FUNC_REMAINDER.
1978         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
1979         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
1980         HAVE_DECL_REMAINDER.
1981         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
1982         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
1983         * tests/test-math-c++.cc: Check the declaration of remainder.
1984         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
1985         problems are fixed.
1986
1987 2012-02-25  Bruno Haible  <bruno@clisp.org>
1988
1989         Tests for module 'fmodl'.
1990         * modules/fmodl-tests: New file.
1991         * tests/test-fmodl.c: New file.
1992         * tests/test-math-c++.cc: Check the declaration of fmodl.
1993
1994         New module 'fmodl'.
1995         * lib/math.in.h (fmodl): New declaration.
1996         * lib/fmodl.c: New file.
1997         * m4/fmodl.m4: New file.
1998         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
1999         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2000         REPLACE_FMODL.
2001         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2002         REPLACE_FMODL.
2003         * modules/fmodl: New file.
2004         * doc/posix-functions/fmodl.texi: Mention the new module.
2005
2006 2012-02-25  Bruno Haible  <bruno@clisp.org>
2007
2008         Tests for module 'modfl'.
2009         * modules/modfl-tests: New file.
2010         * tests/test-modfl.c: New file.
2011         * tests/test-math-c++.cc: Check the declaration of modfl.
2012
2013         New module 'modfl'.
2014         * lib/math.in.h (modfl): New declaration.
2015         * lib/modfl.c: New file.
2016         * m4/modfl.m4: New file.
2017         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2018         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2019         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2020         * modules/modfl: New file.
2021         * doc/posix-functions/modfl.texi: Mention the new module.
2022
2023 2012-02-25  Bruno Haible  <bruno@clisp.org>
2024
2025         Tests for module 'fabsl'.
2026         * modules/fabsl-tests: New file.
2027         * tests/test-fabsl.c: New file.
2028         * tests/test-math-c++.cc: Check the declaration of fabsl.
2029
2030         New module 'fabsl'.
2031         * lib/math.in.h (fabsl): New declaration.
2032         * lib/fabsl.c: New file.
2033         * m4/fabsl.m4: New file.
2034         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2036         REPLACE_FABSL.
2037         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2038         REPLACE_FABSL.
2039         * modules/fabsl: New file.
2040         * doc/posix-functions/fabsl.texi: Mention the new module.
2041
2042 2012-02-25  Bruno Haible  <bruno@clisp.org>
2043
2044         fabs tests: More tests.
2045         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2046         (zero): New variable.
2047         (main): Add tests for signed zero.
2048         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2049
2050         fabsf tests: More tests.
2051         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2052         (zero): New variable.
2053         (main): Add tests for signed zero.
2054         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2055
2056 2012-02-24  Bruno Haible  <bruno@clisp.org>
2057
2058         atanl: Provide function definition on MSVC.
2059         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2060         function pointer.
2061         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2062
2063 2012-02-24  Bruno Haible  <bruno@clisp.org>
2064
2065         acosl: Provide function definition on MSVC.
2066         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2067         function pointer.
2068         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2069
2070 2012-02-24  Bruno Haible  <bruno@clisp.org>
2071
2072         asinl: Provide function definition on MSVC.
2073         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2074         function pointer.
2075         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2076
2077 2012-02-24  Bruno Haible  <bruno@clisp.org>
2078
2079         tanl: Provide function definition on MSVC.
2080         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2081         function pointer.
2082         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2083
2084 2012-02-24  Bruno Haible  <bruno@clisp.org>
2085
2086         cosl: Provide function definition on MSVC.
2087         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2088         function pointer.
2089         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2090
2091 2012-02-24  Bruno Haible  <bruno@clisp.org>
2092
2093         sinl: Provide function definition on MSVC.
2094         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2095         function pointer.
2096         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2097
2098 2012-02-24  Bruno Haible  <bruno@clisp.org>
2099
2100         logl: Provide function definition on MSVC.
2101         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2102         function pointer.
2103         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2104
2105 2012-02-24  Bruno Haible  <bruno@clisp.org>
2106
2107         expl: Provide function definition on MSVC.
2108         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2109         function pointer.
2110         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2111
2112 2012-02-24  Bruno Haible  <bruno@clisp.org>
2113
2114         sqrtl: Provide function definition on MSVC.
2115         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2116         a function pointer.
2117         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2118
2119 2012-02-24  Bruno Haible  <bruno@clisp.org>
2120
2121         ceill: Provide function definition on MSVC.
2122         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2123         used as a function pointer.
2124         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2125
2126 2012-02-24  Bruno Haible  <bruno@clisp.org>
2127
2128         floorl: Provide function definition on MSVC.
2129         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2130         used as a function pointer.
2131         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2132
2133 2012-02-24  Bruno Haible  <bruno@clisp.org>
2134
2135         ceilf: Provide function definition on MSVC.
2136         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2137         used as a function pointer.
2138         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2139
2140 2012-02-24  Bruno Haible  <bruno@clisp.org>
2141
2142         floorf: Provide function definition on MSVC.
2143         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2144         used as a function pointer.
2145         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2146
2147 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2148
2149         stdnoreturn: new module
2150         This implements a replacement for C11's <stdnoreturn.h>.
2151         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2152         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2153         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2154         * tests/test-stdnoreturn.c: New files.
2155
2156 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2157
2158         regex: fix false multibyte matches in some regular expressions
2159         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2160         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2161         * lib/regex_internal.c (re_string_skip_chars):
2162         Fix miscomputation of remain_len that may cause incomplete
2163         multi-byte character and false match.
2164
2165 2012-02-24  Jim Meyering  <meyering@redhat.com>
2166
2167         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2168         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2169         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2170         Remove now-unnecessary str''cmp obfuscation.
2171         Suggested by Akim Demaille.
2172
2173 2012-02-24  Bruno Haible  <bruno@clisp.org>
2174
2175         streq: Rename macro.
2176         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2177         * NEWS: Mention the change.
2178         * lib/mbrtowc.c (mbrtowc): Update.
2179         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2180         * lib/wcwidth.c (wcwidth): Update.
2181         Suggested by Akim Demaille and Jim Meyering.
2182
2183 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2184
2185         regex: fix typo in definition of MIN
2186         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2187         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2188
2189 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2190             Bruno Haible  <bruno@clisp.org>
2191
2192         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2193         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2194         entries into a stack-allocated buffer directly.
2195         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2196
2197 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2198             Bruno Haible  <bruno@clisp.org>
2199
2200         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2201
2202          - There were several instances of this pattern:
2203
2204              for (;;) {
2205                n = acl (f, GETACLCNT, 0, NULL);
2206                [ allocate an array A of size N ]
2207                if (acl (f, GETACL, n, a) == n)
2208                  break;
2209              }
2210
2211            This loop might never terminate if some other process is constantly
2212            manipulating the file's ACL.  The loop should be rewritten to
2213            terminate.
2214
2215          - The acl (... GETACLNT ...) call is merely an optimization; its value
2216            is merely a hint as to how big to make the array.  A better
2217            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2218            and just guess a reasonably-big size, growing the size and trying
2219            again if it's not large enough.  This guarantees termination, and
2220            saves a system call.
2221
2222         * lib/acl-internal.h: Include <limits.h>.
2223         (MIN, SIZE_MAX): New macros.
2224         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2225         a stack-allocated buffer, and use malloc if it does not fit. Don't
2226         use GETACLCNT.
2227         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2228
2229 2012-02-19  Bruno Haible  <bruno@clisp.org>
2230
2231         acl: Fix endless loop on Solaris with vxfs.
2232         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2233         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2234         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2235         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2236         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2237         Reported by Bill Jones in
2238         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2239
2240 2012-02-19  Bruno Haible  <bruno@clisp.org>
2241
2242         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2243         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2244         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2245         that this function returns 0 in some more cases.
2246
2247 2012-02-19  Bruno Haible  <bruno@clisp.org>
2248
2249         acl: Update doc references.
2250         * doc/acl-resources.txt: Update links to Solaris documentation.
2251
2252 2012-02-19  Bruno Haible  <bruno@clisp.org>
2253
2254         Fix test failure in many locales on Solaris 11.
2255         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2256         'tr' arguments.
2257         * tests/test-pipe-filter-ii1.c (main): Likewise.
2258         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2259         expressions in the C locale.
2260         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2261         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2262
2263 2012-02-19  Bruno Haible  <bruno@clisp.org>
2264
2265         gnulib-tool: Improve usage message.
2266         * gnulib-tool (func_usage): Move doc of --help and --version to the
2267         section "Operation modes".
2268
2269 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2270
2271         README-release: make it easier to execute commands
2272         * top/README-release: break commands out on to separate lines.
2273
2274 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2275
2276         GNUmakefile: simplify detection of unconfigured trees
2277         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2278         whether the tree make is being run from is already configured or
2279         not.  Related simplifications.
2280
2281 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2282
2283         * gnulib-tool (func_usage): Document --help and --version.
2284
2285 2012-02-11  Jim Meyering  <meyering@redhat.com>
2286
2287         bootstrap: don't exit 0 upon gnulib-tool failure
2288         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2289         its exit status, not 0.
2290
2291 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2292
2293         README-release: various improvements
2294         * top/README-release: Give a command to push changes for the
2295         release.  Add "distcheck" to list of other pre-release checks.
2296         Fix instance of "make stable" which should be "make TYPE".
2297
2298 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2299
2300         maint: replace FSF snail-mail addresses with URLs
2301         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2302         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2303         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2304         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2305         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2306         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2307         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2308         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2309         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2310         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2311         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2312         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2313         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2314         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2315         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2316         * lib/glthread/thread.c, lib/glthread/thread.h:
2317         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2318         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2319         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2320         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2321         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2322         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2323         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2324         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2325         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2326         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2327         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2328         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2329         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2330         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2331         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2332         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2333         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2334         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2335         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2336         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2337         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2338         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2339         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2340         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2341         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2342         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2343         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2344         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2345         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2346         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2347         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2348         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2349         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2350         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2351         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2352         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2353         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2354         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2355         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2356         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2357         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2358         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2359         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2360         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2361         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2362         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2363         * tests/test-poll.c, tests/test-quotearg-simple.c:
2364         * tests/test-quotearg.c, tests/test-quotearg.h:
2365         * tests/test-round-ieee.c, tests/test-round1.c:
2366         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2367         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2368         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2369         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2370         * tests/test-strerror.c, tests/test-strerror_r.c:
2371         * tests/test-strsignal.c, tests/test-strverscmp.c:
2372         * tests/test-xmemdup0.c:
2373         Replace FSF snail mail addresses with URLs, as per GNU coding
2374         standards.  See glibc bug
2375         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2376
2377 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2378
2379         README-release: capitalize a word and split a line
2380         * top/README-release: Fix punctuation and spacing.
2381
2382 2012-02-08  Akim Demaille  <demaille@gostai.com>
2383
2384         fatal-signal: use C prototypes (with explicit void).
2385         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2386         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2387
2388 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         regex: spelling fix
2391         * lib/regexec.c: spelling fix
2392
2393         regex: rely on stdint.h for SIZE_MAX
2394         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2395
2396 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2397
2398         regex: merge glibc changes
2399
2400         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2401         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2402         (init_word_char): Work even if bitset words are not exactly 32 or
2403         64 bits wide.  Don't assume there are no padding bits.
2404         * lib/regex.c [_LIBC]: Do not include <config.h>.
2405         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2406         and -Wtype-limits.
2407         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2408         needless disagreement with glibc.  All uses changed.  Define it to
2409         1 only if _GNU_SOURCE, to match glibc.
2410         (_REG_RM_NAME): Remove; no longer needed, since the names in
2411         question are now all protected by __USE_GNU.
2412         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2413         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2414         * lib/regex_internal.h (MIN): New macro.
2415
2416         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2417         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2418
2419         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2420         * lib/regex_internal.c (re_string_fetch_byte_case):
2421         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2422         is miscompiled, and it turns out it is because of an incorrect
2423         attribute on re_string_fetch_byte_case.  Unlike
2424         re_string_peek_byte_case, this one is really not pure, it modifies
2425         memory (increments pstr->cur_idx), and with the pure attribute GCC
2426         assumed it doesn't and it cached the presumed value of
2427         regexp->cur_idx in a variable across the
2428          for (;; ++i)
2429            {
2430              if (i >= BRACKET_NAME_BUF_SIZE)
2431                return REG_EBRACK;
2432              if (token->type == OP_OPEN_CHAR_CLASS)
2433                ch = re_string_fetch_byte_case (regexp);
2434              else
2435                ch = re_string_fetch_byte (regexp);
2436              if (re_string_eoi(regexp))
2437                return REG_EBRACK;
2438              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
2439                break;
2440              elem->opr.name[i] = ch;
2441            }
2442
2443         2011-11-29 Andreas Schwab <schwab@redhat.com>
2444         * lib/regcomp.c (build_equiv_class):
2445         Fix access after end of search string in regex matcher.
2446
2447         2011-11-12 Ulrich Drepper <drepper@redhat.com>
2448         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
2449
2450         2011-10-12 Ulrich Drepper <drepper@redhat.com>
2451         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
2452
2453         2011-10-11 Ulrich Drepper <drepper@redhat.com>
2454         * lib/regcomp.c (parse_branch, parse_sub_exp):
2455         More regex memory leak fixes and tests.
2456         (parse_sub_exp, parse_bracket_exp):
2457         Fix memory leak for some invalid regular expressions.
2458
2459         2011-05-28 Ulrich Drepper <drepper@gmail.com>
2460         * lib/regex_internal.c, lib/regexec.c:
2461         Fix unnecessary overallocation due to incomplete character.  When
2462         incomplete characters are found at the end of a string the code
2463         ran amok and allocated lots of memory.  Stricter limits are now in
2464         place.
2465
2466         2011-05-20 Reuben Thomas <rrt@sc3d.org>
2467         * lib/regex.h: Update documentation.
2468
2469         2011-05-16 Aharon Robbins <arnold@skeeve.com>
2470         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
2471
2472         2010-05-05 Andreas Schwab <schwab@redhat.com>
2473         * lib/regexec.c (find_collation_sequence_value):
2474         Fix lookup of collation sequence value during regexp matching.
2475
2476         2010-01-22 Ulrich Drepper <drepper@redhat.com>
2477         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
2478
2479         2008-01-16 Ulrich Drepper <drepper@redhat.com>
2480         * lib/regex.h: Cleanup namespace.
2481
2482         2007-11-26 Ulrich Drepper <drepper@redhat.com>
2483         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
2484
2485         2007-08-26 Ulrich Drepper <drepper@redhat.com>
2486         * lib/regex_internal.h: Prevent some declarations and definitions
2487         to be seen when used in tests.
2488
2489         2005-05-06 Ulrich Drepper <drepper@redhat.com>
2490         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
2491         __libc_lock_* macros if not _LIBC.
2492         (struct re_dfa_t): Add lock.
2493
2494 2012-02-07  Eric Blake  <eblake@redhat.com>
2495
2496         maint.mk: also prohibit lower-case @var@
2497         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
2498         lower case, like @top_srcdir@.
2499
2500 2012-02-04  Eric Blake  <eblake@redhat.com>
2501
2502         canonicalize: avoid uninitialized memory use
2503         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
2504         random '/' left in dest.
2505         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
2506
2507 2012-02-04  Bruno Haible  <bruno@clisp.org>
2508
2509         isatty: Fix test failure of ptsname_r on native Windows.
2510         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
2511         and don't set errno.
2512         (isatty): Test first whether fd is valid. Set errno when returning 0.
2513
2514 2012-02-04  Bruno Haible  <bruno@clisp.org>
2515
2516         spawn-pipe tests: Fix a NULL program name in a diagnostic.
2517         * tests/test-spawn-pipe-main.c: Include progname.h.
2518         (main): Invoke set_program_name.
2519         * modules/spawn-pipe-tests (Depends-on): Add progname.
2520
2521         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
2522         * tests/test-nonblocking-socket-main.c: Include progname.h.
2523         (main): Invoke set_program_name.
2524         * modules/nonblocking-socket-tests (Depends-on): Add progname.
2525
2526         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
2527         * tests/test-nonblocking-pipe-main.c: Include progname.h.
2528         (main): Invoke set_program_name.
2529         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
2530
2531 2012-02-04  Eric Blake  <eblake@redhat.com>
2532
2533         canonicalize-lgpl: fix // handling
2534         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
2535
2536         canonicalize: fix // handling
2537         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
2538         /// to //, since only // is special.
2539
2540 2012-02-04  Bruno Haible  <bruno@clisp.org>
2541
2542         ioctl: Fix test failure on native Windows.
2543         * lib/ioctl.c: Include msvc-nothrow.h.
2544         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
2545
2546 2012-02-04  Bruno Haible  <bruno@clisp.org>
2547
2548         fsync: Avoid test failure on native Windows.
2549         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
2550         read-only.
2551
2552 2012-02-04  Bruno Haible  <bruno@clisp.org>
2553
2554         sys_select: Avoid syntax error on OpenBSD 5.0.
2555         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
2556         currently being included, just include the system's <sys/select.h>.
2557
2558 2012-02-04  Bruno Haible  <bruno@clisp.org>
2559
2560         sys_select: Avoid syntax error on OpenBSD 5.0.
2561         * lib/sys_select.in.h: Include <signal.h> only after the include_next
2562         <sys/select.h>, not before.
2563         Reported by Jiri B <jirib@devio.us>.
2564
2565 2012-02-04  Bruno Haible  <bruno@clisp.org>
2566
2567         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
2568         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
2569         global variables.
2570         * tests/test-get-rusage-data.c (main): Likewise.
2571         Reported by Jim Meyering.
2572
2573 2012-02-04  Bruno Haible  <bruno@clisp.org>
2574
2575         stdioext: Fix last commit.
2576         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
2577
2578 2012-02-03  Bruno Haible  <bruno@clisp.org>
2579
2580         stdioext: Add tentative support for Plan9.
2581         * lib/stdio-impl.h: Include <errno.h>.
2582         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
2583         * lib/freadable.c (freadable): Likewise.
2584         * lib/fwritable.c (fwritable): Likewise.
2585         * lib/fbufmode.c (fbufmode): Likewise.
2586         * lib/freading.c (freading): Likewise.
2587         * lib/fwriting.c (fwriting): Likewise.
2588         * lib/freadptr.c (freadptr): Likewise.
2589         * lib/freadseek.c (freadptrinc): Likewise.
2590         * lib/freadahead.c (freadahead): Likewise.
2591         * lib/fpurge.c (fpurge): Likewise.
2592         * lib/fseeko.c (rpl_fseeko): Likewise.
2593         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
2594         Reported by Jens Staal <staal1978@gmail.com>.
2595
2596 2012-02-02  Jim Meyering  <meyering@redhat.com>
2597
2598         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
2599         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
2600         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
2601         not even to try to add the attribute.  Instead, add a pragma to suppress
2602         the suggestion/warning.
2603
2604 2012-01-31  Karl Berry  <karl@gnu.org>
2605
2606         setstate doc: typo.
2607         * doc/posix-functions/setstate.texi (setstate): { not (.
2608
2609 2012-01-31  Bruno Haible  <bruno@clisp.org>
2610
2611         popen: Make more robust on Windows.
2612         * lib/popen.c: On native Windows, use the _popen based code even if
2613         HAVE_POPEN is set.
2614         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
2615         environment variable on native Windows.
2616
2617 2012-01-30  Bruno Haible  <bruno@clisp.org>
2618
2619         pclose: Fix typo.
2620         * lib/stdio.in.h (pclose): Fix typo in warning message.
2621
2622 2012-01-30  Bruno Haible  <bruno@clisp.org>
2623
2624         doc about getlogin_r, setstate.
2625         * doc/posix-functions/getlogin_r.texi: List the incompatible
2626         declaration problem under "not fixed by gnulib".
2627         * doc/posix-functions/setstate.texi: Mention incompatible declaration
2628         problem on Solaris 11 and other platforms.
2629
2630 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
2631             Bruno Haible  <bruno@clisp.org>
2632
2633         poll tests: Make test more robust.
2634         * tests/test-poll.c: Include macros.h.
2635         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
2636         return value of various I/O operations.
2637         * modules/poll-tests (Files): Add tests/macros.h.
2638
2639 2012-01-30  Bruno Haible  <bruno@clisp.org>
2640
2641         sys_stat: Fix support for mingw64 and MSVC.
2642         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
2643         header files already do it.
2644         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
2645         stat itself.
2646         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2647
2648 2012-01-30  Bruno Haible  <bruno@clisp.org>
2649
2650         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
2651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
2652         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
2653
2654 2012-01-29  Bruno Haible  <bruno@clisp.org>
2655
2656         quotearg: Fix test failure on MacOS X 10.5.
2657         * tests/test-quotearg-simple.c: Include localcharset.h.
2658         (main): If the locale encoding is not ASCII, bypass the tests of
2659         locale_quoting_style and clocale_quoting_style.
2660         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
2661
2662 2012-01-29  Jim Meyering  <meyering@redhat.com>
2663
2664         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
2665         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
2666         detect uses of canonicalize_file_name.
2667
2668 2012-01-28  Bruno Haible  <bruno@clisp.org>
2669
2670         test-framework-sh: Fix test failure with AIX 7.1 diff.
2671         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
2672         in column 1, like 'diff -c' does.
2673         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
2674         whether 'diff -u' is used. Instead, test whether the output contains
2675         some '@' character.
2676
2677 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
2678
2679         strtoimax: eliminate need for stdint.h, inttypes.h checks
2680         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
2681         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
2682         the prerequisites for a recently-introduced strtoimax test.
2683         I guess this might cause strtoimax to be replaced when not
2684         strictly necessary on older hosts, but this shouldn't introduce
2685         any bugs and it should make Emacs 'configure' faster on typical
2686         modern hosts.  Problem discovered when importing the latest gnulib
2687         to an Emacs test version.
2688         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
2689
2690 2012-01-28  Bruno Haible  <bruno@clisp.org>
2691
2692         sys_time: Override 'struct timeval' on some native Windows platforms.
2693         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
2694         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
2695         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
2696         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
2697         needs to be overridden.
2698         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
2699         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
2700         * tests/test-sys_select.c: Check that the tv_sec member has the same
2701         size as a 'time_t'.
2702         * tests/test-sys_time.c: Likewise.
2703         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
2704         is set, set also REPLACE_GETTIMEOFDAY.
2705         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
2706         convert the resulting 'struct timeval' before returning.
2707         * lib/select.c: Include <sys/time.h>.
2708         (select, timeval): Undefine at the right place.
2709         * modules/select (Depends-on): Add sys_time.
2710         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
2711         some Windows platforms.
2712         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
2713
2714 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2715
2716         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
2717         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
2718         an integer.
2719         * lib/fcntl.c (dupfd): Likewise.
2720         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
2721
2722 2012-01-28  Bruno Haible  <bruno@clisp.org>
2723
2724         fcntl: Avoid compilation error on native Windows.
2725         * modules/fcntl (Depends-on): Add 'close'.
2726
2727 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2728
2729         select, poll, isatty: Avoid warnings on x86_64 mingw64.
2730         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
2731         pointer to an integer.
2732         * lib/poll.c (IsConsoleHandle): Likewise.
2733         * lib/isatty.c (IsConsoleHandle): Likewise.
2734
2735 2012-01-28  Jim Meyering  <meyering@redhat.com>
2736
2737         doc: clarify README-release
2738         * top/README-release: Clarify: you should make a point to have
2739         the latest stable versions of build tools in your PATH, and the
2740         reference to buildreq is solely for its list of tool names, not
2741         for its minimal-functional version numbers.
2742         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
2743
2744         maint.mk: use more readable (yet functionally equivalent) quoting
2745         It is common to quote a single quote in a single quoted string like
2746         this:  '...'\''...'.  Unless you know the idiom, that looks like
2747         gibberish, so prefer to double-quote the string when possible.
2748         Then you can use a more readable, lone single quote: "...'..."
2749         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
2750         "don't" is more readable than the equivalent 'don'\''t'.
2751         (sc_cast_of_x_alloc_return_value): Likewise.
2752         (sc_cast_of_alloca_return_value): Likewise.
2753         (sc_makefile_path_separator_check): Similar: use ":" in '...',
2754         rather than '\'':'\''.
2755
2756 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2757
2758         stdalign: relax _Alignof and tighten _Alignas test
2759         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
2760         as it was too strict: alignof must divide offsetof, but it need
2761         not equal offsetof.  Inspired by Joseph S. Myers's comment
2762         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
2763         Conversely, tighten the _Alignas test a bit, as the resulting
2764         alignment must be exactly 8.
2765
2766 2012-01-27  Bruno Haible  <bruno@clisp.org>
2767
2768         stdalign: Document the last change.
2769         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
2770
2771 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
2772
2773         stdalign: check that alignof and offsetof are consistent
2774         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
2775         Problem reported for gnulib by Richard W.M. Jones in
2776         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
2777
2778 2012-01-27  Jim Meyering  <meyering@redhat.com>
2779
2780         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
2781         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
2782         convert a sequence with gaps to the minimal containing range.
2783         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
2784         * tests/test-update-copyright.sh: Test for this.
2785         The FSF confirmed it is ok to do this, assuming there is at
2786         least one significant change per year in the affected range:
2787         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
2788
2789 2012-01-26  Bruno Haible  <bruno@clisp.org>
2790
2791         pipe2: refine doc about thread-safety
2792         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
2793         multithread-safety problem.
2794         * doc/glibc-functions/accept4.texi: Likewise.
2795
2796 2012-01-26  Bruno Haible  <bruno@clisp.org>
2797
2798         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
2799         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
2800         In the test program, include <fcntl.h>, for O_RDONLY.
2801
2802 2012-01-26  Eric Blake  <eblake@redhat.com>
2803
2804         pipe2: document lack of thread-safety in replacement
2805         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
2806         issue in replacement.
2807         * doc/glibc-functions/accept4.texi (accept4): Likewise.
2808         Based on a report by Eric Wong.
2809
2810 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
2811             Bruno Haible  <bruno@clisp.org>
2812
2813         malloca: Avoid warnings on x86_64 mingw64.
2814         * lib/malloca.c: Include <stdint.h>.
2815         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
2816         * modules/malloca (Depends-on): Add stdint.
2817         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
2818
2819 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
2820
2821         obstack: remove __STDC__ conditionals
2822         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
2823         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
2824         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
2825         m4/include_next.m4 as the only gnulib-maintained places that still
2826         refer to __STDC__.
2827
2828 2012-01-24  Bruno Haible  <bruno@clisp.org>
2829
2830         havelib: Modern quoting.
2831         * build-aux/config.rpath: Quote 'like this', not `like this', as per
2832         the recent change to the GNU coding standards.
2833
2834 2012-01-24  Bruno Haible  <bruno@clisp.org>
2835
2836         stdint: Improve support for Android.
2837         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
2838         Reported by Simon Josefsson <simon@josefsson.org>.
2839
2840 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
2841
2842         doc: omit trailing empty lines from INSTALL etc.
2843         * doc/Makefile (INSTALL): Omit trailing empty lines.
2844         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
2845         omit trailing empty lines.  This simplifies the build procedure.
2846
2847 2012-01-23  Jim Meyering  <meyering@redhat.com>
2848
2849         tests: avoid spurious warnings about gl_sockets_startup
2850         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
2851         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
2852         reporting a "statement with no effect".
2853         * tests/test-accept.c (main): Mark as "(void)".
2854         * tests/test-accept4.c (main): Likewise.
2855         * tests/test-bind.c (main): Likewise.
2856         * tests/test-connect.c (main): Likewise.
2857         * tests/test-getpeername.c (main): Likewise.
2858         * tests/test-getsockname.c (main): Likewise.
2859         * tests/test-getsockopt.c (main): Likewise.
2860         * tests/test-listen.c (main): Likewise.
2861         * tests/test-recv.c (main): Likewise.
2862         * tests/test-recvfrom.c (main): Likewise.
2863         * tests/test-send.c (main): Likewise.
2864         * tests/test-sendto.c (main): Likewise.
2865         * tests/test-setsockopt.c (main): Likewise.
2866         * tests/test-shutdown.c (main): Likewise.
2867
2868 2012-01-21  Bruno Haible  <bruno@clisp.org>
2869
2870         locale-fr.m4: Fix for Android.
2871         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
2872         failure of the test program on Bionic libc.
2873
2874 2012-01-21  Jim Meyering  <meyering@redhat.com>
2875
2876         bootstrap: fail when bootstrap_post_import_hook fails
2877         Otherwise, it's far too easy to miss diagnostics emitted
2878         between gnulib-tool's output and that of running configure.
2879         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
2880
2881 2012-01-17  Jim Meyering  <meyering@redhat.com>
2882
2883         maint: enable sc_trailing_blank
2884         * build-aux/pmccabe.css: Remove trailing blanks.
2885         * doc/acl-cygwin.txt: Likewise.
2886         * doc/gnu-oids.texi: Likewise
2887         * cfg.mk: Enable sc_trailing_blank.
2888         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
2889
2890 2012-01-17  Jim Meyering  <meyering@redhat.com>
2891
2892         maint: enable sc_prohibit_openat_without_use
2893         * cfg.mk: Enable sc_prohibit_openat_without_use.
2894         Exempt lib/selinux-at.c.
2895
2896 2012-01-17  Jim Meyering  <meyering@redhat.com>
2897
2898         maint: enable sc_prohibit_cloexec_without_use
2899         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
2900         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
2901
2902 2012-01-17  Jim Meyering  <meyering@redhat.com>
2903
2904         maint: enable sc_prohibit_intprops_without_use
2905         * cfg.mk: Enable sc_prohibit_intprops_without_use
2906         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
2907
2908 2012-01-17  Jim Meyering  <meyering@redhat.com>
2909
2910         maint: enable sc_prohibit_hash_pjw_without_use
2911         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
2912         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
2913         to match any use of \<hash_pjw\>, i.e., not necessarily with a
2914         following " (".
2915
2916 2012-01-17  Jim Meyering  <meyering@redhat.com>
2917
2918         maint: enable double-word-prohibiting rule
2919         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
2920         Exempt three files.
2921
2922 2012-01-17  Jim Meyering  <meyering@redhat.com>
2923
2924         maint: remove empty lines at EOF, but excluding modules/*
2925         Apply syntax rules at home as well as abroad.  Most changes
2926         were induced by running this:
2927           make srcdir=. _build-aux=build-aux -f top/maint.mk \
2928             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
2929             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
2930         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
2931         Exempt modules/* and two binary files.
2932         Also exempt doc/INSTALL*, per request from Bruno Haible.
2933         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
2934         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
2935         * doc/Copyright/request-assign.future: Likewise.
2936         * doc/Copyright/request-disclaim.changes: Likewise.
2937         * doc/INSTALL: Likewise.
2938         * doc/INSTALL.ISO: Likewise.
2939         * doc/INSTALL.UTF-8: Likewise.
2940         * doc/acl-cygwin.txt: Likewise.
2941         * doc/acl-resources.txt: Likewise.
2942         * doc/fdl-1.2.texi: Likewise.
2943         * doc/fdl-1.3.texi: Likewise.
2944         * doc/fdl.texi: Likewise.
2945         * lib/argp-pin.c: Likewise.
2946         * lib/round.c: Likewise.
2947         * lib/unicase/u16-totitle.c: Likewise.
2948         * lib/unictype/block_test.c: Likewise.
2949         * lib/uninorm/canonical-decomposition.c: Likewise.
2950         * m4/README: Likewise.
2951         * m4/relocatable-lib.m4: Likewise.
2952         * tests/test-isnand-nolibm.c: Likewise.
2953         * tests/test-isnand.c: Likewise.
2954         * tests/uninorm/NormalizationTest.txt: Likewise.
2955
2956 2012-01-17  Jim Meyering  <meyering@redhat.com>
2957
2958         maint: add framework to run syntax-check rules against gnulib sources
2959         * cfg.mk: New file, to disable all currently-failing tests.
2960         We'll enable them one by one, as they are made to pass.
2961         * Makefile (sc_maint): New rule.
2962
2963 2012-01-21  Bruno Haible  <bruno@clisp.org>
2964
2965         stdint: Add support for Android.
2966         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
2967         include the system's <stdint.h>.
2968         Reported by Simon Josefsson <simon@josefsson.org>.
2969
2970 2012-01-19  Jim Meyering  <meyering@redhat.com>
2971
2972         bootstrap: add bootstrap_post_import_hook
2973         Bison does still need something like the gnulib_mk_hook whose
2974         invocation I had to remove along with slurp in commit 767ccd40.
2975         Technically, we could get along without it, but doing so would
2976         have required living with a warning and a mandatory post-bootstrap
2977         automake rerun.
2978         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
2979         (bootstrap_post_import_hook): New function.
2980         Invoke it after gnulib-tool --import and before autoreconf.
2981
2982 2012-01-18  Jim Meyering  <meyering@redhat.com>
2983
2984         gitlog-to-changelog: don't use "no_"-prefixed variable name
2985         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
2986         to enable both --cluster and --no-cluster.  Change variable name,
2987         s/\$no_cluster/$cluster/, and reverse usage to match.
2988
2989         gitlog-to-changelog: use "||", not "or" in expressions
2990         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
2991         expressions.
2992
2993 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
2994
2995         gitlog-to-changelog: new option --no-cluster
2996         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
2997         clustering of adjacent commit messages.
2998
2999 2012-01-17  Jim Meyering  <meyering@redhat.com>
3000
3001         maint: spell file systems with two words, not one
3002         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3003         two words, not one.
3004
3005 2012-01-16  Jim Meyering  <meyering@redhat.com>
3006
3007         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3008         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3009
3010 2012-01-16  Eric Blake  <eblake@redhat.com>
3011
3012         bootstrap: cater to autoconf 2.59
3013         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3014         is not available.
3015
3016         bootstrap: properly check for libtool
3017         * build-aux/bootstrap (libtoolize): Also run libtool when older
3018         usage is detected.
3019
3020 2012-01-15  Bruno Haible  <bruno@clisp.org>
3021
3022         Improve support for MSVC 9.
3023         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3024         clashes on MSVC.
3025         * lib/fcntl.in.h: Likewise.
3026         * lib/stdlib.in.h: Likewise.
3027         * lib/sys_stat.in.h: Likewise.
3028
3029 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3030
3031         gnupload: we hold the master copy of this script now
3032         For motivation and more information, see:
3033         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3034         * build-aux/gnupload: Make it clear in the heading comments that the
3035         master copy of this file is maintained by gnulib.  Since we are at
3036         it, bump its copyright year and ...
3037         ($scriptversion): ... the date in its version.
3038         ($usage): Patches and bug reports should be sent to the gnulib list,
3039         not the automake one.
3040         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3041         anymore.
3042
3043 2012-01-15  Bruno Haible  <bruno@clisp.org>
3044
3045         Fix module 'random'.
3046         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3047         initstate, setstate are declared.
3048
3049 2012-01-14  Bruno Haible  <bruno@clisp.org>
3050
3051         Tests for module 'random'.
3052         * modules/random-tests: New file.
3053         * tests/test-random.c: New file, based on tests/test-random_r.c.
3054
3055         New module 'random'.
3056         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3057         declarations.
3058         * lib/random.c: New file, based on glibc/stdlib/random.c.
3059         * m4/random.m4: New file.
3060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3061         HAVE_RANDOM.
3062         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3063         * modules/random: New file.
3064         * config/srclist.txt: Add an entry for random.c.
3065         * doc/posix-functions/random.texi: Mention the 'random' module.
3066         * doc/posix-functions/initstate.texi: Likewise.
3067         * doc/posix-functions/setstate.texi: Likewise.
3068         * doc/posix-functions/srandom.texi: Likewise.
3069
3070 2012-01-12  Bruno Haible  <bruno@clisp.org>
3071
3072         random_r: Use common idioms.
3073         * lib/random_r.c: Include <stdlib.h> first.
3074
3075         random_r: Override incompatible API on AIX, OSF/1.
3076         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3077         Override the system function if REPLACE_RANDOM_R is 1.
3078         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3079         and OSF/1, set REPLACE_RANDOM_R.
3080         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3081         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3082         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3083         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3084         * doc/glibc-functions/random_r.texi: Likewise.
3085         * doc/glibc-functions/setstate_r.texi: Likewise.
3086
3087         random_r: Support for MSVC 9.
3088         * lib/random_r.c: Include stdint.h, not inttypes.h.
3089
3090 2012-01-12  Eric Blake  <eblake@redhat.com>
3091
3092         inet_ntop: guard extra work by IF_LINT
3093         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3094         better code generation when not checking for warnings.
3095         Suggested by Paul Eggert and Jim Meyering.
3096
3097         strptime: fix regression on mingw
3098         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3099         Fix regression.  Reported by Bruno Haible.
3100
3101 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3102             Bruno Haible  <bruno@clisp.org>
3103
3104         copy-file: add error-code-returning variant.
3105         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3106         (qcopy_file_preserving): New declaration.
3107         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3108         copy_file_preserving. Change return type to 'int'. Don't emit an error
3109         message here.
3110         (copy_file_preserving): New function.
3111         * tests/test-copy-file.c: Include <stdlib.h>.
3112         (main): Test qcopy_file_preserving if the environment variable
3113         NO_STDERR_OUTPUT is set.
3114         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3115         with NO_STDERR_OUTPUT
3116         * tests/test-copy-file-2.sh: Likewise.
3117
3118 2012-01-10  Bruno Haible  <bruno@clisp.org>
3119
3120         copy-file: Use 'quote' module consistently.
3121         * lib/copy-file.c (copy_file_preserving): Use quote().
3122
3123         copy-file: Refactor.
3124         * lib/copy-file.c: Include quote.h.
3125         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3126         message here.
3127         * modules/copy-file (Depends-on): Add quote.
3128
3129         acl: Export qcopy_acl.
3130         * lib/acl.h (qcopy_acl): New declaration.
3131         * lib/copy-acl.c (qcopy_acl): Make non-static.
3132
3133         acl: Rename a local variable.
3134         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3135
3136         acl: Align return values of copy_acl and qcopy_acl.
3137         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3138         maybe < -1.
3139
3140 2012-01-11  Eric Blake  <eblake@redhat.com>
3141
3142         strptime: silence gcc warnings
3143         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3144         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3145         Reported by Daniel P. Berrange.
3146
3147         inet_ntop: silence gcc warning
3148         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3149         Reported by Daniel P. Berrange.
3150
3151 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3152
3153         getloadavg test: skip the test on GNU/Linux without /proc mounted
3154         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3155         file.  When /proc is not mounted, it always fails with ENOENT.
3156         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3157         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3158
3159 2012-01-10  Bruno Haible  <bruno@clisp.org>
3160
3161         regex: Avoid link error on MSVC 9.
3162         * modules/regex (Depends-on): Add wctype.
3163
3164 2012-01-10  Bruno Haible  <bruno@clisp.org>
3165
3166         doc: Mention --with-tests option.
3167         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3168         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3169         --with-tests.
3170         Reported by Reuben Thomas.
3171
3172 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3173
3174         users.txt: order package names lexicographically.
3175         * users.txt: Order package names lexicographically.
3176
3177 2012-01-10  Jim Meyering  <meyering@redhat.com>
3178
3179         maint.mk: fix description in comment
3180         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3181
3182         ignore-value: remove deprecated ignore_ptr function
3183         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3184         * NEWS: Note this.
3185
3186 2012-01-09  Jim Meyering  <meyering@redhat.com>
3187
3188         test-init.sh: avoid a subshell
3189         * tests/test-init.sh: Remove protective subshell.
3190         Suggested by Bernhard Voelker.  While a subshell is normally
3191         required to protect against older shells (Solaris, FreeBSD) that
3192         warn about a missing program before performing redirection, the
3193         shell-selection tests performed by init.sh probably exclude any
3194         offending shell.
3195
3196 2012-01-08  Bruno Haible  <bruno@clisp.org>
3197
3198         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3199         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3200         variable.
3201
3202 2012-01-08  Bruno Haible  <bruno@clisp.org>
3203
3204         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3205         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3206         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3207         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3208         macro.
3209         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3210         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3211         * lib/spawn_faction_addopen.c: Add workaround implementation if
3212         HAVE_WORKING_POSIX_SPAWN.
3213         * modules/spawn (Makefile): Substitute
3214         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3215         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3216         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3217         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3218         (Depends-on): Update conditions.
3219         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3220         the Solaris 11 bug.
3221
3222 2012-01-08  Bruno Haible  <bruno@clisp.org>
3223
3224         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3225         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3226         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3227         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3228         macro.
3229         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3230         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3231         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3232         HAVE_WORKING_POSIX_SPAWN.
3233         * modules/spawn (Makefile): Substitute
3234         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3235         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3236         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3237         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3238         (Depends-on): Update conditions.
3239         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3240         the Solaris 11 bug.
3241
3242 2012-01-08  Bruno Haible  <bruno@clisp.org>
3243
3244         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3245         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3246         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3247         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3248         HAVE_WORKING_POSIX_SPAWN.
3249         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3250         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3251         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3252         * lib/spawn_faction_addclose.c: Add workaround implementation if
3253         HAVE_WORKING_POSIX_SPAWN.
3254         * modules/spawn (Makefile): Substitute
3255         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3256         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3257         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3258         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3259         (Depends-on): Update conditions.
3260         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3261         the Solaris 11 bug.
3262
3263 2012-01-08  Bruno Haible  <bruno@clisp.org>
3264
3265         doc: Update for Solaris 11 2011-11.
3266         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3267         * m4/printf.m4: Update comments.
3268
3269 2012-01-08  Bruno Haible  <bruno@clisp.org>
3270
3271         mktime: Avoid compilation error on Solaris 11.
3272         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3273
3274 2012-01-08  Bruno Haible  <bruno@clisp.org>
3275
3276         doc: Small fix.
3277         * doc/posix-headers/nl_types.texi: Correct platforms list.
3278
3279 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3280
3281         Add lgpl-3.0 module.
3282         * MODULES.html.sh (Support for building documentation): Add
3283         lgpl-3.0.
3284         * modules/lgpl-3.0: New file.
3285
3286 2012-01-08  Jim Meyering  <meyering@redhat.com>
3287
3288         select.c: indent with spaces, not TABs
3289         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3290
3291 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3292
3293         quotearg: do not use grave accent for left quote
3294         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3295         locale_quoting_style.
3296         (quotearg_buffer_restyled): Fix example.
3297         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3298
3299 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3300
3301         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3302         Most programs do not have translation catalogs for English and much
3303         less separate catalogs for British and American English.  Drop the
3304         suggestion to translators about these two, and provide it
3305         automatically for Unicode locales.  Like most programs, even those
3306         using American English, we use single quotation marks.  This conflicts
3307         with the American typographic convention, but works better when you
3308         cite the entire error message within double quotes.  It also tries not
3309         to clash with established practice and with what non-gnulib programs
3310         will usually do.
3311         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3312         using an UTF-8 or GB-18030 locale.  The list of other locales with
3313         quotes was provided by Bruno Haible.
3314         (quotearg_buffer_restyled): Adjust instructions to translators.
3315         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3316         text, since this would be wrong when using Unicode.
3317         * modules/quotearg: Depend on c-strcaseeq.
3318
3319 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3320
3321         quotearg: fix Wikipedia link
3322         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3323
3324 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3325
3326         Fix for mingw with MSVC9.
3327         * m4/ld-version-script.m4: Check that compiler rejects version
3328         scripts with syntax errors.  Reported by Bruno Haible
3329         <bruno@clisp.org>.
3330
3331 2012-01-06  Bruno Haible  <bruno@clisp.org>
3332
3333         Talk about "native Windows API", not "Woe32".
3334         * lib/accept4.c: Update comments to mention native Windows.
3335         * lib/execute.c: Likewise.
3336         * lib/fatal-signal.c: Likewise.
3337         * lib/localcharset.c: Likewise.
3338         * lib/nanosleep.c: Likewise.
3339         * lib/nl_langinfo.c: Likewise.
3340         * lib/pclose.c: Likewise.
3341         * lib/pipe-filter-gi.c: Likewise.
3342         * lib/pipe-filter-ii.c: Likewise.
3343         * lib/pipe.c: Likewise.
3344         * lib/pipe2.c: Likewise.
3345         * lib/popen.c: Likewise.
3346         * lib/progreloc.c: Likewise.
3347         * lib/relocatable.c: Likewise.
3348         * lib/sigaction.c: Likewise.
3349         * lib/sigprocmask.c: Likewise.
3350         * lib/spawn-pipe.h: Likewise.
3351         * lib/spawn-pipe.c: Likewise.
3352         * lib/spawni.c: Likewise.
3353         * lib/stat-time.h: Likewise.
3354         * lib/w32spawn.h: Likewise.
3355         * tests/test-isatty.c: Likewise.
3356         * lib/config.charset: More comments.
3357         * doc/gnulib-intro.texi: Mention native Windows.
3358         * doc/posix-functions/_Exit_C99.texi: Likewise.
3359         * doc/posix-headers/fcntl.texi: Likewise.
3360
3361 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3362
3363         argp: Avoid crash if translator uses % characters in a translation.
3364         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3365         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3366
3367 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3368
3369         doc: C11 and C++11 are now official
3370         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3371         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3372         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3373         * modules/stdalign:
3374         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3375
3376 2012-01-06  Bruno Haible  <bruno@clisp.org>
3377
3378         uc-is-grapheme-break tests: Tweak.
3379         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3380         message.
3381
3382 2012-01-06  Bruno Haible  <bruno@clisp.org>
3383
3384         test-init.sh: correct the test for diff -u
3385         * tests/test-init.sh: Also redirect stdout to /dev/null.
3386
3387 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3388
3389         Use ', not `, for quoting output.
3390         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3391         (print_changelog_deltas, get_tool_versions, main program):
3392         * build-aux/git-version-gen:
3393         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3394         * build-aux/move-if-change (help):
3395         * build-aux/useless-if-before-free (usage, main program):
3396         * check-module (parse_module_file, usage)
3397         (find_included_lib_files, check_module):
3398         * lib/argmatch.c (main) [TEST]:
3399         * lib/argp-help.c (_help):
3400         * lib/getopt1.c (main) [TEST]:
3401         * lib/git-merge-changelog.c (usage):
3402         * lib/xstrtol-error.c (xstrtol_error):
3403         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3404         * m4/argz.m4 (gl_FUNC_ARGZ):
3405         * m4/bison.m4 (gl_BISON):
3406         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3407         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3408         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3409         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3410         * m4/gc-random.m4 (gl_GC_RANDOM):
3411         * m4/intl.m4 (gt_CHECK_DECL):
3412         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3413         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3414         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3415         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3416         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3417         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3418         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3419         * tests/test-dirname.c (main):
3420         * tests/test-getpass.c (main):
3421         * tests/test-iconvme.c (main):
3422         * tests/test-parse-datetime.c (LOG):
3423         * tests/test-xstrtoimax.sh:
3424         * tests/test-xstrtol.sh:
3425         * tests/test-xstrtoll.sh:
3426         * tests/test-xstrtoumax.sh:
3427         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3428         * top/GNUmakefile (abort-due-to-no-makefile):
3429         Quote 'like this', not `like this', as per the recent change to
3430         the GNU coding standards.
3431
3432 2012-01-05  Bruno Haible  <bruno@clisp.org>
3433
3434         strtoimax: Don't force a replacement on systems where intmax_t is int.
3435         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3436         'intmax_t' is not larger than 'int'.
3437         Reported by Pádraig Brady <P@draigBrady.com>.
3438
3439 2012-01-05  Bruno Haible  <bruno@clisp.org>
3440
3441         doc: Mention NetBSD bugs.
3442         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
3443         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
3444
3445 2012-01-05  Bruno Haible  <bruno@clisp.org>
3446
3447         strtoumax tests: Enhance tests.
3448         * tests/test-strtoumax.c (main): Add tests for large values.
3449
3450 2012-01-05  Bruno Haible  <bruno@clisp.org>
3451
3452         strtoimax: Work around AIX 5.1 bug.
3453         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
3454         definition.
3455         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
3456         Set HAVE_STRTOIMAX.
3457         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
3458         REPLACE_STRTOIMAX.
3459         * modules/inttypes-incomplete (Makefile.am): Substitute
3460         REPLACE_STRTOIMAX.
3461         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
3462         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
3463         (Depends-on): Update conditions.
3464         * tests/test-strtoimax.c (main): Add tests for large values.
3465         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
3466
3467 2012-01-05  Bruno Haible  <bruno@clisp.org>
3468
3469         inttypes: Modernize.
3470         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
3471         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
3472         (Makefile.am): Update inttypes.h rule.
3473
3474 2012-01-05  Jim Meyering  <meyering@redhat.com>
3475
3476         init.sh: don't waste a subshell just to redirect stderr
3477         * tests/init.sh: In testing for diff -u and diff -c, use a
3478         stderr-redirecting exec inside `...` rather than a subshell.
3479
3480         test-init.sh: avoid failure on HP-UX 11.00
3481         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
3482         resolves to diff -c or cmp.  Reported by Bruno Haible.
3483
3484 2012-01-05  Bruno Haible  <bruno@clisp.org>
3485
3486         Tests for module 'strtoull'.
3487         * modules/strtoull-tests: New file.
3488         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
3489
3490 2012-01-05  Bruno Haible  <bruno@clisp.org>
3491
3492         Tests for module 'strtoll'.
3493         * modules/strtoll-tests: New file.
3494         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
3495
3496 2012-01-05  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'strtoul'.
3499         * modules/strtoul-tests: New file.
3500         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
3501
3502 2012-01-05  Bruno Haible  <bruno@clisp.org>
3503
3504         Tests for module 'strtol'.
3505         * modules/strtol-tests: New file.
3506         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
3507
3508 2012-01-04  Jim Meyering  <meyering@redhat.com>
3509
3510         test-init.sh: accommodate Solaris 5.10's different diff -u output
3511         * tests/test-init.sh: Also exempt @@ lines from the comparison
3512         of diff output, since Solaris 5.10 and GNU diff formats differ.
3513         Reported by Stefano Lattarini.
3514
3515 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
3516
3517         test-posixtm: don't assume signed integer wraparound
3518         * tests/test-posixtm.c (main): Don't assume wraparound semantics
3519         after signed integer overflow.  Inspired by (though it may not
3520         fix) Bruno Haible's bug report in
3521         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
3522
3523         Spell out "Windows 9x" and "Windows XP".
3524         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
3525         "Windows 9x" and "WinXP" with "Windows XP".
3526
3527 2012-01-04  Jim Meyering  <meyering@redhat.com>
3528
3529         test-vc-list-files-cvs.sh: remove obsolete comment
3530         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
3531         double exit.  Now that's all encapsulated via skip_ and Exit.
3532
3533 2012-01-04  Bruno Haible  <bruno@clisp.org>
3534
3535         Talk about "native Windows API", not "Win32".
3536         * lib/classpath.c: Update comments to mention native Windows.
3537         * lib/csharpexec.c: Likewise.
3538         * lib/dup2.c: Likewise.
3539         * lib/error.c: Likewise.
3540         * lib/fcntl.c: Likewise.
3541         * lib/filename.h: Likewise.
3542         * lib/findprog.c: Likewise.
3543         * lib/get-rusage-as.c: Likewise.
3544         * lib/get-rusage-data.c: Likewise.
3545         * lib/getpagesize.c: Likewise.
3546         * lib/javaexec.c: Likewise.
3547         * lib/msvc-inval.c: Likewise.
3548         * lib/msvc-nothrow.c: Likewise.
3549         * lib/nanosleep.c: Likewise.
3550         * lib/nonblocking.c: Likewise.
3551         * lib/printf-parse.c: Likewise.
3552         * lib/setlocale.c: Likewise.
3553         * lib/sigaction.c: Likewise.
3554         * lib/strerror_r.c: Likewise.
3555         * lib/tmpdir.c: Likewise.
3556         * lib/vasnprintf.c: Likewise.
3557         * lib/w32spawn.h: Likewise.
3558         * lib/waitpid.c: Likewise.
3559         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
3560         * m4/locale-ar.m4: Likewise.
3561         * m4/locale-fr.m4: Likewise.
3562         * m4/locale-ja.m4: Likewise.
3563         * m4/locale-tr.m4: Likewise.
3564         * m4/locale-zh.m4: Likewise.
3565         * m4/printf.m4: Likewise.
3566         * tests/test-cloexec.c: Likewise.
3567         * tests/test-copy-acl.sh: Likewise.
3568         * tests/test-copy-file.sh: Likewise.
3569         * tests/test-file-has-acl.sh: Likewise.
3570         * tests/test-set-mode-acl.sh: Likewise.
3571         * tests/test-dup-safer.c: Likewise.
3572         * tests/test-dup2.c: Likewise.
3573         * tests/test-dup3.c: Likewise.
3574         * tests/test-fcntl.c: Likewise.
3575         * tests/test-nonblocking-pipe.h: Likewise.
3576         * tests/test-nonblocking-socket.h: Likewise.
3577         * tests/test-pipe.c: Likewise.
3578         * tests/test-pipe2.c: Likewise.
3579         * tests/test-spawn-pipe-child.c: Likewise.
3580         * doc/acl-resources.txt: Likewise.
3581         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3582         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
3583         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
3584         * lib/localcharset.c: Update comments to mention native Windows.
3585         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3586         * lib/localename.c: Likewise.
3587         * lib/progreloc.c: Likewise.
3588         * lib/relocatable.c: Likewise.
3589         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
3590         (windows_compute_revents): Renamed from win32_compute_revents.
3591         (windows_compute_revents_socket): Renamed from
3592         win32_compute_revents_socket.
3593         * lib/select.c: Update comments to mention native Windows.
3594         (windows_poll_handle): Renamed from win32_poll_handle.
3595         * m4/threadlib.m4: Update comments to mention native Windows.
3596         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
3597         --enable-threads=windows instead of --enable-threads=win32. Set
3598         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
3599         * lib/glthread/lock.h: Update comments to mention native Windows.
3600         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
3601         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
3602         USE_WIN32_THREADS.
3603         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
3604         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
3605         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
3606         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
3607         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
3608         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
3609         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
3610         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
3611         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
3612         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
3613         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
3614         * tests/test-tls.c: Likewise.
3615         Rationale:
3616         Microsoft renamed the "Win32 API" to "Windows API", as it is available
3617         on both 32-bit and 64-bit Windows systems.
3618         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
3619         line of distinction is between "native Windows" on one side and Unix/
3620         POSIX systems on the other side. More details in
3621         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
3622         Suggested by Paul Eggert.
3623
3624 2012-01-03  Bruno Haible  <bruno@clisp.org>
3625
3626         isatty: Support for MSVC 9.
3627         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
3628         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
3629         (_isatty_nothrow): New function.
3630         (isatty): Use it instead of _isatty.
3631         (IsConsoleHandle): Add comment, from Paolo Bonzini.
3632         * lib/poll.c (IsConsoleHandle): Likewise.
3633         * lib/select.c (IsConsoleHandle): Likewise.
3634         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
3635         (gl_PREREQ_ISATTY): New macro.
3636         * modules/isatty (Depends-on): Add msvc-inval.
3637         (configure.ac): Invoke gl_PREREQ_ISATTY.
3638
3639 2012-01-03  Jim Meyering  <meyering@redhat.com>
3640
3641         maint.mk: remove temporary transition aid from over 1.5 years ago
3642         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
3643         purpose was to aid in the transition (avoiding silent malfunction)
3644         from that old name to the new _sc_search_regexp.  This shim was
3645         added by commit 219c504b.
3646
3647         init.sh: do not try to accommodate compare arguments starting with "-"
3648         * tests/init.sh (compare_dev_null_): Do not try to accommodate
3649         compare arguments that start with "-".  Besides, we do not worry
3650         about this when invoking diff or cmp; why start now with sed?
3651         Using "--" to separate options from argument would trigger sed
3652         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
3653         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
3654
3655 2012-01-02  Bruno Haible  <bruno@clisp.org>
3656
3657         Enhance tests for module 'isatty'.
3658         * modules/isatty-tests (Depends-on): Add pipe-posix.
3659         * tests/test-isatty.c: Include <fcntl.h>.
3660         (DEV_NULL): New macro.
3661         (main): Test the resut of isatty() also on regular files, pipes, and
3662         /dev/null.
3663
3664         New module 'isatty'.
3665         * lib/unistd.in.h (isatty): New declaration.
3666         * lib/isatty.c: New file, based on an idea of
3667         Bastien Roucariès <roucaries.bastien@gmail.com>.
3668         * m4/isatty.m4: New file.
3669         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
3670         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
3671         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
3672         REPLACE_ISATTY.
3673         * modules/isatty: New file.
3674         * doc/posix-functions/isatty.texi: Mention the new module.
3675         Suggested by Paolo Bonzini.
3676
3677 2012-01-02  Bruno Haible  <bruno@clisp.org>
3678
3679         canonicalize: Tweak 2011-12-29 commit.
3680         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
3681         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
3682
3683 2012-01-02  Jim Meyering  <meyering@redhat.com>
3684
3685         gitlog-to-changelog: describe input syntax in --help output
3686         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
3687
3688         gitlog-to-changelog: fix typo in --help: show backslash before email @
3689         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
3690         in sources, but not in actual output.
3691
3692 2011-12-30  Jim Meyering  <meyering@redhat.com>
3693
3694         gitlog-to-changelog: don't malfunction when name contains %-directive
3695         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
3696         in a name string cause trouble.  E.g., with a user name of "%s",
3697         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
3698
3699 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
3700
3701         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
3702         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
3703         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
3704         the "  (tiny change)" notation that is appended to the standard
3705         ChangeLog "date  name  email" header line.
3706
3707 2012-01-01  Jim Meyering  <meyering@redhat.com>
3708
3709         test-framework-sh: init.sh: fix "make dist" failure
3710         When using gnulib-tool's --with-tests option and any module that
3711         depends on test-framework-sh, "make dist" would fail due to the
3712         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
3713         in the gltests directory, and not in the gllib/ directory.
3714         One way to work around that is to move the EXTRA_DIST += init.sh
3715         from the primary module to the -tests one:
3716         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
3717         * modules/test-framework-sh (Makefile.am): ...not here.
3718         Reported by Tom G. Christensen in
3719         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
3720
3721         version-etc: update copyright year reported by --version
3722         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
3723
3724 2011-12-31  Pádraig Brady  <P@draigBrady.com>
3725
3726         canonicalize: only stat() if required
3727         * lib/canonicalize.c (canonicalize_filename_mode):
3728         Avoid calling l?stat() when both CAN_MISSING,
3729         and CAN_NOLINKS are set, as we neither need
3730         to resolve symlinks or test component existence.
3731
3732 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
3733
3734         doc: cover st_ino issues once; add OpenVMS etc.
3735         * doc/posix-functions/stat.texi (stat):
3736         * doc/posix-functions/lstat.texi (lstat):
3737         * doc/posix-functions/fstatat.texi (fstatat):
3738         * doc/posix-functions/fstat.texi (fstat):
3739         Move general 'struct stat' stuff to sys_stat.texi,
3740         leaving behind a pointer.
3741         * doc/posix-headers/sys_stat.texi (sys/stat.h):
3742         Merge duplicate info about 'struct stat' problems into here.
3743         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
3744         and suggest partial workarounds.
3745
3746         same-inode: port to OpenVMS
3747         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
3748         three st_ino values.
3749
3750 2011-12-30  Pádraig Brady  <P@draigBrady.com>
3751
3752         canonicalize: fix references to stat() and lstat()
3753         * lib/canonicalize.c (canonicalize_filename_mode):
3754         Ensure references always resolve to a replacement
3755         function if required (even via a macro).
3756
3757 2011-12-30  Jim Meyering  <meyering@redhat.com>
3758
3759         gitlog-to-changelog: remove a little duplication
3760         * build-aux/gitlog-to-changelog (main): Grep @lines once,
3761         rather than twice.
3762
3763 2011-12-29  Pádraig Brady  <P@draigBrady.com>
3764
3765         canonicalize: add support for not resolving symlinks
3766         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
3767         indicate we don't want to follow symlinks.  Also
3768         provide CAN_MODE_MASK to aid setting these existing
3769         mutually exclusive values.
3770         * lib/canonicalize.c (canonicalize_filename_mode):
3771         Extract the flags from can_mode parameter, which
3772         are currently just used to select between stat()
3773         and lstat().  Also ensure that mutually exclusive
3774         values are flagged immediately as invalid.
3775         * tests/test-canonicalize.c: Verify symlinks are
3776         not followed, and that invalid flag combinations
3777         are diagnosed.
3778
3779 2011-12-25  Jim Meyering  <meyering@redhat.com>
3780
3781         gitlog-to-changelog: do not clump multi-paragraph entries
3782         Identical header lines (date,name,email+coauthors) are suppressed,
3783         thus putting all entries with those same characteristics under
3784         a single header.  However, when a log entry consists of two or
3785         more paragraphs, it may not be clear where it starts and ends.
3786         This change makes it so that such an entry is always separated
3787         from others by a header line, even when that header would
3788         otherwise be suppressed.
3789         * build-aux/gitlog-to-changelog: Implement the above.
3790         Inspired by a related request from Stefano Lattarini in
3791         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
3792
3793 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
3794
3795         announce-gen: fix `cmd' typo in diagnostic
3796         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
3797         diagnostic: a missing '$' meant that the command was not output.
3798
3799 2011-12-23  Jim Meyering  <meyering@redhat.com>
3800
3801         test-framework-sh: distribute init.sh
3802         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
3803         Otherwise, "make -C gnulib-tests check" (at least in grep) would
3804         fail due to the lack of init.sh.
3805
3806         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
3807         * modules/atexit-tests: Rather than listing tests/init.sh,
3808         now that there's a module for it, simply depend on that new module.
3809         * modules/closein-tests: Likewise.
3810         * modules/exclude-tests: Likewise.
3811         * modules/getcwd-tests: Likewise.
3812         * modules/perror-tests: Likewise.
3813         * modules/pread-tests: Likewise.
3814         * modules/pwrite-tests: Likewise.
3815         * modules/vc-list-files-tests: Likewise.
3816         * modules/verify-tests: Likewise.
3817         * modules/xalloc-die-tests: Likewise.
3818         * modules/xstrtoimax-tests: Likewise.
3819         * modules/xstrtol-tests: Likewise.
3820         * modules/xstrtoll-tests: Likewise.
3821         * modules/xstrtoumax-tests: Likewise.
3822         * modules/yesno-tests: Likewise.
3823
3824 2011-12-22  Jim Meyering  <meyering@redhat.com>
3825
3826         test-framework-sh: add minimal tests of init.sh's compare function
3827         * modules/test-framework-sh-tests: New file.
3828         * tests/test-init.sh: New file.
3829
3830         test-framework-sh: new module
3831         * modules/test-framework-sh: New file.
3832         * MODULES.html.sh (Support for maintaining and releasing projects):
3833         List it.
3834
3835         init.sh: do not emit simulated diff output to stderr
3836         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
3837
3838 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3839
3840         .gitignore: ignore gnulib.dvi and regex.info
3841         * doc/.gitignore:add gnulib.dvi and regex.info
3842
3843 2011-12-22  Jim Meyering  <meyering@redhat.com>
3844
3845         init.sh: correct previous change
3846         * tests/init.sh (compare): My previous change was wrong.
3847         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
3848
3849         init.sh: avoid unwarranted test failure when using "set -e"
3850         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
3851         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
3852         a use like "compare exp out" would get evoke an unconditional failure.
3853
3854 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
3855
3856         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
3857         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
3858         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
3859         autoreconf that did not.
3860         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
3861         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3862
3863 2011-12-17  Jim Meyering  <meyering@redhat.com>
3864
3865         bootstrap: remove some now-unneeded code
3866         This script arose back when gnulib-tool was young.
3867         Since then, it has seen improvements that render much of this
3868         script unnecessary.  In particular, it can now make symlinks
3869         to the files it uses.  Also, I no longer see as much value in
3870         marking files as read-only via comments.
3871         If you relied on the symlink-creation feature of the preceding
3872         version of this script, you can get most of that functionality
3873         by adding the --symlink option to the definition of
3874         gnulib_tool_option_extras in your bootstrap.conf file.
3875         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
3876         Run autopoint and libtoolize *before* gnulib-tool.
3877         After it, run an abbreviated autoreconf, rather than a loop around
3878         all tools.
3879         (slirp, bt_mark_as_generated): Remove functions.
3880
3881 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
3882
3883         ftoastr: fix typo
3884         * lib/ftoastr.h: Fix misspelling in comment.
3885
3886 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
3887
3888         * top/README-release: fix punctuation.
3889
3890 2011-12-17  Jim Meyering  <meyering@redhat.com>
3891
3892         bootstrap: correct the recent buildreq change
3893         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
3894         had no effect.
3895         * build-aux/bootstrap (buildreq): Bracket each search term with
3896         "*...*", so that the shell "case" statement works as intended.
3897         Add comments.
3898
3899 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
3900
3901         build: let bootstrap resort to wget when downloading .po files
3902         * build-aux/bootstrap (download_po_files): Fallback to wget when
3903         downloading the .po files via rsync fails.  This is necessary to
3904         bootstrap from behind a strict firewall.
3905
3906 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3907
3908         stdint: don't assume C++11 when compiling with g++
3909         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
3910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
3911         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
3912         work also in C++ before C++11, as that improperly inhibits
3913         generating a substitute stdint.h for that case.
3914
3915 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
3916
3917         alloca: protect comment from gnulib-tool
3918         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
3919         that gnulib-tool doesn't think it's a license, and munge it to
3920         say "GCC version 3".
3921
3922 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
3923
3924         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
3925         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
3926         $(abs_top_builddir) instead of $(top_builddir).
3927
3928 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
3929
3930         strftime-tests: also test nanoseconds
3931         * tests/test-strftime.c (T): Add a test of %N.
3932
3933 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
3934
3935         inttypes, stdint: add C++11 support
3936         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
3937         when including inttypes.h and stdint.h.  Support this change to
3938         the standard.
3939         * doc/posix-headers/inttypes.texi (inttypes.h):
3940         * doc/posix-headers/stdint.texi (stdint.h): Document this.
3941         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
3942         Define if not defined already, for the benefit of pre-C++11 hosts.
3943         Define the standard format macros (e.g., PRId8) always.
3944         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
3945         Likewise, if __cpluspus.  Define the standard constant and limit
3946         macros (e.g., INT8_C, INT8_MAX) always.
3947         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
3948         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
3949         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
3950         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
3951         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
3952         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
3953         Likewise.
3954
3955 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
3956
3957         nonblocking tests: Fix test failure on Linux/PPC.
3958         Suggested by Prerna Saxena in
3959         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
3960         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
3961         Set to 1100000.
3962
3963 2011-12-12  Jim Meyering  <meyering@redhat.com>
3964
3965         argmatch: don't hard-code `' when listing valid option arguments
3966         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
3967         use the quote function to add quotes.  Use fputs rather than
3968         fprintf for the format string with no format directive.
3969
3970 2011-12-07  Eric Blake  <eblake@redhat.com>
3971
3972         bootstrap: detect tools required by gnulib-tool
3973         * build-aux/bootstrap (buildreq): Provide minimum implicit
3974         dependencies.
3975         * DEPENDENCIES: Mention patch as a prereq.
3976
3977 2011-12-04  Bruno Haible  <bruno@clisp.org>
3978
3979         sethostname: Port to Windows platforms.
3980         * lib/sethostname.c: Provide an alternate implementation for Windows
3981         platforms.
3982         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
3983         (main): Skip the test if sethostname() fails with EPERM. On Windows
3984         platforms, don't check the result of gethostname().
3985
3986 2011-12-04  Bruno Haible  <bruno@clisp.org>
3987             Jim Meyering  <meyering@redhat.com>
3988
3989         tests: Avoid spurious error message on platforms without mktemp program.
3990         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
3991
3992 2011-12-04  Bruno Haible  <bruno@clisp.org>
3993
3994         sethostname: Fix documentation.
3995         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
3996         "not fixed" section.
3997
3998 2011-12-03  Bruno Haible  <bruno@clisp.org>
3999
4000         gnulib-tool: Verify that the License field is present and non-empty.
4001         * gnulib-tool (func_get_license_raw): New function, extracted from
4002         func_get_license.
4003         (func_get_license): Use it. Warn if the module is not a test module and
4004         has no license.
4005         Suggested by Jim Meyering.
4006
4007 2011-12-03  Bruno Haible  <bruno@clisp.org>
4008
4009         sethostname tests: Fix link error on mingw.
4010         * tests/test-sethostname1.c: New file, extracted from
4011         tests/test-sethostname.c.
4012         * tests/test-sethostname2.c: New file, extracted from
4013         tests/test-sethostname.c.
4014         * tests/test-sethostname.c: Remove file.
4015         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4016         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4017         (Depends-on): Add gethostname.
4018         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4019         Link the latter with $(GETHOSTNAME_LIB).
4020
4021         sethostname tests: Fix compilation error on mingw.
4022         * tests/test-sethostname.c: Don't include <sys/types.h>.
4023         (geteuid): Use a dummy value without uid_t.
4024         * modules/sethostname-tests (Depends-on): Remove sys_types.
4025
4026         sethostname tests: Avoid a gcc warning.
4027         * tests/test-sethostname.c (main): Remove an unused variable.
4028
4029         Tweak last commit.
4030         * modules/sethostname-tests (Files): Sort by decreasing importance.
4031         (configure.ac): Check for geteuid.
4032         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4033         the test when there's nothing to test. Drop an unnecessary cast.
4034         Improve an error message. Verify that the final sethostname() call
4035         succeeds.
4036
4037 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4038
4039         Add a test suite for the sethostname module.
4040         * modules/sethostname-tests: New file.  A test program
4041         for the sethostname module.
4042         * tests/test-sethostname.c: Likewise.
4043
4044 2011-12-03  Bruno Haible  <bruno@clisp.org>
4045
4046         Tweak last commit.
4047         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4048         Fix preprocessor directives indentation. Fix typos.
4049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4050         * modules/unistd (Makefile): Likewise.
4051
4052 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4053
4054         Integrate the sethostname module into unistd.
4055         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4056         into the unistd.h header.
4057         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4058         preprocessor directives.
4059         * modules/unistd: Setup the Makefile substitutions of the
4060         SETHOSTNAME preprocessor directives.
4061
4062 2011-12-03  Bruno Haible  <bruno@clisp.org>
4063
4064         Tweak last commit.
4065         * lib/sethostname.c: Don't include <string.h>.
4066         (sethostname): No need to copy the argument string to the stack. Don't
4067         call clearerr. Preserve errno when fprintf failed.
4068         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4069         Don't invoke AC_REPLACE_FUNCS.
4070         * modules/sethostname (Link): Remove empty section.
4071         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4072         failure problem.
4073
4074 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4075
4076         New module 'sethostname'.
4077         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4078         for systems that lack it.
4079         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4080         sethostname declaration and function.
4081         * modules/sethostname: New file.  Define the sethostname module.
4082
4083 2011-12-03  Bruno Haible  <bruno@clisp.org>
4084
4085         Tweak last commit.
4086         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4087
4088 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4089
4090         Split the HOST_NAME_MAX detection into a separate m4 macro.
4091         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4092         macro so it can be used by the pending sethostname module.
4093
4094 2011-12-03  Bruno Haible  <bruno@clisp.org>
4095
4096         Fix module descriptions syntax.
4097         * modules/argv-iter (License): Fix syntax.
4098         * modules/di-set (License): Likewise.
4099         * modules/ino-map (License): Likewise.
4100         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4101
4102 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4103
4104         stdalign: port to Clang 3.0
4105         Problem reported by Simon Josefsson in
4106         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4107         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4108         which has <stdalign.h> but which does not define alignof.
4109         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4110
4111 2011-12-01  Eric Blake  <eblake@redhat.com>
4112
4113         mktempd: silence dd usage
4114         * build-aux/mktempd (rand_bytes): Silence dd.
4115
4116 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4117
4118         manywarnings: Don't mention gcc version in docstring.
4119         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4120         Jim Meyering <meyering@redhat.com>.
4121
4122 2011-11-30  Jim Meyering  <meyering@redhat.com>
4123
4124         hash: mark a few floating point constants with "f" suffix
4125         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4126         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4127         floating point constants with "f", since they're destined to be
4128         saved/used as "float"s.
4129
4130 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4131
4132         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4133         * tests/test-float.c (test_long_double): Correct and re-enable the
4134         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4135
4136 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4137
4138         Avoid subtracting two pointers that don't point into the same block.
4139         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4140         only pointers into the same memory block are subtracted. We cannot
4141         assume that sizeof (ptrdiff_t) == sizeof (void *).
4142
4143 2011-11-29  Eric Blake  <eblake@redhat.com>
4144
4145         maint.mk: add syntax check for use of compare from init.sh
4146         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4147         moved here from coreutils.
4148
4149         manywarnings: drop -Wunsuffixed-float-constants
4150         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4151         '1.0D', which is the only way to silence this warning for 'double'.
4152
4153 2011-11-29  Jim Meyering  <meyering@redhat.com>
4154
4155         hash: mark compute_bucket_size with the pure attribute
4156         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4157
4158         quotearg, propername: correct pragma guard expression
4159         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4160         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4161
4162 2011-11-28  Jim Meyering  <meyering@redhat.com>
4163
4164         propername: do not mark proper_name with the const attribute
4165         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4166         since it examines data pointed to by its parameter.
4167         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4168         the suggestion from -Wsuggest-attribute=const.
4169
4170         propername: mark one more function as const
4171         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4172
4173 2011-11-27  Jim Meyering  <meyering@redhat.com>
4174
4175         mark functions with const and pure attributes
4176
4177         Mark functions per suggestions from gcc-4.6 when using these options:
4178         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4179         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4180         Follow these guidelines: when possible, apply the attribute to
4181         an extern declaration, not to its definition.  Apply it to the
4182         definition only when the definition is static.
4183         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4184         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4185         * lib/base64.h (isbase64): Likewise.
4186         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4187         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4188         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4189         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4190         (c_tolower, c_toupper): Likewise.
4191         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4192         * lib/chdir-long.c (find_non_slash): Likewise.
4193         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4194         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4195         * lib/file-type.h (file_type): Likewise.
4196         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4197         * lib/filevercmp.c (verrevcmp): Likewise.
4198         * lib/freadahead.h (freadahead): Likewise.
4199         * lib/fts.c (fts_maxarglen): Likewise.
4200         * lib/hash-pjw.h (hash_pjw): Likewise.
4201         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4202         * lib/hash.c (is_prime, next_prime): Likewise.
4203         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4204         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4205         (hash_table_ok, hash_get_first, hash_string): Likewise.
4206         (compute_bucket_size): Likewise.
4207         * lib/i-ring.h (i_ring_empty): Likewise.
4208         * lib/isnan.c (isnanl): Likewise.
4209         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4210         * lib/memcasecmp.h (memcasecmp): Likewise.
4211         * lib/memchr2.h (memchr2): Likewise.
4212         * lib/memcmp2.h (memcmp2): Likewise.
4213         * lib/parse-datetime.y (lookup_zone): Likewise.
4214         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4215         [!WINDOWS_SOCKETS]: Likewise.
4216         * lib/strnlen1.h (strnlen1): Likewise.
4217         * lib/uniwidth.in.h (uc_width): Likewise.
4218         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4219         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4220         (quoting_options_from_style): Add a comment.
4221         * lib/propername.h (proper_name): Add a comment.
4222
4223 2011-11-27  Bruno Haible  <bruno@clisp.org>
4224
4225         Remove unused macros from !_LIBC code in glibc-borrowed files.
4226         * lib/fnmatch.c (STRCOLL): Remove macro.
4227         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4228         * lib/glob.c (__stat, __readdir64): Remove macros.
4229         * lib/tempname.c (__open64, __xstat64): Remove macros.
4230         Suggested by Paul Eggert.
4231
4232 2011-11-27  Bruno Haible  <bruno@clisp.org>
4233
4234         getcwd: Fix link error on MSVC 9.
4235         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4236
4237 2011-11-27  Bruno Haible  <bruno@clisp.org>
4238
4239         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4240         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4241         HAVE_OPENDIR is 0.
4242         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4243         HAVE_CLOSEDIR is 0.
4244         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4245         is 0.
4246         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4247
4248 2011-11-27  Bruno Haible  <bruno@clisp.org>
4249
4250         getcwd: Fix bug from 2011-08-17.
4251         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4252         platforms that need it.
4253         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4254         code of 4 to be a failure, not a success. This ensures that
4255         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4256
4257 2011-11-27  Bruno Haible  <bruno@clisp.org>
4258
4259         binary-io tests: Avoid test failure on mingw when libtool is used.
4260         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4261         Don't verify the size of t-bin-out1.tmp here.
4262         * tests/test-binary-io.sh: Verify it here.
4263         Reported by Simon Josefsson.
4264
4265 2011-11-26  Bruno Haible  <bruno@clisp.org>
4266
4267         Fix conflict between two instantiations of module 'unistd'.
4268         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4269         ${include_guard_prefix} also in the autoconf snippet.
4270         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4272         GNULIB_UNISTD_H_GETOPT.
4273         * modules/getopt-posix (configure.ac): Set the
4274         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4275         * modules/getopt-gnu (configure.ac): Likewise.
4276         * modules/unistd (Makefile.am): Change the substitution value of
4277         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4278         Reported by Simon Josefsson.
4279
4280 2011-11-25  Bruno Haible  <bruno@clisp.org>
4281
4282         pagealign_alloc: Doc and comments.
4283         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4284         module.
4285         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4286
4287 2011-11-25  Jim Meyering  <meyering@redhat.com>
4288
4289         test-update-copyright.sh: avoid false-positive failure
4290         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4291         around false positive failure on Cygwin/Windows.  The latter was
4292         matching erroneously-created files with names like
4293         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4294
4295 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4296
4297         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4298         * m4/valgrind-tests.m4: Check that the parameters that will be
4299         used works, not just a subset of them.  Reported by Bruno Haible
4300         <bruno@clisp.org>.
4301
4302 2011-11-24  Jim Meyering  <meyering@redhat.com>
4303
4304         test-stdalign.c: comment out long double tests
4305         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4306         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4307         error: '_Alignas' specifiers cannot reduce alignment of \
4308         'static_longdouble_alignas'.
4309
4310 2011-11-22  Jim Meyering  <meyering@redhat.com>
4311
4312         init.sh: make "compare /dev/null FILE" output more readable
4313         * tests/init.sh (compare_): Document the preferred order of arguments.
4314         (emit_diff_u_header_): New function.
4315         (compare_dev_null_): Emit a simulated diff, rather than just the
4316         contents of the unexpected file.  Suggestion from Bruno Haible.
4317
4318 2011-11-21  Jim Meyering  <meyering@redhat.com>
4319             Eric Blake  <eblake@redhat.com>
4320
4321         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4322         * tests/init.sh: Make our compare function slightly more portable.
4323         Reported by Bruno Haible in
4324         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4325
4326 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4327
4328         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4329         before using it, in code that ends up in config.h.
4330
4331 2011-11-20  Bruno Haible  <bruno@clisp.org>
4332
4333         getcwd: Work around getcwd bug on AIX 5..7.
4334         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4335         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4336         Use a different value for gl_cv_func_getcwd_path_max. Move the
4337         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4338         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4339         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4340         Define HAVE_MINIMALLY_WORKING_GETCWD.
4341         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4342         where it is not even minimally working, that is, on AIX.
4343         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4344         m4/getcwd-path-max.m4.
4345         (main): Update exit code computation.
4346         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4347         getcwd does not handle long file names.
4348
4349 2011-11-20  Bruno Haible  <bruno@clisp.org>
4350
4351         getcwd: Fix bug from 2009-09-10.
4352         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4353         like "no".
4354
4355 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4356
4357         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4358
4359 2011-11-20  Bruno Haible  <bruno@clisp.org>
4360
4361         fma tests: Avoid shadowing local variables.
4362         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4363         expected.
4364
4365 2011-11-20  Bruno Haible  <bruno@clisp.org>
4366
4367         copysignf tests: Fix.
4368         * tests/test-copysignf.c: Fix signature check.
4369
4370 2011-11-20  Bruno Haible  <bruno@clisp.org>
4371
4372         fma: Remove unused code.
4373         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4374         unused macros.
4375
4376 2011-11-20  Bruno Haible  <bruno@clisp.org>
4377
4378         sethostname: Fix doc about AIX.
4379         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4380         sethostname; it has it.
4381
4382         sethostname: Mention more portability problems.
4383         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4384         problem.
4385         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4386
4387 2011-11-19  Bruno Haible  <bruno@clisp.org>
4388
4389         Depend on module fcntl-h when AT_FDCWD is used.
4390         * modules/utimens (Depends-on): Add fcntl-h.
4391         * modules/areadlinkat (Depends-on): Likewise.
4392         * modules/areadlinkat-with-size (Depends-on): Likewise.
4393         * modules/faccessat (Depends-on): Likewise.
4394         * modules/fchmodat (Depends-on): Likewise.
4395         * modules/fchownat (Depends-on): Likewise.
4396         * modules/getcwd (Depends-on): Likewise.
4397         * modules/mkdirat (Depends-on): Likewise.
4398         * modules/mkfifoat (Depends-on): Likewise.
4399         * modules/readlinkat (Depends-on): Likewise.
4400         * modules/symlinkat (Depends-on): Likewise.
4401         * modules/dup2-tests (Depends-on): Likewise.
4402         * modules/fdutimensat-tests (Depends-on): Likewise.
4403         * modules/futimens-tests (Depends-on): Likewise.
4404
4405 2011-11-19  Bruno Haible  <bruno@clisp.org>
4406
4407         euidaccess: Update a comment.
4408         * lib/euidaccess.c: Update comment about platforms with faccessat.
4409
4410 2011-11-19  Bruno Haible  <bruno@clisp.org>
4411
4412         openat: Fix file list.
4413         * modules/openat (Files): Remove lib/at-func.c.
4414
4415 2011-11-19  Bruno Haible  <bruno@clisp.org>
4416
4417         fstatat: Simplify.
4418         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4419         gnulib should define rpl_fstatat, there is a
4420         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4421
4422 2011-11-19  Bruno Haible  <bruno@clisp.org>
4423
4424         Ensure 'inline' can be used in tests/test-utimens-common.h.
4425         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4426         * modules/futimens-tests (configure.ac): Likewise.
4427         * modules/utimens-tests (configure.ac): Likewise.
4428         * modules/utimensat-tests (configure.ac): Likewise.
4429
4430 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4431
4432         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4433         not hash_insert0.
4434         (hash_insert_if_absent): Doc fix.
4435
4436 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4437
4438         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
4439
4440 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
4441
4442         test-getcwd: disambiguate exit status
4443         * tests/test-getcwd.c (test_long_name): Return 0..7.
4444         (main): Exit with an unambiguous exit status.  The old
4445         code yielded a mysterious mixture of two failure codes.
4446
4447         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
4448         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
4449         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
4450         rpl_fstatat or fstatat.  This should fix the other problem
4451         reported by Kai Habel in
4452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4453         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
4454         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
4455         and I reproduced it on a Solaris 8 host we still have in production.
4456
4457 2011-11-18  Jim Meyering  <meyering@redhat.com>
4458
4459         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
4460         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
4461         Add a sentence to the comment.
4462         (hash_insert0): New function that simply calls hash_insert_if_absent.
4463         * lib/hash.h (hash_insert_if_absent): Declare it.
4464         (hash_insert0): Add deprecation attribute.
4465         (_GL_ATTRIBUTE_DEPRECATED): Define.
4466         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
4467         not hash_insert0.
4468         * NEWS: Mention it, even though it's not really an incompatible change.
4469
4470 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
4471
4472         openat: avoid compilation failure due to lack of <errno.h> inclusion
4473         * lib/openat.c: Include <errno.h>.
4474
4475 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
4476
4477         * modules/getcwd (Depends-on): Add fdopendir.
4478         This fixes one of the two problems reported by Kai Habel in
4479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
4480
4481         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
4482         stdalign problem reported by Ian Beckwith in
4483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
4484         * modules/crypto/gc-arcfour (Depends-on):
4485         Depend conditionally on crypto/arcfour.
4486         * modules/crypto/gc-arctwo (Depends-on):
4487         Depend conditionally on crypto/arctwo.
4488         * modules/crypto/gc-des (Depends-on):
4489         Depend conditionally on crypto/des.
4490         * modules/crypto/gc-hmac-md5 (Depends-on):
4491         Depend conditionally on crypto/hmac-md5.
4492         * modules/crypto/gc-hmac-sha1 (Depends-on):
4493         Depend conditionally on crypto/hmac-sha1.
4494         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
4495         * modules/crypto/gc-md4 (Depends-on):
4496         Depend conditionally on crypto/md4.
4497         * modules/crypto/gc-md5 (Depends-on):
4498         Depend conditionally on crypto/md5.
4499         * modules/crypto/gc-rijndael (Depends-on):
4500         Depend conditionally on crypto/rijndael.
4501         * modules/crypto/gc-sha1 (Depends-on):
4502         Depend conditionally on crypto/sha1.
4503         * modules/crypto/gc-arcfour:
4504         * modules/crypto/gc-arctwo:
4505         * modules/crypto/gc-des:
4506         * modules/crypto/gc-hmac-md5:
4507         * modules/crypto/gc-hmac-sha1:
4508         * modules/crypto/gc-md2:
4509         * modules/crypto/gc-md4:
4510         * modules/crypto/gc-md5:
4511         * modules/crypto/gc-rijndael:
4512         * modules/crypto/gc-sha1:
4513         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
4514         now that the conditional dependencies do the work for us.
4515
4516 2011-11-17  Jim Meyering  <meyering@redhat.com>
4517
4518         tests: factor st_ctime-comparison out of two headers
4519         * tests/test-utimens-common.h (ctime_compare): Define.
4520         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
4521         * tests/test-lutimens.h (test_lutimens): Likewise.
4522         * tests/test-utimens.h (test_utimens): Likewise.
4523
4524         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
4525         Invoke the test program via an init.sh-using wrapper.
4526         * tests/test-getcwd.sh: New file.
4527         * modules/getcwd-tests (Files): Add it.
4528         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
4529
4530 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
4531
4532         gitlog-to-changelog: support multi-author commits.
4533         The FSF cares about keeping track of all authors of patches to its
4534         projects, but Git doesn't provide obvious support for multi-author
4535         changesets. Consensus seems to be forming around the use of extra
4536         Signed-off-by inspired lines in the log message formatted as
4537         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
4538         multi-author commits between version control systems.
4539         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
4540         log message and output in standard ChangeLog multi-author format.
4541         Reported by Peter Rosin <peda@lysator.liu.se>
4542
4543 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
4544             Bruno Haible  <bruno@clisp.org>
4545
4546         Fix some modules' file list.
4547         * modules/fstatat (Files): Add m4/lstat.m4.
4548         * modules/openat (Files): Likewise.
4549         * modules/unlinkat (Files): Likewise.
4550
4551 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
4552
4553         maint.mk: fix tight-scope.mk generation in VPATH builds.
4554         * top/maint.mk (tight-scope.mk): Make sure to prefix file
4555         reference with $(srcdir) so that the file is found correctly even
4556         when running `make syntax-check' in a VPATH build.
4557
4558 2011-11-13  Bruno Haible  <bruno@clisp.org>
4559             Jim Meyering  <meyering@redhat.com>
4560
4561         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
4562         * tests/init.sh (compare): Remove "No differences encountered" or
4563         synonymous output from the 'diff' program.
4564
4565 2011-11-13  Bruno Haible  <bruno@clisp.org>
4566
4567         Makefile: Tweak indentation.
4568         * Makefile: Use tab as first character in every line that contains rule
4569         commands.
4570
4571 2011-11-13  Bruno Haible  <bruno@clisp.org>
4572
4573         Syntax check for copyright statements.
4574         * check-copyright: New file.
4575         * Makefile (sc_check_copyright): New rule.
4576
4577 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4578
4579         * build-aux/git-version-gen: Add --prefix to configure the tag
4580         match string.
4581
4582 2011-11-13  Simon Josefsson  <simon@josefsson.org>
4583
4584         * build-aux/git-version-gen: Add --help and --version.
4585
4586 2011-11-12  Jim Meyering  <meyering@redhat.com>
4587
4588         revamp the other test-exclude?.sh scripts to use init.sh, too
4589         * tests/test-exclude1.sh: Use init.sh.
4590         * tests/test-exclude2.sh: Likewise.
4591         * tests/test-exclude3.sh: Likewise.
4592         * tests/test-exclude4.sh: Likewise.
4593         * tests/test-exclude5.sh: Likewise.
4594         * tests/test-exclude6.sh: Likewise.
4595         * tests/test-exclude7.sh: Likewise.
4596         * tests/test-exclude8.sh: Likewise.
4597         * modules/exclude-tests (Files): List init.sh.
4598
4599         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
4600         These shell scripts ignored failure of the binary test-exclude,
4601         so making the latter return 77 didn't cause them to be skipped.
4602         * tests/test-exclude5.sh: Exit with test-exclude's error status
4603         when that program fails.  Revamp to use init.sh.
4604         * tests/test-exclude2.sh: Likewise.
4605
4606         test-exclude: fix a typo
4607         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
4608
4609 2011-11-11  Bruno Haible  <bruno@clisp.org>
4610
4611         obstack: Fix compilation error on MSVC 9.
4612         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
4613
4614 2011-11-11  Jim Meyering  <meyering@redhat.com>
4615
4616         test-exclude: skip tests rather than failing on deficient systems
4617         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
4618         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
4619         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
4620         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
4621
4622 2011-11-10  Bruno Haible  <bruno@clisp.org>
4623
4624         ptsname_r test: Avoid gcc warning on glibc systems.
4625         * tests/test-ptsname_r.c (null_ptr): New function.
4626         (test_errors): Use it.
4627
4628 2011-11-10  Bruno Haible  <bruno@clisp.org>
4629
4630         ptsname_r: Avoid compilation error on OSF/1 5.1.
4631         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
4632         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
4633         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
4634         function is not declared or incompatibly declared.
4635         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
4636         * modules/ptsname_r (Depends-on, configure.ac): Update.
4637         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
4638
4639 2011-11-10  Bruno Haible  <bruno@clisp.org>
4640
4641         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
4642         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
4643         When cross-compiling, guess yes on all platforms except AIX.
4644         Reported by Ludovic Courtès <ludo@gnu.org>.
4645
4646 2011-11-09  Bruno Haible  <bruno@clisp.org>
4647
4648         ptsname_r tests: Fix bugs.
4649         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
4650         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
4651
4652 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
4653
4654         fstatat: work with cross-compilation
4655         Problem reported by Ludovic Courtès in
4656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
4657         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
4658         "cross-compiling" and assume the bug is present.  Replace
4659         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
4660         an inverted sense, to be more conservative about our assumptions.
4661         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
4662
4663 2011-11-09  Bruno Haible  <bruno@clisp.org>
4664
4665         Improve MODULES.html output.
4666         * modules/mkfifoat (Description): Use the word "function".
4667         * modules/readlinkat (Description): Likewise.
4668         * modules/symlinkat (Description): Likewise.
4669
4670 2011-11-09  Eric Blake  <eblake@redhat.com>
4671
4672         ptsname_r-tests: new test module
4673         * modules/ptsname_r-tests: New module.
4674         * tests/test-ptsname_r.c: New file.
4675
4676         ptsname_r: new module
4677         * modules/ptsname_r: New module.
4678         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
4679         * lib/ptsname.c (__ptsname_r): Split...
4680         * lib/ptsname_r.c: ...into new file.
4681         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
4682         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
4683         * modules/stdlib (Makefile.am): Substitute witnesses.
4684         * lib/stdlib.in.h (ptsname_r): Declare it.
4685         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
4686         * MODULES.html.sh (Misc): Likewise.
4687         * modules/ptsname (Depends-on): Alter dependency.
4688         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
4689
4690 2011-11-09  Jim Meyering  <meyering@redhat.com>
4691
4692         announce-gen: be more concise when there's only one URL+tarball
4693         * build-aux/announce-gen (get_tool_versions): When you distribute
4694         only one type of tarball, combine the first two "Here are..."
4695         sections and make the key-checking grammar independent of
4696         how many tarballs there are.
4697
4698 2011-11-09  Eric Blake  <eblake@redhat.com>
4699
4700         openpty: provide a stub on mingw
4701         * lib/pty.in.h (includes): Provide forward declarations.
4702         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
4703
4704         raise: fix mingw handling of SIGPIPE
4705         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
4706
4707 2011-11-08  Bruno Haible  <bruno@clisp.org>
4708
4709         More conditional dependencies.
4710         * modules/faccessat (Depends-on): Add conditions.
4711         * modules/fchmodat (Depends-on): Likewise.
4712         * modules/fchownat (Depends-on): Likewise.
4713         * modules/fstatat (Depends-on): Likewise.
4714         * modules/mkfifoat (Depends-on): Likewise.
4715         * modules/readlinkat (Depends-on): Likewise.
4716         * modules/symlinkat (Depends-on): Likewise.
4717         * modules/unlinkat (Depends-on): Likewise.
4718         * modules/utimensat (Depends-on): Likewise.
4719         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
4720         * modules/linkat (Depends-on): Refine the conditions.
4721         * modules/renameat (Depends-on): Likewise.
4722
4723 2011-11-08  Bruno Haible  <bruno@clisp.org>
4724
4725         faccessat: Move AC_LIBOBJ invocation to module description.
4726         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
4727         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
4728         invocation from here...
4729         * modules/faccessat (configure.ac): ... to here. Invoke
4730         gl_PREREQ_FACCESSAT.
4731
4732 2011-11-08  Bruno Haible  <bruno@clisp.org>
4733
4734         faccessat: Simplify autoconf macro.
4735         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
4736         gl_FUNC_EUIDACCESS.
4737
4738 2011-11-08  Bruno Haible  <bruno@clisp.org>
4739
4740         renameat: Fix dependencies.
4741         * modules/renameat (Depends-on): Add stdbool.
4742
4743 2011-11-08  Bruno Haible  <bruno@clisp.org>
4744
4745         mkfifoat: Fix module description.
4746         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
4747         not gl_UNISTD_MODULE_INDICATOR.
4748
4749 2011-11-08  Bruno Haible  <bruno@clisp.org>
4750
4751         fstatat: Remove unused dependency.
4752         * modules/fstatat (Depends-on): Remove fstat.
4753
4754 2011-11-08  Simon Josefsson  <simon@josefsson.org>
4755
4756         GNUmakefile: behave when Makefile is missing.
4757         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
4758
4759 2011-11-08  Bruno Haible  <bruno@clisp.org>
4760
4761         openat: Conditionalize dependencies.
4762         * lib/openat.c: Reduce the scope of some #includes.
4763         * modules/openat (Depends-on): Add conditions.
4764
4765 2011-11-07  Jim Meyering  <meyering@redhat.com>
4766
4767         maint.mk: extract GPG key ID without using a temporary file
4768         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
4769         without using a temporary file.  Based on a suggestion from Werner Koch
4770         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
4771
4772 2011-11-07  Eric Blake  <eblake@redhat.com>
4773
4774         grantpt: fix typo
4775         * lib/stdlib.in.h (grantpt): Check correct function.
4776
4777         maint.mk: silence new syntax check
4778         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
4779
4780 2011-11-06  Bruno Haible  <bruno@clisp.org>
4781
4782         Doc about floating-point and math API.
4783         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
4784         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
4785
4786 2011-11-06  Bruno Haible  <bruno@clisp.org>
4787
4788         stdalign tests: Skip the test when compiled by Sun C.
4789         * tests/test-stdalign.c (main): Skip the test on Sun C.
4790
4791 2011-11-06  Bruno Haible  <bruno@clisp.org>
4792
4793         ansi-c++-opt: Complete the 2011-06-05 change.
4794         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
4795         does not support namespaces, set the variable to "no", not to ":".
4796
4797 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
4798
4799         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
4800
4801 2011-11-06  Bruno Haible  <bruno@clisp.org>
4802
4803         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
4804         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
4805         (minus_zerol) [HP-UX]: New macro.
4806         (unary_minus) [HP-UX]: New function.
4807         (copysignl) [HP-UX]: Use unary_minus function.
4808
4809 2011-11-06  Bruno Haible  <bruno@clisp.org>
4810
4811         ldexp, ldexpf, ldexpl: Enhance tests.
4812         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
4813         and tests/test-ldexpl.c.
4814         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
4815         LDEXP, MIN_EXP, MAX_EXP): New macros.
4816         Include test-ldexp.h.
4817         (main): Just call test_function.
4818         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
4819         infinity.h, nan.h.
4820         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4821         MAX_EXP): New macros.
4822         Include test-ldexp.h.
4823         (x, y): Remove variables.
4824         (main): Just call test_function.
4825         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
4826         infinity.h, nan.h.
4827         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
4828         MAX_EXP): New macros.
4829         Include test-ldexp.h.
4830         (x, y): Remove variables.
4831         (main): Just call test_function.
4832         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
4833         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
4834         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4835         (Depends-on): Add isnand-nolibm, signbit, float.
4836         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
4837         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
4838         (Depends-on): Add isnanf-nolibm, signbit, float.
4839
4840 2011-11-06  Bruno Haible  <bruno@clisp.org>
4841
4842         math tests: Cosmetics.
4843         * tests/test-math-c++.cc: Reorder declarations.
4844
4845 2011-11-05  Bruno Haible  <bruno@clisp.org>
4846
4847         fma*: Simplify test.
4848         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
4849         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
4850
4851         Tests for module 'fmal'.
4852         * modules/fmal-tests: New file.
4853         * tests/test-fmal1.c: New file.
4854         * tests/test-fmal2.c: New file.
4855
4856         New module 'fmal'.
4857         * lib/math.in.h (fmal): New declaration.
4858         * lib/fmal.c: New file.
4859         * m4/fmal.m4: New file.
4860         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
4861         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
4862         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
4863         REPLACE_FMAL.
4864         * modules/fmal: New file.
4865         * doc/posix-functions/fmal.texi: Mention the new module and the various
4866         bugs.
4867
4868         Tests for module 'fmaf'.
4869         * modules/fmaf-tests: New file.
4870         * tests/test-fmaf1.c: New file.
4871         * tests/test-fmaf2.c: New file.
4872
4873         New module 'fmaf'.
4874         * lib/math.in.h (fmaf): New declaration.
4875         * lib/fmaf.c: New file.
4876         * m4/fmaf.m4: New file.
4877         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
4878         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
4879         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
4880         REPLACE_FMAF.
4881         * modules/fmaf: New file.
4882         * doc/posix-functions/fmaf.texi: Mention the new module and the various
4883         bugs.
4884
4885         Tests for module 'fma'.
4886         * modules/fma-tests: New file.
4887         * tests/test-fma1.c: New file.
4888         * tests/test-fma1.h: New file.
4889         * tests/test-fma2.c: New file.
4890         * tests/test-fma2.h: New file.
4891
4892         New module 'fma'.
4893         * lib/math.in.h (fma): New declaration.
4894         * lib/fma.c: New file.
4895         * m4/fma.m4: New file.
4896         * m4/fegetround.m4: New file.
4897         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
4898         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
4899         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
4900         REPLACE_FMA.
4901         * modules/fma: New file.
4902         * doc/posix-functions/fma.texi: Mention the new module and the various
4903         bugs.
4904
4905         Extend gl_MATHFUNC.
4906         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
4907         Support 'void' as argument type.
4908         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
4909
4910 2011-11-05  Jim Meyering  <meyering@redhat.com>
4911
4912         maint.mk: also prohibit inclusion of dirent.h without use
4913         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
4914
4915 2011-11-05  Bruno Haible  <bruno@clisp.org>
4916
4917         ldexpl tests: Avoid test failure on MSVC 9.
4918         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
4919         value. Needed in order to enforce the conversion from a value greater
4920         than LDBL_MAX to Infinity.
4921
4922 2011-11-05  Bruno Haible  <bruno@clisp.org>
4923
4924         New modules 'at-internal', 'openat-h', split off from module 'openat'.
4925         * modules/at-internal: New file, extracted from modules/openat.
4926         * modules/openat-h: New file.
4927         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
4928         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
4929         * modules/openat (Description): Add reference to POSIX function.
4930         (Files): Remove lib/openat.h, lib/openat-proc.c.
4931         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
4932         intprops, unistd.
4933         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
4934         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
4935         gl_FCNTL_MODULE_INDICATOR.
4936         (Include): Remove unistd.h, openat.h.
4937         * modules/areadlinkat (Files): Add lib/at-func.c.
4938         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4939         openat-die, openat-h, save-cwd.
4940         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
4941         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4942         openat-die, openat-h, save-cwd, unistd.
4943         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
4944         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4945         openat-h, save-cwd. Remove fcntl-h, openat.
4946         * modules/fchmodat (Files): Remove lib/openat.h.
4947         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4948         openat, stdbool, unistd.
4949         * modules/fchownat (Files): Remove lib/openat.h.
4950         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4951         openat, stdbool, sys_stat.
4952         * modules/fdopendir (Files): Remove lib/openat-priv.h,
4953         lib/openat-proc.c.
4954         (Depends-on): Add at-internal.
4955         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
4956         * modules/fstatat (Files): Remove lib/openat.h.
4957         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4958         stdbool, unistd.
4959         * modules/fts (Depends-on): Add openat-h.
4960         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
4961         openat.
4962         * modules/mkdirat (Files): Remove lib/openat.h.
4963         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
4964         openat, stdbool, sys_stat.
4965         * modules/mkfifoat (Files): Add lib/at-func.c.
4966         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4967         openat-h, save-cwd. Remove fcntl-h, openat.
4968         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
4969         * modules/readlinkat (Files): Add lib/at-func.c.
4970         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4971         openat-h, save-cwd. Remove fcntl-h, openat.
4972         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
4973         openat.
4974         * modules/selinux-at (Files): Add lib/at-func.c.
4975         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
4976         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
4977         * modules/symlinkat (Files): Add lib/at-func.c.
4978         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
4979         openat-h, save-cwd. Remove fcntl-h, openat.
4980         * modules/unlinkat (Files): Remove lib/openat.h.
4981         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
4982         stdbool.
4983         * modules/utimensat (Files): Add lib/at-func.c.
4984         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
4985         openat-die, openat-h, save-cwd.
4986         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
4987         * modules/fdutimensat-tests (Depends-on): Add openat.
4988         * modules/fstatat-tests (Depends-on): Add openat-h.
4989         * modules/readlinkat-tests (Depends-on): Add openat.
4990         * modules/symlinkat-tests (Depends-on): Add openat.
4991
4992 2011-11-05  Bruno Haible  <bruno@clisp.org>
4993
4994         openat: Include <stdbool.h>.
4995         * lib/openat.c: Include <stdbool.h>.
4996
4997 2011-11-04  Bruno Haible  <bruno@clisp.org>
4998
4999         fchownat, renameat, unlinkat: Fix dependencies.
5000         * modules/fchownat (Depends-on): Add fstatat.
5001         * modules/renameat (Depends-on): Likewise.
5002         * modules/unlinkat (Depends-on): Likewise.
5003
5004 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5005
5006         openat: remove direct dependency on dirent
5007         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5008         and hasn't been needed ever since fdopendir was split into its own
5009         module on 2009-08-31.
5010         * modules/openat (Depends-on): Remove dirent.
5011
5012 2011-11-04  Bruno Haible  <bruno@clisp.org>
5013
5014         renameat: Optimize code size.
5015         * modules/renameat (configure.ac): Don't compile at-func2.c if
5016         REPLACE_RENAMEAT is 1.
5017
5018 2011-11-04  Bruno Haible  <bruno@clisp.org>
5019
5020         openat tests: Fix file list.
5021         * modules/openat-tests (Files): Add tests/test-open.h.
5022
5023 2011-11-04  Bruno Haible  <bruno@clisp.org>
5024
5025         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5026         * modules/fchmodat (Depends-on): Add openat-die.
5027         * modules/fchownat (Depends-on): Likewise.
5028         * modules/linkat (Depends-on): Likewise.
5029         * modules/renameat (Depends-on): Likewise.
5030         * modules/openat (Depends-on): Add dirent.
5031
5032 2011-11-04  Jim Meyering  <meyering@redhat.com>
5033
5034         at-func*.c: fix comments
5035         * lib/at-func2.c: Correct/improve first-line comment.
5036         * lib/at-func.c: Correct grammar in first-line comment.
5037
5038 2011-11-04  Bruno Haible  <bruno@clisp.org>
5039
5040         New module 'mkdirat', split off from module 'openat'.
5041         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5042         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5043         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5044         * modules/mkdirat: New file, extracted from modules/openat.
5045         * modules/openat (Files): Remove lib/mkdirat.c.
5046         (Depends-on): Remove mkdir.
5047         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5048         (Include): Remove <sys/stat.h>.
5049         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5050         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5051         tests/test-mkdir.h.
5052         (Depends-on): Remove ignore-value.
5053         (Makefile.am): Remove rules for test-mkdirat.
5054         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5055         of module 'openat'.
5056         * NEWS: Mention the change.
5057
5058 2011-11-04  Bruno Haible  <bruno@clisp.org>
5059
5060         closedir: Avoid warning on mingw.
5061         * lib/closedir.c: Include <unistd.h>.
5062
5063 2011-11-04  Bruno Haible  <bruno@clisp.org>
5064
5065         New module 'fstatat', split off from module 'openat'.
5066         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5067         defined.
5068         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5069         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5070         gl_FUNC_FSTATAT.
5071         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5072         * modules/fstatat: New file, extracted from modules/openat.
5073         * modules/openat (Files): Remove lib/fstatat.c.
5074         (Depends-on): Remove lstat.
5075         (configure.ac): Remove AC_LIBOBJ of fstatat.
5076         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5077         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5078         tests/test-lstat.h, tests/test-stat.h.
5079         (Depends-on): Remove getcwd-lgpl.
5080         (Makefile.am): Remove rules for test-fstatat.
5081         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5082         of module 'openat'.
5083         * NEWS: Mention the change.
5084         * modules/getcwd (Depends-on): Add fstatat.
5085         * modules/linkat (Depends-on): Likewise.
5086         * modules/mkfifoat-tests (Depends-on): Likewise.
5087         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5088
5089 2011-11-03  Bruno Haible  <bruno@clisp.org>
5090
5091         New module 'unlinkat', split off from module 'openat'.
5092         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5093         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5094         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5095         * modules/unlinkat: New file, extracted from modules/openat. Correct
5096         the dependency conditions.
5097         * modules/openat (Files): Remove lib/unlinkat.c.
5098         (Depends-on): Remove rmdir, unlink.
5099         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5100         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5101         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5102         tests/test-rmdir.h, tests/test-unlink.h.
5103         (Depends-on): Remove unlinkdir.
5104         (Makefile.am): Remove rules for test-unlinkat.
5105         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5106         of module 'openat'.
5107         * NEWS: Mention the change.
5108         * modules/linkat-tests (Depends-on): Add unlinkat.
5109         * modules/mkfifoat-tests (Depends-on): Likewise.
5110         * modules/readlinkat-tests (Depends-on): Likewise.
5111
5112 2011-11-02  Bruno Haible  <bruno@clisp.org>
5113
5114         New module 'fchmodat', split off from module 'openat'.
5115         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5116         defined.
5117         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5118         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5119         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5120         * modules/fchmodat: New file, extracted from modules/openat.
5121         * modules/openat (Files): Remove lib/fchmodat.c.
5122         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5123         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5124         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5125         (Makefile.am): Remove rules for test-fchmodat.
5126         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5127         of module 'openat'.
5128         * NEWS: Mention the change.
5129
5130 2011-11-02  Jim Meyering  <meyering@redhat.com>
5131
5132         putenv: indent #definition of "environ" to placate cppi
5133         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5134
5135         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5136         Git logs are often treated as immutable, because editing them
5137         changes the SHA1 checksums of all descendants.  Thus, errors in
5138         git logs tend to stay there forever.  However, when we generate
5139         a ChangeLog file -- typically for distribution -- from that git log,
5140         we can actually make corrections in the generated file.  The key
5141         lies in recording in machine-readable/applicable form the desired
5142         corrections.  See --help for description and an example.
5143         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5144         (usage): Describe it; alphabetize option descriptions.
5145         (main): Honor the new option, carefully.
5146
5147 2011-11-01  Jim Meyering  <meyering@redhat.com>
5148
5149         gitlog-to-changelog: avoid an infloop
5150         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5151         that ends up being empty.
5152
5153 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5154
5155         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5156         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5157         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5158         contains (possibly-quoted) backslashes.  This should avoid
5159         all-too-common shell bugs if COMPLICATED contains backslashes in
5160         the "wrong" places.  Reported by David Evans in
5161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5162         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5163         because we want ASCII ranges.  Is there some reason we don't use
5164         the C locale everywhere in this script?
5165         (func_module, top level): Avoid unwanted pathname expansion when
5166         $repo_url_prefix or $repo_url_suffix_repl contain shell
5167         metacharacters like '?' and '*'.
5168
5169 2011-11-01  Bruno Haible  <bruno@clisp.org>
5170
5171         fchownat: Improve description.
5172         * modules/fchownat (Description): Add link to function.
5173
5174 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5175
5176         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5177         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5179         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5180
5181 2011-11-01  Bruno Haible  <bruno@clisp.org>
5182
5183         alignof: Avoid collision with stdalign module.
5184         * lib/alignof.h (alignof): Remove macro.
5185         * NEWS: Mention the change.
5186         Reported by Paul Eggert.
5187
5188 2011-11-01  Bruno Haible  <bruno@clisp.org>
5189
5190         New module 'fchownat', split off from module 'openat'.
5191         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5192         defined.
5193         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5194         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5195         invoke gl_FUNC_FCHOWNAT.
5196         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5197         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5198         * modules/fchownat: New file, extracted from modules/openat.
5199         * modules/openat (Files): Remove lib/fchownat.c.
5200         (Depends-on): Remove lchown.
5201         (configure.ac): Remove AC_LIBOBJ of fchownat.
5202         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5203         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5204         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5205         (Depends-on): Remove mgetgroups, usleep, stat-time.
5206         (configure.ac): Remove test for getegid.
5207         (Makefile.am): Remove rules for test-fchownat.
5208         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5209         of module 'openat'.
5210         * NEWS: Mention the change.
5211
5212 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5213
5214         stdalign: port better to MSVC and to Sun C 5.11
5215         This fixes some of the problems reported by Bruno Haible in
5216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5217         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5218         shortcomings of MSVC and of Sun C 5.11.
5219         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5220         around __declspec arg.
5221         * modules/stdalign-tests (Files): Add tests/macros.h.
5222         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5223         Include macros.h, for ASSERT.
5224         (DECLARE_ALIGNED): Remove.
5225         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5226         to catch bug), and to 1 if not (simplifies the rest of the code).
5227         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5228         (CHECK_AUTO): Remove.
5229         (CHECK_ALIGNED): Check only the alignment of the static vars,
5230         since auto var alignment isn't supported by Sun C 5.11.
5231         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5232         ASSERT failures are easier to diagnose.
5233
5234 2011-10-31  Bruno Haible  <bruno@clisp.org>
5235
5236         doc about some IRIX 5.3 problems.
5237         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5238         on IRIX 5.3.
5239         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5240         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5241         5.3.
5242         * doc/posix-functions/grantpt.texi: Likewise.
5243         * doc/posix-functions/unlockpt.texi: Likewise.
5244         * doc/posix-functions/lgamma.texi: Likewise.
5245         * doc/posix-functions/nextafter.texi: Likewise.
5246         * doc/posix-functions/remainder.texi: Likewise.
5247         * doc/posix-functions/select.texi: Mention misplaced declaration on
5248         IRIX 5.3.
5249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5250
5251 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5252
5253         gitlog-to-changelog: fix git-log invocation.
5254         git-log mishandles date strings before 1970-01-01 UTC, and there is
5255         no use to specify --since=1970-01-01 by default anyway.
5256         * build-aux/gitlog-to-changelog: By default, when no --since option
5257         was given, do not specify explicit --since option to git-log.
5258
5259 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5260
5261         gitlog-to-changelog: new option --append-dot.
5262         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5263         first non-blank line of each commit message terminated with a dot.
5264
5265 2011-10-30  Bruno Haible  <bruno@clisp.org>
5266
5267         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5268         * lib/ffsl.h: Include <config.h>.
5269         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5270
5271 2011-10-30  Jim Meyering  <meyering@redhat.com>
5272
5273         GNUmakefile: reenable "make syntax-check" for most projects
5274         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5275         build-aux variable", "syntax-check" would do nothing but succeed with
5276         the "No version control files detected..." diagnostic (unless you
5277         happened to override _build-aux via cfg.mk).
5278         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5279         to precede inclusion of maint.mk.  Otherwise, these variables would
5280         be used undefined in any project that does not override the default.
5281
5282 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5283
5284         gitlog-to-changelog: treat a message with only blank lines as empty.
5285         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5286         trailing blank lines before the code that issues a warning about an
5287         empty commit message.
5288
5289 2011-10-30  Jim Meyering  <meyering@redhat.com>
5290
5291         test-parse-datetime.c: avoid new DST-related false positive test failure
5292         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5293         based on the time/date we'll convert, not the current time.
5294         Otherwise, the moment we cross a DST boundary like today's in
5295         Europe, (CEST to CET), that offset ends up being one hour off.
5296
5297 2011-10-27  Bruno Haible  <bruno@clisp.org>
5298
5299         fstat: Tweak documentation.
5300         * modules/fstat (Description): More precise description.
5301
5302 2011-10-27  Bruno Haible  <bruno@clisp.org>
5303
5304         Update documentation regarding 'largefile' module.
5305         * doc/posix-functions/fstat.texi: Tweak wording.
5306         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5307         problems with huge directories and/or small ino_t types.
5308         * doc/posix-functions/readdir.texi: Likewise.
5309         * doc/posix-functions/rewinddir.texi: Likewise.
5310
5311 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5312
5313         maint.mk: don't maintain a second build-aux variable.
5314         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5315         depends on GNUmakefile, which already maintains a cfg.mk
5316         overridable $(_build-aux) for projects with a non-standard
5317         build-aux directory location, although without the $(srcdir)
5318         prefix.  Use that variable consistently instead of introducing a
5319         second one.  Adjust all call sites.
5320
5321 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5322
5323         Add stdalign module and use it in other modules.
5324         This is based on a previous proposal by Bruno Haible
5325         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5326
5327         stdalign: new module
5328         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5329         * modules/stdalign: New files.
5330         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5331         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5332
5333         stdalign-tests: new module
5334         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5335
5336         argp: use stdalign
5337         * lib/argp-parse.c: Include <stdalign.h>.
5338         (alignof): Remove.
5339         * modules/argp (Depends-on): Add stdalign.
5340
5341         crypto libraries: use stdalign
5342         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5343         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5344         Do not include <stdlib.h> twice, in md4.c.
5345         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5346         because we are accessing a pointer's bit-pattern, not a size.
5347         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5348         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5349         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5350         * modules/crypto/sha512: Likewise.
5351
5352         sys_socket: use stdalign, not alignof
5353         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5354         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5355
5356 2011-10-27  Bruno Haible  <bruno@clisp.org>
5357
5358         raise test: Avoid a test failure on Linux/MIPS.
5359         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5360         because 99 is a valid signal on Linux/MIPS.
5361
5362 2011-10-27  Bruno Haible  <bruno@clisp.org>
5363
5364         nonblocking tests: Fix test failure on Linux/MIPS.
5365         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5366         Set to 270000.
5367
5368 2011-10-27  Bruno Haible  <bruno@clisp.org>
5369
5370         utimensat: Work around problem on Linux/hppa.
5371         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5372         values.
5373         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5374
5375 2011-10-25  Jim Meyering  <meyering@redhat.com>
5376
5377         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5378         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5379         after symbols like NULL, size_t, etc.
5380         Reported by Alfred M. Szmidt.
5381
5382         maint.mk: exempt ENODATA from a syntax-check rule
5383         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5384         from the sc_prohibit_always-defined_macros syntax-check rule.
5385         Add a comment.  See this for more details:
5386         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5387
5388 2011-10-23  Jim Meyering  <meyering@redhat.com>
5389
5390         fts: close parent dir FD before returning from post-traversal fts_read
5391         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5392         unlink A, even though an FD open on A remained.  This is suboptimal
5393         (holding a file descriptor open longer than needed), but otherwise not
5394         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5395         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5396         that represents a real problem: it causes the removal of A to fail
5397         with e.g., "rm: cannot remove `A': Device or resource busy"
5398
5399         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5400         directory file descriptors.  After completing the final, FTS_DP,
5401         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5402         cache, but then proceeded to add a new FD to it via the subsequent
5403         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5404         final file descriptor would be closed only via fts_close's call to
5405         fd_ring_clear.  Now, it is usually closed earlier, via the final
5406         FTS_DP-returning fts_read call.
5407         * lib/fts.c (restore_initial_cwd): New function, converted from
5408         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5409         Update callers.
5410         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5411         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5412
5413 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5414             Bruno Haible  <bruno@clisp.org>
5415             Jim Meyering  <jim@meyering.net>
5416
5417         readme-release: improve safety of release prep instructions.
5418         * README-release: Don't git pull all branches when only master
5419         is needed for the release process.
5420         Run make maintainer-clean before changing trees and merging.
5421         Don't try to run ./configure right after git pull in case files
5422         that influence the bootstrap process have changed, move the
5423         ./configure step to after running ./bootstrap.
5424         Don't bootstrap "one last time"... it's the first time!
5425
5426 2011-10-22  Bruno Haible  <bruno@clisp.org>
5427
5428         errno, strerror-override: Support for MSVC 10.
5429         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5430         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5431         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5432         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5433         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5434         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5435         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5436         Assign values compatible with MSVC 10.
5437         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
5438         New macros.
5439         (GNULIB_defined_EWINSOCK): New macro.
5440         * lib/strerror-override.c (strerror_override): Update accordingly.
5441         * lib/strerror-override.h: Likewise.
5442         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
5443         longer equal to the corresponding errno value.
5444         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5445
5446 2011-10-22  Bruno Haible  <bruno@clisp.org>
5447
5448         perror: Recognize when test program crashes.
5449         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
5450         strerror, set gl_cv_func_perror_works to no.
5451         Reported by Daniel Richard G. <skunk@iskunk.org>.
5452
5453         perror: Fix indentation.
5454         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
5455
5456 2011-10-22  Bruno Haible  <bruno@clisp.org>
5457
5458         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
5459         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
5460         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
5461         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
5462         functions, not as a macro.
5463         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
5464         macros.
5465         (isfinite, isinf, isnan, signbit): Check overloaded functions and
5466         absence of macro.
5467         Suggested by Eric Blake.
5468         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5469
5470 2011-10-21  Bruno Haible  <bruno@clisp.org>
5471
5472         relocatable-prog-wrapper: Don't leave object files behind.
5473         * build-aux/install-reloc: Re-synchronize list of .o files to be
5474         removed with list of compilation units.
5475
5476 2011-10-20  Bruno Haible  <bruno@clisp.org>
5477
5478         openpty, posix_openpt: Remove code duplication.
5479         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
5480         * lib/openpty.c: Include <stdlib.h>.
5481         (openpty): Use posix_openpt on all platforms except IRIX.
5482         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
5483
5484 2011-10-20  Bruno Haible  <bruno@clisp.org>
5485
5486         unlockpt: Detect invalid argument.
5487         * lib/unlockpt.c: Include <fcntl.h>.
5488         (unlockpt): Check whether fd is valid, using fcntl().
5489         * modules/unlockpt (Depends-on): Add fcntl-h.
5490
5491 2011-10-20  Bruno Haible  <bruno@clisp.org>
5492
5493         openpty: Avoid compilation error on AIX 6.1.
5494         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
5495
5496 2011-10-20  Bruno Haible  <bruno@clisp.org>
5497
5498         posix_openpt: Support for OpenBSD.
5499         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
5500         (posix_openpt) [OpenBSD]: New code.
5501         * lib/grantpt.c: Include <fcntl.h>.
5502         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
5503         * modules/grantpt (Depends-on): Add fcntl-h.
5504
5505 2011-10-20  Bruno Haible  <bruno@clisp.org>
5506
5507         posix_openpt test: Coding style.
5508         * tests/test-posix_openpt.c: Use GNU coding style.
5509
5510 2011-10-20  Bruno Haible  <bruno@clisp.org>
5511
5512         grantpt: Support --avoid=pt_chown.
5513         * modules/grantpt (Files): Add lib/pty-private.h.
5514
5515 2011-10-20  Bruno Haible  <bruno@clisp.org>
5516
5517         posix_openpt: Fix autoconf macro.
5518         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
5519         unneeded check for _getpty.
5520
5521 2011-10-20  Bruno Haible  <bruno@clisp.org>
5522
5523         openpty: Update comments.
5524         * lib/openpty.c: Add comments about Minix.
5525
5526 2011-10-19  Eric Blake  <eblake@redhat.com>
5527
5528         openpty: relax license
5529         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
5530
5531         pt_chown: use configmake to simplify build
5532         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
5533
5534         ptsname and others: relax license
5535         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
5536         * modules/unlockpt (License): Likewise.
5537         * modules/pt_chown (License): Likewise.
5538         * modules/ptsname (License): Likewise.
5539         * modules/ttyname_r (License): Likewise.
5540
5541 2011-10-19  Jim Meyering  <meyering@redhat.com>
5542
5543         posix_openpt: remove spurious #endif
5544         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
5545
5546 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
5547
5548         maint.mk: Respect $(build_aux) in web-manual rule.
5549         * top/maint.mk (web-manual): Find gen-announce script in user's
5550         $(build_aux) directory instead of hard-coding 'build-aux'.
5551
5552 2011-10-19  Bruno Haible  <bruno@clisp.org>
5553
5554         posix_openpt: Fix compilation error.
5555         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
5556         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
5557         Mention the openpty module as an alternative.
5558
5559 2011-10-19  Bruno Haible  <bruno@clisp.org>
5560
5561         Support for old NeXTstep 3.3 frexp().
5562         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
5563         execution time of the test to 5 seconds.
5564         Reported by Daniel Richard G. <skunk@iskunk.org>.
5565
5566 2011-10-19  Bruno Haible  <bruno@clisp.org>
5567
5568         Support for old NeXTstep 3.3 sed.
5569         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
5570         part, use /.../, not \|...|. Escape periods in the header file name.
5571         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
5572         Reported by Daniel Richard G. <skunk@iskunk.org>.
5573
5574 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5575
5576         Support for old NeXTstep 3.3 gcc.
5577         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
5578         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
5579         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
5580         * lib/spawn.in.h (_Restrict_arr_): Likewise.
5581         * lib/regex.h (_Restrict_arr_): Likewise.
5582         * lib/regex_internal.h (re_token_t): Likewise.
5583         * lib/regexec.c (check_node_accept_bytes): Likewise.
5584         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
5585
5586 2011-10-18  Eric Blake  <eblake@redhat.com>
5587
5588         posix_openpt: new module
5589         * modules/posix_openpt: New module.
5590         * m4/posix_openpt.m4: New file.
5591         * lib/posix_openpt.c: Likewise.
5592         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5593         (gl_STDLIB_H_DEFAULTS): Set defaults.
5594         * modules/stdlib (Makefile.am): Substitute macros.
5595         * lib/stdlib.in.h (posix_openpt): Declare.
5596         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
5597         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
5598         * modules/posix_openpt-tests: New test module.
5599         * tests/test-posix_openpt.c: New test.
5600
5601 2011-10-15  Bruno Haible  <bruno@clisp.org>
5602
5603         xstrtoll: Fix compilation failure.
5604         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
5605         from lib/strtol.c.
5606         * doc/posix-headers/limits.texi: Mention missing numerical limits on
5607         some platforms.
5608         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5609
5610 2011-10-15  Bruno Haible  <bruno@clisp.org>
5611
5612         vasnprintf: Optimize bit search operation.
5613         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
5614         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
5615         gl_DOUBLE_EXPONENT_LOCATION.
5616         * modules/vasnprintf (Files): Add m4/exponentd.m4.
5617         * modules/unistdio/u8-vasnprintf (Files): Likewise.
5618         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
5619         * modules/unistdio/u16-vasnprintf (Files): Likewise.
5620         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
5621         * modules/unistdio/u32-vasnprintf (Files): Likewise.
5622         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
5623         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
5624         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
5625
5626 2011-10-15  Bruno Haible  <bruno@clisp.org>
5627
5628         vasnprintf: Fix comments.
5629         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
5630
5631 2011-10-14  Bruno Haible  <bruno@clisp.org>
5632
5633         Tests for module 'integer_length_ll'.
5634         * modules/integer_length_ll-tests: New file.
5635         * tests/test-integer_length_ll.c: New file.
5636
5637         New module 'integer_length_ll'.
5638         * lib/integer_length_ll.c: New file.
5639         * modules/integer_length_ll: New file.
5640
5641 2011-10-14  Bruno Haible  <bruno@clisp.org>
5642
5643         Tests for module 'integer_length_l'.
5644         * modules/integer_length_l-tests: New file.
5645         * tests/test-integer_length_l.c: New file.
5646
5647         New module 'integer_length_l'.
5648         * lib/integer_length_l.c: New file.
5649         * modules/integer_length_l: New file.
5650
5651 2011-10-14  Bruno Haible  <bruno@clisp.org>
5652
5653         Tests for module 'integer_length'.
5654         * modules/integer_length-tests: New file.
5655         * tests/test-integer_length.c: New file.
5656
5657         New module 'integer_length'.
5658         * lib/integer_length.h: New file.
5659         * lib/integer_length.c: New file.
5660         * modules/integer_length: New file.
5661
5662 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5663
5664         popen: Fix dependency conditions.
5665         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
5666
5667 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
5668
5669         perror: Fix autoconf test.
5670         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
5671         <stdlib.h> and <string.h>.
5672
5673 2011-10-14  Bruno Haible  <bruno@clisp.org>
5674
5675         ffsl: Optimize on 64-bit platforms.
5676         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
5677         unrolling.
5678
5679 2011-10-13  Bruno Haible  <bruno@clisp.org>
5680
5681         ffsl: Optimize on 32-bit platforms.
5682         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
5683         use ffs() without a loop.
5684
5685         ffsl, ffsll: Optimize for GCC.
5686         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
5687         * lib/ffsl.c (GCC_BUILTIN): New macro.
5688         * lib/ffsll.c (GCC_BUILTIN): Likewise.
5689
5690 2011-10-13  Bruno Haible  <bruno@clisp.org>
5691
5692         ffs, bcopy, memset: Support symbol renaming via config.h.
5693         * lib/ffs.c: Include <config.h>.
5694         * lib/bcopy.c: Likewise.
5695         * lib/memset.c: Likewise.
5696
5697 2011-10-10  Bruno Haible  <bruno@clisp.org>
5698
5699         atanl: Simplify for platforms where 'long double' == 'double'.
5700         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5701         alternative implementation.
5702         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5703         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5704         * modules/atanl (Depends-on): Add atan. Update conditions.
5705
5706 2011-10-10  Bruno Haible  <bruno@clisp.org>
5707
5708         acosl: Simplify for platforms where 'long double' == 'double'.
5709         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5710         alternative implementation.
5711         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5712         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5713         * modules/acosl (Depends-on): Add acos. Update conditions.
5714
5715 2011-10-10  Bruno Haible  <bruno@clisp.org>
5716
5717         asinl: Simplify for platforms where 'long double' == 'double'.
5718         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5719         alternative implementation.
5720         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5721         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5722         * modules/asinl (Depends-on): Add asin. Update conditions.
5723
5724 2011-10-10  Bruno Haible  <bruno@clisp.org>
5725
5726         tanl: Simplify for platforms where 'long double' == 'double'.
5727         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5728         implementation.
5729         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5730         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5731         * modules/tanl (Depends-on): Add tan. Update conditions.
5732         (configure.ac): Don't compile trigl.c if
5733         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5734
5735 2011-10-10  Bruno Haible  <bruno@clisp.org>
5736
5737         cosl: Simplify for platforms where 'long double' == 'double'.
5738         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5739         implementation.
5740         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5741         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5742         * modules/cosl (Depends-on): Add cos. Update conditions.
5743         (configure.ac): Don't compile sincosl.c and trigl.c if
5744         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5745
5746 2011-10-10  Bruno Haible  <bruno@clisp.org>
5747
5748         sinl: Simplify for platforms where 'long double' == 'double'.
5749         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5750         implementation.
5751         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5752         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5753         * modules/sinl (Depends-on): Add sin. Update conditions.
5754         (configure.ac): Don't compile sincosl.c and trigl.c if
5755         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5756
5757 2011-10-10  Bruno Haible  <bruno@clisp.org>
5758
5759         logl: Simplify for platforms where 'long double' == 'double'.
5760         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5761         implementation.
5762         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5763         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5764         * modules/logl (Depends-on): Add log. Update conditions.
5765
5766 2011-10-10  Bruno Haible  <bruno@clisp.org>
5767
5768         expl: Simplify for platforms where 'long double' == 'double'.
5769         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
5770         implementation.
5771         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5772         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5773         * modules/expl (Depends-on): Add exp. Update conditions.
5774
5775 2011-10-10  Bruno Haible  <bruno@clisp.org>
5776
5777         sqrtl: Simplify for platforms where 'long double' == 'double'.
5778         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5779         alternative implementation.
5780         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5781         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5782         * modules/sqrtl (Depends-on): Update conditions.
5783
5784 2011-10-10  Bruno Haible  <bruno@clisp.org>
5785
5786         ldexpl: Simplify for platforms where 'long double' == 'double'.
5787         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5788         alternative implementation.
5789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5790         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5791         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
5792
5793 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
5794
5795         ffsll: set correct witness
5796         * modules/ffsll (configure.ac): Fix typo.
5797
5798 2011-10-10  Bruno Haible  <bruno@clisp.org>
5799
5800         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
5801         * lib/printf-frexpl.c: Include <config.h>.
5802         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5803         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
5804         second time.
5805         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
5806         gl_LONG_DOUBLE_VS_DOUBLE.
5807         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
5808         conditions.
5809
5810 2011-10-10  Bruno Haible  <bruno@clisp.org>
5811
5812         frexpl: Simplify for platforms where 'long double' == 'double'.
5813         * lib/frexpl.c: Include <config.h>.
5814         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5815         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5816         time.
5817         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5818         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5819         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
5820         * modules/frexpl (Depends-on): Add frexp. Update conditions.
5821         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
5822         conditions.
5823
5824 2011-10-10  Jim Meyering  <meyering@redhat.com>
5825
5826         test-renameat: don't leave behind a temporary file
5827         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
5828           ERROR: files left in build directory after distclean:
5829           ./gltests/test-renameat.too
5830           make[1]: *** [distcleancheck] Error 1
5831         Reported by Tom G. Christensen.
5832
5833 2011-10-09  Bruno Haible  <bruno@clisp.org>
5834
5835         rint: Determine RINT_LIBM correctly on AIX 7.
5836         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
5837         directly, not only through a function pointer. Also accept an optional
5838         4th argument with extra code.
5839         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
5840         rintf() call by gcc when optimizing.
5841
5842         mathfunc.m4: Refactor.
5843         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
5844         m4 variable.
5845
5846 2011-10-09  Bruno Haible  <bruno@clisp.org>
5847
5848         rintl: Simplify for platforms where 'long double' == 'double'.
5849         * lib/rintl.c: Include <config.h>.
5850         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5851         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5852         time.
5853         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5854         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5855         * modules/rintl (Depends-on): Add rint. Update conditions.
5856
5857 2011-10-09  Bruno Haible  <bruno@clisp.org>
5858
5859         roundl: Simplify for platforms where 'long double' == 'double'.
5860         * lib/roundl.c: Include <config.h>.
5861         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5862         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5863         time.
5864         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5865         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5866         * modules/roundl (Depends-on): Add round. Update conditions.
5867
5868 2011-10-09  Bruno Haible  <bruno@clisp.org>
5869
5870         truncl: Simplify for platforms where 'long double' == 'double'.
5871         * lib/truncl.c: Include <config.h>.
5872         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5873         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5874         time.
5875         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5876         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5877         * modules/truncl (Depends-on): Add trunc. Update conditions.
5878
5879 2011-10-09  Bruno Haible  <bruno@clisp.org>
5880
5881         ceill: Simplify for platforms where 'long double' == 'double'.
5882         * lib/ceill.c: Include <config.h>.
5883         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5884         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5885         time.
5886         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5887         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5888         * modules/ceill (Depends-on): Add ceil. Update conditions.
5889
5890 2011-10-09  Bruno Haible  <bruno@clisp.org>
5891
5892         floorl: Simplify for platforms where 'long double' == 'double'.
5893         * lib/floorl.c: Include <config.h>.
5894         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
5895         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
5896         time.
5897         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5898         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5899         * modules/floorl (Depends-on): Add floor. Update conditions.
5900
5901 2011-10-09  Bruno Haible  <bruno@clisp.org>
5902
5903         rint: Fix ordering constraints.
5904         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
5905         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5906         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5907
5908 2011-10-09  Bruno Haible  <bruno@clisp.org>
5909
5910         copysignl: Simplify for platforms where 'long double' == 'double'.
5911         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
5912         alternative.
5913         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
5914         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
5915         * modules/copysignl (Depends-on): Add copysign. Update conditions.
5916
5917 2011-10-09  Bruno Haible  <bruno@clisp.org>
5918
5919         Tests for module 'rintl'.
5920         * modules/rintl-tests: New file.
5921         * tests/test-rintl.c: New file.
5922
5923         New module 'rintl'.
5924         * lib/math.in.h (rintl): New declaration.
5925         * lib/rintl.c: New file.
5926         * m4/rintl.m4: New file.
5927         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
5928         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
5929         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
5930         * modules/rintl: New file.
5931         * tests/test-math-c++.cc: Check the declaration of rintl.
5932         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5933         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
5934         * doc/posix-functions/rintl.texi: Mention the new module.
5935
5936 2011-10-09  Bruno Haible  <bruno@clisp.org>
5937
5938         Tests for module 'rintf'.
5939         * modules/rintf-tests: New file.
5940         * tests/test-rintf.c: New file.
5941
5942         New module 'rintf'.
5943         * lib/math.in.h (rintf): New declaration.
5944         * lib/rintf.c: New file.
5945         * m4/rintf.m4: New file.
5946         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
5947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
5948         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
5949         * modules/rintf: New file.
5950         * tests/test-math-c++.cc: Check the declaration of rintf.
5951         * doc/posix-functions/rintf.texi: Mention the new module.
5952
5953 2011-10-09  Bruno Haible  <bruno@clisp.org>
5954
5955         rint: Support for MSVC.
5956         * lib/math.in.h (rint): New declaration.
5957         * lib/rint.c: New file.
5958         * m4/rint.m4: New file.
5959         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
5960         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
5961         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
5962         * modules/rint (Description): Fix.
5963         (Files): Add lib/rint.c, m4/rint.m4.
5964         (Depends-on): Add math.
5965         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
5966         gl_MATH_MODULE_INDICATOR.
5967         * tests/test-math-c++.cc: Check the declaration of rint.
5968         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5969         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
5970         * doc/posix-functions/rint.texi: Mention the replacement provided by
5971         the module.
5972
5973         rint tests: More tests.
5974         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
5975         minus-zero.h, infinity.h, nan.h.
5976         (main): Skip the test if the current rounding mode is not standard. Add
5977         tests for negative numbers, minus zero, infinity, NaN.
5978         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
5979         tests/nan.h.
5980         (Depends-on): Add isnand-nolibm.
5981
5982 2011-10-09  Bruno Haible  <bruno@clisp.org>
5983
5984         Tests for module 'copysignl'.
5985         * modules/copysignl-tests: New file.
5986         * tests/test-copysignl.c: New file.
5987
5988         New module 'copysignl'.
5989         * lib/math.in.h (copysignl): New declaration.
5990         * lib/copysignl.c: New file.
5991         * m4/copysignl.m4: New file.
5992         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
5993         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
5994         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
5995         HAVE_COPYSIGNL.
5996         * modules/copysignl: New file.
5997         * tests/test-math-c++.cc: Check the declaration of copysignl.
5998         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
5999         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6000         * doc/posix-functions/copysignl.texi: Mention the new module.
6001
6002 2011-10-09  Bruno Haible  <bruno@clisp.org>
6003
6004         Tests for module 'copysignf'.
6005         * modules/copysignf-tests: New file.
6006         * tests/test-copysignf.c: New file.
6007
6008         New module 'copysignf'.
6009         * lib/math.in.h (copysignf): New declaration.
6010         * lib/copysignf.c: New file.
6011         * m4/copysignf.m4: New file.
6012         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6014         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6015         HAVE_COPYSIGNF.
6016         * modules/copysignf: New file.
6017         * tests/test-math-c++.cc: Check the declaration of copysignf.
6018         * doc/posix-functions/copysignf.texi: Mention the new module.
6019
6020 2011-10-09  Bruno Haible  <bruno@clisp.org>
6021
6022         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6023         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6024         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6025         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6026         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6027         gl_SIGNAL_H_DEFAULTS.
6028
6029 2011-10-09  Bruno Haible  <bruno@clisp.org>
6030
6031         poll: Make macro safer.
6032         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6033         ac_cv_header_poll_h is not set.
6034
6035 2011-10-09  Bruno Haible  <bruno@clisp.org>
6036
6037         copysign: Provide replacement.
6038         * lib/math.in.h (copysign): New declaration.
6039         * lib/copysign.c: New file.
6040         * m4/copysign.m4: New file.
6041         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6042         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6043         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6044         HAVE_COPYSIGN.
6045         * modules/copysign (Description): Clarify.
6046         (Files): Add lib/copysign.c, m4/copysign.m4.
6047         (Depends-on): Add math, signbit.
6048         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6049         gl_MATH_MODULE_INDICATOR.
6050         * tests/test-math-c++.cc: Check the declaration of copysign.
6051         * doc/posix-functions/copysign.texi: Mention the effects of the module
6052         on Minix and MSVC.
6053
6054 2011-10-09  Bruno Haible  <bruno@clisp.org>
6055
6056         isinf: Ensure macro on AIX 5.1.
6057         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6058         macro.
6059         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6060
6061 2011-10-09  Bruno Haible  <bruno@clisp.org>
6062
6063         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6064         * modules/snprintf-posix-tests (configure.ac): Require
6065         gl_LONG_DOUBLE_VS_DOUBLE.
6066         * modules/sprintf-posix-tests (configure.ac): Likewise.
6067         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6068         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6069         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6070         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6071         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6072         tests on platforms where 'long double' is the same as 'double'.
6073         * tests/test-sprintf-posix.h (test_function): Likewise.
6074         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6075         * tests/test-vasprintf-posix.c (test_function): Likewise.
6076
6077         *printf: Fix for platforms where 'long double' == 'double'.
6078         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6079         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6080         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6081         * modules/fprintf-posix (Files): Likewise.
6082         * modules/obstack-printf-posix (Files): Likewise.
6083         * modules/snprintf-posix (Files): Likewise.
6084         * modules/sprintf-posix (Files): Likewise.
6085         * modules/vasnprintf (Files): Likewise.
6086         * modules/vasnprintf-posix (Files): Likewise.
6087         * modules/vasprintf-posix (Files): Likewise.
6088         * modules/vdprintf-posix (Files): Likewise.
6089         * modules/vfprintf-posix (Files): Likewise.
6090         * modules/vsnprintf-posix (Files): Likewise.
6091         * modules/vsprintf-posix (Files): Likewise.
6092         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6093         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6094         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6095         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6096         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6097         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6098         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6099
6100         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6101         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6102         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6103         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6104         'long double'.
6105         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6106
6107         isinf: Fix for platforms where 'long double' == 'double'.
6108         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6109         Don't blindly assume 80-bit 'long double'.
6110
6111         isfinite: Fix for platforms where 'long double' == 'double'.
6112         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6113         Don't blindly assume 80-bit 'long double'.
6114
6115         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6116         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6117         * modules/isfinite-tests (configure.ac): Require
6118         gl_LONG_DOUBLE_VS_DOUBLE.
6119         * modules/isinf-tests (configure.ac): Likewise.
6120         * modules/isnan-tests (configure.ac): Likewise.
6121         * modules/isnanl-tests (configure.ac): Likewise.
6122         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6123         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6124         tests on platforms where 'long double' is the same as 'double'.
6125         * tests/test-isinf.c (test_isinfl): Likewise.
6126         * tests/test-isnan.c (test_long_double): Likewise.
6127         * tests/test-isnanl.h (main): Likewise.
6128
6129 2011-10-08  Bruno Haible  <bruno@clisp.org>
6130
6131         Tests for module 'tanhf'.
6132         * modules/tanhf-tests: New file.
6133         * tests/test-tanhf.c: New file.
6134
6135         New module 'tanhf'.
6136         * lib/math.in.h (tanhf): New declaration.
6137         * lib/tanhf.c: New file.
6138         * m4/tanhf.m4: New file.
6139         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6141         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6142         * modules/tanhf: New file.
6143         * tests/test-math-c++.cc: Check the declaration of tanhf.
6144         * doc/posix-functions/tanhf.texi: Mention the new module.
6145
6146         tanh: Use a .m4 file.
6147         * m4/tanh.m4: New file.
6148         * modules/tanh (Files): Add it.
6149         (configure.ac): Just invoke gl_FUNC_TANH.
6150
6151 2011-10-08  Bruno Haible  <bruno@clisp.org>
6152
6153         Tests for module 'coshf'.
6154         * modules/coshf-tests: New file.
6155         * tests/test-coshf.c: New file.
6156
6157         New module 'coshf'.
6158         * lib/math.in.h (coshf): New declaration.
6159         * lib/coshf.c: New file.
6160         * m4/coshf.m4: New file.
6161         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6162         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6163         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6164         * modules/coshf: New file.
6165         * tests/test-math-c++.cc: Check the declaration of coshf.
6166         * doc/posix-functions/coshf.texi: Mention the new module.
6167
6168         cosh: Use a .m4 file.
6169         * m4/cosh.m4: New file.
6170         * modules/cosh (Files): Add it.
6171         (configure.ac): Just invoke gl_FUNC_COSH.
6172
6173 2011-10-08  Bruno Haible  <bruno@clisp.org>
6174
6175         Tests for module 'sinhf'.
6176         * modules/sinhf-tests: New file.
6177         * tests/test-sinhf.c: New file.
6178
6179         New module 'sinhf'.
6180         * lib/math.in.h (sinhf): New declaration.
6181         * lib/sinhf.c: New file.
6182         * m4/sinhf.m4: New file.
6183         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6184         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6185         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6186         * modules/sinhf: New file.
6187         * tests/test-math-c++.cc: Check the declaration of sinhf.
6188         * doc/posix-functions/sinhf.texi: Mention the new module.
6189
6190         sinh: Use a .m4 file.
6191         * m4/sinh.m4: New file.
6192         * modules/sinh (Files): Add it.
6193         (configure.ac): Just invoke gl_FUNC_SINH.
6194
6195 2011-10-08  Bruno Haible  <bruno@clisp.org>
6196
6197         Tests for module 'atan2f'.
6198         * modules/atan2f-tests: New file.
6199         * tests/test-atan2f.c: New file.
6200
6201         New module 'atan2f'.
6202         * lib/math.in.h (atan2f): New declaration.
6203         * lib/atan2f.c: New file.
6204         * m4/atan2f.m4: New file.
6205         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6206         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6207         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6208         * modules/atan2f: New file.
6209         * tests/test-math-c++.cc: Check the declaration of atan2f.
6210         * doc/posix-functions/atan2f.texi: Mention the new module.
6211
6212         atan2: Use a .m4 file.
6213         * m4/atan2.m4: New file.
6214         * modules/atan2 (Files): Add it.
6215         (configure.ac): Just invoke gl_FUNC_ATAN2.
6216
6217 2011-10-08  Bruno Haible  <bruno@clisp.org>
6218
6219         Tests for module 'atanf'.
6220         * modules/atanf-tests: New file.
6221         * tests/test-atanf.c: New file.
6222
6223         New module 'atanf'.
6224         * lib/math.in.h (atanf): New declaration.
6225         * lib/atanf.c: New file.
6226         * m4/atanf.m4: New file.
6227         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6228         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6229         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6230         * modules/atanf: New file.
6231         * tests/test-math-c++.cc: Check the declaration of atanf.
6232         * doc/posix-functions/atanf.texi: Mention the new module.
6233
6234         atan: Use a .m4 file.
6235         * m4/atan.m4: New file.
6236         * modules/atan (Files): Add it.
6237         (configure.ac): Just invoke gl_FUNC_ATAN.
6238
6239 2011-10-08  Bruno Haible  <bruno@clisp.org>
6240
6241         Tests for module 'acosf'.
6242         * modules/acosf-tests: New file.
6243         * tests/test-acosf.c: New file.
6244
6245         New module 'acosf'.
6246         * lib/math.in.h (acosf): New declaration.
6247         * lib/acosf.c: New file.
6248         * m4/acosf.m4: New file.
6249         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6251         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6252         * modules/acosf: New file.
6253         * tests/test-math-c++.cc: Check the declaration of acosf.
6254         * doc/posix-functions/acosf.texi: Mention the new module.
6255
6256         acos: Use a .m4 file.
6257         * m4/acos.m4: New file.
6258         * modules/acos (Files): Add it.
6259         (configure.ac): Just invoke gl_FUNC_ACOS.
6260
6261 2011-10-08  Bruno Haible  <bruno@clisp.org>
6262
6263         Tests for module 'asinf'.
6264         * modules/asinf-tests: New file.
6265         * tests/test-asinf.c: New file.
6266
6267         New module 'asinf'.
6268         * lib/math.in.h (asinf): New declaration.
6269         * lib/asinf.c: New file.
6270         * m4/asinf.m4: New file.
6271         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6272         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6273         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6274         * modules/asinf: New file.
6275         * tests/test-math-c++.cc: Check the declaration of asinf.
6276         * doc/posix-functions/asinf.texi: Mention the new module.
6277
6278         asin: Use a .m4 file.
6279         * m4/asin.m4: New file.
6280         * modules/asin (Files): Add it.
6281         (configure.ac): Just invoke gl_FUNC_ASIN.
6282
6283 2011-10-08  Bruno Haible  <bruno@clisp.org>
6284
6285         Tests for module 'tanf'.
6286         * modules/tanf-tests: New file.
6287         * tests/test-tanf.c: New file.
6288
6289         New module 'tanf'.
6290         * lib/math.in.h (tanf): New declaration.
6291         * lib/tanf.c: New file.
6292         * m4/tanf.m4: New file.
6293         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6295         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6296         * modules/tanf: New file.
6297         * tests/test-math-c++.cc: Check the declaration of tanf.
6298         * doc/posix-functions/tanf.texi: Mention the new module.
6299
6300         tan: Use a .m4 file.
6301         * m4/tan.m4: New file.
6302         * modules/tan (Files): Add it.
6303         (configure.ac): Just invoke gl_FUNC_TAN.
6304
6305 2011-10-08  Bruno Haible  <bruno@clisp.org>
6306
6307         Tests for module 'cosf'.
6308         * modules/cosf-tests: New file.
6309         * tests/test-cosf.c: New file.
6310
6311         New module 'cosf'.
6312         * lib/math.in.h (cosf): New declaration.
6313         * lib/cosf.c: New file.
6314         * m4/cosf.m4: New file.
6315         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6316         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6317         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6318         * modules/cosf: New file.
6319         * tests/test-math-c++.cc: Check the declaration of cosf.
6320         * doc/posix-functions/cosf.texi: Mention the new module.
6321
6322         cos: Use a .m4 file.
6323         * m4/cos.m4: New file.
6324         * modules/cos (Files): Add it.
6325         (configure.ac): Just invoke gl_FUNC_COS.
6326
6327 2011-10-08  Bruno Haible  <bruno@clisp.org>
6328
6329         Tests for module 'sinf'.
6330         * modules/sinf-tests: New file.
6331         * tests/test-sinf.c: New file.
6332
6333         New module 'sinf'.
6334         * lib/math.in.h (sinf): New declaration.
6335         * lib/sinf.c: New file.
6336         * m4/sinf.m4: New file.
6337         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6338         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6339         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6340         * modules/sinf: New file.
6341         * tests/test-math-c++.cc: Check the declaration of sinf.
6342         * doc/posix-functions/sinf.texi: Mention the new module.
6343
6344         sin: Use a .m4 file.
6345         * m4/sin.m4: New file.
6346         * modules/sin (Files): Add it.
6347         (configure.ac): Just invoke gl_FUNC_SIN.
6348
6349 2011-10-08  Bruno Haible  <bruno@clisp.org>
6350
6351         Tests for module 'powf'.
6352         * modules/powf-tests: New file.
6353         * tests/test-powf.c: New file.
6354
6355         New module 'powf'.
6356         * lib/math.in.h (powf): New declaration.
6357         * lib/powf.c: New file.
6358         * m4/powf.m4: New file.
6359         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6360         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6361         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6362         * modules/powf: New file.
6363         * tests/test-math-c++.cc: Check the declaration of powf.
6364         * doc/posix-functions/powf.texi: Mention the new module.
6365
6366         pow: Use a .m4 file.
6367         * m4/pow.m4: New file.
6368         * modules/pow (Files): Add it.
6369         (configure.ac): Just invoke gl_FUNC_POW.
6370
6371 2011-10-08  Bruno Haible  <bruno@clisp.org>
6372
6373         Tests for module 'log10f'.
6374         * modules/log10f-tests: New file.
6375         * tests/test-log10f.c: New file.
6376
6377         New module 'log10f'.
6378         * lib/math.in.h (log10f): New declaration.
6379         * lib/log10f.c: New file.
6380         * m4/log10f.m4: New file.
6381         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6382         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6383         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6384         * modules/log10f: New file.
6385         * tests/test-math-c++.cc: Check the declaration of log10f.
6386         * doc/posix-functions/log10f.texi: Mention the new module.
6387
6388         log10: Use a .m4 file.
6389         * m4/log10.m4: New file.
6390         * modules/log10 (Files): Add it.
6391         (configure.ac): Just invoke gl_FUNC_LOG10.
6392
6393 2011-10-08  Bruno Haible  <bruno@clisp.org>
6394
6395         Tests for module 'logf'.
6396         * modules/logf-tests: New file.
6397         * tests/test-logf.c: New file.
6398
6399         New module 'logf'.
6400         * lib/math.in.h (logf): New declaration.
6401         * lib/logf.c: New file.
6402         * m4/logf.m4: New file.
6403         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6404         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6405         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6406         * modules/logf: New file.
6407         * tests/test-math-c++.cc: Check the declaration of logf.
6408         * doc/posix-functions/logf.texi: Mention the new module.
6409
6410         log: Use a .m4 file.
6411         * m4/log.m4: New file.
6412         * modules/log (Files): Add it.
6413         (configure.ac): Just invoke gl_FUNC_LOG.
6414
6415 2011-10-08  Bruno Haible  <bruno@clisp.org>
6416
6417         Tests for module 'expf'.
6418         * modules/expf-tests: New file.
6419         * tests/test-expf.c: New file.
6420
6421         New module 'expf'.
6422         * lib/math.in.h (expf): New declaration.
6423         * lib/expf.c: New file.
6424         * m4/expf.m4: New file.
6425         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6426         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6427         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6428         * modules/expf: New file.
6429         * tests/test-math-c++.cc: Check the declaration of expf.
6430         * doc/posix-functions/expf.texi: Mention the new module.
6431
6432         exp: Use a .m4 file.
6433         * m4/exp.m4: New file.
6434         * modules/exp (Files): Add it.
6435         (configure.ac): Just invoke gl_FUNC_EXP.
6436
6437 2011-10-08  Bruno Haible  <bruno@clisp.org>
6438
6439         Tests for module 'sqrtf'.
6440         * modules/sqrtf-tests: New file.
6441         * tests/test-sqrtf.c: New file.
6442
6443         New module 'sqrtf'.
6444         * lib/math.in.h (sqrtf): New declaration.
6445         * lib/sqrtf.c: New file.
6446         * m4/sqrtf.m4: New file.
6447         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
6448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
6449         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
6450         * modules/sqrtf: New file.
6451         * tests/test-math-c++.cc: Check the declaration of sqrtf.
6452         * doc/posix-functions/sqrtf.texi: Mention the new module.
6453
6454 2011-10-08  Bruno Haible  <bruno@clisp.org>
6455
6456         Tests: Avoid link failures w.r.t. libintl.
6457         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
6458         $(LIBINTL).
6459         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
6460         $(LIBINTL).
6461         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
6462         against $(LIBINTL).
6463         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
6464         $(LIBINTL).
6465         * modules/openat-tests (Makefile.am): Link test-fchmodat against
6466         $(LIBINTL).
6467         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
6468
6469 2011-10-08  Bruno Haible  <bruno@clisp.org>
6470
6471         pow tests: Defeat compiler optimizations.
6472         * tests/test-pow.c (main): Assign arguments to x and y before use.
6473
6474 2011-10-08  Bruno Haible  <bruno@clisp.org>
6475
6476         gnulib-tool: Improve last commit.
6477         * gnulib-tool (func_modules_transitive_closure): Simplify code.
6478         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
6479         ignore dependencies that are not among the modules list.
6480
6481 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
6482
6483         gnulib-tool: don't follow dependencies to avoided modules
6484         This fixes a bug that is related to the previous one.
6485         * gnulib-tool (func_modules_transitive_closure)
6486         (func_emit_autoconf_snippets):
6487         Check whether a dependency is acceptable before using it.
6488         (--extract-dependencies): Report an error if --avoid is also used,
6489         since this combination of options is not yet supported.
6490
6491         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
6492         Problem reported by Peter Dyballa in
6493         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
6494         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
6495         when echoing "$condition".
6496
6497 2011-10-07  Bruno Haible  <bruno@clisp.org>
6498
6499         Fix documentation about math functions on MacOS X.
6500         * doc/posix-functions/exp2.texi: Don't say the function is missing on
6501         MacOS X 10.5.
6502         * doc/posix-functions/fdim.texi: Likewise.
6503         * doc/posix-functions/feclearexcept.texi: Likewise.
6504         * doc/posix-functions/fegetenv.texi: Likewise.
6505         * doc/posix-functions/fegetround.texi: Likewise.
6506         * doc/posix-functions/feholdexcept.texi: Likewise.
6507         * doc/posix-functions/feraiseexcept.texi: Likewise.
6508         * doc/posix-functions/fesetenv.texi: Likewise.
6509         * doc/posix-functions/fesetround.texi: Likewise.
6510         * doc/posix-functions/fetestexcept.texi: Likewise.
6511         * doc/posix-functions/feupdateenv.texi: Likewise.
6512         * doc/posix-functions/fmax.texi: Likewise.
6513         * doc/posix-functions/fmin.texi: Likewise.
6514         * doc/posix-functions/log2.texi: Likewise.
6515         * doc/posix-functions/modff.texi: Likewise.
6516         * doc/posix-functions/nan.texi: Likewise.
6517         * doc/posix-functions/nanf.texi: Likewise.
6518         * doc/posix-functions/nextafterf.texi: Likewise.
6519         * doc/posix-functions/remquo.texi: Likewise.
6520
6521 2011-10-07  Bruno Haible  <bruno@clisp.org>
6522
6523         modff: Drop assumption about library that defines modff.
6524         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
6525         AC_CHECK_FUNCS.
6526         * modules/modff (Files): Add m4/mathfunc.m4.
6527
6528 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
6529
6530         raise tests: Avoid a GCC warning.
6531         * tests/test-raise.c (handler): Use _Noreturn.
6532
6533 2011-10-07  Bruno Haible  <bruno@clisp.org>
6534
6535         Tests for module 'ldexpf'.
6536         * modules/ldexpf-tests: New file.
6537         * tests/test-ldexpf.c: New file.
6538
6539         New module 'ldexpf'.
6540         * lib/math.in.h (ldexpf): New declaration.
6541         * lib/ldexpf.c: New file.
6542         * m4/ldexpf.m4: New file.
6543         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
6544         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
6545         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
6546         * modules/ldexpf: New file.
6547         * tests/test-math-c++.cc: Check the declaration of ldexpf.
6548         * doc/posix-functions/ldexpf.texi: Mention the new module.
6549
6550 2011-10-06  Bruno Haible  <bruno@clisp.org>
6551
6552         frexpf: Work around problems on IRIX and mingw.
6553         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
6554         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
6555         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
6556         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
6557         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
6558         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
6559         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
6560
6561 2011-10-06  Bruno Haible  <bruno@clisp.org>
6562
6563         fabsf: Drop assumption about library that defines fabsf.
6564         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
6565         AC_CHECK_FUNCS.
6566         * modules/fabsf (Files): Add m4/mathfunc.m4.
6567
6568 2011-10-06  Bruno Haible  <bruno@clisp.org>
6569
6570         frexpf: Drop assumption about library that defines frexpf.
6571         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
6572         'int *', 'float *', 'long double *', 'float', 'long double'.
6573         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
6574         AC_CHECK_FUNCS.
6575         * modules/frexpf (Files): Add m4/mathfunc.m4.
6576
6577         Tests for module 'frexpf'.
6578         * modules/frexpf-tests: New file.
6579         * tests/test-frexpf.c: New file.
6580
6581         New module 'frexpf'.
6582         * lib/math.in.h (frexpf): New declaration.
6583         * lib/frexpf.c: New file.
6584         * m4/frexpf.m4: New file.
6585         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
6586         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
6587         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
6588         * modules/frexpf: New file.
6589         * tests/test-math-c++.cc: Check the declaration of frexpf.
6590         * doc/posix-functions/frexpf.texi: Mention the new module.
6591
6592 2011-10-06  Bruno Haible  <bruno@clisp.org>
6593
6594         math: Sort function declarations of math.in.h.
6595         * lib/math.in.h (frexp, logb): Move declarations.
6596
6597 2011-10-05  Bruno Haible  <bruno@clisp.org>
6598
6599         Tests for module 'modff'.
6600         * modules/modff-tests: New file.
6601         * tests/test-modff.c: New file.
6602
6603         New module 'modff'.
6604         * lib/math.in.h (modff): New declaration.
6605         * lib/modff.c: New file.
6606         * m4/modff.m4: New file.
6607         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
6608         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
6609         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
6610         * modules/modff: New file.
6611         * tests/test-math-c++.cc: Check the declaration of modff.
6612         * doc/posix-functions/modff.texi: Mention the new module.
6613
6614         modf tests: Make test sharper.
6615         * tests/test-modf.c (main): Strengthen upper bound.
6616
6617         modf: Use a .m4 file.
6618         * m4/modf.m4: New file.
6619         * modules/modf (Files): Add it.
6620         (configure.ac): Just invoke gl_FUNC_MODF.
6621
6622 2011-10-05  Bruno Haible  <bruno@clisp.org>
6623
6624         Tests for module 'fmodf'.
6625         * modules/fmodf-tests: New file.
6626         * tests/test-fmodf.c: New file.
6627
6628         New module 'fmodf'.
6629         * lib/math.in.h (fmodf): New declaration.
6630         * lib/fmodf.c: New file.
6631         * m4/fmodf.m4: New file.
6632         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
6633         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
6634         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
6635         * modules/fmodf: New file.
6636         * tests/test-math-c++.cc: Check the declaration of fmodf.
6637         * doc/posix-functions/fmodf.texi: Mention the new module.
6638
6639         fmod: Use a .m4 file.
6640         * m4/fmod.m4: New file.
6641         * modules/fmod (Files): Add it.
6642         (configure.ac): Just invoke gl_FUNC_FMOD.
6643
6644 2011-10-05  Bruno Haible  <bruno@clisp.org>
6645
6646         Tests for module 'fabsf'.
6647         * modules/fabsf-tests: New file.
6648         * tests/test-fabsf.c: New file.
6649
6650         New module 'fabsf'.
6651         * lib/math.in.h (fabsf): New declaration.
6652         * lib/fabsf.c: New file.
6653         * m4/fabsf.m4: New file.
6654         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
6655         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
6656         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
6657         * modules/fabsf: New file.
6658         * tests/test-math-c++.cc: Check the declaration of fabsf.
6659         * doc/posix-functions/fabsf.texi: Mention the new module.
6660
6661         fabs: Use a .m4 file.
6662         * m4/fabs.m4: New file.
6663         * modules/fabs (Files): Add it.
6664         (configure.ac): Just invoke gl_FUNC_FABS.
6665
6666 2011-10-05  Jim Meyering  <meyering@redhat.com>
6667
6668         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
6669         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
6670         ls -lL regression introduced in coreutils-8.12, it does so at the
6671         cost of an additional stat call in the common case.  Besides, now
6672         that the kernel change that prompted commit 95f7c57f has been reverted
6673         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
6674         we have no use for commit 95f7c57f, "file-has-acl: use
6675         acl_extended_file_nofollow if available".
6676
6677 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
6678
6679         file-has-acl: revert unintended change in behavior of ls -L
6680         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
6681         derived from...
6682         (file_has_acl): ...code here.  Call it.
6683         This problem was introduced with 2011-07-22 commit 95f7c57f,
6684         "file-has-acl: use acl_extended_file_nofollow if available".
6685         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
6686
6687 2011-10-03  Bruno Haible  <bruno@clisp.org>
6688
6689         poll: Avoid link errors on MSVC.
6690         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
6691         * modules/poll (Depends-on): Add sockets.
6692         (Link): New section.
6693         * NEWS: Mention the change.
6694         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
6695         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
6696         $(LIB_POLL) instead of $(LIBSOCKET).
6697
6698 2011-10-03  Bruno Haible  <bruno@clisp.org>
6699
6700         sys_select tests: Fix link error on MSVC 9.
6701         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
6702         with $(LIB_SELECT) instead of $(LIBSOCKET).
6703
6704 2011-10-03  Bruno Haible  <bruno@clisp.org>
6705
6706         sys_select: Fix compilation error on mingw.
6707         * lib/sys_select.in.h: On native Windows, include <io.h>.
6708
6709 2011-10-03  Bruno Haible  <bruno@clisp.org>
6710
6711         wmemset: Support for MSVC.
6712         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
6713         whether wmemset() exists.
6714
6715 2011-10-03  Bruno Haible  <bruno@clisp.org>
6716
6717         wmemmove: Support for MSVC.
6718         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
6719         whether wmemmove() exists.
6720
6721 2011-10-03  Bruno Haible  <bruno@clisp.org>
6722
6723         wmemcpy: Support for MSVC.
6724         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
6725         whether wmemcpy() exists.
6726
6727 2011-10-03  Bruno Haible  <bruno@clisp.org>
6728
6729         wmemcmp: Support for MSVC.
6730         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
6731         whether wmemcmp() exists.
6732
6733 2011-10-03  Bruno Haible  <bruno@clisp.org>
6734
6735         wmemchr: Support for MSVC.
6736         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
6737         whether wmemchr() exists.
6738
6739 2011-10-03  Bruno Haible  <bruno@clisp.org>
6740
6741         glthread/*, strsignal: Support for MSVC.
6742         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
6743         including <winsock.h> on MSVC 9.
6744         * lib/glthread/lock.h: Likewise.
6745         * lib/glthread/thread.h: Likewise.
6746         * lib/glthread/tls.h: Likewise.
6747         * lib/glthread/yield.h: Likewise.
6748         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
6749         if HAVE_UNISTD_H is false.
6750         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
6751
6752 2011-10-03  Bruno Haible  <bruno@clisp.org>
6753
6754         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
6755         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
6756         Set to 100000.
6757
6758 2011-10-03  Bruno Haible  <bruno@clisp.org>
6759
6760         acl: Fix specification.
6761         * lib/file-has-acl.c (file_has_acl): Fix specification.
6762
6763 2011-10-03  Bruno Haible  <bruno@clisp.org>
6764
6765         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
6766         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
6767         (compute_curr_prefix, shared_library_fullname,
6768         find_shared_library_fullname, get_shared_library_fullname, relocate):
6769         Use it together with PIC && INSTALLDIR.
6770         Reported by <jojelino@gmail.com>
6771         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
6772
6773 2011-10-01  Jim Meyering  <meyering@redhat.com>
6774
6775         maint.mk: adjust a release-related rule not to require use of gzip
6776         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
6777         Instead, check each file in $(DIST_ARCHIVES).  This is better for
6778         projects that build only .tar.xz files.  Also fix an erroneous test.
6779
6780         test-linkat: don't leave behind a temporary file
6781         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
6782         Otherwise, coreutils' "make distcheck" would fail with this:
6783           Only in /c/cu/tests/torture/coreutils/test/\
6784             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
6785           make[2]: *** [my-distcheck] Error 1
6786
6787         float, math: add omitted file
6788         * lib/itold.c: Add file, required for yesterday's float change.
6789
6790 2011-10-01  Bruno Haible  <bruno@clisp.org>
6791
6792         isinf: Fix for OpenBSD/x86.
6793         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
6794         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
6795         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
6796
6797 2011-10-01  Bruno Haible  <bruno@clisp.org>
6798
6799         isfinite: Fix syntax error in configure test.
6800         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
6801
6802         isfinite: Fix typo.
6803         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
6804         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
6805
6806 2011-10-01  Bruno Haible  <bruno@clisp.org>
6807
6808         nonblocking tests: Fix test failure on Linux/IA-64.
6809         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
6810         Set to 270000.
6811
6812 2011-10-01  Bruno Haible  <bruno@clisp.org>
6813
6814         mkfifoat tests: Fix a test failure on mingw.
6815         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
6816         with error ENOSYS.
6817
6818 2011-09-30  Bruno Haible  <bruno@clisp.org>
6819
6820         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
6821         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
6822         'long double'. Set REPLACE_ITOLD.
6823         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
6824         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
6825         * lib/itold.c: New file.
6826         * modules/float (Files): Add lib/itold.c.
6827         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
6828         (Makefile.am): Substitute REPLACE_ITOLD.
6829         * modules/math (Depends-on): Add float.
6830         (Makefile.am): Substitute REPLACE_ITOLD.
6831         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
6832         * doc/posix-headers/math.texi: Likewise.
6833         * doc/posix-functions/logl.texi: Likewise.
6834
6835 2011-09-30  Bruno Haible  <bruno@clisp.org>
6836
6837         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
6838         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
6839         Set to 140000.
6840
6841 2011-09-30  Bruno Haible  <bruno@clisp.org>
6842
6843         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
6844         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
6845         invocation, say "right after AC_PROG_CC_STDC", not "right after
6846         AC_PROG_CC".
6847         Reported by Gary V. Vaughan <gary@gnu.org>.
6848
6849 2011-09-30  Bruno Haible  <bruno@clisp.org>
6850
6851         Centralize C99 requirement.
6852         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
6853         * modules/stdarg (configure.ac-early): Invoke it instead of
6854         AC_PROG_CC_STDC.
6855         Reported by Gary V. Vaughan and Paul Eggert.
6856
6857 2011-09-29  Bruno Haible  <bruno@clisp.org>
6858
6859         float: Fix LDBL_MAX value on Linux/PowerPC.
6860         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
6861         on Linux/PowerPC.
6862         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
6863         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
6864         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
6865         platform.
6866         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
6867
6868 2011-09-29  Bruno Haible  <bruno@clisp.org>
6869
6870         doc: Improve doc about gl_EARLY.
6871         * doc/gnulib-tool.texi (Initial import): Mention where to place an
6872         AC_PROG_CC_STDC invocation.
6873         Reported by Gary V. Vaughan <gary@gnu.org>.
6874
6875 2011-09-28  Bruno Haible  <bruno@clisp.org>
6876
6877         fgetc, fputc, fread, fwrite tests: Fix link error.
6878         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
6879         on non-MSVC platforms.
6880         * tests/test-fputc.c (main): Likewise.
6881         * tests/test-fread.c (main): Likewise.
6882         * tests/test-fwrite.c (main): Likewise.
6883         Reported by Jim Meyering.
6884
6885 2011-09-27  Bruno Haible  <bruno@clisp.org>
6886
6887         fputc, fwrite tests: Avoid test failure on MSVC.
6888         * tests/test-fgetc.c: Include msvc-inval.h.
6889         (main): Invoke gl_msvc_inval_ensure_handler.
6890         * tests/test-fputc.c: Include msvc-inval.h.
6891         (main): Invoke gl_msvc_inval_ensure_handler.
6892         * tests/test-fread.c: Include msvc-inval.h.
6893         (main): Invoke gl_msvc_inval_ensure_handler.
6894         * tests/test-fwrite.c: Include msvc-inval.h.
6895         (main): Invoke gl_msvc_inval_ensure_handler.
6896         * modules/fgetc-tests (Depends-on): Add msvc-inval.
6897         * modules/fputc-tests (Depends-on): Likewise.
6898         * modules/fread-tests (Depends-on): Likewise.
6899         * modules/fwrite-tests (Depends-on): Likewise.
6900
6901 2011-09-27  Bruno Haible  <bruno@clisp.org>
6902
6903         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
6904         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
6905         (raise): Remove older, duplicated declaration.
6906         (_gl_raise_SIGPIPE): New declaration.
6907         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
6908         (rpl_raise): Remove function.
6909         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
6910         a gnulib-defined SIGPIPE here.
6911         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
6912         'sigprocmask' has detected missing signal-blocking and the module
6913         'sigpipe' is enabled.
6914         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
6915
6916 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
6917
6918         base64-tests: avoid memory leak
6919         * tests/test-base64.c (main): Plug memory leak.
6920
6921         base32: new module
6922         * modules/base32: New module.
6923         * lib/base32.c: New file.
6924         * lib/base32.h: Likewise.
6925         * m4/base32.m4: Likewise.
6926         * modules/base32-tests: New test.
6927         * tests/test-base32.c: Likewise.
6928         * MODULES.html.sh (Misc): Mention it.
6929
6930 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
6931
6932         gnulib: use more-standard license notice wording
6933         * gnulib-tool (func_emit_copyright_notice): When emitting a
6934         license notice into a file, use the standard wording as suggested
6935         by the current information for GNU maintainers, except say "file"
6936         rather than "program".  The new wording gives a license version
6937         number, which addresses an issue raised by Glenn Morris in
6938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
6939         * m4/onceonly.m4: Use that same wording here, too.
6940
6941         dup2: minor simplification
6942         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
6943         as lib/dup2.c no longer uses 'inline'.
6944
6945 2011-09-25  Bruno Haible  <bruno@clisp.org>
6946
6947         strings: Fix compilation error on MSVC.
6948         * lib/strings.in.h: Include <stddef.h> for size_t.
6949
6950 2011-09-25  Bruno Haible  <bruno@clisp.org>
6951
6952         fflush et al.: Document limitation on MSVC.
6953         * doc/posix-functions/fflush.texi: Document possible crash in handling
6954         mode other than DEFAULT_HANDLING.
6955         * doc/posix-functions/fgetc.texi: Likewise.
6956         * doc/posix-functions/fputc.texi: Likewise.
6957         * doc/posix-functions/fread.texi: Likewise.
6958         * doc/posix-functions/fwrite.texi: Likewise.
6959
6960 2011-09-25  Bruno Haible  <bruno@clisp.org>
6961
6962         msvc-inval: Allow three invalid parameter handling modes.
6963         * lib/msvc-inval.h: Don't include <stdlib.h> here.
6964         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
6965         macros.
6966         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
6967         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
6968         SANE_LIBRARY_HANDLING as a no-op.
6969         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
6970         <stdlib.h>.
6971         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
6972
6973 2011-09-25  Bruno Haible  <bruno@clisp.org>
6974
6975         msvc-inval: Make handler multithread-safe.
6976         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
6977         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
6978         declarations.
6979         (gl_msvc_inval_current): New declaration.
6980         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6981         Operate on the structure returned by gl_msvc_inval_current().
6982         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
6983         Remove varaiables.
6984         (tls_index, tls_initialized): New variables.
6985         (not_per_thread): New variable.
6986         (gl_msvc_inval_current): New function.
6987         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
6988         returned by gl_msvc_inval_current().
6989
6990 2011-09-25  Bruno Haible  <bruno@clisp.org>
6991
6992         msvc-inval: Install handler globally.
6993         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
6994         !_MSC_VER.
6995         (gl_msvc_invalid_parameter_handler): Remove declaration.
6996         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
6997         declarations.
6998         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
6999         Install the handler globally, don't uninstall it.
7000         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7001         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7002         currently valid, call RaiseException instead.
7003         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7004         for !_MSC_VER.
7005
7006 2011-09-25  Bruno Haible  <bruno@clisp.org>
7007
7008         strerror_r-posix: Fix for MSVC 9.
7009         * lib/strerror_r.c (local_snprintf): New function.
7010         (snprintf): Define to local_snprintf, not to _snprintf.
7011
7012 2011-09-25  Bruno Haible  <bruno@clisp.org>
7013
7014         ftruncate: Support for MSVC 9.
7015         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7016         (chsize_nothrow): New function.
7017         (chsize): Redefine as a macro.
7018         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7019         * modules/ftruncate (Depends-on): Add msvc-inval.
7020
7021 2011-09-25  Bruno Haible  <bruno@clisp.org>
7022
7023         New module 'fstat'.
7024         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7025         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7026         * lib/fchdir.c (rpl_fstat): Remove function.
7027         * m4/fstat.m4: New file.
7028         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7029         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7030         declared.
7031         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7032         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7033         * modules/fstat: New file.
7034         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7035         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7036         is set.
7037         * doc/posix-functions/fstat.texi: Mention the new module and the
7038         problem on MSVC.
7039         * NEWS: Mention the change.
7040         * modules/acl (Depends-on): Add fstat.
7041         * modules/chdir-safer (Depends-on): Likewise.
7042         * modules/chown (Depends-on): Likewise.
7043         * modules/copy-file (Depends-on): Likewise.
7044         * modules/fchdir (Depends-on): Likewise.
7045         * modules/fdopendir (Depends-on): Likewise.
7046         * modules/fopen (Depends-on): Likewise.
7047         * modules/fts (Depends-on): Likewise.
7048         * modules/getcwd (Depends-on): Likewise.
7049         * modules/isapipe (Depends-on): Likewise.
7050         * modules/linkat (Depends-on): Likewise.
7051         * modules/lseek (Depends-on): Likewise.
7052         * modules/mkdir-p (Depends-on): Likewise.
7053         * modules/open (Depends-on): Likewise.
7054         * modules/openat (Depends-on): Likewise.
7055         * modules/read-file (Depends-on): Likewise.
7056         * modules/renameat (Depends-on): Likewise.
7057         * modules/utimens (Depends-on): Likewise.
7058
7059 2011-09-25  Bruno Haible  <bruno@clisp.org>
7060
7061         linkat: Fix compilation on MSVC 9.
7062         * lib/linkat.c: Don't include <stdint.h>.
7063
7064 2011-09-25  Bruno Haible  <bruno@clisp.org>
7065
7066         fclose: Support for MSVC 9.
7067         * lib/fclose.c: Include msvc-inval.h.
7068         (fclose_nothrow): New function.
7069         (rpl_fclose): Use it.
7070         * modules/fclose (Depends-on): Add msvc-inval.
7071         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7072
7073 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7074
7075         dup2: minor simplifications
7076         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7077         that it's a performance win.
7078         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7079         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7080
7081 2011-09-24  Jim Meyering  <meyering@redhat.com>
7082
7083         test-futimens: avoid a warning from gcc -Wshadow
7084         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7085         to avoid a shadowing warning.
7086
7087 2011-09-24  Bruno Haible  <bruno@clisp.org>
7088
7089         fdopen: Support for MSVC 9.
7090         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7091         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7092         * lib/fdopen.c: Include msvc-inval.h.
7093         (fdopen_nothrow): New function.
7094         (rpl_fdopen): Use it.
7095         * modules/fdopen (Depends-on): Add msvc-inval.
7096         * modules/fclose-tests (Depends-on): Add fdopen.
7097         * modules/fflush-tests (Depends-on): Likewise.
7098         * modules/fgetc-tests (Depends-on): Likewise.
7099         * modules/fputc-tests (Depends-on): Likewise.
7100         * modules/fread-tests (Depends-on): Likewise.
7101         * modules/freopen-tests (Depends-on): Likewise.
7102         * modules/fseeko-tests (Depends-on): Likewise.
7103         * modules/ftello-tests (Depends-on): Likewise.
7104         * modules/fwrite-tests  (Depends-on): Likewise.
7105         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7106
7107 2011-09-24  Bruno Haible  <bruno@clisp.org>
7108
7109         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7110         * modules/fgetc-tests (Depends-on): Add unistd.
7111         * modules/fputc-tests (Depends-on): Likewise.
7112         * modules/fread-tests (Depends-on): Likewise.
7113         * modules/fwrite-tests (Depends-on): Likewise.
7114
7115 2011-09-24  Bruno Haible  <bruno@clisp.org>
7116
7117         dup: Simplify autoconf test.
7118         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7119         on gl_MSVC_INVAL's result.
7120
7121 2011-09-24  Bruno Haible  <bruno@clisp.org>
7122
7123         Tests for function fwrite().
7124         * modules/fwrite-tests: New file.
7125         * tests/test-fwrite.c: New file.
7126         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7127
7128         Tests for function fread().
7129         * modules/fread-tests: New file.
7130         * tests/test-fread.c: New file.
7131         * modules/stdio-tests (Depends-on): Add fread-tests.
7132
7133         Activate fputc tests.
7134         * modules/stdio-tests (Depends-on): Add fputc-tests.
7135
7136         Enhance fgetc, fputc tests.
7137         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7138         * tests/test-fputc.c (main): Likewise.
7139
7140 2011-09-24  Bruno Haible  <bruno@clisp.org>
7141
7142         write: Support for MSVC 9.
7143         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7144         is not 1.
7145         * lib/write.c (write_nothrow): New function.
7146         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7147         not 1. Use write_nothrow.
7148         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7149         invalid parameter handler.
7150         (gl_PREREQ_WRITE): New macro.
7151         * modules/write (Depends-on): Add msvc-inval.
7152         (configure.ac): Invoke gl_PREREQ_WRITE.
7153         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7154
7155 2011-09-24  Bruno Haible  <bruno@clisp.org>
7156
7157         read: Fix last commit.
7158         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7159
7160 2011-09-24  Bruno Haible  <bruno@clisp.org>
7161
7162         dup2: Fix last commit.
7163         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7164         (rpl_dup2): Disable fcntl workaround on native Windows.
7165
7166         sigprocmask: Make code safer.
7167         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7168         section that changes macro definitions for this compilation unit.
7169
7170 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7171
7172         dup2: clarify by coalescing Windows-specific material
7173         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7174         "msvc-nothrow.h"' to the Windows-specific section, so that the
7175         Emacs source need not contain these include files.
7176         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7177         Windows-specific fixes into this function rather than just the
7178         nothrow fix, as this shortens and clarifies the code.  Always
7179         define as a function, as that's a bit cleaner than having it be
7180         sometimes a function and sometimes a macro.
7181         (rpl_dup2): Move the Windows-specific stuff out of here and into
7182         ms_windows_dup2.  Don't protect the Haiku-related fix with
7183         "#if !defined __linux__", as the same code also works around
7184         a Linux kernel bug, and it doesn't add any system calls on any
7185         platform.  Add comment about FreeBSD 6.1.
7186
7187         sigprocmask: move #include directive
7188         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7189         Windows-specific section, so that the Emacs source need not
7190         contain msvc-inval.h.
7191
7192 2011-09-23  Bruno Haible  <bruno@clisp.org>
7193
7194         read: Support for MSVC 9.
7195         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7196         is not 1.
7197         * lib/read.c (read_nothrow): New function.
7198         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7199         read_nothrow.
7200         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7201         invalid parameter handler.
7202         (gl_PREREQ_READ): New macro.
7203         * modules/read (Depends-on): Add msvc-inval.
7204         (configure.ac): Invoke gl_PREREQ_READ.
7205         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7206
7207 2011-09-23  Bruno Haible  <bruno@clisp.org>
7208
7209         close: Support for MSVC 9.
7210         * lib/close.c: Include <errno.h>, msvc-inval.h.
7211         (close_nothrow): New function.
7212         (rpl_close): Use it.
7213         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7214         invalid parameter handler.
7215         * modules/close (Depends-on): Add msvc-inval.
7216         * modules/dup2-tests (Depends-on): Add close.
7217         * modules/dup3-tests (Depends-on): Likewise.
7218         * modules/fcntl-tests (Depends-on): Likewise.
7219         * modules/spawn-pipe-tests (Depends-on): Likewise.
7220         * modules/unistd-safer-tests (Depends-on): Likewise.
7221         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7222
7223 2011-09-23  Bruno Haible  <bruno@clisp.org>
7224
7225         New module 'dup'.
7226         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7227         Allow replacement.
7228         * lib/dup.c: New file.
7229         * lib/fchdir.c (rpl_dup): Remove function.
7230         * m4/dup.m4: New file.
7231         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7232         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7233         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7234         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7235         * modules/dup: New file.
7236         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7237         'dup' module is in use.
7238         * modules/fdopendir (Depends-on): Add dup.
7239         * modules/fdutimensat-tests (Depends-on): Likewise.
7240         * modules/fts (Depends-on): Likewise.
7241         * modules/futimens-tests (Depends-on): Likewise.
7242         * modules/posix_spawnp-tests (Depends-on): Likewise.
7243         * modules/unistd-safer-tests (Depends-on): Likewise.
7244         * modules/utimens-tests (Depends-on): Likewise.
7245         * doc/posix-functions/dup.texi: Mention the new module and the problem
7246         on MSVC.
7247
7248 2011-09-23  Bruno Haible  <bruno@clisp.org>
7249
7250         getdtablesize: Support for MSVC 9.
7251         * lib/getdtablesize.c: Include msvc-inval.h.
7252         (_setmaxstdio_nothrow): New function.
7253         (_setmaxstdio): Redefine it.
7254         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7255         * modules/getdtablesize (Depends-on): Add msvc-inval.
7256         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7257
7258 2011-09-23  Bruno Haible  <bruno@clisp.org>
7259
7260         signal-h: Rename from signal.
7261         * modules/signal-h: Renamed from modules/signal.
7262         * modules/pthread_sigmask (Depends-on): Update.
7263         * modules/raise (Depends-on): Likewise.
7264         * modules/sigaction (Depends-on): Likewise.
7265         * modules/sigpipe (Depends-on): Likewise.
7266         * modules/sigprocmask (Depends-on): Likewise.
7267         * modules/sys_select (Depends-on): Likewise.
7268         * modules/signal-h-tests: Renamed from modules/signal-tests.
7269         (Files, Depends-on, Makefile.am): Update.
7270         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7271         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7272         (Files, Makefile.am): Update.
7273         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7274         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7275         * modules/signal: New placeholder file.
7276         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7277         * doc/posix-headers/signal.texi: Update.
7278         * NEWS: Mention the change.
7279
7280 2011-09-23  Bruno Haible  <bruno@clisp.org>
7281
7282         sigprocmask: Avoid crashes through signal() on MSVC 9.
7283         * lib/sigprocmask.c: Include msvc-inval.h.
7284         (signal_nothrow): New function.
7285         (signal): Redefine it.
7286         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7287         * modules/sigprocmask (Depends-on): Add msvc-inval.
7288         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7289
7290 2011-09-23  Bruno Haible  <bruno@clisp.org>
7291
7292         Tests for module 'raise'.
7293         * modules/raise-tests: New file.
7294         * tests/test-raise.c: New file.
7295
7296         raise: Support for MSVC.
7297         * lib/signal.in.h (raise): New declaration.
7298         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7299         for native Windows platforms.
7300         * m4/raise.m4: New file.
7301         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7302         HAVE_RAISE, REPLACE_RAISE.
7303         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7304         REPLACE_RAISE.
7305         * modules/raise (Status, Notice): Remove fields.
7306         (Files): Add m4/raise.m4.
7307         (Depends-on): Add signal, msvc-inval.
7308         (configure.ac): Use the common idioms.
7309         (Maintainer): Add me.
7310         * tests/test-signal-c++.cc: Check the signature of raise.
7311         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7312
7313 2011-09-23  Bruno Haible  <bruno@clisp.org>
7314
7315         pipe2: Fix compilation on pre-C99 compilers.
7316         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7317
7318 2011-09-23  Bruno Haible  <bruno@clisp.org>
7319
7320         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7321         * lib/msvc-nothrow.h: New file.
7322         * lib/msvc-nothrow.c: New file.
7323         * m4/msvc-nothrow.m4: New file.
7324         * modules/msvc-nothrow: New file.
7325         * lib/dup2.c: Include msvc-nothrow.h.
7326         (rpl_dup2): No need to protect _get_osfhandle call here.
7327         * lib/accept4.c: Include msvc-nothrow.h.
7328         * lib/error.c: Likewise.
7329         * lib/fcntl.c: Likewise.
7330         * lib/lseek.c: Likewise.
7331         * lib/nonblocking.c: Likewise.
7332         * lib/poll.c: Likewise.
7333         * lib/read.c: Likewise.
7334         * lib/select.c: Likewise.
7335         * lib/sockets.h: Likewise.
7336         * lib/sockets.c: Likewise.
7337         * lib/stdio-read.c: Likewise.
7338         * lib/stdio-write.c: Likewise.
7339         * lib/write.c: Likewise.
7340         * lib/w32sock.h: Likewise.
7341         * lib/w32spawn.h: Likewise.
7342         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7343         * lib/fsync.c: Likewise.
7344         * lib/isapipe.c: Likewise.
7345         * modules/dup2 (Depends-on): Add msvc-nothrow.
7346         * modules/accept4 (Depends-on): Likewise.
7347         * modules/error (Depends-on): Likewise.
7348         * modules/fcntl (Depends-on): Likewise.
7349         * modules/lseek (Depends-on): Likewise.
7350         * modules/nonblocking (Depends-on): Likewise.
7351         * modules/poll (Depends-on): Likewise.
7352         * modules/read (Depends-on): Likewise.
7353         * modules/select (Depends-on): Likewise.
7354         * modules/sockets (Depends-on): Likewise.
7355         * modules/sigpipe (Depends-on): Likewise.
7356         * modules/write (Depends-on): Likewise.
7357         * modules/accept (Depends-on): Likewise.
7358         * modules/bind (Depends-on): Likewise.
7359         * modules/connect (Depends-on): Likewise.
7360         * modules/gethostname (Depends-on): Likewise.
7361         * modules/getpeername (Depends-on): Likewise.
7362         * modules/getsockname (Depends-on): Likewise.
7363         * modules/getsockopt (Depends-on): Likewise.
7364         * modules/ioctl (Depends-on): Likewise.
7365         * modules/listen (Depends-on): Likewise.
7366         * modules/recv (Depends-on): Likewise.
7367         * modules/recvfrom (Depends-on): Likewise.
7368         * modules/send (Depends-on): Likewise.
7369         * modules/sendto (Depends-on): Likewise.
7370         * modules/setsockopt (Depends-on): Likewise.
7371         * modules/shutdown (Depends-on): Likewise.
7372         * modules/socket (Depends-on): Likewise.
7373         * modules/execute (Depends-on): Likewise.
7374         * modules/spawn-pipe (Depends-on): Likewise.
7375         * modules/flock (Depends-on): Likewise.
7376         * modules/fsync (Depends-on): Likewise.
7377         * modules/isapipe (Depends-on): Likewise.
7378         * tests/test-cloexec.c: Include msvc-nothrow.h.
7379         * tests/test-dup-safer.c: Likewise.
7380         * tests/test-dup2.c: Likewise.
7381         * tests/test-dup3.c: Likewise.
7382         * tests/test-fcntl.c: Likewise.
7383         * tests/test-pipe.c: Likewise.
7384         * tests/test-pipe2.c: Likewise.
7385         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7386         * modules/unistd-safer-tests (Depends-on): Likewise.
7387         * modules/dup2-tests (Depends-on): Likewise.
7388         * modules/dup3-tests (Depends-on): Likewise.
7389         * modules/fcntl-tests (Depends-on): Likewise.
7390         * modules/pipe-posix-tests (Depends-on): Likewise.
7391         * modules/pipe2-tests (Depends-on): Likewise.
7392
7393 2011-09-23  Bruno Haible  <bruno@clisp.org>
7394
7395         dup2: Make code more maintainable.
7396         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7397         (rpl_dup2): Use it.
7398         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7399         * modules/dup2 (configure.ac): Invoke it.
7400         Reported by Paul Eggert.
7401
7402 2011-09-23  Bruno Haible  <bruno@clisp.org>
7403
7404         msvc-inval: Fix compilation error.
7405         * lib/msvc-inval.h: Include <excpt.h>.
7406
7407 2011-09-23  Bruno Haible  <bruno@clisp.org>
7408
7409         mkdir: Tweak for MSVC 9.
7410         * lib/sys_stat.in.h: Update comments.
7411         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7412
7413         Tests for module 'chdir'.
7414         * modules/chdir-tests: New file.
7415         * tests/test-chdir.c: New file.
7416
7417         New module 'chdir'.
7418         * modules/chdir: New file.
7419         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7420         (chdir): New declaration.
7421         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7422         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7423         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7424         * tests/test-unistd-c++.cc: Check signature of chdir.
7425         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7426         * modules/chdir-long (Depends-on): Add chdir.
7427         * modules/fchdir (Depends-on): Likewise.
7428         * modules/rename (Depends-on): Likewise.
7429         * modules/savewd (Depends-on): Likewise.
7430
7431         rmdir: Support for mingw, MSVC 9.
7432         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7433         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7434
7435         getcwd: Tweak for MSVC 9.
7436         * lib/unistd.in.h: Update comments.
7437         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
7438
7439 2011-09-22  Bruno Haible  <bruno@clisp.org>
7440
7441         strerror_r-posix: Avoid a link error on MSVC.
7442         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
7443         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
7444
7445 2011-09-22  Bruno Haible  <bruno@clisp.org>
7446
7447         select: Avoid link errors on MSVC.
7448         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
7449         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
7450         * modules/pselect (Link): Likewise.
7451         * NEWS: Mention the change.
7452         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
7453         test-select-stdin against $(LIB_SELECT).
7454         * modules/pselect-tests (Makefile.am): Link test-pselect against
7455         $(LIB_SELECT).
7456
7457 2011-09-22  Bruno Haible  <bruno@clisp.org>
7458
7459         select: Avoid compilation error on MSVC.
7460         * lib/select.c: Don't include <stdbool.h>.
7461
7462 2011-09-21  Bruno Haible  <bruno@clisp.org>
7463
7464         Consolidate all uses of PATH_MAX in *.m4 files.
7465         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
7466         macros.
7467         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
7468         and gl_PATHMAX_SNIPPET.
7469         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
7470         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
7471         * modules/chdir-long (Files): Add m4/pathmax.m4.
7472         * modules/getcwd (Files): Likewise.
7473
7474 2011-09-21  Bruno Haible  <bruno@clisp.org>
7475
7476         ftruncate: Un-deprecate, concentrate on Win32 support.
7477         * modules/ftruncate (Status, Notice): Remove sections.
7478         (Depends-on): Add largefile.
7479         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
7480         non-mingw platforms.
7481         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
7482         include <io.h>.
7483         * modules/perror-tests (Depends-on): Add ftruncate.
7484         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
7485         'ftruncate' module.
7486
7487 2011-09-21  Bruno Haible  <bruno@clisp.org>
7488
7489         Add dependencies to new dirent related modules.
7490         * modules/opendir (Depends-on): Add closedir.
7491         * modules/getcwd (Depends-on): Add opendir, closedir.
7492         * modules/dirent-safer-tests (Depends-on): Likewise.
7493         * modules/fdopendir-tests (Depends-on): Likewise.
7494         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
7495         * modules/renameat-tests (Depends-on): Likewise.
7496
7497 2011-09-21  Bruno Haible  <bruno@clisp.org>
7498
7499         opendir: Avoid compilation error on mingw.
7500         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
7501         * modules/opendir (Depends-on): Add unistd.
7502
7503 2011-09-21  Bruno Haible  <bruno@clisp.org>
7504
7505         ftruncate tests: Avoid a test failure on mingw.
7506         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
7507
7508 2011-09-21  Bruno Haible  <bruno@clisp.org>
7509
7510         select tests: Avoid test failures on OSF/1 5.1 and mingw.
7511         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
7512         native Windows.
7513
7514 2011-09-21  Bruno Haible  <bruno@clisp.org>
7515
7516         New module 'fdopen'.
7517         * lib/stdio.in.h (fdopen): New declaration.
7518         * lib/fdopen.c: New file.
7519         * m4/fdopen.m4: New file.
7520         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
7521         REPLACE_FDOPEN.
7522         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
7523         REPLACE_FDOPEN.
7524         * modules/fdopen: New file.
7525         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
7526         * tests/test-stdio-c++.cc: Check signature of fdopen.
7527         * doc/posix-functions/fdopen.texi: Mention the new module.
7528
7529 2011-09-21  Bruno Haible  <bruno@clisp.org>
7530
7531         unlockpt tests: Avoid test failure on NetBSD 5.1.
7532         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
7533         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
7534
7535 2011-09-21  Bruno Haible  <bruno@clisp.org>
7536
7537         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
7538         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
7539         * tests/test-getlogin_r.c (main): Likewise.
7540
7541 2011-09-20  Bruno Haible  <bruno@clisp.org>
7542
7543         time tests: Don't require pid_t.
7544         * doc/posix-headers/time.texi: Revert last change.
7545         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
7546         * tests/test-time.c: Comment out the check for pid_t.
7547
7548 2011-09-20  Bruno Haible  <bruno@clisp.org>
7549
7550         fsync tests: Avoid a test failure on mingw.
7551         * tests/test-fsync.c (main): Allow a failure with EIO.
7552
7553 2011-09-20  Bruno Haible  <bruno@clisp.org>
7554
7555         euidaccess: Update comments.
7556         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
7557
7558 2011-09-20  Bruno Haible  <bruno@clisp.org>
7559
7560         Ensure EBADF returns for socket functions on mingw.
7561         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
7562         descriptor is invalid.
7563         * lib/bind.c (rpl_bind): Likewise.
7564         * lib/connect.c (rpl_connect): Likewise.
7565         * lib/getpeername.c (rpl_getpeername): Likewise.
7566         * lib/getsockname.c (rpl_getsockname): Likewise.
7567         * lib/getsockopt.c (rpl_getsockopt): Likewise.
7568         * lib/listen.c (rpl_listen): Likewise.
7569         * lib/recv.c (rpl_recv): Likewise.
7570         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7571         * lib/send.c (rpl_send): Likewise.
7572         * lib/sendto.c (rpl_sendto): Likewise.
7573         * lib/setsockopt.c (rpl_setsockopt): Likewise.
7574         * lib/shutdown.c (rpl_shutdown): Likewise.
7575
7576 2011-09-20  Bruno Haible  <bruno@clisp.org>
7577
7578         select tests: EBADF tests.
7579         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
7580         test_bad_fd): New functions.
7581         (test_function): Invoke also test_bad_fd.
7582
7583 2011-09-20  Bruno Haible  <bruno@clisp.org>
7584
7585         Tests for module 'posix_spawn_file_actions_addopen.
7586         * modules/posix_spawn_file_actions_addopen-tests: New file.
7587         * tests/test-posix_spawn_file_actions_addopen.c: New file.
7588
7589         Tests for module 'posix_spawn_file_actions_adddup2'.
7590         * modules/posix_spawn_file_actions_adddup2-tests: New file.
7591         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
7592
7593         Tests for module 'posix_spawn_file_actions_addclose'.
7594         * modules/posix_spawn_file_actions_addclose-tests: New file.
7595         * tests/test-posix_spawn_file_actions_addclose.c: New file.
7596
7597 2011-09-20  Bruno Haible  <bruno@clisp.org>
7598
7599         Tests for module 'unlockpt'.
7600         * modules/unlockpt-tests: New file.
7601         * tests/test-unlockpt.c: New file.
7602         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
7603
7604         Tests for module 'grantpt'.
7605         * modules/grantpt-tests: New file.
7606         * tests/test-grantpt.c: New file.
7607         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
7608
7609 2011-09-20  Bruno Haible  <bruno@clisp.org>
7610
7611         freopen tests: EBADF tests.
7612         * tests/test-freopen.c: Include errno.h, unistd.h.
7613         (main): Add tests for EBADF, commented out for the moment.
7614
7615         fclose tests: EBADF tests.
7616         * tests/test-fclose.c (main): Add tests for EBADF.
7617
7618         fflush tests: EBADF tests.
7619         * tests/test-fflush.c: Include errno.h, macros.h.
7620         (main): Add tests for EBADF.
7621
7622         ftello tests: EBADF tests.
7623         * tests/test-ftello4.sh: New file.
7624         * tests/test-ftello4.c: New file.
7625         * modules/ftello-tests (Files): Add them.
7626         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
7627
7628         fseeko tests: EBADF tests.
7629         * tests/test-fseeko4.sh: New file.
7630         * tests/test-fseeko4.c: New file.
7631         * modules/fseeko-tests (Files): Add them.
7632         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
7633
7634         Tests for function fputc().
7635         * modules/fputc-tests: New file.
7636         * tests/test-fputc.c: New file.
7637         * modules/stdio-tests (Depends-on): Add fputc-tests.
7638
7639         Tests for function fgetc().
7640         * modules/fgetc-tests: New file.
7641         * tests/test-fgetc.c: New file.
7642         * modules/stdio-tests (Depends-on): Add fgetc-tests.
7643
7644         Tests for function fdopen().
7645         * modules/fdopen-tests: New file.
7646         * tests/test-fdopen.c: New file.
7647         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7648
7649         Tests for module 'vdprintf'.
7650         * modules/vdprintf-tests: New file.
7651         * tests/test-vdprintf.c: New file.
7652
7653         Tests for module 'dprintf'.
7654         * modules/dprintf-tests: New file.
7655         * tests/test-dprintf.c: New file.
7656
7657 2011-09-20  Bruno Haible  <bruno@clisp.org>
7658
7659         Tests for module 'ioctl'.
7660         * modules/ioctl-tests: New file.
7661         * tests/test-ioctl.c: New file.
7662
7663 2011-09-20  Bruno Haible  <bruno@clisp.org>
7664
7665         fcntl tests: EBADF tests.
7666         * tests/test-fcntl.c (main): Add more tests for EBADF.
7667
7668 2011-09-20  Bruno Haible  <bruno@clisp.org>
7669
7670         utimensat tests: EBADF tests.
7671         * tests/test-utimensat.c (main): Add tests for EBADF.
7672
7673         renameat tests: EBADF tests.
7674         * tests/test-renameat.c (main): Add tests for EBADF.
7675
7676         mkfifoat tests: EBADF tests.
7677         * tests/test-mkfifoat.c (main): Add tests for EBADF.
7678
7679         readlinkat tests: EBADF tests.
7680         * tests/test-readlinkat.c (main): Add tests for EBADF.
7681
7682         symlinkat tests: EBADF tests.
7683         * tests/test-symlinkat.c (main): Add tests for EBADF.
7684
7685         linkat tests: EBADF tests.
7686         * tests/test-linkat.c (main): Add tests for EBADF.
7687
7688         Tests for module 'faccessat'.
7689         * modules/faccessat-tests: New file.
7690         * tests/test-faccessat.c: New file.
7691
7692         fdopendir tests: EBADF tests.
7693         * tests/test-fdopendir.c (main): Add more tests for EBADF.
7694
7695         openat tests: EBADF tests.
7696         * tests/test-fchownat.c (main): Add tests for EBADF.
7697         * tests/test-fstatat.c (main): Likewise.
7698         * tests/test-mkdirat.c (main): Likewise.
7699         * tests/test-openat.c (main): Likewise.
7700         * tests/test-unlinkat.c (main): Likewise.
7701         * tests/test-fchmodat.c: New file.
7702         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
7703         (Makefile.am): Also run 'test-fchmodat'.
7704
7705 2011-09-20  Bruno Haible  <bruno@clisp.org>
7706
7707         utimens, futimens, fdutimensat tests: EBADF tests.
7708         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
7709
7710         Tests for function fstat().
7711         * modules/fstat-tests: New file.
7712         * tests/test-fstat.c: New file.
7713         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
7714
7715 2011-09-20  Bruno Haible  <bruno@clisp.org>
7716
7717         test-ttyname_r tests: EBADF tests.
7718         * tests/test-ttyname_r.c (main): Add tests for EBADF.
7719
7720         Tests for module 'isatty'.
7721         * modules/isatty-tests: New file.
7722         * tests/test-isatty.c: New file.
7723
7724         Tests for module 'write'.
7725         * modules/write-tests: New file.
7726         * tests/test-write.c: New file.
7727
7728         Tests for module 'read'.
7729         * modules/read-tests: New file.
7730         * tests/test-read.c: New file.
7731
7732         pwrite tests: EBADF tests.
7733         * tests/test-pwrite.c (main): Add tests for EBADF.
7734
7735         pread tests: EBADF tests.
7736         * tests/test-pread.c (main): Add tests for EBADF.
7737
7738         lseek tests: EBADF tests.
7739         * tests/test-lseek.c (main): Add more tests for EBADF.
7740
7741         Tests for module 'ftruncate'.
7742         * modules/ftruncate-tests: New file.
7743         * tests/test-ftruncate.sh: New file.
7744         * tests/test-ftruncate.c: New file.
7745
7746         fsync tests: EBADF tests.
7747         * tests/test-fsync.c (main): Add more tests for EBADF.
7748
7749         fdatasync tests: EBADF tests.
7750         * tests/test-fdatasync.c (main): Add more tests for EBADF.
7751
7752         Tests for module 'fchown'.
7753         * modules/fchown-tests: New file.
7754         * tests/test-fchown.c: New file.
7755
7756         Tests for module 'fchmod'.
7757         * modules/fchmod-tests: New file.
7758         * tests/test-fchmod.c: New file.
7759
7760         fchdir tests: EBADF tests.
7761         * tests/test-fchdir.c (main): Add more tests for EBADF.
7762
7763         dup2 tests: EBADF tests.
7764         * tests/test-dup2.c (main): Add more tests for EBADF.
7765
7766         Tests for module 'dup'.
7767         * modules/dup-tests: New file.
7768         * tests/test-dup.c: New file.
7769
7770         Tests for module 'close'.
7771         * modules/close-tests: New file.
7772         * tests/test-close.c: New file.
7773
7774 2011-09-20  Bruno Haible  <bruno@clisp.org>
7775
7776         Tests for module 'shutdown'.
7777         * modules/shutdown-tests: New file.
7778         * tests/test-shutdown.c: New file.
7779
7780         Tests for module 'setsockopt'.
7781         * modules/setsockopt-tests: New file.
7782         * tests/test-setsockopt.c: New file.
7783
7784         Tests for module 'sendto'.
7785         * modules/sendto-tests: New file.
7786         * tests/test-sendto.c: New file.
7787
7788         Tests for module 'send'.
7789         * modules/send-tests: New file.
7790         * tests/test-send.c: New file.
7791
7792         Tests for module 'recvfrom'.
7793         * modules/recvfrom-tests: New file.
7794         * tests/test-recvfrom.c: New file.
7795
7796         Tests for module 'recv'.
7797         * modules/recv-tests: New file.
7798         * tests/test-recv.c: New file.
7799
7800         Tests for module 'listen'.
7801         * modules/listen-tests: New file.
7802         * tests/test-listen.c: New file.
7803
7804         Tests for module 'getsockopt'.
7805         * modules/getsockopt-tests: New file.
7806         * tests/test-getsockopt.c: New file.
7807
7808         Tests for module 'getsockname'.
7809         * modules/getsockname-tests: New file.
7810         * tests/test-getsockname.c: New file.
7811
7812         Tests for module 'getpeername'.
7813         * modules/getpeername-tests: New file.
7814         * tests/test-getpeername.c: New file.
7815
7816         Tests for module 'connect'.
7817         * modules/connect-tests: New file.
7818         * tests/test-connect.c: New file.
7819
7820         Tests for module 'bind'.
7821         * modules/bind-tests: New file.
7822         * tests/test-bind.c: New file.
7823
7824         accept4 tests: Fix for native Windows.
7825         * tests/test-accept4.c: Include sockets.h.
7826         (main): Invoke gl_sockets_startup.
7827         * modules/accept4-tests (Depends-on): Add sockets.
7828
7829         accept tests: Fix for native Windows.
7830         * tests/test-accept.c: Include sockets.h.
7831         (main): Invoke gl_sockets_startup.
7832         * modules/accept-tests (Depends-on): Add sockets.
7833
7834 2011-09-19  Bruno Haible  <bruno@clisp.org>
7835
7836         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
7837         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
7838         do...while(0).
7839         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
7840         Suggested by Paul Eggert.
7841
7842 2011-09-19  Bruno Haible  <bruno@clisp.org>
7843
7844         sched: Ensure pid_t is defined.
7845         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
7846         not define pid_t.
7847         * lib/sched.in.h: Include <sys/types.h>.
7848         * doc/posix-headers/sched.texi: Mention the pid_t problem.
7849         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7850
7851 2011-09-19  Bruno Haible  <bruno@clisp.org>
7852
7853         msvc-inval: Ensure the entire expansion is a single statement.
7854         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
7855         of braces.
7856
7857 2011-09-19  Jim Meyering  <meyering@redhat.com>
7858
7859         tests: use printf, not echo in init.sh's warn_ function
7860         * tests/init.sh (warn_): Use printf, not echo.  The latter would
7861         misbehave when given strings containing a backslash or starting
7862         with e.g., -n.  James Youngman suggested setting IFS.
7863
7864 2011-09-19  Eric Blake  <eblake@redhat.com>
7865
7866         futimens: enhance test
7867         * tests/test-futimens.h (test_futimens): Also check for EBADF on
7868         closed non-negative fd.
7869
7870         date: accept 'hence' as opposite of 'ago'
7871         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
7872         * tests/test-parse-datetime.c (main): Enhance test.
7873         Suggested by Jesse Wilson.
7874
7875 2011-09-19  Jim Meyering  <meyering@redhat.com>
7876
7877         getcwd: don't fail in a deep directory on a system without openat
7878         Before this change, getcwd would fail when called from a directory
7879         of depth PATH_MAX / 3 or greater.  That was due to the fact that
7880         the non-openat implementation used "..", "../..", "../../..", etc.
7881         to access ancestor directories.  With too many, that string would
7882         be longer than PATH_MAX.
7883         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
7884         using gnulib's openat replacement.
7885         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
7886         we're using the replacement function.
7887
7888 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
7889
7890         maint.mk: avoid warnings from perl about missing files
7891         * top/maint.mk (def_sym_regex): Ignore files listed in
7892         $(gl_other_headers_) that do not exist, say because a project
7893         does not use a corresponding module.
7894
7895 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
7896
7897         stat: use pathmax.h only if needed
7898         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
7899         This is better for Emacs, which does not have a mingw port and
7900         therefore can avoid the pathmax module.
7901
7902         utimens: remove dependency on dup2
7903         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
7904         to work around the Linux kernel bug.
7905         * modules/utimens (Depends-on): Remove dup2.
7906
7907 2011-09-18  Bruno Haible  <bruno@clisp.org>
7908
7909         inet_ntop, inet_pton: Look for it also in libresolv.
7910         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
7911         libnsl, search for it in libresolv.
7912         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
7913         Needed on Solaris 7.
7914
7915 2011-09-18  Bruno Haible  <bruno@clisp.org>
7916
7917         accept, accept4 tests: Avoid link error on Solaris.
7918         * modules/accept-tests (Makefile.am): Link test-accept against
7919         $(LIBSOCKET).
7920         * modules/accept4-tests (Makefile.am): Link test-accept4 against
7921         $(LIBSOCKET).
7922
7923         accept4: Avoid link error on Solaris.
7924         * modules/accept4 (Link): New section.
7925
7926         socket functions: Avoid link errors on Solaris.
7927         * modules/accept (Depends-on): Add socketlib.
7928         (Link): New section.
7929         * modules/bind (Depends-on): Add socketlib.
7930         (Link): New section.
7931         * modules/connect (Depends-on): Add socketlib.
7932         (Link): New section.
7933         * modules/getpeername (Depends-on): Add socketlib.
7934         (Link): New section.
7935         * modules/getsockname (Depends-on): Add socketlib.
7936         (Link): New section.
7937         * modules/getsockopt (Depends-on): Add socketlib.
7938         (Link): New section.
7939         * modules/listen (Depends-on): Add socketlib.
7940         (Link): New section.
7941         * modules/recv (Depends-on): Add socketlib.
7942         (Link): New section.
7943         * modules/recvfrom (Depends-on): Add socketlib.
7944         (Link): New section.
7945         * modules/send (Depends-on): Add socketlib.
7946         (Link): New section.
7947         * modules/sendto (Depends-on): Add socketlib.
7948         (Link): New section.
7949         * modules/setsockopt (Depends-on): Add socketlib.
7950         (Link): New section.
7951         * modules/shutdown (Depends-on): Add socketlib.
7952         (Link): New section.
7953         * modules/socket (Depends-on): Add socketlib.
7954         (Link): New section.
7955
7956 2011-09-18  Bruno Haible  <bruno@clisp.org>
7957
7958         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
7959         * tests/test-ptsname.c (main): Terminate the test if it takes longer
7960         than 5 seconds.
7961         * modules/ptsname-tests (configure.ac): Test for alarm.
7962
7963 2011-09-18  Bruno Haible  <bruno@clisp.org>
7964
7965         posix_spawn_file_actions_add*: Fix module dependencies.
7966         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
7967         posix_spawn_file_actions_init.
7968         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
7969         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
7970
7971 2011-09-18  Bruno Haible  <bruno@clisp.org>
7972
7973         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
7974         * tests/test-rename.h (test_rename): Allow error code EEXIST.
7975         * tests/test-renameat.c (main): Likewise.
7976
7977 2011-09-18  Bruno Haible  <bruno@clisp.org>
7978
7979         Tests for module 'accept4'.
7980         * modules/accept4-tests: New file.
7981         * tests/test-accept4.c: New file.
7982
7983 2011-09-18  Bruno Haible  <bruno@clisp.org>
7984
7985         Tests for module 'accept'.
7986         * modules/accept-tests: New file.
7987         * tests/test-accept.c: New file.
7988
7989 2011-09-18  Bruno Haible  <bruno@clisp.org>
7990
7991         dup2: Support for MSVC.
7992         * lib/dup2.c: Include msvc-inval.h.
7993         (rpl_dup2): Handle invalid parameter notifications during dup2 and
7994         _get_osfhandle calls.
7995         * modules/dup2 (Depends-on): Add msvc-inval.
7996         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
7997
7998         New module 'msvc-inval'.
7999         * lib/msvc-inval.h: New file.
8000         * lib/msvc-inval.c: New file.
8001         * m4/msvc-inval.m4: New file.
8002         * modules/msvc-inval: New file.
8003
8004 2011-09-17  Bruno Haible  <bruno@clisp.org>
8005
8006         Tests for module 'pclose'.
8007         * modules/pclose-tests: New file.
8008
8009         New module 'pclose'.
8010         * lib/stdio.in.h (pclose): New declaration.
8011         * lib/pclose.c: New file.
8012         * m4/pclose.m4: New file.
8013         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8014         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8015         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8016         * modules/pclose: New file.
8017         * modules/popen-tests (Depends-on): Add pclose.
8018         * modules/popen-safer-tests (Depends-on): Likewise.
8019         * doc/posix-functions/pclose.texi: Mention the new module.
8020
8021 2011-09-17  Bruno Haible  <bruno@clisp.org>
8022
8023         popen: Support for MSVC.
8024         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8025         * lib/popen.c (popen): Provide alternate definition for native Windows.
8026         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8027         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8028         * modules/popen (Depends-on, configure.ac): Update condition.
8029         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8030         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8031         fixed.
8032
8033 2011-09-17  Bruno Haible  <bruno@clisp.org>
8034
8035         isnanl, isnand, isnanf: Work around MSVC bug.
8036         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8037
8038 2011-09-17  Bruno Haible  <bruno@clisp.org>
8039
8040         sys_socket tests: Fix recent mistake.
8041         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8042
8043 2011-09-17  Bruno Haible  <bruno@clisp.org>
8044
8045         putenv: Support for MSVC.
8046         * modules/putenv (Depends-on): Add environ.
8047         * lib/putenv.c (environ): Disable declaration.
8048         * lib/unistd.in.h: Update comment.
8049
8050 2011-09-17  Bruno Haible  <bruno@clisp.org>
8051
8052         math: Avoid macro redefinition warnings on MSVC.
8053         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8054         Undefine before redefining.
8055
8056 2011-09-17  Bruno Haible  <bruno@clisp.org>
8057
8058         doc: Mention functions which are declared as macros.
8059         * doc/posix-functions/*[fl].texi: Mention that some functions are
8060         defined as macros with arguments only.
8061
8062 2011-09-17  Bruno Haible  <bruno@clisp.org>
8063
8064         Add dependencies to new dirent related modules.
8065         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8066         * modules/fts (Depends-on): Likewise.
8067         * modules/glob (Depends-on): Likewise.
8068         * modules/savedir (Depends-on): Likewise.
8069         * modules/scandir (Depends-on): Likewise.
8070         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8071         * modules/fdopendir (Depends-on): Add opendir.
8072
8073 2011-09-17  Bruno Haible  <bruno@clisp.org>
8074
8075         inet_pton: Support for MSVC on Windows Vista or newer.
8076         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8077         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8078         HAVE_DECL_INET_PTON is defined.
8079         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8080         On platforms with <winsock2.h>, test whether inet_pton is declared in
8081         <ws2tcpip.h>. If so, arrange to replace it.
8082         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8083         REPLACE_INET_PTON.
8084         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8085         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8086         (Depends-on, configure.ac): Update condition.
8087         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8088
8089 2011-09-17  Bruno Haible  <bruno@clisp.org>
8090
8091         inet_ntop: Support for MSVC on Windows Vista or newer.
8092         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8093         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8094         HAVE_DECL_INET_NTOP is defined.
8095         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8096         On platforms with <winsock2.h>, test whether inet_ntop 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_NTOP.
8100         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8101         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8102         (Depends-on, configure.ac): Update condition.
8103         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8104
8105 2011-09-16  Eric Blake  <eblake@redhat.com>
8106
8107         test-fsync: yet another enhancement
8108         * tests/test-fsync.c (main): Also test behavior on read-only text
8109         file.
8110
8111 2011-09-16  Bruno Haible  <bruno@clisp.org>
8112
8113         Enhance fsync, fdatasync tests.
8114         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8115         * tests/test-fdatasync.c (main): Likewise.
8116
8117 2011-09-16  Bruno Haible  <bruno@clisp.org>
8118
8119         Support for MSVC compiler: Ensure mode_t gets defined.
8120         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8121         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8122         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8123         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8124         * tests/test-fcntl-h.c: Check that mode_t is defined.
8125         * tests/test-sys_stat.c: Likewise.
8126         * tests/test-sys_types.c: Likewise.
8127         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8128         * doc/posix-headers/sys_stat.texi: Likewise.
8129         * doc/posix-headers/sys_types.texi: Likewise.
8130
8131 2011-09-16  Bruno Haible  <bruno@clisp.org>
8132
8133         sys_stat: Support for MSVC.
8134         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8135         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8136         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8137         MSVC.
8138
8139 2011-09-16  Bruno Haible  <bruno@clisp.org>
8140
8141         Support for MSVC compiler: Ensure off_t gets defined.
8142         * lib/unistd.in.h: Include <sys/types.h>.
8143         * tests/test-fcntl-h.c: Check that off_t is defined.
8144         * tests/test-sys_stat.c: Likewise.
8145         * tests/test-sys_types.c: Likewise.
8146
8147 2011-09-16  Eric Blake  <eblake@redhat.com>
8148
8149         fdatasync: port to Solaris
8150         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8151         * modules/fdatasync (Link): Document it.
8152         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8153
8154         fdatasync: port to MacOS X 10.7
8155         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8156         declared.
8157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8158         * modules/unistd (Makefile.am): Substitute it.
8159         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8160         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8161
8162         fdatasync: minor improvements
8163         * modules/fdatasync (Depends-on): Add condition for fsync.
8164         * lib/fdatasync.c (fdatasync): Add comment.
8165         * tests/test-unistd-c++.cc: Test fdatasync.
8166
8167         unistd: update refs to newer POSIX
8168         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8169         Suggested by Bruno Haible.
8170
8171         fdatasync: new module
8172         * modules/fsync (Description): Document difference to fdatasync.
8173         * modules/fdatasync: New module.
8174         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8175         * lib/fdatasync.c (fdatasync): Likewise.
8176         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8177         defaults.
8178         * modules/unistd (Makefile.am): Set witnesses.
8179         * lib/unistd.in.h (fdatasync): Declare.
8180         * MODULES.html.sh: Document it.
8181         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8182         * modules/fdatasync-tests: New test.
8183         * tests/test-fdatasync.c: Likewise.
8184
8185 2011-09-16  Eric Blake  <eblake@redhat.com>
8186
8187         test-fsync: enhance tests
8188         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8189         * tests/test-fsync.c (main): Enhance test.
8190
8191 2011-09-15  Bruno Haible  <bruno@clisp.org>
8192
8193         Support for MSVC compiler: Ensure ssize_t gets defined.
8194         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8195         * doc/posix-headers/stdio.texi: Likewise.
8196         * modules/stdio (Depends-on): Add ssize_t.
8197         * modules/sys_socket (Depends-on): Likewise.
8198         * modules/sys_types (Depends-on): Likewise.
8199         * modules/sys_uio (Depends-on): Likewise.
8200         * modules/unistd (Depends-on): Likewise.
8201         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8202         * tests/test-sys_types.c: Check that ssize_t is defined.
8203
8204 2011-09-14  Bruno Haible  <bruno@clisp.org>
8205
8206         Avoid using #, the m4 comment starter character, near brackets.
8207         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8208         delimiter character in sed expressions.
8209         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8210         Suggested by Eric Blake.
8211
8212         Properly quote AC_CHECK_DECLS' 4th argument.
8213         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8214         argument.
8215         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8216         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8217         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8218         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8219         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8220         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8221         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8222         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8223         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8224         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8225         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8226         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8227         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8228         * m4/isinf.m4 (gl_ISINF): Likewise.
8229         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8230         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8231         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8232         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8233         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8234         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8235         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8236         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8237         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8238         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8239         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8240         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8241         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8242         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8243         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8244         Reported by Eric Blake.
8245
8246         Properly quote AC_CHECK_DECL's 4th argument.
8247         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8248         argument.
8249         * m4/argp.m4 (gl_ARGP): Likewise.
8250         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8251         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8252         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8253         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8254         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8255         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8256         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8257         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8258         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8259         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8260         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8261         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8262         Reported by Eric Blake.
8263
8264 2011-09-14  Eric Blake  <eblake@redhat.com>
8265
8266         opendir: avoid compile warning
8267         * lib/opendir.c (includes): Always include errno.h.
8268         Reported by Tatsuro MATSUOKA.
8269
8270 2011-09-14  Jim Meyering  <meyering@redhat.com>
8271
8272         maint.mk: sc_tight_scope: propagate failure from sub-make
8273         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8274         Reported by Martin von Gagern.
8275
8276 2011-09-13  Bruno Haible  <bruno@clisp.org>
8277
8278         tempname: Support for MSVC.
8279         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8280         MSVC.
8281         * modules/tempname (Depends-on): Add fcntl-h.
8282
8283 2011-09-13  Bruno Haible  <bruno@clisp.org>
8284
8285         sys_time: Support for MSVC.
8286         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8287         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8288         include <winsock2.h>.
8289         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8290         function declarations that collide with POSIX.
8291         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8292         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8293
8294 2011-09-13  Bruno Haible  <bruno@clisp.org>
8295
8296         stat: Support for MSVC.
8297         * lib/stat.c: Include pathmax.h.
8298         * modules/stat (Depends-on): Add pathmax.
8299
8300         pathmax: Support for native Windows.
8301         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8302
8303 2011-09-12  Bruno Haible  <bruno@clisp.org>
8304
8305         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8306         * lib/dirent.in.h (struct dirent): New type.
8307         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8308         DT_WHT): New macros.
8309         (DIR): New type.
8310         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8311         (readdir, rewinddir): New declarations.
8312         * lib/dirent-private.h: New file.
8313         * lib/opendir.c: New file.
8314         * lib/readdir.c: New file.
8315         * lib/rewinddir.c: New file.
8316         * lib/closedir.c: New file.
8317         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8318         * m4/opendir.m4: New file.
8319         * m4/readdir.m4: New file.
8320         * m4/rewinddir.m4: New file.
8321         * m4/closedir.m4: New file.
8322         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8323         REPLACE_CLOSEDIR here.
8324         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8325         readdir, rewinddir are declared.
8326         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8327         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8328         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8329         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8330         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8331         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8332         * modules/opendir: New file.
8333         * modules/readdir: New file.
8334         * modules/rewinddir: New file.
8335         * modules/closedir: New file.
8336         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8337         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8338         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8339         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8340         * NEWS: Mention the 'fchdir' change.
8341
8342 2011-09-11  Bruno Haible  <bruno@clisp.org>
8343
8344         asm-underscore.m4: Support for MSVC.
8345         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8346         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8347
8348 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8349
8350         Doc about crypt functions.
8351         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8352         needing for _GNU_SOURCE to get crypt.
8353         * doc/posix-functions/encrypt.texi: Likewise.
8354         * doc/posix-functions/setkey.texi: Likewise.
8355
8356 2011-09-11  Bruno Haible  <bruno@clisp.org>
8357
8358         doc: Update regarding MSVC 9.
8359         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8360         tested".
8361         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8362         * doc/posix-headers/*.texi: Likewise.
8363         * doc/pastposix-functions/*.texi: Likewise.
8364         * doc/glibc-functions/*.texi: Likewise.
8365         * doc/glibc-headers/*.texi: Likewise.
8366
8367 2011-09-11  Bruno Haible  <bruno@clisp.org>
8368
8369         unistd et al.: Don't assume <unistd.h> exists.
8370         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8371         does not exist.
8372         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8373         exist. But include <stdlib.h>.
8374         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8375         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8376         symlink() does not exist.
8377         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8378         include <io.h> instead.
8379         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8380         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8381         include <direct.h> instead.
8382         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8384         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8385         <io.h> instead.
8386         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8387         correctly if the system does not have hard links.
8388         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8389         <direct.h> instead.
8390         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8391         it when looking for function declarations.
8392         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8393         <direct.h> and <io.h> instead.
8394         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8395
8396 2011-09-11  Bruno Haible  <bruno@clisp.org>
8397
8398         strcase: Support for MSVC.
8399         * modules/strcase (Status, Notice): Remove obsoletion mark.
8400         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8401         * doc/posix-functions/strncasecmp.texi: Likewise.
8402
8403         strings: Don't assume <strings.h> exists.
8404         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8405         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8406         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8407         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8408
8409 2011-09-11  Bruno Haible  <bruno@clisp.org>
8410
8411         dirent: Don't assume <dirent.h> exists.
8412         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8413         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8414         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8415         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8416
8417 2011-09-11  Bruno Haible  <bruno@clisp.org>
8418
8419         Fix wint_t on MSVC.
8420         * lib/wchar.in.h (wint_t): On MSVC, override it.
8421         * lib/wctype.in.h (wint_t): Likewise.
8422         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8423         MSVC.
8424         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8425         * doc/posix-headers/wctype.texi: Likewise.
8426
8427 2011-09-11  Bruno Haible  <bruno@clisp.org>
8428
8429         sys_types: Fix typo.
8430         * lib/sys_types.in.h: Fix typo in comment.
8431         Reported by Paul Eggert.
8432
8433         Support for MSVC compiler: Ensure size_t gets defined.
8434         * modules/strings (Depends-on): Add 'sys_types'.
8435         * modules/sys_uio (Depends-on): Likewise.
8436         * lib/sys_uio.in.h: Update comment.
8437
8438         C++ tests for module 'sys_types'.
8439         * modules/sys_types-c++-tests: New file.
8440         * tests/test-sys_types-c++.cc: New file.
8441
8442         Tests for module 'sys_types'.
8443         * modules/sys_types-tests: New file.
8444         * tests/test-sys_types.c: New file.
8445
8446         New module 'sys_types'.
8447         * lib/sys_types.in.h: New file.
8448         * m4/sys_types_h.m4: New file.
8449         * modules/sys_types: New file.
8450         * doc/posix-headers/sys_types.texi: Mention the new module and the
8451         size_t problem on MSVC 9.
8452
8453 2011-09-11  Bruno Haible  <bruno@clisp.org>
8454
8455         Support for MSVC compiler: Avoid division by a literal 0.
8456         * lib/math.in.h (NAN): Define through a function call also on MSVC.
8457         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
8458         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
8459         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
8460         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
8461         * tests/infinity.h: New file.
8462         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
8463         on MSVC.
8464         * tests/test-ceilf1.c: Include infinity.h.
8465         (main): Use Infinityf.
8466         * tests/test-ceil1.c: Include infinity.h.
8467         (main): Use Infinityd.
8468         * tests/test-ceill.c: Include infinity.h.
8469         (main): Use Infinityl.
8470         * tests/test-dprintf-posix.c: Include infinity.h.
8471         (test_function): Use Infinityd.
8472         * tests/test-floorf1.c: Include infinity.h.
8473         (main): Use Infinityf.
8474         * tests/test-floor1.c: Include infinity.h.
8475         (main): Use Infinityd.
8476         * tests/test-floorl.c: Include infinity.h.
8477         (main): Use Infinityl.
8478         * tests/test-fprintf-posix.c: Include infinity.h.
8479         (test_function): Use Infinityd.
8480         * tests/test-frexp.c: Include infinity.h.
8481         (main): Use Infinityd.
8482         * tests/test-frexpl.c: Include infinity.h.
8483         (main): Use Infinityl.
8484         * tests/test-isfinite.c: Include infinity.h.
8485         (test_isfinitef): Use Infinityf.
8486         (test_isfinited): Use Infinityd.
8487         (test_isfinitel): Use Infinityl.
8488         * tests/test-isinf.c: Include infinity.h.
8489         (test_isinff): Use Infinityf.
8490         (test_isinfd): Use Infinityd.
8491         (test_isinfl): Use Infinityl.
8492         * tests/test-isnan.c: Include infinity.h.
8493         (test_float): Use Infinityf.
8494         (test_double): Use Infinityd.
8495         (test_long_double): Use Infinityl.
8496         * tests/test-isnanf.h: Include infinity.h.
8497         (main): Use Infinityf.
8498         * tests/test-isnand.h: Include infinity.h.
8499         (main): Use Infinityd.
8500         * tests/test-isnanl.h: Include infinity.h.
8501         (main): Use Infinityl.
8502         * tests/test-ldexpl.c: Include infinity.h.
8503         (main): Use Infinityl.
8504         * tests/test-printf-posix.h: Include infinity.h.
8505         (test_function): Use Infinityd.
8506         * tests/test-roundf1.c: Include infinity.h.
8507         (main): Use Infinityf.
8508         * tests/test-round1.c: Include infinity.h.
8509         (main): Use Infinityd.
8510         * tests/test-roundl.c: Include infinity.h.
8511         (main): Use Infinityl.
8512         * tests/test-signbit.c: Include infinity.h.
8513         (test_signbitf): Use Infinityf.
8514         (test_signbitd): Use Infinityd.
8515         (test_signbitl): Use Infinityl.
8516         * tests/test-snprintf-posix.h: Include infinity.h.
8517         (test_function): Use Infinityd, Infinityl.
8518         * tests/test-sprintf-posix.h: Include infinity.h.
8519         (test_function): Use Infinityd, Infinityl.
8520         * tests/test-truncf1.c: Include infinity.h.
8521         (main): Use Infinityf.
8522         * tests/test-trunc1.c: Include infinity.h.
8523         (main): Use Infinityd.
8524         * tests/test-truncl.c: Include infinity.h.
8525         (main): Use Infinityl.
8526         * tests/test-vasnprintf-posix.c: Include infinity.h.
8527         (test_function): Use Infinityd, Infinityl.
8528         * tests/test-vasprintf-posix.c: Include infinity.h.
8529         (test_function): Use Infinityd, Infinityl.
8530         * modules/ceilf-tests (Files): Add tests/infinity.h.
8531         * modules/ceil-tests (Files): Likewise.
8532         * modules/ceill-tests (Files): Likewise.
8533         * modules/dprintf-posix-tests (Files): Likewise.
8534         * modules/floorf-tests (Files): Likewise.
8535         * modules/floor-tests (Files): Likewise.
8536         * modules/floorl-tests (Files): Likewise.
8537         * modules/fprintf-posix-tests (Files): Likewise.
8538         * modules/frexp-tests (Files): Likewise.
8539         * modules/frexp-nolibm-tests (Files): Likewise.
8540         * modules/frexpl-tests (Files): Likewise.
8541         * modules/frexpl-nolibm-tests (Files): Likewise.
8542         * modules/isfinite-tests (Files): Likewise.
8543         * modules/isinf-tests (Files): Likewise.
8544         * modules/isnan-tests (Files): Likewise.
8545         * modules/isnanf-tests (Files): Likewise.
8546         * modules/isnanf-nolibm-tests (Files): Likewise.
8547         * modules/isnand-tests (Files): Likewise.
8548         * modules/isnand-nolibm-tests (Files): Likewise.
8549         * modules/isnanl-tests (Files): Likewise.
8550         * modules/isnanl-nolibm-tests (Files): Likewise.
8551         * modules/ldexpl-tests (Files): Likewise.
8552         * modules/printf-posix-tests (Files): Likewise.
8553         * modules/roundf-tests (Files): Likewise.
8554         * modules/round-tests (Files): Likewise.
8555         * modules/roundl-tests (Files): Likewise.
8556         * modules/signbit-tests (Files): Likewise.
8557         * modules/snprintf-posix-tests (Files): Likewise.
8558         * modules/sprintf-posix-tests (Files): Likewise.
8559         * modules/truncf-tests (Files): Likewise.
8560         * modules/trunc-tests (Files): Likewise.
8561         * modules/truncl-tests (Files): Likewise.
8562         * modules/vasnprintf-posix-tests (Files): Likewise.
8563         * modules/vasprintf-posix-tests (Files): Likewise.
8564         * modules/vdprintf-posix-tests (Files): Likewise.
8565         * modules/vfprintf-posix-tests (Files): Likewise.
8566         * modules/vprintf-posix-tests (Files): Likewise.
8567         * modules/vsnprintf-posix-tests (Files): Likewise.
8568         * modules/vsprintf-posix-tests (Files): Likewise.
8569         * modules/xprintf-posix-tests (Files): Likewise.
8570
8571 2011-09-11  Bruno Haible  <bruno@clisp.org>
8572
8573         Ensure pid_t gets defined.
8574         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
8575         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
8576         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8577         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8578         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
8579         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
8580         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
8581         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8582         * tests/test-fcntl-h.c: Check that pid_t is defined.
8583         * tests/test-sched.c: Likewise.
8584         * tests/test-termios.c: Likewise.
8585         * tests/test-time.c: Likewise.
8586         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
8587         * doc/posix-headers/signal.texi: Likewise.
8588         * doc/posix-headers/sys_types.texi: Likewise.
8589         * doc/posix-headers/time.texi: Likewise.
8590
8591 2011-09-11  Bruno Haible  <bruno@clisp.org>
8592
8593         acl: Fix compilation on Solaris 10 (older version).
8594         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
8595         of ACE_EVERYONE.
8596         * lib/set-mode-acl.c (qset_acl): Likewise.
8597         Reported by Christian Jullien <eligis@orange.fr>.
8598
8599 2011-09-10  Bruno Haible  <bruno@clisp.org>
8600
8601         iconv, unsetenv: Add support for MSVC compiler.
8602         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
8603         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
8604
8605 2011-09-10  Bruno Haible  <bruno@clisp.org>
8606
8607         *printf: Add support for MSVC compiler.
8608         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
8609         handles the exception caused by the %n directive. When cross-compiling,
8610         guess no on native Windows.
8611         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
8612         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
8613         emulate it through vsnprintf.
8614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
8615         * doc/posix-functions/dprintf.texi: Update documentation regarding
8616         MSVC 9.
8617         * doc/posix-functions/fprintf.texi: Likewise.
8618         * doc/posix-functions/printf.texi: Likewise.
8619         * doc/posix-functions/snprintf.texi: Likewise.
8620         * doc/posix-functions/sprintf.texi: Likewise.
8621         * doc/posix-functions/swprintf.texi: Likewise.
8622         * doc/posix-functions/vdprintf.texi: Likewise.
8623         * doc/posix-functions/vfprintf.texi: Likewise.
8624         * doc/posix-functions/vprintf.texi: Likewise.
8625         * doc/posix-functions/vsnprintf.texi: Likewise.
8626         * doc/posix-functions/vsprintf.texi: Likewise.
8627         * doc/glibc-functions/asprintf.texi: Likewise.
8628         * doc/glibc-functions/obstack_printf.texi: Likewise.
8629         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
8630         * doc/glibc-functions/vasprintf.texi: Likewise.
8631
8632 2011-09-10  Bruno Haible  <bruno@clisp.org>
8633
8634         nocrash: Add support for native Windows.
8635         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
8636
8637 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
8638             Bruno Haible  <bruno@clisp.org>
8639
8640         absolute-header, include-next: Add support for MSVC compiler.
8641         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
8642         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
8643         directory separator in #line directives.
8644         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
8645         recognize also backslash as directory separator in #line directives.
8646
8647 2011-09-08  Jim Meyering  <meyering@redhat.com>
8648
8649         maint.mk: mark the post-release commit log with "maint: " prefix
8650         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
8651         one-line commit-log summary.
8652
8653 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
8654             Bruno Haible  <bruno@clisp.org>
8655
8656         Doc about crypt functions.
8657         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
8658         systems.
8659         * doc/posix-functions/encrypt.texi: Likewise.
8660         * doc/posix-functions/setkey.texi: Likewise.
8661
8662 2011-09-08  Simon Josefsson  <simon@josefsson.org>
8663
8664         * lib/gc.h: Fix copyright header.
8665
8666 2011-09-07  Bruno Haible  <bruno@clisp.org>
8667
8668         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
8669         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
8670         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
8671
8672 2011-09-07  Bruno Haible  <bruno@clisp.org>
8673
8674         openat: Work around compilation error with OSF/1 5.1 DTK cc.
8675         * lib/fopen.c: Use different syntax for include of <stdio.h>.
8676         * lib/freopen.c: Likewise.
8677         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
8678         * lib/lstat.c: Likewise.
8679         * lib/stat.c: Likewise.
8680         * lib/open.c: Use different syntax for include of <fcntl.h>.
8681         * lib/openat.c: Include fcntl.h again, explicitly.
8682
8683 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
8684
8685         parse-datetime: document the newly accepted format
8686         * doc/parse-datetime.texi (Combined date and time of day items):
8687         New section.
8688
8689 2011-09-06  Bruno Haible  <bruno@clisp.org>
8690
8691         acl: Fix a test failure on newer Solaris 10 with ZFS.
8692         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
8693         ENOSYS as no ACL.
8694         Reported by Jim Meyering.
8695
8696 2011-09-06  Bruno Haible  <bruno@clisp.org>
8697
8698         acl: Update for AIX >= 5.3 with NFS.
8699         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
8700         ENOSYS as no ACL.
8701
8702         acl: Fix a test failure on AIX >= 5.3 with NFS.
8703         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
8704         as no ACL.
8705
8706 2011-09-06  Bruno Haible  <bruno@clisp.org>
8707
8708         acl: Fix a test failure on IRIX 6.5 with NFS.
8709         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
8710         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
8711         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
8712         * lib/copy-acl.c (qcopy_acl): Likewise.
8713
8714 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
8715
8716         openat: port to AIX 7.1 with large files
8717         AIX 7.1 does a "#define openat open64at" if large files are in use,
8718         so we can't simply #undef openat.  Use the orig_openat trick (similar
8719         to orig_open in lib/open.c) to work around the problem.  Problem
8720         reported by Kevin Brott for GNU tar, in the thread containing
8721         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
8722         * lib/openat.c (__need_system_fcntl_h): Define first.
8723         Include <fcntl.h> and <sys/types.h> before undefining.
8724         (orig_openat) [HAVE_OPENAT]: New inline function.
8725         (openat) [HAVE_OPENAT]: Do not undef.
8726         (rpl_openat): Use orig_openat, not openat.
8727
8728 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
8729             Bruno Haible  <bruno@clisp.org>
8730
8731         acl: Avoid errors on NonStop Kernel.
8732         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
8733         ENOTSUP errors.
8734
8735 2011-09-05  Bruno Haible  <bruno@clisp.org>
8736
8737         acl: Clean up Solaris code.
8738         * lib/acl-internal.h: Remove no-op #if.
8739         * lib/file-has-acl.c: Likewise.
8740         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
8741         * lib/copy-acl.c (qcopy_acl): Likewise.
8742
8743 2011-09-05  Bruno Haible  <bruno@clisp.org>
8744
8745         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
8746         binaries built on the original Solaris 10.
8747         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
8748         trivial.
8749
8750 2011-09-05  Bruno Haible  <bruno@clisp.org>
8751
8752         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8753         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
8754         10.
8755         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
8756         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
8757         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
8758         instead of acl_get, facl_get, acl_set, facl_set.
8759
8760 2011-09-05  Bruno Haible  <bruno@clisp.org>
8761
8762         copy-file: Try unit tests on more file systems.
8763         * tests/test-copy-file-1.sh: New file.
8764         * tests/test-copy-file-2.sh: New file.
8765         * modules/copy-file-tests (Files): Add them.
8766         (Makefile.am): Add them to TESTS.
8767
8768         acl: Try unit tests on more file systems.
8769         * tests/test-file-has-acl-1.sh: New file.
8770         * tests/test-file-has-acl-2.sh: New file.
8771         * tests/test-set-mode-acl-1.sh: New file.
8772         * tests/test-set-mode-acl-2.sh: New file.
8773         * tests/test-copy-acl-1.sh: New file.
8774         * tests/test-copy-acl-2.sh: New file.
8775         * modules/acl-tests (Files): Add them.
8776         (Makefile.am): Add them to TESTS.
8777
8778 2011-09-04  Bruno Haible  <bruno@clisp.org>
8779
8780         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
8781         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
8782         10.
8783         (OLD_ALLOW, OLD_DENY): New macros.
8784         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
8785         ACE_ACCESS_ALLOWED_ACE_TYPE.
8786         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
8787         ACE_ACCESS_DENIED_ACE_TYPE.
8788         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
8789         (NEW_ACE_EXECUTE): Fix value.
8790         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
8791         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
8792         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
8793         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
8794         NEW_ACE_SYNCHRONIZE): New macros.
8795         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
8796         instead of acl_fromtext, acl_set, facl_set.
8797         Fixes a coreutils/tests/cp/perm failure.
8798
8799 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
8800
8801         openat: test for fstatat (..., 0) bug
8802         Further testing with tar suggests that fstatat (..., 0)
8803         does not work in general, on AIX 7.1; see
8804         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
8805         So, give up entirely on AIX 7.1's fstatat, and fall back on our
8806         replacement fstatat (which is what older AIX releases were using
8807         anyway).
8808         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
8809         use is now changed to orig_fstatat.  This was probably the right
8810         thing to do anyway.
8811         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
8812         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
8813         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
8814         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
8815         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
8816         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
8817         if the bug is found.
8818
8819         openat: test for fstatat (AT_FDCWD, ..., 0) bug
8820         This tests for another fstatat bug on AIX 7.1:
8821         fstatat (AT_FDCWD, ..., 0) does not work.  See
8822         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
8823         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
8824         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
8825         (rpl_fstatat): Adjust so that it works around either (or both)
8826         bugs if present.
8827         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
8828
8829 2011-09-03  Karl Berry  <karl@gnu.org>
8830
8831         * doc/regex.texi (Character Class Operators): Avoid literal ":"
8832         in index entries.
8833
8834 2011-09-02  Bruno Haible  <bruno@clisp.org>
8835
8836         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
8837         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
8838         values of AR, ARFLAGS, RANLIB.
8839         Reported by John W. Eaton <jwe@gnu.org> for Octave.
8840
8841 2011-09-02  Bruno Haible  <bruno@clisp.org>
8842
8843         Find 'ar' program that fits with --host argument.
8844         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
8845
8846 2011-09-02  Bruno Haible  <bruno@clisp.org>
8847
8848         tests: init.sh: Support any non-GNU diff.
8849         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
8850         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
8851         Solaris 8.
8852
8853 2011-09-02  Bruno Haible  <bruno@clisp.org>
8854
8855         tests: init.sh: work also with any non-GNU diff that supports -u
8856         * tests/init.sh: Relax check for diff -u support.
8857         Rather than checking for GNU diff via --version, simply check
8858         for support for -u itself.  Useful at least on OpenBSD 4.9,
8859         AIX 7.1, IRIX 6.5, and Solaris 10.
8860
8861 2011-09-01  Bruno Haible  <bruno@clisp.org>
8862
8863         strtoimax, strtoumax: Document problem on HP-UX 11.
8864         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
8865         * doc/posix-functions/strtoumax.texi: Likewise.
8866
8867 2011-09-01  Bruno Haible  <bruno@clisp.org>
8868
8869         strtoumax: Avoid link error on OSF/1 with DTK cc.
8870         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
8871         defined as a function.
8872         * modules/strtoumax (Depends-on, configure.ac): Test only whether
8873         strtoumax is defined, not whether it is declared.
8874
8875 2011-09-01  Bruno Haible  <bruno@clisp.org>
8876
8877         strtoimax: Avoid link error on OSF/1 with DTK cc.
8878         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
8879         defined as a function.
8880         * modules/strtoimax (Depends-on, configure.ac): Test only whether
8881         strtoimax is defined, not whether it is declared.
8882
8883 2011-09-01  Bruno Haible  <bruno@clisp.org>
8884
8885         imaxdiv: Avoid link error on OSF/1 with DTK cc.
8886         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
8887         as a function.
8888         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
8889         whether it is declared.
8890
8891 2011-09-01  Bruno Haible  <bruno@clisp.org>
8892
8893         imaxabs: Avoid link error on OSF/1 with DTK cc.
8894         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
8895         as a function.
8896         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
8897         whether it is declared.
8898
8899 2011-09-01  Bruno Haible  <bruno@clisp.org>
8900
8901         Tests for module 'strtoumax'.
8902         * modules/strtoumax-tests: New file.
8903         * tests/test-strtoumax.c: New file.
8904
8905         Tests for module 'strtoimax'.
8906         * modules/strtoimax-tests: New file.
8907         * tests/test-strtoimax.c: New file.
8908
8909         Tests for module 'imaxdiv'.
8910         * modules/imaxdiv-tests: New file.
8911         * tests/test-imaxdiv.c: New file.
8912
8913         Tests for module 'imaxabs'.
8914         * modules/imaxabs-tests: New file.
8915         * tests/test-imaxabs.c: New file.
8916
8917 2011-09-01  Bruno Haible  <bruno@clisp.org>
8918
8919         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
8920         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
8921         pthread_create.
8922
8923 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
8924
8925         openat: work around AIX 7.1 fstatat issue
8926         This should fix the problem that was not properly fixed
8927         in the previous change, dated 2011-08-30.
8928         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
8929         __need_system_stat_h defined.
8930         (orig_fstatat) [HAVE_FSTATAT]: New function.
8931         (rpl_fstatat): Go back to the old way of doing things,
8932         except call orig_fstatat instead of fstatat.
8933         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
8934         Remove unnecessary check whether fstatat fills in st_size etc.
8935
8936 2011-09-01  Bruno Haible  <bruno@clisp.org>
8937
8938         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
8939         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
8940         just include the system's header.
8941
8942 2011-08-31  Jim Meyering  <meyering@redhat.com>
8943
8944         tests: avoid spurious assertion failure in test-float.c on ppc64
8945         * tests/test-float.c (test_long_double): Comment out an assertion,
8946         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
8947         with gcc-4.4.4.
8948
8949         maint: indent with spaces, not TABs
8950         I need to get in the habit of running gnulib's "make check".
8951         Both of these would have been caught.
8952         * m4/largefile.m4: Indent with spaces, not TABs.
8953         * lib/parse-datetime.y (iso_8601_time): Likewise.
8954         Spotted by Pádraig Brady.
8955
8956         test-parse-datetime.c: accommodate a relatively strict gcc warning
8957         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
8958         to avoid a warning from gcc's -Werror=missing-declarations.
8959         Insert a few spaces-before-funcall-parenthesis.
8960
8961 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
8962
8963         parse-datetime: accept ISO 8601 date and time rep with "T" separator
8964         The parser now accepts ISO 8601 date-time strings with "T" as the
8965         separator.  It has long parsed dates like "2004-02-29 16:21:42"
8966         with a space between the date and time strings.  Now it also parses
8967         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
8968         variants like "2004-02-29T16:21:42.333-07:00"
8969         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
8970         of day representation using the 'T' separator character.
8971         * doc/parse-datetime.texi (General date syntax): replace use of
8972         deprecated --iso-8601 option with --rfc-3339 in example of date
8973         command output formats that can be parsed.
8974         * tests/test-parse-datetime.c (tm_diff): New function, taken from
8975         lib/parse-datetime.y.
8976         (gmt_offset): New function.
8977         (main): Add additional test cases to validate ISO8601 extended
8978         date and time of day parsing.
8979
8980 2011-08-31  Bruno Haible  <bruno@clisp.org>
8981
8982         freopen: Documentation.
8983         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
8984         name.
8985         Reported by Claudio Bley <claudio.bley@gmail.com>.
8986
8987 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
8988
8989         freopen: Don't crash if the filename argument is NULL.
8990         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
8991         NULL.
8992
8993 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
8994
8995         openat: work around AIX 7.1 fstatat bug
8996         Problem reported by Kevin Brott for GNU tar, in the thread containing
8997         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
8998         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
8999         FSTATAT_ST_SIZE_ETC_BROKEN.
9000         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9001         rpl_fstatat.
9002         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9003         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9004         AC_CHECK_FUNCS_ONCE for fstatat.
9005         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9006         fchmodat, mkdirat, openat and unlinkat.
9007
9008 2011-08-30  Bruno Haible  <bruno@clisp.org>
9009
9010         Avoid endless recursions if config.h includes some header files.
9011         * lib/fopen.c (__need_FILE): Define already before including config.h.
9012         * lib/freopen.c (__need_FILE): Likewise.
9013         * lib/open.c (__need_system_fcntl_h): Likewise.
9014         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9015         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9016         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9017
9018 2011-08-25  Karl Berry  <karl@gnu.org>
9019
9020         * config/srclist.txt (ylwrap): new try.
9021         * build-aux/ylwrap: new file.
9022
9023 2011-08-23  Bruno Haible  <bruno@clisp.org>
9024
9025         tmpdir: Use a good default directory on native Windows.
9026         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9027         (P_tmpdir): Default to _P_tmpdir on native Windows.
9028         (path_search): On native Windows, try the value returned by GetTempPath
9029         before trying P_tmpdir.
9030         * modules/tmpdir (Depends-on): Add pathmax.
9031         Suggested by John Darrington <john@darrington.wattle.id.au>.
9032
9033 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9034
9035         doc: fix typo in README-release
9036         * top/README-release: Capitalize first word of a sentence.
9037
9038 2011-08-19  Jim Meyering  <meyering@redhat.com>
9039
9040         fts: do not exhaust memory when processing million-entry directories
9041         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9042         directory would require about 256*N bytes of memory.  Thus, it was
9043         easy to construct a directory too large to be processed by any of
9044         those tools.  With this change, fts' maximum memory utilization is
9045         now limited to around 30MB.
9046         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9047         (fts_read): When we've processed the final entry (i.e., when
9048         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9049         using the parent entry to read any remaining entries.  Dispatch
9050         depending on what fts_build returns:
9051         - NULL+stop, aka failure: stop
9052         - NULL otherwise: move up in the dir hierarchy
9053         - non-NULL: handle this new entry
9054         (fts_build): Declare and use new local, continue_readdir.
9055         Prepare to be called from fts_read, when the entries
9056         from a partially-read directory have just been exhausted.
9057         In that case, we'll skip the opendir and instead use the parent's
9058         fts_dirp and derive dir_fd from that.
9059         Finally, in the readdir loop, if we read max_entries entries,
9060         exit the loop ensuring *not* to call closedir.  This is required
9061         so that fts_dirp can be reused on a subsequent call.
9062         Prompted by Ben England's report of memory exhaustion in find
9063         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9064
9065         maint: fts: move decl of `dp' down into while loop; split a long line
9066         * lib/fts.c (fts_build): No semantic change.
9067
9068         fts: add/use new struct member, fts_dirp
9069         We are about to use this to manage any directory with
9070         too many entries to read all of them into memory at once.
9071         To do that, we'll need to save the DIR* pointer in each
9072         affected FTSENT struct.
9073         * lib/fts_.h: Include <dirent.h>.
9074         (struct FTSENT) [fts_dirp]: New member.
9075         * lib/fts.c (closedir_and_clear): Define.
9076         Use it in place of closedir so that we are sure to
9077         clear the new fts_dirp member when done with it.
9078         (fts_alloc): Initialize the new member.
9079         (fts_lfree): Free, if needed.
9080
9081         maint: fts: give __opendir2 a new parameter and rename
9082         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9083         than surreptitiously using sole caller's "dir_fd".
9084         (fts_opendir): Rename from __opendir2.
9085
9086         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9087         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9088
9089         maint: fts.c: correct off-by-one indentation
9090         * lib/fts.c (fts_build): Correct indentation, change style
9091         of a couple of block comments, and bracing style.
9092
9093         maint: fts.c: move __opendir2 #define "up" out of function body
9094         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9095
9096         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9097         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9098         out for a long time and besides was useful only on BSD systems.
9099
9100 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9101
9102         regex: port to Stratus OpenVOS
9103         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9104         define to empty, rather than attempting nonportable optimizations.
9105         Problem reported by Paul Green in:
9106         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9107         and fix suggested by Eric Blake in:
9108         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9109
9110 2011-08-17  Eric Blake  <eblake@redhat.com>
9111
9112         getcwd: fix test failures on mingw
9113         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9114         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9115         test if long directory cannot be created, and allow mingw errno.
9116
9117         getcwd-lgpl: fix m4 to match relaxed test for BSD
9118         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9119         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9120         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9121         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9122         signature problem.
9123
9124         getcwd: fix compilation on mingw64
9125         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9126         getcwd.
9127         Reported by Marc-André Lureau.
9128
9129         pipe2: silence compiler warning
9130         * lib/pipe2.c (pipe2): Hide label if it is not used.
9131
9132 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9133
9134         relocatable-prog: fix link error
9135         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9136         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9137         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9138         into modules/relocatable-lib without noticing that
9139         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9140         also needs to build relocatable.c.
9141
9142 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9143
9144         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9145         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9146         shell code: it contained a 'break' that was not in a loop.
9147         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9148         via a shell-language loop; this may have been true in old Autoconf
9149         versions, but it's not true in Autoconf 2.68.  I found this bug
9150         when testing coreutils git on Solaris 8, whose shell complains
9151         about the syntax error.
9152
9153 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9154
9155         * lib/base64.c: Fix comment to reference RFC 4648.
9156         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9157         <gvtulder@gmail.com>.
9158
9159 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9160
9161         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9162
9163         po/Makefile.in.in: fix make -q problem
9164         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9165         rule, since there's no file named 'check-macro-version' and its
9166         use as a file breaks make -q.
9167         (all): Don't depend on check-macro-version.
9168         (CHECK_MACRO_VERSION): New macro.
9169         (stamp-po): Use it.
9170
9171         configmake: fix make -q problem
9172         * modules/configmake (configmake.h): Update configmake.h's time stamp
9173         even if the file does not change.  Otherwise, 'make -q' fails.
9174         Problem reported by Simon Josefsson in
9175         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9176
9177 2011-08-11  Jim Meyering  <meyering@redhat.com>
9178
9179         git-version-gen: correct the advice in a comment
9180         * build-aux/git-version-gen: Correct comment.
9181         Don't recommend to list .tarball-version in .gitignore.
9182
9183 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9184
9185         base64: fix off-by-one buffer size bug
9186         Problem and (trivial) fix reported by Gijs van Tulder in
9187         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9188         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9189         * tests/test-base64.c (main): Catch the bug.
9190
9191 2011-08-10  Eric Blake  <eblake@redhat.com>
9192
9193         closein: correct comments
9194         * lib/closein.c (close_stdin): Improve comments.
9195
9196 2011-08-09  Bruno Haible  <bruno@clisp.org>
9197
9198         More tests for 'fseeko'.
9199         * tests/test-fseeko3.c: New file, from Eric Blake.
9200         * tests/test-fseeko3.sh: New file.
9201         * modules/fseeko-tests (Files): Add them.
9202         (TESTS): Add test-fseeko3.sh.
9203         (check_PROGRAMS): Add test-fseeko3.
9204
9205 2011-08-09  Eric Blake  <eblake@redhat.com>
9206
9207         fseeko: remove unneeded hack
9208         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9209
9210         fseeko: fix bug on glibc
9211         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9212         Reported by John W. Eaton.
9213
9214 2011-08-08  Bruno Haible  <bruno@clisp.org>
9215
9216         unictype/base: Fix interoperability with preinstalled libunistring.
9217         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9218         Reported by Simon Josefsson.
9219
9220 2011-08-08  Bruno Haible  <bruno@clisp.org>
9221
9222         iswblank: Detect declaration correctly.
9223         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9224         AC_CHECK_DECLS invocation.
9225
9226 2011-08-08  Bruno Haible  <bruno@clisp.org>
9227
9228         tcgetsid: Detect declaration correctly.
9229         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9230         AC_CHECK_DECLS invocation.
9231         Reported by Simon Josefsson.
9232
9233 2011-08-08  Eric Blake  <eblake@redhat.com>
9234
9235         largefile: fix typo that regressed large file support
9236         * modules/largefile (configure.ac-early): Fix section name.
9237
9238 2011-08-06  Karl Berry  <karl@gnu.org>
9239
9240         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9241         a separate module.
9242
9243 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9244
9245         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9246         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9247         get prototype for free.
9248
9249 2011-08-04  Bruno Haible  <bruno@clisp.org>
9250
9251         Tests for module 'pathmax'.
9252         * modules/pathmax-tests: New file.
9253         * tests/test-pathmax.c: New file.
9254
9255         canonicalize-lgpl: Support larger filenames on the Hurd.
9256         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9257         Reported by Paul Eggert.
9258
9259         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9260         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9261         * lib/chdir-long.h: Include pathmax.h.
9262         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9263         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9264         (PATH_MAX): Remove code that is done by pathmax.h.
9265         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9266         * lib/tmpfile.c: Add a comment.
9267         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9268         * modules/chdir-long (Depends-on): Add pathmax.
9269         * modules/getcwd (Depends-on): Add pathmax.
9270         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9271         is not defined.
9272         * doc/posix-headers/limits.texi: Mention the pathmax module.
9273         * NEWS: Mention the change.
9274
9275 2011-08-02  Bruno Haible  <bruno@clisp.org>
9276
9277         pthread_sigmask: Actually use results of gl_THREADLIB.
9278         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9279         gl_THREADLIB, not gl_[]THREADLIB.
9280         Reported by Eric Blake.
9281
9282 2011-08-02  Jim Meyering  <meyering@redhat.com>
9283
9284         maint.mk: relax the default _gl_TS_function_match regexp
9285         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9286         space between function name and "(" in an "extern" declaration.
9287         That would fail to match a decl with no space there: extern void foo();
9288
9289 2011-07-31  Iain Nicol  <iain@thenicols.net>
9290
9291         git-version-gen: document that EXTRA_DIST must include .version
9292         * build-aux/git-version-gen: In the how-to-use comment, document
9293         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9294         will fail when run from an unpacked distribution tarball.
9295
9296 2011-08-01  Bruno Haible  <bruno@clisp.org>
9297
9298         wctype-h: Fix last change.
9299         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9300         REPLACE_TOWLOWER to 0.
9301         Reported by Sam Steingold <sds@gnu.org>.
9302
9303 2011-07-31  Bruno Haible  <bruno@clisp.org>
9304
9305         frexpl: Update autoconf test.
9306         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9307         according to changes of 2011-06-20.
9308
9309 2011-07-31  Bruno Haible  <bruno@clisp.org>
9310
9311         sys_utsname: Add support for Minix.
9312         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9313         <sys/utsname.h>.
9314         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9315         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9316
9317 2011-07-31  Bruno Haible  <bruno@clisp.org>
9318
9319         strings: Add support for Minix.
9320         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9321         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9322         * doc/posix-headers/strings.texi: Document the Minix problem.
9323
9324 2011-07-31  Bruno Haible  <bruno@clisp.org>
9325
9326         wctype-h: Add support for Minix.
9327         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9328         REPLACE_TOWLOWER.
9329         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9330         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9331         REPLACE_ISWCNTRL.
9332
9333 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9334
9335         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9336         This is a performance improvement for 64-bit hosts: it causes the
9337         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9338
9339 2011-07-31  Bruno Haible  <bruno@clisp.org>
9340
9341         stdioext: Add support for Minix.
9342         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9343         * lib/fpurge.c (fpurge): Likewise.
9344         * lib/freadahead.c (freadahead): Likewise.
9345         * lib/freadable.c (freadable): Likewise.
9346         * lib/freading.c (freading): Likewise.
9347         * lib/freadptr.c (freadptr): Likewise.
9348         * lib/freadseek.c (freadptrinc): Likewise.
9349         * lib/fseeko.c (rpl_fseeko): Likewise.
9350         * lib/fseterr.c (fseterr): Likewise.
9351         * lib/fwritable.c (fwritable): Likewise.
9352         * lib/fwriting.c (fwriting): Likewise.
9353         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9354         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9355
9356 2011-07-31  Bruno Haible  <bruno@clisp.org>
9357
9358         errno: Port to Minix.
9359         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9360         ECONNABORTED are defined.
9361         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9362         GNULIB_defined_ECONNABORTED): New macros.
9363         * lib/strerror-override.h (strerror_override): Test also
9364         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9365         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9366         ECONNABORTED.
9367         * doc/posix-headers/errno.texi: Mention the Minix problem.
9368
9369 2011-07-31  Bruno Haible  <bruno@clisp.org>
9370
9371         Work around declaration collisions on Minix.
9372         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9373         defined, set REPLACE_MBSINIT.
9374         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9375         defined, set REPLACE_MBRTOWC.
9376         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9377         set REPLACE_MBRLEN.
9378         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9379         defined, set REPLACE_MBSRTOWCS.
9380         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9381         defined, set REPLACE_WCRTOMB.
9382         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9383         defined, set REPLACE_WCSRTOMBS.
9384
9385 2011-07-31  Bruno Haible  <bruno@clisp.org>
9386
9387         Add support for Minix with ACK compiler.
9388         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9389         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9390         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9391
9392 2011-07-31  Bruno Haible  <bruno@clisp.org>
9393
9394         Documentation about Minix.
9395         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9396         * doc/glibc-headers/*.texi: Likewise.
9397         * doc/posix-functions/*.texi: Likewise.
9398         * doc/glibc-functions/*.texi: Likewise.
9399
9400 2011-07-31  Bruno Haible  <bruno@clisp.org>
9401
9402         snippet/warn-on-use: Fix indentation.
9403         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9404
9405 2011-07-25  Jim Meyering  <meyering@redhat.com>
9406
9407         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9408         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9409         commands.
9410
9411 2011-07-27  Jim Meyering  <meyering@redhat.com>
9412
9413         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9414         * top/maint.mk (gl_extract_significant_defines_): Now that
9415         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9416         gnulib/lib/signal.in.h, and now that we recommend to
9417         define-if-undefined those two symbols in application code,
9418         we must filter them out of the "significant" list.
9419         This avoids a "make syntax-check" failure in coreutils.
9420
9421 2011-07-26  Eric Blake  <eblake@redhat.com>
9422
9423         warnings: add comments about previous patch
9424         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9425         * m4/include_next.m4: Likewise.
9426         * m4/warn-on-use.m4: Likewise.
9427         * m4/warnings.m4: Likewise, and simplify use.
9428         Suggested by Stefano Lattarini.
9429
9430         include-next, warnings: support older autoconf
9431         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9432         AS_VAR_PUSHDEF in a way that works with older autoconf.
9433         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9434         Reported by Daniel P. Berrange.
9435
9436 2011-07-25  Bruno Haible  <bruno@clisp.org>
9437
9438         fseek, ftell: Fix doc.
9439         * doc/posix-functions/fseek.texi: Reword statement about
9440         AC_SYS_LARGEFILE.
9441         * doc/posix-functions/ftell.texi: Likewise.
9442
9443 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9444             Bruno Haible  <bruno@clisp.org>
9445
9446         Add dependencies to the 'largefile' module.
9447         * modules/fopen (Depends-on): Add 'largefile'.
9448         * modules/freopen (Depends-on): Likewise.
9449         * modules/fseeko (Depends-on): Likewise.
9450         * modules/ftello (Depends-on): Likewise.
9451         * modules/glob (Depends-on): Likewise.
9452         * modules/lseek (Depends-on): Likewise.
9453         * modules/lstat (Depends-on): Likewise.
9454         * modules/mkostemp (Depends-on): Likewise.
9455         * modules/mkostemps (Depends-on): Likewise.
9456         * modules/mkstemp (Depends-on): Likewise.
9457         * modules/mkstemps (Depends-on): Likewise.
9458         * modules/open (Depends-on): Likewise.
9459         * modules/openat (Depends-on): Likewise.
9460         * modules/pread (Depends-on): Likewise.
9461         * modules/pwrite (Depends-on): Likewise.
9462         * modules/scandir (Depends-on): Likewise.
9463         * modules/stat (Depends-on): Likewise.
9464         * modules/tmpfile (Depends-on): Likewise.
9465         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
9466         since the containing module now depends on the largefile module.
9467         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
9468         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
9469         off_t is fixed by gnulib.
9470         * doc/posix-functions/freopen.texi: Likewise.
9471         * doc/posix-functions/fseeko.texi: Likewise.
9472         * doc/posix-functions/fstatat.texi: Likewise.
9473         * doc/posix-functions/ftello.texi: Likewise.
9474         * doc/posix-functions/glob.texi: Likewise.
9475         * doc/posix-functions/lseek.texi: Likewise.
9476         * doc/posix-functions/lstat.texi: Likewise.
9477         * doc/posix-functions/mkstemp.texi: Likewise.
9478         * doc/posix-functions/open.texi: Likewise.
9479         * doc/posix-functions/openat.texi: Likewise.
9480         * doc/posix-functions/pread.texi: Likewise.
9481         * doc/posix-functions/pwrite.texi: Likewise.
9482         * doc/posix-functions/scandir.texi: Likewise.
9483         * doc/posix-functions/stat.texi: Likewise.
9484         * doc/posix-functions/tmpfile.texi: Likewise.
9485         * doc/glibc-functions/mkostemp.texi: Likewise.
9486         * doc/glibc-functions/mkostemps.texi: Likewise.
9487         * doc/glibc-functions/mkstemps.texi: Likewise.
9488
9489 2011-07-25  Bruno Haible  <bruno@clisp.org>
9490
9491         fcntl: Move AC_LIBOBJ invocation to module description.
9492         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
9493         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
9494
9495         fcntl: Remove call-in from fchdir.m4.
9496         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
9497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
9498
9499         dup3: Remove potential call-in from fchdir.m4.
9500         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
9501         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
9502
9503         dup2: Move AC_LIBOBJ invocation to module description.
9504         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
9505         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
9506         Don't invoke AC_LIBOBJ.
9507         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
9508
9509         dup2: Remove call-in from fchdir.m4.
9510         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
9511         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
9512
9513         fclose: Move AC_LIBOBJ invocation to module description.
9514         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
9515         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
9516         to 1.
9517         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
9518
9519         fclose: Remove call-in from close.m4.
9520         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
9521         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
9522
9523         close: Move AC_LIBOBJ invocation to module description.
9524         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
9525         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
9526         1.
9527         * modules/close (configure.ac): Invoke AC_LIBOBJ.
9528
9529         close: Remove call-in from fchdir.m4.
9530         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
9531         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
9532
9533         open: Move AC_LIBOBJ invocation to module description.
9534         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
9535         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
9536         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
9537
9538         open: Remove call-in from fchdir.m4.
9539         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
9540         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
9541
9542         fchdir: Start to remove gl_REPLACE_* idiom.
9543         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
9544         (gl_FUNC_FCHDIR): Invoke it.
9545
9546 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
9547
9548         * lib/ftell.c (ftell): Comment out cast.
9549
9550         close: use gl_REPLACE_FCLOSE only if defined
9551         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
9552         is defined.  The close module doesn't depend on the fclose module
9553         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
9554         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
9555         I reproduced the problem with "./gnulib-tool --test close sys_socket".
9556
9557 2011-07-24  Jim Meyering  <meyering@redhat.com>
9558
9559         test-select.h: avoid warning when using gcc's -Wmissing-declarations
9560         * tests/test-select.h (test_function): Declare as "static".
9561
9562 2011-07-24  Bruno Haible  <bruno@clisp.org>
9563
9564         doc: Mention the effects of AC_SYS_LARGEFILE.
9565         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
9566         on this function.
9567         * doc/posix-functions/aio_error.texi: Likewise.
9568         * doc/posix-functions/aio_fsync.texi: Likewise.
9569         * doc/posix-functions/aio_read.texi: Likewise.
9570         * doc/posix-functions/aio_return.texi: Likewise.
9571         * doc/posix-functions/aio_suspend.texi: Likewise.
9572         * doc/posix-functions/aio_write.texi: Likewise.
9573         * doc/posix-functions/fgetpos.texi: Likewise.
9574         * doc/posix-functions/fopen.texi: Likewise.
9575         * doc/posix-functions/freopen.texi: Likewise.
9576         * doc/posix-functions/fsetpos.texi: Likewise.
9577         * doc/posix-functions/fstatvfs.texi: Likewise.
9578         * doc/posix-functions/ftruncate.texi: Likewise.
9579         * doc/posix-functions/ftw.texi: Likewise.
9580         * doc/posix-functions/getrlimit.texi: Likewise.
9581         * doc/posix-functions/glob.texi: Likewise.
9582         * doc/posix-functions/lio_listio.texi: Likewise.
9583         * doc/posix-functions/lockf.texi: Likewise.
9584         * doc/posix-functions/mkstemp.texi: Likewise.
9585         * doc/posix-functions/mmap.texi: Likewise.
9586         * doc/posix-functions/nftw.texi: Likewise.
9587         * doc/posix-functions/openat.texi: Likewise.
9588         * doc/posix-functions/opendir.texi: Likewise.
9589         * doc/posix-functions/posix_fadvise.texi: Likewise.
9590         * doc/posix-functions/posix_fallocate.texi: Likewise.
9591         * doc/posix-functions/pread.texi: Likewise.
9592         * doc/posix-functions/pwrite.texi: Likewise.
9593         * doc/posix-functions/readdir.texi: Likewise.
9594         * doc/posix-functions/readdir_r.texi: Likewise.
9595         * doc/posix-functions/rewinddir.texi: Likewise.
9596         * doc/posix-functions/scandir.texi: Likewise.
9597         * doc/posix-functions/seekdir.texi: Likewise.
9598         * doc/posix-functions/setrlimit.texi: Likewise.
9599         * doc/posix-functions/statvfs.texi: Likewise.
9600         * doc/posix-functions/telldir.texi: Likewise.
9601         * doc/posix-functions/tmpfile.texi: Likewise.
9602         * doc/posix-functions/truncate.texi: Likewise.
9603         * doc/glibc-functions/fallocate.texi: Likewise.
9604         * doc/glibc-functions/fstatfs.texi: Likewise.
9605         * doc/glibc-functions/fts_children.texi: Likewise.
9606         * doc/glibc-functions/fts_read.texi: Likewise.
9607         * doc/glibc-functions/getdirentries.texi: Likewise.
9608         * doc/glibc-functions/mkostemp.texi: Likewise.
9609         * doc/glibc-functions/mkostemps.texi: Likewise.
9610         * doc/glibc-functions/mkstemps.texi: Likewise.
9611         * doc/glibc-functions/preadv.texi: Likewise.
9612         * doc/glibc-functions/pwritev.texi: Likewise.
9613         * doc/glibc-functions/sendfile.texi: Likewise.
9614         * doc/glibc-functions/statfs.texi: Likewise.
9615
9616 2011-07-24  Bruno Haible  <bruno@clisp.org>
9617
9618         doc: Fix typo.
9619         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
9620
9621 2011-07-24  Bruno Haible  <bruno@clisp.org>
9622
9623         doc: Mention fsusage.
9624         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
9625
9626 2011-07-24  Bruno Haible  <bruno@clisp.org>
9627
9628         doc: Mention new glibc headers and functions.
9629         * doc/glibc-headers/gshadow.texi: New file.
9630         * doc/glibc-functions/endsgent.texi: New file.
9631         * doc/glibc-functions/fgetsgent.texi: New file.
9632         * doc/glibc-functions/fgetsgent_r.texi: New file.
9633         * doc/glibc-functions/getsgent.texi: New file.
9634         * doc/glibc-functions/getsgent_r.texi: New file.
9635         * doc/glibc-functions/getsgnam.texi: New file.
9636         * doc/glibc-functions/getsgnam_r.texi: New file.
9637         * doc/glibc-functions/putsgent.texi: New file.
9638         * doc/glibc-functions/setsgent.texi: New file.
9639         * doc/glibc-functions/sgetsgent.texi: New file.
9640         * doc/glibc-functions/sgetsgent_r.texi: New file.
9641         * doc/glibc-functions/malloc_info.texi: New file.
9642         * doc/glibc-functions/preadv.texi: New file.
9643         * doc/glibc-functions/pwritev.texi: New file.
9644         * doc/glibc-functions/register_printf_modifier.texi: New file.
9645         * doc/glibc-functions/register_printf_specifier.texi: New file.
9646         * doc/glibc-functions/register_printf_type.texi: New file.
9647         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
9648         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
9649         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
9650         * doc/glibc-functions/pthread_getname_np.texi: New file.
9651         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
9652         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
9653         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
9654         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
9655         * doc/glibc-functions/pthread_setname_np.texi: New file.
9656         * doc/glibc-functions/pthread_sigqueue.texi: New file.
9657         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
9658         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
9659         * doc/glibc-functions/qsort_r.texi: New file.
9660         * doc/glibc-functions/quick_exit.texi: New file.
9661         * doc/glibc-functions/syncfs.texi: New file.
9662         * doc/gnulib.texi: Include them.
9663         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
9664         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
9665         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
9666         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
9667         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
9668         * doc/glibc-functions/execvpe.texi: Likewise.
9669
9670 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9671
9672         ftell: don't include <unistd.h>
9673         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
9674         guaranteed to define off_t, and the ftell module depends on the
9675         stdio module.
9676
9677         ftell: do not assume wraparound signed arithmetic
9678         * lib/ftell.c: Include <limits.h>.
9679         (ftell): Don't assume wraparound signed arithmetic.
9680
9681 2011-07-24  Bruno Haible  <bruno@clisp.org>
9682
9683         close: No longer depend on module 'fclose'.
9684         * modules/close (Depends-on): Remove fclose.
9685         * NEWS: Mention the change.
9686         Suggested by Sam Steingold <sds@gnu.org>.
9687
9688 2011-07-24  Bruno Haible  <bruno@clisp.org>
9689
9690         fsusage: Enable large volume support on AIX >= 5.2.
9691         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
9692         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
9693         instead of STAT_STATVFS.
9694         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
9695
9696         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
9697         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
9698         f_blocks field only on MacOS X.
9699
9700         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
9701         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
9702         * modules/fsusage (Depends-on): Add largefile.
9703
9704 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
9705
9706         * README: Modernize discussion of signed integers.
9707         Assuming overflow wraparound is no longer safe.
9708         Mention ones' complement and signed magnitude.
9709
9710 2011-07-22  Bruno Haible  <bruno@clisp.org>
9711
9712         select tests, pselect tests: Refactor.
9713         * tests/test-select.h: New file, extracted from tests/test-select.c.
9714         (select_fn): New type.
9715         (test, do_select, do_select_nowait, do_select_wait, test_tty,
9716         test_connect_first, test_accept_first, test_pair, test_socket_pair,
9717         test_pipe): Add my_select argument.
9718         (test_function): Renamed from main. Add my_select argument.
9719         * tests/test-select.c: Move most code to tests/test-select.h. Include
9720         test-select.h.
9721         * modules/select-tests (Files): Add tests/test-select.h.
9722         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
9723         (my_select, main): New functions.
9724         * modules/pselect-tests (Files): Add tests/test-select.h,
9725         tests/macros.h, tests/signature.h.
9726         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
9727         (configure.ac): Check for <sys/wait.h>.
9728
9729 2011-07-22  Bruno Haible  <bruno@clisp.org>
9730
9731         sys_select tests: Check the signature of FD_*.
9732         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
9733         signature tests from here...
9734         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
9735         here.
9736         * modules/sys_select-tests (Files): Add tests/signature.h.
9737
9738 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
9739
9740         largefile: new module, replacing large-inode
9741         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
9742         * MODULES.html.sh: Add largefile, remove large-inode.
9743         * modules/largefile, m4/largefile.m4: New files.
9744         * modules/large-inode, m4/large-inode.m4: Remove.
9745
9746         fsusage: port to MacOS X 10.7 with 4 TiB file systems
9747         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
9748         implementations that use only 32 bits to count blocks.
9749         On typical hosts with 1024-byte blocks, this fails with file
9750         systems as small as 4 TiB.  Problem reported by Herb Wartens
9751         <http://debbugs.gnu.org/9140> and this should also fix a similar
9752         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
9753
9754         large-inode: New module
9755         * MODULES.html.sh: Add it.
9756         * modules/large-inode, m4/large-inode.m4: New files.
9757
9758         extensions: Enable extensions on MacOS X 10.5 and later.
9759         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
9760
9761 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
9762
9763         file-has-acl: use acl_extended_file_nofollow if available
9764         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
9765         (acl_extended_file): New macro.
9766         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
9767         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
9768
9769 2011-07-21  Bruno Haible  <bruno@clisp.org>
9770
9771         Declare system functions in a way that works with C++.
9772         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
9773         declare fdopendir as extern "C".
9774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
9775         declare frexpl as extern "C".
9776         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
9777         declare gai_strerror as extern "C".
9778         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
9779         programs, declare gai_strerror as extern "C".
9780         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
9781         declare getlogin_r as extern "C".
9782         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
9783         as extern "C".
9784         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
9785         declare ldexpl as extern "C".
9786         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
9787         as extern "C".
9788         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
9789         program, declare getmntinfo as extern "C".
9790         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
9791         stpncpy as extern "C".
9792         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
9793         program, declare __xpg_strerror_r as extern "C".
9794         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
9795         strndup as extern "C".
9796         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
9797         declare memset and bzero as extern "C".
9798         Reported by Sam Steingold <sds@gnu.org>.
9799
9800 2011-07-12  Jim Meyering  <meyering@redhat.com>
9801
9802         maint.mk: prohibit inclusion of "verify.h" without use
9803         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
9804
9805 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9806
9807         timer-time: A new module to check for timer_settime()
9808         * m4/timer_time.m4: Check for the posix function.
9809         * modules/timer-time: Add the new module.
9810         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
9811         Mention it.
9812
9813 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
9814             Bruno Haible  <bruno@clisp.org>
9815
9816         pthread_sigmask: assume POSIX threads if --avoid=threadlib
9817         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
9818         not defined, assume POSIX threads and look for pthread_sigmask in
9819         $LIBS, without changing $CPPFLAGS.
9820
9821 2011-07-19  Bruno Haible  <bruno@clisp.org>
9822
9823         strstr: Update cross-compilation guess.
9824         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
9825         CPUs, guess no, in view of glibc
9826         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
9827         Suggested by Eric Blake. Reported by Reuben Thomas.
9828
9829 2011-07-19  Pádraig Brady  <P@draigBrady.com>
9830
9831         getopt-gnu: suppress core dumps from detection code
9832         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
9833         to suppress core dumps that may well occur on glibc systems.
9834         * modules/getopt-gnu: Depend on nocrash.
9835
9836 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
9837
9838         pthread_sigmask: ensure usleep is declared
9839         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
9840         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
9841
9842 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
9843
9844         doc: Document NonStop portability issues.
9845         * doc/posix-functions/sigaction.texi (sigaction):
9846         * doc/posix-headers/signal.texi (signal.h):
9847         Document NonStop.  See Joachim Schmitz in
9848         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
9849
9850 2011-07-15  Bruno Haible  <bruno@clisp.org>
9851
9852         ffsl, ffsll: Avoid unportable behaviour.
9853         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
9854
9855 2011-07-15  Bruno Haible  <bruno@clisp.org>
9856
9857         ffs: More tests.
9858         * tests/test-ffs.c (NBITS): New macro.
9859         (main): Add more tests.
9860         * tests/test-ffsl.c (NBITS): New macro.
9861         (main): Add more tests.
9862         * tests/test-ffsll.c (NBITS): New macro.
9863         (main): Add more tests.
9864
9865 2011-07-15  Eric Blake  <eblake@redhat.com>
9866
9867         ffsl, ffsll: new modules
9868         * modules/ffsl: New file.
9869         * modules/ffsll: Likewise.
9870         * m4/ffsl.m4: Likewise.
9871         * m4/ffsll.m4: Likewise.
9872         * lib/ffsl.c: Likewise.
9873         * lib/ffsl.h: Likewise.
9874         * lib/ffsll.c: Likewise.
9875         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
9876         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
9877         * modules/string (Makefile.am): Substitute witnesses.
9878         * lib/strings.in.h (ffsl, ffsll): Declare.
9879         * modules/ffsl-tests: New test file.
9880         * modules/ffsll-tests: Likewise.
9881         * tests/test-ffsl.c: Likewise.
9882         * tests/test-ffsll.c: Likewise.
9883         * MODULES.html.sh (Integer arithmetic functions): Mention it.
9884         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
9885         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
9886
9887         ffs: fix m4 prerequisite
9888         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
9889
9890         ffs: avoid undefined behavior
9891         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
9892         * tests/test-ffs.c (naive, main): Avoid signed shifts.
9893         Reported by Bruno Haible.
9894
9895 2011-07-12  Bruno Haible  <bruno@clisp.org>
9896
9897         pthread_sigmask: Rely on module 'threadlib'.
9898         * modules/pthread_sigmask (Depends-on): Add threadlib.
9899         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
9900         is defined.
9901
9902 2011-07-12  Bruno Haible  <bruno@clisp.org>
9903
9904         regex: Depend on module 'strcase'.
9905         * modules/regex (Depends-on): Add strcase, for strcasecmp().
9906
9907 2011-07-12  Jim Meyering  <meyering@redhat.com>
9908
9909         warn-on-use: fix typo in file name
9910         * modules/snippet/warn-on-use (Files): Correct file name:
9911         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
9912
9913 2011-07-12  Bruno Haible  <bruno@clisp.org>
9914
9915         strings: Document module.
9916         * doc/posix-headers/strings.texi: Mention module 'strings'.
9917
9918 2011-07-12  Bruno Haible  <bruno@clisp.org>
9919
9920         Rename module '_Noreturn' to 'snippet/_Noreturn'.
9921         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
9922         (Files, Makefile.am): Update.
9923         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
9924         * modules/stdlib (Depends-on): Update.
9925
9926 2011-07-12  Bruno Haible  <bruno@clisp.org>
9927
9928         * NEWS: Mention the changes.
9929
9930         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
9931         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
9932         (Files, Makefile.am): Update.
9933         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
9934         * modules/arpa_inet (Depends-on): Update.
9935         * modules/ctype (Depends-on): Update.
9936         * modules/dirent (Depends-on): Update.
9937         * modules/fcntl-h (Depends-on): Update.
9938         * modules/glob (Depends-on): Update.
9939         * modules/iconv-h (Depends-on): Update.
9940         * modules/inttypes-incomplete (Depends-on): Update.
9941         * modules/langinfo (Depends-on): Update.
9942         * modules/locale (Depends-on): Update.
9943         * modules/math (Depends-on): Update.
9944         * modules/netdb (Depends-on): Update.
9945         * modules/poll-h (Depends-on): Update.
9946         * modules/pty (Depends-on): Update.
9947         * modules/search (Depends-on): Update.
9948         * modules/signal (Depends-on): Update.
9949         * modules/spawn (Depends-on): Update.
9950         * modules/stdio (Depends-on): Update.
9951         * modules/stdlib (Depends-on): Update.
9952         * modules/string (Depends-on): Update.
9953         * modules/strings (Depends-on): Update.
9954         * modules/sys_file (Depends-on): Update.
9955         * modules/sys_ioctl (Depends-on): Update.
9956         * modules/sys_select (Depends-on): Update.
9957         * modules/sys_socket (Depends-on): Update.
9958         * modules/sys_stat (Depends-on): Update.
9959         * modules/sys_time (Depends-on): Update.
9960         * modules/sys_times (Depends-on): Update.
9961         * modules/sys_utsname (Depends-on): Update.
9962         * modules/sys_wait (Depends-on): Update.
9963         * modules/termios (Depends-on): Update.
9964         * modules/time (Depends-on): Update.
9965         * modules/unistd (Depends-on): Update.
9966         * modules/wchar (Depends-on): Update.
9967         * modules/wctype-h (Depends-on): Update.
9968         * MODULES.html.sh (Support for building libraries and executables):
9969         Update.
9970
9971         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
9972         * modules/snippet/unused-parameter: Renamed from
9973         modules/unused-parameter.
9974         (Files, Makefile.am): Update.
9975         * build-aux/snippet/unused-parameter.h: Renamed from
9976         build-aux/unused-parameter.h.
9977         * modules/selinux-h (Depends-on): Update.
9978         * modules/unistr/base (Depends-on): Update.
9979         * MODULES.html.sh (Core language properties): Update.
9980
9981         Rename module 'link-warning' to 'snippet/link-warning'.
9982         * modules/snippet/link-warning: Renamed from modules/link-warning.
9983         (Files, Makefile.am): Update.
9984         * build-aux/snippet/link-warning.h: Renamed from
9985         build-aux/link-warning.h.
9986         * MODULES.html.sh (Support for building libraries and executables):
9987         Update.
9988
9989         Rename module 'c++defs' to 'snippet/c++defs'.
9990         * modules/snippet/c++defs: Renamed from modules/c++defs.
9991         (Files, Makefile.am): Update.
9992         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
9993         * modules/arpa_inet (Depends-on): Update.
9994         * modules/ctype (Depends-on): Update.
9995         * modules/dirent (Depends-on): Update.
9996         * modules/fcntl-h (Depends-on): Update.
9997         * modules/glob (Depends-on): Update.
9998         * modules/iconv-h (Depends-on): Update.
9999         * modules/langinfo (Depends-on): Update.
10000         * modules/locale (Depends-on): Update.
10001         * modules/math (Depends-on): Update.
10002         * modules/netdb (Depends-on): Update.
10003         * modules/poll-h (Depends-on): Update.
10004         * modules/pty (Depends-on): Update.
10005         * modules/search (Depends-on): Update.
10006         * modules/signal (Depends-on): Update.
10007         * modules/spawn (Depends-on): Update.
10008         * modules/stdio (Depends-on): Update.
10009         * modules/stdlib (Depends-on): Update.
10010         * modules/string (Depends-on): Update.
10011         * modules/strings (Depends-on): Update.
10012         * modules/sys_ioctl (Depends-on): Update.
10013         * modules/sys_select (Depends-on): Update.
10014         * modules/sys_socket (Depends-on): Update.
10015         * modules/sys_stat (Depends-on): Update.
10016         * modules/sys_time (Depends-on): Update.
10017         * modules/sys_wait (Depends-on): Update.
10018         * modules/termios (Depends-on): Update.
10019         * modules/time (Depends-on): Update.
10020         * modules/unistd (Depends-on): Update.
10021         * modules/wchar (Depends-on): Update.
10022         * modules/wctype-h (Depends-on): Update.
10023
10024         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10025         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10026         (Files, Makefile.am): Update.
10027         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10028         * modules/argv-iter (Depends-on): Update.
10029         * modules/arpa_inet (Depends-on): Update.
10030         * modules/dirent (Depends-on): Update.
10031         * modules/fcntl-h (Depends-on): Update.
10032         * modules/fnmatch (Depends-on): Update.
10033         * modules/getopt-posix (Depends-on): Update.
10034         * modules/glob (Depends-on): Update.
10035         * modules/iconv-h (Depends-on): Update.
10036         * modules/inttypes-incomplete (Depends-on): Update.
10037         * modules/locale (Depends-on): Update.
10038         * modules/math (Depends-on): Update.
10039         * modules/netdb (Depends-on): Update.
10040         * modules/search (Depends-on): Update.
10041         * modules/signal (Depends-on): Update.
10042         * modules/spawn (Depends-on): Update.
10043         * modules/stdio (Depends-on): Update.
10044         * modules/stdlib (Depends-on): Update.
10045         * modules/string (Depends-on): Update.
10046         * modules/strings (Depends-on): Update.
10047         * modules/sys_socket (Depends-on): Update.
10048         * modules/sys_stat (Depends-on): Update.
10049         * modules/sys_time (Depends-on): Update.
10050         * modules/sys_times (Depends-on): Update.
10051         * modules/sys_utsname (Depends-on): Update.
10052         * modules/time (Depends-on): Update.
10053         * modules/unistd (Depends-on): Update.
10054         * modules/wchar (Depends-on): Update.
10055         * MODULES.html.sh (Support for building libraries and executables):
10056         Update.
10057
10058 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10059
10060         Improvements on _Noreturn and related modules.
10061
10062         modules/_Exit-tests: test _Noreturn too
10063         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10064         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10065         (main): Use them.
10066
10067         stdnoreturn, stdnoreturn-tests: remove modules
10068         They're not needed here and a bit premature for use elsewhere.  See
10069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10070         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10071         * tests/test-stdnoreturn.c: Remove files.
10072         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10073         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10074         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10075         and using noreturn.
10076         * modules/openat, modules/sigpipe-die, modules/xalloc:
10077         * modules/xmemdup0, modules/xstrtol:
10078         Remove dependency on stdnoreturn.
10079
10080         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10081         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10082         Reparenthesize to avoid GCC warning.
10083         Support Microsoft's syntax.
10084         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10085
10086         _Noreturn-tests: remove module
10087         * modules/_Noreturn-tests: Remove.
10088         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10089         * tests/test-_Noreturn.c: Remove.
10090         * tests/test-stdnoreturn.c: Merge from the old
10091         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10092
10093 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10094
10095         _Noreturn, stdnoreturn, and related modules.
10096
10097         * top/maint.mk: Adjust to new noreturn support.
10098         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10099         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10100
10101         xalloc: use stdnoreturn.h
10102         * lib/xalloc.h: Include <stdnoreturn.h>.
10103         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10104         * modules/xalloc (Depends-on): Add stdnoreturn.
10105
10106         xstrtol: use stdnoreturn.h
10107         * lib/xstrtol.h: Include <stdnoreturn.h>.
10108         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10109         * modules/xstrtol (Depends-on): Add stdnoreturn.
10110
10111         xmemdup0: use stdnoreturn.h
10112         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10113         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10114         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10115
10116         sigpipe-die: use stdnoreturn.h
10117         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10118         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10119         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10120
10121         openat: use stdnoreturn.h
10122         * lib/openat.h: Include <stdnoreturn.h>.
10123         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10124         * modules/openat (Depends-on): Add stdnoreturn.
10125
10126         * lib/openat-die.c (openat_save_fail): Modernize comment.
10127
10128         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10129
10130         * lib/glthread/thread.h: Modernize comment.
10131
10132         obstack: use _Noreturn
10133         * lib/obstack.c (__attribute__): Remove macro.
10134         (print_and_abort): Use _Noreturn.
10135
10136         c-stack: use _Noreturn
10137         * lib/c-stack.c (die, overflow_handler, segv_handler):
10138         Use _Noreturn rather than __attribute__((noreturn)).
10139
10140         argmatch-tests, exclude_tests: use _Noreturn
10141         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10142         Remove.
10143         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10144
10145         stdlib: use _Noreturn
10146         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10147         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10148         * modules/stdlib (Depends-on): Add _Noreturn.
10149         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10150
10151         stdnoreturn-tests: new module
10152         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10153
10154         stdnoreturn: new module
10155         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10156         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10157
10158         _Noreturn-tests: new module
10159         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10160
10161         _Noreturn: new module
10162         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10163         New section, mentioning it.
10164         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10165
10166         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10167
10168 2011-07-11  Eric Blake  <eblake@redhat.com>
10169
10170         ffs: new module
10171         * modules/ffs: New file.
10172         * m4/ffs.m4: Likewise.
10173         * lib/ffs.c: Likewise.
10174         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10175         * modules/strings (Makefile.am): Substitute witness.
10176         (Depends-on): Add c++defs.
10177         * lib/strings.in.h (ffs): Declare.
10178         * modules/ffs-tests: New test file.
10179         * tests/test-ffs.c: Test new module.
10180         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10181         * doc/posix-functions/ffs.texi (ffs): Likewise.
10182
10183         regex: avoid compiler warning
10184         * lib/regex.c (includes): Include <strings.h>, for use of
10185         strcasecmp in regcomp.c.
10186         Reported by Joachim Schmitz.
10187
10188 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10189
10190         stdint: respect system's intmax_t if INTMAX_MAX
10191         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10192         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10193         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10194         long but int64_t is long long, and where we will clash with the
10195         system intmax_t if we override it.  See
10196         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10197         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10198         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10199         similarly for UINTMAX_C.
10200
10201 2011-07-08  Bruno Haible  <bruno@clisp.org>
10202
10203         pthread_sigmask tests: Avoid a compiler warning.
10204         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10205         non-zero.
10206
10207         sigprocmask tests: A better way to avoid a compiler warning.
10208         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10209         (main): Complain if system() returns non-zero.
10210         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10211
10212 2011-07-08  Bruno Haible  <bruno@clisp.org>
10213
10214         pthread_sigmask: Work around IRIX bug.
10215         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10216         bug.
10217         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10218         there may be unblocked pending signals.
10219         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10220
10221 2011-07-08  Bruno Haible  <bruno@clisp.org>
10222
10223         pthread_sigmask: Work around Cygwin bug.
10224         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10225         bug.
10226         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10227         the system's pthread_sigmask function.
10228         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10229
10230 2011-07-08  Bruno Haible  <bruno@clisp.org>
10231
10232         pthread_sigmask: Work around bug in single-threaded implementation.
10233         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10234         FreeBSD, HP-UX, Solaris bug.
10235         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10236         * lib/pthread_sigmask.c: Include <stddef.h>.
10237         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10238         the system's pthread_sigmask function.
10239         * modules/pthread_sigmask (configure.ac): Invoke
10240         gl_PREREQ_PTHREAD_SIGMASK.
10241         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10242         HP-UX, Solaris.
10243
10244 2011-07-08  Eric Blake  <eblake@redhat.com>
10245
10246         test-sigprocmask: avoid compiler warning
10247         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10248         * tests/test-sigprocmask.c (main): Use it to silence warning.
10249         Reported by Jim Meyering.
10250
10251         test-snprintf: avoid compiler warning
10252         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10253         * tests/test-vsnprintf.c (main): Likewise.
10254         Reported by Jim Meyering.
10255
10256 2011-07-08  Bruno Haible  <bruno@clisp.org>
10257
10258         Tests for module 'pthread_sigmask'.
10259         * modules/pthread_sigmask-tests: New file.
10260         * tests/test-pthread_sigmask1.c: New file, based on
10261         tests/test-sigprocmask.c.
10262         * tests/test-pthread_sigmask2.c: New file.
10263
10264 2011-07-08  Jim Meyering  <meyering@redhat.com>
10265
10266         test-getopt.h: avoid warning about an unused variable
10267         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10268
10269 2011-07-07  Jim Meyering  <meyering@redhat.com>
10270
10271         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10272         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10273         now that it no longer contains leading TABs.
10274         Remove unused "url=FIXME" statement.
10275
10276 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10277
10278         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10279         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10280         When gl_THREADLIB is not in use, assume that the POSIX sematics
10281         are desired.  This is better for Emacs, which uses POSIX semantics
10282         on GNUish and/or POSIXish platforms, and does not use threads at
10283         all otherwise.
10284
10285         pthread_sigmask: fix typo when testing for libraries
10286         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10287         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10288
10289 2011-07-08  Eric Blake  <eblake@redhat.com>
10290
10291         fts: introduce FTS_NOATIME
10292         * lib/fts_.h (FTS_NOATIME): New bit flag.
10293         (FTS_OPTIONMASK): Adjust.
10294         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10295         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10296
10297 2011-07-08  Bruno Haible  <bruno@clisp.org>
10298
10299         Tests for module 'thread'.
10300         * modules/thread-tests: New file.
10301         * tests/test-thread_self.c: New file.
10302         * tests/test-thread_create.cc: New file.
10303
10304 2011-07-08  Bruno Haible  <bruno@clisp.org>
10305
10306         thread: Avoid gcc warnings when using gl_thread_self().
10307         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10308         'void *'.
10309         (gl_thread_self_pointer): Update.
10310
10311 2011-07-07  Bruno Haible  <bruno@clisp.org>
10312
10313         signal-c++-tests: Check declaration of pthread_sigmask.
10314         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10315         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10316         $(LIB_PTHREAD_SIGMASK).
10317
10318 2011-07-07  Bruno Haible  <bruno@clisp.org>
10319
10320         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10321         * lib/signal.in.h (pthread_sigmask): Override if
10322         REPLACE_PTHREAD_SIGMASK is 1.
10323         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10324         REPLACE_PTHREAD_SIGMASK.
10325         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10326         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10327         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10328         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10329         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10330
10331 2011-07-07  Bruno Haible  <bruno@clisp.org>
10332
10333         pthread_sigmask: Ensure declaration in <signal.h>.
10334         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10335         include <pthread.h>.
10336         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10337         problem.
10338
10339 2011-07-07  Bruno Haible  <bruno@clisp.org>
10340
10341         pthread_sigmask: Document the module.
10342         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10343
10344 2011-07-07  Bruno Haible  <bruno@clisp.org>
10345
10346         pthread_sigmask: Follow gnulib conventions.
10347         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10348         gl_PTHREAD_SIGMASK.
10349         * modules/pthread_sigmask (configure.ac): Update.
10350
10351 2011-07-07  Bruno Haible  <bruno@clisp.org>
10352
10353         pthread_sigmask: Make declaration C++ safe.
10354         * lib/signal.in.h: In two special conditions, just do an #include_next.
10355         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10356         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10357         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10358         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10359         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10360         not REPLACE_PTHREAD_MASK.
10361         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10362         not REPLACE_PTHREAD_MASK.
10363         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10364
10365 2011-07-07  Bruno Haible  <bruno@clisp.org>
10366
10367         pthread_sigmask: Fix return value.
10368         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10369         * lib/pthread_sigmask.c: New file.
10370         * modules/pthread_sigmask (Files): Add it.
10371         (configure.ac): Invoke AC_LIBOBJ.
10372
10373 2011-07-07  Eric Blake  <eblake@redhat.com>
10374
10375         getopt: more portable argv creation
10376         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10377         const, use char arrays rather than strings.
10378         Suggested by Paul Eggert.
10379
10380 2011-07-07  Bruno Haible  <bruno@clisp.org>
10381
10382         Tests for module 'sigprocmask'.
10383         * modules/sigprocmask-tests: New file.
10384         * tests/test-sigprocmask.c: New file.
10385
10386 2011-07-07  Bruno Haible  <bruno@clisp.org>
10387
10388         float tests: Tweak.
10389         * tests/test-float.c (main): Tweak skip message.
10390
10391 2011-07-07  Eric Blake  <eblake@redhat.com>
10392
10393         getopt: avoid compiler warning during configure
10394         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10395         assigning string literals to non-const pointer.
10396
10397         getopt-gnu: avoid crash in glibc getopt
10398         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10399         * tests/test-getopt.h (test_getopt): Enhance test.
10400         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10401         * doc/posix-functions/getopt.texi (getopt): Document it.
10402         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10403         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10404         Likewise.
10405
10406 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10407
10408         getopt: handle W; without long options in getopt [BZ #12922]
10409         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10410         but no long options are defined, just return 'W'.
10411
10412 2011-07-07  Bruno Haible  <bruno@clisp.org>
10413
10414         Avoid literal tabs.
10415         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10416         variable containing a tab instead of a literal tab.
10417         Reported by Jim Meyering.
10418
10419 2011-07-07  Bruno Haible  <bruno@clisp.org>
10420
10421         Comments.
10422         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10423
10424 2011-07-06  Bruno Haible  <bruno@clisp.org>
10425
10426         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10427         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10428         <winsock2.h>.
10429         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10430         lib/sys_socket.in.h.
10431         (close, gethostname): Hide declarations from <winsock2.h>.
10432         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10433         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10434         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10435         (select): Don't override if gnulib's <sys/select.h> was already
10436         included.
10437         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
10438         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
10439         setsockopt, shutdown, select): Tweak indentation.
10440
10441 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10442
10443         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
10444         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
10445         in an application that does not use the sys_select module.
10446
10447 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
10448
10449         poll: do not return 0 on timeout=-1
10450         * lib/poll.c: Loop with yield if no events occured
10451
10452 2011-07-06  Eric Blake  <eblake@redhat.com>
10453
10454         pthread_sigmask: always replace when not using pthread
10455         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
10456         replacement when using some threading other than pthread.  Fix
10457         logic bug.
10458
10459 2011-07-06  Bruno Haible  <bruno@clisp.org>
10460
10461         Comments.
10462         * m4/printf.m4: Update comments about mingw.
10463
10464 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
10465
10466         sys_select: define sigset_t more portably
10467         * lib/sys_select.in.h: Always include <sys/types.h>, since
10468         we now need sigset_t and mingw defines it there.
10469         Include <signal.h> before split inclusion guard, to avoid
10470         mishaps on Solaris, whose <signal.h> eventually includes us.
10471         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
10472         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
10473         which come from ...
10474         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
10475         gl_CHECK_TYPE_SIGSET_T.
10476         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
10477         does the real work.
10478         * modules/sys_select (Depends-on): Add 'signal'.
10479
10480         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
10481         Suggested by Bruno Haible.
10482
10483         pselect: Use pthread_sigmask, not sigprocmask.
10484         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
10485         multithreaded apps better than sigprocmask does.
10486         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
10487         sigprocmask directly.
10488
10489 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
10490
10491         * lib/pselect.c (pselect): Use plain name, without "rpl_".
10492         Don't #undef,  since we don't need any underlying pselect.
10493         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
10494         (Depends-on): Add select.
10495         (Link): Add $(LIBSOCKET).
10496         These changes suggested by Bruno Haible.
10497
10498         pselect: document better
10499         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10500         * doc/posix-functions/pselect.texi (pselect): Document new module.
10501
10502         pthread_sigmask: new module
10503         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
10504         * doc/posix-functions/pthread_sigmask.texi: Document new module.
10505         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
10506         This is done only as a macro; I don't know how well that'll
10507         work for C++.  Move <sys/types.h> include before the include_next,
10508         to avoid mishap on Solaris.
10509         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
10510         * modules/signal (Makefile.am): Substitute the check's results.
10511         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
10512
10513         test-pselect: new module
10514         * modules/pselect-tests, tests/test-pselect.c: New files.
10515         * tests/test-select.c, tests/test-sys_select-c++.cc:
10516         If TEST_PSELECT is defined, test pselect instead of testing select.
10517
10518         * tests/test-sys_select.c (sigset_t): Test for it, too.
10519         Suggested by Bruno Haible.
10520
10521 2011-07-05  Eric Blake  <eblake@redhat.com>
10522
10523         snprintf: guarantee %1$d, for libintl
10524         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
10525         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
10526         * doc/posix-functions/snprintf.texi (snprintf): Update.
10527         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10528         * tests/test-snprintf.c (main): Enhance test.
10529         * tests/test-vsnprintf.c (main): Likewise.
10530
10531 2011-07-05  Jim Meyering  <meyering@redhat.com>
10532
10533         maint: exempt stdio-read.c and stdio-write.c from the cppi check
10534         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
10535         per Bruno's request, to accommodate this idiom (no space after "#")
10536         even when the function is inside an #if block:
10537         char *
10538         gets (char *s)
10539         #undef gets
10540         {
10541           ...
10542         }
10543
10544 2011-07-04  Jim Meyering  <meyering@redhat.com>
10545
10546         maint: indent with spaces, not TABs, and add a rule to check this
10547         * tests/test-userspec.c: Indent with spaces, not TABs.
10548         * tests/test-argp.c: Likewise.
10549         * tests/test-c-stack2.sh: Likewise.
10550         * tests/test-parse-duration.sh: Likewise
10551         * m4/strtod.m4: Likewise.
10552         * m4/alloca.m4: Likewise.
10553         * m4/pselect.m4: Likewise.
10554         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
10555
10556 2011-07-03  Jim Meyering  <meyering@redhat.com>
10557
10558         maint.mk: correct omissions in prohibit_argmatch_without_use check
10559         This rule would mistakenly report that argmatch.h is included without
10560         use even when both the argmatch and invalid_arg macro were used.
10561         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
10562         of argmatch and invalid_arg.
10563
10564 2011-07-03  Bruno Haible  <bruno@clisp.org>
10565
10566         Comments about EINTR.
10567         * lib/safe-read.h: Explain the purpose of this module.
10568         * lib/safe-write.h: Likewise.
10569         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
10570         module.
10571         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
10572         module.
10573         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10574
10575 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         xnanosleep: Rewrite to use new dtotimespec module.
10578         It has the conversion code that used to be in xnanosleep.
10579         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
10580         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
10581         (TIME_T_MAX): Remove.
10582         (xnanosleep): Rewrite in terms of dtotimespec.
10583         * modules/xnanosleep (Depends-on): Add dtotimespec.
10584         Remove intprops, stdbool.
10585
10586         timespec-add, timespec-sub: new modules
10587         * lib/timespec.h (timespec_add, timespec_sub): New decls.
10588         * lib/timespec-add.c, lib/timespec-sub.c:
10589         * modules/timespec-add, modules/timespec-sub: New files.
10590
10591         dtotimespec: new module
10592         * lib/timespec.h (dtotimespec): New decl.
10593         * lib/dtotimespec.c, modules/dtotimespec: New files.
10594
10595         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
10596
10597         pselect: new module
10598         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
10599         (pselect): New decls.
10600         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
10601         since the standard pselect decl uses 'restrict'.
10602         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
10603         HAVE_PSELECT, REPLACE_PSELECT.
10604         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
10605         HAVE_PSELECT, REPLACE_PSELECT.
10606         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
10607
10608         sys_select: don't depend on sys_socket
10609         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
10610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
10611         This fix works on GNU and GNU-like platforms, but has not been tested
10612         on native Windows.
10613         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
10614         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
10615         gl_HEADER_SYS_SOCKET.
10616         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
10617         gl_PREREQ_SYS_H_WINSOCK2.
10618
10619 2011-06-29  Eric Blake  <eblake@redhat.com>
10620
10621         pipe2: fix C89 compile problem
10622         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
10623         Reported by Bruno Haible.
10624
10625         pipe, pipe2: don't corrupt fd on error
10626         * lib/pipe.c (pipe): Leave fd unchanged on error.
10627         * lib/pipe2.c (pipe2): Likewise.
10628         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
10629         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
10630
10631 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
10632
10633         mmap-anon: do not use regular expressions inadvertently
10634         * m4/mmap-anon.m4: Remove trailing period from strings sought
10635         in the output.
10636
10637 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
10638
10639         nanosleep: fix integer overflow problem
10640         * lib/nanosleep.c (my_usleep): Don't assume signed integer
10641         arithmetic wraps around on overflow.
10642
10643         nanosleep: simplify carrying
10644         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
10645         first call to the underyling nanosleep, not for the last one.
10646         This doesn't fix any bugs, but it simplifies the computation of
10647         the remaining delay.  Found while auditing integer overflow issues.
10648
10649         dup2: remove test for existence of fcntl
10650         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
10651         "#if HAVE_FCNTL", in the configure-time test program.
10652         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
10653         and therefore speeds up "configure" a bit.  Found while
10654         adding the dup2 module to Emacs.
10655
10656 2011-06-24  Eric Blake  <eblake@redhat.com>
10657
10658         maint.mk: enhance useless header checks
10659         * top/maint.mk (_sc_header_without_use): Check both include
10660         styles.
10661         (sc_prohibit_assert_without_use)
10662         (sc_prohibit_close_stream_without_use)
10663         (sc_prohibit_getopt_without_use)
10664         (sc_prohibit_quotearg_without_use)
10665         (sc_prohibit_quote_without_use)
10666         (sc_prohibit_long_options_without_use)
10667         (sc_prohibit_inttostr_without_use)
10668         (sc_prohibit_ignore_value_without_use)
10669         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
10670         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
10671         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
10672         (sc_prohibit_hash_pjw_without_use)
10673         (sc_prohibit_safe_read_without_use)
10674         (sc_prohibit_argmatch_without_use)
10675         (sc_prohibit_canonicalize_without_use)
10676         (sc_prohibit_root_dev_ino_without_use)
10677         (sc_prohibit_openat_without_use)
10678         (sc_prohibit_c_ctype_without_use)
10679         (sc_prohibit_signal_without_use)
10680         (sc_prohibit_stdio--_without_use)
10681         (sc_prohibit_stdio-safer_without_use)
10682         (sc_prohibit_strings_without_use)
10683         (sc_prohibit_intprops_without_use)
10684         (sc_prohibit_stddef_without_use)
10685         (sc_prohibit_xfreopen_without_use): Update clients.
10686
10687 2011-06-24  Jim Meyering  <meyering@redhat.com>
10688
10689         syntax-check: keep one maint.mk rule in sync with its header
10690         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
10691         of the bug Eric has just fixed, with today's commit 25e4c2ec.
10692         I prefer to avoid temporary files here, so use <(...), but that
10693         is not supported by /bin/sh, so...
10694         (SHELL): Define to /bin/bash.
10695
10696 2011-06-24  Eric Blake  <eblake@redhat.com>
10697
10698         maint.mk: update sc_prohibit_intprops_without_use
10699         * top/maint.mk (_intprops_names): Match recent changes.
10700
10701 2011-06-24  Bruno Haible  <bruno@clisp.org>
10702
10703         strerror-override: No-op tweak.
10704         * lib/strerror-override.h (strerror_override): Reorder conditions,
10705         for consistency with lib/strerror-override.c.
10706
10707 2011-06-23  Eric Blake  <eblake@redhat.com>
10708
10709         maint.mk: test further PATH_MAX issues
10710         * top/maint.mk (sc_prohibit_path_max_array): Rename...
10711         (sc_prohibit_path_max_allocation): ...and also test alloca.
10712         Suggested by Jim Meyering.
10713
10714 2011-06-22  Eric Blake  <eblake@redhat.com>
10715
10716         maint.mk: add syntax-check to avoid char[PATH_MAX]
10717         * top/maint.mk (sc_prohibit_path_max_array): New rule.
10718
10719         stat: be robust to PATH_MAX definition
10720         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
10721         * modules/stat (Depends-on): Add verify.
10722
10723         link: work around IRIX bug
10724         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
10725         * lib/link.c (rpl_link): Work around it.
10726         * tests/test-link.h (test_link): Enhance test.
10727         * doc/posix-functions/link.texi (link): Document the bug.
10728
10729         getopt: silence clang warning
10730         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
10731         dereference.
10732         Reported by Gustavo Martin Domato.
10733
10734 2011-06-22  Jim Meyering  <meyering@redhat.com>
10735
10736         bootstrap: do not insert a blank line into each .gitignore file
10737         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
10738
10739 2011-06-21  Eric Blake  <eblake@redhat.com>
10740
10741         perror: test for output mismatch
10742         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
10743         perror on IRIX.
10744
10745         strerror_r: fix OpenBSD behavior on out-of-range
10746         * lib/strerror_r.c (strerror_r): Always use maximal string.
10747         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
10748
10749         strerror_r: fix OpenBSD behavior on 0
10750         * lib/strerror-override.c (strerror_override): Also override 0
10751         when needed.
10752         * lib/strerror-override.h (strerror_override): Likewise.
10753         * lib/strerror.c (strerror): Simplify, now that 0 override is done
10754         earlier.
10755         * lib/strerror_r.c (strerror_r): Likewise.
10756         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
10757         behavior...
10758         (gl_FUNC_STRERROR_0): ...into new macro.
10759         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
10760         is overridden.
10761         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
10762         * modules/strerror-override (Files): Add strerror.m4.
10763         (configure.ac): Also provide override for 0 when needed.
10764         * doc/posix-functions/strerror.texi (strerror): Document this.
10765         * doc/posix-functions/perror.texi (perror): Likewise.
10766
10767         perror: adjust array size
10768         * modules/perror (Depends-on): Add strerror-override.
10769         * lib/perror.c (perror): Use it to avoid magic number.
10770
10771         strerror-override: reduce size
10772         * lib/strerror-override.c (strerror_override): Use fewer lines.
10773
10774 2011-06-20  Bruno Haible  <bruno@clisp.org>
10775
10776         pathmax: Ensure correct value for PATH_MAX on HP-UX.
10777         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
10778
10779 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
10780
10781         alloca: port to compilers that can optimize like GCC 4.6.0
10782         * lib/alloca.c (find_stack_direction): New signature, taken from
10783         Autoconf git.  This works with GCC 4.6.0.  This code should never
10784         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
10785         be used with other compilers that optimize as well as GCC 4.6.0 does.
10786         (alloca): Adjust to new signature.
10787         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
10788         New macro, which patches Autoconf in a similar way.
10789
10790         c-stack: stop worrying about stack direction
10791         * lib/c-stack.c (find_stack_direction): Remove.
10792         (segv_handler): Don't worry about stack direction growth, as it's
10793         too much of a pain to configure this correctly, given how compilers
10794         are optimizing-away our stack-growth detection code.  Instead, assume
10795         that any access to just before or just after the stack is OK.
10796         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
10797         Don't require AC_FUNC_ALLOCA; no longer needed.
10798
10799 2011-06-20  Eric Blake  <eblake@redhat.com>
10800
10801         test-stat: don't allocate PATH_MAX bytes
10802         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
10803         PATH_MAX-sized buffer.
10804         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
10805         * modules/stat-tests (Depends-on): Likewise.
10806         * tests/test-fstatat.c (includes): Drop pathmax.h.
10807         * tests/test-stat.c (includes): Likewise.
10808         Reported by Bruno Haible.
10809
10810 2011-06-20  Bruno Haible  <bruno@clisp.org>
10811
10812         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
10813         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
10814         * lib/float.c: New file.
10815         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
10816         REPLACE_FLOAT_LDBL.
10817         * modules/float (Files): Add lib/float.c.
10818         (configure.ac): Invoke AC_LIBOBJ.
10819         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
10820
10821 2011-06-20  Bruno Haible  <bruno@clisp.org>
10822
10823         Tests for module 'float'.
10824         * modules/float-tests: New file.
10825         * tests/test-float.c: New file.
10826
10827 2011-06-19  Bruno Haible  <bruno@clisp.org>
10828
10829         isinf: Coding style.
10830         * lib/isinf.c: Use GNU coding style.
10831
10832 2011-06-19  Bruno Haible  <bruno@clisp.org>
10833
10834         linkat test: Avoid test failure on AIX 7.1.
10835         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
10836         * tests/test-link.h (test_link): Likewise.
10837
10838 2011-06-19  Bruno Haible  <bruno@clisp.org>
10839
10840         pread test: Avoid test failure on OpenBSD 4.9.
10841         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
10842
10843 2011-06-19  Bruno Haible  <bruno@clisp.org>
10844
10845         sprintf-posix: Fix test failure on AIX 7.1.
10846         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
10847         * doc/posix-functions/dprintf.texi: Mention limited precision problem
10848         on AIX.
10849         * doc/posix-functions/fprintf.texi: Likewise.
10850         * doc/posix-functions/printf.texi: Likewise.
10851         * doc/posix-functions/snprintf.texi: Likewise.
10852         * doc/posix-functions/sprintf.texi: Likewise.
10853         * doc/posix-functions/vdprintf.texi: Likewise.
10854         * doc/posix-functions/vfprintf.texi: Likewise.
10855         * doc/posix-functions/vprintf.texi: Likewise.
10856         * doc/posix-functions/vsnprintf.texi: Likewise.
10857         * doc/posix-functions/vsprintf.texi: Likewise.
10858
10859 2011-06-19  Bruno Haible  <bruno@clisp.org>
10860
10861         roundl-ieee: Fix test failure on AIX 7.1.
10862         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
10863         * doc/posix-functions/roundl.texi: Mention problem with negative
10864         arguments.
10865
10866 2011-06-19  Bruno Haible  <bruno@clisp.org>
10867
10868         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10869         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
10870         * doc/posix-functions/round.texi: Mention problem with negative
10871         arguments.
10872         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
10873
10874 2011-06-19  Bruno Haible  <bruno@clisp.org>
10875
10876         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
10877         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
10878         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
10879         * doc/posix-functions/roundf.texi: Mention problem with negative
10880         arguments.
10881         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
10882
10883 2011-06-19  Bruno Haible  <bruno@clisp.org>
10884
10885         ceilf-ieee: Work around bug on MacOS X 10.5.
10886         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
10887
10888         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
10889         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
10890         IEEE compliant, avoid compiler optimizations.
10891         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
10892         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10893         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
10894         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
10895         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
10896         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
10897         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
10898         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
10899         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
10900         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
10901
10902 2011-06-19  Bruno Haible  <bruno@clisp.org>
10903
10904         ceilf-ieee: Work around bug on AIX 7.1.
10905         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
10906         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
10907
10908 2011-06-19  Bruno Haible  <bruno@clisp.org>
10909
10910         ceil-ieee: Work around bug on AIX 7.1.
10911         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
10912         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
10913
10914 2011-06-18  Bruno Haible  <bruno@clisp.org>
10915
10916         fsync test: Avoid test failure on MacOS X and AIX.
10917         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
10918         EINVAL.
10919
10920 2011-06-18  Bruno Haible  <bruno@clisp.org>
10921
10922         openat, fdopendir tests: Fix link errors.
10923         * modules/openat-tests (Depends-on): Add progname.
10924         * modules/fdopendir-tests (Depends-on): Likewise.
10925         * tests/test-fchownat.c: Include progname.h.
10926         (main): Call set_program_name.
10927         * tests/test-fstatat.c: Include progname.h.
10928         (main): Call set_program_name.
10929         * tests/test-mkdirat.c: Include progname.h.
10930         (main): Call set_program_name.
10931         * tests/test-openat.c: Include progname.h.
10932         (main): Call set_program_name.
10933         * tests/test-unlinkat.c: Include progname.h.
10934         (main): Call set_program_name.
10935         * tests/test-fdopendir.c: Include progname.h.
10936         (main): Call set_program_name.
10937
10938 2011-06-18  Bruno Haible  <bruno@clisp.org>
10939
10940         Doc update.
10941         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
10942         HP-UX.
10943         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
10944
10945 2011-06-18  Bruno Haible  <bruno@clisp.org>
10946
10947         getcwd tests: Avoid compilation error on HP-UX 11.31.
10948         * modules/getcwd-tests (Depends-on): Add pathmax.
10949         * tests/test-getcwd.c: Include pathmax.h.
10950
10951 2011-06-18  Bruno Haible  <bruno@clisp.org>
10952
10953         isfinite, isinf: Fix link error on AIX 6 and 7.
10954         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
10955         needed, also test the macro with a 'float' argument.
10956         * m4/isinf.m4 (gl_ISINF): Likewise.
10957
10958 2011-06-18  Bruno Haible  <bruno@clisp.org>
10959
10960         getloadavg: Don't clobber LIBS. Regression from previous commit.
10961         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
10962         AC_CHECK_LIB from here...
10963         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
10964         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
10965         gl_func_getloadavg_done.
10966         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10967
10968 2011-06-18  Bruno Haible  <bruno@clisp.org>
10969
10970         clean-temp: Improve documentation.
10971         * lib/clean-temp.h: Explain better how to use this module.
10972         Reported by John Darrington <john@darrington.wattle.id.au>.
10973
10974 2011-06-17  Bruno Haible  <bruno@clisp.org>
10975
10976         pread, pwrite: Avoid cc warning on AIX.
10977         * lib/unistd.in.h (pread): Undefine before defining as a macro.
10978         (pwrite): Likewise.
10979
10980 2011-06-17  Bruno Haible  <bruno@clisp.org>
10981
10982         spawn-pipe tests: Fix link error.
10983         * tests/test-spawn-pipe-child.c: Undefine fprintf.
10984         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10985
10986 2011-06-17  Bruno Haible  <bruno@clisp.org>
10987
10988         Tests: Remove unnecessary dependency.
10989         * modules/canonicalize-tests (Depends-on): Remove progname.
10990         * modules/chown-tests (Depends-on): Likewise.
10991         * modules/dirname-tests (Depends-on): Likewise.
10992         * modules/fdopendir-tests (Depends-on): Likewise.
10993         * modules/fdutimensat-tests (Depends-on): Likewise.
10994         * modules/hash-tests (Depends-on): Likewise.
10995         * modules/lchown-tests (Depends-on): Likewise.
10996         * modules/linkat-tests (Depends-on): Likewise.
10997         * modules/renameat-tests (Depends-on): Likewise.
10998         * modules/spawn-pipe-tests (Depends-on): Likewise.
10999         * modules/utimensat-tests (Depends-on): Likewise.
11000
11001 2011-06-17  Bruno Haible  <bruno@clisp.org>
11002
11003         spawn-pipe tests: Fix link error.
11004         * tests/test-spawn-pipe-child.c: Undefine fflush.
11005
11006 2011-06-17  Bruno Haible  <bruno@clisp.org>
11007
11008         Fix tests link errors.
11009         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11010         * modules/chown-tests (Makefile.am): Don't link test-chown with
11011         LIBINTL.
11012         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11013         LIBINTL.
11014         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11015         LIBINTL.
11016         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11017         LIBINTL.
11018
11019 2011-06-16  Bruno Haible  <bruno@clisp.org>
11020
11021         crypto/gc-sha1: Fix recent regression.
11022         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11023         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11024
11025         crypto/gc-md5: Fix recent regression.
11026         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11027
11028         crypto/gc-md4: Fix recent regression.
11029         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11030         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11031
11032         crypto/gc-arctwo: Fix recent regression.
11033         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11034         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11035
11036         crypto/gc-rijndael: Fix recent regression.
11037         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11038         (configure.ac): Invoke AC_LIBOBJ here.
11039         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11040         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11041
11042         crypto/gc-hmac-sha1: Fix recent regression.
11043         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11044         (configure.ac): Invoke AC_LIBOBJ here.
11045         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11047
11048         crypto/gc-hmac-md5: Fix recent regression.
11049         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11050         (configure.ac): Invoke AC_LIBOBJ here.
11051         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11052         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11053
11054         crypto/gc-des: Fix recent regression.
11055         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11056         (configure.ac): Invoke AC_LIBOBJ here.
11057         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11059
11060         crypto/gc-arcfour: Fix recent regression.
11061         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11062         (configure.ac): Invoke AC_LIBOBJ here.
11063         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11065
11066 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11067
11068         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11069         After the 2011-05-21 change, this macro requires
11070         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11071         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11072
11073 2011-06-16  Bruno Haible  <bruno@clisp.org>
11074
11075         fprintftime: Move AC_LIBOBJ invocations to module description.
11076         * m4/fprintftime.m4: Remove file.
11077         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11078         (configure.ac): Remove gl_FPRINTFTIME call.
11079         (Makefile.am): Augment lib_SOURCES.
11080         Reported by Jim Meyering.
11081
11082 2011-06-16  Bruno Haible  <bruno@clisp.org>
11083
11084         tmpfile-safer: Finish 2011-05-23 commit.
11085         * m4/stdio-safer.m4: Really remove file.
11086         Reported by Jim Meyering.
11087
11088 2011-06-16  Bruno Haible  <bruno@clisp.org>
11089
11090         syntax-check: Fix typo.
11091         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11092         printf-posix.m4.
11093         Reported by Jim Meyering.
11094
11095 2011-06-13  Jim Meyering  <meyering@redhat.com>
11096
11097         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11098         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11099
11100 2011-05-23  Bruno Haible  <bruno@clisp.org>
11101
11102         yesno: Move AC_LIBOBJ invocations to module description.
11103         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11104         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11105
11106 2011-05-23  Bruno Haible  <bruno@clisp.org>
11107
11108         xstrtol: Move AC_LIBOBJ invocations to module description.
11109         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11110         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11111
11112 2011-05-23  Bruno Haible  <bruno@clisp.org>
11113
11114         xstrtold: Move AC_LIBOBJ invocations to module description.
11115         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11116         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11117
11118 2011-05-23  Bruno Haible  <bruno@clisp.org>
11119
11120         xstrtod: Move AC_LIBOBJ invocations to module description.
11121         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11122         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11123
11124 2011-05-23  Bruno Haible  <bruno@clisp.org>
11125
11126         xnanosleep: Move AC_LIBOBJ invocations to module description.
11127         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11128         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11129
11130 2011-05-23  Bruno Haible  <bruno@clisp.org>
11131
11132         xgetcwd: Move AC_LIBOBJ invocations to module description.
11133         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11134         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11135
11136 2011-05-23  Bruno Haible  <bruno@clisp.org>
11137
11138         xalloc: Move AC_LIBOBJ invocations to module description.
11139         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11140         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11141
11142 2011-05-23  Bruno Haible  <bruno@clisp.org>
11143
11144         write-any-file: Move AC_LIBOBJ invocations to module description.
11145         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11146         invocation.
11147         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11148
11149 2011-05-23  Bruno Haible  <bruno@clisp.org>
11150
11151         utimens: Move AC_LIBOBJ invocations to module description.
11152         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11153         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11154
11155 2011-05-23  Bruno Haible  <bruno@clisp.org>
11156
11157         utimecmp: Move AC_LIBOBJ invocations to module description.
11158         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11159         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11160
11161 2011-05-23  Bruno Haible  <bruno@clisp.org>
11162
11163         userspec: Move AC_LIBOBJ invocations to module description.
11164         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11165         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11166
11167 2011-05-23  Bruno Haible  <bruno@clisp.org>
11168
11169         unlinkdir: Move AC_LIBOBJ invocations to module description.
11170         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11171         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11172
11173 2011-05-23  Bruno Haible  <bruno@clisp.org>
11174
11175         unistd-safer: Move AC_LIBOBJ invocations to module description.
11176         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11177         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11178
11179 2011-05-23  Bruno Haible  <bruno@clisp.org>
11180
11181         tempname: Move AC_LIBOBJ invocations to module description.
11182         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11183         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11184
11185 2011-05-23  Bruno Haible  <bruno@clisp.org>
11186
11187         strftime: Move AC_LIBOBJ invocations to module description.
11188         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11189         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11190
11191 2011-05-23  Bruno Haible  <bruno@clisp.org>
11192
11193         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11194         * m4/stdlib-safer.m4: Remove file.
11195         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11196         (configure.ac): Remove gl_STDLIB_SAFER call.
11197         (Makefile.am): Augment lib_SOURCES.
11198
11199 2011-05-23  Bruno Haible  <bruno@clisp.org>
11200
11201         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11202         * m4/stdio-safer.m4: Remove file.
11203         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11204         (configure.ac): Remove gl_TMPFILE_SAFER call.
11205         (Makefile.am): Augment lib_SOURCES.
11206
11207 2011-05-23  Bruno Haible  <bruno@clisp.org>
11208
11209         popen-safer: Move AC_LIBOBJ invocations to module description.
11210         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11211         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11212         (configure.ac): Remove gl_POPEN_SAFER call.
11213         (Makefile.am): Augment lib_SOURCES.
11214
11215 2011-05-23  Bruno Haible  <bruno@clisp.org>
11216
11217         freopen-safer: Move AC_LIBOBJ invocations to module description.
11218         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11219         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11220         (configure.ac): Remove gl_FREOPEN_SAFER call.
11221         (Makefile.am): Augment lib_SOURCES.
11222
11223 2011-05-23  Bruno Haible  <bruno@clisp.org>
11224
11225         fopen-safer: Move AC_LIBOBJ invocations to module description.
11226         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11227         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11228         (configure.ac): Remove gl_FOPEN_SAFER call.
11229         (Makefile.am): Augment lib_SOURCES.
11230
11231 2011-05-23  Bruno Haible  <bruno@clisp.org>
11232
11233         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11234         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11235         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11236
11237 2011-05-23  Bruno Haible  <bruno@clisp.org>
11238
11239         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11240         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11241         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11242
11243 2011-05-23  Bruno Haible  <bruno@clisp.org>
11244
11245         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11246         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11247         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11248
11249 2011-05-23  Bruno Haible  <bruno@clisp.org>
11250
11251         settime: Move AC_LIBOBJ invocations to module description.
11252         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11253         * modules/settime (Makefile.am): Augment lib_SOURCES.
11254
11255 2011-05-23  Bruno Haible  <bruno@clisp.org>
11256
11257         savedir: Move AC_LIBOBJ invocations to module description.
11258         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11259         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11260
11261 2011-05-23  Bruno Haible  <bruno@clisp.org>
11262
11263         save-cwd: Move AC_LIBOBJ invocations to module description.
11264         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11265         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11266
11267 2011-05-23  Bruno Haible  <bruno@clisp.org>
11268
11269         same: Move AC_LIBOBJ invocations to module description.
11270         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11271         * modules/same (Makefile.am): Augment lib_SOURCES.
11272
11273 2011-05-23  Bruno Haible  <bruno@clisp.org>
11274
11275         safe-write: Move AC_LIBOBJ invocations to module description.
11276         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11277         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11278         instead of gl_SAFE_WRITE.
11279         (Makefile.am): Augment lib_SOURCES.
11280
11281 2011-05-23  Bruno Haible  <bruno@clisp.org>
11282
11283         safe-read: Move AC_LIBOBJ invocations to module description.
11284         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11285         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11286         of gl_SAFE_READ.
11287         (Makefile.am): Augment lib_SOURCES.
11288
11289 2011-05-23  Bruno Haible  <bruno@clisp.org>
11290
11291         safe-alloc: Move AC_LIBOBJ invocations to module description.
11292         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11293         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11294
11295 2011-05-23  Bruno Haible  <bruno@clisp.org>
11296
11297         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11298         * m4/rijndael.m4: Remove file.
11299         * modules/crypto/rijndael (Files): Remove it.
11300         (configure.ac): Remove gl_RIJNDAEL call.
11301         (Makefile.am): Augment lib_SOURCES.
11302
11303 2011-05-23  Bruno Haible  <bruno@clisp.org>
11304
11305         readtokens: Move AC_LIBOBJ invocations to module description.
11306         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11307         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11308
11309 2011-05-23  Bruno Haible  <bruno@clisp.org>
11310
11311         read-file: Move AC_LIBOBJ invocations to module description.
11312         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11313         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11314         of gl_FUNC_READ_FILE.
11315         (Makefile.am): Augment lib_SOURCES.
11316
11317 2011-05-23  Bruno Haible  <bruno@clisp.org>
11318
11319         quotearg: Move AC_LIBOBJ invocations to module description.
11320         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11321         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11322
11323 2011-05-23  Bruno Haible  <bruno@clisp.org>
11324
11325         quote: Move AC_LIBOBJ invocations to module description.
11326         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11327         * modules/quote (Makefile.am): Augment lib_SOURCES.
11328
11329 2011-05-23  Bruno Haible  <bruno@clisp.org>
11330
11331         posixver: Move AC_LIBOBJ invocations to module description.
11332         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11333         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11334
11335 2011-05-23  Bruno Haible  <bruno@clisp.org>
11336
11337         posixtm: Move AC_LIBOBJ invocations to module description.
11338         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11339         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11340
11341 2011-05-23  Bruno Haible  <bruno@clisp.org>
11342
11343         physmem: Move AC_LIBOBJ invocations to module description.
11344         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11345         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11346
11347 2011-05-23  Bruno Haible  <bruno@clisp.org>
11348
11349         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11350         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11351         invocation.
11352         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11353
11354 2011-05-23  Bruno Haible  <bruno@clisp.org>
11355
11356         mpsort: Move AC_LIBOBJ invocations to module description.
11357         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11358         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11359
11360 2011-05-23  Bruno Haible  <bruno@clisp.org>
11361
11362         modechange: Move AC_LIBOBJ invocations to module description.
11363         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11364         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11365
11366 2011-05-23  Bruno Haible  <bruno@clisp.org>
11367
11368         mkdir-p: Move AC_LIBOBJ invocations to module description.
11369         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11370         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11371
11372 2011-05-23  Bruno Haible  <bruno@clisp.org>
11373
11374         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11375         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11376         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11377
11378 2011-05-23  Bruno Haible  <bruno@clisp.org>
11379
11380         mgetgroups: Move AC_LIBOBJ invocations to module description.
11381         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11382         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11383
11384 2011-05-23  Bruno Haible  <bruno@clisp.org>
11385
11386         memxor: Move AC_LIBOBJ invocations to module description.
11387         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11388         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11389
11390 2011-05-23  Bruno Haible  <bruno@clisp.org>
11391
11392         memcoll: Move AC_LIBOBJ invocations to module description.
11393         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11394         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11395
11396 2011-05-23  Bruno Haible  <bruno@clisp.org>
11397
11398         memcasecmp: Move AC_LIBOBJ invocations to module description.
11399         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11400         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11401
11402 2011-05-23  Bruno Haible  <bruno@clisp.org>
11403
11404         crypto/md5: Move AC_LIBOBJ invocations to module description.
11405         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11406         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11407
11408 2011-05-23  Bruno Haible  <bruno@clisp.org>
11409
11410         crypto/md4: Move AC_LIBOBJ invocations to module description.
11411         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11412         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11413
11414 2011-05-23  Bruno Haible  <bruno@clisp.org>
11415
11416         crypto/md2: Move AC_LIBOBJ invocations to module description.
11417         * m4/md2.m4: Remove file.
11418         * modules/crypto/md2 (Files): Remove it.
11419         (configure.ac): Remove gl_MD2 call.
11420         (Makefile.am): Augment lib_SOURCES.
11421
11422 2011-05-23  Bruno Haible  <bruno@clisp.org>
11423
11424         long-options: Move AC_LIBOBJ invocations to module description.
11425         * m4/long-options.m4: Remove file.
11426         * modules/long-options (Files): Remove it.
11427         (configure.ac): Remove gl_LONG_OPTIONS call.
11428         (Makefile.am): Augment lib_SOURCES.
11429
11430 2011-05-23  Bruno Haible  <bruno@clisp.org>
11431
11432         i-ring: Move AC_LIBOBJ invocations to module description.
11433         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11434         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11435
11436 2011-05-23  Bruno Haible  <bruno@clisp.org>
11437
11438         idcache: Move AC_LIBOBJ invocations to module description.
11439         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
11440         * modules/idcache (Makefile.am): Augment lib_SOURCES.
11441
11442 2011-05-23  Bruno Haible  <bruno@clisp.org>
11443
11444         human: Move AC_LIBOBJ invocations to module description.
11445         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
11446         * modules/human (Makefile.am): Augment lib_SOURCES.
11447
11448 2011-05-23  Bruno Haible  <bruno@clisp.org>
11449
11450         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
11451         * m4/hmac-sha1.m4: Remove file.
11452         * modules/crypto/hmac-sha1 (Files): Remove it.
11453         (configure.ac): Remove gl_HMAC_SHA1 call.
11454         (Makefile.am): Augment lib_SOURCES.
11455
11456 2011-05-23  Bruno Haible  <bruno@clisp.org>
11457
11458         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
11459         * m4/hmac-md5.m4: Remove file.
11460         * modules/crypto/hmac-md5 (Files): Remove it.
11461         (configure.ac): Remove gl_HMAC_MD5 call.
11462         (Makefile.am): Augment lib_SOURCES.
11463
11464 2011-05-23  Bruno Haible  <bruno@clisp.org>
11465
11466         hash: Move AC_LIBOBJ invocations to module description.
11467         * m4/hash.m4: Remove file.
11468         * modules/hash (Files): Remove it.
11469         (configure.ac): Remove gl_HASH call.
11470         (Makefile.am): Augment lib_SOURCES.
11471
11472 2011-05-23  Bruno Haible  <bruno@clisp.org>
11473
11474         hard-locale: Move AC_LIBOBJ invocations to module description.
11475         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
11476         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
11477
11478 2011-05-23  Bruno Haible  <bruno@clisp.org>
11479
11480         getugroups: Move AC_LIBOBJ invocations to module description.
11481         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
11482         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
11483
11484 2011-05-23  Bruno Haible  <bruno@clisp.org>
11485
11486         gettime: Move AC_LIBOBJ invocations to module description.
11487         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
11488         * modules/gettime (Makefile.am): Augment lib_SOURCES.
11489
11490 2011-05-23  Bruno Haible  <bruno@clisp.org>
11491
11492         getndelim2: Move AC_LIBOBJ invocations to module description.
11493         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
11494         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
11495
11496 2011-05-23  Bruno Haible  <bruno@clisp.org>
11497
11498         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
11499         * m4/gc-pbkdf2-sha1.m4: Remove file.
11500         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
11501         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
11502         (Makefile.am): Augment lib_SOURCES.
11503
11504 2011-05-23  Bruno Haible  <bruno@clisp.org>
11505
11506         fts: Move AC_LIBOBJ invocations to module description.
11507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
11508         * modules/fts (configure.ac): ... to here.
11509
11510 2011-05-23  Bruno Haible  <bruno@clisp.org>
11511
11512         file-type: Move AC_LIBOBJ invocations to module description.
11513         * m4/file-type.m4: Remove file.
11514         * modules/file-type (Files): Remove it.
11515         (configure.ac): Remove gl_FILE_TYPE call.
11516         (Makefile.am): Augment lib_SOURCES.
11517
11518 2011-05-23  Bruno Haible  <bruno@clisp.org>
11519
11520         filenamecat*: Respect rules for use of AC_LIBOBJ.
11521         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
11522         Remove AC_LIBOBJ invocation.
11523         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
11524         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
11525
11526 2011-05-23  Bruno Haible  <bruno@clisp.org>
11527
11528         filemode: Move AC_LIBOBJ invocations to module description.
11529         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
11530         * modules/filemode (Makefile.am): Augment lib_SOURCES.
11531
11532 2011-05-23  Bruno Haible  <bruno@clisp.org>
11533
11534         openat-safer: Move AC_LIBOBJ invocations to module description.
11535         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
11536         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
11537
11538 2011-05-23  Bruno Haible  <bruno@clisp.org>
11539
11540         fcntl-safer: Move AC_LIBOBJ invocations to module description.
11541         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
11542         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
11543
11544 2011-05-23  Bruno Haible  <bruno@clisp.org>
11545
11546         exclude: Move AC_LIBOBJ invocations to module description.
11547         * m4/exclude.m4: Remove file.
11548         * modules/exclude (Files): Remove it.
11549         (configure.ac): Remove gl_EXCLUDE call.
11550         (Makefile.am): Augment lib_SOURCES.
11551
11552 2011-05-23  Bruno Haible  <bruno@clisp.org>
11553
11554         dirname*: Respect rules for use of AC_LIBOBJ.
11555         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
11556         invocations.
11557         * modules/dirname (Makefile.am): Augment lib_SOURCES.
11558         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
11559
11560 2011-05-23  Bruno Haible  <bruno@clisp.org>
11561
11562         dirent-safer: Move AC_LIBOBJ invocations to module description.
11563         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
11564         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
11565
11566 2011-05-23  Bruno Haible  <bruno@clisp.org>
11567
11568         crypto/des: Move AC_LIBOBJ invocations to module description.
11569         * m4/des.m4: Remove file.
11570         * modules/crypto/des (Files): Remove it.
11571         (configure.ac): Remove gl_DES call.
11572         (Makefile.am): Augment lib_SOURCES.
11573
11574 2011-05-23  Bruno Haible  <bruno@clisp.org>
11575
11576         cycle-check: Move AC_LIBOBJ invocations to module description.
11577         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
11578         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
11579
11580 2011-05-23  Bruno Haible  <bruno@clisp.org>
11581
11582         c-strtold: Move AC_LIBOBJ invocations to module description.
11583         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
11584         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
11585
11586 2011-05-23  Bruno Haible  <bruno@clisp.org>
11587
11588         c-strtod: Move AC_LIBOBJ invocations to module description.
11589         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
11590         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
11591
11592 2011-05-23  Bruno Haible  <bruno@clisp.org>
11593
11594         crc: Move AC_LIBOBJ invocations to module description.
11595         * m4/crc.m4: Remove file.
11596         * modules/crc (Files): Remove it.
11597         (configure.ac): Remove gl_CRC call.
11598         (Makefile.am): Augment lib_SOURCES.
11599
11600 2011-05-23  Bruno Haible  <bruno@clisp.org>
11601
11602         close-stream: Move AC_LIBOBJ invocations to module description.
11603         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
11604         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
11605
11606 2011-05-23  Bruno Haible  <bruno@clisp.org>
11607
11608         closeout: Move AC_LIBOBJ invocations to module description.
11609         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
11610         * modules/closeout (Makefile.am): Augment lib_SOURCES.
11611
11612 2011-05-23  Bruno Haible  <bruno@clisp.org>
11613
11614         closein: Move AC_LIBOBJ invocations to module description.
11615         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
11616         * modules/closein (Makefile.am): Augment lib_SOURCES.
11617
11618 2011-05-23  Bruno Haible  <bruno@clisp.org>
11619
11620         cloexec: Move AC_LIBOBJ invocations to module description.
11621         * m4/cloexec.m4: Remove file.
11622         * modules/cloexec (Files): Remove it.
11623         (configure.ac): Remove gl_CLOEXEC call.
11624         (Makefile.am): Augment lib_SOURCES.
11625
11626 2011-05-23  Bruno Haible  <bruno@clisp.org>
11627
11628         check-version: Move AC_LIBOBJ invocations to module description.
11629         * m4/check-version.m4: Remove file.
11630         * modules/check-version (Files): Remove it.
11631         (configure.ac): Remove gl_CHECK_VERSION call.
11632         (Makefile.am): Augment lib_SOURCES.
11633
11634 2011-05-23  Bruno Haible  <bruno@clisp.org>
11635
11636         chdir-safer: Move AC_LIBOBJ invocations to module description.
11637         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
11638         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
11639
11640 2011-05-23  Bruno Haible  <bruno@clisp.org>
11641
11642         canonicalize: Move AC_LIBOBJ invocations to module description.
11643         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
11644         AC_LIBOBJ invocation.
11645         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
11646
11647 2011-05-23  Bruno Haible  <bruno@clisp.org>
11648
11649         canon-host: Move AC_LIBOBJ invocations to module description.
11650         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
11651         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
11652         instead of gl_CANON_HOST.
11653         (Makefile.am): Augment lib_SOURCES.
11654
11655 2011-05-23  Bruno Haible  <bruno@clisp.org>
11656
11657         backupfile: Move AC_LIBOBJ invocations to module description.
11658         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
11659         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
11660
11661 2011-05-23  Bruno Haible  <bruno@clisp.org>
11662
11663         argmatch: Move AC_LIBOBJ invocations to module description.
11664         * m4/argmatch.m4: Remove file.
11665         * modules/argmatch (Files): Remove it.
11666         (configure.ac): Remove gl_ARGMATCH call.
11667         (Makefile.am): Augment lib_SOURCES.
11668
11669 2011-05-23  Bruno Haible  <bruno@clisp.org>
11670
11671         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
11672         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
11673         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
11674
11675 2011-05-23  Bruno Haible  <bruno@clisp.org>
11676
11677         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
11678         * m4/arcfour.m4: Remove file.
11679         * modules/crypto/arcfour (Files): Remove it.
11680         (configure.ac): Remove gl_ARCFOUR call.
11681         (Makefile.am): Augment lib_SOURCES.
11682
11683 2011-05-22  Bruno Haible  <bruno@clisp.org>
11684
11685         write: Move AC_LIBOBJ invocations to module description.
11686         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
11687         * modules/write (configure.ac): ... to here.
11688
11689 2011-05-22  Bruno Haible  <bruno@clisp.org>
11690
11691         wmemset: Move AC_LIBOBJ invocations to module description.
11692         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
11693         here...
11694         * modules/wmemset (configure.ac): ... to here.
11695
11696 2011-05-22  Bruno Haible  <bruno@clisp.org>
11697
11698         wmemmove: Move AC_LIBOBJ invocations to module description.
11699         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
11700         here...
11701         * modules/wmemmove (configure.ac): ... to here.
11702
11703 2011-05-22  Bruno Haible  <bruno@clisp.org>
11704
11705         wmemcpy: Move AC_LIBOBJ invocations to module description.
11706         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
11707         here...
11708         * modules/wmemcpy (configure.ac): ... to here.
11709
11710 2011-05-22  Bruno Haible  <bruno@clisp.org>
11711
11712         wmemcmp: Move AC_LIBOBJ invocations to module description.
11713         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
11714         here...
11715         * modules/wmemcmp (configure.ac): ... to here.
11716
11717 2011-05-22  Bruno Haible  <bruno@clisp.org>
11718
11719         wmemchr: Move AC_LIBOBJ invocations to module description.
11720         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
11721         here...
11722         * modules/wmemchr (configure.ac): ... to here.
11723
11724 2011-05-22  Bruno Haible  <bruno@clisp.org>
11725
11726         wcswidth: Move AC_LIBOBJ invocations to module description.
11727         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
11728         here...
11729         * modules/wcswidth (configure.ac): ... to here.
11730
11731 2011-05-22  Bruno Haible  <bruno@clisp.org>
11732
11733         wcwidth: Respect rules for use of AC_LIBOBJ.
11734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
11735         invocation from here...
11736         * modules/wcwidth (configure.ac): ... to here.
11737         (Depends-on): Update conditions.
11738
11739 2011-05-22  Bruno Haible  <bruno@clisp.org>
11740
11741         wctype: Move AC_LIBOBJ invocations to module description.
11742         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
11743         invocation from here...
11744         * modules/wctype (configure.ac): ... to here.
11745         (Depends-on): Update conditions.
11746
11747 2011-05-22  Bruno Haible  <bruno@clisp.org>
11748
11749         wctrans: Move AC_LIBOBJ invocations to module description.
11750         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
11751         invocation from here...
11752         * modules/wctrans (configure.ac): ... to here.
11753
11754 2011-05-22  Bruno Haible  <bruno@clisp.org>
11755
11756         wctomb: Move AC_LIBOBJ invocations to module description.
11757         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
11758         invocations from here...
11759         * modules/wctomb (configure.ac): ... to here.
11760
11761 2011-05-22  Bruno Haible  <bruno@clisp.org>
11762
11763         wctob: Move AC_LIBOBJ invocations to module description.
11764         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
11765         gl_PREREQ_WCTOB invocations from here...
11766         * modules/wctob (configure.ac): ... to here.
11767         (Depends-on): Update conditions.
11768
11769 2011-05-22  Bruno Haible  <bruno@clisp.org>
11770
11771         wcsxfrm: Move AC_LIBOBJ invocations to module description.
11772         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
11773         here...
11774         * modules/wcsxfrm (configure.ac): ... to here.
11775
11776 2011-05-22  Bruno Haible  <bruno@clisp.org>
11777
11778         wcstok: Move AC_LIBOBJ invocations to module description.
11779         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
11780         * modules/wcstok (configure.ac): ... to here.
11781
11782 2011-05-22  Bruno Haible  <bruno@clisp.org>
11783
11784         wcsstr: Move AC_LIBOBJ invocations to module description.
11785         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
11786         * modules/wcsstr (configure.ac): ... to here.
11787
11788 2011-05-22  Bruno Haible  <bruno@clisp.org>
11789
11790         wcsspn: Move AC_LIBOBJ invocations to module description.
11791         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
11792         * modules/wcsspn (configure.ac): ... to here.
11793
11794 2011-05-22  Bruno Haible  <bruno@clisp.org>
11795
11796         wcsrtombs: Move AC_LIBOBJ invocations to module description.
11797         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
11798         gl_PREREQ_WCSRTOMBS invocations from here...
11799         * modules/wcsrtombs (configure.ac): ... to here.
11800
11801 2011-05-22  Bruno Haible  <bruno@clisp.org>
11802
11803         wcsrchr: Move AC_LIBOBJ invocations to module description.
11804         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
11805         here...
11806         * modules/wcsrchr (configure.ac): ... to here.
11807
11808 2011-05-22  Bruno Haible  <bruno@clisp.org>
11809
11810         wcspbrk: Move AC_LIBOBJ invocations to module description.
11811         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
11812         here...
11813         * modules/wcspbrk (configure.ac): ... to here.
11814
11815 2011-05-22  Bruno Haible  <bruno@clisp.org>
11816
11817         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
11818         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
11819         gl_PREREQ_WCSNRTOMBS invocations from here...
11820         * modules/wcsnrtombs (configure.ac): ... to here.
11821
11822 2011-05-22  Bruno Haible  <bruno@clisp.org>
11823
11824         wcsnlen: Move AC_LIBOBJ invocations to module description.
11825         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
11826         here...
11827         * modules/wcsnlen (configure.ac): ... to here.
11828
11829 2011-05-22  Bruno Haible  <bruno@clisp.org>
11830
11831         wcsncpy: Move AC_LIBOBJ invocations to module description.
11832         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
11833         here...
11834         * modules/wcsncpy (configure.ac): ... to here.
11835
11836 2011-05-22  Bruno Haible  <bruno@clisp.org>
11837
11838         wcsncmp: Move AC_LIBOBJ invocations to module description.
11839         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
11840         here...
11841         * modules/wcsncmp (configure.ac): ... to here.
11842
11843 2011-05-22  Bruno Haible  <bruno@clisp.org>
11844
11845         wcsncat: Move AC_LIBOBJ invocations to module description.
11846         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
11847         here...
11848         * modules/wcsncat (configure.ac): ... to here.
11849
11850 2011-05-22  Bruno Haible  <bruno@clisp.org>
11851
11852         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
11853         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
11854         from here...
11855         * modules/wcsncasecmp (configure.ac): ... to here.
11856
11857 2011-05-22  Bruno Haible  <bruno@clisp.org>
11858
11859         wcslen: Move AC_LIBOBJ invocations to module description.
11860         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
11861         * modules/wcslen (configure.ac): ... to here.
11862
11863 2011-05-22  Bruno Haible  <bruno@clisp.org>
11864
11865         wcsdup: Move AC_LIBOBJ invocations to module description.
11866         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
11867         * modules/wcsdup (configure.ac): ... to here.
11868
11869 2011-05-22  Bruno Haible  <bruno@clisp.org>
11870
11871         wcscspn: Move AC_LIBOBJ invocations to module description.
11872         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
11873         here...
11874         * modules/wcscspn (configure.ac): ... to here.
11875
11876 2011-05-22  Bruno Haible  <bruno@clisp.org>
11877
11878         wcscpy: Move AC_LIBOBJ invocations to module description.
11879         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
11880         * modules/wcscpy (configure.ac): ... to here.
11881
11882 2011-05-22  Bruno Haible  <bruno@clisp.org>
11883
11884         wcscoll: Move AC_LIBOBJ invocations to module description.
11885         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
11886         here...
11887         * modules/wcscoll (configure.ac): ... to here.
11888
11889 2011-05-22  Bruno Haible  <bruno@clisp.org>
11890
11891         wcscmp: Move AC_LIBOBJ invocations to module description.
11892         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
11893         * modules/wcscmp (configure.ac): ... to here.
11894
11895 2011-05-22  Bruno Haible  <bruno@clisp.org>
11896
11897         wcschr: Move AC_LIBOBJ invocations to module description.
11898         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
11899         * modules/wcschr (configure.ac): ... to here.
11900
11901 2011-05-22  Bruno Haible  <bruno@clisp.org>
11902
11903         wcscat: Move AC_LIBOBJ invocations to module description.
11904         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
11905         * modules/wcscat (configure.ac): ... to here.
11906
11907 2011-05-22  Bruno Haible  <bruno@clisp.org>
11908
11909         wcscasecmp: Move AC_LIBOBJ invocations to module description.
11910         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
11911         here...
11912         * modules/wcscasecmp (configure.ac): ... to here.
11913
11914 2011-05-22  Bruno Haible  <bruno@clisp.org>
11915
11916         wcrtomb: Move AC_LIBOBJ invocations to module description.
11917         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
11918         invocations from here...
11919         * modules/wcrtomb (configure.ac): ... to here.
11920
11921 2011-05-22  Bruno Haible  <bruno@clisp.org>
11922
11923         wcpncpy: Move AC_LIBOBJ invocations to module description.
11924         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
11925         here...
11926         * modules/wcpncpy (configure.ac): ... to here.
11927
11928 2011-05-22  Bruno Haible  <bruno@clisp.org>
11929
11930         wcpcpy: Move AC_LIBOBJ invocations to module description.
11931         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
11932         * modules/wcpcpy (configure.ac): ... to here.
11933
11934 2011-05-22  Bruno Haible  <bruno@clisp.org>
11935
11936         waitpid: Move AC_LIBOBJ invocations to module description.
11937         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
11938         invocation from here...
11939         * modules/waitpid (configure.ac): ... to here.
11940
11941 2011-05-22  Bruno Haible  <bruno@clisp.org>
11942
11943         utimensat: Move AC_LIBOBJ invocations to module description.
11944         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
11945         here...
11946         * modules/utimensat (configure.ac): ... to here.
11947
11948 2011-05-22  Bruno Haible  <bruno@clisp.org>
11949
11950         usleep: Move AC_LIBOBJ invocations to module description.
11951         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
11952         here...
11953         * modules/usleep (configure.ac): ... to here.
11954
11955 2011-05-22  Bruno Haible  <bruno@clisp.org>
11956
11957         unlockpt: Move AC_LIBOBJ invocations to module description.
11958         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
11959         gl_PREREQ_UNLOCKPT invocations from here...
11960         * modules/unlockpt (configure.ac): ... to here.
11961
11962 2011-05-22  Bruno Haible  <bruno@clisp.org>
11963
11964         unlink: Respect rules for use of AC_LIBOBJ.
11965         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
11966         * modules/unlink (configure.ac): ... to here.
11967
11968 2011-05-22  Bruno Haible  <bruno@clisp.org>
11969
11970         uname: Move AC_LIBOBJ invocations to module description.
11971         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
11972         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
11973         here...
11974         * modules/uname (configure.ac): ... to here.
11975
11976 2011-05-22  Bruno Haible  <bruno@clisp.org>
11977
11978         ttyname_r: Move AC_LIBOBJ invocations to module description.
11979         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
11980         gl_PREREQ_TTYNAME_R invocations from here...
11981         * modules/ttyname_r (configure.ac): ... to here.
11982
11983 2011-05-22  Bruno Haible  <bruno@clisp.org>
11984
11985         tsearch: Move AC_LIBOBJ invocations to module description.
11986         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
11987         invocations from here...
11988         * modules/tsearch (configure.ac): ... to here.
11989
11990 2011-05-22  Bruno Haible  <bruno@clisp.org>
11991
11992         towctrans: Move AC_LIBOBJ invocations to module description.
11993         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
11994         AC_LIBOBJ invocation from here...
11995         * modules/towctrans (configure.ac): ... to here.
11996
11997 2011-05-22  Bruno Haible  <bruno@clisp.org>
11998
11999         tmpfile: Move AC_LIBOBJ invocations to module description.
12000         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12001         invocations from here...
12002         * modules/tmpfile (configure.ac): ... to here.
12003
12004 2011-05-22  Bruno Haible  <bruno@clisp.org>
12005
12006         times: Move AC_LIBOBJ invocations to module description.
12007         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12008         * modules/times (configure.ac): ... to here.
12009
12010 2011-05-22  Bruno Haible  <bruno@clisp.org>
12011
12012         time_r: Move AC_LIBOBJ invocations to module description.
12013         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12014         invocations from here...
12015         * modules/time_r (configure.ac): ... to here.
12016
12017 2011-05-22  Bruno Haible  <bruno@clisp.org>
12018
12019         timegm: Move AC_LIBOBJ invocations to module description.
12020         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12021         invocations from here...
12022         * modules/timegm (configure.ac): ... to here.
12023
12024 2011-05-22  Bruno Haible  <bruno@clisp.org>
12025
12026         tcgetsid: Move AC_LIBOBJ invocations to module description.
12027         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12028         and gl_PREREQ_TCGETSID invocations from here...
12029         * modules/tcgetsid (configure.ac): ... to here.
12030         (Depends-on): Update conditions.
12031
12032 2011-05-22  Bruno Haible  <bruno@clisp.org>
12033
12034         symlinkat: Move AC_LIBOBJ invocations to module description.
12035         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12036         here...
12037         * modules/symlinkat (configure.ac): ... to here.
12038
12039 2011-05-22  Bruno Haible  <bruno@clisp.org>
12040
12041         symlink: Move AC_LIBOBJ invocations to module description.
12042         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12043         here...
12044         * modules/symlink (configure.ac): ... to here.
12045
12046 2011-05-22  Bruno Haible  <bruno@clisp.org>
12047
12048         strverscmp: Move AC_LIBOBJ invocations to module description.
12049         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12050         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12051         from here...
12052         * modules/strverscmp (configure.ac): ... to here.
12053
12054 2011-05-22  Bruno Haible  <bruno@clisp.org>
12055
12056         strtok_r: Move AC_LIBOBJ invocations to module description.
12057         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12058         and gl_PREREQ_STRTOK_R invocations from here...
12059         * modules/strtok_r (configure.ac): ... to here.
12060         (Depends-on): Update conditions.
12061
12062 2011-05-22  Bruno Haible  <bruno@clisp.org>
12063
12064         strtoumax: Move AC_LIBOBJ invocations to module description.
12065         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12066         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12067         from here...
12068         * modules/strtoumax (configure.ac): ... to here.
12069
12070 2011-05-22  Bruno Haible  <bruno@clisp.org>
12071
12072         strtoimax: Move AC_LIBOBJ invocations to module description.
12073         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12075         from here...
12076         * modules/strtoimax (configure.ac): ... to here.
12077
12078 2011-05-22  Bruno Haible  <bruno@clisp.org>
12079
12080         strtoull: Move AC_LIBOBJ invocations to module description.
12081         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12082         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12083         from here...
12084         * modules/strtoull (configure.ac): ... to here.
12085
12086 2011-05-22  Bruno Haible  <bruno@clisp.org>
12087
12088         strtoll: Move AC_LIBOBJ invocations to module description.
12089         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12091         here...
12092         * modules/strtoll (configure.ac): ... to here.
12093
12094 2011-05-22  Bruno Haible  <bruno@clisp.org>
12095
12096         strtoul: Move AC_LIBOBJ invocations to module description.
12097         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12098         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12099         * modules/strtoul (configure.ac): ... to here.
12100
12101 2011-05-22  Bruno Haible  <bruno@clisp.org>
12102
12103         strtol: Move AC_LIBOBJ invocations to module description.
12104         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12105         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12106         * modules/strtol (configure.ac): ... to here.
12107
12108 2011-05-22  Bruno Haible  <bruno@clisp.org>
12109
12110         strtod: Move AC_LIBOBJ invocations to module description.
12111         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12112         invocations from here...
12113         * modules/strtod (configure.ac): ... to here.
12114
12115 2011-05-22  Bruno Haible  <bruno@clisp.org>
12116
12117         strstr*: Move AC_LIBOBJ invocations to module description.
12118         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12119         invocations from here...
12120         * modules/strstr-simple (configure.ac): ... to here.
12121         * modules/strstr (configure.ac): ... and here.
12122
12123 2011-05-22  Bruno Haible  <bruno@clisp.org>
12124
12125         strsignal: Move AC_LIBOBJ invocations to module description.
12126         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12127         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12128         * modules/strsignal (configure.ac): ... to here.
12129         (Depends-on): Update conditions.
12130
12131 2011-05-22  Bruno Haible  <bruno@clisp.org>
12132
12133         strsep: Move AC_LIBOBJ invocations to module description.
12134         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12135         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12136         here...
12137         * modules/strsep (configure.ac): ... to here.
12138
12139 2011-05-22  Bruno Haible  <bruno@clisp.org>
12140
12141         strptime: Move AC_LIBOBJ invocations to module description.
12142         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12143         gl_PREREQ_STRPTIME invocations from here...
12144         * modules/strptime (configure.ac): ... to here.
12145
12146 2011-05-22  Bruno Haible  <bruno@clisp.org>
12147
12148         strpbrk: Move AC_LIBOBJ invocations to module description.
12149         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12150         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12151         here...
12152         * modules/strpbrk (configure.ac): ... to here.
12153
12154 2011-05-22  Bruno Haible  <bruno@clisp.org>
12155
12156         strnlen: Move AC_LIBOBJ invocations to module description.
12157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12158         invocations from here...
12159         * modules/strnlen (configure.ac): ... to here.
12160
12161 2011-05-22  Bruno Haible  <bruno@clisp.org>
12162
12163         strndup: Move AC_LIBOBJ invocations to module description.
12164         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12165         invocations from here...
12166         * modules/strndup (configure.ac): ... to here.
12167         (Depends-on): Update conditions.
12168
12169 2011-05-22  Bruno Haible  <bruno@clisp.org>
12170
12171         strncat: Move AC_LIBOBJ invocations to module description.
12172         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12173         invocations from here...
12174         * modules/strncat (configure.ac): ... to here.
12175
12176 2011-05-22  Bruno Haible  <bruno@clisp.org>
12177
12178         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12179         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12180         invocations from here...
12181         * modules/strdup (configure.ac): ... to here.
12182         * modules/strdup-posix (configure.ac): ... and here.
12183
12184 2011-05-22  Bruno Haible  <bruno@clisp.org>
12185
12186         strcspn: Move AC_LIBOBJ invocations to module description.
12187         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12188         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12189         here...
12190         * modules/strcspn (configure.ac): ... to here.
12191
12192 2011-05-22  Bruno Haible  <bruno@clisp.org>
12193
12194         strchrnul: Move AC_LIBOBJ invocations to module description.
12195         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12196         gl_PREREQ_STRCHRNUL invocations from here...
12197         * modules/strchrnul (configure.ac): ... to here.
12198
12199 2011-05-22  Bruno Haible  <bruno@clisp.org>
12200
12201         strcasestr*: Move AC_LIBOBJ invocations to module description.
12202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12203         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12204         * modules/strcasestr-simple (configure.ac): ... to here.
12205         * modules/strcasestr (configure.ac): ... and here.
12206
12207 2011-05-22  Bruno Haible  <bruno@clisp.org>
12208
12209         strcase: Move AC_LIBOBJ invocations to module description.
12210         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12211         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12212         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12213         gl_PREREQ_STRNCASECMP invocations from here...
12214         * modules/strcase (configure.ac): ... to here.
12215
12216 2011-05-22  Bruno Haible  <bruno@clisp.org>
12217
12218         stpncpy: Move AC_LIBOBJ invocations to module description.
12219         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12220         here...
12221         * modules/stpncpy (configure.ac): ... to here.
12222
12223 2011-05-22  Bruno Haible  <bruno@clisp.org>
12224
12225         stpcpy: Move AC_LIBOBJ invocations to module description.
12226         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12227         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12228         here...
12229         * modules/stpcpy (configure.ac): ... to here.
12230
12231 2011-05-21  Bruno Haible  <bruno@clisp.org>
12232
12233         stat: Move AC_LIBOBJ invocations to module description.
12234         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12235         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12236         here...
12237         * modules/stat (configure.ac): ... to here.
12238
12239 2011-05-21  Bruno Haible  <bruno@clisp.org>
12240
12241         sleep: Move AC_LIBOBJ invocations to module description.
12242         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12243         * modules/sleep (configure.ac): ... to here.
12244
12245 2011-05-21  Bruno Haible  <bruno@clisp.org>
12246
12247         signbit: Move AC_LIBOBJ invocations to module description.
12248         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12249         * modules/signbit (configure.ac): ... to here.
12250
12251 2011-05-21  Bruno Haible  <bruno@clisp.org>
12252
12253         sigprocmask: Move AC_LIBOBJ invocations to module description.
12254         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12255         gl_PREREQ_SIGPROMASK invocations from here...
12256         * modules/sigprocmask (configure.ac): ... to here.
12257
12258 2011-05-21  Bruno Haible  <bruno@clisp.org>
12259
12260         sigaction: Move AC_LIBOBJ invocations to module description.
12261         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12262         gl_PREREQ_SIGACTION invocations from here...
12263         * modules/sigaction (configure.ac): ... to here.
12264
12265 2011-05-21  Bruno Haible  <bruno@clisp.org>
12266
12267         sig2str: Move AC_LIBOBJ invocations to module description.
12268         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12269         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12270         here...
12271         * modules/sig2str (configure.ac): ... to here.
12272
12273 2011-05-21  Bruno Haible  <bruno@clisp.org>
12274
12275         setlocale: Move AC_LIBOBJ invocations to module description.
12276         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12277         gl_PREREQ_SETLOCALE invocations from here...
12278         * modules/setlocale (configure.ac): ... to here.
12279
12280 2011-05-21  Bruno Haible  <bruno@clisp.org>
12281
12282         unsetenv: Move AC_LIBOBJ invocations to module description.
12283         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12284         and gl_PREREQ_UNSETENV invocations from here...
12285         * modules/unsetenv (configure.ac): ... to here.
12286         (Depends-on): Update.
12287
12288 2011-05-21  Bruno Haible  <bruno@clisp.org>
12289
12290         setenv: Move AC_LIBOBJ invocations to module description.
12291         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12292         here...
12293         * modules/setenv (configure.ac): ... to here.
12294
12295 2011-05-21  Bruno Haible  <bruno@clisp.org>
12296
12297         selinux-h: Move AC_LIBOBJ invocations to module description.
12298         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12299         AC_LIBOBJ invocation from here...
12300         * modules/selinux-h (configure.ac): ... to here.
12301
12302 2011-05-21  Bruno Haible  <bruno@clisp.org>
12303
12304         select: Respect rules for use of AC_LIBOBJ.
12305         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12306         here...
12307         * modules/select (configure.ac): ... to here.
12308
12309 2011-05-21  Bruno Haible  <bruno@clisp.org>
12310
12311         scandir: Move AC_LIBOBJ invocations to module description.
12312         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12313         invocations from here...
12314         * modules/scandir (configure.ac): ... to here.
12315
12316 2011-05-21  Bruno Haible  <bruno@clisp.org>
12317
12318         rpmatch: Move AC_LIBOBJ invocations to module description.
12319         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12320         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12321         here...
12322         * modules/rpmatch (configure.ac): ... to here.
12323
12324 2011-05-21  Bruno Haible  <bruno@clisp.org>
12325
12326         rmdir: Respect rules for use of AC_LIBOBJ.
12327         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12328         * modules/rmdir (configure.ac): ... to here.
12329
12330 2011-05-21  Bruno Haible  <bruno@clisp.org>
12331
12332         renameat: Move AC_LIBOBJ invocations to module description.
12333         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12334         here...
12335         * modules/renameat (configure.ac): ... to here.
12336
12337 2011-05-21  Bruno Haible  <bruno@clisp.org>
12338
12339         rename: Respect rules for use of AC_LIBOBJ.
12340         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12341         here...
12342         * modules/rename (configure.ac): ... to here.
12343
12344 2011-05-21  Bruno Haible  <bruno@clisp.org>
12345
12346         remove: Move AC_LIBOBJ invocations to module description.
12347         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12348         here...
12349         * modules/remove (configure.ac): ... to here.
12350
12351 2011-05-21  Bruno Haible  <bruno@clisp.org>
12352
12353         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12354         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12355         macro.
12356         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12357         * modules/relocatable-lib (configure.ac): ... to here.
12358         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12359         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12360
12361 2011-05-21  Bruno Haible  <bruno@clisp.org>
12362
12363         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12364         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12365         here...
12366         * modules/relocatable-prog (configure.ac): ... to here.
12367
12368 2011-05-21  Bruno Haible  <bruno@clisp.org>
12369
12370         regex: Move AC_LIBOBJ invocations to module description.
12371         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12372         invocations from here...
12373         * modules/regex (configure.ac): ... to here.
12374
12375 2011-05-21  Bruno Haible  <bruno@clisp.org>
12376
12377         realloc-*: Move AC_LIBOBJ invocations to module description.
12378         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12379         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12380         AC_LIBOBJ invocations from here...
12381         * modules/realloc-gnu (configure.ac): ... to here.
12382         * modules/realloc-posix (configure.ac): ... and here.
12383
12384 2011-05-21  Bruno Haible  <bruno@clisp.org>
12385
12386         readutmp: Move AC_LIBOBJ invocations to module description.
12387         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12388         * modules/readutmp (configure.ac): ... to here.
12389
12390 2011-05-21  Bruno Haible  <bruno@clisp.org>
12391
12392         readlinkat: Move AC_LIBOBJ invocations to module description.
12393         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12394         here...
12395         * modules/readlinkat (configure.ac): ... to here.
12396
12397 2011-05-21  Bruno Haible  <bruno@clisp.org>
12398
12399         readlink: Move AC_LIBOBJ invocations to module description.
12400         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12401         gl_PREREQ_READLINK invocations from here...
12402         * modules/readlink (configure.ac): ... to here.
12403
12404 2011-05-21  Bruno Haible  <bruno@clisp.org>
12405
12406         readline: Move AC_LIBOBJ invocations to module description.
12407         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12408         gl_PREREQ_READLINE invocations from here...
12409         * modules/readline (configure.ac): ... to here.
12410
12411 2011-05-21  Bruno Haible  <bruno@clisp.org>
12412
12413         read: Move AC_LIBOBJ invocations to module description.
12414         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12415         * modules/read (configure.ac): ... to here.
12416
12417 2011-05-21  Bruno Haible  <bruno@clisp.org>
12418
12419         rawmemchr: Move AC_LIBOBJ invocations to module description.
12420         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12421         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12422         from here...
12423         * modules/rawmemchr (configure.ac): ... to here.
12424
12425 2011-05-21  Bruno Haible  <bruno@clisp.org>
12426
12427         random_r: Move AC_LIBOBJ invocations to module description.
12428         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12429         gl_PREREQ_RANDOM_R invocations from here...
12430         * modules/random_r (configure.ac): ... to here.
12431
12432 2011-05-21  Bruno Haible  <bruno@clisp.org>
12433
12434         pwrite: Move AC_LIBOBJ invocations to module description.
12435         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12436         * modules/pwrite (configure.ac): ... to here.
12437
12438 2011-05-21  Bruno Haible  <bruno@clisp.org>
12439
12440         putenv: Move AC_LIBOBJ invocations to module description.
12441         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
12442         * modules/putenv (configure.ac): ... to here.
12443
12444 2011-05-21  Bruno Haible  <bruno@clisp.org>
12445
12446         login_tty: Move AC_LIBOBJ invocations to module description.
12447         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
12448         * modules/login_tty (configure.ac): ... to here.
12449
12450 2011-05-21  Bruno Haible  <bruno@clisp.org>
12451
12452         openpty: Move AC_LIBOBJ invocations to module description.
12453         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
12454         * modules/openpty (configure.ac): ... to here.
12455
12456 2011-05-21  Bruno Haible  <bruno@clisp.org>
12457
12458         forkpty: Move AC_LIBOBJ invocations to module description.
12459         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
12460         * modules/forkpty (configure.ac): ... to here.
12461
12462 2011-05-21  Bruno Haible  <bruno@clisp.org>
12463
12464         ptsname: Move AC_LIBOBJ invocations to module description.
12465         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
12466         invocations from here...
12467         * modules/ptsname (configure.ac): ... to here.
12468
12469 2011-05-21  Bruno Haible  <bruno@clisp.org>
12470
12471         pread: Move AC_LIBOBJ invocations to module description.
12472         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
12473         * modules/pread (configure.ac): ... to here.
12474
12475 2011-05-21  Bruno Haible  <bruno@clisp.org>
12476
12477         posix_spawn*: Move AC_LIBOBJ invocations to module description.
12478         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
12479         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
12480         * modules/posix_spawn (configure.ac): ... to here.
12481         * modules/posix_spawnp (configure.ac): ... and here.
12482
12483 2011-05-21  Bruno Haible  <bruno@clisp.org>
12484
12485         popen: Move AC_LIBOBJ invocations to module description.
12486         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
12487         invocations from here...
12488         * modules/popen (configure.ac): ... to here.
12489
12490 2011-05-21  Bruno Haible  <bruno@clisp.org>
12491
12492         poll: Move AC_LIBOBJ invocations to module description.
12493         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
12494         invocations from here...
12495         * modules/poll (configure.ac): ... to here.
12496
12497 2011-05-21  Bruno Haible  <bruno@clisp.org>
12498
12499         pipe-posix: Move AC_LIBOBJ invocations to module description.
12500         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
12501         * modules/pipe-posix (configure.ac): ... to here.
12502
12503 2011-05-21  Bruno Haible  <bruno@clisp.org>
12504
12505         openat: Respect rules for use of AC_LIBOBJ.
12506         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
12507         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12508         * modules/openat (configure.ac): ... to here.
12509
12510 2011-05-21  Bruno Haible  <bruno@clisp.org>
12511
12512         obstack-printf*: Move AC_LIBOBJ invocations to module description.
12513         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
12514         invocation from here...
12515         * modules/obstack-printf (configure.ac): ... to here.
12516         * modules/obstack-printf-posix (configure.ac): ... and here.
12517
12518 2011-05-21  Bruno Haible  <bruno@clisp.org>
12519
12520         nl_langinfo: Move AC_LIBOBJ invocations to module description.
12521         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
12522         from here...
12523         * modules/nl_langinfo (configure.ac): ... to here.
12524
12525 2011-05-21  Bruno Haible  <bruno@clisp.org>
12526
12527         nanosleep: Move AC_LIBOBJ invocations to module description.
12528         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
12529         gl_PREREQ_NANOSLEEP invocations from here...
12530         * modules/nanosleep (configure.ac): ... to here.
12531
12532 2011-05-21  Bruno Haible  <bruno@clisp.org>
12533
12534         mountlist: Move AC_LIBOBJ invocations to module description.
12535         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
12536         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
12537         * modules/mountlist (configure.ac): ... to here.
12538
12539 2011-05-21  Bruno Haible  <bruno@clisp.org>
12540
12541         mktime: Respect rules for use of AC_LIBOBJ.
12542         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
12543         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
12544         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
12545         (gl_FUNC_MKTIME_INTERNAL): ... and here...
12546         * modules/mktime (configure.ac): ... to here.
12547         * modules/mktime-internal (configure.ac): ... and here.
12548         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
12549
12550 2011-05-21  Bruno Haible  <bruno@clisp.org>
12551
12552         mkstemps: Move AC_LIBOBJ invocations to module description.
12553         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
12554         here...
12555         * modules/mkstemps (configure.ac): ... to here.
12556
12557 2011-05-21  Bruno Haible  <bruno@clisp.org>
12558
12559         mkstemp: Move AC_LIBOBJ invocations to module description.
12560         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
12561         gl_PREREQ_MKSTEMP invocations from here...
12562         * modules/mkstemp (configure.ac): ... to here.
12563
12564 2011-05-21  Bruno Haible  <bruno@clisp.org>
12565
12566         mkostemps: Move AC_LIBOBJ invocations to module description.
12567         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
12568         here...
12569         * modules/mkostemps (configure.ac): ... to here.
12570
12571 2011-05-21  Bruno Haible  <bruno@clisp.org>
12572
12573         mkostemp: Move AC_LIBOBJ invocations to module description.
12574         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
12575         gl_PREREQ_MKOSTEMP invocations from here...
12576         * modules/mkostemp (configure.ac): ... to here.
12577
12578 2011-05-21  Bruno Haible  <bruno@clisp.org>
12579
12580         mknod: Move AC_LIBOBJ invocations to module description.
12581         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
12582         * modules/mknod (configure.ac): ... to here.
12583
12584 2011-05-21  Bruno Haible  <bruno@clisp.org>
12585
12586         mkfifoat: Move AC_LIBOBJ invocations to module description.
12587         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
12588         here...
12589         * modules/mkfifoat (configure.ac): ... to here.
12590
12591 2011-05-21  Bruno Haible  <bruno@clisp.org>
12592
12593         mkfifo: Respect rules for use of AC_LIBOBJ.
12594         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
12595         here...
12596         * modules/mkfifo (configure.ac): ... to here.
12597
12598 2011-05-21  Bruno Haible  <bruno@clisp.org>
12599
12600         mkdtemp: Move AC_LIBOBJ invocations to module description.
12601         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
12602         invocations from here...
12603         * modules/mkdtemp (configure.ac): ... to here.
12604
12605 2011-05-21  Bruno Haible  <bruno@clisp.org>
12606
12607         mkdir: Move AC_LIBOBJ invocations to module description.
12608         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
12609         * modules/mkdir (configure.ac): ... to here.
12610
12611 2011-05-21  Bruno Haible  <bruno@clisp.org>
12612
12613         memset: Move AC_LIBOBJ invocations to module description.
12614         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
12615         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
12616         here...
12617         * modules/memset (configure.ac): ... to here.
12618
12619 2011-05-21  Bruno Haible  <bruno@clisp.org>
12620
12621         memrchr: Move AC_LIBOBJ invocations to module description.
12622         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
12623         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
12624         here...
12625         * modules/memrchr (configure.ac): ... to here.
12626
12627 2011-05-21  Bruno Haible  <bruno@clisp.org>
12628
12629         mempcpy: Move AC_LIBOBJ invocations to module description.
12630         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
12631         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
12632         here...
12633         * modules/mempcpy (configure.ac): ... to here.
12634
12635 2011-05-21  Bruno Haible  <bruno@clisp.org>
12636
12637         memmove: Move AC_LIBOBJ invocations to module description.
12638         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
12639         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
12640         here...
12641         * modules/memmove (configure.ac): ... to here.
12642
12643 2011-05-21  Bruno Haible  <bruno@clisp.org>
12644
12645         memmem*: Move AC_LIBOBJ invocations to module description.
12646         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
12647         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
12648         here...
12649         (gl_FUNC_MEMMEM): ... and here...
12650         * modules/memmem-simple (configure.ac): ... to here.
12651         * modules/memmem (configure.ac): ... and here.
12652
12653 2011-05-21  Bruno Haible  <bruno@clisp.org>
12654
12655         memcpy: Move AC_LIBOBJ invocations to module description.
12656         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
12657         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
12658         here...
12659         * modules/memcpy (configure.ac): ... to here.
12660
12661 2011-05-21  Bruno Haible  <bruno@clisp.org>
12662
12663         memcmp: Simplify autoconf macro.
12664         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
12665         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
12666         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
12667
12668 2011-05-21  Bruno Haible  <bruno@clisp.org>
12669
12670         memcmp: Move AC_LIBOBJ invocations to module description.
12671         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
12672         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
12673         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
12674         * modules/memcmp (configure.ac): ... to here.
12675         (Depends-on): Update conditions.
12676
12677 2011-05-21  Bruno Haible  <bruno@clisp.org>
12678
12679         memchr: Respect rules for use of AC_LIBOBJ.
12680         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
12681         invocations from here...
12682         * modules/memchr (configure.ac): ... to here.
12683
12684 2011-05-21  Bruno Haible  <bruno@clisp.org>
12685
12686         mbtowc: Move AC_LIBOBJ invocations to module description.
12687         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
12688         invocations from here...
12689         * modules/mbtowc (configure.ac): ... to here.
12690
12691 2011-05-21  Bruno Haible  <bruno@clisp.org>
12692
12693         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
12694         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
12695         gl_PREREQ_MBSRTOWCS invocations from here...
12696         * modules/mbsrtowcs (configure.ac): ... to here.
12697
12698 2011-05-21  Bruno Haible  <bruno@clisp.org>
12699
12700         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
12701         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
12702         gl_PREREQ_MBSNRTOWCS invocations from here...
12703         * modules/mbsnrtowcs (configure.ac): ... to here.
12704
12705 2011-05-21  Bruno Haible  <bruno@clisp.org>
12706
12707         mbsinit: Move AC_LIBOBJ invocations to module description.
12708         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
12709         invocations from here...
12710         * modules/mbsinit (configure.ac): ... to here.
12711
12712 2011-05-21  Bruno Haible  <bruno@clisp.org>
12713
12714         mbrlen: Move AC_LIBOBJ invocations to module description.
12715         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
12716         invocations from here...
12717         * modules/mbrlen (configure.ac): ... to here.
12718
12719 2011-05-21  Bruno Haible  <bruno@clisp.org>
12720
12721         mbrtowc: Respect rules for use of AC_LIBOBJ.
12722         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
12723         invocations from here...
12724         * modules/mbrtowc (configure.ac): ... to here.
12725
12726 2011-05-21  Bruno Haible  <bruno@clisp.org>
12727
12728         malloc-*: Move AC_LIBOBJ invocations to module description.
12729         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
12730         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
12731         AC_LIBOBJ invocations from here...
12732         * modules/malloc-gnu (configure.ac): ... to here.
12733         * modules/malloc-posix (configure.ac): ... and here.
12734
12735 2011-05-21  Bruno Haible  <bruno@clisp.org>
12736
12737         lstat, openat: Respect rules for use of AC_LIBOBJ.
12738         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
12739         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
12740         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
12741         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
12742         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
12743         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
12744         here.
12745         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
12746
12747 2011-05-21  Bruno Haible  <bruno@clisp.org>
12748
12749         lseek: Move AC_LIBOBJ invocations to module description.
12750         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
12751         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
12752         * modules/lseek (configure.ac): ... to here.
12753
12754 2011-05-21  Bruno Haible  <bruno@clisp.org>
12755
12756         linkat: Move AC_LIBOBJ invocations to module description.
12757         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
12758         here...
12759         * modules/linkat (configure.ac): ... to here.
12760
12761 2011-05-21  Bruno Haible  <bruno@clisp.org>
12762
12763         link: Respect rules for use of AC_LIBOBJ.
12764         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
12765         * modules/link (configure.ac): ... to here.
12766
12767 2011-05-21  Bruno Haible  <bruno@clisp.org>
12768
12769         lchown: Move AC_LIBOBJ invocations to module description.
12770         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
12771         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
12772         * modules/lchown (configure.ac): ... to here.
12773
12774 2011-05-21  Bruno Haible  <bruno@clisp.org>
12775
12776         iswctype: Move AC_LIBOBJ invocations to module description.
12777         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
12778         here...
12779         * modules/iswctype (configure.ac): ... to here.
12780
12781 2011-05-21  Bruno Haible  <bruno@clisp.org>
12782
12783         iswblank: Move AC_LIBOBJ invocations to module description.
12784         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
12785         here...
12786         * modules/iswblank (configure.ac): ... to here.
12787
12788 2011-05-21  Bruno Haible  <bruno@clisp.org>
12789
12790         atanl: Move AC_LIBOBJ invocations to module description.
12791         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
12792         * modules/atanl (configure.ac): ... to here.
12793
12794 2011-05-21  Bruno Haible  <bruno@clisp.org>
12795
12796         acosl: Move AC_LIBOBJ invocations to module description.
12797         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
12798         * modules/acosl (configure.ac): ... to here.
12799
12800 2011-05-21  Bruno Haible  <bruno@clisp.org>
12801
12802         asinl: Respect rules for use of AC_LIBOBJ.
12803         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
12804         * modules/asinl (configure.ac): ... to here.
12805
12806 2011-05-21  Bruno Haible  <bruno@clisp.org>
12807
12808         tanl: Move AC_LIBOBJ invocations to module description.
12809         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
12810         * modules/tanl (configure.ac): ... to here.
12811
12812 2011-05-21  Bruno Haible  <bruno@clisp.org>
12813
12814         cosl: Move AC_LIBOBJ invocations to module description.
12815         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
12816         * modules/cosl (configure.ac): ... to here.
12817
12818 2011-05-21  Bruno Haible  <bruno@clisp.org>
12819
12820         sinl: Move AC_LIBOBJ invocations to module description.
12821         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
12822         * modules/sinl (configure.ac): ... to here.
12823
12824 2011-05-21  Bruno Haible  <bruno@clisp.org>
12825
12826         logl: Move AC_LIBOBJ invocations to module description.
12827         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
12828         * modules/logl (configure.ac): ... to here.
12829
12830 2011-05-21  Bruno Haible  <bruno@clisp.org>
12831
12832         expl: Move AC_LIBOBJ invocations to module description.
12833         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
12834         * modules/expl (configure.ac): ... to here.
12835
12836 2011-05-21  Bruno Haible  <bruno@clisp.org>
12837
12838         roundl: Move AC_LIBOBJ invocations to module description.
12839         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
12840         * modules/roundl (configure.ac): ... to here.
12841
12842 2011-05-21  Bruno Haible  <bruno@clisp.org>
12843
12844         round: Move AC_LIBOBJ invocations to module description.
12845         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
12846         * modules/round (configure.ac): ... to here.
12847
12848 2011-05-21  Bruno Haible  <bruno@clisp.org>
12849
12850         roundf: Move AC_LIBOBJ invocations to module description.
12851         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
12852         * modules/roundf (configure.ac): ... to here.
12853
12854 2011-05-21  Bruno Haible  <bruno@clisp.org>
12855
12856         truncl: Move AC_LIBOBJ invocations to module description.
12857         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
12858         * modules/truncl (configure.ac): ... to here.
12859
12860 2011-05-21  Bruno Haible  <bruno@clisp.org>
12861
12862         trunc: Move AC_LIBOBJ invocations to module description.
12863         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
12864         * modules/trunc (configure.ac): ... to here.
12865
12866 2011-05-21  Bruno Haible  <bruno@clisp.org>
12867
12868         truncf: Move AC_LIBOBJ invocations to module description.
12869         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
12870         * modules/truncf (configure.ac): ... to here.
12871
12872 2011-05-21  Bruno Haible  <bruno@clisp.org>
12873
12874         ceill: Move AC_LIBOBJ invocations to module description.
12875         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
12876         * modules/ceill (configure.ac): ... to here.
12877
12878 2011-05-21  Bruno Haible  <bruno@clisp.org>
12879
12880         ceil: Move AC_LIBOBJ invocations to module description.
12881         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
12882         * modules/ceil (configure.ac): ... to here.
12883
12884 2011-05-21  Bruno Haible  <bruno@clisp.org>
12885
12886         ceilf: Move AC_LIBOBJ invocations to module description.
12887         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
12888         * modules/ceilf (configure.ac): ... to here.
12889
12890 2011-05-21  Bruno Haible  <bruno@clisp.org>
12891
12892         floorl: Respect rules for use of AC_LIBOBJ.
12893         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
12894         * modules/floorl (configure.ac): ... to here.
12895
12896 2011-05-21  Bruno Haible  <bruno@clisp.org>
12897
12898         floor: Respect rules for use of AC_LIBOBJ.
12899         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
12900         * modules/floor (configure.ac): ... to here.
12901
12902 2011-05-21  Bruno Haible  <bruno@clisp.org>
12903
12904         floorf: Move AC_LIBOBJ invocations to module description.
12905         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
12906         * modules/floorf (configure.ac): ... to here.
12907
12908 2011-05-20  Bruno Haible  <bruno@clisp.org>
12909
12910         sqrtl: Respect rules for use of AC_LIBOBJ.
12911         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
12912         * modules/sqrtl (configure.ac): ... to here.
12913
12914 2011-05-20  Bruno Haible  <bruno@clisp.org>
12915
12916         ldexpl: Respect rules for use of AC_LIBOBJ.
12917         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
12918         * modules/ldexpl (configure.ac): ... to here.
12919
12920 2011-05-20  Bruno Haible  <bruno@clisp.org>
12921
12922         frexpl*: Respect rules for use of AC_LIBOBJ.
12923         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
12924         invocation from here...
12925         * modules/frexpl (configure.ac): ... to here.
12926         * modules/frexpl-nolibm (configure.ac): ... and here.
12927
12928 2011-05-20  Bruno Haible  <bruno@clisp.org>
12929
12930         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
12931         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
12932         invocation from here...
12933         * modules/frexp (configure.ac): ... to here.
12934         * modules/frexp-nolibm (configure.ac): ... and here.
12935
12936 2011-05-20  Bruno Haible  <bruno@clisp.org>
12937
12938         isnan: Respect rules for use of AC_LIBOBJ.
12939         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
12940         invocations here.
12941         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
12942         REPLACE_ISNAN.
12943         * modules/isnand (configure.ac): Likewise.
12944         * modules/isnanl (configure.ac): Likewise.
12945
12946 2011-05-20  Bruno Haible  <bruno@clisp.org>
12947
12948         isnanl*: Respect rules for use of AC_LIBOBJ.
12949         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
12950         invocation from here...
12951         * modules/isnanl (configure.ac): ... to here.
12952         * modules/isnanl-nolibm (configure.ac): ... and here.
12953
12954 2011-05-20  Bruno Haible  <bruno@clisp.org>
12955
12956         isnand*: Move AC_LIBOBJ invocations to module description.
12957         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
12958         invocation from here...
12959         * modules/isnand (configure.ac): ... to here.
12960         * modules/isnand-nolibm (configure.ac): ... and here.
12961
12962 2011-05-20  Bruno Haible  <bruno@clisp.org>
12963
12964         isnanf*: Move AC_LIBOBJ invocations to module description.
12965         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
12966         invocation from here...
12967         * modules/isnanf (configure.ac): ... to here.
12968         * modules/isnanf-nolibm (configure.ac): ... and here.
12969
12970 2011-05-20  Bruno Haible  <bruno@clisp.org>
12971
12972         isnan*: Separate the AC_LIBOBJ invocations.
12973         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
12974         AC_LIBOBJ invocation.
12975         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
12976         here.
12977         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
12978         AC_LIBOBJ invocation.
12979         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
12980         here.
12981         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
12982         AC_LIBOBJ invocation.
12983         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
12984         here.
12985         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
12986
12987 2011-05-08  Bruno Haible  <bruno@clisp.org>
12988
12989         isinf: Move AC_LIBOBJ invocations to module description.
12990         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
12991         * modules/isinf (configure.ac): ... to here.
12992
12993 2011-05-08  Bruno Haible  <bruno@clisp.org>
12994
12995         isfinite: Move AC_LIBOBJ invocations to module description.
12996         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
12997         * modules/isfinite (configure.ac): ... to here.
12998
12999 2011-05-08  Bruno Haible  <bruno@clisp.org>
13000
13001         isblank: Move AC_LIBOBJ invocations to module description.
13002         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13003         here...
13004         * modules/isblank (configure.ac): ... to here.
13005
13006 2011-05-08  Bruno Haible  <bruno@clisp.org>
13007
13008         isapipe: Move AC_LIBOBJ invocations to module description.
13009         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13010         gl_PREREQ_ISAPIPE invocations from here...
13011         * modules/isapipe (configure.ac): ... to here.
13012         (Depends-on): Update condition.
13013
13014 2011-05-08  Bruno Haible  <bruno@clisp.org>
13015
13016         ioctl: Move AC_LIBOBJ invocations to module description.
13017         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13018         invocations from here...
13019         * modules/ioctl (configure.ac): ... to here.
13020         (Depends-on): Update condition.
13021
13022 2011-05-08  Bruno Haible  <bruno@clisp.org>
13023
13024         imaxdiv: Move AC_LIBOBJ invocations to module description.
13025         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13026         invocations from here...
13027         * modules/imaxdiv (configure.ac): ... to here.
13028
13029 2011-05-08  Bruno Haible  <bruno@clisp.org>
13030
13031         imaxabs: Move AC_LIBOBJ invocations to module description.
13032         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13033         invocations from here...
13034         * modules/imaxabs (configure.ac): ... to here.
13035
13036 2011-05-08  Bruno Haible  <bruno@clisp.org>
13037
13038         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13039         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13040         AC_LIBOBJ invocations from here...
13041         * modules/getaddrinfo (configure.ac): ... to here.
13042         (Depends-on): Add conditions.
13043
13044 2011-05-08  Bruno Haible  <bruno@clisp.org>
13045
13046         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13047         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13048         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13049         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13050         (gl_PREREQ_INET_PTON): ... from here.
13051         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13052         gl_PREREQ_INET_PTON here.
13053         (Depends-on): Update condition.
13054
13055 2011-05-08  Bruno Haible  <bruno@clisp.org>
13056
13057         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13058         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13059         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13060         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13061         (gl_PREREQ_INET_NTOP): ... from here.
13062         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13063         gl_PREREQ_INET_NTOP here.
13064         (Depends-on): Update condition.
13065
13066 2011-05-08  Bruno Haible  <bruno@clisp.org>
13067
13068         iconv_open: Move AC_LIBOBJ invocations to module description.
13069         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13070         AC_LIBOBJ invocations from here...
13071         * modules/iconv_open (configure.ac): ... to here.
13072
13073 2011-05-08  Bruno Haible  <bruno@clisp.org>
13074
13075         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13076         If module 'iconv_open' is among the main modules and module
13077         'iconv_open-utf' is among the tests dependencies, then
13078         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13079         return the special iconv_t values. Therefore iconv() and iconv_close()
13080         must support these special iconv_t values, already in lib, not only in
13081         tests.
13082         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13083         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13084         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13085         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13086         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13087         (Depends-on): Add the dependencies of iconv_open-utf.
13088         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13089         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13090         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13091
13092 2011-05-08  Bruno Haible  <bruno@clisp.org>
13093
13094         group-member: Move AC_LIBOBJ invocations to module description.
13095         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13096         gl_PREREQ_GROUP_MEMBER invocations from here...
13097         * modules/group-member (configure.ac): ... to here.
13098
13099 2011-05-08  Bruno Haible  <bruno@clisp.org>
13100
13101         grantpt: Move AC_LIBOBJ invocations to module description.
13102         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13103         invocations from here...
13104         * modules/grantpt (configure.ac): ... to here.
13105
13106 2011-05-08  Bruno Haible  <bruno@clisp.org>
13107
13108         glob: Move AC_LIBOBJ invocations to module description.
13109         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13110         from here...
13111         * modules/glob (configure.ac): ... to here.
13112
13113 2011-05-08  Bruno Haible  <bruno@clisp.org>
13114
13115         getusershell: Move AC_LIBOBJ invocations to module description.
13116         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13117         Move AC_LIBOBJ invocation from here...
13118         * modules/getusershell (configure.ac): ... to here.
13119         (Depends-on): Update condition.
13120
13121 2011-05-08  Bruno Haible  <bruno@clisp.org>
13122
13123         gettimeofday: Move AC_LIBOBJ invocations to module description.
13124         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13125         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13126         gl_PREREQ_GETTIMEOFDAY invocations from here...
13127         * modules/gettimeofday (configure.ac): ... to here.
13128
13129 2011-05-08  Bruno Haible  <bruno@clisp.org>
13130
13131         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13132         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13133         just gl_FUNC_TZSET.
13134         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13135         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13136         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13137         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13138
13139 2011-05-08  Bruno Haible  <bruno@clisp.org>
13140
13141         getsubopt: Move AC_LIBOBJ invocations to module description.
13142         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13143         gl_PREREQ_GETSUBOPT invocations from here...
13144         * modules/getsubopt (configure.ac): ... to here.
13145
13146 2011-05-08  Bruno Haible  <bruno@clisp.org>
13147
13148         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13149         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13150         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13151         * modules/getpass-gnu (configure.ac): ... to here.
13152
13153 2011-05-08  Bruno Haible  <bruno@clisp.org>
13154
13155         getpass: Move AC_LIBOBJ invocations to module description.
13156         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13157         gl_PREREQ_GETPASS invocations from here...
13158         * modules/getpass (configure.ac): ... to here.
13159
13160 2011-05-08  Bruno Haible  <bruno@clisp.org>
13161
13162         getpagesize: Move AC_LIBOBJ invocations to module description.
13163         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13164         from here...
13165         * modules/getpagesize (configure.ac): ... to here.
13166
13167 2011-05-08  Bruno Haible  <bruno@clisp.org>
13168
13169         getopt: Move AC_LIBOBJ invocations to module description.
13170         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13171         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13172         invocations from here...
13173         * modules/getopt-gnu (configure.ac): ... to here.
13174         * modules/getopt-posix (configure.ac): ... and here.
13175         (Depends-on): Update condition.
13176
13177 2011-05-08  Bruno Haible  <bruno@clisp.org>
13178
13179         getopt, argp: Respect rules for use of AC_LIBOBJ.
13180         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13181         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13182         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13183         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13184
13185 2011-05-08  Bruno Haible  <bruno@clisp.org>
13186
13187         getlogin_r: Move AC_LIBOBJ invocations to module description.
13188         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13189         gl_PREREQ_GETLOGIN_R invocations from here...
13190         * modules/getlogin_r (configure.ac): ... to here.
13191
13192 2011-05-08  Bruno Haible  <bruno@clisp.org>
13193
13194         getlogin: Move AC_LIBOBJ invocations to module description.
13195         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13196         here...
13197         * modules/getlogin (configure.ac): ... to here.
13198
13199 2011-05-08  Bruno Haible  <bruno@clisp.org>
13200
13201         getloadavg: Move AC_LIBOBJ invocations to module description.
13202         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13203         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13204         * modules/getloadavg (configure.ac): ... to here.
13205
13206 2011-05-08  Bruno Haible  <bruno@clisp.org>
13207
13208         gethrxtime: Move AC_LIBOBJ invocations to module description.
13209         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13210         LIB_GETHRXTIME from here...
13211         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13212         invocations from here...
13213         * modules/gethrxtime (configure.ac): ... to here.
13214
13215 2011-05-08  Bruno Haible  <bruno@clisp.org>
13216
13217         gethostname: Move AC_LIBOBJ invocations to module description.
13218         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13219         gl_PREREQ_GETHOSTNAME invocations from here...
13220         * modules/gethostname (configure.ac): ... to here.
13221
13222 2011-05-08  Bruno Haible  <bruno@clisp.org>
13223
13224         getgroups: Move AC_LIBOBJ invocations to module description.
13225         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13226         here...
13227         * modules/getgroups (configure.ac): ... to here.
13228
13229 2011-05-08  Bruno Haible  <bruno@clisp.org>
13230
13231         getdtablesize: Move AC_LIBOBJ invocations to module description.
13232         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13233         invocation from here...
13234         * modules/getdtablesize (configure.ac): ... to here.
13235
13236 2011-05-08  Bruno Haible  <bruno@clisp.org>
13237
13238         getdomainname: Move AC_LIBOBJ invocations to module description.
13239         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13240         gl_PREREQ_GETDOMAINNAME invocations from here...
13241         * modules/getdomainname (configure.ac): ... to here.
13242
13243 2011-05-08  Bruno Haible  <bruno@clisp.org>
13244
13245         getline: Move AC_LIBOBJ invocations to module description.
13246         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13247         invocations from here...
13248         * modules/getline (configure.ac): ... to here.
13249
13250 2011-05-08  Bruno Haible  <bruno@clisp.org>
13251
13252         getline: Simplify.
13253         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13254         It's already handled through the module dependency.
13255
13256 2011-05-08  Bruno Haible  <bruno@clisp.org>
13257
13258         getdelim: Move AC_LIBOBJ invocations to module description.
13259         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13260         and gl_PREREQ_GETDELIM invocations from here...
13261         * modules/getdelim (configure.ac): ... to here.
13262         (Depends-on): Fix condition.
13263
13264 2011-05-08  Bruno Haible  <bruno@clisp.org>
13265
13266         getcwd: Move AC_LIBOBJ invocations to module description.
13267         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13268         invocations from here...
13269         * modules/getcwd (configure.ac): ... to here.
13270
13271 2011-05-08  Bruno Haible  <bruno@clisp.org>
13272
13273         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13274         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13275         here...
13276         * modules/getcwd-lgpl (configure.ac): ... to here.
13277
13278 2011-05-07  Bruno Haible  <bruno@clisp.org>
13279
13280         crypto/gc: Move AC_LIBOBJ invocations to module description.
13281         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13282         * modules/crypto/gc (configure.ac): ... to here.
13283
13284 2011-05-07  Bruno Haible  <bruno@clisp.org>
13285
13286         fwriting: Move AC_LIBOBJ invocations to module description.
13287         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13288         here...
13289         * modules/fwriting (configure.ac): ... to here.
13290
13291 2011-05-07  Bruno Haible  <bruno@clisp.org>
13292
13293         fwritable: Move AC_LIBOBJ invocations to module description.
13294         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13295         here...
13296         * modules/fwritable (configure.ac): ... to here.
13297
13298 2011-05-07  Bruno Haible  <bruno@clisp.org>
13299
13300         futimens: Move AC_LIBOBJ invocations to module description.
13301         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13302         here...
13303         * modules/futimens (configure.ac): ... to here.
13304
13305 2011-05-07  Bruno Haible  <bruno@clisp.org>
13306
13307         ftruncate: Move AC_LIBOBJ invocations to module description.
13308         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13309         gl_PREREQ_FTRUNCATE invocations from here...
13310         * modules/ftruncate (configure.ac): ... to here.
13311
13312 2011-05-07  Bruno Haible  <bruno@clisp.org>
13313
13314         fsync: Move AC_LIBOBJ invocations to module description.
13315         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13316         invocations from here...
13317         * modules/fsync (configure.ac): ... to here.
13318
13319 2011-05-07  Bruno Haible  <bruno@clisp.org>
13320
13321         fsusage: Move AC_LIBOBJ invocations to module description.
13322         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13323         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13324         * modules/fsusage (configure.ac): ... to here.
13325
13326 2011-05-07  Bruno Haible  <bruno@clisp.org>
13327
13328         freopen: Move AC_LIBOBJ invocations to module description.
13329         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13330         invocations from here...
13331         * modules/freopen (configure.ac): ... to here.
13332
13333 2011-05-07  Bruno Haible  <bruno@clisp.org>
13334
13335         free: Move AC_LIBOBJ invocations to module description.
13336         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13337         invocations from here...
13338         * modules/free (configure.ac): ... to here.
13339
13340 2011-05-07  Bruno Haible  <bruno@clisp.org>
13341
13342         freadable: Move AC_LIBOBJ invocations to module description.
13343         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13344         here...
13345         * modules/freadable (configure.ac): ... to here.
13346
13347 2011-05-07  Bruno Haible  <bruno@clisp.org>
13348
13349         fpurge: Move AC_LIBOBJ invocations to module description.
13350         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13351         invocations from here...
13352         * modules/fpurge (configure.ac): ... to here.
13353
13354 2011-05-07  Bruno Haible  <bruno@clisp.org>
13355
13356         fpending: Move AC_LIBOBJ invocations to module description.
13357         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13358         gl_FUNC_FPENDING.
13359         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13360         invocations from here...
13361         * modules/fpending (configure.ac): ... to here.
13362
13363 2011-05-07  Bruno Haible  <bruno@clisp.org>
13364
13365         fopen: Move AC_LIBOBJ invocations to module description.
13366         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13367         invocations from here...
13368         * modules/fopen (configure.ac): ... to here.
13369
13370 2011-05-07  Bruno Haible  <bruno@clisp.org>
13371
13372         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13373         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13374         gl_FUNC_FNMATCH_POSIX.
13375         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13376         invocations from here...
13377         * modules/fnmatch (configure.ac): ... to here.
13378         * modules/fnmatch-gnu (configure.ac): ... and here.
13379
13380 2011-05-07  Bruno Haible  <bruno@clisp.org>
13381
13382         flock: Move AC_LIBOBJ invocations to module description.
13383         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13384         invocations from here...
13385         * modules/flock (configure.ac): ... to here.
13386
13387 2011-05-07  Bruno Haible  <bruno@clisp.org>
13388
13389         fileblocks: Move AC_LIBOBJ invocations to module description.
13390         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13391         gl_PREREQ_FILEBLOCKS invocations from here...
13392         * modules/fileblocks (configure.ac): ... to here.
13393
13394 2011-05-06  Bruno Haible  <bruno@clisp.org>
13395
13396         fflush: Move AC_LIBOBJ invocations to module description.
13397         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13398         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13399         invocations from here...
13400         * modules/fflush (configure.ac): ... to here.
13401
13402 2011-05-06  Bruno Haible  <bruno@clisp.org>
13403
13404         fdopendir: Move AC_LIBOBJ invocations to module description.
13405         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13406         here...
13407         * modules/fdopendir (configure.ac): ... to here.
13408         (Depends-on): Improve conditions.
13409
13410 2011-05-06  Bruno Haible  <bruno@clisp.org>
13411
13412         _Exit: Move AC_LIBOBJ invocations to module description.
13413         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13414         invocations from here...
13415         * modules/_Exit (configure.ac): ... to here.
13416
13417 2011-05-21  Bruno Haible  <bruno@clisp.org>
13418
13419         euidaccess: Respect rules for use of AC_LIBOBJ.
13420         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13421         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13422         from here...
13423         * modules/euidaccess (configure.ac): ... to here.
13424
13425 2011-05-06  Bruno Haible  <bruno@clisp.org>
13426
13427         error: Move AC_LIBOBJ invocations to module description.
13428         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13429         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13430         invocations from here...
13431         * modules/error (configure.ac): ... to here.
13432
13433 2011-05-06  Bruno Haible  <bruno@clisp.org>
13434
13435         duplocale: Move AC_LIBOBJ invocations to module description.
13436         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
13437         gl_PREREQ_DUPLOCALE invocations from here...
13438         * modules/duplocale (configure.ac): ... to here.
13439
13440 2011-05-05  Bruno Haible  <bruno@clisp.org>
13441
13442         dirfd: Move AC_LIBOBJ invocations to module description.
13443         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
13444         gl_FUNC_DIRFD.
13445         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
13446         here...
13447         * modules/dirfd (configure.ac): ... to here.
13448         (Depends-on): Fix condition.
13449
13450 2011-05-05  Bruno Haible  <bruno@clisp.org>
13451
13452         chown: Respect rules for use of AC_LIBOBJ.
13453         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
13454         * modules/chown (configure.ac): ... to here.
13455
13456 2011-05-05  Bruno Haible  <bruno@clisp.org>
13457
13458         chdir-long: Move AC_LIBOBJ invocations to module description.
13459         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
13460         gl_PREREQ_CHDIR_LONG invocations from here...
13461         * modules/chdir-long (configure.ac): ... to here.
13462
13463 2011-05-05  Bruno Haible  <bruno@clisp.org>
13464
13465         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
13466         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
13467         from here...
13468         * modules/canonicalize-lgpl (configure.ac): ... to here.
13469
13470 2011-05-05  Bruno Haible  <bruno@clisp.org>
13471
13472         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
13473         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
13474         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
13475         REPLACE_CALLOC.
13476         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
13477         * modules/calloc-gnu (configure.ac): Likewise.
13478
13479 2011-05-05  Bruno Haible  <bruno@clisp.org>
13480
13481         btowc: Move AC_LIBOBJ invocations to module description.
13482         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
13483         invocations from here...
13484         * modules/btowc (configure.ac): ... to here.
13485
13486 2011-05-21  Bruno Haible  <bruno@clisp.org>
13487
13488         atexit: Move AC_LIBOBJ invocations to module description.
13489         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
13490         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
13491         here...
13492         * modules/atexit (configure.ac): ... to here.
13493
13494 2011-05-05  Bruno Haible  <bruno@clisp.org>
13495
13496         atoll: Move AC_LIBOBJ invocations to module description.
13497         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
13498         invocations from here...
13499         * modules/atoll (configure.ac): ... to here.
13500
13501 2011-05-05  Bruno Haible  <bruno@clisp.org>
13502
13503         argz: Move AC_LIBOBJ invocations to module description.
13504         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
13505         * modules/argz (configure.ac): ... to here.
13506
13507 2011-05-05  Bruno Haible  <bruno@clisp.org>
13508
13509         alphasort: Move AC_LIBOBJ invocations to module description.
13510         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
13511         gl_PREREQ_ALPHASORT invocations from here...
13512         * modules/alphasort (configure.ac): ... to here.
13513
13514 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
13515
13516         verify: new macro verify_expr; verify_true deprecated
13517         * NEWS: Mention this.
13518         * doc/verify.texi (Compile-time Assertions): Document this.
13519         * lib/verify.h (verify_true): Deprecate.
13520         (verify_expr): New macro.
13521         * tests/test-verify.c (function): Test verify_expr.
13522
13523 2011-06-14  Jim Meyering  <meyering@redhat.com>
13524
13525         init.sh: give more portable redirection-related advice in a comment
13526         * tests/init.sh (stderr_fileno_): Update the advice in comments.
13527         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
13528         for lots of discussion.  Stefano Lattarini suggested the solution
13529         of putting "9>&2" after the command.  Reported by Bruno Haible.
13530
13531 2011-06-13  Bruno Haible  <bruno@clisp.org>
13532
13533         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
13534         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
13535         'none'.
13536
13537 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
13538
13539         ftoastr: use strtof only if HAVE_STRTOF
13540         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
13541         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
13542         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
13543         * modules/ftoastr (configure.ac): Check for strtof.
13544
13545 2011-06-13  Bruno Haible  <bruno@clisp.org>
13546
13547         gnulib-tool: Addendum to 2011-06-08 commit.
13548         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
13549         and --witness-c-macro have been given, augment AM_CPPFLAGS.
13550
13551 2011-06-13  Bruno Haible  <bruno@clisp.org>
13552
13553         fseeko: Provide a non-inline replacement of fseek().
13554         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
13555         * modules/fseeko (Depends-on): Add fseek.
13556         * modules/fseek (License): Change to LGPLv2+.
13557
13558 2011-06-13  Bruno Haible  <bruno@clisp.org>
13559
13560         ftello: Provide a non-inline replacement of ftell().
13561         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
13562         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
13563         not have ftello() (such as on mingw).
13564         * modules/ftello (Depends-on): Add ftell.
13565         * modules/ftell (License): Change to LGPLv2+.
13566
13567 2011-05-07  Bruno Haible  <bruno@clisp.org>
13568
13569         ftell: Move AC_LIBOBJ invocations to module description.
13570         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
13571         * modules/ftell (configure.ac): ... to here.
13572
13573 2011-05-07  Bruno Haible  <bruno@clisp.org>
13574
13575         ftello: Respect rules for use of AC_LIBOBJ.
13576         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
13577         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
13578         here...
13579         * modules/ftello (configure.ac): ... to here.
13580
13581 2011-05-07  Bruno Haible  <bruno@clisp.org>
13582
13583         fseeko: Simplify.
13584         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
13585         (gl_FUNC_FSEEKO): Inline it here.
13586
13587 2011-05-07  Bruno Haible  <bruno@clisp.org>
13588
13589         fseek: Move AC_LIBOBJ invocations to module description.
13590         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
13591         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13592         * modules/fseek (configure.ac): ... to here.
13593
13594 2011-05-07  Bruno Haible  <bruno@clisp.org>
13595
13596         fseek: Respect rules for use of AC_LIBOBJ.
13597         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
13598         here...
13599         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
13600
13601 2011-05-07  Bruno Haible  <bruno@clisp.org>
13602
13603         fseeko: Respect rules for use of AC_LIBOBJ.
13604         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
13605         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
13606         here...
13607         * modules/fseeko (configure.ac): ... to here.
13608
13609 2011-06-13  Bruno Haible  <bruno@clisp.org>
13610
13611         gnulib-tool: Allow comments in the 'Depends-on' section.
13612         * doc/gnulib.texi (Module description): Mention comment syntax in the
13613         Depends-on section.
13614         * gnulib-tool (func_get_dependencies): Filter out comment lines.
13615
13616 2011-06-13  Bruno Haible  <bruno@clisp.org>
13617
13618         file-set.h: guard __attibute__ use, now that it's not always defined
13619         * lib/file-set.h (record_file): Use __attribute__ only with compiler
13620         versions that support it.  This fixes a coreutils build failure with
13621         the vendor cc on HP-UX 11.31.
13622
13623 2011-06-12  Bruno Haible  <bruno@clisp.org>
13624
13625         acl: Add support for HP-UX >= 11.11 JFS ACLs.
13626         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
13627         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
13628         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
13629         (acl, aclsort): New declarations.
13630         (aclv_nontrivial): New declaration.
13631         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
13632         (file_has_acl): Read also the second kind of HP-UX ACLs.
13633         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
13634         kind of HP-UX ACLs if the first kind fails.
13635         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
13636         second kind of HP-UX ACLs.
13637         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
13638         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
13639         agree.
13640         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13641         hpuxjfs.
13642         Handle hpuxjfs.
13643         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
13644         hpuxjfs.
13645         Handle hpuxjfs.
13646         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13647         (func_test_same_acls): Use both lsacl and getacl.
13648         Handle hpuxjfs.
13649         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
13650         (func_test_same_acls): Use both lsacl and getacl.
13651         Handle hpuxjfs.
13652
13653 2011-06-12  Bruno Haible  <bruno@clisp.org>
13654
13655         acl: Complete the 2010-08-10 fix.
13656         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
13657         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
13658         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
13659         explicitly.
13660         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
13661         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
13662
13663 2011-06-12  Bruno Haible  <bruno@clisp.org>
13664
13665         spawn-pipe tests: Comments.
13666         * tests/test-spawn-pipe-child.c (main): Update comment.
13667         Reported by James Youngman <jay@gnu.org>.
13668
13669 2011-06-11  James Youngman  <jay@gnu.org>
13670
13671         New module 'stat-size'.
13672         * modules/stat-size: New module.  Provides macros for accessing
13673         file size information in instances of struct stat.  Depends on the
13674         fileblocks module because it calls st_blocks.
13675         * lib/stat-size.h: New file, adapted from coreutils' system.h.
13676         * doc/gnulib.texi: Include stat-size.texi.
13677         * doc/stat-size.texi: Documentation for this module.
13678         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
13679         * m4/fileblocks.m4: Mention that stat-size depends on the call to
13680         AC_STRUCT_ST_BLOCKS.
13681
13682 2011-06-09  Bruno Haible  <bruno@clisp.org>
13683
13684         thread: Support pthreads-win32.
13685         * lib/glthread/thread.h (gl_thread_self): Define differently on
13686         pthreads-win32.
13687         (gl_null_thread): New declaration.
13688         (gl_thread_self_pointer): New macro.
13689         * lib/glthread/thread.c (gl_null_thread): New constant.
13690         * tests/test-lock.c: Use gl_thread_self_pointer instead of
13691         gl_thread_self.
13692         * tests/test-tls.c: Likewise.
13693         Suggested by Paul Eggert. Reported by Eric Blake.
13694
13695 2011-06-09  Bruno Haible  <bruno@clisp.org>
13696
13697         thread: Fix confusion between NULL and 0.
13698         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
13699         Reported by Paul Eggert.
13700
13701 2011-06-09  Bruno Haible  <bruno@clisp.org>
13702
13703         spawn-pipe tests: Avoid test failure on HP-UX 11.
13704         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
13705         is closed.
13706
13707 2011-06-09  Bruno Haible  <bruno@clisp.org>
13708
13709         acl tests: Fix compilation error on HP-UX 11.
13710         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
13711
13712 2011-06-09  Bruno Haible  <bruno@clisp.org>
13713
13714         rmdir: Avoid test failure on HP-UX 10.20.
13715         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
13716         EEXIST.
13717
13718 2011-06-08  Eric Blake  <eblake@redhat.com>
13719
13720         perror: fix test on mingw
13721         * modules/perror-tests (Depends-on): Add dup2.
13722
13723         strerror_r-posix: fix on MacOS
13724         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
13725         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
13726         logic bug.
13727         * lib/strerror_r.c (strerror_r): Fix the bug.
13728         * lib/strerror.c (strerror): Likewise.
13729         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
13730         problem.
13731         * doc/posix-functions/strerror.texi (strerror): Likewise.
13732         * doc/posix-functions/perror.texi (perror): Likewise.
13733         * tests/test-strerror.c (main): Enhance test.
13734         * tests/test-strerror_r.c (main): Likewise.
13735
13736 2011-06-08  Bruno Haible  <bruno@clisp.org>
13737
13738         gnulib-tool: Better isolation between different gnulib-tool invocations.
13739         * gnulib-tool: New option --witness-c-macro.
13740         (witness_c_macro): New variable.
13741         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
13742         AM_CPPFLAGS define it as a C macro.
13743         (func_emit_tests_Makefile_am): Likewise.
13744         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
13745         read it from there.
13746         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
13747         m4_define, not AC_DEFUN.
13748         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
13749         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
13750         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
13751         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
13752         s|...|...|, to substitute the values of the GNULIB_* module indicator
13753         variables.
13754         * modules/dirent (Makefile.am): Likewise.
13755         * modules/fcntl-h (Makefile.am): Likewise.
13756         * modules/iconv-h (Makefile.am): Likewise.
13757         * modules/langinfo (Makefile.am): Likewise.
13758         * modules/locale (Makefile.am): Likewise.
13759         * modules/math (Makefile.am): Likewise.
13760         * modules/netdb (Makefile.am): Likewise.
13761         * modules/poll-h (Makefile.am): Likewise.
13762         * modules/pty (Makefile.am): Likewise.
13763         * modules/search (Makefile.am): Likewise.
13764         * modules/signal (Makefile.am): Likewise.
13765         * modules/spawn (Makefile.am): Likewise.
13766         * modules/stdio (Makefile.am): Likewise.
13767         * modules/stdlib (Makefile.am): Likewise.
13768         * modules/string (Makefile.am): Likewise.
13769         * modules/sys_ioctl (Makefile.am): Likewise.
13770         * modules/sys_select (Makefile.am): Likewise.
13771         * modules/sys_socket (Makefile.am): Likewise.
13772         * modules/sys_stat (Makefile.am): Likewise.
13773         * modules/sys_times (Makefile.am): Likewise.
13774         * modules/sys_utsname (Makefile.am): Likewise.
13775         * modules/sys_wait (Makefile.am): Likewise.
13776         * modules/termios (Makefile.am): Likewise.
13777         * modules/time (Makefile.am): Likewise.
13778         * modules/unistd (Makefile.am): Likewise.
13779         * modules/wchar (Makefile.am): Likewise.
13780
13781 2011-06-08  Eric Blake  <eblake@redhat.com>
13782
13783         strerror: simplify replacement
13784         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
13785         * modules/strerror (configure.ac): No prereqs needed here...
13786         * modules/strerror-override (configure.ac): ...but this needs it.
13787         (Files): Add file for needed prereq macro.
13788
13789 2011-06-08  Bruno Haible  <bruno@clisp.org>
13790
13791         strerror_r-posix: Tweaks.
13792         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
13793         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
13794         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
13795         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
13796         (gl_FUNC_STRERROR_R): ... to here.
13797         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
13798
13799 2011-06-07  Eric Blake  <eblake@redhat.com>
13800
13801         perror: document fixed bugs
13802         * doc/posix-functions/perror.texi (perror): Document recent
13803         patches.
13804
13805 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
13806
13807         stat-time: get_stat_birthtime failure is better-defined
13808         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
13809         return a timestamp whose tv_sec and tv_nsec values are both -1.
13810         Previously, the spec said only that the tv_nsec value was negative.
13811         This upward-compatible change simplifies GNU tar a bit.
13812
13813 2011-06-07  Eric Blake  <eblake@redhat.com>
13814
13815         strerror_r-posix: work around cygwin 1.7.9
13816         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
13817         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
13818         bug without replacing strerror_r.
13819         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
13820         strerror_r is buggy, but without requiring strerror_r compilation.
13821         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
13822
13823         test-perror: relax test to ignore cygwin bug
13824         * tests/test-perror2.c (main): Relax test on requiring detection
13825         of stream errors, and use unbuffered stream.
13826         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
13827         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
13828         * doc/posix-functions/fputc.texi (fputc): Likewise.
13829         * doc/posix-functions/fputs.texi (fputs): Likewise.
13830         * doc/posix-functions/fputws.texi (fputws): Likewise.
13831         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
13832         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
13833         * doc/posix-functions/getopt.texi (getopt): Likewise.
13834         * doc/posix-functions/perror.texi (perror): Likewise.
13835         * doc/posix-functions/printf.texi (printf): Likewise.
13836         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
13837         * doc/posix-functions/psignal.texi (psignal): Likewise.
13838         * doc/posix-functions/putc.texi (putc): Likewise.
13839         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
13840         Likewise.
13841         * doc/posix-functions/putchar.texi (putchar): Likewise.
13842         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
13843         Likewise.
13844         * doc/posix-functions/puts.texi (puts): Likewise.
13845         * doc/posix-functions/putwc.texi (putwc): Likewise.
13846         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
13847         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
13848         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
13849         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
13850         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
13851         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
13852         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
13853         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
13854
13855 2011-05-22  Bruno Haible  <bruno@clisp.org>
13856
13857         strerror: Move AC_LIBOBJ invocations to module description.
13858         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
13859         gl_PREREQ_STRERROR invocations from here...
13860         * modules/strerror (configure.ac): ... to here.
13861
13862 2011-05-21  Bruno Haible  <bruno@clisp.org>
13863
13864         perror: Use common idiom.
13865         * modules/perror (configure.ac): Reorder statements.
13866
13867 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13868
13869         tests: fix usage message in 'mktempd_'
13870         * tests/init.sh (mktempd_): In the usage message, use literal
13871         'mktempd_', not '$ME' (which is even undefined), as the name of
13872         the subroutine.
13873
13874 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
13875
13876         tests init: new function 'fatal_', for hard errors
13877         Before this patch, the only way offered by tests/init.sh to
13878         properly signal a hard error was the `framework_failure_'
13879         function.  But the error message issued by that function,
13880         as its name would suggest, refers to a set-up failure in the
13881         testsuite, while hard errors can obviously also be due to
13882         other reasons.  The best way to fix this inconsistency is to
13883         introduce a new function with a more general error message.
13884         * tests/init.sh (fatal_): New function.
13885
13886 2011-06-06  Eric Blake  <eblake@redhat.com>
13887
13888         canonicalize-lgpl: use common idiom
13889         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
13890         over newer POSIX -Rf.
13891         Reported by Bruno Haible.
13892
13893         canonicalize-lgpl: work around AIX realpath bug
13894         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
13895         * doc/posix-functions/realpath.texi (realpath): Document it.
13896         Reported by Bruno Haible.
13897
13898         strerror: work around FreeBSD bug
13899         * lib/strerror.c (strerror): Special case 0.
13900         Reported by Bruno Haible.
13901
13902         strerror-override: avoid bloating errno module
13903         * modules/errno (Files, configure.ac): Move replacement strings...
13904         * modules/strerror-override: ...to new module.
13905         * modules/strerror (Depends-on): Add strerror-override.
13906         * modules/strerror_r-posix (Depends-on): Likewise.
13907         * MODULES.html.sh: Document new module.
13908         Reported by Bruno Haible.
13909
13910 2011-06-06  Bruno Haible  <bruno@clisp.org>
13911
13912         spawn-pipe tests: Rename program.
13913         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
13914         * tests/test-spawn-pipe-child.c: Update comment.
13915         * tests/test-spawn-pipe.sh: Update.
13916         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
13917
13918         spawn-pipe tests: Link the child program only against libc.
13919         * tests/test-spawn-pipe-child.c: New file, extracted from
13920         tests/test-spawn-pipe.c.
13921         (main): Expect only one argument.
13922         (is_open): New function, copied from tests/test-pipe.c.
13923         * tests/test-spawn-pipe.c: Don't include <errno.h>.
13924         (child_main): Remove function.
13925         (test_pipe): Pass only one argument to the child program.
13926         (main): Remove child process code. Expect the child program's name as
13927         first argument.
13928         * tests/test-spawn-pipe.sh: Pass the child program's name as first
13929         argument.
13930         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
13931         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
13932         test-spawn-pipe-child against no libraries.
13933
13934 2011-06-06  Bruno Haible  <bruno@clisp.org>
13935
13936         careadlinkat: Avoid mismatch between ssize_t and int.
13937         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
13938         * lib/careadlinkat.c (careadlinkatcwd): Define always.
13939
13940 2011-06-06  Jim Meyering  <meyering@redhat.com>
13941
13942         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
13943         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
13944         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
13945
13946 2011-06-05  Bruno Haible  <bruno@clisp.org>
13947
13948         ansi-c++-opt: Interoperability with libtool.
13949         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
13950         set the variable to "no", not to ":".
13951         * NEWS: Mention the change.
13952
13953 2011-06-05  Bruno Haible  <bruno@clisp.org>
13954
13955         acl: Fix test failure on AIX 7.
13956         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
13957         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
13958
13959 2011-06-05  Bruno Haible  <bruno@clisp.org>
13960
13961         pipe-filter-ii: Fix test failure on AIX and IRIX.
13962         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
13963         with EAGAIN, retry with a smaller buffer size.
13964
13965 2011-06-05  Bruno Haible  <bruno@clisp.org>
13966
13967         localename: Fix link dependencies.
13968         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
13969         * modules/localename-tests (Makefile.am): Link test-localename with
13970         $(LIBTHREAD).
13971
13972 2011-06-05  Bruno Haible  <bruno@clisp.org>
13973
13974         error: Avoid gcc warning.
13975         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
13976
13977 2011-06-05  Bruno Haible  <bruno@clisp.org>
13978
13979         unsetenv: Avoid gcc warning.
13980         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
13981
13982 2011-06-05  Bruno Haible  <bruno@clisp.org>
13983
13984         setenv: Avoid gcc warning.
13985         * lib/setenv.c (setenv): Provide declaration if system lacks it.
13986
13987 2011-06-05  Bruno Haible  <bruno@clisp.org>
13988
13989         sys_select: Ensure memset is declared also on AIX 7.
13990         * lib/sys_select.in.h: Include <string.h> also on AIX.
13991         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
13992         self-contained also on AIX 7.1.
13993
13994 2011-06-04  Jim Meyering  <meyering@redhat.com>
13995
13996         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
13997         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
13998         function name, "error".
13999         (_gl_translatable_diag_func_re): New configurable variable.
14000
14001 2011-06-04  Bruno Haible  <bruno@clisp.org>
14002
14003         getopt: Avoid gcc warning.
14004         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14005
14006 2011-06-04  Bruno Haible  <bruno@clisp.org>
14007
14008         strerror_r: Fix comments.
14009         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14010         commit.
14011
14012 2011-06-04  Bruno Haible  <bruno@clisp.org>
14013
14014         perror: Fix compilation error.
14015         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14016         Undefine fprintf, not sprintf.
14017         * modules/perror (Depends-on): Remove intprops, verify.
14018
14019 2011-06-04  Bruno Haible  <bruno@clisp.org>
14020
14021         setlocale: Enable replacement on Cygwin 1.5.
14022         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14023         Cygwin 1.5.x.
14024         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14025         LC_CTYPE category also exists on Cygwin 1.5.x.
14026
14027 2011-06-04  Bruno Haible  <bruno@clisp.org>
14028
14029         strerror-override: Don't disable symbol renamings.
14030         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14031         * lib/strerror-override.c: Include config.h.
14032         (strerror_override): Don't undefine.
14033
14034 2011-06-03  Bruno Haible  <bruno@clisp.org>
14035
14036         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14037         * lib/localename.h: Update copyright header.
14038         * lib/localename.c: Likewise.
14039         * lib/relocatable.h: Likewise.
14040         * lib/relocatable.c: Likewise.
14041
14042 2011-06-02  Bruno Haible  <bruno@clisp.org>
14043
14044         doc: Fix a module name.
14045         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14046
14047 2011-06-02  Bruno Haible  <bruno@clisp.org>
14048
14049         pipe2: Remove dependency on 'nonblocking' module.
14050         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14051         O_NONBLOCK is defined by gnulib.
14052         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14053         is zero.
14054         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14055         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14056         defined by gnulib.
14057         (get_nonblocking_flag): New function.
14058         (main): Test O_NONBLOCK flag only if it is nonzero.
14059         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14060
14061 2011-06-03  Jim Meyering  <meyering@redhat.com>
14062
14063         maint: three new prohibit-header-without-use rules
14064         Prohibit use of cloexec.h, posixver.h, same.h without use.
14065         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14066         (sc_prohibit_posixver_without_use): Likewise.
14067         (sc_prohibit_same_without_use): Likewise.
14068
14069 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14070
14071         allocator: 'die' routine is now given requested size
14072         * lib/allocator.h (struct allocator.die): New size arg.
14073         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14074         If the actual problem is an ssize_t limitation, not a size_t or
14075         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14076
14077 2011-06-01  Eric Blake  <eblake@redhat.com>
14078
14079         strerror: drop strerror_r dependency
14080         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14081         * lib/strerror-override.c (strerror_override): ...to new file.
14082         * lib/strerror-override.h: Add prototype.
14083         * lib/strerror-impl.h: Delete.
14084         * lib/strerror.c (strerror): New implementation.
14085         * modules/errno (Files): Add new files.
14086         (configure.ac): Compile new file as appropriate.
14087         * modules/strerror (Files): Drop unused file.
14088         (Depends-on): Drop strerror_r-posix.
14089         * MODULES.html.sh: Document strerror_r-posix.
14090         Requested by Sam Steingold.
14091
14092         perror: call strerror_r directly
14093         * modules/perror (Files): Drop strerror-impl.h.
14094         * lib/perror.c (perror): Use our own stack buffer, rather than
14095         calling a wrapper that uses static storage.
14096         * doc/posix-functions/perror.texi (perror): Document a limitation
14097         of our replacement.
14098
14099         strerror_r: fix includes for FreeBSD
14100         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14101         since we use abort on some platforms.
14102         Reported by Matthias Bolte.
14103
14104 2011-05-31  Bruno Haible  <bruno@clisp.org>
14105
14106         Fix link errors in tests: openat-die uses gettext-h.
14107         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14108         against $(LIBINTL).
14109         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14110         against $(LIBINTL).
14111         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14112         $(LIBINTL).
14113         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14114         against $(LIBINTL).
14115         * modules/linkat-tests (Makefile.am): Link test-linkat against
14116         $(LIBINTL).
14117         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14118         $(LIBINTL).
14119         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14120         against $(LIBINTL).
14121         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14122         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14123         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14124         $(LIBINTL).
14125         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14126         $(LIBINTL).
14127         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14128         $(LIBINTL).
14129         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14130
14131 2011-05-31  Bruno Haible  <bruno@clisp.org>
14132
14133         Fix link errors in tests: wait-process uses gettext-h.
14134         * modules/nonblocking-pipe-tests (Makefile.am): Set
14135         test_nonblocking_pipe_main_LDADD.
14136         * modules/nonblocking-socket-tests (Makefile.am): Link
14137         test-nonblocking-socket-main against $(LIBINTL).
14138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14139
14140 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14141
14142         assert-h: work around 'verify' incompatibility
14143         * lib/verify.h: Use @...@ directives, not ifdef.
14144         * modules/assert-h (assert.h): Implement the directives.
14145         (assert.h): Substitute the symbol-prefix more consistently.
14146
14147 2011-05-29  Jim Meyering  <meyering@redhat.com>
14148
14149         trim: remove three superfluous assignments
14150         * lib/trim.c (trim2): Remove three superfluous assignments
14151         and correct brace positioning.
14152
14153 2011-05-29  Bruno Haible  <bruno@clisp.org>
14154
14155         wctype-h: Avoid namespace pollution on Solaris 2.6.
14156         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14157         identifiers.
14158         * doc/posix-headers/wctype.texi: Mention the problem.
14159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14160
14161 2011-05-28  Jim Meyering  <meyering@redhat.com>
14162
14163         parse-datetime.y: accommodate -Wstrict-overflow
14164         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14165         placate -Wstrict-overflow.
14166
14167         trim: avoid a warning from -O2 -Wstrict-overflow
14168         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14169
14170 2011-05-29  Bruno Haible  <bruno@clisp.org>
14171
14172         gnulib-tool: Fix bug in yesterday's commit.
14173         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14174         twice.
14175
14176 2011-05-29  Bruno Haible  <bruno@clisp.org>
14177
14178         Allow multiple gnulib generated include files to be combined.
14179         * gnulib-tool (func_compute_include_guard_prefix): New function.
14180         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14181         ${gl_include_guard_prefix} references.
14182         (func_import, func_create_testdir): Invoke
14183         func_compute_include_guard_prefix.
14184         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14185         * lib/ctype.in.h: Likewise.
14186         * lib/dirent.in.h: Likewise.
14187         * lib/errno.in.h: Likewise.
14188         * lib/fcntl.in.h: Likewise.
14189         * lib/float.in.h: Likewise.
14190         * lib/getopt.in.h: Likewise.
14191         * lib/iconv.in.h: Likewise.
14192         * lib/langinfo.in.h: Likewise.
14193         * lib/locale.in.h: Likewise.
14194         * lib/math.in.h: Likewise.
14195         * lib/netdb.in.h: Likewise.
14196         * lib/netinet_in.in.h: Likewise.
14197         * lib/poll.in.h: Likewise.
14198         * lib/pthread.in.h: Likewise.
14199         * lib/pty.in.h: Likewise.
14200         * lib/sched.in.h: Likewise.
14201         * lib/se-selinux.in.h: Likewise.
14202         * lib/search.in.h: Likewise.
14203         * lib/signal.in.h: Likewise.
14204         * lib/spawn.in.h: Likewise.
14205         * lib/stdarg.in.h: Likewise.
14206         * lib/stddef.in.h: Likewise.
14207         * lib/stdint.in.h: Likewise.
14208         * lib/stdio.in.h: Likewise.
14209         * lib/stdlib.in.h: Likewise.
14210         * lib/string.in.h: Likewise.
14211         * lib/strings.in.h: Likewise.
14212         * lib/sys_file.in.h: Likewise.
14213         * lib/sys_ioctl.in.h: Likewise.
14214         * lib/sys_select.in.h: Likewise.
14215         * lib/sys_socket.in.h: Likewise.
14216         * lib/sys_stat.in.h: Likewise.
14217         * lib/sys_time.in.h: Likewise.
14218         * lib/sys_times.in.h: Likewise.
14219         * lib/sys_uio.in.h: Likewise.
14220         * lib/sys_utsname.in.h: Likewise.
14221         * lib/sys_wait.in.h: Likewise.
14222         * lib/sysexits.in.h: Likewise.
14223         * lib/termios.in.h: Likewise.
14224         * lib/time.in.h: Likewise.
14225         * lib/unistd.in.h: Likewise.
14226         * lib/wchar.in.h: Likewise.
14227         * lib/wctype.in.h: Likewise.
14228         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14229         * modules/ctype (Makefile.am): Likewise.
14230         * modules/dirent (Makefile.am): Likewise.
14231         * modules/errno (Makefile.am): Likewise.
14232         * modules/fcntl-h (Makefile.am): Likewise.
14233         * modules/float (Makefile.am): Likewise.
14234         * modules/getopt-posix (Makefile.am): Likewise.
14235         * modules/iconv-h (Makefile.am): Likewise.
14236         * modules/langinfo (Makefile.am): Likewise.
14237         * modules/locale (Makefile.am): Likewise.
14238         * modules/math (Makefile.am): Likewise.
14239         * modules/netdb (Makefile.am): Likewise.
14240         * modules/netinet_in (Makefile.am): Likewise.
14241         * modules/poll-h (Makefile.am): Likewise.
14242         * modules/pthread (Makefile.am): Likewise.
14243         * modules/pty (Makefile.am): Likewise.
14244         * modules/sched (Makefile.am): Likewise.
14245         * modules/search (Makefile.am): Likewise.
14246         * modules/selinux-h (Makefile.am): Likewise.
14247         * modules/signal (Makefile.am): Likewise.
14248         * modules/spawn (Makefile.am): Likewise.
14249         * modules/stdarg (Makefile.am): Likewise.
14250         * modules/stddef (Makefile.am): Likewise.
14251         * modules/stdint (Makefile.am): Likewise.
14252         * modules/stdio (Makefile.am): Likewise.
14253         * modules/stdlib (Makefile.am): Likewise.
14254         * modules/string (Makefile.am): Likewise.
14255         * modules/strings (Makefile.am): Likewise.
14256         * modules/sys_file (Makefile.am): Likewise.
14257         * modules/sys_ioctl (Makefile.am): Likewise.
14258         * modules/sys_select (Makefile.am): Likewise.
14259         * modules/sys_socket (Makefile.am): Likewise.
14260         * modules/sys_stat (Makefile.am): Likewise.
14261         * modules/sys_time (Makefile.am): Likewise.
14262         * modules/sys_times (Makefile.am): Likewise.
14263         * modules/sys_uio (Makefile.am): Likewise.
14264         * modules/sys_utsname (Makefile.am): Likewise.
14265         * modules/sys_wait (Makefile.am): Likewise.
14266         * modules/sysexits (Makefile.am): Likewise.
14267         * modules/termios (Makefile.am): Likewise.
14268         * modules/time (Makefile.am): Likewise.
14269         * modules/unistd (Makefile.am): Likewise.
14270         * modules/wchar (Makefile.am): Likewise.
14271         * modules/wctype-h (Makefile.am): Likewise.
14272         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14273
14274 2011-05-29  Bruno Haible  <bruno@clisp.org>
14275
14276         assert-h: Allow multiple gnulib generated replacements to coexist.
14277         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14278
14279 2011-05-29  Bruno Haible  <bruno@clisp.org>
14280
14281         argp: Allow coexistence with strerror_r-posix module.
14282         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14283         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14284         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14285         not the glibc signature.
14286
14287 2011-05-28  Bruno Haible  <bruno@clisp.org>
14288
14289         gnulib-tool: Alternative structure of testdirs, similar to --import.
14290         * gnulib-tool: New option --single-configure.
14291         (func_usage): Document it.
14292         (single_configure): New variable.
14293         (func_modules_transitive_closure_separately,
14294         func_modules_transitive_closure_separately,
14295         func_determine_use_libtests, func_modules_add_dummy_separately,
14296         func_modules_to_filelist_separately): New functions, extracted from
14297         func_import.
14298         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14299         (func_import): Use the new functions.
14300         (func_create_testdir): Set final_modules. Handle $single_configure =
14301         true case.
14302
14303 2011-05-28  Bruno Haible  <bruno@clisp.org>
14304
14305         getloadavg: Remove an unreliable safety check.
14306         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14307         getloadavg.c is in place.
14308         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14309         Reported by Sam Steingold <sds@gnu.org>.
14310
14311 2011-05-28  Bruno Haible  <bruno@clisp.org>
14312
14313         doc: Cleanup yet another file produced by texinfo.tex.
14314         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14315
14316 2011-05-28  Bruno Haible  <bruno@clisp.org>
14317
14318         Finish the conditional dependencies mechanism.
14319         * gnulib-tool: New option --no-conditional-dependencies.
14320         (func_usage): Document it. Don't mark --conditional-dependencies as
14321         experimental.
14322         (cond_dependencies): The possible values can now be true, false, empty.
14323         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14324         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14325         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14326
14327 2011-05-28  Bruno Haible  <bruno@clisp.org>
14328
14329         doc: Use a recent texinfo.tex.
14330         * doc/Makefile (tex_opts): New variable.
14331         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14332
14333 2011-05-28  Jim Meyering  <meyering@redhat.com>
14334
14335         intprops.h: adjust comment to match code change
14336         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14337         only once, it *may* have side effects.  Also fix an unrelated typo.
14338         (_GL_INT_SIGNED): Likewise.
14339
14340 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14341
14342         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14343
14344 2011-05-26  Bruno Haible  <bruno@clisp.org>
14345
14346         mbsrchr: Avoid collision with system function on Interix.
14347         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14348         Reported by Markus Duft <mduft@gentoo.org>.
14349
14350 2011-05-15  James Youngman  <jay@gnu.org>
14351
14352         getopt: for ambiguous options, enumerate the possibilities.
14353         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14354         the ambiguous options when an ambiguous prefix is given. This was
14355         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14356         glibc change was
14357         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14358
14359 2011-05-25  Eric Blake  <eblake@redhat.com>
14360
14361         getcwd: work around mingw bug
14362         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14363         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14364         Reported by Matthias Bolte.
14365
14366 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14367
14368         test-intprops: disable -Wtype-limits diagnostics
14369         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14370         diagnostics.  Otherwise, the integer overflow macros generate many
14371         diagnostics.  Reported by Jim Meyering in
14372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14373
14374         intprops: shorten, to pacify gcc -Woverlength-strings
14375         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14376         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14377         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14378         likely to run afoul of C compiler limits for string constant lengths.
14379         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14380
14381 2011-05-24  Eric Blake  <eblake@redhat.com>
14382
14383         docs: document recently fixed glibc printf bug
14384         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14385         * doc/posix-functions/printf.texi (printf): Likewise.
14386         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14387         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14388
14389         closein-tests: convert to init.sh
14390         * modules/closein-tests (Files): Add init.sh
14391         * tests/test-closein.sh Use it.
14392
14393         yesno-tests: convert to init.sh
14394         * modules/yesno-tests (Files): Add init.sh.
14395         * tests/test-yesno.sh: Use it.
14396
14397         atexit-tests: ensure reliable exit status
14398         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14399         Reported by Bruno Haible.
14400
14401 2011-05-24  Bruno Haible  <bruno@clisp.org>
14402
14403         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14404         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14405         gl_PREREQ_STRERROR_R invocations from here...
14406         * modules/strerror_r-posix (configure.ac): ... to here.
14407
14408 2011-05-24  Eric Blake  <eblake@redhat.com>
14409
14410         strerror_r: fix missing header
14411         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14412
14413         strerror_r: fix AIX test failures
14414         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14415         ERANGE failure.
14416
14417         strerror_r: fix Solaris test failures
14418         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14419         failures.
14420         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14421
14422         strerror_r: enforce POSIX recommendations
14423         * lib/strerror_r.c (safe_copy): New helper method.
14424         (strerror_r): Guarantee a non-empty string.
14425         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14426         recent POSIX rulings and to match our strerror guarantees.
14427         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14428
14429 2011-05-24  Jim Meyering  <meyering@redhat.com>
14430
14431         test-perror2.c: avoid warning about unused variable
14432         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14433
14434 2011-05-24  Eric Blake  <eblake@redhat.com>
14435
14436         perror: avoid spurious test failure on HP-UX
14437         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
14438
14439         tests: fix logic bug in init.sh
14440         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
14441         shell.
14442
14443 2011-05-24  Jim Meyering  <meyering@redhat.com>
14444
14445         utimensat: do not reference an out-of-scope buffer
14446         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
14447         declared in an inner scope, yet "times" would be dereferenced outside
14448         the scope in which "ts" was valid.
14449         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
14450         of ts[2] "out/up", so that the use of aliased "times" (via
14451         "times = ts;") does not end up referencing an out-of-scope "ts"
14452
14453         opendir-safer.c: don't clobber errno; don't close negative FD
14454         * lib/opendir-safer.c (opendir_safer):
14455         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
14456         file descriptor, and more importantly, don't clobber the
14457         offending errno value with EINVAL.  Before, upon failure
14458         of dup_safer, we would pass the negative file descriptor to
14459         fdopendir, which would clobber errno.
14460
14461 2011-05-23  Bruno Haible  <bruno@clisp.org>
14462
14463         idcache: Fix module description.
14464         * modules/idcache (Include): Set to "idcache.h".
14465
14466 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
14467
14468         gnulib-tool: fix portability problem with MacOS sed
14469         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
14470         before the "}".  Problem reported by Leo in
14471         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
14472         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
14473         sed_extract_condition1, sed_extract_condition2.
14474
14475 2011-05-23  Bruno Haible  <bruno@clisp.org>
14476
14477         hash: Simplify autoconf macro.
14478         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
14479
14480 2011-05-23  Bruno Haible  <bruno@clisp.org>
14481
14482         getugroups: Fix module description.
14483         * modules/getugroups (Include): Set to "getugroups.h".
14484
14485 2011-05-23  Bruno Haible  <bruno@clisp.org>
14486
14487         linkat: Simplify autoconf macro.
14488         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
14489
14490 2011-05-23  Bruno Haible  <bruno@clisp.org>
14491             Eric Blake  <eblake@redhat.com>
14492
14493         linkat, renameat: Update dependencies.
14494         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
14495         * modules/linkat (Depends-on): Likewise. Remove also readlink,
14496         symlinkat.
14497
14498 2011-05-23  Jim Meyering  <meyering@redhat.com>
14499
14500         maint.mk: more tight_scope improvements
14501         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
14502         (_gl_TS_headers): Define only in if-0'd block.
14503         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
14504         sometimes we must *not* use it.  Adjust uses accordingly.
14505         (sc_tight_scope): Use much simpler grep-based test to determine
14506         whether we skip this rule.
14507
14508         maint.mk: generalize/improve the tight-scope rule
14509         * top/maint.mk: Emit a warning when the test is skipped.
14510         (_gl_TS_dir): Add $(srcdir)/ prefix.
14511         (_gl_TS_function_match): Simplify, rather than trying
14512         to enumerate common types.  Otherwise, it would fail to match an
14513         "extern unsigned char const *" declaration in idutils.
14514         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
14515         a way to support use of that type of macro.
14516         (_gl_TS_var_match): Simplify regexp.
14517         (_gl_TS_obj_files): New configurable variable.
14518         (_gl_TS_headers): Likewise.
14519
14520 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
14521
14522         verify: fix bug when gnulib <assert.h> is also included
14523         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
14524         is defined, not if _GL_STATIC_ASSERT_H is not defined.
14525         Perhaps there's a better way, but this fixes the immediate problem.
14526         Problem reported by Bruno Haible in
14527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
14528
14529 2011-05-22  Bruno Haible  <bruno@clisp.org>
14530
14531         xgetcwd: Simplify autoconf macro.
14532         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
14533
14534 2011-05-22  Bruno Haible  <bruno@clisp.org>
14535
14536         New module 'mktime-internal'.
14537         * modules/mktime-internal: New file.
14538         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
14539         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
14540         mktime_internal as a C macro if libc has __mktime_internal.
14541         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
14542         conditions.
14543         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
14544
14545 2011-05-22  Bruno Haible  <bruno@clisp.org>
14546
14547         timegm: Correct mktime replacement statements.
14548         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
14549         defining mktime as a C macro. This completes a 2009-07-28 commit.
14550
14551 2011-05-22  Bruno Haible  <bruno@clisp.org>
14552
14553         timegm: Simplify autoconf macro.
14554         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
14555
14556 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
14557
14558         clock-time: change to LGPLv2+.
14559         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
14560         BSD-like but we have no mark for that; this is good enough for now.
14561
14562 2011-05-21  Bruno Haible  <bruno@clisp.org>
14563
14564         strerror_r: Fix comments.
14565         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
14566
14567 2011-05-21  Bruno Haible  <bruno@clisp.org>
14568
14569         relocatable-prog-wrapper: Fix possible link error.
14570         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
14571         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
14572         (gl_FUNC_SETENV): ... to here.
14573         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
14574         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
14575
14576 2011-05-21  Bruno Haible  <bruno@clisp.org>
14577
14578         relocatable-prog-wrapper: Assume strerror() exists.
14579         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
14580         m4/strerror.m4.
14581         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
14582         * lib/relocwrapper.c: Remove mention of strerror module.
14583         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
14584         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
14585         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
14586         C macro.
14587
14588 2011-05-21  Bruno Haible  <bruno@clisp.org>
14589
14590         select: Simplify replacement idiom.
14591         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
14592         Win32 platforms.
14593         * lib/sys_select.in.h (select): Simplify accordingly.
14594         * modules/select (Depends-on): Likewise.
14595
14596 2011-05-21  Bruno Haible  <bruno@clisp.org>
14597
14598         mkdir-p: Simplify autoconf macro.
14599         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
14600         gl_FUNC_LCHOWN.
14601
14602 2011-05-21  Eric Blake  <eblake@redhat.com>
14603
14604         strerror_r: avoid clobbering strerror on cygwin
14605         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
14606         fall back instead to sys_errlist.
14607         * modules/strerror (configure.ac): Add witness.
14608         * tests/test-strerror_r.c (main): Enhance test.
14609         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14610         * tests/test-perror2.c (main): Free memory before exit.
14611
14612 2011-05-21  Bruno Haible  <bruno@clisp.org>
14613
14614         mkdtemp: Use gnulib naming conventions.
14615         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
14616         * modules/mkdtemp (configure.ac): Update.
14617
14618 2011-05-20  Eric Blake  <eblake@redhat.com>
14619
14620         strerror_r: avoid corrupting errno on Solaris
14621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
14622         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14623
14624         strerror_r: avoid compiler warning
14625         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
14626
14627         strerror_r: simplify AIX code
14628         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
14629
14630         test-perror: avoid spurious failure on FreeBSD
14631         * modules/perror-tests (Depends-on): Add strerror, now that
14632         strerror_r no longer pulls it in.
14633
14634 2011-05-20  Bruno Haible  <bruno@clisp.org>
14635
14636         strerror_r-posix: Remove unused dependencies.
14637         * modules/strerror_r-posix (Depends-on): Remove strerror.
14638         Reported by Eric Blake.
14639
14640 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
14641
14642         intprops: remove assumption about A|B representation
14643         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
14644         is a valid integer if both A and B are.  Although this is true for
14645         all known practical hosts, the C standard doesn't guarantee it,
14646         and the code need not assume it.  Also, this change may work around
14647         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
14648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
14649
14650 2011-05-20  Eric Blake  <eblake@redhat.com>
14651
14652         perror: work around FreeBSD bug
14653         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
14654         is broken.  Move AC_LIBOBJ...
14655         * modules/perror (configure.ac): Here.
14656         * doc/posix-functions/perror.texi (perror): Document this.
14657         * tests/test-perror2.c (main): Enhance test.
14658
14659         test-perror: check for strerror interactions
14660         * tests/macros.h (STREQ): Add macro.
14661         * modules/perror-tests (Files): Add second test.
14662         * tests/test-perror2.c (main): New file.
14663         * doc/posix-functions/perror.texi (perror): Document glibc bug.
14664
14665         test-perror: rewrite to use init script
14666         * modules/perror-tests (Files): Add init.sh.
14667         * tests/test-perror.sh: Use temporary directory.
14668
14669 2011-05-20  Jim Meyering  <meyering@redhat.com>
14670
14671         maint: replace misused "a" with "an"
14672         * doc/intprops.texi: "a integer"
14673         * doc/regex.texi: "a explanation"
14674         * lib/alignof.h: "a object"
14675         * lib/argmatch.h: "a explanation"
14676         * lib/argp-help.c: "a option" and "a OPTION_DOC"
14677         * lib/stdint.in.h: "a integer"
14678         * lib/userspec.c: "a owner"
14679         * doc/gnulib.texi: Fix "a idea", and reword.
14680
14681 2011-05-19  Jim Meyering  <meyering@redhat.com>
14682
14683         maint: correct misuse of "a" and "an"
14684         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
14685         * lib/argp-help.c: "an docum...": s/an/a/
14686         * lib/argp-parse.c: "An vector": s/An/A/
14687         * lib/execute.c: "an native": s/an/a/
14688         * lib/spawn-pipe.c: Likewise.
14689         * lib/gc.h: "an Gc_rc": s/an/a/
14690         * lib/unigbrk.in.h: "an grapheme": s/an/a/
14691         * lib/fts.c: "an stat.st_dev": s/an/a/
14692
14693 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14694
14695         intprops-tests: work around HP-UX 11.23 cc bug with constants
14696         * tests/test-intprops.c (VERIFY): New macro.
14697         (main): Use it, instead of verify, to work around the compiler bug; see
14698         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14699
14700         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
14701         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
14702         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
14703         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
14704         (_GL_REMAINDER_OVERFLOW): Use it.
14705
14706         intprops-tests: revert unsigned part of previous change
14707         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
14708         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
14709         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
14710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
14711
14712 2011-05-19  Bruno Haible  <bruno@clisp.org>
14713
14714         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
14715         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
14716         strerror_r() returned without filling the buffer.
14717         Reported by Eric Blake.
14718
14719 2011-05-19  Eric Blake  <eblake@redhat.com>
14720
14721         strerror_r: guarantee unchanged errno
14722         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
14723         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
14724         failure.
14725         * tests/test-strerror_r.c (main): Enhance test.
14726
14727 2011-05-19  Bruno Haible  <bruno@clisp.org>
14728
14729         strerror_r: Reorder #if blocks.
14730         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
14731         for consistency with the previous commit.
14732
14733 2011-05-19  Bruno Haible  <bruno@clisp.org>
14734
14735         perror: Avoid clobbering the strerror buffer when possible.
14736         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
14737         * lib/strerror.c: Include it.
14738         * modules/strerror (Files): Add lib/strerror-impl.h.
14739         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
14740         (my_strerror): New function, defined through lib/strerror-impl.h.
14741         (perror): Use it instead of strerror.
14742         * modules/perror (Files): Add lib/strerror-impl.h.
14743         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
14744
14745 2011-05-19  Eric Blake  <eblake@redhat.com>
14746
14747         strerror_r: fix on newer cygwin
14748         * lib/strerror_r.c (strerror_r): Cygwin now has
14749         __xpg_strerror_r, use it.
14750
14751 2011-05-19  Bruno Haible  <bruno@clisp.org>
14752
14753         strerror_r: Avoid clobbering the strerror buffer when possible.
14754         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
14755         (sys_nerr, sys_errlist): New declarations.
14756         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
14757         HP-UX, native Win32, IRIX, and 32-bit Solaris.
14758         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
14759
14760 2011-05-19  Bruno Haible  <bruno@clisp.org>
14761
14762         strerror_r: Fix test failure on mingw.
14763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
14764         EXTEND_STRERROR_R.
14765         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
14766         macros from errno.in.h instead.
14767
14768 2011-05-19  Eric Blake  <eblake@redhat.com>
14769
14770         strerror: relax test for Solaris
14771         * tests/test-strerror.c (main): Permit Solaris behavior.
14772         * tests/test-strerror_r.c (main): Likewise.
14773
14774         strerror: enforce POSIX ruling on strerror(0)
14775         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
14776         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14777         * lib/strerror_r.c (rpl_strerror_r): Work around it.
14778         * doc/posix-functions/strerror.texi (strerror): Document it.
14779         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
14780         * tests/test-strerror.c (main): Strengthen test.
14781         * tests/test-strerror_r.c (main): Likewise.
14782
14783 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
14784
14785         intprop-tests: port to older and more-pedantic compilers
14786         * modules/intprops-tests (Files): Add tests/macros.h.
14787         * tests/test-intprops.c: Include macros.h.
14788         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
14789         it's no longer documented to expand to an integer constant expression.
14790         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
14791         argument is floating point, as it's no longer documented to expand
14792         to an integer constant expression in that case.
14793         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
14794         compiler bugs reported by Bruno Haible.  See
14795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14796         (U0, U1): New constants, to work around the same bugs.  Also,
14797         in tests, use e.g., "(unsigned int) 39" rather than "39u".
14798
14799         intprops: work around C compiler bugs
14800         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
14801         bug in Sun C 5.11 2010/08/13 and other compilers; see
14802         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
14803
14804         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
14805         * doc/intprops.texi (Integer Type Determination): Fix
14806         documentation for TYPE_IS_INTEGER: it returns an constant
14807         expression, not an integer constant expression.  Fix doc for
14808         TYPE_SIGNED: it returns an integer constant expression only if its
14809         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
14810         hardly worth documented that way....)
14811
14812 2011-05-18  Bruno Haible  <bruno@clisp.org>
14813
14814         strerror_r: Avoid clobbering the strerror buffer when possible.
14815         * lib/strerror_r.c (strerror_r): Merge the three implementations.
14816         Handle gnulib defined errno values here. When strerror() returns NULL
14817         or an empty string, return EINVAL.
14818         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
14819         gnulib defined errno values here.
14820         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
14821
14822 2011-05-18  Eric Blake  <eblake@redhat.com>
14823
14824         fnmatch: avoid compiler warning
14825         * lib/fnmatch_loop.c (FCT): Use correct type.
14826         Reported by Matthias Bolte.
14827
14828 2011-05-13  Jim Meyering  <meyering@redhat.com>
14829
14830         maint.mk: three new prohibit_<HDR>_without_use rules
14831         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
14832         (sc_prohibit_stdio-safer_without_use): Likewise.
14833         (sc_prohibit_xfreopen_without_use): Likewise.
14834
14835 2011-05-17  Jim Meyering  <meyering@redhat.com>
14836
14837         announce-gen: fail if the NEWS delta is empty
14838         If there's nothing noteworthy in NEWS, then either you forgot
14839         or you shouldn't be releasing.
14840         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
14841
14842 2011-05-17  Pádraig Brady <P@draigBrady.com>
14843
14844         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
14845         reserved symbols starting with double underscore from the check.
14846
14847 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
14848
14849         intprops: add doc
14850         * doc/intprops.texi: New file, documenting intprops.
14851         * doc/gnulib.texi (Particular Modules): Include it.
14852
14853         verify: add doc to gnulib manual and fix example
14854         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
14855         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
14856         (Compile-time Assertions): Fix example so it can't overflow.
14857
14858 2011-05-17  Jim Meyering  <meyering@redhat.com>
14859
14860         warnings.m4: don't usurp save_CPPFLAGS variable name
14861         * m4/warnings.m4: Prefix local temporary variable name with gl_.
14862
14863         doc: fix typo
14864         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
14865
14866 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14867             Bruno Haible  <bruno@clisp.org>
14868
14869         doc: Tweak recent change.
14870         * README (Portability guidelines): Tweak new text.
14871         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
14872         Interix 6.1.
14873
14874 2011-05-16  Eric Blake  <eblake@redhat.com>
14875
14876         inttypes: avoid autoconf warning
14877         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
14878         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14879
14880 2011-05-16  Sam Steingold <sds@gnu.org>
14881         and Eric Blake  <eblake@redhat.com>
14882
14883         vc-list-files: accept multiple directory operands
14884         * build-aux/vc-list-files: Iterate over all remaining operands.
14885
14886 2011-05-16  Bruno Haible  <bruno@clisp.org>
14887
14888         Fix confusion regarding deprecated modules.
14889         * modules/calloc (Status, Notice): Mark module as deprecated, not
14890         obsolete.
14891         * modules/fnmatch-posix (Status, Notice): Likewise.
14892         * modules/getdate (Status, Notice): Likewise.
14893         * modules/getopt (Status, Notice): Likewise.
14894         * modules/malloc (Status, Notice): Likewise.
14895         * modules/pipe (Status, Notice): Likewise.
14896         * modules/realloc (Status, Notice): Likewise.
14897         * modules/rename-dest-slash (Status, Notice): Likewise.
14898         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
14899         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
14900         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
14901         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
14902         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
14903
14904 2011-05-16  Bruno Haible  <bruno@clisp.org>
14905
14906         doc: List the target platforms.
14907         * doc/gnulib-intro.texi (Target Platforms): New section.
14908         * doc/gnulib.texi (Introduction): Update menu.
14909         * README (Portability guidelines): Refer to the new section. Update
14910         statement about oldest supported environment. Remove rationale why
14911         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
14912         unportable C89 function.
14913         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
14914         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
14915
14916 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
14917
14918         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
14919
14920 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
14921
14922         intprops-tests: new module
14923         * modules/intprops-tests, tests/test-intprops.c: New files.
14924
14925         intprops: add safe, portable integer overflow checking
14926         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
14927         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
14928         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
14929         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
14930         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
14931         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
14932         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
14933         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
14934         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
14935         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
14936         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
14937
14938 2011-05-12  James Youngman  <jay@gnu.org>
14939
14940         Add a test for glibc's Bugzilla bug #12378.
14941         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
14942         doesn't allow the literal matching of a lone "[" (which is
14943         required by POSIX).
14944         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
14945
14946 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
14947
14948         Sync glibc change fixing Bugzilla bug #12378.
14949         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
14950         beginning and fall back to matching as normal character if the
14951         string ends before the matching ']' is found.  This is what POSIX
14952         requires.
14953
14954 2011-05-13  Eric Blake  <eblake@redhat.com>
14955
14956         getcwd-lgpl: relax test for FreeBSD
14957         * doc/posix-functions/getcwd.texi (getcwd): Document portability
14958         issue.
14959         * tests/test-getcwd-lgpl.c (main): Relax test.
14960         Reported by Matthias Bolte.
14961
14962 2011-05-11  Eric Blake  <eblake@redhat.com>
14963
14964         test-fflush: silence compiler warning
14965         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
14966
14967 2011-05-11  Bruno Haible  <bruno@clisp.org>
14968
14969         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
14970         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
14971         * modules/canonicalize (Depends-on): Add 'nocrash'.
14972         * modules/canonicalize-lgpl (Depends-on): Likewise.
14973         * doc/posix-functions/realpath.texi: Update platforms list.
14974         Reported by Ryan Schmidt <ryandesign@macports.org>.
14975
14976 2011-05-11  Bruno Haible  <bruno@clisp.org>
14977
14978         group-member: Declare function in <unistd.h>.
14979         * lib/unistd.in.h (group_member): New declaration.
14980         * lib/group-member.h: Remove file.
14981         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
14982         * tests/test-unistd-c++.cc: Check signature of group_member.
14983         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
14984         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
14985         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
14986         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
14987         HAVE_GROUP_MEMBER.
14988         * modules/group-member (Files): Remove lib/group-member.h.
14989         (Depends-on): Add unistd. Specify conditions.
14990         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14991         (Include): Change to <unistd.h>.
14992         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
14993         HAVE_GROUP_MEMBER.
14994         * NEWS: Mention the change.
14995         * lib/euidaccess.c: Don't include group-member.h.
14996
14997 2011-05-11  Bruno Haible  <bruno@clisp.org>
14998
14999         group-member: Document module.
15000         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15001         module.
15002
15003 2011-05-11  Bruno Haible  <bruno@clisp.org>
15004
15005         fclose: Fix mistake earlier today.
15006         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15007
15008 2011-05-11  Eric Blake  <eblake@redhat.com>
15009
15010         fclose: preserve fflush errors
15011         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15012         Reported by Jim Meyering.
15013
15014         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15015         * build-aux/bootstrap (check_versions): When no specific version
15016         is required, merely check that the app produces an exit status
15017         that indicates its existence.
15018
15019         maint.mk: drop redundant check
15020         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15021         the same but better.
15022
15023 2011-05-11  Bruno Haible  <bruno@clisp.org>
15024
15025         fclose: Fix possible link error.
15026         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15027         unregister_shadow_fd. Improve comments.
15028         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15029         Eric Blake.
15030
15031 2011-05-11  Jim Meyering  <meyering@redhat.com>
15032
15033         maint.mk: improve "can not" detection and generalize rule name
15034         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15035         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15036         Use the same technique as in sc_prohibit_doubled_word, so that
15037         we recognize "can not" also when the words are separated by a newline.
15038         Suggested by Eric Blake.
15039         (perl_filename_lineno_text_): Define.  Factored out of...
15040         (prohibit_doubled_word_): ...here.  Use the new definition.
15041         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15042         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15043         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15044
15045 2011-05-10  Eric Blake  <eblake@redhat.com>
15046
15047         fclose: avoid double close race when possible
15048         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15049         all but WINDOWS_SOCKETS.
15050
15051 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15052
15053         openat: correct new comment
15054         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15055
15056 2011-05-10  Jim Meyering  <meyering@redhat.com>
15057
15058         openat: add comments
15059         * lib/openat-proc.c (openat_proc_name): Add comments,
15060         mostly from Eric Blake.
15061
15062 2011-05-09  Eric Blake  <eblake@redhat.com>
15063
15064         openat: reduce syscalls in first probe of /proc
15065         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15066         be a directory.  Simplify the probe for .. bugs.
15067         * modules/openat (Depends-on): Drop same-inode.
15068         Reported by Bastien ROUCARIES.
15069
15070 2011-05-09  Jim Meyering  <meyering@redhat.com>
15071
15072         maint.mk: change semantics/name of tight_scope variables
15073         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15074         Rename variables to align with semantics that make them more useful.
15075
15076         maint.mk: tweak new rule's name not to impinge
15077         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15078         (sc_tight_scope): Use new rule name rather than $@-0.
15079
15080         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15081         * top/maint.mk (sc_tight_scope): New rule.
15082         (sc_tight_scope-0): New rule, ifdef'd out.
15083         (_gl_TS_dir): Default.
15084         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15085         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15086
15087 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15088
15089         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15090         Haible <bruno@clisp.org>.
15091
15092 2011-05-08  Bruno Haible  <bruno@clisp.org>
15093
15094         Comments.
15095         * m4/isnanf.m4: Add comment.
15096         * m4/isnanl.m4: Likewise.
15097
15098 2011-05-08  Bruno Haible  <bruno@clisp.org>
15099
15100         glob: Remove obsolete macro.
15101         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15102
15103 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15104
15105         intprops: Sun C 5.11 supports __typeof__
15106         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15107         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15108         which is new.
15109         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15110
15111         intprops: switch to usual gnulib indenting and naming
15112         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15113         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15114
15115         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15116
15117 2011-05-08  Jim Meyering  <meyering@redhat.com>
15118
15119         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15120         * top/maint.mk (release-prep): Use make's --no-print-directory
15121         option when generating the announcement.  This eliminates the
15122         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15123         generated announcement template.
15124
15125 2011-05-08  Bruno Haible  <bruno@clisp.org>
15126
15127         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15128         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15129         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15130
15131 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15132
15133         ignore-value, verify: Omit include files from lib_SOURCES.
15134         * modules/ignore-value, modules/verify (Makefile.am):
15135         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15136         that leads Automake to duplicate use of am__objects_... variables
15137         in Makefile.in.  See
15138         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15139
15140 2011-05-07  Bruno Haible  <bruno@clisp.org>
15141
15142         fclose: Simplify autoconf macro.
15143         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15144         defined.
15145
15146 2011-05-07  Bruno Haible  <bruno@clisp.org>
15147
15148         canonicalize-lgpl: Fix autoconf macro ordering bug.
15149         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15150         gl_STDLIB_H_DEFAULTS.
15151
15152 2011-05-06  Eric Blake  <eblake@redhat.com>
15153
15154         maintainer-makefile: make sc_po_check easier to tune
15155         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15156         to probe for strings, such as an alternate location for gnulib.
15157
15158         fclose: guarantee behavior on seekable stdin
15159         * modules/fclose (Depends-on): Add fflush.
15160         * doc/posix-functions/fclose.texi (fclose): Document this.
15161         * tests/test-fclose.c (main): Make test for this unconditional.
15162
15163 2011-05-06  Bruno Haible  <bruno@clisp.org>
15164
15165         fflush, fpurge: Relicense under LGPLv2+.
15166         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15167         * modules/fpurge (License): Likewise.
15168         With permission from Eric Blake and Jim Meyering.
15169         Suggested by Eric Blake.
15170
15171 2011-05-06  Karl Berry  <karl@gnu.org>
15172
15173         * MODULES.html.sh (func_all_modules): remove exit.
15174
15175 2011-05-06  Jim Meyering  <meyering@redhat.com>
15176
15177         maint.mk: use info-gnu@ as the default only for a stable release
15178         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15179         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15180         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15181         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15182
15183 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15184
15185         assert-h: new module, which supports C1X-style static_assert
15186         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15187         * lib/verify.h: Revamp so that this can be copied into assert.h,
15188         while retaining the ability to use it standalone as before.
15189         Rename private identifiers so as not to encroach on the
15190         standard C namespace, since this is now used by assert.h.
15191         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15192         the old verify_true.
15193         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15194         the old verify_true.  Use _GL_VERIFY_TYPE.
15195         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15196         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15197         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15198         defined when this file is copied into the replacement assert.h.
15199         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15200         and _Static_assert is not built in.
15201         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15202         defined, and use the new macros mentioned above.
15203         * doc/posix-headers/assert.texi: Document this.
15204
15205 2011-05-05  Bruno Haible  <bruno@clisp.org>
15206
15207         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15208         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15209         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15210         gl_REPLACE_FCLOSE here.
15211         * modules/fflush (Depends-on): Remove fclose.
15212         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15213         combination with module 'fclose'.
15214
15215 2011-05-05  Bruno Haible  <bruno@clisp.org>
15216
15217         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15218         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15219         gl_FUNC_FFLUSH.
15220         (gl_FUNC_FFLUSH): Use it.
15221         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15222         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15223         gl_REPLACE_FSEEKO here.
15224
15225 2011-05-05  Bruno Haible  <bruno@clisp.org>
15226
15227         tzset: Relicense under LGPL.
15228         * modules/tzset (License): Change to LGPL.
15229         No agreement needed; it's a no-op.
15230
15231         strtoimax, strtoumax: Relicense under LGPL.
15232         * modules/strtoimax (License): Change to LGPL.
15233         * modules/strtoumax (License): Likewise.
15234         With permission from Jim Meyering, Paul Eggert:
15235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15236         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15237
15238         getgroups: Relicense under LGPL.
15239         * modules/getgroups (License): Change to LGPL.
15240         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15242         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15243         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15244
15245         nanosleep: Relicense under LGPL.
15246         * modules/nanosleep (License): Change to LGPL.
15247         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15248         Haible:
15249         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15250         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15251         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15252         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15253
15254         futimens: Relicense under LGPL.
15255         * modules/futimens (License): Change to LGPL.
15256         With permission from Eric Blake:
15257         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15258
15259         fflush: Relicense under LGPL.
15260         * modules/fflush (License): Change to LGPL.
15261         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15262         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15264         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15265
15266         tmpfile: Relicense under LGPL.
15267         * modules/tmpfile (License): Change to LGPL.
15268         With permission from Ben Pfaff:
15269         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15270
15271         isfinite: Relicense under LGPL.
15272         * modules/isfinite (License): Change to LGPL.
15273         With permission from Ben Pfaff, Bruno Haible:
15274         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15275         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15276
15277         acosl..tanl: Relicense under LGPL.
15278         * modules/acosl (License): Change to LGPL.
15279         * modules/asinl (License): Likewise.
15280         * modules/atanl (License): Likewise.
15281         * modules/cosl (License): Likewise.
15282         * modules/expl (License): Likewise.
15283         * modules/logl (License): Likewise.
15284         * modules/sinl (License): Likewise.
15285         * modules/sqrtl (License): Likewise.
15286         * modules/tanl (License): Likewise.
15287         Source code originally from glibc and Paolo Bonzini. Agreements:
15288         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15289         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15290
15291 2011-05-05  Bruno Haible  <bruno@clisp.org>
15292
15293         signal: Define sighandler_t.
15294         * lib/signal.in.h (sighandler_t): New type.
15295         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15296         whether sighandler_t is defined.
15297         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15298         * modules/signal (Depends-on): Add extensions.
15299         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15300         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15301         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15302
15303 2011-05-05  Eric Blake  <eblake@redhat.com>
15304
15305         maint: remove useless REPLACE_*_H macros
15306         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15307         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15308         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15309         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15310         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15311         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15312         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15313         * m4/btowc.m4: Update callers.
15314         * m4/dirfd.m4: Likewise.
15315         * m4/duplocale.m4: Likewise.
15316         * m4/fchdir.m4: Likewise.
15317         * m4/fdopendir.m4: Likewise.
15318         * m4/inet_ntop.m4: Likewise.
15319         * m4/inet_pton.m4: Likewise.
15320         * m4/ioctl.m4: Likewise.
15321         * m4/mbrlen.m4: Likewise.
15322         * m4/mbrtowc.m4: Likewise.
15323         * m4/mbsinit.m4: Likewise.
15324         * m4/mbsnrtowcs.m4: Likewise.
15325         * m4/mbsrtowcs.m4: Likewise.
15326         * m4/poll.m4: Likewise.
15327         * m4/setlocale.m4: Likewise.
15328         * m4/wcrtomb.m4: Likewise.
15329         * m4/wcsnrtombs.m4: Likewise.
15330         * m4/wcsrtombs.m4: Likewise.
15331         * m4/wctob.m4: Likewise.
15332         * m4/wcwidth.m4: Likewise.
15333         * modules/posix_spawn: Likewise.
15334         * modules/posix_spawn_file_actions_addclose: Likewise.
15335         * modules/posix_spawn_file_actions_adddup2: Likewise.
15336         * modules/posix_spawn_file_actions_addopen: Likewise.
15337         * modules/posix_spawn_file_actions_destroy: Likewise.
15338         * modules/posix_spawn_file_actions_init: Likewise.
15339         * modules/posix_spawnattr_destroy: Likewise.
15340         * modules/posix_spawnattr_getflags: Likewise.
15341         * modules/posix_spawnattr_getpgroup: Likewise.
15342         * modules/posix_spawnattr_getschedparam: Likewise.
15343         * modules/posix_spawnattr_getschedpolicy: Likewise.
15344         * modules/posix_spawnattr_getsigdefault: Likewise.
15345         * modules/posix_spawnattr_getsigmask: Likewise.
15346         * modules/posix_spawnattr_init: Likewise.
15347         * modules/posix_spawnattr_setflags: Likewise.
15348         * modules/posix_spawnattr_setpgroup: Likewise.
15349         * modules/posix_spawnattr_setschedparam: Likewise.
15350         * modules/posix_spawnattr_setschedpolicy: Likewise.
15351         * modules/posix_spawnattr_setsigdefault: Likewise.
15352         * modules/posix_spawnattr_setsigmask: Likewise.
15353         * modules/posix_spawnp: Likewise.
15354
15355 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15356
15357         Add option to do-release-commit-and-tag to specify branch.
15358         * build-aux/do-release-commit-and-tag: Add --branch.
15359
15360 2011-05-03  Bruno Haible  <bruno@clisp.org>
15361
15362         Avoid unnecessary compilation units, through conditional dependencies.
15363         * modules/accept (Depends-on): Add conditions to the dependencies.
15364         * modules/acosl (Depends-on): Likewise.
15365         * modules/argz (Depends-on): Likewise.
15366         * modules/asinl (Depends-on): Likewise.
15367         * modules/atanl (Depends-on): Likewise.
15368         * modules/atoll (Depends-on): Likewise.
15369         * modules/bind (Depends-on): Likewise.
15370         * modules/btowc (Depends-on): Likewise.
15371         * modules/canonicalize-lgpl (Depends-on): Likewise.
15372         * modules/ceil (Depends-on): Likewise.
15373         * modules/ceilf (Depends-on): Likewise.
15374         * modules/ceill (Depends-on): Likewise.
15375         * modules/chdir-long (Depends-on): Likewise.
15376         * modules/chown (Depends-on): Likewise.
15377         * modules/close (Depends-on): Likewise.
15378         * modules/connect (Depends-on): Likewise.
15379         * modules/cosl (Depends-on): Likewise.
15380         * modules/dirfd (Depends-on): Likewise.
15381         * modules/dprintf (Depends-on): Likewise.
15382         * modules/dprintf-posix (Depends-on): Likewise.
15383         * modules/error (Depends-on): Likewise.
15384         * modules/euidaccess (Depends-on): Likewise.
15385         * modules/expl (Depends-on): Likewise.
15386         * modules/faccessat (Depends-on): Likewise.
15387         * modules/fchdir (Depends-on): Likewise.
15388         * modules/fclose (Depends-on): Likewise.
15389         * modules/fcntl (Depends-on): Likewise.
15390         * modules/fdopendir (Depends-on): Likewise.
15391         * modules/fflush (Depends-on): Likewise.
15392         * modules/floor (Depends-on): Likewise.
15393         * modules/floorf (Depends-on): Likewise.
15394         * modules/floorl (Depends-on): Likewise.
15395         * modules/fnmatch (Depends-on): Likewise.
15396         * modules/fopen (Depends-on): Likewise.
15397         * modules/fprintf-posix (Depends-on): Likewise.
15398         * modules/frexp (Depends-on): Likewise.
15399         * modules/frexp-nolibm (Depends-on): Likewise.
15400         * modules/frexpl (Depends-on): Likewise.
15401         * modules/frexpl-nolibm (Depends-on): Likewise.
15402         * modules/fseek (Depends-on): Likewise.
15403         * modules/fsusage (Depends-on): Likewise.
15404         * modules/ftell (Depends-on): Likewise.
15405         * modules/ftello (Depends-on): Likewise.
15406         * modules/futimens (Depends-on): Likewise.
15407         * modules/getcwd (Depends-on): Likewise.
15408         * modules/getcwd-lgpl (Depends-on): Likewise.
15409         * modules/getdelim (Depends-on): Likewise.
15410         * modules/getdomainname (Depends-on): Likewise.
15411         * modules/getgroups (Depends-on): Likewise.
15412         * modules/gethostname (Depends-on): Likewise.
15413         * modules/getline (Depends-on): Likewise.
15414         * modules/getlogin_r (Depends-on): Likewise.
15415         * modules/getopt-posix (Depends-on): Likewise.
15416         * modules/getpeername (Depends-on): Likewise.
15417         * modules/getsockname (Depends-on): Likewise.
15418         * modules/getsockopt (Depends-on): Likewise.
15419         * modules/getsubopt (Depends-on): Likewise.
15420         * modules/getusershell (Depends-on): Likewise.
15421         * modules/glob (Depends-on): Likewise.
15422         * modules/grantpt (Depends-on): Likewise.
15423         * modules/iconv_open (Depends-on): Likewise.
15424         * modules/iconv_open-utf (Depends-on): Likewise.
15425         * modules/inet_ntop (Depends-on): Likewise.
15426         * modules/inet_pton (Depends-on): Likewise.
15427         * modules/ioctl (Depends-on): Likewise.
15428         * modules/isapipe (Depends-on): Likewise.
15429         * modules/isfinite (Depends-on): Likewise.
15430         * modules/isinf (Depends-on): Likewise.
15431         * modules/lchown (Depends-on): Likewise.
15432         * modules/ldexpl (Depends-on): Likewise.
15433         * modules/link (Depends-on): Likewise.
15434         * modules/linkat (Depends-on): Likewise.
15435         * modules/listen (Depends-on): Likewise.
15436         * modules/logl (Depends-on): Likewise.
15437         * modules/lstat (Depends-on): Likewise.
15438         * modules/mbrlen (Depends-on): Likewise.
15439         * modules/mbrtowc (Depends-on): Likewise.
15440         * modules/mbsinit (Depends-on): Likewise.
15441         * modules/mbsnrtowcs (Depends-on): Likewise.
15442         * modules/mbsrtowcs (Depends-on): Likewise.
15443         * modules/mbtowc (Depends-on): Likewise.
15444         * modules/memcmp (Depends-on): Likewise.
15445         * modules/mkdir (Depends-on): Likewise.
15446         * modules/mkdtemp (Depends-on): Likewise.
15447         * modules/mkfifo (Depends-on): Likewise.
15448         * modules/mkfifoat (Depends-on): Likewise.
15449         * modules/mknod (Depends-on): Likewise.
15450         * modules/mkostemp (Depends-on): Likewise.
15451         * modules/mkostemps (Depends-on): Likewise.
15452         * modules/mkstemp (Depends-on): Likewise.
15453         * modules/mkstemps (Depends-on): Likewise.
15454         * modules/mktime (Depends-on): Likewise.
15455         * modules/nanosleep (Depends-on): Likewise.
15456         * modules/open (Depends-on): Likewise.
15457         * modules/openat (Depends-on): Likewise.
15458         * modules/perror (Depends-on): Likewise.
15459         * modules/poll (Depends-on): Likewise.
15460         * modules/popen (Depends-on): Likewise.
15461         * modules/posix_spawn (Depends-on): Likewise.
15462         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
15463         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15464         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15465         * modules/posix_spawnp (Depends-on): Likewise.
15466         * modules/pread (Depends-on): Likewise.
15467         * modules/printf-posix (Depends-on): Likewise.
15468         * modules/ptsname (Depends-on): Likewise.
15469         * modules/putenv (Depends-on): Likewise.
15470         * modules/pwrite (Depends-on): Likewise.
15471         * modules/readline (Depends-on): Likewise.
15472         * modules/readlink (Depends-on): Likewise.
15473         * modules/readlinkat (Depends-on): Likewise.
15474         * modules/recv (Depends-on): Likewise.
15475         * modules/recvfrom (Depends-on): Likewise.
15476         * modules/regex (Depends-on): Likewise.
15477         * modules/remove (Depends-on): Likewise.
15478         * modules/rename (Depends-on): Likewise.
15479         * modules/renameat (Depends-on): Likewise.
15480         * modules/rmdir (Depends-on): Likewise.
15481         * modules/round (Depends-on): Likewise.
15482         * modules/roundf (Depends-on): Likewise.
15483         * modules/roundl (Depends-on): Likewise.
15484         * modules/rpmatch (Depends-on): Likewise.
15485         * modules/select (Depends-on): Likewise.
15486         * modules/send (Depends-on): Likewise.
15487         * modules/sendto (Depends-on): Likewise.
15488         * modules/setenv (Depends-on): Likewise.
15489         * modules/setlocale (Depends-on): Likewise.
15490         * modules/setsockopt (Depends-on): Likewise.
15491         * modules/shutdown (Depends-on): Likewise.
15492         * modules/sigaction (Depends-on): Likewise.
15493         * modules/signbit (Depends-on): Likewise.
15494         * modules/sigprocmask (Depends-on): Likewise.
15495         * modules/sinl (Depends-on): Likewise.
15496         * modules/sleep (Depends-on): Likewise.
15497         * modules/snprintf (Depends-on): Likewise.
15498         * modules/snprintf-posix (Depends-on): Likewise.
15499         * modules/socket (Depends-on): Likewise.
15500         * modules/sprintf-posix (Depends-on): Likewise.
15501         * modules/sqrtl (Depends-on): Likewise.
15502         * modules/stat (Depends-on): Likewise.
15503         * modules/strchrnul (Depends-on): Likewise.
15504         * modules/strdup-posix (Depends-on): Likewise.
15505         * modules/strerror (Depends-on): Likewise.
15506         * modules/strerror_r-posix (Depends-on): Likewise.
15507         * modules/strndup (Depends-on): Likewise.
15508         * modules/strnlen (Depends-on): Likewise.
15509         * modules/strptime (Depends-on): Likewise.
15510         * modules/strsep (Depends-on): Likewise.
15511         * modules/strsignal (Depends-on): Likewise.
15512         * modules/strstr-simple (Depends-on): Likewise.
15513         * modules/strtod (Depends-on): Likewise.
15514         * modules/strtoimax (Depends-on): Likewise.
15515         * modules/strtok_r (Depends-on): Likewise.
15516         * modules/strtoumax (Depends-on): Likewise.
15517         * modules/symlink (Depends-on): Likewise.
15518         * modules/symlinkat (Depends-on): Likewise.
15519         * modules/tanl (Depends-on): Likewise.
15520         * modules/tcgetsid (Depends-on): Likewise.
15521         * modules/tmpfile (Depends-on): Likewise.
15522         * modules/trunc (Depends-on): Likewise.
15523         * modules/truncf (Depends-on): Likewise.
15524         * modules/truncl (Depends-on): Likewise.
15525         * modules/uname (Depends-on): Likewise.
15526         * modules/unlink (Depends-on): Likewise.
15527         * modules/unlockpt (Depends-on): Likewise.
15528         * modules/unsetenv (Depends-on): Likewise.
15529         * modules/usleep (Depends-on): Likewise.
15530         * modules/utimensat (Depends-on): Likewise.
15531         * modules/vasprintf (Depends-on): Likewise.
15532         * modules/vdprintf (Depends-on): Likewise.
15533         * modules/vdprintf-posix (Depends-on): Likewise.
15534         * modules/vfprintf-posix (Depends-on): Likewise.
15535         * modules/vprintf-posix (Depends-on): Likewise.
15536         * modules/vsnprintf (Depends-on): Likewise.
15537         * modules/vsnprintf-posix (Depends-on): Likewise.
15538         * modules/vsprintf-posix (Depends-on): Likewise.
15539         * modules/wcrtomb (Depends-on): Likewise.
15540         * modules/wcscasecmp (Depends-on): Likewise.
15541         * modules/wcscspn (Depends-on): Likewise.
15542         * modules/wcsdup (Depends-on): Likewise.
15543         * modules/wcsncasecmp (Depends-on): Likewise.
15544         * modules/wcsnrtombs (Depends-on): Likewise.
15545         * modules/wcspbrk (Depends-on): Likewise.
15546         * modules/wcsrtombs (Depends-on): Likewise.
15547         * modules/wcsspn (Depends-on): Likewise.
15548         * modules/wcsstr (Depends-on): Likewise.
15549         * modules/wcstok (Depends-on): Likewise.
15550         * modules/wcswidth (Depends-on): Likewise.
15551         * modules/wctob (Depends-on): Likewise.
15552         * modules/wctomb (Depends-on): Likewise.
15553         * modules/wctype (Depends-on): Likewise.
15554         * modules/wcwidth (Depends-on): Likewise.
15555         * modules/write (Depends-on): Likewise.
15556
15557 2011-05-03  Bruno Haible  <bruno@clisp.org>
15558
15559         Support for conditional dependencies.
15560         * doc/gnulib.texi (Module description): Document the syntax of
15561         conditional dependencies.
15562         * gnulib-tool: New option --conditional-dependencies.
15563         (func_usage): Document it.
15564         (cond_dependencies): New variable.
15565         (func_get_automake_snippet_conditional,
15566         func_get_automake_snippet_unconditional): New functions, extracted from
15567         func_get_automake_snippet.
15568         (func_get_automake_snippet): Use them.
15569         (sed_first_32_chars): New variable.
15570         (func_module_shellfunc_name): New function.
15571         (func_module_shellvar_name): New function.
15572         (func_module_conditional_name): New function.
15573         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
15574         func_cond_module_condition): New functions.
15575         (func_modules_transitive_closure): Add support for conditional
15576         dependencies.
15577         (func_emit_lib_Makefile_am): For a conditional module, enclose the
15578         conditional automake snippet in an automake conditional.
15579         (func_emit_autoconf_snippets): Emit shell functions that contain the
15580         code for conditional modules.
15581         (func_import, func_create_testdir): Update specification.
15582
15583 2011-05-03  Eric Blake  <eblake@redhat.com>
15584
15585         test-getaddrinfo: report error information
15586         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
15587
15588 2011-05-03  Jim Meyering  <meyering@redhat.com>
15589
15590         bootstrap: avoid build failure when $GZIP is set
15591         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
15592         program name.  If defined at all, it is supposed to list gzip options.
15593         Reported by Alan Curry in http://debbugs.gnu.org/8609
15594
15595 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
15596
15597         readme-release: new module with release instructions
15598         * modules/readme-release: New module.
15599         * top/README-release: New file, from coreutils, grep, diffutils.
15600         * MODULES.html.sh (Support for maintaining and releasing): Add it.
15601
15602 2011-05-02  Eric Blake  <eblake@redhat.com>
15603
15604         fflush: also replace fclose when fixing fflush
15605         * modules/fflush (Depends-on): Add fclose.
15606         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
15607         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
15608         memstreams with no backing fd.
15609         * doc/posix-functions/fclose.texi (fclose): Document the use of
15610         fflush module to fix the bug.
15611         * tests/test-fclose.c (main): Relax test when fclose is used in
15612         isolation.
15613
15614         fclose: add some tests
15615         * modules/fclose-tests: New test module.
15616         * tests/test-fclose.c: New file.
15617         * doc/posix-functions/fclose.texi (fclose): Document the bug.
15618
15619         fclose: reduced dependencies
15620         * modules/fclose (Depends-on): Switch from fflush/fseeko to
15621         simpler lseek.
15622         * lib/fclose.c (rpl_fclose): Likewise.
15623         Reported by Simon Josefsson.
15624
15625         exit: drop remaining clients
15626         * modules/argmatch (Depends-on): Replace exit with stdlib.
15627         * modules/copy-file (Depends-on): Likewise.
15628         * modules/execute (Depends-on): Likewise.
15629         * modules/exitfail (Depends-on): Likewise.
15630         * modules/obstack (Depends-on): Likewise.
15631         * modules/pagealign_alloc (Depends-on): Likewise.
15632         * modules/pipe-filter-gi (Depends-on): Likewise.
15633         * modules/pipe-filter-ii (Depends-on): Likewise.
15634         * modules/savewd (Depends-on): Likewise.
15635         * modules/spawn-pipe (Depends-on): Likewise.
15636         * modules/wait-process (Depends-on): Likewise.
15637         * modules/xsetenv (Depends-on): Likewise.
15638         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
15639         * modules/git-merge-changelog (Depends-on): Likewise.
15640         * modules/long-options (Depends-on): Likewise.
15641         * modules/pt_chown (Depends-on): Likewise.
15642         * modules/sysexits (Depends-on): Likewise.
15643
15644         freading: relax license from LGPLv3+ to LGPLv2+
15645         * modules/freading (License): Relax LGPL version.
15646
15647 2011-05-02  Bruno Haible  <bruno@clisp.org>
15648
15649         fchdir: Remove unused dependencies.
15650         * modules/fchdir (Depends-on): Remove include_next.
15651
15652 2011-05-02  Bruno Haible  <bruno@clisp.org>
15653
15654         gnulib-tool: Refactor.
15655         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
15656         from func_emit_autoconf_snippets.
15657         (func_emit_autoconf_snippets): Use it.
15658
15659 2011-05-02  Simon Josefsson  <simon@josefsson.org>
15660
15661         * NEWS: Document removal of 'exit'.
15662         * modules/exit: Remove file.
15663
15664 2011-05-01  Bruno Haible  <bruno@clisp.org>
15665
15666         Update DEPENDENCIES.
15667         * DEPENDENCIES (gettext): Recommend the newest release.
15668         Reported by Simon Josefsson.
15669
15670 2011-05-01  Bruno Haible  <bruno@clisp.org>
15671
15672         gnulib-tool: Reduce code duplication.
15673         * gnulib-tool (func_emit_autoconf_snippets): New function.
15674         (func_import, func_create_testdir): Use it.
15675
15676 2011-04-30  Eric Blake  <eblake@redhat.com>
15677
15678         fclose: don't fail on non-seekable input stream
15679         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
15680         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
15681         since fflush is allowed to fail in that case.
15682
15683 2011-04-30  Bruno Haible  <bruno@clisp.org>
15684
15685         dup3: cleanup
15686         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
15687
15688 2011-04-30  Bruno Haible  <bruno@clisp.org>
15689
15690         netdb: Make it work in C++ mode.
15691         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
15692         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
15693         module.
15694         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
15695         gl_MODULE_INDICATOR_FOR_TESTS.
15696         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
15697         * modules/netdb-c++-tests: New file.
15698         * tests/test-netdb-c++.cc: New file.
15699
15700 2011-04-30  Bruno Haible  <bruno@clisp.org>
15701
15702         New modules 'vfscanf', 'vscanf'.
15703         * modules/vfscanf: New file.
15704         * modules/vscanf: New file.
15705         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
15706         here.
15707         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
15708         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
15709
15710 2011-04-30  Bruno Haible  <bruno@clisp.org>
15711
15712         passfd: Add comments.
15713         * lib/passfd.c: Add comments about platforms.
15714
15715 2011-04-30  Bruno Haible  <bruno@clisp.org>
15716
15717         sys_uio: Make <sys/uio.h> self-contained.
15718         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
15719         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
15720
15721 2011-04-30  Bruno Haible  <bruno@clisp.org>
15722
15723         sys_socket: Ensure 'struct iovec' definition.
15724         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
15725         <sys/socket.h>.
15726         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
15727
15728 2011-04-30  Bruno Haible  <bruno@clisp.org>
15729
15730         sys_uio: Protect definition of 'struct iovec'.
15731         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
15732         it as a C struct.
15733
15734 2011-04-30  Bruno Haible  <bruno@clisp.org>
15735
15736         manywarnings: fix indentation
15737         * m4/manywarnings.m4: Indent by 2 spaces consistently.
15738
15739 2011-04-30  Pádraig Brady <P@draigBrady.com>
15740
15741         manywarnings: add -Wno-missing-field-initializers if needed.
15742         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
15743         option if it's needed to allow initialization with { 0, }
15744
15745 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
15746
15747         announce-gen: cosmetic improvement
15748         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
15749
15750 2011-04-29  Jim Meyering  <meyering@redhat.com>
15751
15752         vc-list-files: indent with spaces, not TABs
15753         * build-aux/vc-list-files: Convert leading TABs to spaces,
15754         to match the style of most other files in gnulib.
15755
15756         announce-gen: indent with spaces, not TABs
15757         * build-aux/announce-gen: Convert all TABs to spaces, to match
15758         the style of most other files in gnulib.
15759
15760 2011-04-29  Eric Blake  <eblake@redhat.com>
15761
15762         quotearg: avoid uninitialized variable use
15763         * lib/quotearg.c (quoting_options_from_style): Initialize
15764         remaining fields, and ensure that custom styles are only used via
15765         quoting_options rather than quoting_style.
15766
15767 2011-04-29  Jim Meyering  <meyering@redhat.com>
15768
15769         maint.mk: remove unused VC-tag variable
15770         * top/maint.mk (VC-tag): Remove unused variable.
15771
15772 2011-04-29  Bruno Haible  <bruno@clisp.org>
15773
15774         netdb: fix gai_strerror replacements
15775         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
15776         * modules/netdb: Substitute it.
15777
15778 2011-04-29  Jim Meyering  <meyering@redhat.com>
15779
15780         test-getcwd.c: avoid new set-but-not-used warning
15781         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
15782         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
15783         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
15784         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
15785
15786         test-hash.c: avoid a new shadowing warning
15787         * tests/test-hash.c (main): Don't shadow "dup".
15788
15789 2011-04-28  Eric Blake  <eblake@redhat.com>
15790
15791         getaddrinfo: fix gai_strerror signature
15792         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
15793         and work around mingw with UNICODE defined.
15794         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
15795         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
15796         * modules/netdb (Makefile.am): Substitute it.
15797         * lib/netdb.in.h (gai_strerror): Declare replacement.
15798         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
15799         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
15800         the fix.
15801
15802         getsockopt: avoid compiler warning
15803         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
15804         Reported by Matthias Bolte.
15805
15806         tests: drop unused link dependency
15807         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
15808         * modules/dirent-safer-tests (Makefile.am): Likewise.
15809         * modules/fdopendir-tests (Makefile.am): Likewise.
15810         * modules/mkfifoat-tests (Makefile.am): Likewise.
15811         * modules/openat-safer-tests (Makefile.am): Likewise.
15812         * modules/openat-tests (Makefile.am): Likewise.
15813         * modules/readlinkat-tests (Makefile.am): Likewise.
15814         * modules/symlinkat-tests (Makefile.am): Likewise.
15815         * modules/linkat-tests (Makefile.am): Likewise.
15816         (Depends-on): Switch to filenamecat-lgpl.
15817         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
15818         LIBINTL.
15819         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
15820         * tests/test-linkat.c (main): Don't require xalloc.
15821
15822         hash, mgetgroups: drop xalloc dependency
15823         * lib/hash.c (includes): Adjust includes.
15824         * lib/mgetgroups.c (includes): Likewise.
15825         (xgetgroups): Move...
15826         * lib/xgetgroups.c: ...to new file.
15827         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
15828         * modules/xgetgroups: New file, split from...
15829         * modules/mgetgroups: ...here.
15830         (Depends-on): Add xalloc-oversized.
15831         * modules/hash (Depends-on): Likewise.
15832         * modules/hash-tests (Depends-on): Drop xalloc.
15833         (test_hash_LDADD): Drop unused library.
15834         * tests/test-hash.c (main): Break xalloc dependency.
15835         (includes): Drop unused include.
15836
15837         xalloc-oversized: new module
15838         * modules/xalloc-oversized: New module.
15839         * modules/xalloc (Depends-on): Add it.
15840         * lib/xalloc.h (xalloc_oversized): Move...
15841         * lib/xalloc-oversized.h: ...into new file.
15842
15843         utimecmp: drop dependency on xmalloc
15844         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
15845         due to memory pressure.
15846         * modules/utimecmp (Depends-on): Drop xalloc.
15847
15848 2011-04-27  Eric Blake  <eblake@redhat.com>
15849
15850         getcwd: fix mingw bugs
15851         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
15852         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
15853         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
15854
15855 2011-04-27  Bruno Haible  <bruno@clisp.org>
15856
15857         mkstemps: Ensure declaration on MacOS X 10.5.
15858         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
15859         * doc/glibc-functions/mkstemps.texi: Document header file problem on
15860         MacOS X.
15861
15862 2011-04-27  Bruno Haible  <bruno@clisp.org>
15863
15864         mkstemp: More documentation.
15865         * doc/posix-functions/mkstemp.texi: Document header file problem on
15866         MacOS X.
15867
15868 2011-04-27  Bruno Haible  <bruno@clisp.org>
15869
15870         mkstemp: Tweak configure message when cross-compiling.
15871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
15872         result as a guess.
15873
15874 2011-04-27  Bruno Haible  <bruno@clisp.org>
15875
15876         clean-temp: Clarify what it does.
15877         * lib/clean-temp.h: Add more comments.
15878         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
15879         module.
15880         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
15881         * doc/glibc-functions/mkstemps.texi: Likewise.
15882         * doc/glibc-functions/mkostemps.texi: Likewise.
15883
15884 2011-04-27  Eric Blake  <eblake@redhat.com>
15885
15886         fchdir: avoid extra chdir and fix test
15887         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
15888         getcwd-lgpl.
15889         * lib/fchdir.c (get_name): Any absolute name will do; it does not
15890         have to be canonical.
15891         (canonicalize_file_name): Drop unused macro.
15892         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
15893
15894         filenamecat-lgpl: fix licence
15895         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
15896         when it was first created.
15897
15898         linkat, renameat: add missing dependency
15899         * modules/linkat (Depends-on): Require getcwd-lgpl.
15900         * modules/renameat (Depends-on): Likewise.
15901
15902         tests: reduce dependencies
15903         * tests/test-linkat.c (main): Use lighter-weight getcwd.
15904         * tests/test-renameat.c (main): Likewise.
15905         * modules/linkat-tests (Depends-on): Relax dependency.
15906         * modules/renameat-tests (Depends-on): Likewise.
15907         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
15908         dependency explicit.
15909
15910         save-cwd: reduce default dependency
15911         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
15912         * lib/save-cwd.c: Update comments.
15913         * NEWS: Document the semantic change.
15914
15915         getcwd: enhance tests
15916         * tests/test-getcwd-lgpl.c: New file, taken from...
15917         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
15918         repeat long path stress tests from m4 probe.
15919         * modules/getcwd-lgpl-tests: New module.
15920         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
15921         * m4/getcwd-abort-bug.m4: Update comment.
15922         * m4/getcwd-path-max.m4: Likewise.
15923
15924         getcwd-lgpl: new module
15925         * modules/getcwd-lgpl: New module.
15926         * lib/getcwd-lgpl.c: New file.
15927         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15928         * MODULES.html.sh (lacking POSIX:2008): Likewise.
15929         * modules/getcwd (configure.ac): Set C witness.
15930         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
15931
15932         getcwd: tweak comments
15933         * m4/getcwd-abort-bug.m4: Fix comments.
15934         * m4/getcwd-path-max.m4: Likewise.
15935         * m4/getcwd.m4: Likewise.
15936
15937 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15938         and Eric Blake  <eblake@redhat.com>
15939
15940         mkstemp: replace if system version uses wrong permissions
15941         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
15942         read/write mode bits set in file created by mkstemp.
15943         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
15944
15945 2011-04-27  Eric Blake  <eblake@redhat.com>
15946
15947         passfd: avoid compiler warning
15948         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
15949         Reported by Laine Stump.
15950
15951 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
15952
15953         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
15954         required by the NetBSD (and perhaps other 4.4BSD derived) join.
15955
15956 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
15957         and Eric Blake  <eblake@redhat.com>
15958
15959         mkstemp: mention clean-temp module
15960         * lib/mkstemp.c: Add comment.
15961         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
15962
15963 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
15964
15965         inttypes: also provide default values for 32-bit tests
15966         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
15967         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
15968
15969 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
15970
15971         strtoumax: remove dependency on strtoimax
15972         This is like the strtoull change of yesterday.
15973         * modules/strtoumax (Files): Add lib/strtoimax.c.
15974         (Depends-on): Remove strtoimax and add verify.
15975
15976         inttypes-incomplete: new module
15977         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
15978         all but the PRI* and SCN* parts of gl_INTTYPES_H.
15979         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
15980         of gl_INTTYPES_H.
15981         (gl_INTTYPES_H): Rewrite in terms of these new macros.
15982         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
15983         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
15984         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
15985         * modules/strtoumax, modules/xstrtol (Depends-on):
15986         Depend on inttypes-incomplete, not inttypes.
15987         * modules/inttypes-incomplete: New module, containing the contents
15988         of the old modules/inttypes module, except that the Files: section
15989         omits m4/inttypes-pri.m4, and the configure.ac section invokes
15990         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
15991         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
15992         (Depends-on): Depend only on inttypes-incomplete.
15993         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
15994
15995         inttypes: omit now-redundant strtoimax and strtoumax work
15996         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
15997         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
15998
15999         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16000         This supports apps that need pointers to strtoimax and strtoumax,
16001         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16002         nonexistent functions.  See
16003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16004         et seq.
16005         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16006         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16007         a macro.
16008         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16009
16010 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16011
16012         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16013
16014 2011-04-25  Bruno Haible  <bruno@clisp.org>
16015
16016         strtol, strtoul: Mark modules as obsolete.
16017         * modules/strtol (Status, Notice): New sections.
16018         * modules/strtoul (Status, Notice): New sections.
16019
16020 2011-04-25  Bruno Haible  <bruno@clisp.org>
16021
16022         strtod: Remove check for strtod, unless supporting old platforms.
16023         * modules/strtod-obsolete: New file.
16024         * m4/strtod-obsolete.m4: New file.
16025         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16026         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16027         * modules/strtod (Depends-on): Add strtod-obsolete.
16028         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16029
16030 2011-04-25  Bruno Haible  <bruno@clisp.org>
16031
16032         strcase: Make module obsolete.
16033         * modules/strcase (Status, Notice): New sections.
16034
16035 2011-04-25  Bruno Haible  <bruno@clisp.org>
16036
16037         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16038         * modules/dup2-obsolete: New file.
16039         * m4/dup2-obsolete.m4: New file.
16040         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16041         gl_FUNC_DUP2_OBSOLETE is not also defined.
16042         * modules/dup2 (Depends-on): Add dup2-obsolete.
16043         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16044
16045 2011-04-25  Bruno Haible  <bruno@clisp.org>
16046
16047         strnlen: Avoid memchr related link error on old obsolete platforms.
16048         * modules/memchr-obsolete: New file.
16049         * m4/memchr-obsolete.m4: New file.
16050         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16051         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16052         * modules/memchr (Depends-on): Add memchr-obsolete.
16053         * modules/strnlen (Depends-on): Likewise.
16054         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16055
16056 2011-04-25  Jim Meyering  <meyering@redhat.com>
16057
16058         maint.mk: makefile_at_at_check extend and clean up
16059         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16060         in addition to */Makefile.am.
16061         Exempt legitimate uses of @VAR@ notation, e.g.,
16062         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16063         Remove obsolete coreutils-specific comment.
16064         Prompted by discussion here:
16065         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16066
16067 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16068
16069         strtoul: remove dependency on strtol
16070         This is so that 'configure' need not check for strtol merely because
16071         the application needs strtoul.
16072         * modules/strtoul (Files): Add lib/strtol.c.
16073         (Depends-on): Remove strtol.
16074
16075         strtoull: remove dependency on strtoul
16076         This is like the strtoll change.
16077         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16078         (Depends-on): Remove strtoul.
16079
16080         strtoll: remove dependency on strtol
16081         This is so that 'configure' need not check for strtol merely because
16082         the application needs strtoll.
16083         * modules/strtoll (Files): Add lib/strtol.c.
16084         (Depends-on): Remove strtol.
16085
16086 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16087
16088         inttypes: Move some configure check to module 'imaxdiv'.
16089         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16090         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16091         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16092
16093 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16094
16095         inttypes: Move some configure check to module 'imaxabs'.
16096         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16097         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16098         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16099
16100 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16101
16102         inttypes: Remove configure tests that are not needed since 2009-12-31.
16103         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16104         gl_cv_header_working_inttypes_h.
16105
16106 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16107
16108         * modules/strnlen (Depends-on): Remove memchr.
16109         The strnlen implementation doesn't need the memchr module's fixes; see
16110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16111
16112         strtol: remove dependency on wchar
16113         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16114         * modules/strtol (Depends-on): Remove wchar.
16115
16116 2011-04-21  Eric Blake  <eblake@redhat.com>
16117
16118         passfd: fix test regression on Linux
16119         * modules/passfd-tests (configure.ac): Correct socketpair check.
16120
16121         passfd: speed up configure and drop unused code
16122         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16123         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16124         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16125         Instead of probing at configure for unix_scm_rights_bsd44_way,
16126         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16127         check to a struct member probe.
16128         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16129         (sendfd, recvfd): Update preprocessor checks.
16130         * modules/passfd (Files): Reflect rename, and drop unused file.
16131         (Depends-on): Drop unused dependency.
16132
16133         passfd: allow compilation on mingw
16134         * modules/sys_socket (Depends-on): Add sys_uio.
16135         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16136         iovec and a minimal struct msghdr.
16137         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16138         * tests/test-sys_socket.c (main): Enhance test.
16139         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16140         guaranteed to provide what we need.
16141         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16142         * modules/passfd-tests (Depends-on): Add sys_wait.
16143         * tests/test-passfd.c (main): Skip test on mingw, for now.
16144         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16145         partial 'struct msghdr' implementation.
16146
16147         sys_uio: new module
16148         * modules/sys_uio: New module.
16149         * modules/sys_uio-tests: Likewise.
16150         * lib/sys_uio.in.h: New file.
16151         * m4/sys_uio_h.m4: Likewise.
16152         * tests/test-sys_uio.c: Likewise.
16153         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16154         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16155
16156 2011-04-20  Jim Meyering  <meyering@redhat.com>
16157
16158         useless-if-before-free: avoid false-positive
16159         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16160         disjunct so that it too requires a terminating ";".  Without that,
16161         this script would identify as useless one statement from gcc that
16162         was not:
16163           if (aligned_ptr)
16164             free (((void **) aligned_ptr) [-1]);
16165
16166 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16167
16168         doc: update users.txt.
16169         * users.txt: Add barcode.
16170
16171 2011-04-19  Bruno Haible  <bruno@clisp.org>
16172
16173         ioctl: Remove link dependency on native Windows.
16174         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16175         (gl_close_fn, gl_ioctl_fn): New types.
16176         (struct fd_hook): Renamed from struct close_hook. Change type of
16177         private_close_fn field. Add private_ioctl_fn field.
16178         (close_hook_fn): Add parameter for primary close method.
16179         (execute_close_hooks, execute_all_close_hooks): Likewise.
16180         (ioctl_hook_fn): New type.
16181         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16182         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16183         argument.
16184         (unregister_fd_hook): Renamed from unregister_close_hook.
16185         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16186         Don't include <unistd.h>.
16187         (close): Remove undef.
16188         (anchor): Update.
16189         (execute_close_hooks): Add argument for primary close method.
16190         (execute_all_close_hooks): Likewise.
16191         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16192         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16193         argument. Allow each argument to be NULL.
16194         (unregister_fd_hook): Renamed from unregister_close_hook.
16195         * lib/close.c (rpl_close): Pass 'close' function pointer to
16196         execute_all_close_hooks.
16197         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16198         (primary_ioctl): New function.
16199         (ioctl): Don't call ioctlsocket here. Instead, call
16200         execute_all_ioctl_hooks.
16201         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16202         close method.
16203         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16204         (fd_sockets_hook): Renamed from close_sockets_hook.
16205         (gl_sockets_startup, gl_sockets_cleanup): Update.
16206         * modules/fd-hook: Renamed from modules/close-hook. Update.
16207         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16208         * modules/sockets (Depends-on): Likewise.
16209         * modules/ioctl (Depends-on): Add fd-hook.
16210         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16211         GNULIB_SOCKET.
16212
16213 2011-04-19  Bruno Haible  <bruno@clisp.org>
16214
16215         Move the support of O_NONBLOCK in open() to the 'open' module.
16216         * modules/nonblocking (Depends-on): Remove 'open'.
16217         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16218         gl_cv_have_open_O_NONBLOCK.
16219         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16220         O_NONBLOCK support.
16221         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16222
16223 2011-04-17  Bruno Haible  <bruno@clisp.org>
16224
16225         pipe2: Simplify code.
16226         * lib/pipe2.c (pipe2): Reduce code duplication.
16227
16228 2011-04-17  Bruno Haible  <bruno@clisp.org>
16229
16230         nonblocking: Add comment.
16231         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16232
16233 2011-04-17  Bruno Haible  <bruno@clisp.org>
16234
16235         nonblocking: Add tests for sockets.
16236         * tests/test-nonblocking-socket.sh: New file.
16237         * tests/test-nonblocking-socket-main.c: New file.
16238         * tests/test-nonblocking-socket-child.c: New file.
16239         * tests/test-nonblocking-socket.h: New file.
16240         * tests/socket-server.h: New file.
16241         * tests/socket-client.h: New file.
16242         * modules/nonblocking-socket-tests: New file.
16243         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16244
16245 2011-04-17  Bruno Haible  <bruno@clisp.org>
16246
16247         nonblocking: Add tests for pipes.
16248         * tests/test-nonblocking-pipe.sh: New file.
16249         * tests/test-nonblocking-pipe-main.c: New file.
16250         * tests/test-nonblocking-pipe-child.c: New file.
16251         * tests/test-nonblocking-pipe.h: New file.
16252         * tests/test-nonblocking-writer.h: New file.
16253         * tests/test-nonblocking-reader.h: New file.
16254         * tests/test-nonblocking-misc.h: New file.
16255         * modules/nonblocking-pipe-tests: New file.
16256         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16257
16258 2011-04-16  Bruno Haible  <bruno@clisp.org>
16259
16260         gettext: Clarify the needed programmer actions.
16261         * modules/gettext (Notice): New field.
16262         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16263
16264 2011-04-16  Bruno Haible  <bruno@clisp.org>
16265
16266         strchrnul: Tweak last commit.
16267         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16268         bug.
16269         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16270         as in _GL_FUNCDECL_SYS.
16271         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16272         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16273
16274 2011-04-15  Eric Blake  <eblake@redhat.com>
16275
16276         strchrnul: work around cygwin bug
16277         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16278         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16279         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16280         * modules/string (Makefile.am): Substitute it.
16281         * lib/string.in.h (strchrnul): Use it.
16282
16283 2011-04-15  Bruno Haible  <bruno@clisp.org>
16284
16285         Don't require lib/stdio-write.c when only module 'stdio' is used.
16286         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16287         invocation.
16288         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16289
16290 2011-04-14  Bruno Haible  <bruno@clisp.org>
16291
16292         Support non-blocking pipe I/O in read() on native Windows.
16293         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16294         (read): New declaration.
16295         * lib/read.c: New file.
16296         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16297         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16298         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16299         vscanf): New declarations.
16300         * lib/stdio-read.c: New file.
16301         * m4/read.m4: New file.
16302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16303         REPLACE_READ.
16304         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16305         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16306         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16307         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16308         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16309         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16310         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16311         * modules/read: New file.
16312         * modules/nonblocking (Files): Add lib/stdio-read.c.
16313         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16314         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16315         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16316         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16317         * modules/pread (Depends-on): Add read.
16318         * modules/safe-read (Depends-on): Likewise.
16319         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16320         gets, scanf, vfscanf, vscanf): Verify signatures.
16321         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16322         problem with non-blocking pipes.
16323         * doc/posix-functions/fgetc.texi: Likewise.
16324         * doc/posix-functions/fgets.texi: Likewise.
16325         * doc/posix-functions/fread.texi: Likewise.
16326         * doc/posix-functions/fscanf.texi: Likewise.
16327         * doc/posix-functions/getc.texi: Likewise.
16328         * doc/posix-functions/getchar.texi: Likewise.
16329         * doc/posix-functions/gets.texi: Likewise.
16330         * doc/posix-functions/scanf.texi: Likewise.
16331         * doc/posix-functions/vfscanf.texi: Likewise.
16332         * doc/posix-functions/vscanf.texi: Likewise.
16333
16334 2011-04-14  Bruno Haible  <bruno@clisp.org>
16335
16336         Support non-blocking pipe I/O in write() on native Windows.
16337         * lib/write.c (rpl_write): Split a write request that failed merely
16338         because the byte count was larger than the pipe buffer's size.
16339         * doc/posix-functions/write.texi: Mention the problem with large byte
16340         counts.
16341
16342 2011-04-14  Bruno Haible  <bruno@clisp.org>
16343
16344         wchar: Ensure that wchar_t gets defined on uClibc.
16345         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16346         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16347
16348 2011-04-13  Bruno Haible  <bruno@clisp.org>
16349
16350         safe-write, full-read: Avoid unnecessary compilation units.
16351         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16352         (Depends-on): Remove safe-read. Add ssize_t.
16353         * modules/full-read (Files): Add lib/full-write.c.
16354         (Depends-on): Add full-write.
16355
16356 2011-04-13  Bruno Haible  <bruno@clisp.org>
16357
16358         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16359         * modules/pwrite (Depends-on): Add 'write'.
16360
16361 2011-04-13  Bruno Haible  <bruno@clisp.org>
16362
16363         Support non-blocking pipe I/O in write() on native Windows.
16364         * lib/unistd.in.h (write): Enable replacement also if
16365         GNULIB_UNISTD_H_NONBLOCKING is 1.
16366         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16367         (rpl_write): When failing to write on a non-blocking pipe, change
16368         errno from ENOSPC to EAGAIN.
16369         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16370         putchar, puts, vfprintf, vprintf): Enable replacement also if
16371         GNULIB_STDIO_H_NONBLOCKING is 1.
16372         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16373         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16374         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16375         CALL_WITH_SIGPIPE_EMULATION.
16376         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16377         * m4/nonblocking.m4: New file.
16378         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16379         for non-blocking I/O support.
16380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16381         GNULIB_UNISTD_H_NONBLOCKING.
16382         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16383         required for non-blocking I/O support.
16384         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16385         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16386         lib/stdio-write.c, m4/asm-underscore.m4.
16387         (Depends-on): Add stdio, unistd.
16388         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16389         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16390         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16391         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16392         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16393         problem with non-blocking pipes.
16394         * doc/posix-functions/fputc.texi: Likewise.
16395         * doc/posix-functions/fputs.texi: Likewise.
16396         * doc/posix-functions/fwrite.texi: Likewise.
16397         * doc/posix-functions/printf.texi: Likewise.
16398         * doc/posix-functions/putc.texi: Likewise.
16399         * doc/posix-functions/putchar.texi: Likewise.
16400         * doc/posix-functions/puts.texi: Likewise.
16401         * doc/posix-functions/vfprintf.texi: Likewise.
16402         * doc/posix-functions/vprintf.texi: Likewise.
16403         * doc/posix-functions/write.texi: Likewise.
16404
16405 2011-04-10  Jim Meyering  <meyering@redhat.com>
16406
16407         maint.mk: prohibit doubled words
16408         Detect them also when they're separated by a newline.
16409         There are 3 ways to customize it:
16410           - disable the test on a per file basis, as usual with rules using
16411             $(VC_LIST_EXCEPT)
16412           - replace the default doubled-word-selecting regexp (affects all files)
16413           - ignore a particular file-vs-doubled-word match
16414         I nearly used that last one to ignore the "is is" match in
16415         coreutils' NEWS file, since the text was "ls -is is ..."
16416         To do that, I would have added this line to cfg.mk:
16417           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16418         but it would have ignored any "is is" match in NEWS.
16419         Low probability, but still...
16420         Instead, I changed the text, slightly:
16421           -  ls -is is now consistent with ls -lis in ignoring values returned
16422           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16423         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16424         (prohibit_doubled_word_): Define.
16425         (sc_prohibit_doubled_word): New rule.
16426         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16427
16428 2011-04-10  Jim Meyering  <meyering@redhat.com>
16429
16430         maint: fix doubled-word typo in comment
16431         * m4/gethostname.m4: s/is is/it is/
16432         * m4/getdomainname.m4: Likewise.
16433
16434 2011-04-10  Jim Meyering  <meyering@redhat.com>
16435
16436         maint: remove doubled word: s/it it/it/
16437         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
16438
16439 2011-04-10  Jim Meyering  <meyering@redhat.com>
16440
16441         maint.mk: remove useless semicolon and backslash
16442         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
16443         semicolon and backslash.
16444
16445 2011-04-10  Bruno Haible  <bruno@clisp.org>
16446
16447         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
16448         * modules/stdint-tests (Depends-on): Add wchar.
16449
16450 2011-04-10  Jim Meyering  <meyering@redhat.com>
16451
16452         maint: remove doubled words in comments, e.g., s/a a/a/
16453         * lib/strptime.c (day_of_the_week): s/the the/the/
16454         * tests/test-chown.h (test_chown): s/a a/a/
16455
16456         test-chown.h: correct a cast
16457         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
16458         when the destination is a stat.st_gid.
16459
16460 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
16461
16462         getaddrinfo: Fix test for sa_len member.
16463         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
16464         include <sys/types.h> before <sys/socket.h>.
16465
16466 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
16467
16468         maint: change "can not" to "cannot"
16469         * doc/posix-functions/iconv.texi (iconv): This one crossed line
16470         boundaries.
16471
16472 2011-04-09  Jim Meyering  <meyering@redhat.com>
16473
16474         maint: change "a a" to "a"
16475         * tests/test-lchown.h (test_lchown): s/a a/a/
16476
16477         maint.mk: prohibit \<the the\>
16478         * top/maint.mk (sc_prohibit_the_the): New rule.
16479
16480         maint: fix "the the" in comment
16481         * lib/count-one-bits.h: s/the the/the/
16482
16483         maint: change "can not" to "cannot"
16484         But do not change the occurrences in maintain.texi or in
16485         build-aux/po/Makefile.in.in, which I presume comes from gettext.
16486         * doc/gnulib-tool.texi: s/can not/cannot/
16487         * doc/posix-functions/accept.texi (accept): Likewise.
16488         * doc/posix-functions/socket.texi (socket): Likewise.
16489         * lib/mbrtowc.c: Likewise.
16490
16491         maint.mk: prohibit use of "can not"
16492         * top/maint.mk (sc_prohibit_can_not): New rule.
16493         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
16494
16495 2011-04-09  Bruno Haible  <bruno@clisp.org>
16496
16497         careadlinkat: Guard against misuse of careadlinkatcwd.
16498         * lib/careadlinkat.c: Include <stdlib.h>.
16499         (careadlinkatcwd): Check that the fd argument is as expected.
16500
16501 2011-04-09  Bruno Haible  <bruno@clisp.org>
16502
16503         careadlinkat: Use common coding style.
16504         * lib/careadlinkat.c: Move gnulib includes after system includes.
16505
16506 2011-04-09  Bruno Haible  <bruno@clisp.org>
16507
16508         careadlinkat: Clarify specification.
16509         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
16510         (careadlinkatcwd): Add comment.
16511         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
16512
16513 2011-04-09  Bruno Haible  <bruno@clisp.org>
16514
16515         areadlinkat: Avoid link error on many platforms.
16516         * modules/areadlinkat (Depends-on): Add areadlink.
16517
16518 2011-04-09  Bruno Haible  <bruno@clisp.org>
16519
16520         allocator, careadlinkat: Fix double-inclusion guard.
16521         * lib/allocator.h: Fix double-inclusion guard.
16522         * lib/careadlinkat.h: Likewise.
16523
16524 2011-04-09  Bruno Haible  <bruno@clisp.org>
16525
16526         relocatable-prog-wrapper: Update after module 'areadlink' changed.
16527         * lib/relocwrapper.c: Update dependencies hierarchy.
16528         * build-aux/install-reloc: Update list of files to be compiled.
16529         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
16530         lib/allocator.[hc].
16531
16532 2011-04-08  Eric Blake  <eblake@redhat.com>
16533
16534         strftime: silence gnulib-tool warning
16535         * modules/strftime-tests (Depends-on): Drop automatic dependency.
16536
16537 2011-04-08  Bruno Haible  <bruno@clisp.org>
16538
16539         verify: Fix syntax error with GCC 4.6 in C++ mode.
16540         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
16541         (HAVE_STATIC_ASSERT): New macro.
16542         (verify_true, verify): Use 'static_assert' if it is supported and
16543         '_Static_assert' is not supported.
16544
16545 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
16546
16547         allocator: New module.
16548         * modules/allocator, lib/allocator.c: New files.
16549         * lib/allocator.h (stdlib_allocator): New decl.
16550         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
16551         Remove.  Do not include <stdlib.h>.
16552         (careadlinkat): Use stdlib_allocator instead of rolling our own.
16553         * modules/careadlinkat (Files): Remove lib/allocator.h.
16554         (Depends-on): Add allocator.
16555
16556         stdlib: let modules use system malloc, realloc
16557         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
16558         if !_GL_USE_STDLIB_ALLOC.
16559         (malloc, realloc): Limit this change to a smaller scope.
16560
16561         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
16562         (malloc, realloc): Don't #undef; no longer needed.
16563         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16564         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16565         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16566         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16567         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16568         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16569         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
16570         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
16571
16572         careadlinkat: rename members to avoid problem
16573         * lib/allocator.h (struct allocator): Rename members from
16574         malloc/realloc to allocate/reallocate, to avoid problems if malloc
16575         and realloc are #define'd.  Reported by Eric Blake in
16576         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
16577         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
16578
16579 2011-04-08  Eric Blake  <eblake@redhat.com>
16580
16581         nonblocking: reduce dependency
16582         * tests/test-nonblocking.c: Only test sockets when in use.
16583         * modules/nonblocking-tests (Depends-on): Drop socket.
16584         (Makefile.am): Link even if sockets are not present.
16585         * modules/pipe2-tests (Makefile.am): Likewise.
16586         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
16587
16588         pipe2: fix O_NONBLOCK support on mingw
16589         * modules/pipe2 (Depends-on): Add nonblocking.
16590         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
16591         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
16592         * tests/test-nonblocking.c (main): Likewise.
16593         * modules/pipe2-tests (Makefile.am): Avoid link failure.
16594
16595         fcntl-h: fix O_ACCMODE on cygwin
16596         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
16597         * lib/fcntl.in.h (O_ACCMODE): Fix it.
16598
16599         pipe-filter: drop O_NONBLOCK workarounds
16600         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
16601         * modules/pipe-filter-ii (Depends-on): Likewise.
16602         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
16603
16604         nonblocking: provide O_NONBLOCK for mingw
16605         * modules/nonblocking (Depends-on): Add open.
16606         (configure.ac): Set new witness macro.
16607         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
16608         * modules/fcntl-h (Makefile.am): Substitute it.
16609         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
16610         nonblocking module is in use.
16611         * lib/nonblocking.c: Adjust portability test.
16612         * lib/open.c (open): Don't let native open see gnulib flag.
16613         * tests/test-fcntl-h.c (main): Enhance test.
16614         * tests/test-open.h (test_open): Likewise.
16615         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
16616
16617         careadlinkat: fix compilation error on mingw
16618         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
16619         within struct allocator.
16620
16621 2011-04-06  Eric Blake  <eblake@redhat.com>
16622
16623         binary-io: relicense under LGPLv2+
16624         * modules/binary-io (License): Relax to LGPLv2+.
16625         Requested for libvirt, and required by pipe2.
16626
16627 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
16628
16629         verify: use _Static_assert if available
16630         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
16631         (verify_true, verify): Use it if available.  This generates better
16632         diagnostics with GCC 4.6.0 and later.
16633
16634 2011-04-05  Bruno Haible  <bruno@clisp.org>
16635
16636         Remove leftover generated .h files after config.status changed.
16637
16638         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
16639         GL_GENERATE_ALLOCA_H.
16640         * modules/alloca-opt (Makefile.am): Remove alloca.h if
16641         GL_GENERATE_ALLOCA_H evaluates to false.
16642
16643         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
16644         GL_GENERATE_ARGZ_H.
16645         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
16646         evaluates to false.
16647
16648         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
16649         GL_GENERATE_BYTESWAP_H.
16650         * modules/byteswap (Makefile.am): Remove byteswap.h if
16651         GL_GENERATE_BYTESWAP_H evaluates to false.
16652
16653         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
16654         GL_GENERATE_ERRNO_H.
16655         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
16656         evaluates to false.
16657
16658         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
16659         GL_GENERATE_FLOAT_H.
16660         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
16661         evaluates to false.
16662
16663         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
16664         GL_GENERATE_FNMATCH_H.
16665         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
16666         GL_GENERATE_FNMATCH_H evaluates to false.
16667
16668         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
16669         GL_GENERATE_GLOB_H.
16670         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
16671         evaluates to false.
16672
16673         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
16674         automake conditional GL_GENERATE_ICONV_H.
16675         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
16676         evaluates to false.
16677
16678         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
16679         GL_GENERATE_NETINET_IN_H.
16680         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
16681         GL_GENERATE_NETINET_IN_H evaluates to false.
16682
16683         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
16684         conditional GL_GENERATE_PTHREAD_H.
16685         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
16686         * modules/pthread (Makefile.am): Remove pthread.h if
16687         GL_GENERATE_PTHREAD_H evaluates to false.
16688
16689         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
16690         GL_GENERATE_SCHED_H.
16691         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
16692         evaluates to false.
16693
16694         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
16695         conditional GL_GENERATE_SELINUX_CONTEXT_H.
16696         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
16697         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
16698
16699         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
16700         GL_GENERATE_STDARG_H.
16701         * modules/stdarg (Makefile.am): Remove stdarg.h if
16702         GL_GENERATE_STDARG_H evaluates to false.
16703
16704         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
16705         GL_GENERATE_STDBOOL_H.
16706         * modules/stdbool (Makefile.am): Remove stdbool.h if
16707         GL_GENERATE_STDBOOL_H evaluates to false.
16708
16709         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
16710         conditional GL_GENERATE_STDDEF_H.
16711         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
16712         * modules/stddef (Makefile.am): Remove stddef.h if
16713         GL_GENERATE_STDDEF_H evaluates to false.
16714
16715         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
16716         GL_GENERATE_STDINT_H.
16717         * modules/stdint (Makefile.am): Remove stdint.h if
16718         GL_GENERATE_STDINT_H evaluates to false.
16719
16720         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
16721         GL_GENERATE_SYSEXITS_H.
16722         * modules/sysexits (Makefile.am): Remove sysexits.h if
16723         GL_GENERATE_SYSEXITS_H evaluates to false.
16724
16725         Reported by Karl Berry and Ralf Wildenhues.
16726
16727 2011-04-05  Bruno Haible  <bruno@clisp.org>
16728
16729         Ensure to rebuild generated .h files when config.status has changed.
16730         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
16731         config.status.
16732         * modules/ctype (Makefile.am): Likewise.
16733         * modules/dirent (Makefile.am): Likewise.
16734         * modules/errno (Makefile.am): Likewise.
16735         * modules/fcntl-h (Makefile.am): Likewise.
16736         * modules/float (Makefile.am): Likewise.
16737         * modules/getopt-posix (Makefile.am): Likewise.
16738         * modules/glob (Makefile.am): Likewise.
16739         * modules/iconv-h (Makefile.am): Likewise.
16740         * modules/inttypes (Makefile.am): Likewise.
16741         * modules/langinfo (Makefile.am): Likewise.
16742         * modules/locale (Makefile.am): Likewise.
16743         * modules/math (Makefile.am): Likewise.
16744         * modules/netdb (Makefile.am): Likewise.
16745         * modules/netinet_in (Makefile.am): Likewise.
16746         * modules/poll-h (Makefile.am): Likewise.
16747         * modules/pthread (Makefile.am): Likewise.
16748         * modules/pty (Makefile.am): Likewise.
16749         * modules/sched (Makefile.am): Likewise.
16750         * modules/search (Makefile.am): Likewise.
16751         * modules/selinux-h (Makefile.am): Likewise.
16752         * modules/signal (Makefile.am): Likewise.
16753         * modules/spawn (Makefile.am): Likewise.
16754         * modules/stdarg (Makefile.am): Likewise.
16755         * modules/stdbool (Makefile.am): Likewise.
16756         * modules/stddef (Makefile.am): Likewise.
16757         * modules/stdint (Makefile.am): Likewise.
16758         * modules/stdio (Makefile.am): Likewise.
16759         * modules/stdlib (Makefile.am): Likewise.
16760         * modules/string (Makefile.am): Likewise.
16761         * modules/strings (Makefile.am): Likewise.
16762         * modules/sys_file (Makefile.am): Likewise.
16763         * modules/sys_ioctl (Makefile.am): Likewise.
16764         * modules/sys_select (Makefile.am): Likewise.
16765         * modules/sys_socket (Makefile.am): Likewise.
16766         * modules/sys_stat (Makefile.am): Likewise.
16767         * modules/sys_time (Makefile.am): Likewise.
16768         * modules/sys_times (Makefile.am): Likewise.
16769         * modules/sys_utsname (Makefile.am): Likewise.
16770         * modules/sys_wait (Makefile.am): Likewise.
16771         * modules/sysexits (Makefile.am): Likewise.
16772         * modules/termios (Makefile.am): Likewise.
16773         * modules/time (Makefile.am): Likewise.
16774         * modules/unistd (Makefile.am): Likewise.
16775         * modules/wchar (Makefile.am): Likewise.
16776         * modules/wctype-h (Makefile.am): Likewise.
16777         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
16778
16779 2011-04-05  Bruno Haible  <bruno@clisp.org>
16780
16781         pipe2: Relicense under LGPLv2+.
16782         * modules/pipe2 (License): Change to LGPLv2+.
16783         Requested by Eric Blake, for libvirt.
16784
16785 2011-04-05  Bruce Korb  <bkorb@gnu.org>
16786
16787         bootstrap: compute gnulib_extra_files after updating build_aux
16788         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
16789         change build_aux or also supply gnulib_extra_files.  Handle correctly.
16790
16791 2011-04-05  Eric Blake  <eblake@redhat.com>
16792
16793         bootstrap: preserve git whitelist item sorting
16794         * build-aux/bootstrap (sort_patterns): New function.
16795         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
16796
16797 2011-04-05  Simon Josefsson  <simon@josefsson.org>
16798
16799         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
16800         sc_space_tab check.
16801
16802 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
16803
16804         areadlink, areadlinkat: rewrite in terms of careadlinkat
16805         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
16806         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
16807         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
16808         (malloc, realloc): Remove #undefs.
16809         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
16810         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
16811         readlink, ssize_t, stdint, unistd.
16812         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
16813         areadlink, stdint.
16814
16815         careadlinkat: new module
16816         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
16817         * modules/careadlinkat: New files, written by me with
16818         a review and feedback from Ben Pfaff in
16819         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
16820
16821 2011-04-01  Bruno Haible  <bruno@clisp.org>
16822
16823         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
16824         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
16825         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
16826         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
16827         Reported by Bruce Korb <bruce.korb@gmail.com>.
16828
16829 2011-04-01  Bruno Haible  <bruno@clisp.org>
16830
16831         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
16832         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
16833         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
16834         * modules/wcpcpy (Depends-on): Add extensions.
16835         * modules/wcpncpy (Depends-on): Likewise.
16836         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
16837         systems.
16838         * doc/posix-functions/wcpncpy.texi: Likewise.
16839         * doc/posix-functions/wcwidth.texi: Likewise.
16840
16841 2011-03-31  Eric Blake  <eblake@redhat.com>
16842
16843         nonblocking: fix mingw test failures
16844         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
16845         non-blocking flag on regular file.
16846         (get_nonblocking_flag): Set errno on invalid fd.
16847         * tests/test-nonblocking.c (main): Avoid test failure on
16848         directories if fchdir is not active.
16849         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
16850
16851 2011-03-31  Bruno Haible  <bruno@clisp.org>
16852
16853         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
16854         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
16855         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
16856         Reported by Simon Josefsson <simon@josefsson.org>.
16857
16858 2011-03-31  Bruno Haible  <bruno@clisp.org>
16859         and Eric Blake  <eblake@redhat.com>
16860
16861         nonblocking: new module
16862         * modules/nonblocking: New module.
16863         * modules/nonblocking-tests: Likewise.
16864         * lib/nonblocking.h: New file.
16865         * lib/nonblocking.c: Likewise.
16866         * tests/test-nonblocking.c: New test.
16867         * lib/ioctl.c (ioctl) [mingw]: Update comment.
16868
16869 2011-03-30  Bruno Haible  <bruno@clisp.org>
16870
16871         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
16872         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
16873         instead of 'printf' format for GCC >= 4.4.
16874         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
16875         (fprintf, printf, vfprintf, vprintf): Declare with
16876         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
16877         the system's vfprintf() function.
16878         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
16879
16880 2011-03-30  Eric Blake  <eblake@redhat.com>
16881
16882         passfd: fix scoping bug
16883         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
16884         before sendmsg/recvmsg.
16885
16886         passfd: standardize coding conventions
16887         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
16888         can be learned at compile time.
16889         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
16890         ifdefs.
16891         (sendfd, recvfd): Follow gnulib code conventions.
16892
16893         passfd: fix incorrect sendmsg arguments
16894         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
16895         incorrect msg_controllen value.
16896         * modules/passfd-tests (Depends-on): Check for alarm.
16897         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
16898         Reported by Bastien ROUCARIES.
16899
16900 2011-03-30  Bruno Haible  <bruno@clisp.org>
16901
16902         c-strcasestr: Relicense under LGPLv2+.
16903         * modules/c-strcasestr (License): Change to LGPLv2+.
16904         Requested by Eric Blake, for libvirt.
16905
16906 2011-03-30  Simon Josefsson  <simon@josefsson.org>
16907
16908         * users.txt: Add libidn2.  Fix libtasn1 link.
16909
16910 2011-03-30  Jim Meyering  <meyering@redhat.com>
16911
16912         tests: readlink* ("",... fails with EINVAL on newer kernels
16913         readlink and readlinkat have typically failed with ENOENT for
16914         the invalid, empty file name,  "".  However, with the advent
16915         of linux-2.6.39, they fail with EINVAL.
16916         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
16917         when operating on the empty file name.
16918         * tests/test-readlink.h (test_readlink): Likewise.
16919
16920 2011-03-29  Bruno Haible  <bruno@clisp.org>
16921
16922         Relicense some modules under LGPLv2+, for libidn2.
16923         * modules/array-mergesort (License): Change to LGPLv2+.
16924         * modules/c-strcaseeq (License): Likewise.
16925         * modules/striconveh (License): Likewise.
16926         * modules/striconveha (License): Likewise.
16927         * modules/uniconv/base (License): Likewise.
16928         * modules/uniconv/u8-conv-from-enc (License): Likewise.
16929         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
16930         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
16931         * modules/unictype/base (License): Likewise.
16932         * modules/unictype/bidiclass-of (License): Likewise.
16933         * modules/unictype/category-M (License): Likewise.
16934         * modules/unictype/category-none (License): Likewise.
16935         * modules/unictype/category-of (License): Likewise.
16936         * modules/unictype/category-test (License): Likewise.
16937         * modules/unictype/category-test-withtable (License): Likewise.
16938         * modules/unictype/combining-class (License): Likewise.
16939         * modules/unictype/joiningtype-of (License): Likewise.
16940         * modules/unictype/scripts (License): Likewise.
16941         * modules/uninorm/base (License): Likewise.
16942         * modules/uninorm/canonical-decomposition (License): Likewise.
16943         * modules/uninorm/composition (License): Likewise.
16944         * modules/uninorm/decompose-internal (License): Likewise.
16945         * modules/uninorm/decomposition-table (License): Likewise.
16946         * modules/uninorm/nfc (License): Likewise.
16947         * modules/uninorm/nfd (License): Likewise.
16948         * modules/uninorm/u32-normalize (License): Likewise.
16949         * modules/unistr/base (License): Likewise.
16950         * modules/unistr/u32-cpy (License): Likewise.
16951         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
16952         * modules/unistr/u32-to-u8 (License): Likewise.
16953         * modules/unistr/u32-uctomb (License): Likewise.
16954         * modules/unistr/u8-check (License): Likewise.
16955         * modules/unistr/u8-mblen (License): Likewise.
16956         * modules/unistr/u8-mbtouc (License): Likewise.
16957         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
16958         * modules/unistr/u8-mbtoucr (License): Likewise.
16959         * modules/unistr/u8-prev (License): Likewise.
16960         * modules/unistr/u8-strlen (License): Likewise.
16961         * modules/unistr/u8-to-u32 (License): Likewise.
16962         * modules/unistr/u8-uctomb (License): Likewise.
16963         * modules/unitypes (License): Likewise.
16964         Requested by Simon Josefsson.
16965
16966 2011-03-29  Simon Josefsson  <simon@josefsson.org>
16967
16968         lib-symbol-visibility: Add a notice.
16969         * modules/lib-symbol-visibility (Notice): New field.
16970
16971 2011-03-29  Bruno Haible  <bruno@clisp.org>
16972
16973         getaddrinfo: Doc fix.
16974         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
16975         section "fixed in Gnulib".
16976
16977 2011-03-28  Simon Josefsson  <simon@josefsson.org>
16978
16979         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
16980         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
16981
16982 2011-03-26  Bruno Haible  <bruno@clisp.org>
16983
16984         unictype/property-byname: Reduce the number of load-time relocations.
16985         * lib/unictype/pr_byname.c: Include <stdlib.h>.
16986         (UC_PROPERTY_INDEX_*): New enumeration values.
16987         (uc_property_byname): Convert an index from the lookup table to an
16988         uc_property_t.
16989         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
16990         values.
16991
16992 2011-03-26  Bruno Haible  <bruno@clisp.org>
16993
16994         unictype/property-byname: Allow omitted word separators and aliases.
16995         * lib/unictype/pr_byname.gperf: Add property names without word
16996         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
16997         for 'space'.
16998
16999 2011-03-26  Bruno Haible  <bruno@clisp.org>
17000
17001         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17002         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17003         also hyphens to space.
17004         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17005         without spaces.
17006         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17007
17008 2011-03-26  Bruno Haible  <bruno@clisp.org>
17009
17010         unictype/joiningtype-byname: Recognize long names as well.
17011         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17012         a long name.
17013         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17014         unictype/joiningtype_byname.h.
17015         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17016         * lib/unictype/joiningtype_byname.gperf: New file.
17017         * modules/unictype/joiningtype-byname (Files): Add
17018         lib/unictype/joiningtype_byname.gperf.
17019         (Depends-on): Add gperf.
17020         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17021         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17022         long names.
17023
17024         Tests for module 'unictype/joiningtype-longname'.
17025         * modules/unictype/joiningtype-longname-tests: New file.
17026         * tests/unictype/test-joiningtype_longname.c: New file.
17027
17028         New module 'unictype/joiningtype-longname'.
17029         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17030         * lib/unictype/joiningtype_longname.c: New file.
17031         * modules/unictype/joiningtype-longname: New file.
17032         * modules/unictype/joiningtype-all (Depends-on): Add
17033         unictype/joiningtype-longname.
17034
17035 2011-03-26  Bruno Haible  <bruno@clisp.org>
17036
17037         unictype/bidiclass-byname: Recognize long names as well.
17038         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17039         name.
17040         * lib/unictype/bidi_byname.c: Include <string.h>,
17041         unictype/bidi_byname.h.
17042         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17043         * lib/unictype/bidi_byname.gperf: New file.
17044         * modules/unictype/bidiclass-byname (Files): Add
17045         lib/unictype/bidi_byname.gperf.
17046         (Depends-on): Add gperf.
17047         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17048         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17049         long names.
17050
17051         Tests for module 'unictype/bidiclass-longname'.
17052         * modules/unictype/bidiclass-longname-tests: New file.
17053         * tests/unictype/test-bidi_longname.c: New file.
17054
17055         New module 'unictype/bidiclass-longname'.
17056         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17057         * lib/unictype/bidi_longname.c: New file.
17058         * modules/unictype/bidiclass-longname: New file.
17059         * modules/unictype/bidiclass-all (Depends-on): Add
17060         unictype/bidiclass-longname.
17061
17062 2011-03-26  Bruno Haible  <bruno@clisp.org>
17063
17064         unictype/bidi*: Rename modules.
17065         * modules/unictype/bidiclass-all: Renamed from
17066         modules/unictype/bidicategory-all.
17067         * modules/unictype/bidiclass-name: Renamed from
17068         modules/unictype/bidiclass-name.
17069         (Description): Update.
17070         * modules/unictype/bidiclass-name-tests: Renamed from
17071         modules/unictype/bidicategory-name-tests.
17072         * modules/unictype/bidiclass-byname: Renamed from
17073         modules/unictype/bidicategory-byname.
17074         (Description): Update.
17075         * modules/unictype/bidiclass-byname-tests: Renamed from
17076         modules/unictype/bidicategory-byname-tests.
17077         * modules/unictype/bidiclass-of: Renamed from
17078         modules/unictype/bidicategory-of.
17079         (Description): Update.
17080         * modules/unictype/bidiclass-of-tests: Renamed from
17081         modules/unictype/bidicategory-of-tests.
17082         * modules/unictype/bidiclass-test: Renamed from
17083         modules/unictype/bidicategory-test.
17084         (Description): Update.
17085         * modules/unictype/bidiclass-test-tests: Renamed from
17086         modules/unictype/bidicategory-test-tests.
17087         * modules/unictype/bidicategory-all: New file, a simple redirection.
17088         * modules/unictype/bidicategory-name: Likewise.
17089         * modules/unictype/bidicategory-byname: Likewise.
17090         * modules/unictype/bidicategory-of: Likewise.
17091         * modules/unictype/bidicategory-test: Likewise.
17092         * modules/unictype/property-bidi-* (Dependencies): Update.
17093         * lib/unictype/bidi_*.c: Update comment.
17094
17095 2011-03-26  Bruno Haible  <bruno@clisp.org>
17096
17097         unictype/bidi*: Rename functions, part 2.
17098         * modules/unictype/bidicategory-name (configure.ac): Update required
17099         libunistring version.
17100         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17101
17102 2011-03-25  Bruno Haible  <bruno@clisp.org>
17103
17104         New module 'unictype/combining-class-all'.
17105         * modules/unictype/combining-class-all: New file.
17106
17107         Tests for module 'unictype/combining-class-byname'.
17108         * modules/unictype/combining-class-byname-tests: New file.
17109         * tests/unictype/test-combiningclass_byname.c: New file.
17110
17111         New module 'unictype/combining-class-byname'.
17112         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17113         * lib/unictype/combiningclass_byname.c: New file.
17114         * lib/unictype/combiningclass_byname.gperf: New file.
17115         * modules/unictype/combining-class-byname: New file.
17116
17117         Tests for module 'unictype/combining-class-longname'.
17118         * modules/unictype/combining-class-longname-tests: New file.
17119         * tests/unictype/test-combiningclass_longname.c: New file.
17120
17121         New module 'unictype/combining-class-longname'.
17122         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17123         * lib/unictype/combiningclass_longname.c: New file.
17124         * modules/unictype/combining-class-longname: New file.
17125
17126         Tests for module 'unictype/combining-class-name'.
17127         * modules/unictype/combining-class-name-tests: New file.
17128         * tests/unictype/test-combiningclass_name.c: New file.
17129
17130         New module 'unictype/combining-class-name'.
17131         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17132         * lib/unictype/combiningclass_name.c: New file.
17133         * modules/unictype/combining-class-name: New file.
17134
17135 2011-03-25  Bruno Haible  <bruno@clisp.org>
17136
17137         unictype/combining-class: Rename source files.
17138         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17139         of unictype/combining.h.
17140         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17141         Update.
17142         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17143         * modules/unictype/combining-class (Description): Fix.
17144         (Files, Makefile.am): Update.
17145         * tests/unictype/test-combiningclass.c: Renamed from
17146         tests/unictype/test-combining.c.
17147         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17148
17149 2011-03-25  Bruno Haible  <bruno@clisp.org>
17150
17151         unictype: Update list of canonical combining classes.
17152         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17153
17154 2011-03-25  Bruno Haible  <bruno@clisp.org>
17155
17156         unictype/category-byname: Recognize long names as well.
17157         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17158         a long name.
17159         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17160         unictype/categ_byname.h.
17161         (UC_CATEGORY_INDEX_*): New enumeration values.
17162         (uc_general_category_byname): Use uc_general_category_lookup and
17163         convert from index to value.
17164         * lib/unictype/categ_byname.gperf: New file.
17165         * modules/unictype/category-byname (Files): Add
17166         lib/unictype/categ_byname.gperf.
17167         (Depends-on): Add gperf.
17168         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17169         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17170         long names.
17171
17172         Tests for module 'unictype/category-longname'.
17173         * modules/unictype/category-longname-tests: New file.
17174         * tests/unictype/test-categ_longname.c: New file.
17175
17176         New module 'unictype/category-longname'.
17177         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17178         * lib/unictype/categ_longname.c: New file.
17179         * modules/unictype/category-longname: New file.
17180         * modules/unictype/category-all (Depends-on): Add it.
17181
17182 2011-03-25  Bruno Haible  <bruno@clisp.org>
17183
17184         Tests for module 'unictype/category-LC'.
17185         * modules/unictype/category-LC-tests: New file.
17186         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17187
17188         New module 'unictype/category-LC'.
17189         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17190         (UC_CATEGORY_LC): New declaration.
17191         (UC_CASED_LETTER): New macro.
17192         * lib/gen-uni-tables.c (is_category_LC): New function.
17193         (output_categories): Also handle category LC.
17194         (UC_CATEGORY_MASK_LC): New enumeration value.
17195         (general_category_byname): Also handle category LC.
17196         * lib/unictype/categ_LC.c: New file.
17197         * lib/unictype/categ_LC.h: New file, automatically generated.
17198         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17199         category LC.
17200         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17201         * modules/unictype/category-LC: New file.
17202         * modules/unictype/category-byname (Depends-on): Add
17203         unictype/category-LC.
17204         * modules/unictype/category-all (Depends-on): Likewise.
17205
17206 2011-03-25  Eric Blake  <eblake@redhat.com>
17207
17208         xmalloc: revert yesterday's regression
17209         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17210         realloc's underlying behavior (allowing allocation of zero-size
17211         objects, especially if malloc-gnu is also in use).
17212
17213 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17214
17215         maint.mk: add missing version to VC-tag
17216         * top/maint.mk: git tag was missing actual tag name; add it.
17217
17218         valgrind: do leak checking, and exit with code 1 on error (not 0)
17219         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17220         to VALGRIND.
17221
17222 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17223
17224         posix-modules: say what it does.
17225         * posix-modules: Add a line to the --help output saying what it does.
17226
17227 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17228
17229         xmalloc: Do not leak if underlying realloc is C99 compatible.
17230         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17231         This avoids a leak on C99-based systems.  See
17232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17233
17234 2011-03-24  Eric Blake  <eblake@redhat.com>
17235
17236         realloc: document portability problem
17237         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17238         passing 0 size to realloc.
17239
17240 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17241
17242         doc: update users.txt
17243         * users.txt: Add cvsps, tmpwatch
17244
17245 2011-03-23  Matt Rice  <ratmice@gmail.com>
17246
17247         doc: update users.txt
17248         * users.txt: Add gdb.
17249
17250 2011-03-23  Jim Meyering  <meyering@redhat.com>
17251
17252         doc: update users.txt
17253         Looking through matches up to the following URL (there are still
17254         several more pages), I found several projects that use gnulib:
17255         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17256         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17257         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17258
17259 2011-03-22  Bruno Haible  <bruno@clisp.org>
17260
17261         unictype/bidi*: Rename functions.
17262         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17263         uc_bidi_class, uc_is_bidi_class): New declarations.
17264         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17265         uc_bidi_category_byname.
17266         (uc_bidi_category_byname): New function.
17267         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17268         u_bidi_category_name.
17269         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17270         (uc_bidi_category_name): New function.
17271         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17272         uc_bidi_category.
17273         (uc_bidi_category): New function.
17274         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17275         uc_is_bidi_category. Invoke uc_bidi_class.
17276         (uc_is_bidi_category): New function.
17277         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17278         instead of uc_bidi_category_byname.
17279         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17280         instead of uc_bidi_category_name.
17281         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17282         uc_bidi_category.
17283         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17284         instead of uc_is_bidi_category.
17285
17286 2011-03-21  Bruno Haible  <bruno@clisp.org>
17287
17288         New module 'unictype/joininggroup-all'.
17289         * modules/unictype/joininggroup-all: New file.
17290
17291         Tests for module 'unictype/joininggroup-of'.
17292         * modules/unictype/joininggroup-of-tests: New file.
17293         * tests/unictype/test-joininggroup_of.c: New file.
17294         * tests/unictype/test-joininggroup_of.h: New file, automatically
17295         generated by gen-uni-tables.
17296
17297         New module 'unictype/joininggroup-of'.
17298         * modules/unictype/joininggroup-of: New file.
17299         * lib/unictype/joininggroup_of.c: New file.
17300         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17301         gen-uni-tables.
17302
17303         Tests for module 'unictype/joininggroup-byname'.
17304         * modules/unictype/joininggroup-byname-tests: New file.
17305         * tests/unictype/test-joininggroup_byname.c: New file.
17306
17307         New module 'unictype/joininggroup-byname'.
17308         * modules/unictype/joininggroup-byname: New file.
17309         * lib/unictype/joininggroup_byname.c: New file.
17310         * lib/unictype/joininggroup_byname.gperf: New file.
17311
17312         Tests for module 'unictype/joininggroup-name'.
17313         * modules/unictype/joininggroup-name-tests: New file.
17314         * tests/unictype/test-joininggroup_name.c: New file.
17315
17316         New module 'unictype/joininggroup-name'.
17317         * modules/unictype/joininggroup-name: New file.
17318         * lib/unictype/joininggroup_name.c: New file.
17319         * lib/unictype/joininggroup_name.h: New file.
17320
17321         New module 'unictype/joiningtype-all'.
17322         * modules/unictype/joiningtype-all: New file.
17323
17324         Tests for module 'unictype/joiningtype-of'.
17325         * modules/unictype/joiningtype-of-tests: New file.
17326         * tests/unictype/test-joiningtype_of.c: New file.
17327         * tests/unictype/test-joiningtype_of.h: New file, automatically
17328         generated by gen-uni-tables.
17329
17330         New module 'unictype/joiningtype-of'.
17331         * modules/unictype/joiningtype-of: New file.
17332         * lib/unictype/joiningtype_of.c: New file.
17333         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17334         gen-uni-tables.
17335
17336         Tests for module 'unictype/joiningtype-byname'.
17337         * modules/unictype/joiningtype-byname-tests: New file.
17338         * tests/unictype/test-joiningtype_byname.c: New file.
17339
17340         New module 'unictype/joiningtype-byname'.
17341         * modules/unictype/joiningtype-byname: New file.
17342         * lib/unictype/joiningtype_byname.c: New file.
17343
17344         Tests for module 'unictype/joiningtype-name'.
17345         * modules/unictype/joiningtype-name-tests: New file.
17346         * tests/unictype/test-joiningtype_name.c: New file.
17347
17348         New module 'unictype/joiningtype-name'.
17349         * modules/unictype/joiningtype-name: New file.
17350         * lib/unictype/joiningtype_name.c: New file.
17351
17352         unictype: Add support for Arabic shaping properties.
17353         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17354         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17355         declarations.
17356         (UC_JOINING_GROUP_*): New enumeration values.
17357         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17358         declarations.
17359         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17360         (unicode_joining_type): New variable.
17361         (UC_JOINING_GROUP_*): New enumeration values.
17362         (unicode_joining_group): New variable.
17363         (fill_arabicshaping, joining_type_as_c_identifier,
17364         output_joining_type_test, output_joining_type,
17365         joining_group_as_c_identifier, output_joining_group_test,
17366         output_joining_group): New functions.
17367         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17368         fill_arabicshaping and output_joining_type_test, output_joining_type,
17369         output_joining_group_test, output_joining_group.
17370         Reported by Simon Josefsson.
17371
17372 2011-03-21  Jim Meyering  <meyering@redhat.com>
17373
17374         strftime: fix a bug in yesterday's change
17375         * lib/strftime.c (add): Accommodate width's initial value of -1.
17376         Otherwise, nstrftime would copy uninitialized data into
17377         the result buffer.
17378
17379 2011-03-21  Jim Meyering  <meyering@redhat.com>
17380
17381         tests: add strftime-tests module
17382         * tests/test-strftime.c: New file.
17383         * modules/strftime-tests: New module.
17384
17385 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17386
17387         strftime: don't assume a byte count fits in 'int'
17388         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17389         found this problem by static analysis, using gcc -Wstrict-overflow
17390         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17391         on an integer overflow having undefined behavior, but it turns out
17392         that the argument is a size, which might not fit in 'int' anyway,
17393
17394 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17395
17396         stdio: don't require ignore_value around fwrite
17397
17398         This patch works around libc bug 11959
17399         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17400         Without this patch, applications must often write
17401         ignore_value (fwrite (...)) even though the ignore_value is
17402         not helpful here.  It's common to write many objects, using
17403         fwrite/printf/etc., and then use ferror to detect output error.
17404
17405         I considered making this patch optional, but decided against it,
17406         because libc is obviously being inconsistent here: there is no
17407         reason libc should insist that user code must inspect fwrite
17408         return's value without also insisting that it inspect printf's,
17409         putchar's, etc.  If user code wants to have a strict style where
17410         all these functions' values are checked (so that ferror need not
17411         be checked), we could add support for that style in a new gnulib
17412         module, but in the meantime it's better to be consistent and to
17413         support common usage.
17414
17415         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17416         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17417         that we are compiling in checking mode, and if not C++, and
17418         if not already wrapping fwrite for some other reason.
17419         (fwrite): #define to rpl_fwrite if the latter is defined.
17420
17421 2011-03-20  Bruno Haible  <bruno@clisp.org>
17422
17423         verror: Fix compilation error introduced on 2011-02-13.
17424         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17425         instead of __attribute__.
17426         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17427
17428 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17429             Bruno Haible  <bruno@clisp.org>
17430
17431         socklen: do not depend on sys_socket
17432         While trying to modify Emacs to use gnulib's socklen module,
17433         I discovered a circular dependency: socklen depends on sys_socket
17434         and vice versa.  Emacs can use socklen, but it does not need
17435         sys_socket because it has its own substitute for sys/socket.h.
17436         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
17437         gl_TYPE_SOCKLEN_T.
17438         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
17439         gl_PREREQ_SYS_H_SOCKET.
17440         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
17441         gl_PREREQ_SYS_H_SOCKET.
17442         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
17443         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
17444         * modules/socklen (Depends-on): Do not depend on sys_socket.
17445         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
17446
17447 2011-03-20  Jim Meyering  <meyering@redhat.com>
17448
17449         maint.mk: sort file names *after* new transformation
17450         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
17451         prefix would have led to an unwarranted failure in GNU parted.
17452         Sort after that transformation.
17453
17454 2011-03-19  Jim Meyering  <meyering@redhat.com>
17455
17456         maint.mk: fix po-file syntax-check rule
17457         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
17458         Patch by Bruno Haible.
17459
17460 2011-03-19  Bruno Haible  <bruno@clisp.org>
17461
17462         socklen: Update comment.
17463         * m4/socklen.m4: Update comment about platforms.
17464
17465 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17466             Bruno Haible  <bruno@clisp.org>
17467
17468         inet_ntop, inet_pton: Simplify.
17469         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
17470         documented to provide socklen_t and we already depend on sys_socket.
17471         * modules/inet_pton (Depends-on): Likewise.
17472         * lib/arpa_inet.in.h: Adjust comment.
17473
17474 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17475             Bruno Haible  <bruno@clisp.org>
17476
17477         netdb: Simplify.
17478         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
17479         documented to provide socklen_t and we already depend on sys_socket.
17480         * lib/netdb.in.h: Adjust comment.
17481
17482 2011-03-19  Bruno Haible  <bruno@clisp.org>
17483
17484         sys_socket, netdb: Document problem with socklen_t.
17485         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
17486         platforms.
17487         * doc/posix-headers/netdb.texi: Likewise.
17488
17489 2011-03-18  Eric Blake  <eblake@redhat.com>
17490
17491         maint.mk: let po check work in VPATH build
17492         * top/maint.mk (po_file): Allow cfg.mk override.
17493         (sc_po_check): Allow VPATH use.
17494         Reported by Jiri Denemark.
17495
17496 2011-03-16  Jim Meyering  <meyering@redhat.com>
17497
17498         maint.mk: allow fine-grained syntax-check exclusion via Make variables
17499         Before, you would have had to create one .x-sc_ file per rule in order
17500         to exempt offending files.  Now, you may instead use a Make variable --
17501         usually defined in cfg.mk -- whose name identifies the affected rule.
17502         * top/maint.mk (_sc_excl): Define.
17503         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
17504         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
17505
17506 2011-03-13  Bruno Haible  <bruno@clisp.org>
17507
17508         ignore-value tests: Avoid warnings.
17509         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
17510         empty for gcc < 3.4.
17511
17512 2011-03-13  Bruno Haible  <bruno@clisp.org>
17513
17514         passfd: Fix link error on Solaris.
17515         * modules/passfd (Description): Correct.
17516         (Depends-on): Add socketlib.
17517         (Link): New section.
17518         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
17519
17520 2011-03-13  Bruno Haible  <bruno@clisp.org>
17521
17522         passfd: Fix link error on AIX 5.2.
17523         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
17524
17525 2011-03-13  Bruno Haible  <bruno@clisp.org>
17526
17527         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
17528         * lib/sys_socket.in.h: Include <stddef.h>.
17529         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
17530         CMSG_FIRSTHDR. Remove unused variable.
17531
17532 2011-03-13  Bruno Haible  <bruno@clisp.org>
17533
17534         passfd: Fix compilation error on OpenBSD.
17535         * lib/passfd.c: Include <sys/uio.h>.
17536
17537 2011-03-13  Bruno Haible  <bruno@clisp.org>
17538
17539         passfd test: Fix warnings.
17540         * tests/test-passfd.c: Include <sys/wait.h>.
17541         (main): Fix typo.
17542
17543 2011-03-13  Bruno Haible  <bruno@clisp.org>
17544
17545         passfd module, part 4, tweaks.
17546         * tests/test-passfd.c: Reorder includes.
17547         (main): Fix perror and printf calls.
17548
17549 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17550
17551         passfd module, part 4.
17552         * modules/passfd-tests: New file.
17553         * tests/test-passfd.c: New file.
17554
17555 2011-03-13  Jim Meyering  <meyering@redhat.com>
17556
17557         Makefile: rely on GNU make; derive syntax-check rule names
17558         Rather than requiring that each sc_ rule be listed as a dependent
17559         of "check", use features of GNU make to derive the list.
17560         * Makefile (syntax-check-rules): Define.
17561         (check): Depend on the new variable, not the hard-coded list.
17562
17563 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
17564             Bruno Haible  <bruno@clisp.org>
17565
17566         passfd module, part 3.
17567         * lib/passfd.h (recvfd): Add a flags argument.
17568         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
17569         (recvfd): Add a flags argument.
17570         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
17571         exists.
17572         * modules/passfd (Depends-on): Add cloexec.
17573         Suggested by Eric Blake.
17574
17575 2011-03-13  Bruno Haible  <bruno@clisp.org>
17576
17577         passfd module, part 2, tweaks.
17578         * modules/passfd (Files): Reorder.
17579         (Depends-on): Remove errno.
17580         (Include): Remove <sys/socket.h>, <sys/un.h>.
17581         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
17582         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
17583         specification header. Include <sys/socket.h> always. Don't include
17584         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
17585         (sendfd): Clarify that it sets errno when it fails.
17586         (recvfd): Fix specification.
17587
17588 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17589
17590         passfd module, part 2.
17591         * modules/passfd: New file.
17592         * lib/passfd.h: New file.
17593         * lib/passfd.c: New file.
17594
17595 2011-03-12  Bruno Haible  <bruno@clisp.org>
17596
17597         wcswidth, mbswidth: Avoid integer overflow.
17598         * lib/wcswidth.c: Include <limits.h>.
17599         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
17600         * lib/mbswidth.c: Include <limits.h>.
17601         (mbsnwidth): Avoid 'int' overflow.
17602         Reported by Jim Meyering.
17603
17604 2011-03-12  Bruno Haible  <bruno@clisp.org>
17605
17606         futimens, utimensat: Avoid endless recursion on Solaris 10.
17607         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
17608         Solaris.
17609         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
17610         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
17611
17612 2011-03-11  Jim Meyering  <meyering@redhat.com>
17613
17614         maint.mk: relax a regexp to accommodate other formatting styles
17615         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
17616         between "ngettext" and the following "(".
17617
17618 2011-03-11  Pádraig Brady <P@draigBrady.com>
17619
17620         maint.mk: suppress a false positive warning
17621         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
17622         diagnostics are marked with ngettext.
17623
17624 2011-03-10  Eric Blake  <eblake@redhat.com>
17625
17626         wchar: add explicit dependencies, for Tru64
17627         * modules/mbmemcasecoll (Depends-on): Add wchar.
17628         * modules/mbtowc (Depends-on): Likewise.
17629         * modules/vasnprintf (Depends-on): Likewise.
17630         * modules/unistdio/u-printf-args (Depends-on): Likewise.
17631         * modules/wctomb (Depends-on): Likewise.
17632         Reported by Peter O'Gorman.
17633
17634 2011-03-08  Bruno Haible  <bruno@clisp.org>
17635
17636         passfd module, part 1, tweaks.
17637         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
17638         Improve indentation. Improve AC_MSG_CHECKING messages.
17639         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
17640         gl_SOCKET_FAMILIES.
17641
17642 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
17643
17644         passfd module, part 1.
17645         * m4/afunix.m4: New file.
17646         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
17647         sockets.
17648
17649 2011-03-08  Bruno Haible  <bruno@clisp.org>
17650
17651         regex-quote: New API.
17652         * lib/regex-quote.h: Include <stdbool.h>.
17653         (struct regex_quote_spec): New type.
17654         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17655         New declarations.
17656         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17657         'const struct regex_quote_spec *' argument.
17658         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
17659         (pcre_special): New constant.
17660         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
17661         New functions.
17662         (regex_quote_length, regex_quote_copy, regex_quote): Take a
17663         'const struct regex_quote_spec *' argument.
17664         * modules/regex-quote (Depends-on): Add stdbool.
17665         * tests/test-regex-quote.c (check): Update for new API. Add test for
17666         anchored results.
17667         * NEWS: Mention the API change.
17668         Reported by Reuben Thomas and Eric Blake.
17669
17670 2011-03-06  Bruno Haible  <bruno@clisp.org>
17671
17672         regex-quote: Fix creation of POSIX extended regular expressions.
17673         * lib/regex-quote.c (ere_special): Add grouping and alternation
17674         operators.
17675
17676 2011-03-05  Bruno Haible  <bruno@clisp.org>
17677
17678         doc: Improve doc regarding autopoint vs. gnulib.
17679         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
17680         disable autopoint while running autoreconf.
17681         Suggested by Ralf Wildenhues.
17682
17683 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17684
17685         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
17686         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
17687
17688 2011-03-03  Bruce Korb  <bkorb@gnu.org>
17689
17690         parse-duration: remove xalloc.h dependency
17691         * lib/parse-duration.c (parse_period): handle NULL return from
17692         strdup instead of calling xstrdup().
17693         * modules/parse-duration: remove "xalloc" dependency
17694
17695 2011-03-03  Matthew Booth  <mbooth@redhat.com>
17696
17697         bootstrap: honor m4_base when running aclocal
17698         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
17699
17700 2011-03-02  Jim Meyering  <meyering@redhat.com>
17701
17702         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
17703         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
17704         on request from Matt Booth.
17705
17706 2011-03-01  Eric Blake  <eblake@redhat.com>
17707
17708         test-link: work on Hurd
17709         * tests/test-link.h (test_link): Hurd rejects linking directories
17710         with EISDIR instead of the POSIX-mandated EPERM.
17711
17712 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
17713
17714         stdio: simplify by moving files to printf-posix, sigpipe
17715         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
17716         since this symbol is needed only if printf is replaced.
17717         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
17718         Require gl_ASM_SYMBOL_PREFIX.
17719         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
17720         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
17721         (Depends-on): Add 'raise'.
17722         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
17723         * modules/stdio (Files): Remove lib/stdio-write.c,
17724         m4/asm-underscore.m4.
17725         (Depends-on): Remove 'raise'.
17726
17727         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
17728         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
17729         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
17730         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
17731
17732 2011-02-28  Bruno Haible  <bruno@clisp.org>
17733
17734         localcharset: Assume ANSI C behaviour of free().
17735         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
17736         calling free().
17737         Suggested by Simon Josefsson <simon@josefsson.org>.
17738
17739 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
17740             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
17741             Bruno Haible  <bruno@clisp.org>  (tiny change)
17742
17743         On Cygwin, use /proc file system instead of win32 API.
17744         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
17745         Win32 file names.
17746         (DllMain): Simplify by removing Cygwin specific code.
17747         (find_shared_library_fullname): Use Linux specific implementation also
17748         for Cygwin.
17749         (get_shared_library_fullname): Update accordingly.
17750         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
17751         Win32 file names.
17752         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
17753         Cygwin specific code.
17754
17755 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
17756             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
17757
17758         Fix OpenMP flag detection for various Fortran compilers.
17759         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
17760         OpenMP-conditional compilation construct, to force compile
17761         failure with missing OpenMP flag.
17762         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
17763
17764 2011-02-25  Eric Blake  <eblake@redhat.com>
17765
17766         strstr: expand test coverage
17767         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
17768         compilation.
17769         * tests/test-memmem.c (main): Duplicate tests.
17770         * tests/test-strcasestr.c (main): Likewise.
17771         * tests/test-c-strcasestr.c (main): Likewise.
17772
17773 2011-02-25  Jim Meyering  <meyering@redhat.com>
17774
17775         maint.mk: detect missing-NL-at-EOF, too
17776         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
17777         it also detects when a file lacks a newline at EOF.
17778         (require_exactly_one_NL_at_EOF_): Renamed from
17779         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
17780         since people may well have .x-sc_... file names tied to the
17781         existing name.  Suggested by Eric Blake.
17782
17783 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
17784
17785         dirname: move m4/dos.m4 functionality into lib/dosname.h
17786
17787         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
17788         extracts symbols from it, puts them into config.h; but it's much
17789         easier to use the symbols directly.  filename.h already does this,
17790         but it disagrees with dos.m4 in some respects.  This patch
17791         introduces a different include file dosname.h that packages up
17792         dos.m4, and then later we can work on merging filename.h and
17793         dosname.h.  Applications that need only the easy-to-configure
17794         symbols should consider including dosname.h rather than dirname.h.
17795         * NEWS: Mention incompatible changes.
17796         * m4/dos.m4: Remove.
17797         * lib/dosname.h, modules/dosname: New files.
17798         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
17799         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
17800         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
17801         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
17802         Include dosname.h, not dirname.h.
17803         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
17804         Include dosname.h, for definitions of symbols like ISSLASH
17805         that used to be in config.h.
17806         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
17807         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
17808         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17809         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17810         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
17811         * modules/rmdir (Files): Likewise.
17812         * modules/stat (Files): Likewise.
17813         * modules/unlink (Files): Likewise.
17814         * modules/dirname-lgpl (Depends-on): Add dosname.
17815         * modules/lstat (Depends-on): Likewise.
17816         * modules/openat (Depends-on): Likewise.
17817         * modules/rmdir (Depends-on): Likewise.
17818         * modules/savewd (Depends-on): Likewise.
17819         * modules/stat (Depends-on): Likewise.
17820         * modules/unlink (Depends-on): Likewise.
17821         * modules/openat (Depends-on): Remove dirname-lgpl.
17822         * modules/savewd (Depends-on): Likewise.
17823         * tests/test-dirname.c: Do not use removed symbols like
17824         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
17825         the remaining symbols, e.g., ISSLASH ('\\').
17826
17827 2011-02-25  Eric Blake  <eblake@redhat.com>
17828
17829         strstr: revert patches that introduced bug and pessimization
17830         * lib/str-two-way.h: Add another reference.
17831         (two_way_short_needle, two_way_long_needle): Revert changes from
17832         2011-02-24; they pessimize search speed.
17833         (critical_factorization): Partially revert changes from
17834         2010-06-22; they violate the requirement that the left half of the
17835         needle be smaller than the period of the needle.
17836
17837 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
17838
17839         filenamecat: remove unnecessary dependency on dirname-lgpl
17840         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
17841         is no direct dependency, just an indirect one via filenamecat-lgpl.
17842
17843         remove: remove unnecessary use of m4/dos.m4
17844         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
17845         * modules/remove (FILES): Remove m4/dos.m4.
17846
17847         * lib/openat-proc.c: Don't include dirname.h; not needed.
17848
17849         backupfile: remove unnecessary use of m4/dos.m4
17850         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
17851         of its symbols are used by the backupfile code.  backupfile.c does
17852         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
17853         for the rare case of programs that want all their backup file
17854         names to live within 8+3 limits, and dos.m4 doesn't address that.
17855         * modules/backupfile (Files): Remove m4/dos.m4.
17856
17857 2011-02-24  Jim Meyering  <meyering@redhat.com>
17858
17859         strstr: fix a bug whereby strstr would mistakenly return NULL
17860         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
17861         in period calculation.
17862         (two_way_long_needle): Likewise.
17863         The original problem was reported by Mike Stump in
17864         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
17865         Ralf Wildenhues provided the short needle and haystack.
17866         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
17867         Add a more involved test to trigger the bug in two_way_long_needle.
17868
17869 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17870
17871         gnulib-tool: remove use of bold display in help screen
17872         * gnulib-tool (func_usage): Do not use bold display anymore in the
17873         help screen.  That was just meant to be a temporary emphasis for a
17874         backward-incompatible change.
17875
17876 2011-02-23  Bruno Haible  <bruno@clisp.org>
17877
17878         Fix misindentation of preprocessor directives.
17879         * lib/argp-namefrob.h: Reindent preprocessor directives.
17880         * lib/getopt_int.h (struct _getopt_data): Likewise.
17881         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
17882         * lib/vasnprintf.c (decode_long_double): Likewise.
17883         * tests/test-argmatch.c: Insert blank lines, for clarity.
17884         * tests/test-exclude.c: Likewise.
17885
17886 2011-02-22  Bruno Haible  <bruno@clisp.org>
17887
17888         ioctl: Fix for MacOS X in 64-bit mode.
17889         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
17890         value.
17891         Suggested by Eric Blake.
17892         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
17893
17894 2011-02-22  Jim Meyering  <meyering@redhat.com>
17895
17896         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
17897         * Makefile (sc_cpp_indent_check): Don't limit the check to files
17898         in lib/.
17899
17900 2011-02-22  Eric Blake  <eblake@redhat.com>
17901
17902         maint: avoid any CDPATH issue
17903         * Makefile (sc_cpp_indent_check): Anchor cd argument.
17904
17905         maint: adjust cpp indentation for my modules, as well
17906         * Makefile (sc_cpp_indent_check): Add my name.
17907         * lib/fbufmode.c: Filter through cppi.
17908         * lib/fpurge.c: Likewise.
17909         * lib/freadable.c: Likewise.
17910         * lib/freading.c: Likewise.
17911         * lib/fwritable.c: Likewise.
17912         * lib/fwriting.c: Likewise.
17913         * lib/sigaction.c: Likewise.
17914
17915 2011-02-22  Jim Meyering  <meyering@redhat.com>
17916
17917         maint: adjust cpp indentation to reflect nesting depth
17918         I.e., in a block of code that begins with an unnested "#if",
17919         put one space between the "#" in column 1 and following token.
17920         For example,
17921         -#include <sys/vfs.h>
17922         +# include <sys/vfs.h>
17923         Do this only in .c files that are part of a module I maintain.
17924         * lib/linkat.c: Filter through cppi.
17925         * lib/nanosleep.c: Likewise.
17926         * lib/openat.c: Likewise.
17927         * lib/openat-die.c: Likewise.
17928         * lib/dup3.c: Likewise.
17929         * lib/fchownat.c: Likewise.
17930         * lib/flock.c: Likewise.
17931         * lib/fsync.c: Likewise.
17932         * lib/fts.c: Likewise.
17933         * lib/getpass.c: Likewise.
17934         * lib/gettimeofday.c: Likewise.
17935         * lib/userspec.c: Likewise.
17936         * Makefile (sc_cpp_indent_check): New rule, to check this.
17937
17938 2011-02-22  Bruno Haible  <bruno@clisp.org>
17939
17940         New module 'wctomb'.
17941         * lib/stdlib.in.h (wctomb): New declaration.
17942         * lib/wctomb.c: New file.
17943         * lib/wctomb-impl.h: New file.
17944         * m4/wctomb.m4: New file.
17945         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
17946         REPLACE_WCTOMB.
17947         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
17948         REPLACE_WCTOMB.
17949         * modules/wctomb: New file.
17950         * tests/test-stdlib-c++.cc: Test signature of wctomb.
17951         * doc/posix-functions/wctomb.texi: Mention the new module.
17952         * modules/wctob (Depends-on): Add wctomb.
17953
17954 2011-02-22  Bruno Haible  <bruno@clisp.org>
17955
17956         New module 'mbtowc'.
17957         * lib/stdlib.in.h (mbtowc): New declaration.
17958         * lib/mbtowc.c: New file.
17959         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
17960         * m4/mbtowc.m4: New file.
17961         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
17962         REPLACE_MBTOWC.
17963         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
17964         REPLACE_MBTOWC.
17965         * modules/mbtowc: New file.
17966         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
17967         * doc/posix-functions/mbtowc.texi: Mention the new module.
17968         * modules/btowc (Depends-on): Add mbtowc.
17969
17970 2011-02-22  Bruno Haible  <bruno@clisp.org>
17971
17972         wcrtomb: Add more tests for native Windows platforms.
17973         * tests/test-wcrtomb-w32-1.sh: New file.
17974         * tests/test-wcrtomb-w32-2.sh: New file.
17975         * tests/test-wcrtomb-w32-3.sh: New file.
17976         * tests/test-wcrtomb-w32-4.sh: New file.
17977         * tests/test-wcrtomb-w32-5.sh: New file.
17978         * tests/test-wcrtomb-w32.c: New file.
17979         * modules/wcrtomb-tests (Files): Add them.
17980         (Makefile.am): Arrange to run these tests.
17981         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
17982         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
17983
17984 2011-02-20  Bruno Haible  <bruno@clisp.org>
17985
17986         wcrtomb: Enhance test.
17987         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
17988
17989 2011-02-20  Bruno Haible  <bruno@clisp.org>
17990
17991         mbrtowc: Tiny optimization.
17992         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
17993
17994 2011-02-20  Jim Meyering  <meyering@redhat.com>
17995
17996         test-exclude.c: remove unmatched #endif
17997         * tests/test-exclude.c: Remove stray #endif, left over from
17998         the change of a week ago.
17999
18000 2011-02-19  Jim Meyering  <meyering@redhat.com>
18001
18002         git-version-gen: skip "-dirty" check when appropriate
18003         * build-aux/git-version-gen: Don't run any git commands when the
18004         version string comes from .tarball-version.  Prior to this, we
18005         would run git update-index --refresh even from a just-unpacked
18006         tarball directory, and that could affect a .git/ directory in a
18007         parent of the build directory.  Reported by Mike Frysinger.
18008
18009 2011-02-19  Bruno Haible  <bruno@clisp.org>
18010
18011         unictype/property-byname: Reduce the size of the 'data' segment.
18012         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18013
18014 2011-02-19  Bruno Haible  <bruno@clisp.org>
18015
18016         unictype/scripts: Reduce the size of the 'data' segment.
18017         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18018         '%pic'.
18019         * lib/unictype/scripts_byname.gperf: Regenerated.
18020
18021 2011-02-19  Bruno Haible  <bruno@clisp.org>
18022
18023         stdint: Update documentation.
18024         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18025
18026 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18027
18028         stdint: omit redundant check for wchar.h
18029         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18030         always tests whether wchar.h exists, so remove the now-redundant test.
18031
18032 2011-02-18  Bruno Haible  <bruno@clisp.org>
18033
18034         stdint: Cut dependency to module 'wchar'.
18035         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18036         include the necessary prerequisites.
18037         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18038         * modules/stdint (Depends-on): Remove wchar.
18039         (Makefile.am): Substitute HAVE_WCHAR_H.
18040         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18041
18042 2011-02-18  Eric Blake  <eblake@redhat.com>
18043
18044         longlong: skip, rather than fail, on cross-compilation
18045         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18046         when cross-compiling; regression from 2011-02-16.
18047
18048 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18049
18050         * NEWS: Mention 2011-02-08 change to stdlib.
18051
18052 2011-02-17  Bruno Haible  <bruno@clisp.org>
18053
18054         getloadavg: Add comments about platforms.
18055         * m4/getloadavg.m4: Add comment.
18056         * lib/getloadavg.c: Likewise.
18057
18058 2011-02-17  Bruno Haible  <bruno@clisp.org>
18059
18060         getloadavg: Fix link error on Solaris 2.6.
18061         * modules/getloadavg (Link): New section.
18062         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18063         linking test-getloadavg.
18064         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18065         getloadavg.
18066
18067 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18068
18069         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18070         It was 'int', but this doesn't match the IRIX 6.5 manual.
18071         Suggested by Bruno Haible in
18072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18073
18074 2011-02-17  Bruno Haible  <bruno@clisp.org>
18075
18076         havelib: Fix comments.
18077         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18078         change.
18079
18080 2011-02-17  Bruno Haible  <bruno@clisp.org>
18081
18082         havelib: Update config.rpath.
18083         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18084
18085 2011-02-17  Bruno Haible  <bruno@clisp.org>
18086
18087         getloadavg test: Add some plausibility checks.
18088         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18089         is improbable.
18090
18091 2011-02-16  Eric Blake  <eblake@redhat.com>
18092
18093         maintainer-makefile: make syntax-check a no-op from tarballs
18094         * top/maint.mk (no-vc-detected): New rule.
18095         (local-checks-available): Use it to avoid hanging if someone tries
18096         'make syntax-check' from a tarball.  Also append to any non-syntax
18097         checks already defined in cfg.mk.
18098
18099 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18100
18101         longlong: tune, particularly for common case of c99
18102
18103         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18104         or running anything if c99, or if unsigned long long int does not
18105         work.  In either case, we know the answer without further tests.
18106         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18107         it at most once, and use its results for both long long int and
18108         unsigned long long int.  This is more likely to be efficient in
18109         the common case where the program wants to check for both long
18110         long int and unsigned long long int.
18111         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18112         since the answer is already known.
18113
18114 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18115
18116         getloadavg: set errno
18117         * lib/getloadavg.c: Set errno when returning -1.  If no other
18118         error number looks appropriate, set it to ENOSYS if the getloadavg
18119         looks like it can't possibly ever work, ENOTSUP otherwise.
18120         Suggested by Bruno Haible in
18121         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18122
18123         getloadavg: trim unused parts and speed up 'configure'
18124         * NEWS: Document this.
18125         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18126         always compiled if getloadavg is absent.
18127         Move test code to ...
18128         * tests/test-getloadavg.c: New file, containing previous
18129         contents of test from lib/getloadavg.c.  It also contains
18130         suggestions by Bruno Haible in
18131         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18132         * modules/getloadavg-tests: New file.
18133         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18134         Do tests in the same order as they're needed for getloadavg.c.
18135         Omit setgid-related tests that generate symbols KMEM_GROUP,
18136         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18137         Do only the tests that are needed to see whether the system has
18138         getloadavg, moving the other tests into ...
18139         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18140         NLIST_NAME_UNION; nobody should be using it.  Do not define
18141         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18142         relevant, as the user of this module shouldn't care how getloadavg
18143         is implemented.
18144
18145         getloadavg: omit unused var
18146         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18147
18148 2011-02-15  Jim Meyering  <meyering@redhat.com>
18149
18150         doc: update users.txt
18151         * users.txt: Update iwhd's URL.
18152
18153 2011-02-13  Bruno Haible  <bruno@clisp.org>
18154
18155         Consistent macro naming for macros that use GCC __attribute__.
18156         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18157         _ATTRIBUTE_NONNULL_.
18158         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18159         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18160         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18161         ATTRIBUTE_DEPRECATED.
18162         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18163         ATTRIBUTE_NORETURN.
18164         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18165         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18166         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18167         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18168         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18169         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18170         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18171         ATTRIBUTE_SENTINEL.
18172         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18173         ATTRIBUTE_RETURN_CHECK.
18174         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18175         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18176         ATTRIBUTE_NORETURN.
18177         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18178         Reported by Paul Eggert.
18179
18180 2011-02-13  Bruno Haible  <bruno@clisp.org>
18181
18182         Don't interfere with a program's definition of __attribute__.
18183         * lib/argp.h (__attribute__): Remove definition.
18184         (_GL_ATTRIBUTE_FORMAT): New macro.
18185         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18186         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18187         (_GL_ATTRIBUTE_FORMAT): New macro.
18188         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18189         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18190         GCC 3 or newer.
18191         * lib/error.h (__attribute__): Remove definition.
18192         (_GL_ATTRIBUTE_FORMAT): New macro.
18193         (error, error_at_line): Use it.
18194         * lib/hash.h (__attribute__): Remove definition.
18195         (ATTRIBUTE_WUR): Update definition. Define always.
18196         * lib/openat.h (__attribute__): Remove definition.
18197         (ATTRIBUTE_NORETURN): Update definition. Define always.
18198         * lib/sigpipe-die.h (__attribute__): Remove definition.
18199         (ATTRIBUTE_NORETURN): Update definition. Define always.
18200         * lib/vasnprintf.h (__attribute__): Remove definition.
18201         (_GL_ATTRIBUTE_FORMAT): New macro.
18202         (asnprintf, vasnprintf): Use it.
18203         * lib/xalloc.h (__attribute__): Remove definition.
18204         (ATTRIBUTE_NORETURN): Update definition. Define always.
18205         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18206         * lib/xmemdup0.h (__attribute__): Remove definition.
18207         (ATTRIBUTE_NORETURN): Update definition. Define always.
18208         * lib/xprintf.h (__attribute__): Remove definition.
18209         (_GL_ATTRIBUTE_FORMAT): New macro.
18210         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18211         * lib/xstrtol.h (__attribute__): Remove definition.
18212         (ATTRIBUTE_NORETURN): Update definition. Define always.
18213         * lib/xvasprintf.h (__attribute__): Remove definition.
18214         (_GL_ATTRIBUTE_FORMAT): New macro.
18215         (xasprintf, xvasprintf): Use it.
18216         * tests/test-argmatch.c (__attribute__): Remove definition.
18217         (ATTRIBUTE_NORETURN): Update definition. Define always.
18218         * tests/test-exclude.c (__attribute__): Remove definition.
18219         (ATTRIBUTE_NORETURN): Update definition. Define always.
18220         Reported by Paul Eggert.
18221
18222 2011-02-13  Bruno Haible  <bruno@clisp.org>
18223
18224         mbrtowc: Add more tests for native Windows platforms.
18225         * tests/test-mbrtowc-w32-1.sh: New file.
18226         * tests/test-mbrtowc-w32-2.sh: New file.
18227         * tests/test-mbrtowc-w32-3.sh: New file.
18228         * tests/test-mbrtowc-w32-4.sh: New file.
18229         * tests/test-mbrtowc-w32-5.sh: New file.
18230         * tests/test-mbrtowc-w32.c: New file.
18231         * modules/mbrtowc-tests (Files): Add them.
18232         (Makefile.am): Arrange to run these tests.
18233         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18234         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18235
18236 2011-02-13  Bruno Haible  <bruno@clisp.org>
18237
18238         mbrtowc: Work around native Windows bug.
18239         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18240         guess when no suitable locale for testing was found.
18241         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18242
18243 2011-02-13  Bruno Haible  <bruno@clisp.org>
18244
18245         mbsinit: Work around mingw bug.
18246         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18247         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18248         Windows.
18249         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18250
18251 2011-02-13  Bruno Haible  <bruno@clisp.org>
18252
18253         mbsinit: Don't crash for a NULL argument.
18254         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18255         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18256
18257 2011-02-13  Bruno Haible  <bruno@clisp.org>
18258
18259         Don't interfere with a program's definition of __attribute__.
18260         * lib/stdio.in.h (__attribute__): Remove definition.
18261         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18262         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18263         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18264         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18265         * lib/string.in.h (__attribute__): Remove definition.
18266         Reported by Paul Eggert.
18267
18268 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18269
18270         stdlib: don't get in the way of non-GCC __attribute__
18271         See thread starting at
18272         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18273         Revert previous stdlib change, installing the following instead:
18274         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18275         to get in the way of a non-GCC compiler that supports __attribute__.
18276         (_GL_ATTRIBUTE_RETURN): New macro.
18277         (_Exit): Use it instead of __attribute__.
18278
18279 2011-02-12  Bruno Haible  <bruno@clisp.org>
18280
18281         quotearg test: Avoid test failure on mingw.
18282         * tests/test-quotearg.sh: Convert the locale identifier from native
18283         Windows syntax to Unix syntax.
18284
18285 2011-02-12  Bruno Haible  <bruno@clisp.org>
18286
18287         setlocale: Prefer gnulib's override over libintl's override.
18288         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18289         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18290         GNULIB_defined_setlocale is set.
18291
18292 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18293
18294         stdlib: support non-GCC __attribute__
18295
18296         Fix a serious and tricky problem encountered when attempting to
18297         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18298         5.5, but it crashed due to memory corruption on Solaris 10 with
18299         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18300         bits that are otherwise zero.  This tagging is optional inside
18301         Emacs but is preferred and is used when __attribute__ ((__aligned
18302         (8))) works, as it does with both recent-enough GCC and with Sun C
18303         5.11.  However, Sun C 5.11 is not GCC and does not #define
18304         __GNUC__ and __GNUC_MINOR__.
18305
18306         When I added the getloadavg module to Emacs, it brought in
18307         stdlib.in.h, which contained this fragment:
18308
18309            #ifndef __attribute__
18310            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18311            #  define __attribute__(Spec)   /* empty */
18312            # endif
18313            #endif
18314
18315         When files that include <stdlib.h> were compiled with Sun C 5.11,
18316         the above code disabled __attribute__ ((__aligned (8))), which
18317         caused variables to not be properly aligned, which eventually led
18318         to the pointer corruption mentioned above.  (This was a bit hard
18319         to diagnose, unfortunately.)
18320
18321         Several "#define __attribute__(X) /* empty */" code snippets need
18322         to be eradicated from Gnulib to work with non-GCC compilers that
18323         support __attribute__.  The Autoconf way to do this is to test for
18324         each kind of attribute that we want support for, and selectively
18325         enable that in source code.
18326
18327         Fix this problem just for stdlib.h, by adding a test for the
18328         __noreturn__ attribute, and change stdlib.in.h to use that test
18329         when needed.  This technique can be easily generalized to the
18330         other *.in.h files and attributes, and a similar technique can be
18331         used for *.h and *.c files.  This patch is enough to solve the
18332         problem for Emacs + getloadavg, and I thought I'd publish it for
18333         feedback before undertaking further, similar fixes in other
18334         modules.
18335
18336         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18337         because it's not needed for stdlib.h.  It merely substitutes the
18338         value directly into stdlib.h.  We may well need to #define it, or
18339         similar symbols, for other modules, but it's nice to also have an
18340         option to not #define it for applications like Emacs that do not
18341         need it.
18342
18343         * lib/stdlib.in.h (__attribute__): Do not #define.
18344         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18345         be defined only if the _Exit module is also used.
18346         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18348         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18349         platforms.
18350         * modules/_Exit (Files): Add m4/attribute.m4.
18351         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18352         * m4/attribute.m4: New file.
18353
18354 2011-02-12  Bruno Haible  <bruno@clisp.org>
18355
18356         wcsrtombs: Work around bug on native Windows.
18357         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18358         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18359         instead of len.
18360         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18361
18362 2011-02-12  Bruno Haible  <bruno@clisp.org>
18363
18364         mbsrtowcs: Work around bug on native Windows.
18365         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18366         against mingw bug.
18367         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18368
18369 2011-02-12  Bruno Haible  <bruno@clisp.org>
18370
18371         Avoid setlocale bugs in tests.
18372         * modules/btowc (Dependencies): Add setlocale.
18373         * modules/c-strcase (Dependencies): Likewise.
18374         * modules/mbmemcasecmp (Dependencies): Likewise.
18375         * modules/mbmemcasecoll (Dependencies): Likewise.
18376         * modules/mbrtowc (Dependencies): Likewise.
18377         * modules/mbscasecmp (Dependencies): Likewise.
18378         * modules/mbscasestr (Dependencies): Likewise.
18379         * modules/mbschr (Dependencies): Likewise.
18380         * modules/mbscspn (Dependencies): Likewise.
18381         * modules/mbsinit (Dependencies): Likewise.
18382         * modules/mbsncasecmp (Dependencies): Likewise.
18383         * modules/mbsnrtowcs (Dependencies): Likewise.
18384         * modules/mbspbrk (Dependencies): Likewise.
18385         * modules/mbspcasecmp (Dependencies): Likewise.
18386         * modules/mbsrchr (Dependencies): Likewise.
18387         * modules/mbsrtowcs (Dependencies): Likewise.
18388         * modules/mbsspn (Dependencies): Likewise.
18389         * modules/mbsstr (Dependencies): Likewise.
18390         * modules/nl_langinfo (Dependencies): Likewise.
18391         * modules/quotearg (Dependencies): Likewise.
18392         * modules/unicase/locale-language (Dependencies): Likewise.
18393         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18394         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18395         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18396         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18397         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18398         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18399         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18400         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18401         * modules/vasnprintf-posix (Dependencies): Likewise.
18402         * modules/wcrtomb (Dependencies): Likewise.
18403         * modules/wcsnrtombs (Dependencies): Likewise.
18404         * modules/wcsrtombs (Dependencies): Likewise.
18405
18406 2011-02-12  Bruno Haible  <bruno@clisp.org>
18407
18408         setlocale: Workaround native Windows bug.
18409         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18410         succeeds but sets LC_CTYPE to "C", report a failure.
18411         * tests/test-setlocale2.sh: New file.
18412         * tests/test-setlocale2.c: New file.
18413         * modules/setlocale-tests (Files): Add the new files.
18414         (Makefile.am): Enable test-setlocale2.sh test.
18415         * doc/posix-functions/setlocale.texi: Mention workaround.
18416
18417 2011-02-11  Bruno Haible  <bruno@clisp.org>
18418
18419         Tests for module 'setlocale'.
18420         * modules/setlocale-tests: New file.
18421         * tests/test-setlocale1.sh: New file.
18422         * tests/test-setlocale1.c: New file.
18423
18424         New module 'setlocale'.
18425         * lib/locale.in.h (setlocale): New declaration.
18426         * lib/setlocale.c: New file, based on
18427         gettext/gettext-runtime/intl/setlocale.c.
18428         * m4/setlocale.m4: New file.
18429         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18430         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18431         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18432         REPLACE_SETLOCALE.
18433         * modules/setlocale: New file.
18434         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18435         * doc/posix-functions/setlocale.texi: Mention the new module.
18436
18437 2011-02-11  Bruno Haible  <bruno@clisp.org>
18438
18439         Prepare for locale dependent tests on mingw.
18440         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
18441         because it has the wrong locale encoding.
18442         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
18443         French_France.1252 instead of "fr".
18444         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
18445         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
18446         because it has the wrong locale encoding.
18447         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
18448         native Windows, try Turkish_Turkey.65001.
18449         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
18450         Chinese_China.54936.
18451
18452         Prepare for locale dependent tests on mingw.
18453         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
18454         differently.
18455         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
18456         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
18457         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18458         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18459
18460 2011-02-11  Eric Blake  <eblake@redhat.com>
18461
18462         strptime: avoid compiler warnings
18463         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
18464         compiler warnings about dead code.
18465         Reported by Daniel P. Berrange.
18466
18467 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
18468
18469         doc: update users.txt
18470         * users.txt: Add rcs.
18471
18472 2011-02-10  John W. Eaton  <jwe@gnu.org>
18473
18474         doc: update users.txt
18475         * users.txt: Add octave.
18476
18477 2011-02-10  Jim Meyering  <meyering@redhat.com>
18478
18479         doc: update users.txt
18480         * users.txt: Add iwhd.
18481
18482 2011-02-09  Bruno Haible  <bruno@clisp.org>
18483
18484         gnulib-tool: Make copyright notice adjustment more robust.
18485         * gnulib-tool (func_import): In sed_transform_main_lib_file,
18486         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
18487         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
18488         License".
18489         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
18490
18491 2011-02-06  Bruno Haible  <bruno@clisp.org>
18492
18493         New module 'towctrans'.
18494         * modules/towctrans: New file.
18495         * lib/wctype.in.h (towctrans): New declaration.
18496         * lib/towctrans.c: New file.
18497         * lib/towctrans-impl.h: New file.
18498         * m4/towctrans.m4: New file.
18499         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
18500         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
18501         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
18502         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
18503         * doc/posix-functions/towctrans.texi: Mention the new module.
18504
18505 2011-02-06  Bruno Haible  <bruno@clisp.org>
18506
18507         New module 'wctrans'.
18508         * modules/wctrans: New file.
18509         * lib/wctype.in.h (wctrans): New declaration.
18510         * lib/wctrans.c: New file.
18511         * lib/wctrans-impl.h: New file.
18512         * m4/wctrans.m4: New file.
18513         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
18514         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
18515         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
18516         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
18517         * doc/posix-functions/wctrans.texi: Mention the new module.
18518
18519 2011-02-06  Bruno Haible  <bruno@clisp.org>
18520
18521         New module 'iswctype'.
18522         * modules/iswctype: New file.
18523         * lib/wctype.in.h (iswctype): New declaration.
18524         * lib/iswctype.c: New file.
18525         * lib/iswctype-impl.h: New file.
18526         * m4/iswctype.m4: New file.
18527         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
18528         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
18529         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
18530         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
18531         * doc/posix-functions/iswctype.texi: Mention the new module and the
18532         HP-UX 11.00 problem.
18533
18534 2011-02-06  Bruno Haible  <bruno@clisp.org>
18535
18536         New module 'wctype'.
18537         * modules/wctype: Change to represent the wctype() substitute.
18538         * lib/wctype.in.h (wctype): New declaration.
18539         * lib/wctype.c: New file.
18540         * lib/wctype-impl.h: New file.
18541         * m4/wctype.m4: New file.
18542         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
18543         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
18544         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
18545         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
18546         * doc/posix-functions/wctype.texi: Mention the new module and the
18547         HP-UX 11.00 problem.
18548
18549 2011-02-06  Bruno Haible  <bruno@clisp.org>
18550
18551         wctype-h: Ensure wctype_t and wctrans_t are defined.
18552         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
18553         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18554         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
18555         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
18556         HAVE_WCTRANS_T.
18557         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
18558
18559 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18560
18561         flock: fix license typo
18562
18563         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
18564         omitted.
18565
18566 2011-02-08  Bruno Haible  <bruno@clisp.org>
18567
18568         Split large sed scripts, for HP-UX sed.
18569         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
18570         to avoid HP-UX limit of 99 commands, in the near future.
18571         * modules/stdlib (Makefile.am): Likewise.
18572         * modules/unistd (Makefile.am): Likewise.
18573         * modules/wchar (Makefile.am): Likewise.
18574         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18575         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
18576         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
18577
18578 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18579             Bruno Haible  <bruno@clisp.org>
18580
18581         stdlib: improve random_r modularization
18582         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
18583         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
18584         you also need the random_r module to get this material right.
18585         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
18586         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
18587         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
18588
18589 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
18590
18591         stdlib: don't depend on stdint
18592         * lib/stdlib.in.h: Don't include <stdint.h> merely because
18593         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
18594         be independent of whether stdint.h is needed.
18595         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
18596         here, instead of ...
18597         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
18598         struct random_data should be using the random_r module, not just
18599         the stdlib module (which wouldn't make sense: what package needs
18600         just struct random_data without also needing random_r?).
18601         * modules/stdlib (Depends-on): Remove stdint.
18602
18603         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
18604         See the thread rooted at
18605         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
18606         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
18607         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
18608         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
18609         __VMS)); previously it was always included (via fcntl--.h).
18610         (getloadavg): Do not use c_strtod.  Instead, approximate it by
18611         hand; this is good enough for load averages.  Also, do not use
18612         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
18613         flags directly if available and don't bother otherwise.  (Packages
18614         that need the extra reliability should use the modules that define
18615         these flags on older platforms that lack them.)
18616         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
18617         fcntl-safer.
18618
18619 2011-02-08  Jim Meyering  <meyering@redhat.com>
18620
18621         di-set.h, ino-map.h: add multiple-inclusion guard
18622         Technically, the guard is required only for ino-map.h, due to its
18623         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
18624         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
18625         * lib/ino-map.h: Likewise.
18626
18627 2011-02-06  Bruno Haible  <bruno@clisp.org>
18628
18629         iswblank: Ensure declaration on glibc systems.
18630         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
18631         * modules/iswblank (Dependencies): Add 'extensions'.
18632         * doc/posix-functions/iswblank.texi: Document the glibc problem.
18633
18634 2011-02-06  Bruno Haible  <bruno@clisp.org>
18635
18636         New module 'iswblank'.
18637         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
18638         * modules/iswblank: New file.
18639         * modules/wctype-h (Files): Remove lib/iswblank.c.
18640         (Makefile.am): Substitute GNULIB_ISWBLANK.
18641         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
18642         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
18643         (gl_WCTYPE_H_DEFAULTS): New macro.
18644         (gl_WCTYPE_H): Require it. Remove iswblank related code.
18645         * modules/iswblank-tests: New file.
18646         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
18647         * tests/test-wctype-h.c (main): Remove iswblank tests.
18648         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
18649         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
18650         of 'wctype-h'.
18651         * NEWS: Mention the change.
18652         * modules/mbchar (Depends-on): Add iswblank.
18653
18654 2011-02-08  Bruno Haible  <bruno@clisp.org>
18655
18656         di-set tests: Refactor.
18657         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
18658         unnecessary includes.
18659         (ASSERT): Remove macro.
18660         (main): Make C90 compliant by avoiding variable declaration after
18661         statement.
18662         * modules/di-set-tests (Files): Add tests/macros.h.
18663
18664 2011-02-08  Bruno Haible  <bruno@clisp.org>
18665
18666         ino-map tests: Refactor.
18667         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
18668         unnecessary includes.
18669         (ASSERT): Remove macro.
18670         (main): Make C90 compliant by avoiding variable declaration after
18671         statement.
18672         * modules/ino-map-tests (Files): Add tests/macros.h.
18673
18674 2011-02-08  Jim Meyering  <meyering@redhat.com>
18675
18676         di-set: add "const" to a cast
18677         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
18678         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
18679
18680 2011-02-06  Bruno Haible  <bruno@clisp.org>
18681
18682         Rename module 'wctype' to 'wctype-h'.
18683         * modules/wctype-h: Renamed from modules/wctype.
18684         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
18685         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
18686         (Files, Depends-on, Makefile.am): Update.
18687         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
18688         (Files, Makefile.am): Update.
18689         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
18690         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
18691         * doc/posix-headers/wctype.texi: Update.
18692         * doc/posix-functions/iswalnum.texi: Update.
18693         * doc/posix-functions/iswalpha.texi: Update.
18694         * doc/posix-functions/iswblank.texi: Update.
18695         * doc/posix-functions/iswcntrl.texi: Update.
18696         * doc/posix-functions/iswdigit.texi: Update.
18697         * doc/posix-functions/iswgraph.texi: Update.
18698         * doc/posix-functions/iswlower.texi: Update.
18699         * doc/posix-functions/iswprint.texi: Update.
18700         * doc/posix-functions/iswpunct.texi: Update.
18701         * doc/posix-functions/iswspace.texi: Update.
18702         * doc/posix-functions/iswupper.texi: Update.
18703         * doc/posix-functions/iswxdigit.texi: Update.
18704         * doc/posix-functions/towlower.texi: Update.
18705         * doc/posix-functions/towupper.texi: Update.
18706         * NEWS: Mention the change.
18707         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
18708         * modules/mbchar (Dependencies): Likewise.
18709         * modules/mbswidth (Dependencies): Likewise.
18710         * modules/quotearg (Dependencies): Likewise.
18711         * modules/regex (Dependencies): Likewise.
18712         * modules/wcscasecmp (Dependencies): Likewise.
18713         * modules/wcsncasecmp (Dependencies): Likewise.
18714         * modules/wcwidth (Dependencies): Likewise.
18715
18716 2011-02-06  Bruno Haible  <bruno@clisp.org>
18717
18718         New module 'wcswidth'.
18719         * modules/wcswidth: New file.
18720         * lib/wchar.in.h (wcswidth): New declaration.
18721         * lib/wcswidth.c: New file.
18722         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
18723         * m4/wcswidth.m4: New file.
18724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
18725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
18726         REPLACE_WCSWIDTH.
18727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
18728         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
18729         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
18730         * doc/posix-functions/wcswidth.texi: Mention the new module.
18731
18732 2011-02-06  Bruno Haible  <bruno@clisp.org>
18733
18734         New module 'wcstok'.
18735         * modules/wcstok: New file.
18736         * lib/wchar.in.h (wcstok): New declaration.
18737         * lib/wcstok.c: New file.
18738         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
18739         * m4/wcstok.m4: New file.
18740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
18741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
18742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
18743         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
18744         * doc/posix-functions/wcstok.texi: Mention the new module.
18745
18746 2011-02-06  Bruno Haible  <bruno@clisp.org>
18747
18748         New module 'wcsstr'.
18749         * modules/wcsstr: New file.
18750         * lib/wchar.in.h (wcsstr): New declaration.
18751         * lib/wcsstr.c: New file.
18752         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
18753         * m4/wcsstr.m4: New file.
18754         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
18755         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
18756         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
18757         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
18758         * doc/posix-functions/wcsstr.texi: Mention the new module.
18759
18760 2011-02-06  Bruno Haible  <bruno@clisp.org>
18761
18762         New module 'wcspbrk'.
18763         * modules/wcspbrk: New file.
18764         * lib/wchar.in.h (wcspbrk): New declaration.
18765         * lib/wcspbrk.c: New file.
18766         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
18767         * m4/wcspbrk.m4: New file.
18768         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
18769         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
18770         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
18771         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
18772         * doc/posix-functions/wcspbrk.texi: Mention the new module.
18773
18774 2011-02-06  Bruno Haible  <bruno@clisp.org>
18775
18776         New module 'wcsspn'.
18777         * modules/wcsspn: New file.
18778         * lib/wchar.in.h (wcsspn): New declaration.
18779         * lib/wcsspn.c: New file.
18780         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
18781         * m4/wcsspn.m4: New file.
18782         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
18783         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
18784         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
18785         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
18786         * doc/posix-functions/wcsspn.texi: Mention the new module.
18787
18788 2011-02-06  Bruno Haible  <bruno@clisp.org>
18789
18790         New module 'wcscspn'.
18791         * modules/wcscspn: New file.
18792         * lib/wchar.in.h (wcscspn): New declaration.
18793         * lib/wcscspn.c: New file.
18794         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
18795         * m4/wcscspn.m4: New file.
18796         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
18797         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
18798         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
18799         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
18800         * doc/posix-functions/wcscspn.texi: Mention the new module.
18801
18802 2011-02-06  Bruno Haible  <bruno@clisp.org>
18803
18804         New module 'wcsrchr'.
18805         * modules/wcsrchr: New file.
18806         * lib/wchar.in.h (wcsrchr): New declaration.
18807         * lib/wcsrchr.c: New file.
18808         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
18809         * m4/wcsrchr.m4: New file.
18810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
18811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
18812         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
18813         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
18814         * doc/posix-functions/wcsrchr.texi: Mention the new module.
18815
18816 2011-02-06  Bruno Haible  <bruno@clisp.org>
18817
18818         New module 'wcschr'.
18819         * modules/wcschr: New file.
18820         * lib/wchar.in.h (wcschr): New declaration.
18821         * lib/wcschr.c: New file.
18822         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
18823         * m4/wcschr.m4: New file.
18824         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
18825         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
18826         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
18827         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
18828         * doc/posix-functions/wcschr.texi: Mention the new module.
18829
18830 2011-02-06  Bruno Haible  <bruno@clisp.org>
18831
18832         New module 'wcsdup'.
18833         * modules/wcsdup: New file.
18834         * lib/wchar.in.h (wcsdup): New declaration.
18835         * lib/wcsdup.c: New file.
18836         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
18837         * m4/wcsdup.m4: New file.
18838         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
18839         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
18840         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
18841         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
18842         * doc/posix-functions/wcsdup.texi: Mention the new module.
18843
18844 2011-02-06  Bruno Haible  <bruno@clisp.org>
18845
18846         New module 'wcsxfrm'.
18847         * modules/wcsxfrm: New file.
18848         * lib/wchar.in.h (wcsxfrm): New declaration.
18849         * lib/wcsxfrm.c: New file.
18850         * lib/wcsxfrm-impl.h: New file.
18851         * m4/wcsxfrm.m4: New file.
18852         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
18853         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
18854         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
18855         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
18856         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
18857
18858 2011-02-06  Bruno Haible  <bruno@clisp.org>
18859
18860         New module 'wcscoll'.
18861         * modules/wcscoll: New file.
18862         * lib/wchar.in.h (wcscoll): New declaration.
18863         * lib/wcscoll.c: New file.
18864         * lib/wcscoll-impl.h: New file.
18865         * m4/wcscoll.m4: New file.
18866         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
18867         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
18868         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
18869         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
18870         * doc/posix-functions/wcscoll.texi: Mention the new module.
18871
18872 2011-02-06  Bruno Haible  <bruno@clisp.org>
18873
18874         New module 'wcsncasecmp'.
18875         * modules/wcsncasecmp: New file.
18876         * lib/wchar.in.h (wcsncasecmp): New declaration.
18877         * lib/wcsncasecmp.c: New file.
18878         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
18879         * m4/wcsncasecmp.m4: New file.
18880         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
18881         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
18882         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
18883         HAVE_WCSNCASECMP.
18884         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
18885         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
18886
18887 2011-02-06  Bruno Haible  <bruno@clisp.org>
18888
18889         New module 'wcscasecmp'.
18890         * modules/wcscasecmp: New file.
18891         * lib/wchar.in.h (wcscasecmp): New declaration.
18892         * lib/wcscasecmp.c: New file.
18893         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
18894         * m4/wcscasecmp.m4: New file.
18895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
18896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
18897         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
18898         HAVE_WCSCASECMP.
18899         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
18900         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
18901
18902 2011-02-05  Bruno Haible  <bruno@clisp.org>
18903
18904         New module 'wcsncmp'.
18905         * modules/wcsncmp: New file.
18906         * lib/wchar.in.h (wcsncmp): New declaration.
18907         * lib/wcsncmp.c: New file.
18908         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
18909         * m4/wcsncmp.m4: New file.
18910         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
18911         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
18912         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
18913         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
18914         * doc/posix-functions/wcsncmp.texi: Mention the new module.
18915
18916 2011-02-05  Bruno Haible  <bruno@clisp.org>
18917
18918         New module 'wcscmp'.
18919         * modules/wcscmp: New file.
18920         * lib/wchar.in.h (wcscmp): New declaration.
18921         * lib/wcscmp.c: New file.
18922         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
18923         * m4/wcscmp.m4: New file.
18924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
18925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
18926         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
18927         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
18928         * doc/posix-functions/wcscmp.texi: Mention the new module.
18929
18930 2011-02-05  Bruno Haible  <bruno@clisp.org>
18931
18932         New module 'wcsncat'.
18933         * modules/wcsncat: New file.
18934         * lib/wchar.in.h (wcsncat): New declaration.
18935         * lib/wcsncat.c: New file.
18936         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
18937         * m4/wcsncat.m4: New file.
18938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
18939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
18940         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
18941         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
18942         * doc/posix-functions/wcsncat.texi: Mention the new module.
18943
18944 2011-02-05  Bruno Haible  <bruno@clisp.org>
18945
18946         New module 'wcscat'.
18947         * modules/wcscat: New file.
18948         * lib/wchar.in.h (wcscat): New declaration.
18949         * lib/wcscat.c: New file.
18950         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
18951         * m4/wcscat.m4: New file.
18952         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
18953         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
18954         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
18955         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
18956         * doc/posix-functions/wcscat.texi: Mention the new module.
18957
18958 2011-02-05  Bruno Haible  <bruno@clisp.org>
18959
18960         New module 'wcpncpy'.
18961         * modules/wcpncpy: New file.
18962         * lib/wchar.in.h (wcpncpy): New declaration.
18963         * lib/wcpncpy.c: New file.
18964         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
18965         * m4/wcpncpy.m4: New file.
18966         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
18967         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
18968         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
18969         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
18970         * doc/posix-functions/wcpncpy.texi: Mention the new module.
18971
18972 2011-02-05  Bruno Haible  <bruno@clisp.org>
18973
18974         New module 'wcsncpy'.
18975         * modules/wcsncpy: New file.
18976         * lib/wchar.in.h (wcsncpy): New declaration.
18977         * lib/wcsncpy.c: New file.
18978         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
18979         * m4/wcsncpy.m4: New file.
18980         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
18981         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
18982         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
18983         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
18984         * doc/posix-functions/wcsncpy.texi: Mention the new module.
18985
18986 2011-02-05  Bruno Haible  <bruno@clisp.org>
18987
18988         New module 'wcpcpy'.
18989         * modules/wcpcpy: New file.
18990         * lib/wchar.in.h (wcpcpy): New declaration.
18991         * lib/wcpcpy.c: New file.
18992         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
18993         * m4/wcpcpy.m4: New file.
18994         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
18995         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
18996         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
18997         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
18998         * doc/posix-functions/wcpcpy.texi: Mention the new module.
18999
19000 2011-02-05  Bruno Haible  <bruno@clisp.org>
19001
19002         New module 'wcscpy'.
19003         * modules/wcscpy: New file.
19004         * lib/wchar.in.h (wcscpy): New declaration.
19005         * lib/wcscpy.c: New file.
19006         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19007         * m4/wcscpy.m4: New file.
19008         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19009         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19011         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19012         * doc/posix-functions/wcscpy.texi: Mention the new module.
19013
19014 2011-02-05  Bruno Haible  <bruno@clisp.org>
19015
19016         New module 'wcsnlen'.
19017         * modules/wcsnlen: New file.
19018         * lib/wchar.in.h (wcsnlen): New declaration.
19019         * lib/wcsnlen.c: New file.
19020         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19021         * m4/wcsnlen.m4: New file.
19022         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19023         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19025         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19026         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19027
19028 2011-02-05  Bruno Haible  <bruno@clisp.org>
19029
19030         New module 'wcslen'.
19031         * modules/wcslen: New file.
19032         * lib/wchar.in.h (wcslen): New declaration.
19033         * lib/wcslen.c: New file.
19034         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19035         * m4/wcslen.m4: New file.
19036         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19037         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19038         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19039         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19040         * doc/posix-functions/wcslen.texi: Mention the new module.
19041
19042 2011-02-05  Bruno Haible  <bruno@clisp.org>
19043
19044         New module 'wmemset'.
19045         * modules/wmemset: New file.
19046         * lib/wchar.in.h (wmemset): New declaration.
19047         * lib/wmemset.c: New file.
19048         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19049         * m4/wmemset.m4: New file.
19050         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19051         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19052         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19053         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19054         * doc/posix-functions/wmemset.texi: Mention the new module.
19055
19056 2011-02-05  Bruno Haible  <bruno@clisp.org>
19057
19058         New module 'wmemmove'.
19059         * modules/wmemmove: New file.
19060         * lib/wchar.in.h (wmemmove): New declaration.
19061         * lib/wmemmove.c: New file.
19062         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19063         * m4/wmemmove.m4: New file.
19064         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19065         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19066         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19067         HAVE_WMEMMOVE.
19068         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19069         * doc/posix-functions/wmemmove.texi: Mention the new module.
19070
19071 2011-02-05  Bruno Haible  <bruno@clisp.org>
19072
19073         New module 'wmemcpy'.
19074         * modules/wmemcpy: New file.
19075         * lib/wchar.in.h (wmemcpy): New declaration.
19076         * lib/wmemcpy.c: New file.
19077         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19078         * m4/wmemcpy.m4: New file.
19079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19081         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19082         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19083         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19084
19085 2011-02-05  Bruno Haible  <bruno@clisp.org>
19086
19087         New module 'wmemcmp'.
19088         * modules/wmemcmp: New file.
19089         * lib/wchar.in.h (wmemcmp): New declaration.
19090         * lib/wmemcmp.c: New file.
19091         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19092         * m4/wmemcmp.m4: New file.
19093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19095         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19096         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19097         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19098
19099 2011-02-07  Jim Meyering  <meyering@redhat.com>
19100
19101         di-set, ino-map: new modules, from coreutils
19102         * lib/di-set.c: New file.
19103         * lib/di-set.h: Likewise.
19104         * lib/ino-map.c: Likewise.
19105         * lib/ino-map.h: Likewise.
19106         * modules/di-set: Likewise.
19107         * modules/di-set-tests: Likewise.
19108         * modules/ino-map: Likewise.
19109         * modules/ino-map-tests: Likewise.
19110         * tests/test-di-set.c: Likewise.
19111         * tests/test-ino-map.c: Likewise.
19112
19113 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19114
19115         getloadavg: merge minor changes from Emacs
19116
19117         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19118         (getloadavg): Use memset, not bzero.
19119
19120         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19121         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19122         clash (bug#86).
19123
19124 2010-11-14  Bruno Haible  <bruno@clisp.org>
19125
19126         Allow multiple gnulib generated replacements to coexist.
19127         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19128         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19129         * lib/langinfo.in.h (nl_item): Likewise.
19130         * lib/math.in.h (_NaN, NAN): Likewise.
19131         * lib/netdb.in.h (struct addrinfo): Likewise.
19132         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19133         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19134         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19135         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19136         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19137         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19138         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19139         pthread_mutexattr_init, pthread_mutexattr_settype,
19140         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19141         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19142         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19143         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19144         * lib/sched.in.h (struct sched_param): Likewise.
19145         * lib/se-selinux.in.h (security_class_t, security_context_t,
19146         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19147         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19148         lsetfilecon, fsetfilecon, security_check_context,
19149         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19150         Likewise.
19151         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19152         Likewise.
19153         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19154         _gl_function_taking_int_returning_void_t, union sigval,
19155         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19156         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19157         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19158         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19159         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19160         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19161         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19162         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19163         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19164         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19165         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19166         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19167         socklen_t, rpl_fd_isset): Likewise.
19168         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19169         * lib/sys_time.in.h (struct timeval): Likewise.
19170         * lib/sys_times.in.h (struct tms): Likewise.
19171         * lib/sys_utsname.in.h (struct utsname):
19172         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19173         * lib/unistd.in.h (getpagesize): Likewise.
19174         * lib/wchar.in.h (mbstate_t): Likewise.
19175         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19176         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19177         towlower, towupper): Likewise.
19178         Reported by Sam Steingold <sds@gnu.org>.
19179
19180 2011-02-05  Eric Blake  <eblake@redhat.com>
19181
19182         unsetenv: work around Haiku issues
19183         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19184         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19185
19186 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19187
19188         libposix: avoid calling error() within libposix
19189         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19190         is defined.
19191
19192 2011-02-05  Eric Blake  <eblake@redhat.com>
19193
19194         strerror_r-posix: port to cygwin
19195         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19196         implementation.
19197         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19198         * tests/test-strerror_r.c (main): Fix test.
19199         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19200         issue.
19201
19202 2011-02-05  Bruno Haible  <bruno@clisp.org>
19203
19204         New module 'wmemchr'.
19205         * modules/wmemchr: New file.
19206         * lib/wchar.in.h (wmemchr): New declaration.
19207         * lib/wmemchr.c: New file.
19208         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19209         * m4/wmemchr.m4: New file.
19210         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19211         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19212         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19213         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19214         * doc/posix-functions/wmemchr.texi: Mention the new module.
19215
19216 2011-02-04  Eric Blake  <eblake@redhat.com>
19217
19218         fdopendir: detect FreeBSD bug
19219         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19220         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19221
19222 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19223
19224         stdbool: do not define HAVE_STDBOOL_H
19225         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19226         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19227         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19228         imported from the latest Autoconf git.  It was motivated by Emacs,
19229         which uses gnulib but does not need HAVE_STDBOOL_H.
19230
19231 2011-02-04  Bruno Haible  <bruno@clisp.org>
19232
19233         wcsnrtombs: Prepare for new module wwcsnrtombs.
19234         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19235         * lib/wcsnrtombs.c: Include it.
19236         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19237
19238         wcsrtombs: Prepare for new module wwcsrtombs.
19239         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19240         * lib/wcsrtombs.c: Include it.
19241         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19242
19243         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19244         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19245         * lib/mbsnrtowcs.c: Include it.
19246         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19247
19248         mbsrtowcs: Prepare for new module mbsrtowwcs.
19249         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19250         * lib/mbsrtowcs.c: Include it.
19251         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19252
19253 2011-02-04  Bruno Haible  <bruno@clisp.org>
19254
19255         vasnprintf: Reduce use of malloc for small format strings.
19256         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19257         (arguments): Add room for the first 7 arguments.
19258         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19259         (char_directives, u8_directives, u16_directives, u32_directives): Add
19260         room for the first 7 directives.
19261         * lib/printf-parse.c: Include <string.h>.
19262         (PRINTF_PARSE): Change memory handling code so that it uses the first
19263         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19264         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19265         Reported by Pádraig Brady <P@draigbrady.com>.
19266
19267 2011-01-31  Eric Blake  <eblake@redhat.com>
19268
19269         dup2: work around Haiku bug
19270         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19271         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19272         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19273         * tests/test-dup2.c (main): Enhance test.
19274
19275 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19276
19277         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19278         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19279         declared by eglibc 2.11.2.
19280         * lib/stdio.in.h: Likewise.
19281
19282 2011-01-31  Eric Blake  <eblake@redhat.com>
19283
19284         ignore-value: add missing test dependency
19285         * tests/test-ignore-value.c: Revert previous change; stdio.h
19286         provides off_t.
19287         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19288
19289 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19290
19291         mktime: clarify long_int width checking
19292         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19293         the top level, to make it clearer that the assumption about
19294         long_int width is being checked.  See
19295         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19296
19297 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19298
19299         ignore-value: Fix self-test.
19300         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19301
19302 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19303
19304         TYPE_MAXIMUM: avoid theoretically undefined behavior
19305         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19306         negative number, which the C Standard says has undefined behavior.
19307         In practice this is not a problem, but might as well do it by the book.
19308         Reported by Rich Felker and Eric Blake; see
19309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19310         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19311         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19312         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19313         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19314         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19315         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19316
19317         mktime: #undef mktime before #defining it
19318         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19319
19320         mktime: systematically normalize tm_isdst comparisons
19321         * lib/mktime.c (isdst_differ): New function.
19322         (__mktime_internal): Use it systematically for all isdst comparisons.
19323         This completes the fix for libc BZ #6723, and removes the need for
19324         normalizing tm_isdst.  See
19325         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19326         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19327
19328         mktime: fix some integer overflow issues and sidestep the rest
19329
19330         This was prompted by a bug report by Benjamin Lindner for MinGW
19331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19332         His bug is due to signed integer overflow (0 - INT_MIN), and I
19333         I scanned through mktime.c looking for other integer overflow
19334         problems, fixing all the bugs I found.
19335
19336         Although the C Standard says the resulting code is still not safe
19337         in the presence of integer overflow, in practice it should be good
19338         enough for all real-world two's-complement implementations, except
19339         for debugging environments that deliberately trap on integer
19340         overflow (e.g., gcc -ftrapv).
19341
19342         * lib/mktime.c (WRAPV): New macro.
19343         (SHR): Also check that long_int and time_t shift right in the
19344         usual way, before using the fast-but-unportable method.
19345         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19346         used.  The code already assumed two's complement, so there's
19347         no need to test for alternatives.  All uses removed.
19348         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19349         the C standard.  Problem reported by Rich Felker in
19350         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19351         (twos_complement_arithmetic): Also check long_int and time_t.
19352         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19353         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19354         (__mktime_internal): Avoid integer overflow with unary subtraction
19355         in two instances where -1 - X is an adequate replacement for -X,
19356         since the calculations are approximate.
19357
19358 2011-01-29  Eric Blake  <eblake@redhat.com>
19359
19360         mktime: avoid infinite loop
19361         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19362         type; behavior is still undefined but portable to all known targets.
19363         Reported by Rich Felker.
19364
19365 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19366
19367         rename, unlink, same-inode: Relicense.
19368         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19369         * modules/unlink (License): Likewise.
19370         * modules/same-inode (License): Likewise.
19371
19372 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19373
19374         mktime: avoid problems on NetBSD 5 / i386
19375         * lib/mktime.c (long_int): New type.  This works around a problem
19376         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19377         but time_t is 64 bits, and where I expect the existing code is
19378         wrong in some cases.
19379         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19380         (ydhms_diff): Bring back the compile-time check for wide-enough
19381         year and yday.
19382
19383         mktime: fix misspelling in comment
19384         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19385         This merges all recent glibc changes of importance.
19386
19387 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19388
19389         move-if-change: cope with concurrent mv of identical file.
19390         * build-aux/move-if-change (CMPPROG): Accept environment
19391         variable as an override for `cmp'.
19392         (usage): Document CMPPROG.
19393         Adjust comparison to drop stdout.  Cope with failure of mv if
19394         the target file exists and is identical to the source, for
19395         parallel builds.
19396         Report from H.J. Lu against binutils in PR binutils/12283.
19397
19398 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19399
19400         * users.txt: Mention sharutils.
19401
19402 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19403
19404         * users.txt: Mention OATH Toolkit.
19405
19406 2011-01-27  Bruno Haible  <bruno@clisp.org>
19407
19408         Prepare for supporting FreeBSD 10.
19409         * build-aux/config.libpath: Remove handling of freebsd1*.
19410
19411 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19412
19413         Prepare for supporting FreeBSD 10.
19414         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19415         match FreeBSD 10.0.
19416
19417 2011-01-27  Bruno Haible  <bruno@clisp.org>
19418
19419         vma-iter, get-rusage-as: Add OpenBSD support.
19420         * modules/vma-iter (configure.ac): Test for mquery.
19421         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19422         * lib/vma-iter.c: Include <sys/mman.h>.
19423         (vma_iterate): Add an implementation based on mquery().
19424         * lib/resource-ext.h (get_rusage_as): Update comments.
19425         * lib/get-rusage-as.c: Likewise.
19426         * lib/get-rusage-data.c: Likewise.
19427
19428 2011-01-26  Karl Berry  <karl@gnu.org>
19429
19430         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19431         variables to make it easier to override the makeinfo program used.
19432
19433 2011-01-26  Eric Blake  <eblake@redhat.com>
19434
19435         fcntl: work around Haiku F_DUPFD bugs
19436         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
19437         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
19438         cloexec bit on duplication.
19439         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
19440
19441 2011-01-26  Bruno Haible  <bruno@clisp.org>
19442
19443         Enable memory leak tests on AIX.
19444         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
19445         * tests/test-fprintf-posix3.c (main): Likewise.
19446
19447 2011-01-26  Bruno Haible  <bruno@clisp.org>
19448
19449         Tests for module 'get-rusage-data'.
19450         * modules/get-rusage-data-tests: New file.
19451         * tests/test-get-rusage-data.c: New file.
19452
19453         New module 'get-rusage-data'.
19454         * lib/resource-ext.h (get_rusage_data): New declaration.
19455         * lib/get-rusage-data.c: New file.
19456         * modules/get-rusage-data: New file.
19457
19458 2011-01-25  Bruno Haible  <bruno@clisp.org>
19459
19460         get-rusage-as: Allow for easier testing.
19461         * lib/resource-ext.h (get_rusage_as): Add comment.
19462         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
19463         (main): New function for interactive testing.
19464
19465 2011-01-25  Bruno Haible  <bruno@clisp.org>
19466
19467         vma-iter: Treat Haiku like BeOS.
19468         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
19469         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
19470
19471 2011-01-25  Eric Blake  <eblake@redhat.com>
19472
19473         c-stack: fix regression on cygwin when libsigsegv is present
19474         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
19475
19476 2011-01-24  Bruno Haible  <bruno@clisp.org>
19477
19478         vma-iter: Avoid empty intervals.
19479         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
19480         on an empty interval.
19481
19482 2011-01-24  Jim Meyering  <meyering@redhat.com>
19483
19484         u64: remove unnecessary #include
19485         * lib/u64.h: Don't include <stddef.h>.  It was not used.
19486
19487 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
19488
19489         Allow the user to avoid the HAVE_RAW_DECL_* macros.
19490         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
19491
19492 2011-01-23  Bruno Haible  <bruno@clisp.org>
19493
19494         New module 'vma-iter'.
19495         * lib/vma-iter.h: New file.
19496         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
19497         * modules/vma-iter: New file.
19498         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
19499         for get_rusage_as_via_iterator.
19500         (vma_iterate_callback): New function.
19501         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
19502         * modules/get-rusage-as (Depends-on): Add vma-iter.
19503
19504 2011-01-23  Bruno Haible  <bruno@clisp.org>
19505
19506         uninorm: Tweak includes.
19507         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
19508         Reported by Jim Meyering.
19509
19510 2011-01-23  Bruno Haible  <bruno@clisp.org>
19511
19512         get-rusage-as: Improve on NetBSD.
19513         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
19514         /proc, like on FreeBSD.
19515
19516 2011-01-23  Jim Meyering  <meyering@redhat.com>
19517
19518         xreadlink.h: remove unnecessary #include
19519         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
19520
19521         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
19522         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
19523
19524 2011-01-23  Bruno Haible  <bruno@clisp.org>
19525
19526         get-rusage-as: Fix bug.
19527         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
19528         original limit when aborting the first loop.
19529
19530 2011-01-23  Bruno Haible  <bruno@clisp.org>
19531
19532         wctype: Ensure valid C syntax.
19533         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
19534         unconditionally, instead of gl_NEXT_HEADERS conditionally.
19535
19536 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
19537
19538         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
19539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
19540         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
19541         as they are needed only for configure's test case.
19542         This removes two unnecessary symbols from config.h.
19543
19544         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
19545         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
19546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
19547         AC_CHECK_HEADERS_ONCE on a header that we also invoke
19548         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
19549         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
19550         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
19551         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
19552         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
19553         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
19554         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
19555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19556         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
19557         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
19558         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
19559         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
19560         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
19561         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19562
19563 2011-01-21  Eric Blake  <eblake@redhat.com>
19564
19565         maintainer-makefile: work with older git for submodule check
19566         * top/maint.mk (public-submodule-commit): Rewrite to avoid
19567         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
19568         Reported by Matthias Bolte.
19569
19570         bootstrap: minor portability fixes
19571         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
19572         (usage): Omit leading capital and trailing . on help phrases, per
19573         GNU Coding Standards.
19574         (check_versions, top level): Prefix messages with script name.
19575
19576 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
19577
19578         bootstrap: support --no-git option
19579         * build-aux/bootstrap: Add --no-git option, to be used when
19580         --gnulib-srcdir points to the exact desired checkout.
19581
19582 2011-01-21  Eric Blake  <eblake@redhat.com>
19583
19584         strerror_r-posix: work with glibc 2.13
19585         * lib/strerror_r.c (strerror_r): Fix return type.
19586
19587 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19588             Bruno Haible  <bruno@clisp.org>
19589
19590         uN_strstr: New unit tests.
19591         * modules/unistr/u8-strstr-tests: New file.
19592         * modules/unistr/u16-strstr-tests: New file.
19593         * modules/unistr/u32-strstr-tests: New file.
19594         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
19595         * tests/unistr/test-u8-strstr.c: New file.
19596         * tests/unistr/test-u16-strstr.c: New file.
19597         * tests/unistr/test-u32-strstr.c: New file.
19598
19599 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19600             Bruno Haible  <bruno@clisp.org>
19601
19602         Make uN_strstr functions O(n) worst-case.
19603         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
19604         16-bit and 32-bit unit cases, use the unibyte algorithm from
19605         lib/mbsstr.c.
19606         * lib/unistr/u8-strstr.c: Include <string.h>.
19607         (UNIT_IS_UINT8_T): New macro.
19608         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
19609         (U_STRLEN, U_STRNLEN): New macros.
19610         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
19611         (U_STRLEN, U_STRNLEN): New macros.
19612         * modules/unistr/u8-strstr (Depends-on): Add strstr.
19613         (configure.ac): Update required libunistring version.
19614         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
19615         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
19616         malloca.
19617         (configure.ac): Update required libunistring version.
19618         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
19619         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
19620         malloca.
19621         (configure.ac): Update required libunistring version.
19622
19623 2011-01-21  Pádraig Brady  <P@draigBrady.com>
19624             Bruno Haible  <bruno@clisp.org>
19625
19626         Prepare for faster uN_strstr functions.
19627         * lib/str-kmp.h: Support definable UNITs.
19628         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
19629         needle_len argument.
19630         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
19631         * lib/mbscasestr.c (mbscasestr): Likewise.
19632
19633 2011-01-21  Pádraig Brady <P@draigBrady.com>
19634
19635         malloca-tests: make faster by unsetting MALLOC_PERTURB_
19636         * tests/test-malloca.c (main): Unset the environment variable
19637         to greatly speed up the test.
19638         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
19639         * modules/malloca-tests: Depend on unsetenv.
19640
19641 2011-01-21  Pádraig Brady <P@draigBrady.com>
19642
19643         ignore-value: remove stdint dependency
19644         * lib/ignore-value.h: Remove <stdint.h>
19645         * modules/ignore-value: Remove stdint dependency.
19646
19647 2011-01-21  Jim Meyering  <meyering@redhat.com>
19648
19649         maint.mk: adjust variable name to be consistent with other gl_ vars
19650         * top/maint.mk (gl_public_submodule_commit): Rename the variable
19651         to be lower case.
19652
19653 2011-01-20  Jim Meyering  <meyering@redhat.com>
19654
19655         maint.mk: make "check" depend on public-submodule-commit by default
19656         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
19657
19658 2011-01-20  Bruno Haible  <bruno@clisp.org>
19659
19660         mbfile, mbiter: Complete change from 2008-12-21.
19661         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
19662         * m4/mbiter.m4 (gl_MBITER): Likewise.
19663
19664 2011-01-20  Jim Meyering  <meyering@redhat.com>
19665
19666         init.sh: insert space between each function name and "()"
19667         * tests/init.sh: Make it a little easier to see that a function's
19668         name is "warn_", and not "warn" when looking at the first part of
19669         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
19670
19671 2011-01-20  Jim Meyering  <meyering@redhat.com>
19672
19673         mountlist: clean up code formatting
19674         * lib/mountlist.c (read_file_system_list): Split a long line,
19675         correct bracing style, use NULL in place of "(struct statfs *)0",
19676         don't parenthesize return value, add spaces around "=" and after
19677         ";-in-for-stmt".
19678
19679 2011-01-14  Markus Duft <mduft@gentoo.org>
19680
19681         mountlist: add support for Interix
19682         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
19683         Apply statvfs to all entries of /dev/fs.
19684         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
19685         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
19686
19687 2011-01-20  Jim Meyering  <meyering@redhat.com>
19688
19689         maint.mk: improve the public-submodule-commit rule
19690         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
19691         to suppress printing of its commands... unless V=1.
19692         Add git submodule's --quiet option to suppress printing of e.g.,
19693         "Entering gnulib" output.
19694         "cd" into $(srcdir) before running git submodule.
19695
19696 2011-01-20  Bruno Haible  <bruno@clisp.org>
19697
19698         include_next: Fix bug introduced on 2011-01-18.
19699         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
19700         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
19701         ac_cv_header_... variable if the second argument is not 'check'.
19702         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
19703         gl_NEXT_HEADERS_INTERNAL.
19704
19705 2011-01-20  Bruno Haible  <bruno@clisp.org>
19706
19707         Allow the user to avoid the GNULIB_TEST_* macros.
19708         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
19709         Suggested by Paul Eggert.
19710
19711 2011-01-14  Jim Meyering  <meyering@redhat.com>
19712
19713         bootstrap: avoid failure when there is no .gitmodules file
19714         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
19715         has been assigned to, even when its value is the empty string.
19716         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
19717         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
19718         Reported by John W. Eaton <jwe@gnu.org>.
19719
19720 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
19721
19722         assume <ctype.h>, ..., <time.h> exist
19723         For years gnulib has been assuming the existence of the headers
19724         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
19725         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
19726         them, since they don't appear to be needed.
19727         * README (Portability guidelines): Document this.
19728         * lib/flock.c: Assume <fcntl.h> exists.
19729         * lib/regex_internal.h: Assume <locale.h> exists.
19730         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
19731         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
19732         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
19733         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
19734         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
19735         * m4/regex.m4 (gl_REGEX): Likewise.
19736         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
19737         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
19738         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
19739         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
19740         * tests/test-argp.c: Likewise.
19741         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
19742
19743         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
19744         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
19745         AA_APPLE_UNIVERSAL_BUILD.  See
19746         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
19747         * NEWS: Document this.
19748
19749 2011-01-19  Eric Blake  <eblake@redhat.com>
19750
19751         c-stack: assume stack overflow if SA_SIGINFO unsupported
19752         * lib/c-stack.c (SIGACTION_WORKS): Rename...
19753         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
19754         sigaction will work.
19755         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
19756         behavior match Linux.
19757         * tests/test-c-stack.c (main): Prefer NULL for pointers.
19758
19759         stdbool-tests: accomodate Haiku
19760         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
19761
19762         binary-io: fix O_TEXT on Haiku
19763         * modules/binary-io (Depends-on): Add fcntl-h.
19764         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
19765         than blindly undefining O_TEXT.
19766         Reported by Scott McCreary.
19767
19768 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19769
19770         include_next: do not check for standard headers like stddef.h
19771
19772         I found this problem when modifying Emacs to use gnulib.
19773         I noticed that it added HAVE_STDDEF_H to config.h, even though
19774         gnulib always assumes <stddef.h> exists as per README and this
19775         symbol is unnecessary.
19776         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
19777         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
19778         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
19779         faster for headers like stddef.h that are known to exist.
19780         (gl_CHECK_NEXT_HEADERS): Use it.
19781         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
19782         rather than gl_CHECK_NEXT_HEADERS.
19783         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
19784         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
19785
19786 2011-01-18  Eric Blake  <eblake@redhat.com>
19787
19788         ansi-c++-opt: skip C++ dependency style if C++ is unused
19789         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
19790         tests when we know C++ compilation is not desired.
19791         Reported by Scott McCreary.
19792
19793 2011-01-18  Bruno Haible  <bruno@clisp.org>
19794
19795         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
19796         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
19797         (main): Perform test also when getrlimit and setrlimit don't exist or
19798         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
19799         limiting the address space size using setrlimit, compare the address
19800         space size before and after the the test.
19801         * tests/test-dprintf-posix2.c: Likewise.
19802         * tests/test-fprintf-posix3.sh: Update skip messages.
19803         * tests/test-dprintf-posix2.sh: Likewise.
19804         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
19805         * modules/dprintf-posix-tests (Depends-on): Likewise.
19806         Reported by Bruce Korb <bkorb@gnu.org> and
19807         Gary V. Vaughan <gary@gnu.org>.
19808
19809 2011-01-18  Bruno Haible  <bruno@clisp.org>
19810
19811         get-rusage-as: Improvement for Cygwin.
19812         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
19813         areas that are merely reserved.
19814
19815 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
19816
19817         strftime: remove dependencies on multibyte modules
19818
19819         strftime depended on mbrlen, mbsinit, and wchar, but these modules
19820         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
19821         only if __osf__ is defined, and I suspect OSF doesn't need these
19822         other modules.  If my guess is wrong, we'll need to come up with a
19823         variant of strftime that doesn't need the multibyte modules.
19824
19825         I discovered this problem when attempting modify Emacs to use the
19826         strftime module.  With the previous gnulib, this caused Emacs to
19827         need 31 new files, ranging from lib/config.charset to
19828         m4/wint_t.m4.  This was overkill and I expect would be offputting
19829         to the Emacs maintainers.  After this change, only 6 new files are
19830         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
19831         stdbool.m4, and tm_gmtoff.m4.
19832
19833         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
19834         Suggested by Bruno Haible in
19835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
19836         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
19837         and do not check for wchar.h.
19838         * modules/strftime (Files): Remove m4/mbstate_t.m4.
19839         (Depends-on): Remove mbrlen, mbsinit, wchar.
19840
19841 2011-01-18  Bruno Haible  <bruno@clisp.org>
19842
19843         Tests for module 'get-rusage-as'.
19844         * modules/get-rusage-as-tests: New file.
19845         * tests/test-get-rusage-as.c: New file.
19846
19847         New module 'get-rusage-as'.
19848         * modules/get-rusage-as: New file.
19849         * lib/resource-ext.h: New file.
19850         * lib/get-rusage-as.c: New file.
19851
19852 2011-01-17  Eric Blake  <eblake@redhat.com>
19853
19854         sigaction: relax license from LGPLv3+ to LGPLv2+
19855         * modules/sigaction (License): Relax to LGPLv2+.
19856
19857 2011-01-14  Bruno Haible  <bruno@clisp.org>
19858
19859         filemode: Make function declarations usable in C++ mode.
19860         * lib/filemode.h: Enclose function declarations in extern "C" block.
19861         Reported by John W. Eaton <jwe@gnu.org>.
19862
19863 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
19864
19865         save-cwd: no longer include "xgetcwd.h"
19866         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
19867         This avoids a compilation failure in projects that use save-cwd
19868         without also using the xgetcwd module.
19869
19870 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19871
19872         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
19873         This is so that a program like Emacs, which needs only dtoastr,
19874         does not have to bother with distributing and compiling ftoastr
19875         and ldtoastr.
19876         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
19877         * modules/dtoastr, modules/ldtoastr: New files.
19878         * modules/ftoastr: Now works just for 'float'.
19879         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
19880         (Makefile.am): Remove ftoastr.h (not needed and no effect),
19881         dtoastr.c, ldtoastr.c.
19882
19883 2011-01-11  Jim Meyering  <meyering@redhat.com>
19884
19885         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
19886         There is no need to work around the lack of the fchdir function,
19887         since gnulib can now provide a replacement when required.
19888         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
19889         * modules/save-cwd (Depends-on): Add fchdir.
19890
19891 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
19892
19893         openat, save-cwd: avoid xmalloc
19894
19895         This removes a direct (but undocumented) dependency of openat on
19896         xalloc, along with an indirect dependency via save-cwd.  It also
19897         removes a dependency of save-cwd on xgetcwd, and thereby
19898         indirectly on xalloc.  This change causes the openat substitute
19899         to fall back on save_cwd when memory is tight, and for save_cwd to
19900         fail instead of dying when memory is tight, but that's good enough.
19901         Problem and initial idea for fix reported by Bastien Roucaries in
19902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
19903
19904         * lib/openat-proc.c: Include stdlib.h (for malloc), not
19905         xalloc.h (for xmalloc).
19906         (openat_proc_name): Use malloc, not xmalloc.
19907         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
19908         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
19909
19910         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
19911         This avoids heap allocation for file names whose lengths are in
19912         the range 512..1023, with the upper bound increasing to at most
19913         4031 depending on the platform's PATH_MAX.  (We do not want
19914         pathmax.h here as it might supply a non-constant PATH_MAX.)
19915         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
19916         Perhaps they should be moved to malloca.h?
19917         (OPENAT_BUFFER_SIZE): Use them.
19918
19919 2011-01-10  Bruno Haible  <bruno@clisp.org>
19920
19921         doc: Update users.txt.
19922         * users.txt: Add recutils.
19923
19924 2011-01-09  Karl Berry  <karl@gnu.org>
19925
19926         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
19927
19928         * doc/configmake.texi: New file.
19929         * doc/gnulib.texi: Include it.
19930         * modules/configmake: Move documentation from here.
19931
19932 2011-01-09  Bruno Haible  <bruno@clisp.org>
19933
19934         Update to Unicode 6.0.0.
19935         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
19936         (get_lbp): Update for Unicode 6.0.0.
19937         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
19938         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
19939         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
19940         U+11001, U+11038..U+11046. Remove U+06DE.
19941         (uc_width): Fix bounds of planes.
19942         * tests/uniwidth/test-uc_width2.sh: Same updates as in
19943         lib/uniwidth/width.c.
19944         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
19945         trailing whitespace removed.
19946         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
19947         without comments, but with the original copyright notice.
19948         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
19949         * lib/unicase/ignorable.h: Likewise.
19950         * lib/unicase/tocasefold.h: Likewise.
19951         * lib/unicase/tolower.h: Likewise.
19952         * lib/unicase/totitle.h: Likewise.
19953         * lib/unicase/toupper.h: Likewise.
19954         * lib/unictype/bidi_of.h: Likewise.
19955         * lib/unictype/blocks.h: Likewise.
19956         * lib/unictype/categ_C.h: Likewise.
19957         * lib/unictype/categ_Cn.h: Likewise.
19958         * lib/unictype/categ_L.h: Likewise.
19959         * lib/unictype/categ_Ll.h: Likewise.
19960         * lib/unictype/categ_Lm.h: Likewise.
19961         * lib/unictype/categ_Lo.h: Likewise.
19962         * lib/unictype/categ_Lu.h: Likewise.
19963         * lib/unictype/categ_M.h: Likewise.
19964         * lib/unictype/categ_Mc.h: Likewise.
19965         * lib/unictype/categ_Me.h: Likewise.
19966         * lib/unictype/categ_Mn.h: Likewise.
19967         * lib/unictype/categ_N.h: Likewise.
19968         * lib/unictype/categ_Nd.h: Likewise.
19969         * lib/unictype/categ_No.h: Likewise.
19970         * lib/unictype/categ_P.h: Likewise.
19971         * lib/unictype/categ_Po.h: Likewise.
19972         * lib/unictype/categ_S.h: Likewise.
19973         * lib/unictype/categ_Sc.h: Likewise.
19974         * lib/unictype/categ_Sk.h: Likewise.
19975         * lib/unictype/categ_Sm.h: Likewise.
19976         * lib/unictype/categ_So.h: Likewise.
19977         * lib/unictype/categ_of.h: Likewise.
19978         * lib/unictype/combining.h: Likewise.
19979         * lib/unictype/ctype_alnum.h: Likewise.
19980         * lib/unictype/ctype_alpha.h: Likewise.
19981         * lib/unictype/ctype_graph.h: Likewise.
19982         * lib/unictype/ctype_lower.h: Likewise.
19983         * lib/unictype/ctype_print.h: Likewise.
19984         * lib/unictype/ctype_punct.h: Likewise.
19985         * lib/unictype/ctype_upper.h: Likewise.
19986         * lib/unictype/decdigit.h: Likewise.
19987         * lib/unictype/digit.h: Likewise.
19988         * lib/unictype/numeric.h: Likewise.
19989         * lib/unictype/pr_alphabetic.h: Likewise.
19990         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19991         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19992         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19993         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19994         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19995         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19996         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19997         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19998         * lib/unictype/pr_case_ignorable.h: Likewise.
19999         * lib/unictype/pr_cased.h: Likewise.
20000         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20001         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20002         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20003         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20004         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20005         * lib/unictype/pr_combining.h: Likewise.
20006         * lib/unictype/pr_composite.h: Likewise.
20007         * lib/unictype/pr_currency_symbol.h: Likewise.
20008         * lib/unictype/pr_decimal_digit.h: Likewise.
20009         * lib/unictype/pr_deprecated.h: Likewise.
20010         * lib/unictype/pr_format_control.h: Likewise.
20011         * lib/unictype/pr_grapheme_base.h: Likewise.
20012         * lib/unictype/pr_grapheme_extend.h: Likewise.
20013         * lib/unictype/pr_grapheme_link.h: Likewise.
20014         * lib/unictype/pr_id_continue.h: Likewise.
20015         * lib/unictype/pr_id_start.h: Likewise.
20016         * lib/unictype/pr_ideographic.h: Likewise.
20017         * lib/unictype/pr_lowercase.h: Likewise.
20018         * lib/unictype/pr_math.h: Likewise.
20019         * lib/unictype/pr_numeric.h: Likewise.
20020         * lib/unictype/pr_other_alphabetic.h: Likewise.
20021         * lib/unictype/pr_other_id_continue.h: Likewise.
20022         * lib/unictype/pr_other_math.h: Likewise.
20023         * lib/unictype/pr_punctuation.h: Likewise.
20024         * lib/unictype/pr_sentence_terminal.h: Likewise.
20025         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20026         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20027         * lib/unictype/pr_unified_ideograph.h: Likewise.
20028         * lib/unictype/pr_uppercase.h: Likewise.
20029         * lib/unictype/pr_xid_continue.h: Likewise.
20030         * lib/unictype/pr_xid_start.h: Likewise.
20031         * lib/unictype/scripts.h: Likewise.
20032         * lib/unictype/scripts_byname.gperf: Likewise.
20033         * lib/unictype/sy_java_ident.h: Likewise.
20034         * lib/unigbrk/gbrkprop.h: Likewise.
20035         * lib/unilbrk/lbrkprop1.h: Likewise.
20036         * lib/unilbrk/lbrkprop2.h: Likewise.
20037         * lib/uninorm/decomposition-table2.h: Likewise.
20038         * lib/uniwbrk/wbrkprop.h: Likewise.
20039         * tests/unicase/test-cased.c: Likewise.
20040         * tests/unicase/test-ignorable.c: Likewise.
20041         * tests/unicase/test-uc_tolower.c: Likewise.
20042         * tests/unicase/test-uc_totitle.c: Likewise.
20043         * tests/unicase/test-uc_toupper.c: Likewise.
20044         * tests/unictype/test-categ_C.c: Likewise.
20045         * tests/unictype/test-categ_Cn.c: Likewise.
20046         * tests/unictype/test-categ_L.c: Likewise.
20047         * tests/unictype/test-categ_Ll.c: Likewise.
20048         * tests/unictype/test-categ_Lm.c: Likewise.
20049         * tests/unictype/test-categ_Lo.c: Likewise.
20050         * tests/unictype/test-categ_Lu.c: Likewise.
20051         * tests/unictype/test-categ_M.c: Likewise.
20052         * tests/unictype/test-categ_Mc.c: Likewise.
20053         * tests/unictype/test-categ_Me.c: Likewise.
20054         * tests/unictype/test-categ_Mn.c: Likewise.
20055         * tests/unictype/test-categ_N.c: Likewise.
20056         * tests/unictype/test-categ_Nd.c: Likewise.
20057         * tests/unictype/test-categ_No.c: Likewise.
20058         * tests/unictype/test-categ_P.c: Likewise.
20059         * tests/unictype/test-categ_Po.c: Likewise.
20060         * tests/unictype/test-categ_S.c: Likewise.
20061         * tests/unictype/test-categ_Sc.c: Likewise.
20062         * tests/unictype/test-categ_Sk.c: Likewise.
20063         * tests/unictype/test-categ_Sm.c: Likewise.
20064         * tests/unictype/test-categ_So.c: Likewise.
20065         * tests/unictype/test-ctype_alnum.c: Likewise.
20066         * tests/unictype/test-ctype_alpha.c: Likewise.
20067         * tests/unictype/test-ctype_graph.c: Likewise.
20068         * tests/unictype/test-ctype_lower.c: Likewise.
20069         * tests/unictype/test-ctype_print.c: Likewise.
20070         * tests/unictype/test-ctype_punct.c: Likewise.
20071         * tests/unictype/test-ctype_upper.c: Likewise.
20072         * tests/unictype/test-decdigit.h: Likewise.
20073         * tests/unictype/test-digit.h: Likewise.
20074         * tests/unictype/test-numeric.h: Likewise.
20075         * tests/unictype/test-pr_alphabetic.c: Likewise.
20076         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20077         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20078         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20079         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20080         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20081         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20082         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20083         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20084         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20085         * tests/unictype/test-pr_cased.c: Likewise.
20086         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20087         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20088         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20089         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20090         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20091         * tests/unictype/test-pr_combining.c: Likewise.
20092         * tests/unictype/test-pr_composite.c: Likewise.
20093         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20094         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20095         * tests/unictype/test-pr_deprecated.c: Likewise.
20096         * tests/unictype/test-pr_format_control.c: Likewise.
20097         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20098         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20099         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20100         * tests/unictype/test-pr_id_continue.c: Likewise.
20101         * tests/unictype/test-pr_id_start.c: Likewise.
20102         * tests/unictype/test-pr_ideographic.c: Likewise.
20103         * tests/unictype/test-pr_lowercase.c: Likewise.
20104         * tests/unictype/test-pr_math.c: Likewise.
20105         * tests/unictype/test-pr_numeric.c: Likewise.
20106         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20107         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20108         * tests/unictype/test-pr_other_math.c: Likewise.
20109         * tests/unictype/test-pr_punctuation.c: Likewise.
20110         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20111         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20112         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20113         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20114         * tests/unictype/test-pr_uppercase.c: Likewise.
20115         * tests/unictype/test-pr_xid_continue.c: Likewise.
20116         * tests/unictype/test-pr_xid_start.c: Likewise.
20117         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20118         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20119         changes.
20120         * lib/unictype/categ_Cc.h: Likewise.
20121         * lib/unictype/categ_Cf.h: Likewise.
20122         * lib/unictype/categ_Co.h: Likewise.
20123         * lib/unictype/categ_Cs.h: Likewise.
20124         * lib/unictype/categ_Lt.h: Likewise.
20125         * lib/unictype/categ_Nl.h: Likewise.
20126         * lib/unictype/categ_Pc.h: Likewise.
20127         * lib/unictype/categ_Pd.h: Likewise.
20128         * lib/unictype/categ_Pe.h: Likewise.
20129         * lib/unictype/categ_Pf.h: Likewise.
20130         * lib/unictype/categ_Pi.h: Likewise.
20131         * lib/unictype/categ_Ps.h: Likewise.
20132         * lib/unictype/categ_Z.h: Likewise.
20133         * lib/unictype/categ_Zl.h: Likewise.
20134         * lib/unictype/categ_Zp.h: Likewise.
20135         * lib/unictype/categ_Zs.h: Likewise.
20136         * lib/unictype/ctype_blank.h: Likewise.
20137         * lib/unictype/ctype_cntrl.h: Likewise.
20138         * lib/unictype/ctype_digit.h: Likewise.
20139         * lib/unictype/ctype_space.h: Likewise.
20140         * lib/unictype/ctype_xdigit.h: Likewise.
20141         * lib/unictype/mirror.h: Likewise.
20142         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20143         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20144         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20145         * lib/unictype/pr_bidi_control.h: Likewise.
20146         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20147         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20148         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20149         * lib/unictype/pr_bidi_pdf.h: Likewise.
20150         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20151         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20152         * lib/unictype/pr_dash.h: Likewise.
20153         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20154         * lib/unictype/pr_diacritic.h: Likewise.
20155         * lib/unictype/pr_extender.h: Likewise.
20156         * lib/unictype/pr_hex_digit.h: Likewise.
20157         * lib/unictype/pr_hyphen.h: Likewise.
20158         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20159         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20160         * lib/unictype/pr_ignorable_control.h: Likewise.
20161         * lib/unictype/pr_iso_control.h: Likewise.
20162         * lib/unictype/pr_join_control.h: Likewise.
20163         * lib/unictype/pr_left_of_pair.h: Likewise.
20164         * lib/unictype/pr_line_separator.h: Likewise.
20165         * lib/unictype/pr_logical_order_exception.h: Likewise.
20166         * lib/unictype/pr_non_break.h: Likewise.
20167         * lib/unictype/pr_not_a_character.h: Likewise.
20168         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20169         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20170         * lib/unictype/pr_other_id_start.h: Likewise.
20171         * lib/unictype/pr_other_lowercase.h: Likewise.
20172         * lib/unictype/pr_other_uppercase.h: Likewise.
20173         * lib/unictype/pr_paired_punctuation.h: Likewise.
20174         * lib/unictype/pr_paragraph_separator.h: Likewise.
20175         * lib/unictype/pr_pattern_syntax.h: Likewise.
20176         * lib/unictype/pr_pattern_white_space.h: Likewise.
20177         * lib/unictype/pr_private_use.h: Likewise.
20178         * lib/unictype/pr_quotation_mark.h: Likewise.
20179         * lib/unictype/pr_radical.h: Likewise.
20180         * lib/unictype/pr_soft_dotted.h: Likewise.
20181         * lib/unictype/pr_space.h: Likewise.
20182         * lib/unictype/pr_titlecase.h: Likewise.
20183         * lib/unictype/pr_variation_selector.h: Likewise.
20184         * lib/unictype/pr_white_space.h: Likewise.
20185         * lib/unictype/pr_zero_width.h: Likewise.
20186         * lib/unictype/sy_c_ident.h: Likewise.
20187         * lib/unictype/sy_c_whitespace.h: Likewise.
20188         * lib/unictype/sy_java_whitespace.h: Likewise.
20189         * lib/uninorm/composition-table.gperf: Likewise.
20190         * lib/uninorm/decomposition-table1.h: Likewise.
20191         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20192         LB8.
20193         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20194         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20195         * modules/unictype/*: Bump version number of expected libunistring
20196         version.
20197
20198 2011-01-09  Bruno Haible  <bruno@clisp.org>
20199
20200         Update to Unicode 5.2.0.
20201         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20202         trailing whitespace removed.
20203
20204 2011-01-09  Bruno Haible  <bruno@clisp.org>
20205
20206         New Unicode character properties, from Unicode 5.2.0.
20207         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20208         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20209         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20210         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20211         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20212         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20213         uc_is_property_cased, uc_is_property_case_ignorable,
20214         uc_is_property_changes_when_lowercased,
20215         uc_is_property_changes_when_uppercased,
20216         uc_is_property_changes_when_titlecased,
20217         uc_is_property_changes_when_casefolded,
20218         uc_is_property_changes_when_casemapped): New declarations.
20219         * lib/unictype/pr_byname.gperf: Add the new properties.
20220         * modules/unictype/property-byname (Depends-on): Depend on the new
20221         properties modules.
20222         * modules/unictype/property-all (Depends-on): Likewise.
20223         * MODULES.html.sh (Unicode string functions): Add
20224         unictype/property-case-ignorable, unictype/property-cased,
20225         unictype/property-changes-when-casefolded,
20226         unictype/property-changes-when-casemapped,
20227         unictype/property-changes-when-lowercased,
20228         unictype/property-changes-when-titlecased,
20229         unictype/property-changes-when-uppercased.
20230
20231         New module 'unictype/property-changes-when-casemapped'.
20232         * modules/unictype/property-changes-when-casemapped: New file.
20233         * lib/unictype/pr_changes_when_casemapped.c: New file.
20234         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20235         generated by gen-uni-tables.
20236         * modules/unictype/property-changes-when-casemapped-tests: New file.
20237         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20238         automatically generated by gen-uni-tables.
20239
20240         New module 'unictype/property-changes-when-casefolded'.
20241         * modules/unictype/property-changes-when-casefolded: New file.
20242         * lib/unictype/pr_changes_when_casefolded.c: New file.
20243         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20244         generated by gen-uni-tables.
20245         * modules/unictype/property-changes-when-casefolded-tests: New file.
20246         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20247         automatically generated by gen-uni-tables.
20248
20249         New module 'unictype/property-changes-when-titlecased'.
20250         * modules/unictype/property-changes-when-titlecased: New file.
20251         * lib/unictype/pr_changes_when_titlecased.c: New file.
20252         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20253         generated by gen-uni-tables.
20254         * modules/unictype/property-changes-when-titlecased-tests: New file.
20255         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20256         automatically generated by gen-uni-tables.
20257
20258         New module 'unictype/property-changes-when-uppercased'.
20259         * modules/unictype/property-changes-when-uppercased: New file.
20260         * lib/unictype/pr_changes_when_uppercased.c: New file.
20261         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20262         generated by gen-uni-tables.
20263         * modules/unictype/property-changes-when-uppercased-tests: New file.
20264         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20265         automatically generated by gen-uni-tables.
20266
20267         New module 'unictype/property-changes-when-lowercased'.
20268         * modules/unictype/property-changes-when-lowercased: New file.
20269         * lib/unictype/pr_changes_when_lowercased.c: New file.
20270         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20271         generated by gen-uni-tables.
20272         * modules/unictype/property-changes-when-lowercased-tests: New file.
20273         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20274         automatically generated by gen-uni-tables.
20275
20276         New module 'unictype/property-case-ignorable'.
20277         * modules/unictype/property-case-ignorable: New file.
20278         * lib/unictype/pr_case_ignorable.c: New file.
20279         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20280         by gen-uni-tables.
20281         * modules/unictype/property-case-ignorable-tests: New file.
20282         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20283         generated by gen-uni-tables.
20284
20285         New module 'unictype/property-cased'.
20286         * modules/unictype/property-cased: New file.
20287         * lib/unictype/pr_cased.c: New file.
20288         * lib/unictype/pr_cased.h: New file, automatically generated by
20289         gen-uni-tables.
20290         * modules/unictype/property-cased-tests: New file.
20291         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20292         gen-uni-tables.
20293
20294 2011-01-09  Bruno Haible  <bruno@clisp.org>
20295
20296         Update to Unicode 5.2.0.
20297         * lib/gen-uni-tables.c (output_predicate, output_category,
20298         output_combclass, output_bidi_category, output_decimal_digit_test,
20299         output_decimal_digit, output_digit_test, output_digit,
20300         output_numeric_test, output_numeric, output_mirror, output_scripts,
20301         output_scripts_byname, output_blocks, output_ident_category): Fix
20302         comment header.
20303         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20304         get_wbp.
20305         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20306         items.
20307         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20308         Changes_When_Lowercased, Changes_When_Uppercased,
20309         Changes_When_Titlecased, Changes_When_Casefolded,
20310         Changes_When_Casemapped.
20311         (is_property_alphabetic, is_property_default_ignorable_code_point):
20312         Update for Unicode 5.2.0.
20313         (is_property_cased, is_property_case_ignorable,
20314         is_property_changes_when_lowercased,
20315         is_property_changes_when_uppercased,
20316         is_property_changes_when_titlecased,
20317         is_property_changes_when_casefolded,
20318         is_property_changes_when_casemapped): New functions.
20319         (output_properties): Output also the properties cased, case_ignorable,
20320         changes_when_lowercased, changes_when_uppercased,
20321         changes_when_titlecased, changes_when_casefolded,
20322         changes_when_casemapped.
20323         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20324         Unicode TR#11 revision 17 -> 19.
20325         (LBP_CP): New enumeration value.
20326         (LBP_*): Adjust values accordingly.
20327         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20328         TR#14 revision 22 -> 24.
20329         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20330         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20331         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20332         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20333         is_WBP_MIDLETTER.
20334         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20335         the code1 and code2 of each composition rule.
20336         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20337         * lib/unicase/ignorable.h: Likewise.
20338         * lib/unicase/tocasefold.h: Likewise.
20339         * lib/unicase/tolower.h: Likewise.
20340         * lib/unicase/totitle.h: Likewise.
20341         * lib/unicase/toupper.h: Likewise.
20342         * lib/unictype/bidi_of.h: Likewise.
20343         * lib/unictype/blocks.h: Likewise.
20344         * lib/unictype/categ_C.h: Likewise.
20345         * lib/unictype/categ_Cf.h: Likewise.
20346         * lib/unictype/categ_Cn.h: Likewise.
20347         * lib/unictype/categ_L.h: Likewise.
20348         * lib/unictype/categ_Ll.h: Likewise.
20349         * lib/unictype/categ_Lm.h: Likewise.
20350         * lib/unictype/categ_Lo.h: Likewise.
20351         * lib/unictype/categ_Lu.h: Likewise.
20352         * lib/unictype/categ_M.h: Likewise.
20353         * lib/unictype/categ_Mc.h: Likewise.
20354         * lib/unictype/categ_Mn.h: Likewise.
20355         * lib/unictype/categ_N.h: Likewise.
20356         * lib/unictype/categ_Nd.h: Likewise.
20357         * lib/unictype/categ_Nl.h: Likewise.
20358         * lib/unictype/categ_No.h: Likewise.
20359         * lib/unictype/categ_P.h: Likewise.
20360         * lib/unictype/categ_Pd.h: Likewise.
20361         * lib/unictype/categ_Po.h: Likewise.
20362         * lib/unictype/categ_S.h: Likewise.
20363         * lib/unictype/categ_Sc.h: Likewise.
20364         * lib/unictype/categ_So.h: Likewise.
20365         * lib/unictype/categ_of.h: Likewise.
20366         * lib/unictype/combining.h: Likewise.
20367         * lib/unictype/ctype_alnum.h: Likewise.
20368         * lib/unictype/ctype_alpha.h: Likewise.
20369         * lib/unictype/ctype_graph.h: Likewise.
20370         * lib/unictype/ctype_lower.h: Likewise.
20371         * lib/unictype/ctype_print.h: Likewise.
20372         * lib/unictype/ctype_punct.h: Likewise.
20373         * lib/unictype/ctype_upper.h: Likewise.
20374         * lib/unictype/decdigit.h: Likewise.
20375         * lib/unictype/digit.h: Likewise.
20376         * lib/unictype/numeric.h: Likewise.
20377         * lib/unictype/pr_alphabetic.h: Likewise.
20378         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20379         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20380         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20381         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20382         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20383         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20384         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20385         * lib/unictype/pr_combining.h: Likewise.
20386         * lib/unictype/pr_composite.h: Likewise.
20387         * lib/unictype/pr_currency_symbol.h: Likewise.
20388         * lib/unictype/pr_dash.h: Likewise.
20389         * lib/unictype/pr_decimal_digit.h: Likewise.
20390         * lib/unictype/pr_deprecated.h: Likewise.
20391         * lib/unictype/pr_diacritic.h: Likewise.
20392         * lib/unictype/pr_extender.h: Likewise.
20393         * lib/unictype/pr_grapheme_base.h: Likewise.
20394         * lib/unictype/pr_grapheme_extend.h: Likewise.
20395         * lib/unictype/pr_grapheme_link.h: Likewise.
20396         * lib/unictype/pr_id_continue.h: Likewise.
20397         * lib/unictype/pr_id_start.h: Likewise.
20398         * lib/unictype/pr_ideographic.h: Likewise.
20399         * lib/unictype/pr_ignorable_control.h: Likewise.
20400         * lib/unictype/pr_logical_order_exception.h: Likewise.
20401         * lib/unictype/pr_lowercase.h: Likewise.
20402         * lib/unictype/pr_numeric.h: Likewise.
20403         * lib/unictype/pr_other_alphabetic.h: Likewise.
20404         * lib/unictype/pr_punctuation.h: Likewise.
20405         * lib/unictype/pr_sentence_terminal.h: Likewise.
20406         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20407         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20408         * lib/unictype/pr_unified_ideograph.h: Likewise.
20409         * lib/unictype/pr_uppercase.h: Likewise.
20410         * lib/unictype/pr_xid_continue.h: Likewise.
20411         * lib/unictype/pr_xid_start.h: Likewise.
20412         * lib/unictype/pr_zero_width.h: Likewise.
20413         * lib/unictype/scripts.h: Likewise.
20414         * lib/unictype/scripts_byname.gperf: Likewise.
20415         * lib/unictype/sy_java_ident.h: Likewise.
20416         * lib/unigbrk/gbrkprop.h: Likewise.
20417         * lib/unilbrk/lbrkprop1.h: Likewise.
20418         * lib/unilbrk/lbrkprop2.h: Likewise.
20419         * lib/unilbrk/lbrktables.h: Likewise.
20420         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20421         LBP_CP. Implement rule LB30.
20422         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20423         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20424         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20425         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20426         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20427         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20428         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20429         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20430         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20431         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20432         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20433         bits instead of 16 bits in the code1 and code2 of each composition
20434         rule.
20435         (uc_composition): Update for Unicode 5.2.0.
20436         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
20437         * lib/uninorm/decomposition-table2.h: Likewise.
20438         * lib/uniwbrk/wbrkprop.h: Likewise.
20439         * tests/unicase/test-cased.c: Likewise.
20440         * tests/unicase/test-ignorable.c: Likewise.
20441         * tests/unicase/test-uc_tolower.c: Likewise.
20442         * tests/unicase/test-uc_totitle.c: Likewise.
20443         * tests/unicase/test-uc_toupper.c: Likewise.
20444         * tests/unictype/test-categ_C.c: Likewise.
20445         * tests/unictype/test-categ_Cf.c: Likewise.
20446         * tests/unictype/test-categ_Cn.c: Likewise.
20447         * tests/unictype/test-categ_L.c: Likewise.
20448         * tests/unictype/test-categ_Ll.c: Likewise.
20449         * tests/unictype/test-categ_Lm.c: Likewise.
20450         * tests/unictype/test-categ_Lo.c: Likewise.
20451         * tests/unictype/test-categ_Lu.c: Likewise.
20452         * tests/unictype/test-categ_M.c: Likewise.
20453         * tests/unictype/test-categ_Mc.c: Likewise.
20454         * tests/unictype/test-categ_Mn.c: Likewise.
20455         * tests/unictype/test-categ_N.c: Likewise.
20456         * tests/unictype/test-categ_Nd.c: Likewise.
20457         * tests/unictype/test-categ_Nl.c: Likewise.
20458         * tests/unictype/test-categ_No.c: Likewise.
20459         * tests/unictype/test-categ_P.c: Likewise.
20460         * tests/unictype/test-categ_Pd.c: Likewise.
20461         * tests/unictype/test-categ_Po.c: Likewise.
20462         * tests/unictype/test-categ_S.c: Likewise.
20463         * tests/unictype/test-categ_Sc.c: Likewise.
20464         * tests/unictype/test-categ_So.c: Likewise.
20465         * tests/unictype/test-ctype_alnum.c: Likewise.
20466         * tests/unictype/test-ctype_alpha.c: Likewise.
20467         * tests/unictype/test-ctype_graph.c: Likewise.
20468         * tests/unictype/test-ctype_lower.c: Likewise.
20469         * tests/unictype/test-ctype_print.c: Likewise.
20470         * tests/unictype/test-ctype_punct.c: Likewise.
20471         * tests/unictype/test-ctype_upper.c: Likewise.
20472         * tests/unictype/test-decdigit.h: Likewise.
20473         * tests/unictype/test-digit.h: Likewise.
20474         * tests/unictype/test-numeric.h: Likewise.
20475         * tests/unictype/test-pr_alphabetic.c: Likewise.
20476         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20477         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20478         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
20479         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20480         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20481         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20482         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20483         * tests/unictype/test-pr_combining.c: Likewise.
20484         * tests/unictype/test-pr_composite.c: Likewise.
20485         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20486         * tests/unictype/test-pr_dash.c: Likewise.
20487         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20488         * tests/unictype/test-pr_deprecated.c: Likewise.
20489         * tests/unictype/test-pr_diacritic.c: Likewise.
20490         * tests/unictype/test-pr_extender.c: Likewise.
20491         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20492         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20493         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20494         * tests/unictype/test-pr_id_continue.c: Likewise.
20495         * tests/unictype/test-pr_id_start.c: Likewise.
20496         * tests/unictype/test-pr_ideographic.c: Likewise.
20497         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20498         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20499         * tests/unictype/test-pr_lowercase.c: Likewise.
20500         * tests/unictype/test-pr_numeric.c: Likewise.
20501         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20502         * tests/unictype/test-pr_punctuation.c: Likewise.
20503         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20504         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20505         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20506         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20507         * tests/unictype/test-pr_uppercase.c: Likewise.
20508         * tests/unictype/test-pr_xid_continue.c: Likewise.
20509         * tests/unictype/test-pr_xid_start.c: Likewise.
20510         * tests/unictype/test-pr_zero_width.c: Likewise.
20511         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20512         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
20513         changed behaviour: line breaking is now disallowed between a letter
20514         or '=' and '('.
20515         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20516         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20517         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
20518         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
20519         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20520         lib/uniwidth/width.c.
20521         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
20522         without comments, but with the original copyright notice.
20523         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20524         changes.
20525         * lib/unictype/categ_Cc.h: Likewise.
20526         * lib/unictype/categ_Co.h: Likewise.
20527         * lib/unictype/categ_Cs.h: Likewise.
20528         * lib/unictype/categ_Lt.h: Likewise.
20529         * lib/unictype/categ_Me.h: Likewise.
20530         * lib/unictype/categ_Pc.h: Likewise.
20531         * lib/unictype/categ_Pe.h: Likewise.
20532         * lib/unictype/categ_Pf.h: Likewise.
20533         * lib/unictype/categ_Pi.h: Likewise.
20534         * lib/unictype/categ_Ps.h: Likewise.
20535         * lib/unictype/categ_Sk.h: Likewise.
20536         * lib/unictype/categ_Sm.h: Likewise.
20537         * lib/unictype/categ_Z.h: Likewise.
20538         * lib/unictype/categ_Zl.h: Likewise.
20539         * lib/unictype/categ_Zp.h: Likewise.
20540         * lib/unictype/categ_Zs.h: Likewise.
20541         * lib/unictype/ctype_blank.h: Likewise.
20542         * lib/unictype/ctype_cntrl.h: Likewise.
20543         * lib/unictype/ctype_digit.h: Likewise.
20544         * lib/unictype/ctype_space.h: Likewise.
20545         * lib/unictype/ctype_xdigit.h: Likewise.
20546         * lib/unictype/mirror.h: Likewise.
20547         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20548         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20549         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20550         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20551         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20552         * lib/unictype/pr_bidi_control.h: Likewise.
20553         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20554         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20555         * lib/unictype/pr_bidi_pdf.h: Likewise.
20556         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20557         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20558         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20559         * lib/unictype/pr_format_control.h: Likewise.
20560         * lib/unictype/pr_hex_digit.h: Likewise.
20561         * lib/unictype/pr_hyphen.h: Likewise.
20562         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20563         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20564         * lib/unictype/pr_iso_control.h: Likewise.
20565         * lib/unictype/pr_join_control.h: Likewise.
20566         * lib/unictype/pr_left_of_pair.h: Likewise.
20567         * lib/unictype/pr_line_separator.h: Likewise.
20568         * lib/unictype/pr_math.h: Likewise.
20569         * lib/unictype/pr_non_break.h: Likewise.
20570         * lib/unictype/pr_not_a_character.h: Likewise.
20571         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20572         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20573         * lib/unictype/pr_other_id_continue.h: Likewise.
20574         * lib/unictype/pr_other_id_start.h: Likewise.
20575         * lib/unictype/pr_other_lowercase.h: Likewise.
20576         * lib/unictype/pr_other_math.h: Likewise.
20577         * lib/unictype/pr_other_uppercase.h: Likewise.
20578         * lib/unictype/pr_paired_punctuation.h: Likewise.
20579         * lib/unictype/pr_paragraph_separator.h: Likewise.
20580         * lib/unictype/pr_pattern_syntax.h: Likewise.
20581         * lib/unictype/pr_pattern_white_space.h: Likewise.
20582         * lib/unictype/pr_private_use.h: Likewise.
20583         * lib/unictype/pr_quotation_mark.h: Likewise.
20584         * lib/unictype/pr_radical.h: Likewise.
20585         * lib/unictype/pr_soft_dotted.h: Likewise.
20586         * lib/unictype/pr_space.h: Likewise.
20587         * lib/unictype/pr_titlecase.h: Likewise.
20588         * lib/unictype/pr_variation_selector.h: Likewise.
20589         * lib/unictype/pr_white_space.h: Likewise.
20590         * lib/unictype/sy_c_ident.h: Likewise.
20591         * lib/unictype/sy_c_whitespace.h: Likewise.
20592         * lib/unictype/sy_java_whitespace.h: Likewise.
20593         * modules/uni*/*: Bump version number of expected libunistring version.
20594         Reported by Simon Josefsson.
20595
20596 2011-01-09  Karl Heuer  <kwzh@gnu.org>
20597
20598         useless-if-before-free: fix typo in --help and make the internal,
20599         automatic version date update process work once again.
20600         --help output contained a NUL character instead of the
20601         backslash-zero that was intended.  Also, the "must lie within
20602         the first 8 lines" line is on line 9, and hence not getting
20603         automatically updated.
20604         * build-aux/useless-if-before-free: Fix the former by adding a
20605         backslash, and the latter by condensing the three lines of what-it-does
20606         to a single line, leaving one line of slack for the future.
20607
20608 2011-01-09  Bruno Haible  <bruno@clisp.org>
20609
20610         uniwidth/width: Fix width of U+1D173..U+1D17A.
20611         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
20612         symbolic_width, output_width_property_test): New functions.
20613         (main): Invoke output_nonspacing_property, output_width_property_test.
20614         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
20615         U+1D173..U+1D17A.
20616         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
20617         1.
20618         * modules/uniwidth/*: Bump version number of expected libunistring
20619         version.
20620         * modules/unilbrk/*: Likewise.
20621
20622 2011-01-08  Bruno Haible  <bruno@clisp.org>
20623
20624         uninorm tests: Preserve copyright of Unicode data file.
20625         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
20626         Mention modifications.
20627
20628 2011-01-08  Bruno Haible  <bruno@clisp.org>
20629
20630         gen-uni-tables: Prepare for Unicode 5.2.0.
20631         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
20632         (debug_output_lbp, output_lbp): Update.
20633
20634 2011-01-08  Bruno Haible  <bruno@clisp.org>
20635
20636         unilbrk: Clarify gen-uni-tables.c code.
20637         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
20638         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
20639         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
20640
20641 2011-01-07  Bruno Haible  <bruno@clisp.org>
20642
20643         strtod: Restore errno when successfully parsing Infinity or NaN.
20644         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
20645         restore the original errno.
20646
20647 2011-01-07  Bruno Haible  <bruno@clisp.org>
20648
20649         remove test: Avoid failure on HP-UX 11.
20650         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
20651
20652 2011-01-07  Bruno Haible  <bruno@clisp.org>
20653
20654         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
20655         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
20656         error code.
20657
20658 2011-01-07  Pádraig Brady <P@draigBrady.com>
20659
20660         ignore-value: fixup comments, and add Eric Blake
20661         as an author since he rewrote the macros.
20662         * lib/ignore-value.h (ignore_value):  State that
20663         we now support aggregates.  Also specify exactly
20664         when the GCC warn_unused_result feature was added.
20665
20666 2011-01-06  Eric Blake  <eblake@redhat.com>
20667
20668         ignore-value: support aggregate types
20669         * lib/ignore-value.h (ignore_value): Provide separate gcc
20670         definition.
20671         * modules/ignore-value-tests: New test module.
20672         * tests/test-ignore-value.c: New test.
20673
20674         maint.mk: improve sc_prohibit_strcmp regex
20675         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
20676         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
20677         definition of STRNEQ.
20678
20679         signal: work around Haiku issue with SIGBUS
20680         * lib/siglist.h: Add comment.
20681         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
20682         strsignal's favoring of SIGSEGV.
20683         * tests/test-signal.c (main): Avoid test failure.
20684         * doc/posix-headers/signal.texi (signal.h): Document the issue.
20685         Reported by Scott McCreary.
20686
20687         maint.mk: add pre-release check to ensure submodule commits are public
20688         * top/maint.mk (public-submodule-commit): New rule.
20689         (submodule-checks): New variable.
20690         (alpha beta stable): Depend on the variable.
20691
20692 2011-01-05  Pádraig Brady <P@draigBrady.com>
20693         and Jim Meyering  <meyering@redhat.com>
20694
20695         ignore-value: make ignore_value more generic; deprecate ignore_ptr
20696         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
20697         (ATTRIBUTE_DEPRECATED): Define.
20698         (_ignore_case): New function.
20699         (ignore_value): New macro, to replace the old function.
20700         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
20701         * modules/ignore-value (Depends-on): Add stdint.
20702
20703 2011-01-04  Eric Blake  <eblake@redhat.com>
20704
20705         doc: regenerate INSTALL
20706         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
20707         @firstparagraphindent support, now that autoconf dropped it.
20708         (INSTALL_PRELUDE): Reinstate old macro.
20709         * doc/install.texi: Resync from autoconf.
20710         * doc/INSTALL: Reflect recent autoconf update.
20711         * doc/INSTALL.ISO: Likewise.
20712         * doc/INSTALL.UTF-8: Likewise.
20713         Reported by Karl Berry.
20714
20715 2011-01-04  Bruce Korb  <address@hidden>
20716
20717         git-version-gen: avoid a sub-shell
20718         * build-aux/git-version-gen: Redirect stderr in `...` via
20719         "exec 2>...", rather than via an added sub-shell.
20720
20721 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
20722
20723         git-version-gen: use (...) rather than sh -c '...'
20724         * build-aux/git-version-gen: Rather than hard-coding a shell's name
20725         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
20726
20727 2011-01-03  Jim Meyering  <meyering@redhat.com>
20728
20729         git-version-gen: convert leading TABs to spaces
20730         * build-aux/git-version-gen: Expand leading TABs.
20731
20732         git-version-gen: handle failed "git rev-list"
20733         * build-aux/git-version-gen: Rather than leaking a "fatal" error
20734         from git and proceeding as if it had succeeded but printed no SHA1
20735         checksums, suppress the diagnostic and handle the failure.
20736         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
20737
20738         git-version-gen: include command name in one more diagnostic
20739         * build-aux/git-version-gen: When the required .tarball-version file
20740         was missing or unreadable, you might see the diagnostic from "cat",
20741         but no trace of the name of the invoking script.  Now, you still see
20742         the diagnostic from cat, but also get one from "git-version-gen: ".
20743         Inspired by a patch from Bruce Korb.
20744
20745         update-copyright: adjust test to match changed code
20746         * tests/test-update-copyright.sh: Change test's expected output
20747         to match new actual output.
20748
20749 2011-01-02  Bruno Haible  <bruno@clisp.org>
20750
20751         getlogin_r: Avoid test failure on HP-UX 11.
20752         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
20753         ERANGE when the second argument is zero.
20754         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
20755         portability problem.
20756
20757 2011-01-02  Bruce Korb  <bkorb@gnu.org>
20758
20759         * build-aux/update-copyright: doc Simon's changes
20760
20761 2011-01-02  Simon Josefsson  <simon@josefsson.org>
20762
20763         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
20764         environment variable.
20765
20766 2011-01-02  Bruno Haible  <bruno@clisp.org>
20767
20768         unigbrk: Avoid gcc warnings.
20769         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
20770         unused variable.
20771         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
20772         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
20773         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
20774         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
20775         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
20776         Change type of first argument to 'const char *'.
20777         (main): Remove unused variable.
20778         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
20779         type of first argument to 'const char *'.
20780         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
20781         Likewise.
20782         (main): Change type of variable 's'.
20783         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
20784         to 'int'.
20785
20786 2011-01-02  Bruno Haible  <bruno@clisp.org>
20787
20788         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
20789         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
20790         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
20791         bug.
20792         * lib/pwrite.c: Undo 2010-12-31 patch.
20793         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
20794
20795 2011-01-02  Bruno Haible  <bruno@clisp.org>
20796
20797         pread: Fix test whether it works.
20798         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
20799
20800 2011-01-02  Bruno Haible  <bruno@clisp.org>
20801
20802         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
20803         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
20804         ends in "6". Don't require a specific month name. Try also the locale
20805         names found on HP-UX 11 and Solaris 7.
20806
20807 2011-01-02  Bruno Haible  <bruno@clisp.org>
20808
20809         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
20810         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
20811         C linkage.
20812         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
20813
20814 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20815
20816         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
20817         for consistency, since the "cluster" term is not used elsewhere.
20818         * lib/unigbrk.in.h: Update name.
20819         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
20820         * lib/unigbrk/u16-grapheme-next.c: Update name.
20821         * lib/unigbrk/u16-grapheme-prev.c: Update name.
20822         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
20823         * lib/unigbrk/u32-grapheme-next.c: Update name.
20824         * lib/unigbrk/u32-grapheme-prev.c: Update name.
20825         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
20826         * lib/unigbrk/u8-grapheme-next.c: Update name.
20827         * lib/unigbrk/u8-grapheme-prev.c: Update name.
20828         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
20829         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
20830         Suggested by Bruno Haible.
20831
20832 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20833
20834         Remove module 'u8-grapheme-len' as too redundant with
20835         'u8-grapheme-next'.
20836         * modules/unigbrk/u8-grapheme-len: Delete file.
20837         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
20838         * lib/unigbrk.in.h: Remove prototype for deleted function.
20839         * lib/unigbrk/u8-grapheme-len.c: Delete file.
20840         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
20841
20842         Remove module 'u16-grapheme-len' as too redundant with
20843         'u16-grapheme-next'.
20844         * modules/unigbrk/u16-grapheme-len: Delete file.
20845         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
20846         * lib/unigbrk.in.h: Remove prototype for deleted function.
20847         * lib/unigbrk/u16-grapheme-len.c: Delete file.
20848         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
20849
20850         Remove module 'u32-grapheme-len' as too redundant with
20851         'u32-grapheme-next'.
20852         * modules/unigbrk/u32-grapheme-len: Delete file.
20853         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
20854         * lib/unigbrk.in.h: Remove prototype for deleted function.
20855         * lib/unigbrk/u32-grapheme-len.c: Delete file.
20856         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
20857
20858         Suggested by Bruno Haible.
20859
20860 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
20861
20862         * unigbrk.in.h: Fix typo: "ben" => "been".
20863         Reported by Bruno Haible.
20864
20865 2011-01-01  Jim Meyering  <meyering@redhat.com>
20866
20867         maint: update almost all copyright ranges to include 2011
20868         Run the new "make update-copyright" rule.
20869
20870 2011-01-01  Jim Meyering  <meyering@redhat.com>
20871
20872         maint: update-copyright: exempt doc/INSTALL*
20873         * Makefile (update-copyright): Also exclude doc/INSTALL*,
20874         since they are generated.  Suggested by Bruno Haible.
20875
20876 2011-01-01  Jim Meyering  <meyering@redhat.com>
20877
20878         maint: refine the update-copyright rule
20879         * Makefile (update-copyright): Also exclude any file that includes
20880         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
20881         code that merely generates the comment.
20882
20883 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20884
20885         New module 'u8-grapheme-len'.
20886         * modules/unigbrk/u8-grapheme-len: New file.
20887         * modules/unigbrk/u8-grapheme-len-tests: New file.
20888         * lib/unigbrk.in.h: Add prototype for new function.
20889         * lib/unigbrk/u8-grapheme-len.c: New file.
20890         * tests/unigbrk/test-u8-grapheme-len.c: New file.
20891
20892         New module 'u16-grapheme-len'.
20893         * modules/unigbrk/u16-grapheme-len: New file.
20894         * modules/unigbrk/u16-grapheme-len-tests: New file.
20895         * lib/unigbrk.in.h: Add prototype for new function.
20896         * lib/unigbrk/u16-grapheme-len.c: New file.
20897         * tests/unigbrk/test-u16-grapheme-len.c: New file.
20898
20899         New module 'u32-grapheme-len'.
20900         * modules/unigbrk/u32-grapheme-len: New file.
20901         * modules/unigbrk/u32-grapheme-len-tests: New file.
20902         * lib/unigbrk.in.h: Add prototype for new function.
20903         * lib/unigbrk/u32-grapheme-len.c: New file.
20904         * tests/unigbrk/test-u32-grapheme-len.c: New file.
20905
20906         New module 'u8-grapheme-next'.
20907         * modules/unigbrk/u8-grapheme-next: New file.
20908         * modules/unigbrk/u8-grapheme-next-tests: New file.
20909         * lib/unigbrk.in.h: Add prototype for new function.
20910         * lib/unigbrk/u8-grapheme-next.c: New file.
20911         * tests/unigbrk/test-u8-grapheme-next.c: New file.
20912
20913         New module 'u16-grapheme-next'.
20914         * modules/unigbrk/u16-grapheme-next: New file.
20915         * modules/unigbrk/u16-grapheme-next-tests: New file.
20916         * lib/unigbrk.in.h: Add prototype for new function.
20917         * lib/unigbrk/u16-grapheme-next.c: New file.
20918         * tests/unigbrk/test-u16-grapheme-next.c: New file.
20919
20920         New module 'u32-grapheme-next'.
20921         * modules/unigbrk/u32-grapheme-next: New file.
20922         * modules/unigbrk/u32-grapheme-next-tests: New file.
20923         * lib/unigbrk.in.h: Add prototype for new function.
20924         * lib/unigbrk/u32-grapheme-next.c: New file.
20925         * tests/unigbrk/test-u32-grapheme-next.c: New file.
20926
20927         New module 'u8-grapheme-prev'.
20928         * modules/unigbrk/u8-grapheme-prev: New file.
20929         * modules/unigbrk/u8-grapheme-prev-tests: New file.
20930         * lib/unigbrk.in.h: Add prototype for new function.
20931         * lib/unigbrk/u8-grapheme-prev.c: New file.
20932         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
20933
20934         New module 'u16-grapheme-prev'.
20935         * modules/unigbrk/u16-grapheme-prev: New file.
20936         * modules/unigbrk/u16-grapheme-prev-tests: New file.
20937         * lib/unigbrk.in.h: Add prototype for new function.
20938         * lib/unigbrk/u16-grapheme-prev.c: New file.
20939         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
20940
20941         New module 'u32-grapheme-prev'.
20942         * modules/unigbrk/u32-grapheme-prev: New file.
20943         * modules/unigbrk/u32-grapheme-prev-tests: New file.
20944         * lib/unigbrk.in.h: Add prototype for new function.
20945         * lib/unigbrk/u32-grapheme-prev.c: New file.
20946         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
20947
20948         New module 'u8-grapheme-breaks'.
20949         * modules/unigbrk/u8-grapheme-breaks: New file.
20950         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
20951         * lib/unigbrk.in.h: Add prototype for new function.
20952         * lib/unigbrk/u8-grapheme-breaks.c: New file.
20953         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
20954
20955         New module 'u16-grapheme-breaks'.
20956         * modules/unigbrk/u16-grapheme-breaks: New file.
20957         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
20958         * lib/unigbrk.in.h: Add prototype for new function.
20959         * lib/unigbrk/u16-grapheme-breaks.c: New file.
20960         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
20961
20962         New module 'u32-grapheme-breaks'.
20963         * modules/unigbrk/u32-grapheme-breaks: New file.
20964         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
20965         * lib/unigbrk.in.h: Add prototype for new function.
20966         * lib/unigbrk/u32-grapheme-breaks.c: New file.
20967         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
20968
20969         New module 'ulc-grapheme-breaks'.
20970         * modules/unigbrk/ulc-grapheme-breaks: New file.
20971         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
20972         * m4/locale-ar.m4: New file.
20973         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
20974         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
20975         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
20976
20977 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
20978
20979         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
20980         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
20981         modified how this file was generated before I initially submitted
20982         the module, but failed to regenerate it.  This meant that several
20983         of the level2 entries were wrong.
20984         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
20985         Remove the division-by-2 that is folded into the table now that
20986         gbrkprop.h has been regenerated properly.  Now -1 entries are
20987         handled correctly.
20988
20989         New module 'unigbrk/uc-gbrk-prop-tests'.
20990         * modules/unigbrk/uc-gbrk-prop-tests: New file.
20991         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
20992         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
20993         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
20994
20995 2011-01-01  Bruno Haible  <bruno@clisp.org>
20996
20997         Avoid use of hexadecimal escapes.
20998         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
20999         instead of hexadecimal escapes.
21000
21001 2011-01-01  Jim Meyering  <meyering@redhat.com>
21002
21003         maint: new rule to update copyright year ranges
21004         * Makefile (update-copyright): New rule.
21005
21006         maint: indent with TABs in Makefile
21007         * Makefile: Expand leading sequences of spaces to TABs
21008
21009         version-etc: update the copyright year it reports
21010         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21011
21012 2010-12-31  Bruno Haible  <bruno@clisp.org>
21013
21014         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21015         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21016         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21017         zero.
21018
21019 2010-12-31  Bruno Haible  <bruno@clisp.org>
21020
21021         pwrite: Work around HP-UX 11.11 bug.
21022         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21023         works and set REPLACE_PWRITE if not.
21024         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21025         function.
21026         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21027
21028 2010-12-31  Bruno Haible  <bruno@clisp.org>
21029
21030         pread: Work around HP-UX 11 bugs.
21031         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21032         and set REPLACE_PREAD if not.
21033         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21034
21035 2010-12-31  Eric Blake  <eblake@redhat.com>
21036
21037         nl_langinfo: fix YESEXPR on Irix 6.5
21038         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21039         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21040         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21041         it.
21042
21043 2010-12-31  Bruno Haible  <bruno@clisp.org>
21044
21045         iconv: Document HP-UX 11 bug.
21046         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21047
21048 2010-12-31  Bruno Haible  <bruno@clisp.org>
21049
21050         ldexpl: Fix link error on HP-UX 11.
21051         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21052         LDEXPL_LIBM, using $ISNANL_LIBM.
21053
21054 2010-12-31  Eric Blake  <eblake@redhat.com>
21055
21056         ftello: avoid compilation failure with SunStudio c89
21057         * lib/ftello.c (ftello): Use lseek, not llseek.
21058
21059         tests: avoid failing coreutils tests on cygwin
21060         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21061         (create_exe_shims_): Return 0 when skipping.
21062
21063 2010-12-31  Bruno Haible  <bruno@clisp.org>
21064
21065         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21066         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21067
21068 2010-12-31  Bruno Haible  <bruno@clisp.org>
21069
21070         waitpid: Fix link error in C++ mode.
21071         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21072
21073 2010-12-31  Bruno Haible  <bruno@clisp.org>
21074
21075         isnan: Use GCC built-ins when possible.
21076         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21077         __builtin_isnan.
21078         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21079         (isnan): Define using GCC built-ins for GCC >= 4.0.
21080
21081 2010-12-31  Bruno Haible  <bruno@clisp.org>
21082
21083         isnand: Fix mistake.
21084         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21085         __builtin_isnand.
21086
21087 2010-12-31  Bruno Haible  <bruno@clisp.org>
21088
21089         open: Avoid C++ error on HP-UX 11.
21090         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21091
21092 2010-12-31  Bruno Haible  <bruno@clisp.org>
21093
21094         time_r: Add missing declarations on HP-UX 11.
21095         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21096         instead of HAVE_LOCALTIME_R.
21097         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21098         HAVE_LOCALTIME_R always.
21099         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21100         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21101         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21102         HAVE_LOCALTIME_R.
21103         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21104         * doc/posix-functions/localtime_r.texi: Likewise.
21105
21106 2010-12-29  Eric Blake  <eblake@redhat.com>
21107
21108         mountlist: tweak previous commit
21109         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21110         Reported by Paul Eggert.
21111
21112         mountlist: fix local drive detection on cygwin
21113         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21114         that works for cygwin.
21115
21116 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21117
21118         ftoastr, snprintf: ftoastr + snprintf module
21119         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21120         since the snprintf module now should be good enough here.
21121         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21122         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21123         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21124         GNULIB_SNPRINTF only for the test directory, and the latter
21125         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21126         seems to suffice by itself.
21127
21128 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21129
21130         alloca: one step towards thread-safety
21131         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21132         need for a static variable.  All callers changed.  This does not
21133         make the alloca replacement thread-safe, but it's one step.
21134
21135         tests: minor indenting change
21136         * tests/init.sh: Sync from coreutils housekeeping patch
21137         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21138         to keep lines within 80 columns.
21139
21140 2010-12-28  Jim Meyering  <meyering@redhat.com>
21141
21142         regex: don't infloop on persistent failing calloc
21143         * lib/regexec.c (build_trtable): Return failure indication upon
21144         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21145         In glibc, this was fixed for version 2.13:
21146         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21147
21148 2010-12-28  Bruno Haible  <bruno@clisp.org>
21149             Paul Eggert <eggert@cs.ucla.edu>
21150
21151         linkat: Make implementation robust against system behaviour variations.
21152         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21153         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21154         way, and to -2 if it needs a generic runtime test.
21155         * lib/linkat.c (solaris_optimized_link_immediate,
21156         solaris_optimized_link_follow): New functions.
21157         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21158         (check_same_link): Use it.
21159
21160 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21161
21162         New module 'unigbrk/base'.
21163         * modules/unigbrk/base: New file.
21164         * lib/unigbrk.in.h: New file.
21165
21166         New module 'unigbrk/uc-gbrk-prop'.
21167         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21168         * modules/unigbrk/uc-gbrk-prop: New file.
21169         * lib/unigbrk/gbrkprop.h: New file.
21170         * lib/unigbrk/uc-gbrk-prop.c: New file.
21171
21172         New module 'unigbrk/uc-is-grapheme-break'.
21173         * modules/unigbrk/uc-is-grapheme-break: New file.
21174         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21175         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21176         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21177         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21178         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21179
21180         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21181
21182 2010-12-27  Bruno Haible  <bruno@clisp.org>
21183
21184         linkat test: Avoid failure on Solaris 11 2010-11.
21185         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21186
21187 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21188
21189         utimens: work around glibc rounding bug on more platforms
21190         * lib/utimens.c (fdutimens): Work around rounding bug even if
21191         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21193
21194 2010-12-27  Bruno Haible  <bruno@clisp.org>
21195
21196         select tests: Improve comments.
21197         * tests/test-select.c (do_select): Add comments.
21198
21199 2010-12-27  Bruno Haible  <bruno@clisp.org>
21200
21201         select tests: Safer way of handling timeout.
21202         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21203         at every invocation.
21204
21205 2010-12-27  Bruno Haible  <bruno@clisp.org>
21206
21207         select tests: Use 'bool' where appropriate.
21208         * tests/test-select.c (connect_to_socket): Change argument type to
21209         'bool'.
21210
21211 2010-12-27  Bruno Haible  <bruno@clisp.org>
21212
21213         select tests: Use existing modules.
21214         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21215         (configure.ac): Don't test for unistd.h.
21216         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21217         declared in <unistd.h>.
21218
21219 2010-12-27  Bruno Haible  <bruno@clisp.org>
21220
21221         mbrtowc: Work around a Solaris 7 bug.
21222         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21223         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21224         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21225         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21226         MBRTOWC_NULL_ARG1_BUG.
21227         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21228         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21229         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21230         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21231
21232 2010-12-27  Jim Meyering  <meyering@redhat.com>
21233
21234         read-file.c: tweak syntax
21235         * lib/read-file.c (fread_file): Remove space after "*" in function
21236         definitions.
21237
21238 2010-12-27  Bruno Haible  <bruno@clisp.org>
21239
21240         times test: Avoid gcc warnings on OSF/1.
21241         * tests/test-times.c (main): Cast printf arguments from clock_t to
21242         'long int'.
21243
21244 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21245
21246         utimens: work around glibc rounding bug on older Linux kernels
21247         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21248         on Linux with a glibc whose utimes might not work, then work
21249         around a longstanding glibc bug involving rounding rather than
21250         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21251         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21252
21253 2010-12-26  Bruno Haible  <bruno@clisp.org>
21254
21255         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21256         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21257         _GL_CXXALIAS_SYS.
21258         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21259
21260 2010-12-26  Bruno Haible  <bruno@clisp.org>
21261
21262         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21263         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21264         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21265         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21266         looking for the declaration.
21267         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21268         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21269         problem.
21270         * doc/posix-functions/inet_pton.texi: Likewise.
21271
21272 2010-12-26  Bruno Haible  <bruno@clisp.org>
21273
21274         arpa_inet: Use the common idioms with C++ support.
21275         * lib/arpa_inet.in.h: Include c++defs.h.
21276         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21277         support.
21278         * modules/arpa_inet (Depends-on): Add c++defs.
21279         (Makefile.am): Substitute the contents of c++defs.h.
21280         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21281         * modules/arpa_inet-c++-tests: New file.
21282         * tests/test-arpa_inet-c++.cc: New file.
21283
21284 2010-12-25  Bruno Haible  <bruno@clisp.org>
21285
21286         Fix more C++ link errors on Solaris 8.
21287         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21288         $(LIB_EACCESS).
21289         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21290         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21291         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21292         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21293         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21294
21295 2010-12-25  Bruno Haible  <bruno@clisp.org>
21296
21297         printf-posix: Fix link error when a non-GCC compiler is used.
21298         * lib/stdio.in.h (printf): When not using GCC, override printf
21299         correctly.
21300         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21301
21302 2010-12-25  Bruno Haible  <bruno@clisp.org>
21303
21304         strerror_r-posix: Update doc.
21305         * doc/posix-functions/strerror_r.texi: Update doc about the return
21306         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21307
21308 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         utimens: simplify the logic of the previous change
21311         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21312         This should not affect whether the test succeeds or fails.
21313
21314         utimens: configure better on hosts with NFS clock skew
21315         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21316         uses the clock of the local host.  It might use the clock of the
21317         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21318         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21319
21320 2010-12-25  Bruno Haible  <bruno@clisp.org>
21321
21322         ptsname test: Avoid failure on Solaris.
21323         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21324         open a pseudo-terminal; don't use BSD-style ptys.
21325         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21326
21327 2010-12-25  Bruno Haible  <bruno@clisp.org>
21328
21329         ptsname: Avoid ERANGE failure on some systems.
21330         * lib/ptsname.c (buffer): Increase size.
21331
21332 2010-12-25  Bruno Haible  <bruno@clisp.org>
21333
21334         rename, renameat: Avoid test failures at NFS mounted locations.
21335         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21336         so that subsequent mkdir calls succeed.
21337
21338 2010-12-25  Bruno Haible  <bruno@clisp.org>
21339
21340         iswblank: Fix C++ link error on Solaris 8.
21341         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21342         _GL_FUNCDECL_SYS.
21343
21344 2010-12-25  Bruno Haible  <bruno@clisp.org>
21345
21346         unistd: Fix C++ link error on Solaris 8.
21347         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21348
21349 2010-12-25  Bruno Haible  <bruno@clisp.org>
21350
21351         readlink doc: Mention an old glibc bug.
21352         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21353
21354 2010-12-25  Bruno Haible  <bruno@clisp.org>
21355
21356         fcntl-h: Fix for use of C++ on glibc systems.
21357         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21358         also on glibc systems in C++ mode.
21359         Reported by Gary V. Vaughan <gary@gnu.org>.
21360
21361 2010-12-25  Bruno Haible  <bruno@clisp.org>
21362
21363         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21364         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21365
21366 2010-12-25  Bruno Haible  <bruno@clisp.org>
21367
21368         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21369         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21370         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21371         test whether truncl works according to ISO C 99 with IEC 60559.
21372         * m4/truncl-ieee.m4: New file.
21373         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21374         m4/signbit.m4.
21375         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21376
21377 2010-12-25  Bruno Haible  <bruno@clisp.org>
21378
21379         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21380         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21381         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21382         test whether ceill works according to ISO C 99 with IEC 60559.
21383         * m4/ceill-ieee.m4: New file.
21384         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21385         m4/signbit.m4.
21386         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21387
21388 2010-12-25  Bruno Haible  <bruno@clisp.org>
21389
21390         Ensure all prerequisites of <wchar.h> are included.
21391         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21392         before <wchar.h>.
21393         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21394         gl_MBRLEN_NUL_RETVAL): Likewise.
21395         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21396         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21397         AC_FUNC_MBRTOWC): Likewise.
21398         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21399         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21400         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21401         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21402         Likewise.
21403         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21404         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21405         (gl_WCHAR_H): Improve comments.
21406         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21407
21408 2010-12-25  Bruno Haible  <bruno@clisp.org>
21409
21410         strtok_r: Fix C syntax error in autoconf macro.
21411         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21412         characters in test program.
21413
21414 2010-12-24  Bruno Haible  <bruno@clisp.org>
21415
21416         ceil, trunc, round: Fix gcc warnings.
21417         * lib/ceil.c (MIN): Undefine before redefining.
21418         * lib/trunc.c (MIN): Likewise.
21419         * lib/round.c (MIN): Likewise.
21420         Include <math.h> first.
21421
21422 2010-12-24  Bruno Haible  <bruno@clisp.org>
21423
21424         select tests: Avoid failures on OSF/1 5.1.
21425         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21426         failure of closing the last socket; it may fail with ECONNRESET.
21427
21428 2010-12-24  Eric Blake  <eblake@redhat.com>
21429
21430         stdint: avoid HP-UX 10.20 preprocessor bug
21431         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21432         than #if.
21433         * tests/test-floor2.c (main): Likewise.
21434         Reported by Peter O'Gorman.
21435
21436         pipe: make obsoletion transition easier
21437         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
21438         * modules/pipe (Files): Include revived file.
21439         (Include): Drop reference, to mirror getdate's behavior.
21440
21441 2010-12-24  Bruno Haible  <bruno@clisp.org>
21442
21443         sys_socket: Hide mismatch of declarations on NonStop Kernel.
21444         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
21445         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
21446         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21447
21448 2010-12-24  Bruno Haible  <bruno@clisp.org>
21449
21450         gethostname: Ensure declaration on NonStop Kernel.
21451         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
21452         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21453
21454 2010-12-24  Bruno Haible  <bruno@clisp.org>
21455
21456         sys_select: Ensure all necessary types on NonStop Kernel.
21457         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
21458         include <sys/time.h>.
21459         * doc/posix-headers/sys_select.texi: Mention that it's missing on
21460         NonStop Kernel.
21461         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21462
21463 2010-12-24  Bruno Haible  <bruno@clisp.org>
21464
21465         sys_select: Remove unneeded include.
21466         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
21467         have <sys/select.h>.
21468
21469 2010-12-24  Bruno Haible  <bruno@clisp.org>
21470
21471         gethostname: Provide a fallback for HOST_NAME_MAX.
21472         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
21473         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
21474         instead.
21475         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21476
21477 2010-12-24  Bruno Haible  <bruno@clisp.org>
21478
21479         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
21480         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
21481         (SA_RESTART): Likewise.
21482         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21483
21484 2010-12-24  Bruno Haible  <bruno@clisp.org>
21485
21486         signal: Define NSIG.
21487         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
21488         * tests/test-signal.c (nsig): New variable.
21489         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21490
21491 2010-12-24  Bruno Haible  <bruno@clisp.org>
21492
21493         rename, renameat: Avoid test failures on OSF/1 5.1.
21494         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
21495         alternative error codes.
21496         * tests/test-renameat.c (main): Likewise.
21497
21498 2010-12-24  Bruno Haible  <bruno@clisp.org>
21499
21500         *printf: Detect large precisions bug on Solaris 10/SPARC.
21501         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
21502         by Paul Eggert.
21503         * tests/test-snprintf-posix.h (test_function): Add this test code here
21504         too.
21505         * tests/test-sprintf-posix.h (test_function): Likewise.
21506         * tests/test-vasnprintf-posix.c (test_function): Likewise.
21507         * tests/test-vasprintf-posix.c (test_function): Likewise.
21508         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
21509         around by gnulib.
21510         * doc/posix-functions/printf.texi: Likewise.
21511         * doc/posix-functions/snprintf.texi: Likewise.
21512         * doc/posix-functions/sprintf.texi: Likewise.
21513         * doc/posix-functions/vfprintf.texi: Likewise.
21514         * doc/posix-functions/vprintf.texi: Likewise.
21515         * doc/posix-functions/vsnprintf.texi: Likewise.
21516         * doc/posix-functions/vsprintf.texi: Likewise.
21517         * doc/posix-functions/dprintf.texi: Undo last commit.
21518         * doc/posix-functions/vdprintf.texi: Likewise.
21519
21520 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21521
21522         tests: port test-fdutimensat.c to Solaris 8
21523         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
21524         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
21525         On Solaris 8, it fails with errno == ENOSYS, because there is no
21526         futimens (so it can't use the fd), and there is no lutimens (so it
21527         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
21528
21529         vsnprintf: make more consistent with snprintf; doc fixes
21530
21531         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
21532         the byte count return problem was promoted from the snprintf-posix
21533         to the snprintf module.
21534         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
21535         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
21536         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
21537         * tests/test-snprintf.c (main): Check the byte count returned.
21538         * tests/test-vsnprintf.c (main): Likewise.
21539
21540 2010-12-23  Eric Blake  <eblake@redhat.com>
21541
21542         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
21543         * modules/sigpipe (License): Relax license.
21544
21545 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21546
21547         doc: document Solaris printf bug with large float precisions
21548         * doc/posix-functions/dprintf.texi (dprintf):
21549         * doc/posix-functions/fprintf.texi (fprintf):
21550         * doc/posix-functions/printf.texi (printf):
21551         * doc/posix-functions/snprintf.texi (snprintf):
21552         * doc/posix-functions/sprintf.texi (sprintf):
21553         * doc/posix-functions/vdprintf.texi (vdprintf):
21554         * doc/posix-functions/vfprintf.texi (vfprintf):
21555         * doc/posix-functions/vprintf.texi (vprintf):
21556         * doc/posix-functions/vsnprintf.texi (vsnprintf):
21557         * doc/posix-functions/vsprintf.texi (vsprintf):
21558         Mention that these functions mishandle large floating point
21559         precisions on Solaris 10.  The same bug is also present in Solaris
21560         8, and I assume earlier.  This causes "cd gnulib-tests; make
21561         check" to fail on Solaris 8 (and I assume, later) when building
21562         the latest coreutils, in test-vasprintf-posix's call to
21563         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
21564         the wide flavors (e.g., wprintf) so this patch just updates the
21565         documentation for the narrow ones.
21566
21567         test-posixtm.c: add two tests
21568         * tests/test-posixtm.c: Add two tests, to highlight the
21569         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
21570         around this bug; this is merely to document it.
21571
21572 2010-12-22  Bruno Haible  <bruno@clisp.org>
21573
21574         getlogin_r: Work around portability problem on OSF/1.
21575         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
21576         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
21577         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
21578         test for a truncated result.
21579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
21580         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
21581         * modules/getlogin_r (Depends-on): Add memchr.
21582         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
21583
21584 2010-12-22  Bruno Haible  <bruno@clisp.org>
21585
21586         ptsname: Avoid test failure on OSF/1 5.1.
21587         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
21588         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
21589         (same_slave): New function.
21590         (main): Use it to compare ptsname's result with the expected file name.
21591
21592 2010-12-22  Bruno Haible  <bruno@clisp.org>
21593
21594         Port extended stdio modules to HP NonStop Kernel.
21595         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
21596         macros.
21597         * lib/fbufmode.c: Update comments.
21598         * lib/fflush.c: Likewise.
21599         * lib/fpurge.c: Likewise.
21600         * lib/freadable.c: Likewise.
21601         * lib/freadahead.c: Likewise.
21602         * lib/freading.c: Likewise.
21603         * lib/freadptr.c: Likewise.
21604         * lib/freadseek.c: Likewise.
21605         * lib/fseeko.c: Likewise.
21606         * lib/fseterr.c: Likewise.
21607         * lib/fwritable.c: Likewise.
21608         * lib/fwriting.c: Likewise.
21609         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21610
21611 2010-12-22  Bruno Haible  <bruno@clisp.org>
21612
21613         ttyname_r: Work around bug on OSF/1 5.1.
21614         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
21615         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
21616         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
21617         present.
21618         * lib/ttyname_r.c (ttyname_r): Update comments.
21619
21620 2010-12-22  Bruno Haible  <bruno@clisp.org>
21621
21622         round: Implement result sign according to IEEE 754.
21623         * lib/round.c (MIN, MINUS_ZERO): New macros.
21624         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
21625         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
21626         * tests/test-round-ieee.c (main): Likewise.
21627         * tests/test-roundl-ieee.c (main): Likewise.
21628
21629         trunc: Implement result sign according to IEEE 754.
21630         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
21631         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
21632         * tests/test-trunc2.c: Include minus-zero.h.
21633         (MINUS_ZERO): New macro.
21634         (trunc_reference): Keep in sync with lib/trunc.c.
21635         * tests/test-truncf2.c: Include minus-zero.h.
21636         (MINUS_ZERO): New macro.
21637         (truncf_reference): Keep in sync with lib/trunc.c.
21638         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
21639         * tests/test-trunc-ieee.c (main): Likewise.
21640         * tests/test-truncl-ieee.c (main): Likewise.
21641
21642         ceil: Implement result sign according to IEEE 754.
21643         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
21644         (FUNC): Return -0.0 for -1 < x < 0.
21645         * tests/test-ceil2.c: Include minus-zero.h.
21646         (MINUS_ZERO): New macro.
21647         (ceil_reference): Keep in sync with lib/ceil.c.
21648         * tests/test-ceilf2.c: Include minus-zero.h.
21649         (MINUS_ZERO): New macro.
21650         (ceilf_reference): Keep in sync with lib/ceil.c.
21651         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
21652         * tests/test-ceil-ieee.c (main): Likewise.
21653         * tests/test-ceill-ieee.c (main): Likewise.
21654
21655         floor: Implement result sign according to IEEE 754.
21656         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
21657         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
21658         * tests/test-floorf2.c (floorf_reference): Likewise.
21659         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
21660         * tests/test-floor-ieee.c (main): Likewise.
21661         * tests/test-floorl-ieee.c (main): Likewise.
21662
21663 2010-12-22  Bruno Haible  <bruno@clisp.org>
21664
21665         getaddrinfo: Update doc.
21666         * doc/posix-functions/gai_strerror.texi: Return type is also different
21667         on AIX and HP-UX.
21668
21669 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         getaddrinfo, inet_ntop: Update doc for Solaris.
21672         * doc/posix-functions/gai_strerror.texi: Return type is also an
21673         issue on Solaris 9 and earlier.
21674         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
21675         on Solaris 10 and earlier.
21676
21677 2010-12-21  Bruno Haible  <bruno@clisp.org>
21678
21679         New module 'roundl-ieee'.
21680         * modules/roundl-ieee: New file.
21681         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
21682         test whether roundl works according to ISO C 99 with IEC 60559.
21683         * m4/roundl-ieee.m4: New file.
21684         * modules/roundl-ieee-tests: New file.
21685         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
21686         * tests/test-roundl.c (main): Remove signbit tests.
21687         * modules/roundl-tests (Depends-on): Remove signbit.
21688         * doc/posix-functions/roundl.texi: Mention the new module.
21689
21690 2010-12-21  Bruno Haible  <bruno@clisp.org>
21691
21692         New module 'truncl-ieee'.
21693         * modules/truncl-ieee: New file.
21694         * modules/truncl-ieee-tests: New file.
21695         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
21696         * tests/test-truncl.c (main): Remove signbit tests.
21697         * modules/truncl-tests (Depends-on): Remove signbit.
21698         * doc/posix-functions/truncl.texi: Mention the new module.
21699
21700 2010-12-21  Bruno Haible  <bruno@clisp.org>
21701
21702         New module 'ceill-ieee'.
21703         * modules/ceill-ieee: New file.
21704         * modules/ceill-ieee-tests: New file.
21705         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
21706         * tests/test-ceill.c (main): Remove signbit tests.
21707         * modules/ceill-tests (Depends-on): Remove signbit.
21708         * doc/posix-functions/ceill.texi: Mention the new module.
21709
21710 2010-12-21  Bruno Haible  <bruno@clisp.org>
21711
21712         New module 'floorl-ieee'.
21713         * modules/floorl-ieee: New file.
21714         * modules/floorl-ieee-tests: New file.
21715         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
21716         * tests/test-floorl.c (main): Remove signbit tests.
21717         * modules/floorl-tests (Depends-on): Remove signbit.
21718         * doc/posix-functions/floorl.texi: Mention the new module.
21719
21720 2010-12-21  Bruno Haible  <bruno@clisp.org>
21721
21722         New module 'round-ieee'.
21723         * modules/round-ieee: New file.
21724         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
21725         whether round works according to ISO C 99 with IEC 60559.
21726         * m4/round-ieee.m4: New file.
21727         * modules/round-ieee-tests: New file.
21728         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
21729         * tests/test-round1.c (main): Remove signbit tests.
21730         * modules/round-tests (Depends-on): Remove 'signbit'.
21731         * doc/posix-functions/round.texi: Mention the new module.
21732
21733 2010-12-21  Bruno Haible  <bruno@clisp.org>
21734
21735         New module 'trunc-ieee'.
21736         * modules/trunc-ieee: New file.
21737         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
21738         whether trunc works according to ISO C 99 with IEC 60559.
21739         * m4/trunc-ieee.m4: New file.
21740         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
21741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
21742         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
21743         * modules/trunc-ieee-tests: New file.
21744         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
21745         * tests/test-trunc1.c (main): Remove signbit tests.
21746         * modules/trunc-tests (Depends-on): Remove 'signbit'.
21747         * doc/posix-functions/trunc.texi: Mention the new module.
21748
21749 2010-12-21  Bruno Haible  <bruno@clisp.org>
21750
21751         New module 'ceil-ieee'.
21752         * modules/ceil-ieee: New file.
21753         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
21754         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
21755         ISO C 99 with IEC 60559.
21756         * m4/ceil-ieee.m4: New file.
21757         * modules/ceil (Files): Add lib/ceil.c.
21758         (Depends-on): Add 'float'.
21759         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21760         * lib/math.in.h (ceil): New declaration.
21761         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
21762         REPLACE_CEIL.
21763         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
21764         * modules/ceil-ieee-tests: New file.
21765         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
21766         * tests/test-math-c++.cc: Check the signature of 'ceil'.
21767         * doc/posix-functions/ceil.texi: Mention the new module.
21768
21769 2010-12-21  Bruno Haible  <bruno@clisp.org>
21770
21771         New module 'floor-ieee'.
21772         * modules/floor-ieee: New file.
21773         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
21774         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
21775         ISO C 99 with IEC 60559.
21776         * m4/floor-ieee.m4: New file.
21777         * modules/floor (Files): Add lib/floor.c.
21778         (Depends-on): Add 'float'.
21779         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
21780         * lib/math.in.h (floor): New declaration.
21781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
21782         REPLACE_FLOOR.
21783         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
21784         * modules/floor-ieee-tests: New file.
21785         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
21786         * tests/test-math-c++.cc: Check the signature of 'floor'.
21787         * doc/posix-functions/floor.texi: Mention the new module.
21788
21789 2010-12-21  Bruno Haible  <bruno@clisp.org>
21790
21791         New module 'roundf-ieee'.
21792         * modules/roundf-ieee: New file.
21793         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
21794         test whether roundf works according to ISO C 99 with IEC 60559.
21795         * m4/roundf-ieee.m4: New file.
21796         * modules/roundf-ieee-tests: New file.
21797         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
21798         * tests/test-roundf1.c (main): Remove signbit tests.
21799         * modules/roundf-tests (Depends-on): Remove 'signbit'.
21800         * doc/posix-functions/roundf.texi: Mention the new module.
21801
21802 2010-12-21  Bruno Haible  <bruno@clisp.org>
21803
21804         New module 'truncf-ieee'.
21805         * modules/truncf-ieee: New file.
21806         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
21807         test whether truncf works according to ISO C 99 with IEC 60559.
21808         * m4/truncf-ieee.m4: New file.
21809         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
21810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
21811         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
21812         * modules/truncf-ieee-tests: New file.
21813         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
21814         * tests/test-truncf1.c (main): Remove signbit tests.
21815         * modules/truncf-tests (Depends-on): Remove 'signbit'.
21816         * doc/posix-functions/truncf.texi: Mention the new module.
21817
21818 2010-12-21  Bruno Haible  <bruno@clisp.org>
21819
21820         New module 'ceilf-ieee'.
21821         * modules/ceilf-ieee: New file.
21822         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
21823         test whether ceilf works according to ISO C 99 with IEC 60559.
21824         * m4/ceilf-ieee.m4: New file.
21825         * modules/ceilf-ieee-tests: New file.
21826         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
21827         * tests/test-ceilf1.c (main): Remove signbit tests.
21828         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
21829         * doc/posix-functions/ceilf.texi: Mention the new module.
21830
21831 2010-12-21  Bruno Haible  <bruno@clisp.org>
21832
21833         New module 'floorf-ieee'.
21834         * modules/floorf-ieee: New file.
21835         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
21836         test whether floorf works according to ISO C 99 with IEC 60559.
21837         * m4/floorf-ieee.m4: New file.
21838         * modules/floorf-ieee-tests: New file.
21839         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
21840         * tests/test-floorf1.c (main): Remove signbit tests.
21841         * modules/floorf-tests (Depends-on): Remove 'signbit'.
21842         * doc/posix-functions/floorf.texi: Mention the new module.
21843
21844 2010-12-21  Bruno Haible  <bruno@clisp.org>
21845
21846         Support for minus zero in autoconf macros.
21847         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
21848         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
21849         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
21850         * tests/minus-zero.h: Update comments.
21851
21852 2010-12-21  Bruno Haible  <bruno@clisp.org>
21853
21854         Tests for module 'ceil'.
21855         * modules/ceil-tests: New file.
21856         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
21857         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
21858
21859 2010-12-21  Bruno Haible  <bruno@clisp.org>
21860
21861         Tests for module 'floor'.
21862         * modules/floor-tests: New file.
21863         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
21864         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
21865
21866 2010-12-21  Bruno Haible  <bruno@clisp.org>
21867
21868         math: Fix indentation.
21869         * lib/math.in.h (floorf): Fix indentation.
21870
21871 2010-12-21  Bruno Haible  <bruno@clisp.org>
21872
21873         Fix cross-compilation guesses on Solaris.
21874         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
21875         not match "solaris2.10".
21876         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
21877         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
21878         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
21879
21880 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21881
21882         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
21883         This fixes a problem observed with the latest coreutils snapshot
21884         that caused a test to fail on Solaris 8.  src/csplit.c's call
21885         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
21886         earlier, instead of returning the number of bytes that would have
21887         been generated; this causes csplit to incorrectly report memory
21888         exhaustion.
21889         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
21890         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
21891         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
21892         comments to match.
21893         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
21894         Fix typo in matching older versions of Solaris: "solaris2.10"
21895         is matched by the shell pattern "solaris2.[0-9]*".  This matters
21896         only for guessing while cross-compiling.
21897         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
21898
21899 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
21900
21901         ftoastr: fix comment again
21902         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21903         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
21904         Also, simplify example a bit by using flags = 0.
21905
21906 2010-12-20  Bruno Haible  <bruno@clisp.org>
21907
21908         round*, trunc*: Update documentation regarding glibc.
21909         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
21910         * doc/posix-functions/round.texi: Likewise.
21911         * doc/posix-functions/roundl.texi: Likewise.
21912         * doc/posix-functions/truncf.texi: Likewise.
21913         * doc/posix-functions/trunc.texi: Likewise.
21914         * doc/posix-functions/truncl.texi: Likewise.
21915
21916 2010-12-20  Bruno Haible  <bruno@clisp.org>
21917
21918         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
21919         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
21920         * doc/posix-functions/round.texi: Likewise.
21921         * doc/posix-functions/roundl.texi: Likewise.
21922
21923 2010-12-20  Bruno Haible  <bruno@clisp.org>
21924
21925         ttyname_r: Add missing declaration on HP-UX 11.
21926         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
21927         HAVE_TTYNAME_R.
21928         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
21929         declared. Set HAVE_TTYNAME_R always.
21930         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21931         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
21932         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
21933         HAVE_TTYNAME_R.
21934         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
21935
21936 2010-12-20  Bruno Haible  <bruno@clisp.org>
21937
21938         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
21939         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
21940         * doc/posix-functions/getlogin_r.texi: Likewise.
21941         * tests/test-getlogin.c: Include <errno.h>.
21942         (main): Avoid test failure on HP-UX 11.11.
21943         * tests/test-getlogin_r.c (main): Likewise.
21944
21945 2010-12-20  Bruno Haible  <bruno@clisp.org>
21946
21947         getlogin_r: Add missing declaration on HP-UX 11.
21948         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
21949         declared also when it exists as a function.
21950         * doc/posix-functions/getlogin_r.texi: Document this workaround.
21951
21952 2010-12-20  Bruno Haible  <bruno@clisp.org>
21953
21954         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
21955         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
21956         through wcrtomb.
21957
21958 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
21959
21960         ftoastr: fix comment
21961         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
21962         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
21963
21964 2010-12-19  Bruno Haible  <bruno@clisp.org>
21965
21966         isnan: Ensure it is a macro.
21967         * lib/math.in.h (isnan): Define as a macro if not already a macro.
21968         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
21969         Solaris.
21970
21971 2010-12-19  Bruno Haible  <bruno@clisp.org>
21972
21973         ldexpl test: Fix link error on OSF/1 5.1.
21974         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
21975
21976 2010-12-19  Bruno Haible  <bruno@clisp.org>
21977
21978         wctype: Make it work in C++ mode on OSF/1 5.1.
21979         * lib/wctype.in.h (iswblank): Declare but not define here.
21980         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
21981         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
21982         * modules/wctype (Files): Add lib/iswblank.c.
21983
21984 2010-12-19  Bruno Haible  <bruno@clisp.org>
21985
21986         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
21987         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
21988         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
21989
21990 2010-12-19  Bruno Haible  <bruno@clisp.org>
21991
21992         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
21993         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
21994         _POSIX_PII_SOCKET.
21995         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
21996         * doc/posix-functions/recvfrom.texi: Likewise.
21997         * doc/posix-functions/send.texi: Likewise.
21998         * doc/posix-functions/sendto.texi: Likewise.
21999
22000 2010-12-19  Bruno Haible  <bruno@clisp.org>
22001
22002         tcgetsid: Add missing declaration on OSF/1 5.1.
22003         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22004         HAVE_TCGETSID.
22005         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22006         Don't set HAVE_TCGETSID.
22007         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22008         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22009         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22010         HAVE_TCGETSID.
22011         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22012
22013 2010-12-19  Bruno Haible  <bruno@clisp.org>
22014
22015         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22016         * lib/stdio.in.h: During the include_next statement, let recursive
22017         includes of this file include only the system header file.
22018
22019 2010-12-19  Bruno Haible  <bruno@clisp.org>
22020
22021         iconv_open: Fix regression from 2010-12-04.
22022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22023         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22024
22025 2010-12-19  Bruno Haible  <bruno@clisp.org>
22026
22027         stdbool test: Avoid a gcc warning.
22028         * tests/test-stdbool.c (main): Fail if e1 is false.
22029         Reported by Jim Meyering.
22030
22031 2010-12-19  Jim Meyering  <meyering@redhat.com>
22032
22033         setenv: restore to working order
22034         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22035         mistakenly removed.
22036         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22037         HAVE_SETENV.
22038         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22039         HAVE_SETENV.
22040
22041 2010-12-19  Bruno Haible  <bruno@clisp.org>
22042
22043         Document some different function declarations on OSF/1 5.1.
22044         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22045         * doc/posix-functions/inet_ntop.texi: Likewise.
22046         * doc/posix-functions/gethostname.texi: Likewise.
22047         * lib/unistd.in.h (gethostname): Update comment.
22048
22049 2010-12-19  Bruno Haible  <bruno@clisp.org>
22050
22051         doc: Mention vasprintf-posix module.
22052         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22053         the 'vasprintf-posix' module.
22054         * doc/glibc-functions/vasprintf.texi: Likewise.
22055
22056 2010-12-19  Bruno Haible  <bruno@clisp.org>
22057
22058         unsetenv: Add missing declaration on OSF/1 5.1.
22059         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22060         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22061         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22062         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22063         not HAVE_UNSETENV.
22064         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22065         HAVE_UNSETENV.
22066         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22067
22068 2010-12-19  Bruno Haible  <bruno@clisp.org>
22069
22070         setenv: Add missing declaration on OSF/1 5.1.
22071         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22072         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22073         declared. Don't set HAVE_SETENV.
22074         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22075         not HAVE_SETENV.
22076         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22077         HAVE_SETENV.
22078         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22079
22080 2010-12-19  Bruno Haible  <bruno@clisp.org>
22081
22082         nl_langinfo tests: Avoid gcc warning.
22083         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22084
22085 2010-12-19  Bruno Haible  <bruno@clisp.org>
22086
22087         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22088         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22089         _GL_CXXALIAS_SYS.
22090
22091 2010-12-19  Bruno Haible  <bruno@clisp.org>
22092
22093         stdbool: Relax test.
22094         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22095         address to 'bool' work in static initializer, for compilers other than
22096         GCC.
22097
22098 2010-12-19  Bruno Haible  <bruno@clisp.org>
22099
22100         ftello: Add missing declaration on OSF/1 5.1.
22101         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22102         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22104         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22105         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22106
22107 2010-12-19  Bruno Haible  <bruno@clisp.org>
22108
22109         fseeko: Add missing declaration on OSF/1 5.1.
22110         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22111         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22113         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22114         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22115
22116 2010-12-19  Bruno Haible  <bruno@clisp.org>
22117
22118         fchdir: Add missing declaration on OSF/1 5.1.
22119         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22120         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22122         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22123         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22124
22125 2010-12-19  Bruno Haible  <bruno@clisp.org>
22126
22127         relocatable-prog-wrapper: Separate from relocatable-prog.
22128         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22129         uninstall-relocwrapper rule here.
22130         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22131         Reported by Ian Beckwith <ianb@erislabs.net>.
22132
22133 2010-12-19  Bruno Haible  <bruno@clisp.org>
22134
22135         unistr/u8-mbsnlen: Add missing dependency.
22136         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22137         Reported by Ian Beckwith <ianb@erislabs.net>.
22138
22139 2010-12-19  Bruno Haible  <bruno@clisp.org>
22140
22141         iconv: Make it possible again to use this module without 'iconv-h'.
22142         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22143         if it is not defined.
22144         Reported by Ian Beckwith <ianb@erislabs.net>.
22145
22146 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22147
22148         acl: port to Solaris 8 when copying from tmpfs to ufs
22149         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22150         error number.  Problem observed on Solaris 8 with latest
22151         coreutils, with "mv A B", where A is on a tmpfs file system and B
22152         is on a ufs file system.  This caused coreutils' mv/part-symlink
22153         test to fail.
22154
22155         tests: set fail=0 at start
22156         * tests/init.sh (setup_): Move fail=0 initialization here ...
22157         (mktempd_): ... from here, so that tests can rely on fail being
22158         set to 0 initially.  This fixes a problem in coreutils; see:
22159         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22160
22161 2010-12-18  Bruno Haible  <bruno@clisp.org>
22162
22163         memmem-simple: Stylistic changes.
22164         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22165         Fix preprocessor directive indentation.
22166
22167 2010-12-15  Pádraig Brady <P@draigBrady.com>
22168
22169         memmem, memmem-simple: reorganize and expand empty needle check
22170         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22171         functional checks to memmem-simple so that one has a fully functional
22172         memmem by using just this module.
22173         Restrict the performance only check to the memmem module.
22174         Also expand the empty needle check to ensure the correct
22175         pointer is returned, not just a non NULL pointer.
22176         * doc/glibc-functions/memmem.texi: Rearrange the portability
22177         documentation to correlate with the rearranged checks.
22178         Clarify exactly how the memmem and memmem-simple modules
22179         relate to each other.
22180
22181 2010-12-15  Pádraig Brady <P@draigBrady.com>
22182             Bruno Haible  <bruno@clisp.org>
22183
22184         Improve cross-compilation guesses for uClibc.
22185         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22186         that uClibc does not have the glibc bug.
22187         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22188         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22189
22190 2010-12-14  Eric Blake  <eblake@redhat.com>
22191
22192         configmake: provide fallbacks for oldest supported autotools
22193         * m4/configmake.m4: New file.
22194         * modules/configmake (Files): Ship it.
22195         (configure.ac): Use it to guarantee fallbacks.
22196
22197 2010-12-13  Pádraig Brady <P@draigBrady.com>
22198
22199         read-file: Improve handling of large files
22200         * lib/read-file.c (fread_file): Minimize realloc()s
22201         for regular files, and better manage sizes around SIZE_MAX.
22202
22203 2010-12-13  Eric Blake  <eblake@redhat.com>
22204
22205         cloexec, fcntl: relax license
22206         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22207         consent from all contributors.
22208         * modules/fcntl (License): Likewise.
22209
22210 2010-12-10  Bruno Haible  <bruno@clisp.org>
22211
22212         Tests for module 'pipe-posix'.
22213         * modules/pipe-posix-tests: New file.
22214         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22215
22216 2010-12-10  Bruno Haible  <bruno@clisp.org>
22217
22218         pipe-posix: Make it work in C++ mode.
22219         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22220         (pipe): Use common idiom, not a macro definition.
22221         * lib/pipe.c: New file.
22222         * m4/pipe.m4: New file.
22223         * modules/pipe-posix (Description): Enhance.
22224         (Files): Add lib/pipe.c, m4/pipe.m4.
22225         (configure.ac): Invoke gl_FUNC_PIPE.
22226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22227         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22228         * tests/test-unistd-c++.cc: Check the signature of pipe.
22229
22230 2010-12-10  Bruno Haible  <bruno@clisp.org>
22231
22232         Rename module 'pipe' to 'spawn-pipe'.
22233         * modules/spawn-pipe: New file, renamed from modules/pipe.
22234         (Files, configure.ac, Makefile.am): Update.
22235         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22236         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22237         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22238         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22239         "spawn-pipe.h" instead of "pipe.h".
22240         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22241         to gl_SPAWN_PIPE.
22242         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22243         (Files, Makefile.am): Update.
22244         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22245         Update.
22246         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22247         Include "spawn-pipe.h" instead of "pipe.h".
22248         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22249         * lib/javacomp.c: Likewise.
22250         * lib/javaversion.c: Likewise.
22251         * lib/pipe-filter-gi.c: Likewise.
22252         * lib/pipe-filter-ii.c: Likewise.
22253         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22254         * modules/javacomp (Depends-on): Likewise.
22255         * modules/javaversion (Depends-on): Likewise.
22256         * modules/pipe-filter-gi (Depends-on): Likewise.
22257         * modules/pipe-filter-ii (Depends-on): Likewise.
22258         * MODULES.html.sh (Executing programs): Update.
22259         * NEWS: Mention the change.
22260
22261 2010-12-10  Eric Blake  <eblake@redhat.com>
22262
22263         pipe-posix: new module
22264         * modules/pipe-posix: New file.
22265         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22266         (gl_UNISTD_H): Check for declaration.
22267         * modules/unistd (Makefile.am): Substitute it.
22268         * lib/unistd.in.h (pipe): Provide it for mingw.
22269         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22270         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22271
22272 2010-12-07  Bruno Haible  <bruno@clisp.org>
22273
22274         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22275         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22276         u8_strcmp_gnu.
22277         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22278
22279 2010-12-06  Bruno Haible  <bruno@clisp.org>
22280
22281         Update internal documentation.
22282         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22283
22284 2010-12-04  Bruno Haible  <bruno@clisp.org>
22285
22286         Put more information about failed tests into the test return codes.
22287         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22288         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22289         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22290         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22291         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22292         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22293         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22294         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22295         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22296         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22297         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22298         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22299         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22300         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22301         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22302         returns a bit mask.
22303         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22304         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22305         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22306         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22307         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22308         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22309         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22310         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22311         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22312         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22313         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22314         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22315         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22316         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22317         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22318         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22319         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22320         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22321         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22322         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22323         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22324         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22326         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22327         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22328         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22329         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22330         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22331         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22332         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22333         gl_PRINTF_PRECISION): Likewise.
22334         * m4/regex.m4 (gl_REGEX): Likewise.
22335         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22336         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22337         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22338         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22339         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22340         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22341         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22342         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22343         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22344         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22345         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22346         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22347         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22348         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22349         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22350         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22351         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22352         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22353         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22354         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22355         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22356         enumerated value.
22357         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22358
22359 2010-12-04  Bruno Haible  <bruno@clisp.org>
22360
22361         Update for Solaris 11 2010-11.
22362         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22363         Express, released in November 2010.
22364
22365 2010-12-04  Bruno Haible  <bruno@clisp.org>
22366
22367         nproc: Relax license.
22368         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22369         and Paul Eggert.
22370         Requested by Ludovic Courtès <ludo@gnu.org>.
22371
22372 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22373
22374         utimecmp: fine-grained src to nearby coarse-grained dest
22375
22376         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22377         and the source is on a file system with higher-resolution time
22378         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22379         not work, and the time stamps are close together, the algorithm to
22380         determine the exact resolution from the read-back mtime was buggy:
22381         it had a "!=" where it should have had an "==".  This bug has been
22382         in the code ever since it was introduced to gnulib.
22383         Problem reported by Dan Jacobson in
22384         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22385
22386 2010-11-30  Bruno Haible  <bruno@clisp.org>
22387
22388         strerror_r-posix: Fix autoconf test.
22389         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22390
22391 2010-11-28  Bruno Haible  <bruno@clisp.org>
22392             Paul Eggert  <eggert@cs.ucla.edu>
22393
22394         Tests for module 'getdomainname'.
22395         * modules/getdomainname-tests: New file.
22396         * tests/test-getdomainname.c: New file, based on
22397         tests/test-gethostname.c.
22398
22399 2010-11-28  Bruno Haible  <bruno@clisp.org>
22400             Paul Eggert  <eggert@cs.ucla.edu>
22401
22402         getdomainname: Use the system function when possible.
22403         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22404         (getdomainname): Replace if needed. Provide the declaration if it is
22405         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22406         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22407         (getdomainname): When the system has getdomainname, call the system
22408         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22409         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22410         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22411         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22412         the function if its second argument is of type 'int' or if it is found
22413         in libnsl.
22414         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22415         <sys/systeminfo.h> and sysinfo().
22416         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22417         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22418         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22419         HAVE_GETDOMAINNAME.
22420         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22421         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22422         * doc/glibc-functions/getdomainname.texi: Document the problems with
22423         the getdomainname declaration.
22424
22425 2010-11-28  Bruno Haible  <bruno@clisp.org>
22426
22427         sys_socket: Ensure ss_family field on AIX.
22428         * lib/sys_socket.in.h (ss_family): New macro definition.
22429         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22430         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22431         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22432         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22433         * modules/sys_socket (Makefile.am): Substitute
22434         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22435         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22436
22437 2010-11-27  Bruno Haible  <bruno@clisp.org>
22438
22439         readline: Improve configure output.
22440         * m4/readline.m4 (gl_FUNC_READLINE): Make the
22441         "checking for readline..." result understandable.
22442
22443 2010-11-27  Bruno Haible  <bruno@clisp.org>
22444
22445         *printf-posix: Detect a bug on Solaris 10/x86.
22446         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
22447         for floating-point output.
22448         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
22449         directive.
22450         * tests/test-snprintf-posix.h (test_function): Likewise.
22451         * tests/test-sprintf-posix.h (test_function): Likewise.
22452         * tests/test-vasprintf-posix.c (test_function): Likewise.
22453         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
22454         * doc/posix-functions/printf.texi: Likewise.
22455         * doc/posix-functions/snprintf.texi: Likewise.
22456         * doc/posix-functions/sprintf.texi: Likewise.
22457         * doc/posix-functions/vfprintf.texi: Likewise.
22458         * doc/posix-functions/vprintf.texi: Likewise.
22459         * doc/posix-functions/vsnprintf.texi: Likewise.
22460         * doc/posix-functions/vsprintf.texi: Likewise.
22461         * doc/glibc-functions/obstack_printf.texi: Likewise.
22462         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
22463
22464 2010-11-27  Bruno Haible  <bruno@clisp.org>
22465
22466         Fix link error when module libunistring-optional is in use.
22467         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
22468         * modules/striconveha-tests (Makefile.am): Likewise.
22469
22470 2010-11-27  Bruno Haible  <bruno@clisp.org>
22471
22472         regex: Mention link dependencies.
22473         * modules/regex (Link): New section.
22474         * modules/rpmatch (Link): Likewise.
22475         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
22476
22477 2010-11-27  Bruno Haible  <bruno@clisp.org>
22478
22479         ftoastr: Fix compilation error on Solaris.
22480         * lib/ftoastr.c: Include <config.h>.
22481
22482 2010-11-27  Bruno Haible  <bruno@clisp.org>
22483
22484         getloadavg: Update documentation.
22485         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
22486
22487 2010-11-27  Bruno Haible  <bruno@clisp.org>
22488
22489         sys_socket: Fix test whether the functions are declared.
22490         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
22491         not <sys/select.h>.
22492
22493 2010-11-27  Bruno Haible  <bruno@clisp.org>
22494
22495         getpass: Make sure to get system declaration on some platforms.
22496         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
22497         gl_USE_SYSTEM_EXTENSIONS.
22498         * modules/getpass (Depends-on): Add extensions.
22499
22500 2010-11-26  Bruno Haible  <bruno@clisp.org>
22501
22502         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
22503         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
22504         'iconv' module is present.
22505         (ICONV_CONST): New macro.
22506         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
22507         ICONV_CONST.
22508         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
22509         set ICONV_CONST.
22510         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
22511         here.
22512         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
22513         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
22514         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
22515         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
22516         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
22517         present.
22518
22519 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
22520
22521         ftoastr: comment fix
22522         * lib/ftoastr.c: "little" -> "little or no" in comment
22523
22524 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
22525
22526         stdint: port to GCC 4.3 + OSX + Octave
22527         On this platform, stdint.h is buggy and defines int64_t to long
22528         long int.  The replacement defined it to long int, causing
22529         problems with C++ style name mangling.  Instead, trust the system
22530         definition if INT64_MAX is defined, and likewise for the unsigned
22531         variant.   Problem reported by Jarno Rajahalme in
22532         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
22533         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
22534         and don't mess with int64_t and INT64_MAX in this case.
22535         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
22536
22537 2010-11-24  Bruno Haible  <bruno@clisp.org>
22538
22539         doc: Corrections regarding MacOS X 10.4 and 10.5.
22540         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
22541         MacOS X.
22542         Reported by Simon Josefsson.
22543
22544 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
22545
22546         Uninstall ".bin" files installed by relocwrapper.
22547         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
22548         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
22549         unless it is already there.
22550
22551 2010-11-21  Bruno Haible  <bruno@clisp.org>
22552
22553         Update for NetBSD 5.0.
22554         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22555         NetBSD; the test fails on NetBSD 5.0.
22556         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22557         about NetBSD.
22558
22559 2010-11-21  Bruno Haible  <bruno@clisp.org>
22560
22561         Update for HP-UX 11.23 and HP-UX 11.31.
22562         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
22563         HP-UX.
22564
22565 2010-11-21  Bruno Haible  <bruno@clisp.org>
22566
22567         Update for MacOS X 10.5.
22568         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
22569         MacOS X; the test fails on MacOS X 10.5.8.
22570         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
22571         about MacOS X.
22572
22573 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
22574
22575         bootstrap: add bootstrap_sync option.
22576         See discussion at
22577         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
22578         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
22579         * build-aux/bootstrap: Accept --bootstrap-sync to update
22580         bootstrap if it is not identical to the local gnulib's
22581         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
22582         enable this by default.  Accept --no-bootstrap-sync to disable
22583         it.
22584
22585 2010-11-20  Bruno Haible  <bruno@clisp.org>
22586
22587         Ensure that <features.h> is included before __GLIBC__ is tested.
22588         * lib/printf-parse.h: Include <features.h>.
22589         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
22590         Reported by Mike Frysinger <vapier@gentoo.org>.
22591
22592         Ensure that <features.h> is included before __GLIBC__ is tested.
22593         * lib/wchar.in.h: Include <features.h>.
22594         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
22595         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
22596         Reported by Mike Frysinger <vapier@gentoo.org>.
22597
22598         Ensure that <features.h> is included before __GLIBC__ is tested.
22599         * lib/arpa_inet.in.h: Include <features.h>.
22600         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
22601         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
22602         Reported by Mike Frysinger <vapier@gentoo.org>.
22603
22604         Ensure that <features.h> is included before __GLIBC__ is tested.
22605         * build-aux/link-warning.h: Include <features.h>.
22606         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
22607         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
22608         Reported by Mike Frysinger <vapier@gentoo.org>.
22609
22610         Ensure that <features.h> is included before __GLIBC__ is tested.
22611         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
22612         Reported by Mike Frysinger <vapier@gentoo.org>.
22613
22614 2010-11-20  Bruno Haible  <bruno@clisp.org>
22615
22616         memmem: Fix autoconf test.
22617         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
22618
22619 2010-11-20  Bruno Haible  <bruno@clisp.org>
22620
22621         Port to uClibc.
22622         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
22623         * lib/fcntl.in.h: Likewise.
22624         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
22625         * lib/mbrtowc.c (mbrtowc): Likewise.
22626         * lib/relocatable.c (find_shared_library_fullname): Likewise.
22627         * lib/strerror_r.c: Likewise.
22628         * lib/unistr/u8-strnlen.c: Likewise.
22629         * lib/vasnprintf.c (decimal_point_char): Likewise.
22630         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22631         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22632         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
22633         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
22634         * tests/test-sigaction.c (handler, main): Likewise.
22635         * lib/freading.h: Treat uClibc like a non-glibc platform.
22636         * lib/freading.c: Likewise.
22637         * lib/gettext.h: Likewise.
22638         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
22639         Likewise.
22640         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
22641         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
22642         * lib/propername.c (proper_name_utf8): Likewise.
22643         * lib/spawn.in.h: Likewise.
22644         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
22645         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
22646         mem_cd_iconveh_internal): Likewise.
22647         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
22648         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22649         strstr, strcasestr): Likewise.
22650         * lib/unicodeio.c (unicode_to_mb): Likewise.
22651         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
22652         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
22653         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
22654         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
22655         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
22656         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
22657         * lib/unistr/u8-stpncpy.c: Likewise.
22658         * lib/vasnprintf.c (VASNPRINTF): Likewise.
22659         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
22660         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22661         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22662         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
22663         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
22664         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
22665         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
22666         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
22667         Likewise.
22668         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
22669         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22670         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
22671         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22672         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22673         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22674         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22675         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22676         * tests/test-getopt.h (OPTIND_MIN): Likewise.
22677         * tests/test-striconveha.c (main): Likewise.
22678         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22679         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
22680         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
22681         * doc/posix-functions/getline.texi: Likewise.
22682         Reported by Mike Frysinger <vapier@gentoo.org>.
22683
22684 2010-11-20  Bruno Haible  <bruno@clisp.org>
22685
22686         nproc: Fix condition.
22687         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
22688         HAVE_PTHREAD_AFFINITY_NP.
22689
22690 2010-11-20  Bruno Haible  <bruno@clisp.org>
22691
22692         Fix a comment.
22693         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
22694
22695 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
22696
22697         ftoastr: don't assume snprintf
22698         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
22699         Implement a subset of snprintf here, by using sprintf safely.
22700         * modules/ftoastr (Depends-on): Remove snprintf.
22701
22702 2010-11-19  Jim Meyering  <meyering@redhat.com>
22703
22704         test-rename.h: fix compilation failure
22705         * tests/test-rename.h (test_rename): Add omitted "}".
22706
22707 2010-11-17  Jim Meyering  <meyering@redhat.com>
22708
22709         maint.mk: add a URL discussing the no-@acronym policy
22710         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
22711
22712 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
22713
22714         ftoastr: depend on snprintf, improve comments
22715         * lib/ftoastr.c: Also mention Loitsch's draft.
22716         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
22717         needed in the current implementation, but it might simplify
22718         speeding up the code later.
22719         * modules/ftoastr: Depend on snprintf; this improves portability.
22720         Suggested by Bruno Haible in the same email.
22721
22722         ftoastr: port to hosts lacking strtof and strtold
22723         Problem reported by Bruno Haible in
22724         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
22725         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
22726         environment and strtold (and presumably strtof) are not available.
22727         * modules/ftoastr (Files): Add m4/c-strtod.m4.
22728         (configure.ac): Require gl_C99_STRTOLD.
22729
22730 2010-11-18  Bruno Haible  <bruno@clisp.org>
22731
22732         c-strtold: Avoid link error on AIX 7.
22733         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
22734         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
22735         (gl_C_STRTOLD): Test whether strtold_l exists.
22736         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22737
22738 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
22739
22740         intprops: new macro INT_BITS_STRLEN_BOUND
22741         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
22742         ftoastr.h.  This exposes an internal of intprops.h that was formerly
22743         not exposed.  Also, it uses a slightly tighter bound than before;
22744         though this makes no practical difference, we might as well be as
22745         tight as we easily can.
22746
22747         ftoastr: new module, for lossless conversion of floats to short strings
22748         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
22749         * modules/ftoastr: New files.
22750
22751 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
22752
22753         bootstrap: port to Solaris sed
22754         * build-aux/bootstrap (get_version): Port to Solaris sed.
22755         See Ralf Wildenhues's note in
22756         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
22757
22758 2010-11-14  Jim Meyering  <meyering@redhat.com>
22759
22760         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
22761         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
22762         and move definition closer to sole use.
22763
22764 2010-11-13  Jim Meyering  <meyering@redhat.com>
22765
22766         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
22767         Now we require at least autoconf-2.59, which means the work-around
22768         is no longer needed.
22769         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
22770         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22771         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22772         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22773         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
22774
22775 2010-11-13  Bruno Haible  <bruno@clisp.org>
22776
22777         rename, renameat: Avoid test failures at NFS mounted locations.
22778         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
22779         functions.
22780         (test_rename): Use assert_nonexistent.
22781         * tests/test-rename.c: Include <dirent.h>.
22782         * tests/test-renameat.c: Likewise.
22783         Reported by Gary V. Vaughan <gary@gnu.org>.
22784
22785         rename, renameat: Document Linux bug with NFS
22786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
22787         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
22788         * doc/posix-functions/renameat.texi: Likewise.
22789         Suggested by Eric Blake.
22790
22791 2010-11-13  Bruno Haible  <bruno@clisp.org>
22792
22793         rename test: Add comments.
22794         * tests/test-rename.h (test_rename): Add structure and comments.
22795
22796 2010-11-13  Eric Blake  <eblake@redhat.com>
22797
22798         maintainer-makefile: cover a few more files
22799         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
22800         scripts generated within C files, for libvirt.
22801
22802 2010-11-13  Bruno Haible  <bruno@clisp.org>
22803
22804         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
22805         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
22806         character, return the number of bytes that belong together, not always
22807         1.
22808         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
22809         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
22810         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
22811         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
22812         number of bytes of an invalid character.
22813         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
22814         (main): Invoke it.
22815         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
22816         results.
22817         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
22818         malformed byte sequences.
22819         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
22820         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
22821         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
22822         Reported by Ben Pfaff and Paolo Bonzini.
22823
22824 2010-11-13  Bruno Haible  <bruno@clisp.org>
22825
22826         openat: Work around glibc bug with fchownat() and empty file names.
22827         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
22828         (gl_FUNC_FCHOWNAT): Invoke it.
22829         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
22830         * doc/posix-functions/fchownat.texi: Document the glibc bug.
22831         Reported by Gary V. Vaughan <gary@gnu.org>.
22832
22833 2010-11-13  Bruno Haible  <bruno@clisp.org>
22834
22835         openat: Ensure autoconf macro ordering.
22836         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
22837         gl_USE_SYSTEM_EXTENSIONS.
22838         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
22839
22840 2010-11-13  Bruno Haible  <bruno@clisp.org>
22841
22842         Update comments.
22843         * lib/unistr/u8-check.c: Update file name in comments.
22844         * lib/unistr/u8-mblen.c: Likewise.
22845         * lib/unistr/u8-prev.c: Likewise.
22846         * lib/unistr/u8-strmblen.c: Likewise.
22847         * lib/unistr/u8-strmbtouc.c: Likewise.
22848
22849 2010-11-13  Jim Meyering  <meyering@redhat.com>
22850
22851         tests: avoid test failure on Solaris 10 due to lack of PATH export
22852         * tests/test-update-copyright.sh: Don't forget to export PATH.
22853
22854         init.sh: ensure that IFS is defined, just in case...
22855         * tests/init.sh (setup_): Ensure that IFS is defined,
22856         so that saving and restoring it works as expected.  This
22857         appears to be useful at least for an old version of dash
22858         from a long time ago (RH 6).  See here for details:
22859         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
22860
22861         maint.mk: tighten "test a == b" check
22862         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
22863         test to files that contain something like #!/bin/sh.
22864         Without this, coreutils would get two false positives in
22865         the comments of C source files.
22866
22867 2010-11-12  Eric Blake  <eblake@redhat.com>
22868
22869         bootstrap: fix typo in previous attempt
22870         * build-aux/bootstrap (buildreq): Correct the grouping.
22871         Reported by Paul Eggert.
22872
22873         maintainer-makefile: prohibit test x == x
22874         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
22875         Based on a report by Matthias Bolte.
22876
22877         bootstrap: allow FreeBSD gzip
22878         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
22879         which has no '.' and goes to stderr.
22880         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
22881         Reported by Matthias Bolte.
22882
22883         maintainer-makefile: check for i18n setup
22884         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
22885         will likely work.
22886
22887 2010-11-12  Bruno Haible  <bruno@clisp.org>
22888
22889         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
22890         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
22891         * lib/nanosleep.c (nanosleep): Likewise.
22892
22893 2010-11-11  Bruno Haible  <bruno@clisp.org>
22894
22895         fcntl-h: Fix for use of C++ on glibc systems.
22896         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22897         also on glibc systems in C++ mode.
22898         Reported by Gary V. Vaughan <gary@gnu.org>.
22899
22900 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
22901
22902         mknod: avoid false failure with dash
22903         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
22904
22905 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
22906
22907         unlink: Fix "is it should" typo in diagnostic.
22908         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
22909         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
22910
22911 2010-11-11  Bruno Haible  <bruno@clisp.org>
22912
22913         Tests for module 'strerror_r-posix'.
22914         * modules/strerror_r-posix-tests: New file.
22915         * tests/test-strerror_r.c: New file.
22916         * tests/test-string-c++.cc: Check the signature of strerror_r.
22917
22918         New module 'strerror_r-posix'.
22919         * lib/string.in.h (strerror_r): New declaration.
22920         * lib/strerror_r.c: New file.
22921         * m4/strerror_r.m4: New file.
22922         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
22923         of strerror_r.
22924         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
22925         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22926         * modules/strerror_r-posix: New file.
22927         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
22928         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
22929         * doc/posix-functions/strerror_r.texi: Mention the new module and the
22930         portability problems.
22931
22932 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
22933
22934         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
22935         line is also considered for output. Quoted function name in shell
22936         command, so temporary files for functions like MyClass::operator()
22937         are removed correctly without errors.
22938
22939 2010-11-09  Bruno Haible  <bruno@clisp.org>
22940
22941         * doc/posix-functions/strerror.texi: List more failing platforms.
22942
22943         * doc/posix-functions/strerror.texi: Add a comment.
22944
22945 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22946
22947         fdopendir: fix bug on MacOS X when low on file descriptors
22948
22949         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
22950         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
22951         All callers changed.
22952         (fdopendir): Invoke save_cwd at the top level, not after using
22953         multiple dup() calls to use up file descriptors.  Then retry
22954         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
22955         less than the maximum number of open file descriptors, because
22956         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
22957         on Mac OS X 10.6.4 for tar 1.24
22958         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
22959         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
22960         and for tar 1.25
22961         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
22962
22963 2010-11-07  Bruno Haible  <bruno@clisp.org>
22964
22965         vasnprintf: Support I flag on glibc systems.
22966         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
22967         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
22968         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
22969         snprintf function.
22970         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
22971         glibc systems.
22972         * tests/test-vasnprintf-posix3.c: New file.
22973         * modules/vasnprintf-posix-tests (Files): Add it.
22974         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
22975
22976 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
22977
22978         [html] Fix copy/paste bug: Use unique name for compiler warnings.
22979         * MODULES.html.sh: For compiler warnings, use name
22980         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
22981
22982 2010-11-05  Eric Blake  <eblake@redhat.com>
22983
22984         ceil, floor: avoid spurious failure with icc
22985         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
22986         [denormals-as-zero] when optimizing without -mieee-fp option.
22987         * tests/test-floorf2.c (floorf_reference): Likewise.
22988         * tests/test-ceilf1.c (dummy): New function.
22989         (main): Use it to outsmart icc's optimization.
22990         * tests/test-floorf1.c (dummy, main): Likewise.
22991
22992         tests: require working signbit
22993         * modules/ceilf-tests (Depends-on): Add signbit.
22994         * modules/ceill-tests (Depends-on): Likewise.
22995         * modules/floorf-tests (Depends-on): Likewise.
22996         * modules/floorl-tests (Depends-on): Likewise.
22997         * modules/round-tests (Depends-on): Likewise.
22998         * modules/roundf-tests (Depends-on): Likewise.
22999         * modules/roundl-tests (Depends-on): Likewise.
23000         * modules/trunc-tests (Depends-on): Likewise.
23001         * modules/truncf-tests (Depends-on): Likewise.
23002         * modules/truncl-tests (Depends-on): Likewise.
23003
23004         strtod: work around icc bug
23005         * lib/strtod.c (minus_zero): Define to working value.
23006         (strtod): Use it to avoid icc bug.
23007
23008         copysign: enhance tests
23009         * modules/copysign-tests (Files): Add minus-zero.h.
23010         * tests/test-copysign.c (main): Also test zeros.
23011
23012 2010-11-04  Eric Blake  <eblake@redhat.com>
23013
23014         ceil, floor, round, trunc: enhance tests of -0
23015         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23016         * tests/test-ceill.c (main): Likewise.
23017         * tests/test-floorf1.c (main): Likewise.
23018         * tests/test-floorl.c (main): Likewise.
23019         * tests/test-round1.c (main): Likewise.
23020         * tests/test-roundf1.c (main): Likewise.
23021         * tests/test-roundl.c (main): Likewise.
23022         * tests/test-trunc1.c (main): Likewise.
23023         * tests/test-truncf1.c (main): Likewise.
23024         * tests/test-truncl.c (main): Likewise.
23025
23026 2010-11-04  Eric Blake  <eblake@redhat.com>
23027
23028         frexp, tests: work around ICC bug with -zero
23029         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23030         works with more compilers.
23031         * tests/minus-zero.h: New file.
23032         * modules/ceilf-tests (Files): Include it.
23033         * modules/ceill-tests (Files): Likewise.
23034         * modules/floorf-tests (Files): Likewise.
23035         * modules/floorl-tests (Files): Likewise.
23036         * modules/frexp-nolibm-tests (Files): Likewise.
23037         * modules/frexp-tests (Files): Likewise.
23038         * modules/frexpl-nolibm-tests (Files): Likewise.
23039         * modules/frexpl-tests (Files): Likewise.
23040         * modules/isnan-tests (Files): Likewise.
23041         * modules/isnand-nolibm-tests (Files): Likewise.
23042         * modules/isnand-tests (Files): Likewise.
23043         * modules/isnanf-nolibm-tests (Files): Likewise.
23044         * modules/isnanf-tests (Files): Likewise.
23045         * modules/isnanl-nolibm-tests (Files): Likewise.
23046         * modules/isnanl-tests (Files): Likewise.
23047         * modules/round-tests (Files): Likewise.
23048         * modules/roundf-tests (Files): Likewise.
23049         * modules/roundl-tests (Files): Likewise.
23050         * modules/ldexpl-tests (Files): Likewise.
23051         * modules/signbit-tests (Files): Likewise.
23052         * modules/snprintf-posix-tests (Files): Likewise.
23053         * modules/sprintf-posix-tests (Files): Likewise.
23054         * modules/strtod-tests (Files): Likewise.
23055         * modules/trunc-tests (Files): Likewise.
23056         * modules/truncf-tests (Files): Likewise.
23057         * modules/truncl-tests (Files): Likewise.
23058         * modules/vsnprintf-posix-tests (Files): Likewise.
23059         * modules/vsprintf-posix-tests (Files): Likewise.
23060         * modules/vasnprintf-posix-tests (Files): Likewise.
23061         * modules/vasprintf-posix-tests (Files): Likewise.
23062         * tests/test-ceilf1.c (main): Use it.
23063         * tests/test-ceill.c (main): Likewise.
23064         * tests/test-floorf1.c (main): Likewise.
23065         * tests/test-floorl.c (main): Likewise.
23066         * tests/test-frexp.c (main): Likewise.
23067         * tests/test-frexpl.c (main): Likewise.
23068         * tests/test-isnan.c (main): Likewise.
23069         * tests/test-isnand.h (main): Likewise.
23070         * tests/test-isnanf.h (main): Likewise.
23071         * tests/test-isnanl.h (main): Likewise.
23072         * tests/test-ldexpl.c (main): Likewise.
23073         * tests/test-round.c (main): Likewise.
23074         * tests/test-roundf.c (main): Likewise.
23075         * tests/test-roundl.c (main): Likewise.
23076         * tests/test-signbit.c (test_signbitf, test_signbitd)
23077         (test_signbitl): Likewise.
23078         * tests/test-snprintf-posix.h (test_function): Likewise.
23079         * tests/test-sprintf-posix.h (test_function): Likewise.
23080         * tests/test-strtod.c (main): Likewise.
23081         * tests/test-trunc1.c (main): Likewise.
23082         * tests/test-truncf1.c (main): Likewise.
23083         * tests/test-truncl.c (main): Likewise.
23084
23085         isnanl: work around icc bug
23086         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23087
23088 2010-11-03  Eric Blake  <eblake@redhat.com>
23089
23090         tests: fix compiler warnings
23091         * tests/test-getopt.h (test_getopt): Fix condition.
23092         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23093         * tests/test-pipe2.c (main): Likewise.
23094         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23095
23096         utimens: fix broken m4 test
23097         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23098
23099 2010-10-28  Bruno Haible  <bruno@clisp.org>
23100
23101         posix_spawn*, getdtablesize: Relax license.
23102         * modules/posix_spawn (License): Change to LGPLv2+.
23103         * modules/posix_spawnp (License): Likewise.
23104         * modules/posix_spawn-internal (License): Likewise.
23105         * modules/posix_spawnattr_init (License): Likewise.
23106         * modules/posix_spawnattr_getflags (License): Likewise.
23107         * modules/posix_spawnattr_setflags (License): Likewise.
23108         * modules/posix_spawnattr_getpgroup (License): Likewise.
23109         * modules/posix_spawnattr_setpgroup (License): Likewise.
23110         * modules/posix_spawnattr_getschedparam (License): Likewise.
23111         * modules/posix_spawnattr_setschedparam (License): Likewise.
23112         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23113         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23114         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23115         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23116         * modules/posix_spawnattr_getsigmask (License): Likewise.
23117         * modules/posix_spawnattr_setsigmask (License): Likewise.
23118         * modules/posix_spawnattr_destroy (License): Likewise.
23119         * modules/posix_spawn_file_actions_init (License): Likewise.
23120         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23121         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23122         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23123         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23124         * modules/getdtablesize (License): Likewise.
23125         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23126
23127 2010-10-26  Bruno Haible  <bruno@clisp.org>
23128
23129         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23130         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23131         Cygwin and mingw.
23132         Suggested by Eric Blake.
23133
23134 2010-10-26  Bruno Haible  <bruno@clisp.org>
23135
23136         stdio: Work around compilation error due to renameat() on Solaris 10.
23137         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23138         * lib/renameat.c: Don't include <unistd.h> here.
23139         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23140         Reported by Paul Eggert and Eric Blake.
23141
23142 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23143
23144         renameat: port to Solaris 10, which declares renameat in unistd.h
23145
23146         * lib/renameat.c: Include unistd.h before stdio.h, because
23147         Solaris 10 declares renameat in unistd.h.  Problem encountered
23148         when building GNU tar 1.24 on Solaris 10.
23149
23150 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23151
23152         fdopendir: fix C89 compilation
23153         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23154         compilers.
23155
23156 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23157
23158         inttostr: simplify by removing unnecessary redundancy
23159         * lib/anytostr.c: Don't include verify.h.
23160         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23161         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23162         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23163         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23164         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23165         Likewise.
23166         * modules/inttostr (Depends-on): Remove 'verify'.
23167
23168 2010-10-23  Bruno Haible  <bruno@clisp.org>
23169
23170         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23171         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23172         Reported by Eric Blake.
23173
23174 2010-10-23  Bruno Haible  <bruno@clisp.org>
23175
23176         Tests: Fix LOCALE_JA on MirBSD 10.
23177         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23178         to an UTF-8 locale.
23179         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23180         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23181         Reported by Eric Blake.
23182
23183 2010-10-21  Bruno Haible  <bruno@clisp.org>
23184
23185         nl_langinfo test: Avoid test failure on NetBSD 5.
23186         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23187         Reported by Eric Blake.
23188
23189 2010-10-21  Eric Blake  <eblake@redhat.com>
23190
23191         c-stack: work around libsigsegv 2.8 bug
23192         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23193         overflow on at least PowerPC64.
23194
23195 2010-10-17  Bruno Haible  <bruno@clisp.org>
23196
23197         userspec: Drop redundant file.
23198         * modules/userspec (Files): Remove lib/inttostr.h.
23199
23200 2010-10-17  Bruno Haible  <bruno@clisp.org>
23201
23202         nl_langinfo tests: Silence some warnings.
23203         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23204         Reported by Jim Meyering.
23205
23206 2010-10-17  Bruno Haible  <bruno@clisp.org>
23207
23208         Make use of GCC's attribute __alloc_size__.
23209         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23210         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23211         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23212         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23213         __alloc_size__.
23214         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23215         Suggested by Jim Meyering.
23216
23217 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23218
23219         bootstrap: anchor .gitignore entries.
23220         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23221         with...
23222         (insert_vc_ignore): ... this new function, which prepends `/' to
23223         all .gitignore entries before passing them to
23224         insert_sorted_if_absent.
23225
23226 2010-10-16  Bruno Haible  <bruno@clisp.org>
23227
23228         nextafter: Fix configure check.
23229         * modules/nextafter (configure.ac): Correct expected prototype.
23230
23231 2010-10-16  Bruno Haible  <bruno@clisp.org>
23232
23233         termios: Update documentation.
23234         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23235
23236 2010-10-16  Bruno Haible  <bruno@clisp.org>
23237
23238         tests: Make them compile with TinyCC.
23239         * tests/test-strstr.c (main): Remove parentheses around array
23240         initializer.
23241
23242 2010-10-15  Eric Blake  <eblake@redhat.com>
23243
23244         ignore-value: make header idempotent
23245         * lib/ignore-value.h: Add double-inclusion guards.
23246         Reported by Stefan Berger.
23247
23248 2010-10-15  Jim Meyering  <meyering@redhat.com>
23249
23250         GNUmakefile: handle "stable" target, not "major"
23251         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23252         lists in maint.mk and announce-gen.  Without this, "make stable"
23253         would fail to ensure that $(VERSION) is up to date.
23254
23255 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23256
23257         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23258         & co.
23259
23260 2010-10-14  Bruno Haible  <bruno@clisp.org>
23261
23262         vasnprintf: Don't set errno to 0.
23263         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23264         block that sets it to 0.
23265         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23266
23267 2010-10-14  Bruno Haible  <bruno@clisp.org>
23268
23269         socketlib: Fix.
23270         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23271         gl_PREREQ_SYS_H_WINSOCK2.
23272         Reported by Ian Beckwith <ianb@erislabs.net>.
23273
23274 2010-10-13  Jim Meyering  <meyering@redhat.com>
23275
23276         test-select-stdin.c: avoid warn_unused_result warnings
23277         * tests/test-select-stdin.c: Include "macros.h".
23278         ASSERT that read and fflush succeed.
23279
23280 2010-10-13  Jim Meyering  <meyering@redhat.com>
23281
23282         git-version-gen: do require git-VC'd files in cwd
23283         * build-aux/git-version-gen: Reject a git version string
23284         if there are no commits associated with the current directory.
23285         This avoids an unlikely false-positive (unrelated dir whose parent
23286         repository also contains a tag matching v*), as pointed out
23287         by Giuseppe Scrivano in
23288         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23289
23290 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23291
23292         argv-iter: omit nonconforming declaration
23293         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23294         enum arg_iter_err declaration, which doesn't conform to C99.
23295         Solaris 10 cc warns about this.
23296
23297 2010-10-13  Eric Blake  <eblake@redhat.com>
23298
23299         termios: fix compilation on mingw
23300         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23301         (gl_TERMIOS_H): Adjust it on mingw.
23302         * modules/termios (Makefile.am): Substitute new key.
23303         * lib/termios.in.h (includes): Make include_next conditional.
23304         * doc/posix-headers/termios.texi (termios.h): Update
23305         documentation.
23306         Reported by Daniel P. Berrange.
23307
23308 2010-10-13  Jim Meyering  <meyering@redhat.com>
23309
23310         git-version-gen: don't require that .git/ be in the current dir
23311         * build-aux/git-version-gen: Adjust this script so that it works
23312         when run from any working directory beneath the top-level .git/-
23313         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23314         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23315
23316         test-select: avoid warn_unused_result warnings
23317         * tests/test-select.c: Include "macros.h".
23318         ASSERT that each call to read, write, and pipe succeeds.
23319         While not technically required, also check each "close".
23320         * modules/select-tests (Files): Add tests/macros.h.
23321
23322         test-symlinkat: remove declaration of unused local
23323         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23324
23325         test-inttostr: avoid shadowing warnings
23326         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23327         and use malloc rather than the stack for the same reason as
23328         mentioned in the comment justifying the other allocation.
23329
23330 2010-10-11  Bruno Haible  <bruno@clisp.org>
23331
23332         stdlib: Allow multiple gnulib generated replacements to coexist.
23333         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23334         Reported by Sam Steingold <sds@gnu.org>.
23335
23336 2010-10-11  Jim Meyering  <meyering@redhat.com>
23337
23338         fix a documentation typo
23339         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23340
23341 2010-10-11  Eric Blake  <eblake@redhat.com>
23342
23343         futimens: work around Solaris 11 bug
23344         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23345         * tests/test-futimens.h (test_futimens): Enhance, rather than
23346         weaken test.
23347         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23348
23349 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23350
23351         Indentation.
23352         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23353         higher-level operators more to the left.
23354
23355 2010-10-11  Jim Meyering  <meyering@redhat.com>
23356
23357         test-futimens: avoid unwarranted test failure on Solaris 5.11
23358         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23359         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23360         because it tries to dereference the NULL name argument.
23361
23362 2010-10-11  Bruno Haible  <bruno@clisp.org>
23363
23364         Indentation.
23365         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23366         indentation.
23367
23368 2010-10-11  Jim Meyering  <meyering@redhat.com>
23369
23370         spawn.in.h: make indentation consistent with parentheses
23371         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23372         Make indentation consistent with parentheses.
23373
23374 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23375
23376         Fix mismatched parens in previous commit
23377         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23378         parens.
23379
23380 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23381
23382         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23383
23384         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23385         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23386         * lib/malloca.c: Include "verify.h".
23387         (verify1): Remove, replacing with a verify call.
23388         * lib/relocwrapper.c (verify1): Likewise.
23389         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23390         Likewise.
23391         * modules/malloca (Depends-on): Add 'verify'.
23392         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23393         * modules/vasnprintf (Depends-on): Add 'verify'.
23394         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23395         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23396         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23397         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23398         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23399         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23400         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23401
23402         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23403
23404         Formerly the style was sometimes 2*X - 1, because the C standard
23405         was wrongly thought to disallow ?: in integral constant expressions.
23406         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23407         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23408         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23409         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23410         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23411         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23412         verify that time_t cannot be floating.
23413
23414 2010-10-08  Eric Blake  <eblake@redhat.com>
23415
23416         time: enforce recent POSIX ruling that time_t is integral
23417         * lib/time.in.h (__time_t_must_be_integral): Detect any
23418         problematic systems, allowing the rest of gnulib to assume POSIX.
23419
23420 2010-10-08  Jim Meyering  <meyering@redhat.com>
23421
23422         fdopendir: fix a bug on systems lacking openat and /proc support
23423         OpenBSD 4.7 is one such system.  The most noticeable effect was
23424         failure of any application making nontrivial use of fts: rm, du,
23425         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23426           ./rm: traversal failed: `a': Bad file descriptor
23427         Debugging that, you see that even though FD 6 was closed just
23428         prior to the opendir call in fd_clone_opendir, its resulting
23429         dir->dd_fd was 8, rather than the expected value of 6:
23430
23431         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23432         93                close (fd);
23433         (gdb) n
23434         94                dir = fd_clone_opendir (dupfd);
23435         (gdb) n
23436         95                saved_errno = errno;
23437         (gdb) p dir->dd_fd
23438         $11 = 8
23439
23440         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
23441         The problem is that on OpenBSD, fd_clone_opendir has to resort
23442         to using the old-style save/restore CWD mechanism, due to its
23443         lack of openat/proc support, and *that* would steal the FD (6)
23444         that opendir was supposed to use.
23445
23446         The fix is to squirrel away the desired FD so that save_cwd uses a
23447         different one, and then free the dest FD right before calling opendir.
23448         That guarantees opendir will use the required file descriptor.
23449
23450         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
23451
23452 2010-10-08  Bruno Haible  <bruno@clisp.org>
23453
23454         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
23455         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
23456
23457 2010-10-08  Bruno Haible  <bruno@clisp.org>
23458
23459         nanosleep: Make replacement POSIX compliant.
23460         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
23461         is out of range.
23462         Reported by Jim Meyering.
23463
23464 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23465
23466         bootstrap: add hook for altering gnulib.mk, for Bison
23467         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
23468         the Bison bootstrapping process can rewrite file names and variables
23469         in this file before later parts of 'bootstrap' use the file.
23470         Bison wants to include lib/gnulib.mk from the top-level makefile,
23471         so it needs the file names in this file to be relative to the top
23472         level, not relative to lib; plus it needs variable names to be
23473         rewritten.
23474         (slurp): Use the new function.
23475
23476         bootstrap: reformat for readability
23477         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
23478
23479 2010-10-08  Eric Blake  <eblake@redhat.com>
23480
23481         docs: update cygwin progress
23482         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
23483         1.7.7.
23484         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
23485         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
23486         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
23487         * doc/posix-functions/carg.texi (carg): Likewise.
23488         * doc/posix-functions/cargf.texi (cargf): Likewise.
23489         * doc/posix-functions/casin.texi (casin): Likewise.
23490         * doc/posix-functions/casinf.texi (casinf): Likewise.
23491         * doc/posix-functions/casinh.texi (casinh): Likewise.
23492         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
23493         * doc/posix-functions/catan.texi (catan): Likewise.
23494         * doc/posix-functions/catanf.texi (catanf): Likewise.
23495         * doc/posix-functions/catanh.texi (catanh): Likewise.
23496         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
23497         * doc/posix-functions/ccos.texi (ccos): Likewise.
23498         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
23499         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
23500         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
23501         * doc/posix-functions/cexp.texi (cexp): Likewise.
23502         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
23503         * doc/posix-functions/cimag.texi (cimag): Likewise.
23504         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
23505         * doc/posix-functions/clog.texi (clog): Likewise.
23506         * doc/posix-functions/clogf.texi (clogf): Likewise.
23507         * doc/posix-functions/conj.texi (conj): Likewise.
23508         * doc/posix-functions/conjf.texi (conjf): Likewise.
23509         * doc/posix-functions/cpow.texi (cpow): Likewise.
23510         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
23511         * doc/posix-functions/cproj.texi (cproj): Likewise.
23512         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
23513         * doc/posix-functions/creal.texi (creal): Likewise.
23514         * doc/posix-functions/crealf.texi (crealf): Likewise.
23515         * doc/posix-functions/csin.texi (csin): Likewise.
23516         * doc/posix-functions/csinf.texi (csinf): Likewise.
23517         * doc/posix-functions/csinh.texi (csinh): Likewise.
23518         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
23519         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
23520         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
23521         * doc/posix-functions/ctan.texi (ctan): Likewise.
23522         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
23523         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
23524         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
23525         * doc/posix-headers/complex.texi (complex.h): Likewise.
23526
23527 2010-10-07  Jim Meyering  <meyering@redhat.com>
23528
23529         parse-datetime: avoid compilation failure on OpenBSD 4.7
23530         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
23531         This works around a compilation failure on OpenBSD 4.7:
23532         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
23533
23534 2010-10-07  Eric Blake  <eblake@redhat.com>
23535
23536         docs: update cygwin progress
23537         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
23538         1.7.6.
23539         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
23540         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
23541         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
23542         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
23543         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
23544         Likewise.
23545         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
23546         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
23547         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
23548         Likewise.
23549         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
23550         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
23551         Likewise.
23552         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
23553         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
23554         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
23555         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
23556         Likewise.
23557         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
23558         Likewise.
23559         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
23560
23561         docs: update parse-datetime history
23562         * doc/parse-datetime.texi (Authors of parse_datetime): Better
23563         documentation of this function's history and alternatives.
23564
23565         cygwin: use more robust version check
23566         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
23567         exclude an eventual cygwin 1.9.1.
23568         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23569         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23570         (gl_FUNC_STRCASESTR): Likewise.
23571         Reported by Bruno Haible.
23572
23573 2010-10-06  Bruno Haible  <bruno@clisp.org>
23574
23575         string, sys_select: Avoid #including large headers unless necessary.
23576         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
23577         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
23578         OSF/1, BeOS, Haiku.
23579         Reported by Jim Meyering.
23580
23581 2010-10-05  Eric Blake  <eblake@redhat.com>
23582
23583         memmem, strstr, strcasestr: fix bug with long periodic needle
23584         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
23585         periodic needle having false positive.
23586         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
23587         and cygwin 1.7.7.
23588         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
23589         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
23590         (gl_FUNC_STRCASESTR): Likewise.
23591         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23592         * tests/test-memmem.c (main): Expose the bug.
23593         * tests/test-strcasestr.c (main): Likewise.
23594         * tests/test-strstr.c (main): Likewise.
23595         * tests/test-c-strcasestr.c (main): Likewise.
23596         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
23597         * doc/posix-functions/strstr.texi (strstr): Likewise.
23598         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
23599         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
23600
23601 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23602
23603         parse-datetime: do some more renaming
23604         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
23605         parse_datetime, not get_date.  Mention the renaming.
23606         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
23607         in comments.
23608         * m4/bison.m4: Likewise.
23609
23610 2010-10-05  Eric Blake  <eblake@redhat.com>
23611
23612         parse-datetime: better name than get_date
23613         * NEWS: Reword the deprecation notice.
23614         * modules/get_date: Rename to modules/parse-datetime.
23615         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
23616         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
23617         * lib/get_date.y: Rename to lib/parse-datetime.y.
23618         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
23619         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
23620         * doc/getdate.texi: Provide fallback wrapper.
23621         * lib/getdate.h: Move guts, and wrap...
23622         * lib/parse-datetime.h: ...new file.
23623         * lib/parse-datetime.y (get_date): Rename...
23624         (parse_datetime): ...to this.
23625         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
23626         (gl_PARSE_DATETIME): ...to this.
23627         * doc/posix-functions/getdate.texi (get_date): Provide fallback
23628         documentation.
23629         * modules/getdate (Files): Provide fallback docs and header.
23630         (Notice, Depends-on): Update references.
23631         * tests/test-parse-datetime.c: Likewise.
23632         * DEPENDENCIES: Likewise.
23633         * MODULES.html.sh (Date and time <time.h>): Likewise.
23634         * doc/parse-datetime.texi (Date input formats)
23635         (Authors of parse_datetime): Likewise.
23636         * modules/parse-datetime (Files, configure.ac, Makefile.am)
23637         (Include): Likewise.
23638         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
23639         * gnulib-tool: Likewise.
23640         * m4/bison.m4 (gl_BISON): Likewise.
23641         Suggested by Bruno Haible.
23642
23643 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23644
23645         more ports to Solaris tr, which needs [] around ranges
23646         * gnulib-tool: Solaris tr needs [] around ranges.
23647         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23648         * tests/test-pipe-filter-gi1.c (main): Likewise.
23649         * tests/test-pipe-filter-ii1.c (main): Likewise.
23650
23651 2010-10-05  Eric Blake  <eblake@redhat.com>
23652
23653         bootstrap: fix Solaris regression
23654         * build-aux/bootstrap (check_versions): Solaris tr still needs []
23655         around ranges.
23656         Reported by Pádraig Brady.
23657
23658         bootstrap: work with pkg-config
23659         * build-aux/bootstrap (check_versions): Also transliterate - in
23660         prerequisite name.
23661         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
23662         prerequisites that were already found, to avoid confusion.
23663         Reported by Justin Clift.
23664
23665         faccessat: remove unused wrappers
23666         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
23667         presence of these wrappers dragged in -lgen on Solaris.
23668         Reported by Clemens Brogi; fix suggested by Paul Eggert.
23669
23670 2010-10-05  Jim Meyering  <meyering@redhat.com>
23671
23672         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
23673         * Makefile (sc_pragma_columns): New syntax-check rule.
23674
23675 2010-10-04  Bruno Haible  <bruno@clisp.org>
23676
23677         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
23678         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
23679         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
23680         Reported by Bruce Korb and Eric Blake.
23681
23682 2010-10-04  Bruno Haible  <bruno@clisp.org>
23683
23684         threadlib: Make option --with-libpth-prefix work.
23685         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
23686         use $LIBPTH, not just -lpth.
23687
23688 2010-10-04  Bruno Haible  <bruno@clisp.org>
23689
23690         Avoid line length limitation from HP NonStop system header files.
23691         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
23692         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
23693         * lib/ctype.in.h: Likewise.
23694         * lib/dirent.in.h: Likewise.
23695         * lib/errno.in.h: Likewise.
23696         * lib/fcntl.in.h: Likewise.
23697         * lib/float.in.h: Likewise.
23698         * lib/getopt.in.h: Likewise.
23699         * lib/iconv.in.h: Likewise.
23700         * lib/inttypes.in.h: Likewise.
23701         * lib/langinfo.in.h: Likewise.
23702         * lib/locale.in.h: Likewise.
23703         * lib/math.in.h: Likewise.
23704         * lib/netdb.in.h: Likewise.
23705         * lib/netinet_in.in.h: Likewise.
23706         * lib/poll.in.h: Likewise.
23707         * lib/pthread.in.h: Likewise.
23708         * lib/pty.in.h: Likewise.
23709         * lib/sched.in.h: Likewise.
23710         * lib/se-selinux.in.h: Likewise.
23711         * lib/search.in.h: Likewise.
23712         * lib/signal.in.h: Likewise.
23713         * lib/spawn.in.h: Likewise.
23714         * lib/stdarg.in.h: Likewise.
23715         * lib/stddef.in.h: Likewise.
23716         * lib/stdint.in.h: Likewise.
23717         * lib/stdio.in.h: Likewise.
23718         * lib/stdlib.in.h: Likewise.
23719         * lib/string.in.h: Likewise.
23720         * lib/strings.in.h: Likewise.
23721         * lib/sys_file.in.h: Likewise.
23722         * lib/sys_ioctl.in.h: Likewise.
23723         * lib/sys_select.in.h: Likewise.
23724         * lib/sys_socket.in.h: Likewise.
23725         * lib/sys_stat.in.h: Likewise.
23726         * lib/sys_time.in.h: Likewise.
23727         * lib/sys_times.in.h: Likewise.
23728         * lib/sys_utsname.in.h: Likewise.
23729         * lib/sys_wait.in.h: Likewise.
23730         * lib/sysexits.in.h: Likewise.
23731         * lib/termios.in.h: Likewise.
23732         * lib/time.in.h: Likewise.
23733         * lib/unistd.in.h: Likewise.
23734         * lib/wchar.in.h: Likewise.
23735         * lib/wctype.in.h: Likewise.
23736         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
23737         * modules/ctype (Makefile.am): Likewise.
23738         * modules/dirent (Makefile.am): Likewise.
23739         * modules/errno (Makefile.am): Likewise.
23740         * modules/fcntl-h (Makefile.am): Likewise.
23741         * modules/float (Makefile.am): Likewise.
23742         * modules/getopt-posix (Makefile.am): Likewise.
23743         * modules/iconv-h (Makefile.am): Likewise.
23744         * modules/inttypes (Makefile.am): Likewise.
23745         * modules/langinfo (Makefile.am): Likewise.
23746         * modules/locale (Makefile.am): Likewise.
23747         * modules/math (Makefile.am): Likewise.
23748         * modules/netdb (Makefile.am): Likewise.
23749         * modules/netinet_in (Makefile.am): Likewise.
23750         * modules/poll-h (Makefile.am): Likewise.
23751         * modules/pthread (Makefile.am): Likewise.
23752         * modules/pty (Makefile.am): Likewise.
23753         * modules/sched (Makefile.am): Likewise.
23754         * modules/search (Makefile.am): Likewise.
23755         * modules/selinux-h (Makefile.am): Likewise.
23756         * modules/signal (Makefile.am): Likewise.
23757         * modules/spawn (Makefile.am): Likewise.
23758         * modules/stdarg (Makefile.am): Likewise.
23759         * modules/stddef (Makefile.am): Likewise.
23760         * modules/stdint (Makefile.am): Likewise.
23761         * modules/stdio (Makefile.am): Likewise.
23762         * modules/stdlib (Makefile.am): Likewise.
23763         * modules/string (Makefile.am): Likewise.
23764         * modules/strings (Makefile.am): Likewise.
23765         * modules/sys_file (Makefile.am): Likewise.
23766         * modules/sys_ioctl (Makefile.am): Likewise.
23767         * modules/sys_select (Makefile.am): Likewise.
23768         * modules/sys_socket (Makefile.am): Likewise.
23769         * modules/sys_stat (Makefile.am): Likewise.
23770         * modules/sys_time (Makefile.am): Likewise.
23771         * modules/sys_times (Makefile.am): Likewise.
23772         * modules/sys_utsname (Makefile.am): Likewise.
23773         * modules/sys_wait (Makefile.am): Likewise.
23774         * modules/sysexits (Makefile.am): Likewise.
23775         * modules/termios (Makefile.am): Likewise.
23776         * modules/time (Makefile.am): Likewise.
23777         * modules/unistd (Makefile.am): Likewise.
23778         * modules/wchar (Makefile.am): Likewise.
23779         * modules/wctype (Makefile.am): Likewise.
23780
23781 2010-10-04  Bruno Haible  <bruno@clisp.org>
23782
23783         read-file tests: Avoid a test failure on NonStop Kernel.
23784         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
23785         a regular file.
23786         Reported by Joachim Schmitz <schmitz@hp.com>.
23787
23788 2010-10-03  Bruno Haible  <bruno@clisp.org>
23789
23790         gnulib-tool: Fixes for --create-testdir with --libtool.
23791         * gnulib-tool (func_get_automake_snippet): Don't augment
23792         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
23793         an executable.
23794         (func_create_testdir): Handle module 'alloca' like func_import.
23795         Reported by Bruce Korb <bruce.korb@gmail.com>.
23796
23797 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
23798
23799         Avoid some lines longer than 80 characters.
23800         * lib/stdint.in.h: Break long comment lines.
23801         * lib/math.in.h: Likewise.
23802         (_GL_NUM_UINT_WORDS): New macro, for readability.
23803         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
23804         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
23805         * lib/stdlib.in.h: Likewise.
23806         * lib/spawn.in.h: Likewise.
23807         * lib/sys_socket.in.h: Update an URL.
23808         * lib/sys_stat.in.h: Break long line.
23809
23810 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
23811
23812         Improve pmccabe2html.
23813         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
23814         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
23815         when the sources change. Remove the line in the HTML about "Used
23816         ranges" (which implied that there might be other unused ranges),
23817         rename "Resume" to "Summary" (easier to understand for more users).
23818         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
23819         styles, and some unnecessary blank lines.
23820
23821 2010-10-03  Bruno Haible  <bruno@clisp.org>
23822             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
23823
23824         acl: Add support for ACLs on NonStop Kernel.
23825         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
23826         Check whether the function aclsort() exists.
23827         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
23828         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
23829         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23830         (acl_nontrivial [HAVE_ACLSORT]: New function.
23831         (file_has_acl): Implement for NonStop Kernel.
23832         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23833         (qset_acl): Implement for NonStop Kernel.
23834         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
23835         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
23836         (main): Implement for NonStop Kernel.
23837         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
23838         Kernel. Handle this flavor.
23839         * tests/test-set-mode-acl.sh: Likewise.
23840         * tests/test-copy-acl.sh: Likewise.
23841         * tests/test-copy-file.sh: Likewise.
23842
23843 2010-10-03  Bruno Haible  <bruno@clisp.org>
23844
23845         Info about ACLs on NonStop Kernel.
23846         * doc/acl-resources.txt: Add info about NonStop Kernel.
23847         References by Joachim Schmitz <schmitz@hp.com>.
23848
23849 2010-10-02  Bruno Haible  <bruno@clisp.org>
23850
23851         Define missing EDQUOT on NonStop Kernel.
23852         * lib/errno.in.h (EDQUOT): Assign a value if missing.
23853         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
23854         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
23855         missing.
23856         * doc/posix-headers/errno.texi: Mention the NSK bug.
23857         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
23858         Reported by Joachim Schmitz <schmitz@hp.com>.
23859
23860 2010-10-02  Bruno Haible  <bruno@clisp.org>
23861
23862         Update doc for POSIX:2008.
23863         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
23864         Update URL of POSIX specification.
23865
23866 2010-10-02  Bruno Haible  <bruno@clisp.org>
23867
23868         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
23869         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
23870         from gnulib, not from Automake.
23871
23872 2010-10-02  Bruno Haible  <bruno@clisp.org>
23873
23874         New module 'system-posix'.
23875         * modules/system-posix: New file.
23876         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
23877         module is present.
23878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23879         GNULIB_SYSTEM_POSIX.
23880         * modules/stdlib (Depends-on): Remove sys_wait.
23881         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
23882         * doc/posix-functions/system.texi: Mention the new module.
23883         * doc/posix-headers/stdlib.texi: Likewise.
23884         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
23885         define test_sys_wait_macros to a no-op.
23886         Reported by Sam Steingold <sds@gnu.org>.
23887
23888 2010-09-30  Bruno Haible  <bruno@clisp.org>
23889
23890         More renaming from 'getdate' to 'get_date'.
23891         * doc/get_date.texi: Renamed from doc/getdate.texi.
23892         * modules/get_date (Files): Update.
23893         * MODULES.html.sh (Date and time <time.h>): Update.
23894         * DEPENDENCIES: Update.
23895         * gnulib-tool: Update comment.
23896         * m4/bison.m4 (gl_BISON): Likewise.
23897         * m4/get_date.m4 (gl_GET_DATE): Likewise.
23898
23899 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
23900
23901         bootstrap: support ACLOCAL_FLAGS during aclocal
23902         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
23903         can add additional -I dir for third-party .m4 files.
23904
23905 2010-09-30  Eric Blake  <eblake@redhat.com>
23906
23907         bootstrap: use glibtoolize on MacOS
23908         * build-aux/bootstrap (check_versions): Convert libtool into
23909         libtoolize.
23910         (tool search): Move libtool check earlier, and look for
23911         glibtoolize for MacOS.
23912         (gnulib_tool_options): Auto-add --libtool when appropriate.
23913         Reported by Justin Clift.
23914
23915         poll: fix typo that broke test on MacOS
23916         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
23917         Reported by Justin Clift.
23918
23919         getdate: rename to get_date
23920         Note: getdate.h is not renamed, to minimize client impact.
23921         * modules/getdate: Mark obsolete.  Move old contents...
23922         * modules/get_date: ...to new module name.
23923         * modules/getdate-tests: Move...
23924         * modules/get_date-tests: ...here.
23925         * m4/getdate.m4: Move...
23926         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
23927         * lib/getdate.y: Move...
23928         * lib/get_date.y: ...here.
23929         * tests/test-getdate.c: Move...
23930         * tests/test-get_date.c: ...here.
23931         * doc/posix-functions/getdate.texi (getdate): Update name.
23932         * NEWS: Mention the change.
23933
23934 2010-09-29  Bruno Haible  <bruno@clisp.org>
23935
23936         Separate the module 'waitpid' from the module 'sys_wait'.
23937         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
23938         present.
23939         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
23940         gl_MODULE_INDICATOR_FOR_TESTS.
23941         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
23942         * modules/sys_wait (Depends-on): Remove waitpid.
23943         (Makefile.am): Substitute GNULIB_WAITPID.
23944         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
23945         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
23946         signature only if the 'waitpid' module is present.
23947         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
23948         * NEWS: Mention the change.
23949         * modules/grantpt (Depends-on): Add waitpid.
23950         * modules/wait-process (Depends-on): Likewise.
23951
23952 2010-09-29  Bruno Haible  <bruno@clisp.org>
23953
23954         More tests for module 'sys_wait'.
23955         * modules/sys_wait-c++-tests: New file.
23956         * tests/test-sys_wait-c++.cc: New file.
23957         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
23958         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23959
23960 2010-09-29  Bruno Haible  <bruno@clisp.org>
23961
23962         New module 'waitpid'.
23963         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
23964         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
23965         Don't include <process.h>.
23966         (waitpid): Declare only, using modern idiom.
23967         * m4/waitpid.m4: New file.
23968         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
23969         * modules/waitpid: New file.
23970         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
23971         (Makefile.am): Update.
23972         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
23973
23974 2010-09-28  Bruno Haible  <bruno@clisp.org>
23975
23976         poll: Assume ANSI C.
23977         * lib/poll.c (poll): Use an ANSI C declaration.
23978
23979 2010-09-28  Bruno Haible  <bruno@clisp.org>
23980
23981         poll-h: Create poll.h on all platforms.
23982         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
23983         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
23984         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
23985         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
23986         (gl_REPLACE_POLL_H): Don't set POLL_H.
23987         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
23988         * modules/poll-h (Depends-on): Add include_next.
23989         (Makefile.am): Create poll.h unconditionally. Substitute also
23990         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
23991
23992 2010-09-28  Bruno Haible  <bruno@clisp.org>
23993
23994         Tests for module 'poll-h'.
23995         * modules/poll-h-c++-tests: New file.
23996         * tests/test-poll-h-c++.cc: New file.
23997
23998         Tests for module 'poll-h'.
23999         * modules/poll-h-tests: New file.
24000         * tests/test-poll-h.c: New file.
24001
24002 2010-09-28  Bruno Haible  <bruno@clisp.org>
24003
24004         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24005         * modules/poll-h (Depends-on): Add 'extensions'.
24006
24007 2010-09-28  Bruno Haible  <bruno@clisp.org>
24008
24009         New module 'poll-h'.
24010         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24011         (poll): Use modern idiom.
24012         * modules/poll-h: New file.
24013         * modules/poll (Files): Remove lib/poll.in.h.
24014         (Depends-on): Add poll-h.
24015         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24016         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24017         * m4/poll_h.m4: New file.
24018         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24019         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24020         and invoke gl_REPLACE_POLL_H.
24021         * lib/poll.c: Use common idiom.
24022         * tests/test-poll.c: Likewise.
24023         * doc/posix-headers/poll.texi: Mention the poll-h module.
24024         Suggested by Eric Blake.
24025
24026 2010-09-26  Bruno Haible  <bruno@clisp.org>
24027
24028         sys_wait: Implement WSTOPSIG.
24029         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24030         Reported by Simon Josefsson.
24031
24032 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24033
24034         stdlib, sys_wait: Avoid compilation error on mingw.
24035         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24036
24037 2010-09-26  Bruno Haible  <bruno@clisp.org>
24038
24039         stdlib tests: Avoid code duplication.
24040         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24041         * modules/sys_wait-tests (Files): Likewise.
24042         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24043         * tests/test-stdlib.c: Include test-sys_wait.h.
24044         (main): Invoke test_sys_wait_macros.
24045         * tests/test-sys_wait.c: Include test-sys_wait.h.
24046         (main): Invoke test_sys_wait_macros.
24047
24048 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24049
24050         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24051         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24052         sure Windows sockets are working before calling getaddrinfo.
24053         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24054         * doc/gnulib.texi (Windows sockets): Fix typo.
24055
24056 2010-09-25  Bruno Haible  <bruno@clisp.org>
24057
24058         Tests for module 'regex-quote'.
24059         * modules/regex-quote-tests: New file.
24060         * tests/test-regex-quote.c: New file.
24061
24062         New module 'regex-quote'.
24063         * lib/regex-quote.h: New file.
24064         * lib/regex-quote.c: New file.
24065         * modules/regex-quote: New file.
24066         Suggested by Reuben Thomas <rrt@sc3d.org>.
24067
24068 2010-09-24  Bruno Haible  <bruno@clisp.org>
24069
24070         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24071         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24072
24073 2010-09-23  Bruno Haible  <bruno@clisp.org>
24074
24075         setenv: Relax license.
24076         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24077         Blake.
24078         Requested by Eric Blake.
24079
24080 2010-09-22  Bruno Haible  <bruno@clisp.org>
24081
24082         termios: Relax license.
24083         * modules/termios (License): Change to LGPLv2+.
24084         Requested by Eric Blake.
24085
24086 2010-09-22  Bruno Haible  <bruno@clisp.org>
24087
24088         threadlib: Allow the package to change the default to 'no'.
24089         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24090         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24091         Reported by Paul Eggert.
24092
24093 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24094             Bruno Haible  <bruno@clisp.org>
24095
24096         Fix endless loop in mbmemcasecoll.
24097         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24098         byte.
24099         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24100
24101 2010-09-22  Bruno Haible  <bruno@clisp.org>
24102
24103         Tests for module 'memcoll'.
24104         * modules/memcoll-tests: New file.
24105         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24106
24107         memcoll, xmemcoll: Clarify size vs. length.
24108         * modules/memcoll.c (memcoll0): Clarify specification.
24109         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24110         passed to collate_error.
24111
24112 2010-09-22  Bruno Haible  <bruno@clisp.org>
24113
24114         Tests for module 'memcasecmp'.
24115         * modules/memcasecmp-tests: New file.
24116         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24117
24118 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24119
24120         * lib/pthread.in.h: Add split double-inclusion guard, and include
24121         system <pthread.h> if there is one.  Use @@-style as in other
24122         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24123         pthread.h doesn't.
24124         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24125         (pthread_mutexattr_settype, pthread_mutex_trylock):
24126         New static inline functions, if there's no system <pthread.h>.
24127         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24128         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24129         Approximate with mutexes if the system lacks spinlocks, as in
24130         MacOS.
24131         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24132         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24133         @@-style.  Check for spinlocks separately.
24134         (gl_PTHREAD_DEFAULTS): New macro.
24135         * modules/pthread: Redo to use a more typical style for in.h files.
24136
24137 2010-09-21  Eric Blake  <eblake@redhat.com>
24138
24139         net_if: enhance tests
24140         * tests/test-net_if.c (main): Move signature checks earlier.
24141         Print failures to stderr.
24142         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24143         Document the bug that we do not yet fix.
24144
24145 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24146
24147         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24148         about gnulib, not GSS.
24149
24150 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24151
24152         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24153         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24154         for Emacs.
24155         * build-aux/pmccabe2html: Make Makefile.am example code more
24156         cut-and-paste friendly.
24157
24158 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24159
24160         * tests/test-net_if.c: New file.
24161         * modules/net_if-tests: New file.
24162
24163 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24164
24165         pthread: add pthread_spin_destroy
24166         * lib/pthread.in.h (pthread_spin_destroy): New function.
24167
24168 2010-09-19  Bruno Haible  <bruno@clisp.org>
24169
24170         gnulib-tool: Fix --help output.
24171         * gnulib-tool (func_usage): Fix help message.
24172         Reported by Reuben Thomas <rrt@sc3d.org>.
24173
24174 2010-09-18  Jim Meyering  <meyering@redhat.com>
24175
24176         maint.mk: avoid unexpanded \n in two diagnostics
24177         * top/maint.mk (sc_prohibit_always_true_header_tests):
24178         Don't use a literal \n in a halt=... assignment.  It would not be
24179         expanded, and the two \n bytes would appear in the diagnostic output
24180         rather than the desired newline.  Use halt=$$(printf ... instead.
24181         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24182
24183 2010-09-18  Bruno Haible  <bruno@clisp.org>
24184
24185         netinet_in: Doc tweak.
24186         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24187         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24188
24189 2010-09-18  Jim Meyering  <meyering@redhat.com>
24190
24191         init.sh: correct an outdated comment
24192         * tests/init.sh (create_exe_shims_):  s/function/alias/
24193
24194         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24195         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24196         a file named "*.exe" is removed between the glob expansion and the
24197         processing of that oddly named file.
24198
24199 2010-09-17  Eric Blake  <eblake@redhat.com>
24200
24201         mirbsd: add some more support
24202         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24203         in BSD family.
24204         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24205         devices as OpenBSD.
24206         * m4/host-os.m4 (mirbsd): Add MirBSD.
24207
24208         tests: fix unportable assumption on sys/wait.h
24209         * tests/test-sys_wait.c (main): Relax test.
24210         * tests/test-stdlib.c (main): Likewise.
24211
24212         init.sh: accomodate directory with no .exes
24213         * tests/init.sh: Accomodate directory containing only scripts.
24214
24215         tests: avoid compiler warning
24216         * tests/test-stdlib.c (main): Use the variable.
24217
24218         fdutimens, fdutimensat: update signature, again
24219         * lib/utimens.h (gl_futimens): Delete, and move signature...
24220         (fdutimens): ...here.
24221         (fdutimensat): Rearrange signature.
24222         (lutimensat): Rename variable for clarity.
24223         * lib/fdutimensat.c (fdutimensat): Update signature.
24224         * lib/utimens.c (fdutimens): Likewise.
24225         (gl_futimens): Delete.
24226         (utimens, lutimens): Update callers.
24227         * lib/futimens.c (futimens): Likewise.
24228         * tests/test-fdutimensat.c: Likewise.
24229         * tests/test-utimens.c: Likewise.
24230         * tests/test-futimens.h: Update comment.
24231         * NEWS: Mention this.
24232         Suggested by Paul Eggert.
24233
24234 2010-09-17  Bruno Haible  <bruno@clisp.org>
24235
24236         Take over the maintenance of some older macros from Autoconf.
24237         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24238         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24239         GNU Autoconf.
24240         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24241         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24242
24243 2010-09-17  Eric Blake  <eblake@redhat.com>
24244
24245         fdutimensat: drop atflag validation
24246         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24247         with valid fd, to close a race scenario where futimens is
24248         unsupported and FILE was replaced by a symlink.
24249         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24250         accordingly.
24251         Suggested by Paul Eggert.
24252
24253 2010-09-16  Bruno Haible  <bruno@clisp.org>
24254
24255         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24256         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24257
24258 2010-09-16  Bruno Haible  <bruno@clisp.org>
24259
24260         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24261         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24262         login_tty exists.
24263         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24264
24265 2010-09-16  Bruno Haible  <bruno@clisp.org>
24266
24267         login_tty: Make the replacement code work on BSD systems.
24268         * lib/login_tty.c: Include <sys/ioctl.h>.
24269         (login_tty): Use ioctl TIOCSCTTY when available.
24270         * modules/login_tty (Depends-on): Add sys_ioctl.
24271         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24272
24273 2010-09-16  Bruno Haible  <bruno@clisp.org>
24274
24275         login_tty: Stricter unit test.
24276         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24277         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24278         and tcgetsid() after login_tty.
24279         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24280
24281 2010-09-16  Bruno Haible  <bruno@clisp.org>
24282
24283         New module 'tcgetsid'.
24284         * lib/tcgetsid.c: New file.
24285         * m4/tcgetsid.m4: New file.
24286         * modules/tcgetsid: New file.
24287         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24288         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24289         GNULIB_TCGETSID, HAVE_TCGETSID.
24290         * lib/termios.in.h: Include <sys/types.h>.
24291         (tcgetsid): New declaration.
24292         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24293         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24294         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24295         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24296
24297 2010-09-16  Bruno Haible  <bruno@clisp.org>
24298
24299         Tests for module 'termios'.
24300         * modules/termios-c++-tests: New file.
24301         * modules/termios-tests: New file.
24302         * tests/test-termios-c++.cc: New file.
24303         * tests/test-termios.c: New file.
24304
24305         New module 'termios'.
24306         * modules/termios: New file.
24307         * lib/termios.in.h: New file.
24308         * m4/termios_h.m4: New file.
24309         * doc/posix-headers/termios.texi: Mention the new module.
24310
24311 2010-09-16  Eric Blake  <eblake@redhat.com>
24312
24313         fdutimensat: add an atflag parameter
24314         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24315         * lib/utimens.h (fdutimensat): Update prototype.
24316         * tests/test-fdutimensat.c: Adjust test to match.
24317         * NEWS: Document the change.
24318         Suggested by Paul Eggert.
24319
24320 2010-09-16  Bruno Haible  <bruno@clisp.org>
24321
24322         Fix typos in comments.
24323         * lib/striconveh.h: Fix typo in comment.
24324         * lib/login_tty.c (login_tty): Likewise.
24325
24326 2010-09-15  Bruno Haible  <bruno@clisp.org>
24327
24328         stdlib: clarify MirBSD WEXITSTATUS bug
24329         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24330         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24331
24332 2010-09-15  Eric Blake  <eblake@redhat.com>
24333
24334         stdlib: work around MirBSD WEXITSTATUS bug
24335         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24336         * modules/stdlib (Depends-on): Add sys_wait.
24337         * tests/test-sys_wait.c (main): Enhance test.
24338         * tests/test-stdlib.c (main): Likewise.
24339         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24340
24341         docs: mention MacOS issue with WEXITSTATUS(constant)
24342         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24343         issue.
24344         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24345
24346         strnlen: add tests
24347         * modules/strnlen-tests: New file.
24348         * tests/test-strnlen.c: Likewise.
24349
24350 2010-09-14  Bruno Haible  <bruno@clisp.org>
24351
24352         unistr/base: Avoid link errors when module 'libunistring' is also used.
24353         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24354         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24355         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24356         Declare also when HAVE_LIBUNISTRING is set.
24357         Reported by Pádraig Brady <P@draigbrady.com>.
24358
24359 2010-09-14  Eric Blake  <eblake@redhat.com>
24360
24361         test-rawmemchr: make more robust
24362         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24363         (Depends-on, configure.ac): Add needed prerequisites to use it.
24364         * modules/memchr-tests (Files, Depends-on, configure.ac):
24365         Likewise, to avoid implicit reliance on memchr module prereqs.
24366         * tests/test-memchr.c (main): Ensure proper masking.
24367         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24368         reads.
24369
24370         memchr: detect glibc Alpha bug
24371         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24372         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24373         Alpha.
24374         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24375         * tests/test-memchr.c (main): Enhance test.
24376         Reported by Nelson H. F. Beebe.
24377
24378 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24379
24380         fts, getcwd, glob: audit for dirfd returning -1
24381         * lib/fts.c (opendir): Remove #define; no longer used.
24382         (opendirat): New arg PDIR_FD.  All callers changed.
24383         (fts_build, _opendir2): Use new opendirat to avoid the need for
24384         dirfd, or for checking whether dirfd returns a negative value.
24385         Don't use opendir; always use openat followed by fdopendir.
24386         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24387         it.
24388         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24389         returns -1 here.
24390         * modules/fts (Depends-on): Remove dirfd.
24391         * modules/getcwd (Depends-on): Likewise.
24392
24393 2010-09-13  Eric Blake  <eblake@redhat.com>
24394
24395         float: fix broken MirBSD header
24396         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24397         * doc/posix-headers/float.texi (float.h): Document it.
24398
24399 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24400
24401         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24402         * lib/fts.c (opendirat): New arg extra_flags.
24403         (__opendir2): Use it to avoid following symlinks when opening
24404         a directory, if symlinks are not supposed to be followed.  See
24405         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24406
24407         fdopendir: preserve argument fd before returning
24408         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24409         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24410         (fdopendir): Use them, arranging for FD to be open to the same
24411         directory that it was when it started.  (It might be temporarily
24412         closed while fdopendir is running, so this not thread- or
24413         signal-safe.)  Be careful to do the right thing even when file
24414         descriptors are scarce and dup fails with errno == EMFILE.  See
24415         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24416
24417 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24418
24419         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24420         * NEWS: Document change.
24421         * m4/regex.m4: Disable test for regoff_t size.
24422
24423 2010-09-13  Jim Meyering  <meyering@redhat.com>
24424
24425         fts: don't operate on an invalid file descriptor after failed dup
24426         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24427         negative file descriptor.
24428
24429 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24430
24431         savedir: add streamsavedir, deprecate fdsavedir
24432         * NEWS: Mention deprecation of fdsavedir.
24433         * lib/savedir.c (streamsavedir): New extern function, whose name
24434         ends in "savedir" to be consistent with the others.  This differs
24435         from savedirstream in that it doesn't close its argument.  The
24436         next version of GNU tar will use this instead of fdsavedir, to
24437         avoid some race conditions and conserve file descriptors.
24438         (savedirstream): Reimplement as a wrapper around streamsavedir.
24439         (fdsavedir): Add a comment deprecating this function.  As far as
24440         I know, only GNU tar used it, and GNU tar doesn't need it any more.
24441         * lib/savedir.h (streamsavedir): New decl.
24442         (fdsavedir): Add a comment deprecating this.
24443
24444 2010-09-10  Bruno Haible  <bruno@clisp.org>
24445
24446         langinfo: Fix last commit.
24447         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
24448         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
24449         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24450
24451 2010-09-10  Bruno Haible  <bruno@clisp.org>
24452
24453         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
24454         * lib/progreloc.c (O_EXEC): Define fallback.
24455
24456 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
24457
24458         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
24459         * NEWS: Document recent changes to fcntl-h.
24460         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
24461         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
24462         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
24463         Similarly for O_SEARCH; this last was already true, but not documented.
24464         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
24465         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
24466         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
24467         Likewise.
24468         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
24469         is zero, not whether it is defined.
24470         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
24471         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
24472         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
24473
24474 2010-09-10  Bruno Haible  <bruno@clisp.org>
24475
24476         langinfo, nl_langinfo: Fix for IRIX 5.3.
24477         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
24478         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
24479         HAVE_LANGINFO_YESEXPR.
24480         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
24481         HAVE_LANGINFO_YESEXPR.
24482         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
24483         HAVE_LANGINFO_T_FMT_AMPM is 0.
24484         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
24485         HAVE_LANGINFO_YESEXPR is 0.
24486         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
24487         NOEXPR.
24488         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
24489         * doc/posix-functions/nl_langinfo.texi: Likewise.
24490         Reported by Eric Blake.
24491
24492 2010-09-10  Bruno Haible  <bruno@clisp.org>
24493
24494         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
24495         * doc/glibc-functions/login_tty.texi: Mention the include file problem
24496         on FreeBSD 8.0 and OpenBSD 4.6.
24497         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
24498         * m4/pty_h.m4 (gl_PTY_H): Likewise.
24499         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
24500         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
24501         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
24502         ac_includes_default.
24503         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24504
24505 2010-09-09  Eric Blake  <eblake@redhat.com>
24506
24507         strsignal: work around NetBSD bug
24508         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
24509         * lib/string.in.h (includes): Likewise.
24510         * doc/posix-functions/strsignal.texi (strsignal): Document the
24511         bug.
24512         Reported by Nelson H. F. Beebe.
24513
24514         gnulib-tool: work with NetBSD /bin/sh
24515         * gnulib-tool (func_cache_var, func_cache_lookup_module)
24516         (func_get_description, func_get_comment, func_get_status)
24517         (func_get_notice, func_get_applicability, func_get_filelist)
24518         (func_get_dependencies, func_get_autoconf_early_snippet)
24519         (func_get_autoconf_snippet, func_get_automake_snippet)
24520         (func_get_include_directive, func_get_link_directive)
24521         (func_get_license, func_get_maintainer, func_import): Avoid
24522         shell syntax errors from parsing syntax extensions.
24523
24524 2010-09-09  Bruno Haible  <bruno@clisp.org>
24525
24526         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24527         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
24528         a reliable way to determine whether the 'alias' command works.
24529
24530 2010-09-08  Jim Meyering  <meyering@redhat.com>
24531
24532         init.sh: penalize a set-x-impaired shell; don't disqualify it
24533         * tests/init.sh: Too many shells corrupt application stderr when
24534         you set -x, so we can't afford to disqualify them, since at least
24535         on Irix-6.5, that would disqualify all bourne shells.
24536         Instead, use a two-pass approach.
24537         On the first pass, try to find a shell that meets the stricter
24538         condition that set -x does not corrupt stderr.
24539         If no shell meets the stricter condition, retest each candidate
24540         shell, but without that extra condition.  Finally, when
24541         VERBOSE=yes is requested and set -x might cause trouble, simply
24542         issue a warning and refrain from enabling debug output.
24543
24544 2010-09-08  Eric Blake  <eblake@redhat.com>
24545
24546         unsetenv: fix OpenBSD bug
24547         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
24548         * doc/posix-functions/unsetenv.texi (unsetenv): Update
24549         documentation.
24550         Reported by Jim Meyering.
24551
24552         strtod: work around IRIX 6.5 bug
24553         * lib/strtod.c (strtod): Reparse number on shorter string if
24554         exponent parse was invalid.
24555         * tests/test-strtod.c (main): Add check for "0x1p 2".
24556         Reported by Tom G. Christensen.
24557
24558         getopt: optimize previous patch
24559         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
24560         empty variable.  Speed up awk script.
24561         Reported by Paolo Bonzini.
24562
24563 2010-09-08  Jim Meyering  <meyering@redhat.com>
24564
24565         test.sh: disqualify shells for which set -x corrupts stderr
24566         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
24567         and OpenBSD 4.7.  They make it so with "set -x", environment settings
24568         appear in stderr output.  For example, this command:
24569             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
24570         prints "P=1" on those two systems:
24571
24572 2010-09-08  Bruno Haible  <bruno@clisp.org>
24573
24574         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
24575         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
24576         commands, because some shells ignore redirections when there is an
24577         error in the command lookup.
24578         Reported by Eric Blake.
24579
24580 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
24581
24582         * lib/regex.h: Fix a mention of `regex_compile' (should be
24583         `re_compile_pattern').
24584         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
24585         (re_set_registers): Correct name of parameter in comment.
24586
24587         * doc/regex.texi: Add documentation for missing syntax flags.
24588         Remove commented-out documentation of defunct syntax option
24589         RE_NO_EMPTY_ALTS.
24590         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
24591         Add documentation of re_set_registers.
24592         Document trick to re-use a pattern buffer by setting fastmap manually.
24593         Update documentation of struct re_pattern_buffer per public members.
24594         Uncomment documentation of equivalence class operators and
24595         collating symbol operators, since they are now implemented,
24596         Explain leftmost-longest matching in relation to alternatives.
24597         Tidy documentation of substring matching.
24598         Remove POSIX documentation, which is done better in
24599         glibc, and refer the reader there. Keep BSD API documentation, as
24600         that is not readily available elsewhere.
24601
24602 2010-09-07  Eric Blake  <eblake@redhat.com>
24603
24604         getopt: handle POSIXLY_CORRECT set but not exported
24605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
24606         export state of POSIXLY_CORRECT, due to bash set -o posix.
24607         Reported by Dustin J. Mitchell.
24608
24609 2010-09-05  Bruno Haible  <bruno@clisp.org>
24610
24611         gnulib-tool: Highlight the changed options.
24612         * gnulib-tool (func_usage): Display the --import, --add-import,
24613         --remove-import explanations in bold font.
24614
24615 2010-09-06  Karl Berry  <karl@gnu.org>
24616
24617         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
24618
24619 2010-09-05  Bruno Haible  <bruno@clisp.org>
24620
24621         uniwidth/width: Update comment.
24622         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
24623         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
24624
24625 2010-09-05  Bruno Haible  <bruno@clisp.org>
24626
24627         isinf, isnan: Relax license.
24628         * modules/isinf (License): Change from GPL to LGPL, with consent from
24629         Ben Pfaff.
24630         * modules/isnan (License): Likewise.
24631         Requested by Ludovic Courtès.
24632
24633 2010-09-04  Bruno Haible  <bruno@clisp.org>
24634
24635         gnulib-tool: Help migration from --import to --add-import or --update.
24636         * gnulib-tool: Emit a verbose error message when --import is used
24637         without any module name.
24638
24639 2010-09-04  Bruno Haible  <bruno@clisp.org>
24640
24641         Update doc about gnulib-tool.
24642         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
24643         'gnulib-tool --update' in more detail.
24644         Reported by Eric Blake.
24645
24646 2010-09-04  Bruno Haible  <bruno@clisp.org>
24647
24648         gnulib-tool: Change --import. New options --add/remove-import.
24649         * gnulib-tool: New options --add-import, --remove-import.
24650         (func_usage): Document them.
24651         (have_associative): Define always.
24652         (func_import): In import mode, don't merge the specified settings with
24653         the cached settings. Implement remove-import mode.
24654         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
24655         Explain when to use them versus --import.
24656         (Simple update): Use --add-import instead of --import.
24657         * NEWS: Mention the change.
24658
24659 2010-09-04  Bruno Haible  <bruno@clisp.org>
24660
24661         * doc/gnulib-tool.texi (Initial import): Update paragraph about
24662         separate gnulib.mk.
24663
24664 2010-09-04  Bruno Haible  <bruno@clisp.org>
24665
24666         gnulib-tool: Don't talk about CVS any more.
24667         * gnulib-tool (func_usage, func_import): Write "version control"
24668         instead of CVS.
24669
24670 2010-09-04  Jim Meyering  <meyering@redhat.com>
24671
24672         maint.mk: avoid obscure sc_copyright_check failure in coreutils
24673         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
24674         false positives (whose names may be ill-chosen) when searching
24675         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
24676         would cause a false-positive.
24677
24678         avoid coreutils "make distcheck" failure
24679         Coreutils tests with an absolute build directory name that contains
24680         a space.  Not quoting this directory name caused a failure.
24681         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
24682         * tests/test-vc-list-files-cvs.sh: Likewise.
24683
24684 2010-09-04  Bruno Haible  <bruno@clisp.org>
24685
24686         gnulib-tool: Avoid error when run in a package without Makefile.am.
24687         * gnulib-tool: When collecting the m4dirs in a package that does not
24688         have a Makefile.am, eliminate those directories that contain no
24689         gnulib-cache.m4. Fix expression that counts these directories.
24690
24691 2010-09-04  Bruno Haible  <bruno@clisp.org>
24692
24693         update-copyright test: Improve output when perl is missing or too old.
24694         * tests/test-update-copyright.sh: Move test of Perl version down after
24695         the test whether Perl exists. Provide an explanation relating Perl's
24696         error message to Automake's SKIP: message.
24697
24698 2010-09-04  Bruno Haible  <bruno@clisp.org>
24699
24700         Don't augment PATH in TESTS_ENVIRONMENT.
24701         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
24702         set abs_aux_dir instead of augmenting PATH.
24703         * modules/vc-list-files-tests (Makefile.am): Likewise.
24704         * tests/test-update-copyright.sh: Augment PATH here.
24705         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
24706         path_prepend_.
24707         * tests/test-vc-list-files-git.sh: Likewise.
24708
24709 2010-09-04  Jim Meyering  <meyering@redhat.com>
24710
24711         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
24712         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
24713
24714 2010-09-04  Bruno Haible  <bruno@clisp.org>
24715
24716         strdup: Fix compilation error in C++ mode.
24717         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
24718         the macro.
24719
24720 2010-09-04  Bruno Haible  <bruno@clisp.org>
24721
24722         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
24723         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
24724         macro into a function.
24725         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
24726
24727 2010-09-04  Bruno Haible  <bruno@clisp.org>
24728
24729         Set PATH_SEPARATOR the same way autoconf does.
24730         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
24731         the value of PATH_SEPARATOR the same way autoconf-generated configure
24732         scripts do.
24733         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
24734         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
24735
24736 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
24737
24738         Set PATH_SEPARATOR the same way autoconf does.
24739         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
24740         the same way autoconf-generated configure scripts do.
24741         * posix-modules: Likewise.
24742
24743 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
24744
24745         hash: fix safe_hasher const typo
24746         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
24747         const; otherwise, there is a type error later.
24748
24749 2010-09-02  Jim Meyering  <meyering@redhat.com>
24750
24751         test-update-copyright.sh: require perl 5.8.0
24752         * tests/test-update-copyright.sh: Require 5.8.0,
24753         which Tom G. Christensen has confirmed is adequate,
24754         while 5.6.1 is not.
24755
24756 2010-09-02  Eric Blake  <eblake@redhat.com>
24757
24758         tests: init.sh improvements for re-exec'ing with zsh
24759         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
24760         -vx through shell re-exec.
24761         Reported by Tom G. Christensen.
24762
24763         wctype: fix typo in previous commit
24764         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
24765         Reported by Ludovic Courtès.
24766
24767 2010-09-02  Jim Meyering  <meyering@redhat.com>
24768
24769         test-update-copyright.sh: skip test if Perl is too old
24770         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
24771         Reported by Tom G. Christensen.
24772
24773 2010-09-02  Bruno Haible  <bruno@clisp.org>
24774
24775         wctype: Avoid compilation error on IRIX 6.5.30.
24776         * lib/wctype.in.h (iswblank): Declare with a replacement if
24777         REPLACE_ISWBLANK is set.
24778         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
24779         declared. Set REPLACE_ISWBLANK.
24780         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
24781         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
24782         * doc/posix-headers/wctype.texi: Likewise.
24783         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24784
24785 2010-09-01  Bruno Haible  <bruno@clisp.org>
24786
24787         New module 'socketlib'.
24788         * modules/socketlib: New file.
24789         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
24790         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
24791         * modules/sockets (Depends-on): Add socketlib.
24792         Suggested by Sam Steingold <sds@gnu.org>.
24793
24794 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24795
24796         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
24797
24798         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
24799         when one needs search access to a directory but not read access.
24800         On systems where it is available, it works in some cases where
24801         O_RDONLY does not, namely on directories that are searchable but
24802         not readable, and which need only to be searchable.  If O_SEARCH
24803         is not available, fall back to the traditional method of using
24804         O_RDONLY.
24805
24806         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
24807         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
24808         when opening a directory that needs only to be searchable.
24809         * lib/chdir-safer.c (chdir_no_follow): Likewise.
24810         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
24811         * lib/openat-proc.c (openat_proc_name): Likewise.
24812         * lib/openat.c (openat_needs_fchdir): Likewise.
24813         * lib/save-cwd.c (save_cwd): Likewise.
24814         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
24815
24816 2010-08-28  Bruno Haible  <bruno@clisp.org>
24817
24818         New module 'host-cpu-c-abi'.
24819         * modules/host-cpu-c-abi: New file.
24820         * m4/host-cpu-c-abi.m4: New file, based on part of
24821         clisp/src/m4/general.m4.
24822         Requested by Sam Steingold <sds@gnu.org>.
24823
24824 2010-08-31  Eric Blake  <eblake@redhat.com>
24825         and Jim Meyering  <meyering@redhat.com>
24826
24827         hash: factor, and guard against misbehaving hasher function
24828         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
24829         of table->hasher's return value.  Also protect against a hash value
24830         so large that adding it to table->bucket results in a NULL pointer.
24831         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
24832         Use it in place of open-coded check-and-abort.
24833
24834 2010-08-30  Bruno Haible  <bruno@clisp.org>
24835
24836         hash: silence spurious clang warning
24837         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
24838         Reported by Eric Blake.
24839
24840 2010-08-30  Eric Blake  <eblake@redhat.com>
24841
24842         strstr, memmem, strcasestr: avoid leaked shell message
24843         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
24844         FreeBSD.
24845         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
24846         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
24847
24848         tests: silence clang warning
24849         * tests/test-malloca.c (do_allocation): Avoid dead store.
24850
24851 2010-08-29  Bruno Haible  <bruno@clisp.org>
24852
24853         gettext: Fix recent mistake.
24854         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
24855
24856 2010-08-29  Bruno Haible  <bruno@clisp.org>
24857
24858         selinux-h: Offer a --without-selinux option.
24859         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
24860         --without-selinux was specified, skip all tests and define
24861         HAVE_SELINUX_SELINUX_H to 0.
24862         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
24863         set LIB_SELINUX to empty.
24864         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
24865         gl_LIBSELINUX. If --without-selinux was specified, replace
24866         selinux/context.h.
24867         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
24868
24869 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24870             Bruno Haible  <bruno@clisp.org>
24871
24872         Make the module 'realloc-gnu' work again on AIX and OSF/1.
24873         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
24874         of HAVE_REALLOC.
24875         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
24876         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
24877         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
24878         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24879
24880 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24881             Bruno Haible  <bruno@clisp.org>
24882
24883         Make the module 'calloc-gnu' work again on AIX and OSF/1.
24884         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
24885         HAVE_CALLOC.
24886         * lib/xmalloc.c: Update accordingly.
24887         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
24888         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
24889         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
24890
24891 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24892             Bruno Haible  <bruno@clisp.org>
24893
24894         Make the module 'malloc-gnu' work again on AIX and OSF/1.
24895         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
24896         HAVE_MALLOC.
24897         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
24898         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
24899         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
24900
24901 2010-08-29  Bruno Haible  <bruno@clisp.org>
24902
24903         Update modules list.
24904         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
24905         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
24906         (String handling <string.h>): Add astrxfrm.
24907         (File system functions): Add readlinkat.
24908
24909 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24910
24911         Tests for module 'realloc-gnu'.
24912         * modules/realloc-gnu-tests: New file.
24913         * tests/test-realloc-gnu.c: New file.
24914
24915         Tests for module 'calloc-gnu'.
24916         * modules/calloc-gnu-tests: New file.
24917         * tests/test-calloc-gnu.c: New file.
24918
24919         Tests for module 'malloc-gnu'.
24920         * modules/malloc-gnu-tests: New file.
24921         * tests/test-malloc-gnu.c: New file.
24922
24923 2010-08-28  Bruno Haible  <bruno@clisp.org>
24924
24925         Rename module 'realloc' -> 'realloc-gnu'.
24926         * modules/realloc-gnu: New file, copied from modules/realloc.
24927         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
24928         obsolete.
24929         * modules/mgetgroups (Depends-on): Update.
24930         * doc/posix-functions/realloc.texi: Update.
24931         * NEWS: Mention the change.
24932
24933         Rename module 'calloc' -> 'calloc-gnu'.
24934         * modules/calloc-gnu: New file, copied from modules/calloc.
24935         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
24936         obsolete.
24937         * doc/posix-functions/calloc.texi: Update.
24938         * NEWS: Mention the change.
24939
24940         Rename module 'malloc' -> 'malloc-gnu'.
24941         * modules/malloc-gnu: New file, copied from modules/malloc.
24942         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
24943         obsolete.
24944         * modules/argp (Depends-on): Update.
24945         * modules/regex (Depends-on): Update.
24946         * doc/posix-functions/malloc.texi: Update.
24947         * NEWS: Mention the change.
24948
24949 2010-08-28  Eric Blake  <eblake@redhat.com>
24950
24951         pread, pwrite: add missing dependency
24952         * modules/pread (Depends-on): Add extensions.
24953         * modules/pwrite (Depends-on): Likewise.
24954
24955 2010-08-28  Bruno Haible  <bruno@clisp.org>
24956
24957         unistr/u*-strchr: Fix tests dependencies.
24958         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
24959         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
24960         Reported by Ian Beckwith <ianb@erislabs.net>.
24961
24962 2010-08-28  Bruno Haible  <bruno@clisp.org>
24963
24964         read-file: Don't occupy too much unused memory.
24965         * lib/read-file.c (fread_file): Shrink the buffer at the end.
24966
24967 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
24968             Eric Blake  <eblake@redhat.com>
24969             Bruno Haible  <bruno@clisp.org>
24970
24971         read-file: Avoid memory reallocations with regular files.
24972         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
24973         (fread_file): With regular files, use the remaining length as the
24974         initial buffer size.  Check against overflow.
24975         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
24976         sys_stat.
24977
24978 2010-08-28  Bruno Haible  <bruno@clisp.org>
24979
24980         ftello: Relax license.
24981         * modules/ftello (License): Relax to LGPLv2+.
24982         Reported by Eric Blake.
24983
24984 2010-08-28  Bruno Haible  <bruno@clisp.org>
24985
24986         Avoid relocwrapper link errors due to gnulib replacement functions.
24987         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
24988         function.
24989         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24990
24991 2010-08-28  Bruno Haible  <bruno@clisp.org>
24992
24993         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
24994         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
24995         defined.
24996         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
24997         Suggested by Eric Blake.
24998
24999 2010-08-28  Bruno Haible  <bruno@clisp.org>
25000
25001         sys_socket, netdb: Ensure socklen_t gets defined.
25002         * modules/sys_socket (Depends-on): Add socklen.
25003         * modules/netdb (Depends-on): Likewise.
25004         * modules/getaddrinfo (Depends-on): Remove socklen.
25005         * modules/getsockopt (Depends-on): Likewise.
25006         * modules/setsockopt (Depends-on): Likewise.
25007         * tests/test-sys_socket.c: Check that socklen_t is defined.
25008         * tests/test-netdb.c: Likewise.
25009         * m4/socklen.m4: Update comments.
25010         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25011
25012 2010-08-27  Eric Blake  <eblake@redhat.com>
25013
25014         login_tty: add missing dependency
25015         * modules/login_tty (Depends-on): Add pty.
25016
25017 2010-08-26  Eric Blake  <eblake@redhat.com>
25018
25019         lib-symbol-versions: fix m4 quoting
25020         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25021         format for AC_LINK_IFELSE.
25022
25023         glob: fix compile test
25024         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25025
25026         btowc: fix missing file
25027         * modules/btowc (Files): Also ship locale-fr.m4.
25028
25029         lseek: fix link test
25030         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25031         AC_LINK_IFELSE.
25032
25033         include_next: silence autoconf 2.68 warning
25034         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25035         AC_COMPILE_IFELSE as special.
25036         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25037         autoconf < 2.68.
25038
25039         acl: fix compilation test
25040         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25041         AC_COMPILE_IFELSE.
25042
25043 2010-08-26  Bruno Haible  <bruno@clisp.org>
25044
25045         Modernize AC_TRY_RUN invocations.
25046         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25047         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25048         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25049         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25050         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25051         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25053         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25054         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25055         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25056         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25057         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25058         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25059         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25060         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25061         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25062         gl_MBRLEN_NUL_RETVAL): Likewise.
25063         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25064         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25065         Likewise.
25066         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25067         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25068         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25069         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25070         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25071         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25072         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25073         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25074         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25075         Likewise.
25076         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25077         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25078         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25079         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25080         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25081         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25082         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25083         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25084         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25086
25087 2010-08-26  Bruno Haible  <bruno@clisp.org>
25088
25089         Modernize AC_TRY_LINK invocations.
25090         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25091         AC_TRY_LINK.
25092         * m4/argp.m4 (gl_ARGP): Likewise.
25093         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25094         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25095         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25096         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25097         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25098         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25099         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25100         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25101         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25102         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25103         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25104         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25105         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25106         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25107         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25108         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25109         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25110         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25111         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25112         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25113         Likewise.
25114         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25115         Likewise.
25116         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25117         Likewise.
25118         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25119         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25120         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25121         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25122         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25123         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25124         * m4/servent.m4 (gl_SERVENT): Likewise.
25125         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25126         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25127         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25128         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25129         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25130         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25131         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25132         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25133         * modules/tsearch-tests (configure.ac): Likewise.
25134
25135 2010-08-26  Bruno Haible  <bruno@clisp.org>
25136
25137         Modernize AC_TRY_COMPILE invocations.
25138         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25139         AC_TRY_COMPILE.
25140         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25141         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25142         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25143         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25144         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25145         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25146         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25147         * m4/lock.m4 (gl_LOCK): Likewise.
25148         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25149         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25150         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25151         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25152         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25153         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25154         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25155         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25156         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25157         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25158         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25159         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25160         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25161         extraneous semicolon.
25162
25163 2010-08-26  Jim Meyering  <meyering@redhat.com>
25164
25165         stat-time: relax license LGPL
25166         * modules/stat-time (License): Change from GPL to LGPL,
25167         with consent from all contributors, for use in libguile.
25168         Requested by Ludovic Courtès.
25169
25170 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25171
25172         poll: return immediately on POLLHUP.
25173         * lib/poll.c (poll): Always set timeout before wait_timeout is
25174         computed.
25175
25176 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25177
25178         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25179         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25180         rmdir ("dir/.//"), unlinkat.
25181
25182 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25183
25184         stdbool: avoid spurious failure with modern xlc
25185         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25186
25187 2010-08-24  Bruno Haible  <bruno@clisp.org>
25188
25189         getloadavg: simplify code
25190         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25191         gl_have_func. Update comments.
25192
25193 2010-08-24  Eric Blake  <eblake@redhat.com>
25194
25195         getloadavg: don't define SVR4 on cygwin
25196         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25197         only define SVR4 when -lkvm is required.
25198         Reported by Yaakov Selkowitz.
25199
25200 2010-08-24  Bruno Haible  <bruno@clisp.org>
25201
25202         priv-set: fix comment
25203         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25204
25205 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25206
25207         priv-set: fix comments
25208         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25209         to match code, as suggested by David Bartley in:
25210         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25211
25212 2010-08-23  Eric Blake  <eblake@redhat.com>
25213
25214         stdbool: avoid rejecting clang
25215         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25216         * tests/test-stdbool.c: Enable more tests if using the system
25217         <stdbool.h> instead of the gnulib replacement.
25218         (main): Move xlc bug test to a runtime test for all compilers.
25219         Reported by Anders Kaseorg.
25220
25221         argz: fix shell quoting issue
25222         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25223         Reported by Charles Wilson.
25224
25225 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25226             Erik Faye-Lund <kusmabite@gmail.com>
25227
25228         poll, select: handle ERROR_BROKEN_PIPE.
25229         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25230         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25231         * lib/select.c (win32_compute_revents): Do not mark a pipe
25232         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25233
25234 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25235
25236         fts: allow compilation with C++
25237         * lib/fts_.h: Specify extern "C" linkage with C++.
25238
25239 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25240
25241         Fix gnulib-tool sed script de-commentation for AIX sed.
25242         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25243         sed.
25244
25245 2010-08-17  Eric Blake  <eblake@redhat.com>
25246
25247         test-stddef: test for (some) offsetof bugs
25248         * tests/test-stddef.c: Enhance test to ensure correct type of
25249         offsetof.
25250         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25251         that we are not fixing at this time.
25252
25253 2010-08-15  Bruno Haible  <bruno@clisp.org>
25254
25255         stpncpy: Allow stpncpy to be defined as a macro.
25256         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25257         if it's already correctly declared.
25258         * lib/string.in.h (stpncpy): Undefine before redefining.
25259         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25260
25261 2010-08-14  Bruno Haible  <bruno@clisp.org>
25262
25263         Rename module 'memxfrm' to 'amemxfrm'.
25264         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25265         (amemxfrm): Renamed from memxfrm.
25266         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25267         (amemxfrm): Renamed from memxfrm.
25268         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25269         * NEWS: Mention the change.
25270         * MODULES.html.sh (String handling <string.h>): Update.
25271         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25272         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25273         * lib/unicase/u16-casexfrm.c: Likewise.
25274         * lib/unicase/u32-casexfrm.c: Likewise.
25275         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25276         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25277         * lib/uninorm/u16-normxfrm.c: Likewise.
25278         * lib/uninorm/u32-normxfrm.c: Likewise.
25279         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25280         memxfrm.
25281         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25282         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25283         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25284         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25285         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25286         Suggested by Paul Eggert.
25287
25288 2010-08-14  Bruno Haible  <bruno@clisp.org>
25289
25290         Tests for module 'astrxfrm'.
25291         * modules/astrxfrm-tests: New file.
25292         * tests/test-astrxfrm.c: New file.
25293
25294         New module 'astrxfrm'.
25295         * lib/astrxfrm.h: New file.
25296         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25297         * modules/astrxfrm: New file.
25298
25299 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25300
25301         regex: Tweak doc.
25302         * doc/regex.texi (Overview): Don't mention regex.c.
25303         (GNU Regular Expression Compiling): Likewise.
25304         (Match-end-of-line Operator): Mention 'not_eol'.
25305
25306 2010-08-14  Brian Gough  <bjg@gnu.org>
25307             Bruno Haible  <bruno@clisp.org>
25308
25309         git-merge-changelog: add doc relating to use with bzr and hg.
25310         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25311
25312 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25313
25314         pthread: fix pthread.h creation for srcdir != builddir
25315         * modules/pthread (Makefile.am): Fix the rule to work also in a
25316         non-srcdir build.
25317
25318 2010-08-13  Karl Berry  <karl@gnu.org>
25319
25320         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25321         * doc/posix-*/*: force line break before @url of POSIX
25322         specifications.
25323         Suggested by Werner Lemberg.
25324
25325 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25326
25327         strtod: fix const diagnostic
25328         * lib/strtod.c (strtod): Don't assign const char * to char *,
25329         as this elicits a warning from GCC when warnings are enabled.
25330
25331 2010-08-10  Pádraig Brady <P@draigbrady.com>
25332         and Eric Blake  <eblake@redhat.com>
25333
25334         copy-acl: ignore ENOTSUP on HP-UX
25335         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25336         so that it is available for HP-UX.
25337         * lib/copy-acl.c (qcopy_acl): Use it.
25338         Reported by Patrick M. Callahan.
25339
25340 2010-08-10  Eric Blake  <eblake@redhat.com>
25341
25342         open, chown: relax license
25343         * modules/open (License): Change to LGPLv2+, with consent by all
25344         authors, for use in augeas.
25345         * modules/chown (License): Likewise.
25346         * modules/lchown (Likewise): Likewise.
25347         Requested by Adam Stokes.
25348
25349 2010-08-09  Karl Berry  <karl@gnu.org>
25350
25351         * build-aux/ar-lib: new file, import from Automake.
25352         * config/srclist.txt: autocheck for updates.
25353
25354 2010-08-09  Eric Blake  <eblake@redhat.com>
25355
25356         readlinkat: adjust client modules
25357         * modules/areadlinkat (Depends-on): Use readlinkat, not
25358         symlinkat.
25359         * modules/areadlinkat-with-size (Depends-on): Likewise.
25360
25361         mknod: be more vocal about danger of running tests as root
25362         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25363         root, since that is just asking for problems.
25364         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25365
25366         readlinkat: split into its own module
25367         * modules/symlinkat: Split readlinkat...
25368         * modules/readlinkat: ...into separate module.
25369         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25370         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25371         * lib/symlinkat.c (readlinkat): Move...
25372         * lib/readlinkat.c: ...into new file.
25373         * modules/symlinkat-tests: Split readlinkat test...
25374         * modules/readlinkat-tests: ...into separate module.
25375         * tests/test-symlinkat.c: Split...
25376         * tests/test-readlinkat.c: ...into new file.
25377         * NEWS: Document the split.
25378         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25379         * lib/unistd.in.h (readlinkat): Likewise.
25380         Suggested by Bruno Haible.
25381
25382 2010-08-08  Bruno Haible  <bruno@clisp.org>
25383
25384         memxfrm: Speed up.
25385         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25386         that usually only one call to strxfrm is necessary for each string
25387         part.
25388         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25389
25390 2010-08-07  Karl Berry  <karl@gnu.org>
25391
25392         * doc/posix-headers/limits.texi,
25393         * doc/posix-functions/malloc.texi,
25394         * doc/posix-functions/strsignal.texi: missing @item.
25395         * doc/ld-version-script.texi: spurious leading i.
25396         * doc/regex.texi (Interval Operators): no commas inside @var.
25397
25398 2010-08-01  Bruno Haible  <bruno@clisp.org>
25399
25400         Integrate the regex documentation.
25401         * doc/gnulib.texi: Define 'cn' index.
25402         (Regular expressions): New a chapter that includes regex.texi and
25403         regexprops-generic.texi.
25404         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25405         syntax.
25406
25407         Whitespace cleanup.
25408         * doc/regex.texi: Remove trailing spaces.
25409
25410         Add regex documentation.
25411         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25412         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25413         Written by Kathy A. Hargreaves and Karl Berry.
25414
25415 2010-08-01  Bruno Haible  <bruno@clisp.org>
25416
25417         link: Update documentation.
25418         * doc/posix-functions/link.texi: Update regarding Solaris.
25419
25420 2010-07-31  Bruno Haible  <bruno@clisp.org>
25421
25422         Update modules list.
25423         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25424         (String handling <string.h>): Add memcmp2, memxfrm.
25425         (Container data structures): Add xlist, xsublist, xoset.
25426         (Core language properties): Add alignof, unused-parameter.
25427         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25428         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25429         (Unibyte characters <ctype.h>): New section.
25430         (String handling <string.h>): New section.
25431         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25432         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25433         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25434         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25435         tan, tanh, tanl, y0, y1, yn.
25436         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
25437         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
25438         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
25439         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
25440         unlockpt, vdprintf, vdprintf-posix.
25441         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
25442         (File system functions): Add concat-filename, sys_file, sys_ioctl,
25443         xconcat-filename.
25444         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
25445         getdtablesize, pipe2, pipe2-safer.
25446         (Security): New section.
25447         (Networking functions): Add accept4.
25448         (Signal handling): Add sigpipe.
25449         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
25450         mbmemcasecoll.
25451         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
25452         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
25453         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
25454         pipe-filter-ii.
25455         (Misc): Add argp-version-etc, login_tty, parse-duration.
25456
25457 2010-07-31  Bruno Haible  <bruno@clisp.org>
25458
25459         Improve doc in MODULES.html.
25460         * modules/linkat (Description): Add the word "function".
25461         * modules/mkfifo (Description): Likewise.
25462         * modules/mknod (Description): Likewise.
25463         * modules/remove (Description): Likewise.
25464         * modules/renameat (Description): Likewise.
25465         * modules/stat (Description): Likewise.
25466         * modules/symlink (Description): Likewise.
25467         * modules/unlink (Description): Likewise.
25468
25469 2010-07-31  Bruno Haible  <bruno@clisp.org>
25470
25471         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
25472         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
25473         option --enable/disable-c++ instead of --enable/disable-cxx.
25474         * NEWS: Mention the change.
25475
25476 2010-07-31  Bruno Haible  <bruno@clisp.org>
25477
25478         readlink, areadlink: Relax test a bit.
25479         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
25480         alternative to ENOTDIR.
25481         * tests/test-areadlink.h (test_areadlink): Likewise.
25482         Reported by Rainer Tammer.
25483
25484 2010-07-31  Bruno Haible  <bruno@clisp.org>
25485
25486         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
25487         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
25488         character, perform the search using U_STRCHR.
25489         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
25490         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
25491         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
25492         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
25493         Suggested by Paolo Bonzini.
25494
25495 2010-07-31  Bruno Haible  <bruno@clisp.org>
25496
25497         unistr/u*-strstr: Fix dependencies.
25498         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
25499         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
25500         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
25501
25502 2010-07-31  Bruno Haible  <bruno@clisp.org>
25503
25504         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
25505         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
25506         the beginning of the loop.
25507         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
25508         cases in 'switch' statement.
25509
25510         unistr/u8-strchr: Fix several bugs.
25511         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
25512         the string. When not found, return NULL, not a pointer near the end.
25513
25514         More tests for unistr/u8-strchr.
25515         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
25516         that the function does not read past the first occurrence of the byte
25517         being searched.
25518         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
25519         * tests/unistr/test-u16-strchr.c (main): New function.
25520         * tests/unistr/test-u32-strchr.c (main): New function.
25521
25522 2010-07-31  Bruno Haible  <bruno@clisp.org>
25523
25524         posix-modules: Ignore backup files of documentation files.
25525         * posix-modules: grep only through files named *.texi.
25526
25527 2010-07-31  Bruno Haible  <bruno@clisp.org>
25528
25529         symlinkat: Fix documentation.
25530         * doc/posix-functions/readlinkat.texi: Fix module name.
25531
25532 2010-07-31  Bruno Haible  <bruno@clisp.org>
25533
25534         fchownat: Replace also when chown has the trailing slash bug.
25535         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
25536         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
25537         introduced on 2010-04-10.
25538         Reported by Rainer Tammer.
25539
25540 2010-07-31  Bruno Haible  <bruno@clisp.org>
25541
25542         linkat: Work around AIX 7.1 bug.
25543         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
25544         whether linkat handles trailing slash correctly. If not, replace linkat
25545         and define LINKAT_TRAILING_SLASH_BUG.
25546         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
25547         check whether (fd1,file1) points to a directory if file1 or file2 ends
25548         in a slash. Code taken from lib/link.c.
25549         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
25550         Reported by Rainer Tammer.
25551
25552 2010-07-31  Bruno Haible  <bruno@clisp.org>
25553
25554         Correctly determine whether pow is available in libc on AIX 7 with xlc.
25555         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
25556         This disables an xlc optimization that was causing wrong test results.
25557         Reported by Rainer Tammer.
25558
25559 2010-07-31  Bruno Haible  <bruno@clisp.org>
25560
25561         iconv: Work around AIX 6.1..7.1 bug.
25562         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
25563         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
25564         cross-compiling, guess no on all versions of AIX.
25565         Reported by Rainer Tammer.
25566
25567 2010-07-31  Bruno Haible  <bruno@clisp.org>
25568
25569         readlink: Relax test a bit.
25570         * tests/test-readlink.h (test_readlink): Allow different errno value
25571         when readlink is called with a file name that ends in / and refers to
25572         a file.
25573         Suggested by Eric Blake.
25574         Reported by Rainer Tammer.
25575
25576 2010-07-31  Bruno Haible  <bruno@clisp.org>
25577
25578         copysign: Does not require -lm on glibc systems.
25579         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
25580         gl_COMMON_DOUBLE_MATHFUNC.
25581         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
25582
25583 2010-07-31  Bruno Haible  <bruno@clisp.org>
25584
25585         duplocale: Work around AIX 7.1 bug.
25586         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
25587         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
25588         * lib/duplocale.c (rpl_duplocale): Update comment.
25589         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
25590         Reported by Rainer Tammer.
25591
25592 2010-07-30  Bruno Haible  <bruno@clisp.org>
25593
25594         dirfd: Avoid link error on AIX 7.1.
25595         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
25596         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
25597         exist, set REPLACE_DIRFD.
25598         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
25599         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
25600         * doc/posix-functions/dirfd.texi: Update.
25601         Reported by Rainer Tammer.
25602
25603 2010-07-30  Eric Blake  <eblake@redhat.com>
25604
25605         strtod: next round of AIX fixes
25606         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
25607         exponent.
25608         * tests/test-strtod.c (main): Enhance tests.
25609         * doc/posix-functions/strtod.texi (strtod): Document next bug.
25610         Reported by Rainer Tammer.
25611
25612         futimens: fix configure check
25613         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
25614         Reported by Bruno Haible.
25615
25616 2010-07-30  Bruno Haible  <bruno@clisp.org>
25617
25618         getline: Update regarding AIX.
25619         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
25620         Reported by Rainer Tammer.
25621
25622 2010-07-30  Bruno Haible  <bruno@clisp.org>
25623
25624         wcwidth: Drop replacement on AIX 7.
25625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
25626         AIX 7.
25627         Reported by Rainer Tammer.
25628
25629 2010-07-30  Bruno Haible  <bruno@clisp.org>
25630
25631         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
25632         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
25633         a 'char *'.
25634         Reported by Rainer Tammer.
25635
25636 2010-07-30  Bruno Haible  <bruno@clisp.org>
25637
25638         unlink: Update regarding AIX.
25639         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
25640         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
25641         Reported by Rainer Tammer.
25642
25643 2010-07-30  Bruno Haible  <bruno@clisp.org>
25644
25645         symlink: Update regarding AIX.
25646         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
25647         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
25648         Reported by Rainer Tammer.
25649
25650 2010-07-30  Bruno Haible  <bruno@clisp.org>
25651
25652         strndup: Update regarding AIX.
25653         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
25654         AIX 7.
25655         Reported by Rainer Tammer.
25656
25657 2010-07-30  Bruno Haible  <bruno@clisp.org>
25658
25659         stat: Update regarding AIX.
25660         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
25661         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
25662         Reported by Rainer Tammer.
25663
25664 2010-07-30  Bruno Haible  <bruno@clisp.org>
25665
25666         truncl: Fix autoconf test.
25667         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
25668         whether truncl works.
25669         Reported by Rainer Tammer.
25670
25671 2010-07-30  Bruno Haible  <bruno@clisp.org>
25672
25673         round: Update regarding AIX.
25674         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
25675         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
25676         Reported by Rainer Tammer.
25677
25678 2010-07-30  Bruno Haible  <bruno@clisp.org>
25679
25680         rename: Update regarding AIX.
25681         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
25682         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
25683         Reported by Rainer Tammer.
25684
25685 2010-07-30  Bruno Haible  <bruno@clisp.org>
25686
25687         printf.m4: Update regarding AIX.
25688         * m4/printf.m4: Update comments regarding AIX.
25689         Reported by Rainer Tammer.
25690
25691 2010-07-30  Bruno Haible  <bruno@clisp.org>
25692
25693         iconv: Update regarding AIX.
25694         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
25695         AIX 7.
25696         Reported by Rainer Tammer.
25697
25698 2010-07-30  Bruno Haible  <bruno@clisp.org>
25699
25700         getopt: Update regarding AIX.
25701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
25702         no on AIX.
25703         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
25704         Reported by Rainer Tammer.
25705
25706 2010-07-30  Bruno Haible  <bruno@clisp.org>
25707
25708         ldexpl; Update regarding AIX.
25709         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
25710         on AIX 7.
25711         Reported by Rainer Tammer.
25712
25713 2010-07-30  Bruno Haible  <bruno@clisp.org>
25714
25715         frexpl: Update regarding AIX.
25716         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
25717         on AIX 7.
25718         Reported by Rainer Tammer.
25719
25720 2010-07-30  Bruno Haible  <bruno@clisp.org>
25721
25722         open, fopen: Update regarding AIX.
25723         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
25724         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25725         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
25726         * doc/posix-functions/fopen.texi: Likewise.
25727         Reported by Rainer Tammer.
25728
25729 2010-07-30  Bruno Haible  <bruno@clisp.org>
25730
25731         chown: Update doc regarding AIX.
25732         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
25733         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
25734         Reported by Rainer Tammer.
25735
25736 2010-07-30  Eric Blake  <eblake@redhat.com>
25737
25738         strtod: fix bug in replacement function on AIX
25739         * lib/strtod.c (strtod): Special case broken "0x" parse in
25740         underlying strtod.
25741         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
25742         * doc/posix-functions/strtod.texi (strtod): Likewise.
25743         Reported by Rainer Tammer.
25744
25745 2010-07-30  Bruno Haible  <bruno@clisp.org>
25746
25747         mbrlen: Fix cross-compilation guess for AIX.
25748         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
25749         guess. Leftover from 2008-12-22.
25750
25751 2010-07-30  Bruno Haible  <bruno@clisp.org>
25752
25753         mbrtowc: Fix cross-compilation guess for AIX.
25754         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
25755         guess. Leftover from 2008-12-21.
25756
25757 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
25758
25759         init.sh: work around trap limitation of some shells
25760         * tests/init.sh (setup_): Move exit trap outside of shell function.
25761
25762 2010-07-29  Eric Blake  <eblake@redhat.com>
25763
25764         strtod: aid debugging
25765         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
25766         understanding why strtod is rejected.
25767
25768 2010-07-28  Bruno Haible  <bruno@clisp.org>
25769
25770         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
25771         * lib/unistr/u8-chr.c: Include <string.h>.
25772         * tests/unistr/test-u8-chr.c: Likewise.
25773         * tests/unistr/test-u16-chr.c: Likewise.
25774         * tests/unistr/test-u32-chr.c: Likewise.
25775         * tests/unistr/test-u8-strchr.c: Likewise.
25776         * tests/unistr/test-u16-strchr.c: Likewise.
25777         * tests/unistr/test-u32-strchr.c: Likewise.
25778         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
25779         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
25780         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
25781         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
25782
25783 2010-07-28  Bruno Haible  <bruno@clisp.org>
25784
25785         Use spaces for indentation, not tabs.
25786         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
25787
25788 2010-07-27  Bruno Haible  <bruno@clisp.org>
25789
25790         mbspcasecmp: Fix function specification.
25791         * lib/string.in.h (mbspcasecmp): Fix specification comment.
25792         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
25793         Reported by Eric Blake <eblake@redhat.com>.
25794
25795 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
25796
25797         timespec: use cast and not conditional, as truncation isn't possible
25798         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
25799         instead of a conditional.  Comment about the situation in more detail.
25800         This undoes most of the 2009-10-29 patch.
25801
25802 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
25803
25804         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
25805         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
25806         * lib/unistr/u8-strchr.c: Likewise.
25807         * modules/unistr/u8-chr: Depend on memchr.
25808
25809         unistr/u*-strchr: add tests
25810         * modules/unistr/u8-strchr-tests: New file.
25811         * modules/unistr/u16-strchr-tests: New file.
25812         * modules/unistr/u32-strchr-tests: New file.
25813         * tests/unistr/test-strchr.h: New file.
25814         * tests/unistr/test-u8-strchr.c: New file.
25815         * tests/unistr/test-u16-strchr.c: New file.
25816         * tests/unistr/test-u32-strchr.c: New file.
25817
25818         unistr/u*-chr: test multibyte sequences more
25819         * tests/unistr/test-chr.h: Do complete testing of the characters in the
25820         test vector.
25821         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
25822         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
25823         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
25824
25825         unistr/u*-chr: test multibyte sequences
25826         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
25827
25828         unistr/u*-chr: prepare for multibyte tests
25829         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
25830         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
25831         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
25832         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
25833         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
25834         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
25835
25836 2010-07-18  Bruno Haible  <bruno@clisp.org>
25837
25838         unistr/u8-strchr: Optimize non-ASCII argument case.
25839         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
25840         because the first byte often matches anyway.
25841         Reported by Pádraig Brady <P@draigbrady.com>.
25842
25843 2010-07-15  Karl Berry  <karl@gnu.org>
25844
25845         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
25846
25847 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
25848
25849         getcwd: on Solaris, work better if ancestors are inaccessible
25850         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
25851         buffer and size, try again with a large buffer.  This works better
25852         on Solaris, since its getcwd succeeds even if the path to the root
25853         is inaccessible, and this is helpful in common cases such as .zfs
25854         hidden directories.  Problem reported by J Chapman Flack in
25855         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
25856         Use system getcwd if it's declared, not merely if it's partly
25857         working; use the partly-working test only to avoid needless effort
25858         if the system getcwd fails.
25859         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
25860         comment that was already obsolete and is now even more obsolete.
25861         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
25862         now might call strdup.
25863
25864 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
25865
25866         pthread: Add enough so that coreutils/src/sort.c compiles.
25867         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
25868         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
25869         gnulib. Include <sched.h> and <time.h>, as per POSIX.
25870         Include <sys/types.h>, in case it defines pthread_t.
25871         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
25872         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
25873         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
25874         (pthread_rwlockattr_t, pthread_spinlock_t):
25875         New typedefs, if HAVE_PTHREAD_T is not defined.
25876         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
25877         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
25878         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
25879         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
25880         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
25881         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
25882         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
25883         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
25884         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
25885         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
25886         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
25887         New macros.
25888         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
25889         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
25890         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
25891         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
25892         (pthread_spin_unlock): New dummy functions.
25893         (pthread_create): Return EAGAIN; don't set errno.
25894         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
25895         require AC_C_INLINE.
25896         * modules/pthread (Depends-on): Add sched, time.
25897         (pthread.h): Use AM_V_GEN.
25898
25899 2010-07-13  Bruno Haible  <bruno@clisp.org>
25900
25901         striconveh: Don't malloc memory if the result buffer is sufficient.
25902         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
25903         buffer if its size is sufficient.
25904         Reported by Ludovic Courtès <ludo@gnu.org>.
25905
25906 2010-07-13  Bruno Haible  <bruno@clisp.org>
25907
25908         strtod: Add safety check.
25909         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
25910
25911 2010-07-12  Bruno Haible  <bruno@clisp.org>
25912
25913         Unify tests that set gl_cv_func_ldexpl_no_libm.
25914         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
25915         gl_FUNC_LDEXPL.
25916         (gl_FUNC_LDEXPL): Invoke it.
25917         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25918
25919 2010-07-12  Bruno Haible  <bruno@clisp.org>
25920
25921         Unify tests that set gl_cv_func_ldexp_no_libm.
25922         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
25923         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
25924         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
25925         (configure.ac): Simply invoke gl_FUNC_LDEXP.
25926         * modules/strtod (Files): Add m4/ldexp.m4.
25927
25928 2010-07-12  Bruno Haible  <bruno@clisp.org>
25929
25930         Unify tests that set gl_cv_func_frexpl_no_libm.
25931         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
25932         gl_FUNC_FREXPL_NO_LIBM.
25933         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
25934         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25935
25936 2010-07-12  Bruno Haible  <bruno@clisp.org>
25937
25938         Unify tests that set gl_cv_func_frexp_no_libm.
25939         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
25940         gl_FUNC_FREXP_NO_LIBM.
25941         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
25942         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25943
25944 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25945
25946         memcoll: clarify sizes versus lengths, document better, and tweak perf
25947         * lib/memcoll.c (strcoll_loop, memcoll0):
25948         Improve quality of descriptive comments.  Name variables
25949         consistently as to whether they are lengths (which do not include
25950         terminating null) versus sizes (which do).
25951         * lib/xmemcoll.c (xmemcoll0): Likewise.
25952         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
25953         returned when s1size == 0; this is easier to compile and saves
25954         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
25955
25956 2010-07-12  Bruno Haible  <bruno@clisp.org>
25957
25958         Tests for module '_Exit'.
25959         * modules/_Exit-tests: New file.
25960         * tests/test-_Exit.sh: New file.
25961         * tests/test-_Exit.c: New file.
25962
25963         New module '_Exit'.
25964         * lib/stdlib.in.h (__attribute__): New macro.
25965         (_Exit): New declaration.
25966         * lib/_Exit.c: New file.
25967         * m4/_Exit.m4: New file.
25968         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
25969         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
25970         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
25971         * modules/_Exit: New file.
25972         * tests/test-stdlib-c++.cc (_Exit): Check signature.
25973         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
25974
25975 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
25976
25977         strtod: make it more-accurate typically, and don't require libm
25978         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
25979         Include limits.h.  Don't include string.h.
25980         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
25981         (locale_isspace): New function, so that no casts are needed to
25982         check whether *s is a space.
25983         (ldexp): Provide an unused dummy if not available.
25984         (scale_radix_exp, parse_number, underlying_strtod): New functions.
25985         (strtod): Use them.  This implementation prefers to use the
25986         underlying strtod if available, falling back on our own code
25987         only to fix known bugs.  This is more likely to produce an
25988         accurate result.  Also, it avoids the use of libm functions.
25989         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
25990         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
25991         was absent, but it caused a test failure with coreutils.
25992         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
25993         with libm.
25994         * modules/strtod (Makefile.am, Link): libm is no longer needed.
25995         * modules/strtod-tests (Makefile.am): Likewise.
25996
25997 2010-07-11  Pádraig Brady  <P@draigBrady.com>
25998             Bruno Haible  <bruno@clisp.org>
25999
26000         unistr/u8-strchr: Optimize ASCII argument case.
26001         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26002
26003 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26004
26005         (x)memcoll: minor tweaks
26006         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26007         is after the type that it qualifies.
26008         (memcoll0): Likewise.
26009         * lib/memcoll.h (memcoll0): Likewise.
26010         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26011         * lib/xmemcoll.h (xmemcoll0): Likewise.
26012         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26013         differs from memcoll in that the NUL byte is part of the argument.
26014         Omit the abort-checks, as performance is a real issue here.  Plus,
26015         the checks were wrong anyway (an off-by-one error).  Omit local
26016         variable 'diff', as it's a bit clearer that way.
26017         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26018         no longer needed.
26019
26020 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26021
26022         (x)memcoll: speedup when input is known to be NUL delimited
26023         * lib/memcoll.c: Include stdlib.
26024         (memcoll0): New function.
26025         (strcoll_loop): New function, refactored for use in both memcoll
26026         and memcoll0.
26027         * lib/memcoll.h (memcoll0): Add prototype.
26028         * lib/xmemcoll.c (xmemcoll0): New function.
26029         (collate_error): New function, refactored for use in both xmemcoll
26030         and xmemcoll0.
26031         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26032         * m4/memcoll.m4: add inline invocation.
26033
26034 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26035
26036         * build-aux/bootstrap: Remove any local translations
26037         from the translation project synchronization directory,
26038         so that local only translations are not distributed.
26039
26040 2010-07-04  Bruno Haible  <bruno@clisp.org>
26041
26042         fsusage: Clarify which code applies to which platforms.
26043         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26044         platform.
26045         * lib/fsusage.c (get_fs_usage): Likewise.
26046
26047 2010-07-04  Bruno Haible  <bruno@clisp.org>
26048
26049         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26050         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26051         Reported by Martin Lambers <marlam@marlam.de>.
26052
26053 2010-07-04  Jim Meyering  <meyering@redhat.com>
26054
26055         hash: once again explicitly disallow insertion of NULL
26056         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26057         inserting a NULL pointer cannot work with these functions.
26058         Add a comment with details.
26059         This reverts part of the 2010-07-01 commit, 5bef1a35
26060         "hash: extend module to deal with non-pointer keys".
26061
26062 2010-07-01  Bruno Haible  <bruno@clisp.org>
26063
26064         stdbool: Update doc.
26065         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26066         Info from Christian Weisgerber <naddy@mips.inka.de>.
26067
26068 2010-07-01  Jim Meyering  <meyering@redhat.com>
26069
26070         hash: extend module to deal with non-pointer keys
26071         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26072         but that allows insertion of non-pointer entries.
26073         Do not disallow an ENTRY value of NULL.
26074         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26075         * lib/hash.h (hash_insert0): Declare.
26076
26077 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26078
26079         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26080         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26081         not present (i.e. with autoconf 2.59 and when using gettextize, not
26082         gnulib), require AC_GNU_SOURCE instead.
26083
26084 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26085
26086         idpriv-drop: Fix tests.
26087         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26088         not to the test-idpriv-droptemp program.
26089
26090 2010-06-29  Bruno Haible  <bruno@clisp.org>
26091
26092         string: Fix syntax error with g++ 2.96.
26093         * lib/string.in.h (__pure__): Remove definition.
26094         (_GL_ATTRIBUTE_PURE): New macro.
26095         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26096         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26097         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26098
26099 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26100
26101         unitypes: Fix bug introduced on 2010-05-18.
26102         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26103
26104 2010-06-22  Eric Blake  <eblake@redhat.com>
26105
26106         memmem: slight optimization
26107         * lib/str-two-way.h (critical_factorization): Update comments.
26108         Reduce work during factorization phase.
26109         Reported by Carlos Bueno <carlos@bueno.org>.
26110
26111 2010-06-21  Bruno Haible  <bruno@clisp.org>
26112
26113         Fix HAVE_CALLOC_POSIX misnomer.
26114         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26115         !HAVE_CALLOC_POSIX.
26116         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26117         HAVE_CALLOC_POSIX.
26118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26119         instead of HAVE_CALLOC_POSIX.
26120         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26121         HAVE_CALLOC_POSIX.
26122
26123         Use modern idiom for calloc() replacement.
26124         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26125         AC_FUNC_CALLOC.
26126         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26127         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26128         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26129         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26130         (gl_REPLACE_CALLOC): New macro.
26131
26132 2010-06-21  Bruno Haible  <bruno@clisp.org>
26133
26134         Fix HAVE_REALLOC_POSIX misnomer.
26135         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26136         !HAVE_REALLOC_POSIX.
26137         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26138         HAVE_REALLOC_POSIX.
26139         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26140         instead of HAVE_REALLOC_POSIX.
26141         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26142         HAVE_REALLOC_POSIX.
26143
26144         Use modern idiom for realloc() replacement.
26145         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26146         AC_FUNC_REALLOC.
26147         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26148         Autoconf's AC_FUNC_REALLOC.
26149         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26150         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26151         (gl_REPLACE_REALLOC): New macro.
26152         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26153
26154 2010-06-21  Bruno Haible  <bruno@clisp.org>
26155
26156         Fix HAVE_MALLOC_POSIX misnomer.
26157         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26158         !HAVE_MALLOC_POSIX.
26159         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26160         HAVE_MALLOC_POSIX.
26161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26162         instead of HAVE_MALLOC_POSIX.
26163         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26164         HAVE_MALLOC_POSIX.
26165
26166         Use modern idiom for malloc() replacement.
26167         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26168         AC_FUNC_MALLOC.
26169         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26170         Autoconf's AC_FUNC_MALLOC.
26171         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26172         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26173         (gl_REPLACE_MALLOC): New macro.
26174         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26175
26176 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26177
26178         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26179         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26180         This macro takes 3 arguments, not 4.
26181
26182 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26183
26184         ipv6: fix detection under mingw
26185         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26186         in6_addr.
26187
26188 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26189
26190         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26191         that strtod() works when cross-compiling to a glibc version known
26192         to work.
26193
26194 2010-06-15  Bruno Haible  <bruno@clisp.org>
26195
26196         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26197
26198 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26199
26200         select: Correct timeout.
26201         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26202
26203 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26204
26205         git-version-gen: init shell var to avoid env var influence
26206         * build-aux/git-version-gen (v): Init shell var to empty.
26207
26208 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26209
26210         priv-set: Don't assume that priv.h exists merely because getppriv does.
26211         See Jan Andersen's bug report about AIX 5L in
26212         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26213         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26214         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26215         * lib/priv-set.h: Likewise.
26216         * tests/test-priv-set.c: Likewise.
26217
26218 2010-06-13  Bruno Haible  <bruno@clisp.org>
26219
26220         relocatable: Make it easier to test whether to install wrappers.
26221         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26222         RELOCATABLE_VIA_WRAPPER.
26223
26224 2010-06-13  Bruno Haible  <bruno@clisp.org>
26225
26226         gnulib-tool: Display specified modules and dependencies differently.
26227         * gnulib-tool (func_show_module_list): New function.
26228         (func_import, func_create_testdir): Invoke it.
26229         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26230
26231 2010-06-13  Bruno Haible  <bruno@clisp.org>
26232
26233         gnulib-tool: Align code of func_import and func_create_testdir.
26234         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26235         specified_modules.
26236
26237 2010-06-12  Jim Meyering  <meyering@redhat.com>
26238
26239         test-inttostr: avoid spurious failure on Solaris 9
26240         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26241         to accept "%ju".  Reported by Bruno Haible.
26242
26243 2010-06-11  Jim Meyering  <meyering@redhat.com>
26244
26245         test-sys_socket: mark variables as used more readably
26246         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26247         as "used" explicitly via (void) statement casts.  This is more
26248         readable than using them in an artificial return expression.
26249         Suggestion from Bruno Haible.
26250
26251 2010-06-11  Bruno Haible  <bruno@clisp.org>
26252
26253         Avoid some more warnings from "gcc -Wwrite-strings".
26254         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26255         to 'const char *'.
26256         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26257         * tests/test-c-strcasestr.c (main): Likewise.
26258         * tests/test-mbscasestr1.c (main): Likewise.
26259         * tests/test-mbscasestr2.c (main): Likewise.
26260         * tests/test-memmem.c (main): Likewise.
26261         * tests/test-strstr.c (main): Likewise.
26262         * tests/test-strcasestr.c (main): Likewise.
26263
26264 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26265
26266         init.sh: change framework_failure_ to fail with status 99, not 1
26267         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26268         automake's parallel-tests rule that this is an unexpected failure,
26269         even if the test is listed in XFAIL_TESTS.
26270
26271 2010-06-11  Jim Meyering  <meyering@redhat.com>
26272
26273         test-inttostr: avoid warnings about 4-6KB literal strings
26274         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26275         Include "macros.h", for its definition of ASSERT.
26276         (CK): s/assert/ASSERT/
26277         * modules/inttostr-tests (Files): Add macros.h.
26278
26279         init.sh: don't use $ME_ or skip_ before they are defined
26280         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26281         their first uses.  Also hoist their companions: warn_, fail_,
26282         framework_failure_, $stderr_fileno.  Prompted by a patch from
26283         Stefano Lattarini.
26284
26285         test-sys_socket: avoid set-but-not-used warnings from gcc
26286         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26287         avoid warning about set-but-not-used variables.
26288
26289         test-xvasprintf: avoid 'const' discard warnings
26290         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26291         "const" when assigning from literal strings.
26292         (test_xasprintf): Add "void" in function argument list to placate
26293         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26294
26295         tests: avoid compilation warnings in argmatch and exclude tests...
26296         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26297         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26298         Since it always exits, declare with the "noreturn" attribute.
26299         * tests/test-argmatch.c: Likewise.
26300
26301         tests: avoid 'const' discard warnings in mbsstr tests
26302         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26303         * tests/test-mbsstr2.c (main): Likewise.
26304
26305         test-verify: avoid warning from gcc's -Wmissing-declarations
26306         * tests/test-verify.c (function): Declare to be static.
26307
26308         test-inttostr.c: include <string.h> for use of strcmp
26309         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26310
26311         test-linkat: avoid failed assertion on "other" architectures
26312         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26313         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26314         sparc: https://bugs.launchpad.net/bugs/591968
26315
26316 2010-06-11  Jim Meyering  <meyering@redhat.com>
26317
26318         printf.m4: avoid autoconf's "Expanded Before Required" warning
26319         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26320         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26321         autoconf warning.
26322
26323 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26324
26325         Replacement header templates are now named with ".in", not "_".
26326         * doc/gnulib-intro.texi: Correct.
26327
26328 2010-06-10  Jim Meyering  <meyering@redhat.com>
26329
26330         inttostr-tests: depend on snprintf, not snprintf-posix
26331         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26332         snprintf-posix, to avoid this aclocal failure:
26333           missing file gnulib-tests/vasnprintf.c
26334           configure.ac:45: error: expected source file, required through \
26335           AC_LIBSOURCES, not found
26336
26337 2010-06-10  Jim Meyering  <meyering@redhat.com>
26338
26339         inttostr: add a new function, inttostr, and tests
26340         The namesake function was not available.  The existence of the
26341         template file, inttostr.c makes its addition nontrivial.
26342         * lib/anytostr.c: Rename from inttostr.c.
26343         (anytostr): Rename from inttostr.
26344         * lib/inttostr.c: New file.
26345         * modules/inttostr (Files): Add anytostr.c.
26346         (Makefile.am): Set lib_SOURCES instead of ...
26347         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26348         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26349         * lib/offtostr.c: Likewise.
26350         * lib/uinttostr.c: Likewise.
26351         * lib/umaxtostr.c: Likewise.
26352         * modules/inttostr-tests: New file.
26353         * tests/test-inttostr.c: New file.  Test these functions.
26354
26355 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26356             Bruno Haible  <bruno@clisp.org>
26357
26358         Add "Extending Gnulib" chapter to manual.
26359         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26360         chapter.
26361         (Extending Gnulib): New chapter.
26362         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26363         chapter.
26364
26365 2010-06-09  Bruno Haible  <bruno@clisp.org>
26366
26367         Avoid relocwrapper link errors due to gnulib replacement functions.
26368         * lib/areadlink.c: Use the system's malloc, realloc functions.
26369         (areadlink): Set errno to ENOMEM explicitly.
26370         * modules/areadlink (Depends-on): Remove malloc-posix.
26371         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26372
26373 2010-06-09  Bruno Haible  <bruno@clisp.org>
26374
26375         Avoid relocwrapper link errors due to gnulib replacement functions.
26376         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26377         * lib/malloca.c: Likewise.
26378         * lib/relocatable.c: Likewise.
26379         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26380         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26381         * lib/setenv.c: Use the system's malloc, realloc functions.
26382         * lib/strerror.c: Use the system's sprintf function.
26383         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26384
26385 2010-06-04  Bruno Haible  <bruno@clisp.org>
26386
26387         Prefer documented low-level autoconf macro names.
26388         * m4/lib-link.m4: Use m4_translit instead of translit.
26389         * m4/environ.m4: Likewise.
26390         * m4/mathfunc.m4: Likewise.
26391         * m4/onceonly.m4: Likewise.
26392         * m4/stdint.m4: Likewise.
26393         Suggested by Eric Blake.
26394
26395 2010-06-04  Martin Lambers  <marlam@marlam.de>
26396             Bruno Haible  <bruno@clisp.org>
26397
26398         havelib: Allow library names with '+' characters.
26399         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26400         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26401
26402 2010-06-09  Bruno Haible  <bruno@clisp.org>
26403
26404         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26405         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26406         realloc failed.
26407
26408 2010-06-08  Peter Simons  <simons@cryp.to>
26409
26410         maint.mk: make the news-check rule more configurable
26411         * top/maint.mk (news-check-lines-spec): New variable.
26412         (news-check): Use "sed -n 1,10p" in place of "head".
26413
26414 2010-06-07  Jim Meyering  <meyering@redhat.com>
26415
26416         do-release-commit-and-tag: fix typo in --help
26417         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26418
26419         regex: avoid new dead-code warning with gcc-4.6.0
26420         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26421         if-block containing a while-loop.  It's been unused for at least
26422         5 years.
26423
26424 2010-06-05  Bruno Haible  <bruno@clisp.org>
26425
26426         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26427         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26428
26429 2010-06-04  Bruno Haible  <bruno@clisp.org>
26430
26431         Update to GNU gettext 0.18.1.
26432         * modules/gettext (configure.ac): Require gettext infrastructure from
26433         version 0.18.1.
26434
26435 2010-06-03  Bruno Haible  <bruno@clisp.org>
26436
26437         Don't use AC_LIBOBJ with file names in subdirectories.
26438         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
26439         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
26440         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
26441         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
26442         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
26443         gl_LIBUNISTRING_LIBSOURCE.
26444         (Makefile.am): Augment lib_SOURCES here, conditionally.
26445         * NEWS: Drop requirement for Automake option 'subdir-objects'.
26446
26447 2010-06-03  Bruno Haible  <bruno@clisp.org>
26448
26449         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
26450         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
26451         expansion does not end with a newline.
26452         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
26453         unnecessary newline.
26454
26455 2010-06-03  Bruno Haible  <bruno@clisp.org>
26456
26457         Reduce dependencies.
26458         * tests/test-quotearg.h: New file, extracted from
26459         tests/test-quotearg.c.
26460         * tests/test-quotearg-simple.c: New file, extracted from
26461         tests/test-quotearg.c.
26462         * tests/test-quotearg.c: Don't include <ctype.h>.
26463         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
26464         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
26465         use_quote_double_quotes, use_quotearg_colon): Moved to
26466         tests/test-quotearg.h.
26467         (results_g, flag_results, custom_quotes, custom_results): Moved
26468         to tests/test-quotearg-simple.c.
26469         (main): Moved the part that does not depend on gettext to
26470         tests/test-quotearg-simple.c. Return 77 if the test cannot be
26471         performed.
26472         * modules/quotearg-simple: New file.
26473         * modules/quotearg-simple-tests: New file.
26474         * modules/quotearg (Depends-on): Add quotearg-simple.
26475         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
26476         (Files): Add tests/test-quotearg.h.
26477         Reported by Paolo Bonzini.
26478
26479 2010-06-03  Bruno Haible  <bruno@clisp.org>
26480
26481         Reduce dependencies.
26482         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
26483
26484 2010-06-03  Bruno Haible  <bruno@clisp.org>
26485
26486         time: Undefine more broken macros.
26487         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
26488         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
26489         Reported by Eric Blake.
26490
26491 2010-06-03  Bruno Haible  <bruno@clisp.org>
26492
26493         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
26494         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
26495         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
26496         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
26497         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
26498         Reported by Ludovic Courtès <ludo@gnu.org>.
26499
26500 2010-06-02  Eric Blake  <eblake@redhat.com>
26501
26502         time: work with mingw + pthreads-win32 library
26503         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
26504         if timespec is defined only in pthread.h.
26505         * modules/time (Makefile.am): Substitute it.
26506         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
26507         <pthread.h>, when needed.
26508         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
26509         from the library.
26510
26511 2010-05-31  Bruno Haible  <bruno@clisp.org>
26512
26513         Avoid expanding two macros in the wrong order.
26514         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
26515         gl_LIBUNISTRING if it is defined.
26516         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
26517         autoconf >= 2.64.
26518         Reported by Ludovic Courtès <ludo@gnu.org>.
26519
26520 2010-05-27  Jim Meyering  <meyering@redhat.com>
26521
26522         maint.mk: also prohibit "#undef" of always-defined symbols
26523         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
26524         Allow more than one space before the symbol name.
26525         (sc_prohibit_always-defined_macros): Use grep's -E, now that
26526         the regexp uses alternation.
26527
26528 2010-05-26  Eric Blake  <eblake@redhat.com>
26529
26530         maint.mk: avoid echo -e
26531         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
26532         Convert all uses of echo -* to printf.
26533         Reported by Matthias Bolte.
26534
26535 2010-05-25  Bruno Haible  <bruno@clisp.org>
26536
26537         Update to GNU gettext 0.18, part 2.
26538         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
26539         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
26540
26541 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26542
26543         Add missing include in test-pwrite.c.
26544         * tests/test-pwrite.c: Include string.h, for strcmp.
26545
26546 2010-05-24  Bruno Haible  <bruno@clisp.org>
26547
26548         * NEWS: Mention requirement for Automake option 'subdir-objects'.
26549
26550 2010-05-24  Bruno Haible  <bruno@clisp.org>
26551
26552         Don't use conversion with transliteration in u{8,16,32}_strcoll.
26553         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
26554         iconveh_error argument.
26555         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
26556         U_STRCONV_TO_LOCALE.
26557         * lib/unistr/u16-strcoll.c: Likewise.
26558         * lib/unistr/u32-strcoll.c: Likewise.
26559         * modules/unistr/u8-strcoll (Depends-on): Add
26560         uniconv/u8-strconv-to-enc, localcharset. Remove
26561         uniconv/u8-strconv-to-locale.
26562         (configure.ac): Bump version number.
26563         * modules/unistr/u16-strcoll (Depends-on): Add
26564         uniconv/u16-strconv-to-enc, localcharset. Remove
26565         uniconv/u16-strconv-to-locale.
26566         (configure.ac): Bump version number.
26567         * modules/unistr/u32-strcoll (Depends-on): Add
26568         uniconv/u32-strconv-to-enc, localcharset. Remove
26569         uniconv/u32-strconv-to-locale.
26570         (configure.ac): Bump version number.
26571
26572 2010-05-24  Bruno Haible  <bruno@clisp.org>
26573
26574         Avoid a test failure on NetBSD 5.0.
26575         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
26576         an iconv() bug.
26577
26578 2010-05-24  Bruno Haible  <bruno@clisp.org>
26579
26580         Adjust #include directive style.
26581         * modules/regex (Includes): Recommend to write <regex.h>.
26582
26583 2010-05-24  Bruno Haible  <bruno@clisp.org>
26584
26585         regex: Don't require alloca.
26586         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
26587         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
26588         only inside if (0).
26589
26590 2010-05-23  Jim Meyering  <meyering@redhat.com>
26591
26592         test-renameat.c: include <sys/stat.h>
26593         * tests/test-renameat.c: Include <sys/stat.h>; required for
26594         definition of S_IS* macros.
26595
26596 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
26597
26598         Update maintainer documentation for 'relocatable-prog' module.
26599         * doc/relocatable-maint.texi: Update.
26600         Comments by Bruno Haible.
26601
26602 2010-05-23  Bruno Haible  <bruno@clisp.org>
26603
26604         git-merge-changelog: Enable --split-merged-entry by default.
26605         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
26606         (usage): Don't mention this option any more.
26607         Reported by Ralf Wildenhues.
26608
26609 2010-05-23  Jim Meyering  <meyering@redhat.com>
26610
26611         test-pwrite: do not leave behind a test file named "out"
26612         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
26613         The trivial-looking use of init.sh is really necessary.
26614         It ensures that the temporary file, "out", is created in
26615         a temporary directory, and removed upon termination.
26616         * tests/test-pwrite.sh: Re-add file.
26617         * modules/pwrite-tests: Reference it.
26618
26619 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26620
26621         Fix output redirection buglet in init.sh.
26622         * tests/init.sh: Fix redirection of stderr.
26623
26624 2010-05-20  Simon Josefsson  <simon@josefsson.org>
26625
26626         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
26627
26628 2010-05-17  Simon Josefsson  <simon@josefsson.org>
26629
26630         * modules/valgrind-tests: New file.
26631         * m4/valgrind-tests.m4: New file.
26632         * doc/valgrind-tests.texi: New file.
26633         * doc/gnulib.texi (Running self-tests under valgrind): New
26634         section.
26635
26636 2010-05-19  Bruno Haible  <bruno@clisp.org>
26637
26638         Clean up dead code in recent commit.
26639         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
26640         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
26641         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
26642         Suggested by Paolo Bonzini.
26643
26644 2010-05-19  Bruno Haible  <bruno@clisp.org>
26645
26646         Avoid valgrind error reports from libunistring.
26647         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
26648         * modules/libunistring (Files): Add it.
26649         * modules/libunistring-optional (Files): Likewise.
26650
26651 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
26652             Bruno Haible  <bruno@clisp.org>
26653
26654         New module 'libunistring-optional'.
26655         * modules/libunistring-optional: New file.
26656         * m4/libunistring-base.m4: New file.
26657         * m4/libunistring-optional.m4: New file.
26658         * lib/unicase.in.h: Renamed from lib/unicase.h.
26659         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
26660         * lib/unictype.in.h: Renamed from lib/unictype.h.
26661         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
26662         * lib/uniname.in.h: Renamed from lib/uniname.h.
26663         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
26664         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
26665         * lib/unistr.in.h: Renamed from lib/unistr.h.
26666         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
26667         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
26668         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
26669         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
26670         gl_LIBUNISTRING. If the library was found, determine the installed
26671         version and set LIBUNISTRING_VERSION.
26672         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
26673         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
26674         handle a configuration option --with-included-libunistring.
26675         * modules/libunistring (Files): Add m4/absolute-header.m4.
26676         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
26677         Add m4/libunistring-base.m4.
26678         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26679         (Makefile.am): Build unicase.h from unicase.in.h.
26680         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
26681         Add m4/libunistring-base.m4.
26682         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26683         (Makefile.am): Build uniconv.h from uniconv.in.h.
26684         * modules/unictype/base (Files): Use unictype.in.h instead of
26685         unictype.h. Add m4/libunistring-base.m4.
26686         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26687         (Makefile.am): Build unictype.h from unictype.in.h.
26688         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
26689         Add m4/libunistring-base.m4.
26690         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26691         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
26692         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
26693         Add m4/libunistring-base.m4.
26694         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26695         (Makefile.am): Build uniname.h from uniname.in.h.
26696         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
26697         Add m4/libunistring-base.m4.
26698         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26699         (Makefile.am): Build uninorm.h from uninorm.in.h.
26700         * modules/unistdio/base (Files): Use unistdio.in.h instead of
26701         unistdio.h. Add m4/libunistring-base.m4.
26702         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26703         (Makefile.am): Build unistdio.h from unistdio.in.h.
26704         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
26705         Add m4/libunistring-base.m4.
26706         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26707         (Makefile.am): Build unistr.h from unistr.in.h.
26708         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
26709         Add m4/libunistring-base.m4.
26710         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26711         (Makefile.am): Build unitypes.h from unitypes.in.h.
26712         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
26713         Add m4/libunistring-base.m4.
26714         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26715         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
26716         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
26717         uniwidth.h. Add m4/libunistring-base.m4.
26718         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
26719         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
26720         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
26721         instead of augmenting lib_SOURCES.
26722         * modules/unicase/empty-suffix-context: Likewise.
26723         * modules/unicase/locale-language: Likewise.
26724         * modules/unicase/tolower: Likewise.
26725         * modules/unicase/totitle: Likewise.
26726         * modules/unicase/toupper: Likewise.
26727         * modules/unicase/u8-casecmp: Likewise.
26728         * modules/unicase/u8-casecoll: Likewise.
26729         * modules/unicase/u8-casefold: Likewise.
26730         * modules/unicase/u8-casexfrm: Likewise.
26731         * modules/unicase/u8-ct-casefold: Likewise.
26732         * modules/unicase/u8-ct-tolower: Likewise.
26733         * modules/unicase/u8-ct-totitle: Likewise.
26734         * modules/unicase/u8-ct-toupper: Likewise.
26735         * modules/unicase/u8-is-cased: Likewise.
26736         * modules/unicase/u8-is-casefolded: Likewise.
26737         * modules/unicase/u8-is-lowercase: Likewise.
26738         * modules/unicase/u8-is-titlecase: Likewise.
26739         * modules/unicase/u8-is-uppercase: Likewise.
26740         * modules/unicase/u8-prefix-context: Likewise.
26741         * modules/unicase/u8-suffix-context: Likewise.
26742         * modules/unicase/u8-tolower: Likewise.
26743         * modules/unicase/u8-totitle: Likewise.
26744         * modules/unicase/u8-toupper: Likewise.
26745         * modules/unicase/u16-casecmp: Likewise.
26746         * modules/unicase/u16-casecoll: Likewise.
26747         * modules/unicase/u16-casefold: Likewise.
26748         * modules/unicase/u16-casexfrm: Likewise.
26749         * modules/unicase/u16-ct-casefold: Likewise.
26750         * modules/unicase/u16-ct-tolower: Likewise.
26751         * modules/unicase/u16-ct-totitle: Likewise.
26752         * modules/unicase/u16-ct-toupper: Likewise.
26753         * modules/unicase/u16-is-cased: Likewise.
26754         * modules/unicase/u16-is-casefolded: Likewise.
26755         * modules/unicase/u16-is-lowercase: Likewise.
26756         * modules/unicase/u16-is-titlecase: Likewise.
26757         * modules/unicase/u16-is-uppercase: Likewise.
26758         * modules/unicase/u16-prefix-context: Likewise.
26759         * modules/unicase/u16-suffix-context: Likewise.
26760         * modules/unicase/u16-tolower: Likewise.
26761         * modules/unicase/u16-totitle: Likewise.
26762         * modules/unicase/u16-toupper: Likewise.
26763         * modules/unicase/u32-casecmp: Likewise.
26764         * modules/unicase/u32-casecoll: Likewise.
26765         * modules/unicase/u32-casefold: Likewise.
26766         * modules/unicase/u32-casexfrm: Likewise.
26767         * modules/unicase/u32-ct-casefold: Likewise.
26768         * modules/unicase/u32-ct-tolower: Likewise.
26769         * modules/unicase/u32-ct-totitle: Likewise.
26770         * modules/unicase/u32-ct-toupper: Likewise.
26771         * modules/unicase/u32-is-cased: Likewise.
26772         * modules/unicase/u32-is-casefolded: Likewise.
26773         * modules/unicase/u32-is-lowercase: Likewise.
26774         * modules/unicase/u32-is-titlecase: Likewise.
26775         * modules/unicase/u32-is-uppercase: Likewise.
26776         * modules/unicase/u32-prefix-context: Likewise.
26777         * modules/unicase/u32-suffix-context: Likewise.
26778         * modules/unicase/u32-tolower: Likewise.
26779         * modules/unicase/u32-totitle: Likewise.
26780         * modules/unicase/u32-toupper: Likewise.
26781         * modules/unicase/ulc-casecmp: Likewise.
26782         * modules/unicase/ulc-casecoll: Likewise.
26783         * modules/unicase/ulc-casexfrm: Likewise.
26784         * modules/uniconv/u8-conv-from-enc: Likewise.
26785         * modules/uniconv/u8-conv-to-enc: Likewise.
26786         * modules/uniconv/u8-strconv-from-enc: Likewise.
26787         * modules/uniconv/u8-strconv-from-locale: Likewise.
26788         * modules/uniconv/u8-strconv-to-enc: Likewise.
26789         * modules/uniconv/u8-strconv-to-locale: Likewise.
26790         * modules/uniconv/u16-conv-from-enc: Likewise.
26791         * modules/uniconv/u16-conv-to-enc: Likewise.
26792         * modules/uniconv/u16-strconv-from-enc: Likewise.
26793         * modules/uniconv/u16-strconv-from-locale: Likewise.
26794         * modules/uniconv/u16-strconv-to-enc: Likewise.
26795         * modules/uniconv/u16-strconv-to-locale: Likewise.
26796         * modules/uniconv/u32-conv-from-enc: Likewise.
26797         * modules/uniconv/u32-conv-to-enc: Likewise.
26798         * modules/uniconv/u32-strconv-from-enc: Likewise.
26799         * modules/uniconv/u32-strconv-from-locale: Likewise.
26800         * modules/uniconv/u32-strconv-to-enc: Likewise.
26801         * modules/uniconv/u32-strconv-to-locale: Likewise.
26802         * modules/unictype/bidicategory-byname: Likewise.
26803         * modules/unictype/bidicategory-name: Likewise.
26804         * modules/unictype/bidicategory-of: Likewise.
26805         * modules/unictype/bidicategory-test: Likewise.
26806         * modules/unictype/block-list: Likewise.
26807         * modules/unictype/block-test: Likewise.
26808         * modules/unictype/category-C: Likewise.
26809         * modules/unictype/category-Cc: Likewise.
26810         * modules/unictype/category-Cf: Likewise.
26811         * modules/unictype/category-Cn: Likewise.
26812         * modules/unictype/category-Co: Likewise.
26813         * modules/unictype/category-Cs: Likewise.
26814         * modules/unictype/category-L: Likewise.
26815         * modules/unictype/category-Ll: Likewise.
26816         * modules/unictype/category-Lm: Likewise.
26817         * modules/unictype/category-Lo: Likewise.
26818         * modules/unictype/category-Lt: Likewise.
26819         * modules/unictype/category-Lu: Likewise.
26820         * modules/unictype/category-M: Likewise.
26821         * modules/unictype/category-Mc: Likewise.
26822         * modules/unictype/category-Me: Likewise.
26823         * modules/unictype/category-Mn: Likewise.
26824         * modules/unictype/category-N: Likewise.
26825         * modules/unictype/category-Nd: Likewise.
26826         * modules/unictype/category-Nl: Likewise.
26827         * modules/unictype/category-No: Likewise.
26828         * modules/unictype/category-P: Likewise.
26829         * modules/unictype/category-Pc: Likewise.
26830         * modules/unictype/category-Pd: Likewise.
26831         * modules/unictype/category-Pe: Likewise.
26832         * modules/unictype/category-Pf: Likewise.
26833         * modules/unictype/category-Pi: Likewise.
26834         * modules/unictype/category-Po: Likewise.
26835         * modules/unictype/category-Ps: Likewise.
26836         * modules/unictype/category-S: Likewise.
26837         * modules/unictype/category-Sc: Likewise.
26838         * modules/unictype/category-Sk: Likewise.
26839         * modules/unictype/category-Sm: Likewise.
26840         * modules/unictype/category-So: Likewise.
26841         * modules/unictype/category-Z: Likewise.
26842         * modules/unictype/category-Zl: Likewise.
26843         * modules/unictype/category-Zp: Likewise.
26844         * modules/unictype/category-Zs: Likewise.
26845         * modules/unictype/category-and: Likewise.
26846         * modules/unictype/category-and-not: Likewise.
26847         * modules/unictype/category-byname: Likewise.
26848         * modules/unictype/category-name: Likewise.
26849         * modules/unictype/category-none: Likewise.
26850         * modules/unictype/category-of: Likewise.
26851         * modules/unictype/category-or: Likewise.
26852         * modules/unictype/category-test: Likewise.
26853         * modules/unictype/combining-class: Likewise.
26854         * modules/unictype/ctype-alnum: Likewise.
26855         * modules/unictype/ctype-alpha: Likewise.
26856         * modules/unictype/ctype-blank: Likewise.
26857         * modules/unictype/ctype-cntrl: Likewise.
26858         * modules/unictype/ctype-digit: Likewise.
26859         * modules/unictype/ctype-graph: Likewise.
26860         * modules/unictype/ctype-lower: Likewise.
26861         * modules/unictype/ctype-print: Likewise.
26862         * modules/unictype/ctype-punct: Likewise.
26863         * modules/unictype/ctype-space: Likewise.
26864         * modules/unictype/ctype-upper: Likewise.
26865         * modules/unictype/ctype-xdigit: Likewise.
26866         * modules/unictype/decimal-digit: Likewise.
26867         * modules/unictype/digit: Likewise.
26868         * modules/unictype/mirror: Likewise.
26869         * modules/unictype/numeric: Likewise.
26870         * modules/unictype/property-alphabetic: Likewise.
26871         * modules/unictype/property-ascii-hex-digit: Likewise.
26872         * modules/unictype/property-bidi-arabic-digit: Likewise.
26873         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
26874         * modules/unictype/property-bidi-block-separator: Likewise.
26875         * modules/unictype/property-bidi-boundary-neutral: Likewise.
26876         * modules/unictype/property-bidi-common-separator: Likewise.
26877         * modules/unictype/property-bidi-control: Likewise.
26878         * modules/unictype/property-bidi-embedding-or-override: Likewise.
26879         * modules/unictype/property-bidi-eur-num-separator: Likewise.
26880         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
26881         * modules/unictype/property-bidi-european-digit: Likewise.
26882         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
26883         * modules/unictype/property-bidi-left-to-right: Likewise.
26884         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
26885         * modules/unictype/property-bidi-other-neutral: Likewise.
26886         * modules/unictype/property-bidi-pdf: Likewise.
26887         * modules/unictype/property-bidi-segment-separator: Likewise.
26888         * modules/unictype/property-bidi-whitespace: Likewise.
26889         * modules/unictype/property-byname: Likewise.
26890         * modules/unictype/property-combining: Likewise.
26891         * modules/unictype/property-composite: Likewise.
26892         * modules/unictype/property-currency-symbol: Likewise.
26893         * modules/unictype/property-dash: Likewise.
26894         * modules/unictype/property-decimal-digit: Likewise.
26895         * modules/unictype/property-default-ignorable-code-point: Likewise.
26896         * modules/unictype/property-deprecated: Likewise.
26897         * modules/unictype/property-diacritic: Likewise.
26898         * modules/unictype/property-extender: Likewise.
26899         * modules/unictype/property-format-control: Likewise.
26900         * modules/unictype/property-grapheme-base: Likewise.
26901         * modules/unictype/property-grapheme-extend: Likewise.
26902         * modules/unictype/property-grapheme-link: Likewise.
26903         * modules/unictype/property-hex-digit: Likewise.
26904         * modules/unictype/property-hyphen: Likewise.
26905         * modules/unictype/property-id-continue: Likewise.
26906         * modules/unictype/property-id-start: Likewise.
26907         * modules/unictype/property-ideographic: Likewise.
26908         * modules/unictype/property-ids-binary-operator: Likewise.
26909         * modules/unictype/property-ids-trinary-operator: Likewise.
26910         * modules/unictype/property-ignorable-control: Likewise.
26911         * modules/unictype/property-iso-control: Likewise.
26912         * modules/unictype/property-join-control: Likewise.
26913         * modules/unictype/property-left-of-pair: Likewise.
26914         * modules/unictype/property-line-separator: Likewise.
26915         * modules/unictype/property-logical-order-exception: Likewise.
26916         * modules/unictype/property-lowercase: Likewise.
26917         * modules/unictype/property-math: Likewise.
26918         * modules/unictype/property-non-break: Likewise.
26919         * modules/unictype/property-not-a-character: Likewise.
26920         * modules/unictype/property-numeric: Likewise.
26921         * modules/unictype/property-other-alphabetic: Likewise.
26922         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
26923         * modules/unictype/property-other-grapheme-extend: Likewise.
26924         * modules/unictype/property-other-id-continue: Likewise.
26925         * modules/unictype/property-other-id-start: Likewise.
26926         * modules/unictype/property-other-lowercase: Likewise.
26927         * modules/unictype/property-other-math: Likewise.
26928         * modules/unictype/property-other-uppercase: Likewise.
26929         * modules/unictype/property-paired-punctuation: Likewise.
26930         * modules/unictype/property-paragraph-separator: Likewise.
26931         * modules/unictype/property-pattern-syntax: Likewise.
26932         * modules/unictype/property-pattern-white-space: Likewise.
26933         * modules/unictype/property-private-use: Likewise.
26934         * modules/unictype/property-punctuation: Likewise.
26935         * modules/unictype/property-quotation-mark: Likewise.
26936         * modules/unictype/property-radical: Likewise.
26937         * modules/unictype/property-sentence-terminal: Likewise.
26938         * modules/unictype/property-soft-dotted: Likewise.
26939         * modules/unictype/property-space: Likewise.
26940         * modules/unictype/property-terminal-punctuation: Likewise.
26941         * modules/unictype/property-test: Likewise.
26942         * modules/unictype/property-titlecase: Likewise.
26943         * modules/unictype/property-unassigned-code-value: Likewise.
26944         * modules/unictype/property-unified-ideograph: Likewise.
26945         * modules/unictype/property-uppercase: Likewise.
26946         * modules/unictype/property-variation-selector: Likewise.
26947         * modules/unictype/property-white-space: Likewise.
26948         * modules/unictype/property-xid-continue: Likewise.
26949         * modules/unictype/property-xid-start: Likewise.
26950         * modules/unictype/property-zero-width: Likewise.
26951         * modules/unictype/scripts: Likewise.
26952         * modules/unictype/syntax-c-ident: Likewise.
26953         * modules/unictype/syntax-c-whitespace: Likewise.
26954         * modules/unictype/syntax-java-ident: Likewise.
26955         * modules/unictype/syntax-java-whitespace: Likewise.
26956         * modules/unilbrk/u8-possible-linebreaks: Likewise.
26957         * modules/unilbrk/u8-width-linebreaks: Likewise.
26958         * modules/unilbrk/u16-possible-linebreaks: Likewise.
26959         * modules/unilbrk/u16-width-linebreaks: Likewise.
26960         * modules/unilbrk/u32-possible-linebreaks: Likewise.
26961         * modules/unilbrk/u32-width-linebreaks: Likewise.
26962         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
26963         * modules/unilbrk/ulc-width-linebreaks: Likewise.
26964         * modules/uniname/uniname: Likewise.
26965         * modules/uninorm/canonical-decomposition: Likewise.
26966         * modules/uninorm/composition: Likewise.
26967         * modules/uninorm/decomposing-form: Likewise.
26968         * modules/uninorm/decomposition: Likewise.
26969         * modules/uninorm/filter: Likewise.
26970         * modules/uninorm/nfc: Likewise.
26971         * modules/uninorm/nfd: Likewise.
26972         * modules/uninorm/nfkc: Likewise.
26973         * modules/uninorm/nfkd: Likewise.
26974         * modules/uninorm/u8-normalize: Likewise.
26975         * modules/uninorm/u8-normcmp: Likewise.
26976         * modules/uninorm/u8-normcoll: Likewise.
26977         * modules/uninorm/u8-normxfrm: Likewise.
26978         * modules/uninorm/u16-normalize: Likewise.
26979         * modules/uninorm/u16-normcmp: Likewise.
26980         * modules/uninorm/u16-normcoll: Likewise.
26981         * modules/uninorm/u16-normxfrm: Likewise.
26982         * modules/uninorm/u32-normalize: Likewise.
26983         * modules/uninorm/u32-normcmp: Likewise.
26984         * modules/uninorm/u32-normcoll: Likewise.
26985         * modules/uninorm/u32-normxfrm: Likewise.
26986         * modules/unistdio/u8-asnprintf: Likewise.
26987         * modules/unistdio/u8-asprintf: Likewise.
26988         * modules/unistdio/u8-snprintf: Likewise.
26989         * modules/unistdio/u8-sprintf: Likewise.
26990         * modules/unistdio/u8-u8-asnprintf: Likewise.
26991         * modules/unistdio/u8-u8-asprintf: Likewise.
26992         * modules/unistdio/u8-u8-snprintf: Likewise.
26993         * modules/unistdio/u8-u8-sprintf: Likewise.
26994         * modules/unistdio/u8-u8-vasnprintf: Likewise.
26995         * modules/unistdio/u8-u8-vasprintf: Likewise.
26996         * modules/unistdio/u8-u8-vsnprintf: Likewise.
26997         * modules/unistdio/u8-u8-vsprintf: Likewise.
26998         * modules/unistdio/u8-vasnprintf: Likewise.
26999         * modules/unistdio/u8-vasprintf: Likewise.
27000         * modules/unistdio/u8-vsnprintf: Likewise.
27001         * modules/unistdio/u8-vsprintf: Likewise.
27002         * modules/unistdio/u16-asnprintf: Likewise.
27003         * modules/unistdio/u16-asprintf: Likewise.
27004         * modules/unistdio/u16-snprintf: Likewise.
27005         * modules/unistdio/u16-sprintf: Likewise.
27006         * modules/unistdio/u16-u16-asnprintf: Likewise.
27007         * modules/unistdio/u16-u16-asprintf: Likewise.
27008         * modules/unistdio/u16-u16-snprintf: Likewise.
27009         * modules/unistdio/u16-u16-sprintf: Likewise.
27010         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27011         * modules/unistdio/u16-u16-vasprintf: Likewise.
27012         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27013         * modules/unistdio/u16-u16-vsprintf: Likewise.
27014         * modules/unistdio/u16-vasnprintf: Likewise.
27015         * modules/unistdio/u16-vasprintf: Likewise.
27016         * modules/unistdio/u16-vsnprintf: Likewise.
27017         * modules/unistdio/u16-vsprintf: Likewise.
27018         * modules/unistdio/u32-asnprintf: Likewise.
27019         * modules/unistdio/u32-asprintf: Likewise.
27020         * modules/unistdio/u32-snprintf: Likewise.
27021         * modules/unistdio/u32-sprintf: Likewise.
27022         * modules/unistdio/u32-u32-asnprintf: Likewise.
27023         * modules/unistdio/u32-u32-asprintf: Likewise.
27024         * modules/unistdio/u32-u32-snprintf: Likewise.
27025         * modules/unistdio/u32-u32-sprintf: Likewise.
27026         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27027         * modules/unistdio/u32-u32-vasprintf: Likewise.
27028         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27029         * modules/unistdio/u32-u32-vsprintf: Likewise.
27030         * modules/unistdio/u32-vasnprintf: Likewise.
27031         * modules/unistdio/u32-vasprintf: Likewise.
27032         * modules/unistdio/u32-vsnprintf: Likewise.
27033         * modules/unistdio/u32-vsprintf: Likewise.
27034         * modules/unistdio/ulc-asnprintf: Likewise.
27035         * modules/unistdio/ulc-asprintf: Likewise.
27036         * modules/unistdio/ulc-fprintf: Likewise.
27037         * modules/unistdio/ulc-snprintf: Likewise.
27038         * modules/unistdio/ulc-sprintf: Likewise.
27039         * modules/unistdio/ulc-vasnprintf: Likewise.
27040         * modules/unistdio/ulc-vasprintf: Likewise.
27041         * modules/unistdio/ulc-vfprintf: Likewise.
27042         * modules/unistdio/ulc-vsnprintf: Likewise.
27043         * modules/unistdio/ulc-vsprintf: Likewise.
27044         * modules/unistr/u8-check: Likewise.
27045         * modules/unistr/u8-chr: Likewise.
27046         * modules/unistr/u8-cmp: Likewise.
27047         * modules/unistr/u8-cmp2: Likewise.
27048         * modules/unistr/u8-cpy: Likewise.
27049         * modules/unistr/u8-cpy-alloc: Likewise.
27050         * modules/unistr/u8-endswith: Likewise.
27051         * modules/unistr/u8-mblen: Likewise.
27052         * modules/unistr/u8-mbsnlen: Likewise.
27053         * modules/unistr/u8-mbtouc: Likewise.
27054         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27055         * modules/unistr/u8-mbtoucr: Likewise.
27056         * modules/unistr/u8-move: Likewise.
27057         * modules/unistr/u8-next: Likewise.
27058         * modules/unistr/u8-prev: Likewise.
27059         * modules/unistr/u8-set: Likewise.
27060         * modules/unistr/u8-startswith: Likewise.
27061         * modules/unistr/u8-stpcpy: Likewise.
27062         * modules/unistr/u8-stpncpy: Likewise.
27063         * modules/unistr/u8-strcat: Likewise.
27064         * modules/unistr/u8-strchr: Likewise.
27065         * modules/unistr/u8-strcmp: Likewise.
27066         * modules/unistr/u8-strcoll: Likewise.
27067         * modules/unistr/u8-strcpy: Likewise.
27068         * modules/unistr/u8-strcspn: Likewise.
27069         * modules/unistr/u8-strdup: Likewise.
27070         * modules/unistr/u8-strlen: Likewise.
27071         * modules/unistr/u8-strmblen: Likewise.
27072         * modules/unistr/u8-strmbtouc: Likewise.
27073         * modules/unistr/u8-strncat: Likewise.
27074         * modules/unistr/u8-strncmp: Likewise.
27075         * modules/unistr/u8-strncpy: Likewise.
27076         * modules/unistr/u8-strnlen: Likewise.
27077         * modules/unistr/u8-strpbrk: Likewise.
27078         * modules/unistr/u8-strrchr: Likewise.
27079         * modules/unistr/u8-strspn: Likewise.
27080         * modules/unistr/u8-strstr: Likewise.
27081         * modules/unistr/u8-strtok: Likewise.
27082         * modules/unistr/u8-to-u16: Likewise.
27083         * modules/unistr/u8-to-u32: Likewise.
27084         * modules/unistr/u8-uctomb: Likewise.
27085         * modules/unistr/u16-check: Likewise.
27086         * modules/unistr/u16-chr: Likewise.
27087         * modules/unistr/u16-cmp: Likewise.
27088         * modules/unistr/u16-cmp2: Likewise.
27089         * modules/unistr/u16-cpy: Likewise.
27090         * modules/unistr/u16-cpy-alloc: Likewise.
27091         * modules/unistr/u16-endswith: Likewise.
27092         * modules/unistr/u16-mblen: Likewise.
27093         * modules/unistr/u16-mbsnlen: Likewise.
27094         * modules/unistr/u16-mbtouc: Likewise.
27095         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27096         * modules/unistr/u16-mbtoucr: Likewise.
27097         * modules/unistr/u16-move: Likewise.
27098         * modules/unistr/u16-next: Likewise.
27099         * modules/unistr/u16-prev: Likewise.
27100         * modules/unistr/u16-set: Likewise.
27101         * modules/unistr/u16-startswith: Likewise.
27102         * modules/unistr/u16-stpcpy: Likewise.
27103         * modules/unistr/u16-stpncpy: Likewise.
27104         * modules/unistr/u16-strcat: Likewise.
27105         * modules/unistr/u16-strchr: Likewise.
27106         * modules/unistr/u16-strcmp: Likewise.
27107         * modules/unistr/u16-strcoll: Likewise.
27108         * modules/unistr/u16-strcpy: Likewise.
27109         * modules/unistr/u16-strcspn: Likewise.
27110         * modules/unistr/u16-strdup: Likewise.
27111         * modules/unistr/u16-strlen: Likewise.
27112         * modules/unistr/u16-strmblen: Likewise.
27113         * modules/unistr/u16-strmbtouc: Likewise.
27114         * modules/unistr/u16-strncat: Likewise.
27115         * modules/unistr/u16-strncmp: Likewise.
27116         * modules/unistr/u16-strncpy: Likewise.
27117         * modules/unistr/u16-strnlen: Likewise.
27118         * modules/unistr/u16-strpbrk: Likewise.
27119         * modules/unistr/u16-strrchr: Likewise.
27120         * modules/unistr/u16-strspn: Likewise.
27121         * modules/unistr/u16-strstr: Likewise.
27122         * modules/unistr/u16-strtok: Likewise.
27123         * modules/unistr/u16-to-u32: Likewise.
27124         * modules/unistr/u16-to-u8: Likewise.
27125         * modules/unistr/u16-uctomb: Likewise.
27126         * modules/unistr/u32-check: Likewise.
27127         * modules/unistr/u32-chr: Likewise.
27128         * modules/unistr/u32-cmp: Likewise.
27129         * modules/unistr/u32-cmp2: Likewise.
27130         * modules/unistr/u32-cpy: Likewise.
27131         * modules/unistr/u32-cpy-alloc: Likewise.
27132         * modules/unistr/u32-endswith: Likewise.
27133         * modules/unistr/u32-mblen: Likewise.
27134         * modules/unistr/u32-mbsnlen: Likewise.
27135         * modules/unistr/u32-mbtouc: Likewise.
27136         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27137         * modules/unistr/u32-mbtoucr: Likewise.
27138         * modules/unistr/u32-move: Likewise.
27139         * modules/unistr/u32-next: Likewise.
27140         * modules/unistr/u32-prev: Likewise.
27141         * modules/unistr/u32-set: Likewise.
27142         * modules/unistr/u32-startswith: Likewise.
27143         * modules/unistr/u32-stpcpy: Likewise.
27144         * modules/unistr/u32-stpncpy: Likewise.
27145         * modules/unistr/u32-strcat: Likewise.
27146         * modules/unistr/u32-strchr: Likewise.
27147         * modules/unistr/u32-strcmp: Likewise.
27148         * modules/unistr/u32-strcoll: Likewise.
27149         * modules/unistr/u32-strcpy: Likewise.
27150         * modules/unistr/u32-strcspn: Likewise.
27151         * modules/unistr/u32-strdup: Likewise.
27152         * modules/unistr/u32-strlen: Likewise.
27153         * modules/unistr/u32-strmblen: Likewise.
27154         * modules/unistr/u32-strmbtouc: Likewise.
27155         * modules/unistr/u32-strncat: Likewise.
27156         * modules/unistr/u32-strncmp: Likewise.
27157         * modules/unistr/u32-strncpy: Likewise.
27158         * modules/unistr/u32-strnlen: Likewise.
27159         * modules/unistr/u32-strpbrk: Likewise.
27160         * modules/unistr/u32-strrchr: Likewise.
27161         * modules/unistr/u32-strspn: Likewise.
27162         * modules/unistr/u32-strstr: Likewise.
27163         * modules/unistr/u32-strtok: Likewise.
27164         * modules/unistr/u32-to-u16: Likewise.
27165         * modules/unistr/u32-to-u8: Likewise.
27166         * modules/unistr/u32-uctomb: Likewise.
27167         * modules/uniwbrk/u8-wordbreaks: Likewise.
27168         * modules/uniwbrk/u16-wordbreaks: Likewise.
27169         * modules/uniwbrk/u32-wordbreaks: Likewise.
27170         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27171         * modules/uniwbrk/wordbreak-property: Likewise.
27172         * modules/uniwidth/u8-strwidth: Likewise.
27173         * modules/uniwidth/u8-width: Likewise.
27174         * modules/uniwidth/u16-strwidth: Likewise.
27175         * modules/uniwidth/u16-width: Likewise.
27176         * modules/uniwidth/u32-strwidth: Likewise.
27177         * modules/uniwidth/u32-width: Likewise.
27178         * modules/uniwidth/width: Likewise.
27179         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27180         with $(LIBUNISTRING).
27181         * modules/unicase/ignorable-tests: Likewise.
27182         * modules/unicase/locale-language-tests: Likewise.
27183         * modules/unicase/tolower-tests: Likewise.
27184         * modules/unicase/totitle-tests: Likewise.
27185         * modules/unicase/toupper-tests: Likewise.
27186         * modules/unicase/u8-casecmp-tests: Likewise.
27187         * modules/unicase/u8-casecoll-tests: Likewise.
27188         * modules/unicase/u8-casefold-tests: Likewise.
27189         * modules/unicase/u8-is-cased-tests: Likewise.
27190         * modules/unicase/u8-is-casefolded-tests: Likewise.
27191         * modules/unicase/u8-is-lowercase-tests: Likewise.
27192         * modules/unicase/u8-is-titlecase-tests: Likewise.
27193         * modules/unicase/u8-is-uppercase-tests: Likewise.
27194         * modules/unicase/u8-tolower-tests: Likewise.
27195         * modules/unicase/u8-totitle-tests: Likewise.
27196         * modules/unicase/u8-toupper-tests: Likewise.
27197         * modules/unicase/u16-casecmp-tests: Likewise.
27198         * modules/unicase/u16-casecoll-tests: Likewise.
27199         * modules/unicase/u16-casefold-tests: Likewise.
27200         * modules/unicase/u16-is-cased-tests: Likewise.
27201         * modules/unicase/u16-is-casefolded-tests: Likewise.
27202         * modules/unicase/u16-is-lowercase-tests: Likewise.
27203         * modules/unicase/u16-is-titlecase-tests: Likewise.
27204         * modules/unicase/u16-is-uppercase-tests: Likewise.
27205         * modules/unicase/u16-tolower-tests: Likewise.
27206         * modules/unicase/u16-totitle-tests: Likewise.
27207         * modules/unicase/u16-toupper-tests: Likewise.
27208         * modules/unicase/u32-casecmp-tests: Likewise.
27209         * modules/unicase/u32-casecoll-tests: Likewise.
27210         * modules/unicase/u32-casefold-tests: Likewise.
27211         * modules/unicase/u32-is-cased-tests: Likewise.
27212         * modules/unicase/u32-is-casefolded-tests: Likewise.
27213         * modules/unicase/u32-is-lowercase-tests: Likewise.
27214         * modules/unicase/u32-is-titlecase-tests: Likewise.
27215         * modules/unicase/u32-is-uppercase-tests: Likewise.
27216         * modules/unicase/u32-tolower-tests: Likewise.
27217         * modules/unicase/u32-totitle-tests: Likewise.
27218         * modules/unicase/u32-toupper-tests: Likewise.
27219         * modules/unicase/ulc-casecmp-tests: Likewise.
27220         * modules/unicase/ulc-casecoll-tests: Likewise.
27221         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27222         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27223         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27224         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27225         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27226         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27227         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27228         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27229         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27230         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27231         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27232         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27233         * modules/unictype/bidicategory-byname-tests: Likewise.
27234         * modules/unictype/bidicategory-name-tests: Likewise.
27235         * modules/unictype/bidicategory-of-tests: Likewise.
27236         * modules/unictype/bidicategory-test-tests: Likewise.
27237         * modules/unictype/block-list-tests: Likewise.
27238         * modules/unictype/block-of-tests: Likewise.
27239         * modules/unictype/block-test-tests: Likewise.
27240         * modules/unictype/category-C-tests: Likewise.
27241         * modules/unictype/category-Cc-tests: Likewise.
27242         * modules/unictype/category-Cf-tests: Likewise.
27243         * modules/unictype/category-Cn-tests: Likewise.
27244         * modules/unictype/category-Co-tests: Likewise.
27245         * modules/unictype/category-Cs-tests: Likewise.
27246         * modules/unictype/category-L-tests: Likewise.
27247         * modules/unictype/category-Ll-tests: Likewise.
27248         * modules/unictype/category-Lm-tests: Likewise.
27249         * modules/unictype/category-Lo-tests: Likewise.
27250         * modules/unictype/category-Lt-tests: Likewise.
27251         * modules/unictype/category-Lu-tests: Likewise.
27252         * modules/unictype/category-M-tests: Likewise.
27253         * modules/unictype/category-Mc-tests: Likewise.
27254         * modules/unictype/category-Me-tests: Likewise.
27255         * modules/unictype/category-Mn-tests: Likewise.
27256         * modules/unictype/category-N-tests: Likewise.
27257         * modules/unictype/category-Nd-tests: Likewise.
27258         * modules/unictype/category-Nl-tests: Likewise.
27259         * modules/unictype/category-No-tests: Likewise.
27260         * modules/unictype/category-P-tests: Likewise.
27261         * modules/unictype/category-Pc-tests: Likewise.
27262         * modules/unictype/category-Pd-tests: Likewise.
27263         * modules/unictype/category-Pe-tests: Likewise.
27264         * modules/unictype/category-Pf-tests: Likewise.
27265         * modules/unictype/category-Pi-tests: Likewise.
27266         * modules/unictype/category-Po-tests: Likewise.
27267         * modules/unictype/category-Ps-tests: Likewise.
27268         * modules/unictype/category-S-tests: Likewise.
27269         * modules/unictype/category-Sc-tests: Likewise.
27270         * modules/unictype/category-Sk-tests: Likewise.
27271         * modules/unictype/category-Sm-tests: Likewise.
27272         * modules/unictype/category-So-tests: Likewise.
27273         * modules/unictype/category-Z-tests: Likewise.
27274         * modules/unictype/category-Zl-tests: Likewise.
27275         * modules/unictype/category-Zp-tests: Likewise.
27276         * modules/unictype/category-Zs-tests: Likewise.
27277         * modules/unictype/category-and-not-tests: Likewise.
27278         * modules/unictype/category-and-tests: Likewise.
27279         * modules/unictype/category-byname-tests: Likewise.
27280         * modules/unictype/category-name-tests: Likewise.
27281         * modules/unictype/category-none-tests: Likewise.
27282         * modules/unictype/category-of-tests: Likewise.
27283         * modules/unictype/category-or-tests: Likewise.
27284         * modules/unictype/category-test-withtable-tests: Likewise.
27285         * modules/unictype/combining-class-tests: Likewise.
27286         * modules/unictype/ctype-alnum-tests: Likewise.
27287         * modules/unictype/ctype-alpha-tests: Likewise.
27288         * modules/unictype/ctype-blank-tests: Likewise.
27289         * modules/unictype/ctype-cntrl-tests: Likewise.
27290         * modules/unictype/ctype-digit-tests: Likewise.
27291         * modules/unictype/ctype-graph-tests: Likewise.
27292         * modules/unictype/ctype-lower-tests: Likewise.
27293         * modules/unictype/ctype-print-tests: Likewise.
27294         * modules/unictype/ctype-punct-tests: Likewise.
27295         * modules/unictype/ctype-space-tests: Likewise.
27296         * modules/unictype/ctype-upper-tests: Likewise.
27297         * modules/unictype/ctype-xdigit-tests: Likewise.
27298         * modules/unictype/decimal-digit-tests: Likewise.
27299         * modules/unictype/digit-tests: Likewise.
27300         * modules/unictype/mirror-tests: Likewise.
27301         * modules/unictype/numeric-tests: Likewise.
27302         * modules/unictype/property-alphabetic-tests: Likewise.
27303         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27304         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27305         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27306         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27307         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27308         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27309         * modules/unictype/property-bidi-control-tests: Likewise.
27310         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27311         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27312         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27313         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27314         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27315         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27316         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27317         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27318         * modules/unictype/property-bidi-pdf-tests: Likewise.
27319         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27320         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27321         * modules/unictype/property-byname-tests: Likewise.
27322         * modules/unictype/property-combining-tests: Likewise.
27323         * modules/unictype/property-composite-tests: Likewise.
27324         * modules/unictype/property-currency-symbol-tests: Likewise.
27325         * modules/unictype/property-dash-tests: Likewise.
27326         * modules/unictype/property-decimal-digit-tests: Likewise.
27327         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27328         * modules/unictype/property-deprecated-tests: Likewise.
27329         * modules/unictype/property-diacritic-tests: Likewise.
27330         * modules/unictype/property-extender-tests: Likewise.
27331         * modules/unictype/property-format-control-tests: Likewise.
27332         * modules/unictype/property-grapheme-base-tests: Likewise.
27333         * modules/unictype/property-grapheme-extend-tests: Likewise.
27334         * modules/unictype/property-grapheme-link-tests: Likewise.
27335         * modules/unictype/property-hex-digit-tests: Likewise.
27336         * modules/unictype/property-hyphen-tests: Likewise.
27337         * modules/unictype/property-id-continue-tests: Likewise.
27338         * modules/unictype/property-id-start-tests: Likewise.
27339         * modules/unictype/property-ideographic-tests: Likewise.
27340         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27341         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27342         * modules/unictype/property-ignorable-control-tests: Likewise.
27343         * modules/unictype/property-iso-control-tests: Likewise.
27344         * modules/unictype/property-join-control-tests: Likewise.
27345         * modules/unictype/property-left-of-pair-tests: Likewise.
27346         * modules/unictype/property-line-separator-tests: Likewise.
27347         * modules/unictype/property-logical-order-exception-tests: Likewise.
27348         * modules/unictype/property-lowercase-tests: Likewise.
27349         * modules/unictype/property-math-tests: Likewise.
27350         * modules/unictype/property-non-break-tests: Likewise.
27351         * modules/unictype/property-not-a-character-tests: Likewise.
27352         * modules/unictype/property-numeric-tests: Likewise.
27353         * modules/unictype/property-other-alphabetic-tests: Likewise.
27354         * modules/unictype/property-other-default-ignorable-code-point-tests:
27355         Likewise.
27356         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27357         * modules/unictype/property-other-id-continue-tests: Likewise.
27358         * modules/unictype/property-other-id-start-tests: Likewise.
27359         * modules/unictype/property-other-lowercase-tests: Likewise.
27360         * modules/unictype/property-other-math-tests: Likewise.
27361         * modules/unictype/property-other-uppercase-tests: Likewise.
27362         * modules/unictype/property-paired-punctuation-tests: Likewise.
27363         * modules/unictype/property-paragraph-separator-tests: Likewise.
27364         * modules/unictype/property-pattern-syntax-tests: Likewise.
27365         * modules/unictype/property-pattern-white-space-tests: Likewise.
27366         * modules/unictype/property-private-use-tests: Likewise.
27367         * modules/unictype/property-punctuation-tests: Likewise.
27368         * modules/unictype/property-quotation-mark-tests: Likewise.
27369         * modules/unictype/property-radical-tests: Likewise.
27370         * modules/unictype/property-sentence-terminal-tests: Likewise.
27371         * modules/unictype/property-soft-dotted-tests: Likewise.
27372         * modules/unictype/property-space-tests: Likewise.
27373         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27374         * modules/unictype/property-test-tests: Likewise.
27375         * modules/unictype/property-titlecase-tests: Likewise.
27376         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27377         * modules/unictype/property-unified-ideograph-tests: Likewise.
27378         * modules/unictype/property-uppercase-tests: Likewise.
27379         * modules/unictype/property-variation-selector-tests: Likewise.
27380         * modules/unictype/property-white-space-tests: Likewise.
27381         * modules/unictype/property-xid-continue-tests: Likewise.
27382         * modules/unictype/property-xid-start-tests: Likewise.
27383         * modules/unictype/property-zero-width-tests: Likewise.
27384         * modules/unictype/scripts-tests: Likewise.
27385         * modules/unictype/syntax-c-ident-tests: Likewise.
27386         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27387         * modules/unictype/syntax-java-ident-tests: Likewise.
27388         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27389         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27390         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27391         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27392         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27393         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27394         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27395         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27396         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27397         * modules/uniname/uniname-tests: Likewise.
27398         * modules/uninorm/canonical-decomposition-tests: Likewise.
27399         * modules/uninorm/compat-decomposition-tests: Likewise.
27400         * modules/uninorm/composition-tests: Likewise.
27401         * modules/uninorm/decomposing-form-tests: Likewise.
27402         * modules/uninorm/decomposition-tests: Likewise.
27403         * modules/uninorm/filter-tests: Likewise.
27404         * modules/uninorm/nfc-tests: Likewise.
27405         * modules/uninorm/nfd-tests: Likewise.
27406         * modules/uninorm/nfkc-tests: Likewise.
27407         * modules/uninorm/nfkd-tests: Likewise.
27408         * modules/uninorm/u8-normcmp-tests: Likewise.
27409         * modules/uninorm/u8-normcoll-tests: Likewise.
27410         * modules/uninorm/u16-normcmp-tests: Likewise.
27411         * modules/uninorm/u16-normcoll-tests: Likewise.
27412         * modules/uninorm/u32-normcmp-tests: Likewise.
27413         * modules/uninorm/u32-normcoll-tests: Likewise.
27414         * modules/unistdio/u8-asnprintf-tests: Likewise.
27415         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27416         * modules/unistdio/u8-vasprintf-tests: Likewise.
27417         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27418         * modules/unistdio/u8-vsprintf-tests: Likewise.
27419         * modules/unistdio/u16-asnprintf-tests: Likewise.
27420         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27421         * modules/unistdio/u16-vasprintf-tests: Likewise.
27422         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27423         * modules/unistdio/u16-vsprintf-tests: Likewise.
27424         * modules/unistdio/u32-asnprintf-tests: Likewise.
27425         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27426         * modules/unistdio/u32-vasprintf-tests: Likewise.
27427         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27428         * modules/unistdio/u32-vsprintf-tests: Likewise.
27429         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27430         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27431         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27432         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27433         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27434         * modules/unistr/u8-check-tests: Likewise.
27435         * modules/unistr/u8-chr-tests: Likewise.
27436         * modules/unistr/u8-cmp-tests: Likewise.
27437         * modules/unistr/u8-cmp2-tests: Likewise.
27438         * modules/unistr/u8-cpy-alloc-tests: Likewise.
27439         * modules/unistr/u8-cpy-tests: Likewise.
27440         * modules/unistr/u8-mblen-tests: Likewise.
27441         * modules/unistr/u8-mbsnlen-tests: Likewise.
27442         * modules/unistr/u8-mbtouc-tests: Likewise.
27443         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
27444         * modules/unistr/u8-mbtoucr-tests: Likewise.
27445         * modules/unistr/u8-move-tests: Likewise.
27446         * modules/unistr/u8-next-tests: Likewise.
27447         * modules/unistr/u8-prev-tests: Likewise.
27448         * modules/unistr/u8-set-tests: Likewise.
27449         * modules/unistr/u8-stpcpy-tests: Likewise.
27450         * modules/unistr/u8-stpncpy-tests: Likewise.
27451         * modules/unistr/u8-strcat-tests: Likewise.
27452         * modules/unistr/u8-strcmp-tests: Likewise.
27453         * modules/unistr/u8-strcoll-tests: Likewise.
27454         * modules/unistr/u8-strcpy-tests: Likewise.
27455         * modules/unistr/u8-strdup-tests: Likewise.
27456         * modules/unistr/u8-strlen-tests: Likewise.
27457         * modules/unistr/u8-strmblen-tests: Likewise.
27458         * modules/unistr/u8-strmbtouc-tests: Likewise.
27459         * modules/unistr/u8-strncat-tests: Likewise.
27460         * modules/unistr/u8-strncmp-tests: Likewise.
27461         * modules/unistr/u8-strncpy-tests: Likewise.
27462         * modules/unistr/u8-strnlen-tests: Likewise.
27463         * modules/unistr/u8-to-u16-tests: Likewise.
27464         * modules/unistr/u8-to-u32-tests: Likewise.
27465         * modules/unistr/u8-uctomb-tests: Likewise.
27466         * modules/unistr/u16-check-tests: Likewise.
27467         * modules/unistr/u16-chr-tests: Likewise.
27468         * modules/unistr/u16-cmp-tests: Likewise.
27469         * modules/unistr/u16-cmp2-tests: Likewise.
27470         * modules/unistr/u16-cpy-alloc-tests: Likewise.
27471         * modules/unistr/u16-cpy-tests: Likewise.
27472         * modules/unistr/u16-mblen-tests: Likewise.
27473         * modules/unistr/u16-mbsnlen-tests: Likewise.
27474         * modules/unistr/u16-mbtouc-tests: Likewise.
27475         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
27476         * modules/unistr/u16-mbtoucr-tests: Likewise.
27477         * modules/unistr/u16-move-tests: Likewise.
27478         * modules/unistr/u16-next-tests: Likewise.
27479         * modules/unistr/u16-prev-tests: Likewise.
27480         * modules/unistr/u16-set-tests: Likewise.
27481         * modules/unistr/u16-stpcpy-tests: Likewise.
27482         * modules/unistr/u16-stpncpy-tests: Likewise.
27483         * modules/unistr/u16-strcat-tests: Likewise.
27484         * modules/unistr/u16-strcmp-tests: Likewise.
27485         * modules/unistr/u16-strcoll-tests: Likewise.
27486         * modules/unistr/u16-strcpy-tests: Likewise.
27487         * modules/unistr/u16-strdup-tests: Likewise.
27488         * modules/unistr/u16-strlen-tests: Likewise.
27489         * modules/unistr/u16-strmblen-tests: Likewise.
27490         * modules/unistr/u16-strmbtouc-tests: Likewise.
27491         * modules/unistr/u16-strncat-tests: Likewise.
27492         * modules/unistr/u16-strncmp-tests: Likewise.
27493         * modules/unistr/u16-strncpy-tests: Likewise.
27494         * modules/unistr/u16-strnlen-tests: Likewise.
27495         * modules/unistr/u16-to-u32-tests: Likewise.
27496         * modules/unistr/u16-to-u8-tests: Likewise.
27497         * modules/unistr/u16-uctomb-tests: Likewise.
27498         * modules/unistr/u32-check-tests: Likewise.
27499         * modules/unistr/u32-chr-tests: Likewise.
27500         * modules/unistr/u32-cmp-tests: Likewise.
27501         * modules/unistr/u32-cmp2-tests: Likewise.
27502         * modules/unistr/u32-cpy-alloc-tests: Likewise.
27503         * modules/unistr/u32-cpy-tests: Likewise.
27504         * modules/unistr/u32-mblen-tests: Likewise.
27505         * modules/unistr/u32-mbsnlen-tests: Likewise.
27506         * modules/unistr/u32-mbtouc-tests: Likewise.
27507         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
27508         * modules/unistr/u32-mbtoucr-tests: Likewise.
27509         * modules/unistr/u32-move-tests: Likewise.
27510         * modules/unistr/u32-next-tests: Likewise.
27511         * modules/unistr/u32-prev-tests: Likewise.
27512         * modules/unistr/u32-set-tests: Likewise.
27513         * modules/unistr/u32-stpcpy-tests: Likewise.
27514         * modules/unistr/u32-stpncpy-tests: Likewise.
27515         * modules/unistr/u32-strcat-tests: Likewise.
27516         * modules/unistr/u32-strcmp-tests: Likewise.
27517         * modules/unistr/u32-strcoll-tests: Likewise.
27518         * modules/unistr/u32-strcpy-tests: Likewise.
27519         * modules/unistr/u32-strdup-tests: Likewise.
27520         * modules/unistr/u32-strlen-tests: Likewise.
27521         * modules/unistr/u32-strmblen-tests: Likewise.
27522         * modules/unistr/u32-strmbtouc-tests: Likewise.
27523         * modules/unistr/u32-strncat-tests: Likewise.
27524         * modules/unistr/u32-strncmp-tests: Likewise.
27525         * modules/unistr/u32-strncpy-tests: Likewise.
27526         * modules/unistr/u32-strnlen-tests: Likewise.
27527         * modules/unistr/u32-to-u16-tests: Likewise.
27528         * modules/unistr/u32-to-u8-tests: Likewise.
27529         * modules/unistr/u32-uctomb-tests: Likewise.
27530         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
27531         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
27532         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
27533         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
27534         * modules/uniwidth/u8-strwidth-tests: Likewise.
27535         * modules/uniwidth/u8-width-tests: Likewise.
27536         * modules/uniwidth/u16-strwidth-tests: Likewise.
27537         * modules/uniwidth/u16-width-tests: Likewise.
27538         * modules/uniwidth/u32-strwidth-tests: Likewise.
27539         * modules/uniwidth/u32-width-tests: Likewise.
27540         * modules/uniwidth/width-tests: Likewise.
27541
27542 2010-05-18  Richard Jones  <rjones@redhat.com>
27543
27544         doc: users.txt: list hivex
27545         * users.txt: Add hivex.
27546
27547 2010-05-18  Richard Jones  <rjones@redhat.com>
27548
27549         doc: users.txt: list febootstrap
27550         * users.txt: Add febootstrap.
27551
27552 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
27553
27554         bootstrap: fix an error when gnulib is not used as a git submodule
27555         * build-aux/bootstrap (gnulib_path): If its length is zero then
27556         assign "gnulib" to it.
27557         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
27558
27559 2010-05-16  Bruno Haible  <bruno@clisp.org>
27560
27561         Avoid autoconf warnings about AM_ICONV.
27562         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
27563         2.64.
27564
27565 2010-05-16  Bruno Haible  <bruno@clisp.org>
27566
27567         absolute-header: Make the macro usable in more situations.
27568         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
27569         from gl_ABSOLUTE_HEADER.
27570         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
27571
27572 2010-05-16  James Youngman  <jay@gnu.org>
27573
27574         doc: update users.txt
27575         * users.txt: Add CSSC.
27576
27577 2010-05-16  Jim Meyering  <meyering@redhat.com>
27578
27579         init.sh: fix an error in the previous change; add more comments
27580         * tests/init.sh: Compare exit code in loop against 9, not 2.
27581         Patch by Bruno Haible.
27582         Make the two tests more similar by adding an empty "then" clause.
27583         Add comments.
27584
27585         init.sh: avoid unnecessary shell re-exec
27586         * tests/init.sh: Improve the re-exec-required check to first test the
27587         current shell.  If it passes the test, do not search for a shell that
27588         does pass, and do not re-exec.  This test is particularly contorted to
27589         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
27590         of $(...) evokes a syntax error and causes immediate shell exit with
27591         status 2.  Bruno Haible reported that the re-exec made it impossible
27592         to single-step through any init.sh-using script.
27593
27594 2010-05-16  Bruno Haible  <bruno@clisp.org>
27595
27596         Fix collision between gnulib's and libintl's printf replacements.
27597         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
27598         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
27599         (printf): When using GNU C, map the __printf__ function to rpl_printf
27600         via __asm__. When not using GNU C, define rpl_printf instead of
27601         __printf__.
27602         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
27603         commit.
27604         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
27605         commit.
27606         * m4/asm-underscore.m4: New file.
27607         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
27608         * modules/stdio (Files): Add m4/asm-underscore.m4.
27609         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
27610         Reported by Ben Pfaff.
27611
27612 2010-05-16  Bruno Haible  <bruno@clisp.org>
27613
27614         verify: Avoid skipping the test on openSUSE 11.0.
27615         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
27616
27617 2010-05-13  Bruno Haible  <bruno@clisp.org>
27618
27619         Avoid useless warnings from G++.
27620         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
27621         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
27622         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27623
27624 2010-05-11  Jim Meyering  <meyering@redhat.com>
27625
27626         maint.mk: tweak preceding change
27627         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
27628         regexps tighter by anchoring at EOL, and make the new group "shy"
27629         for slightly decreased overhead.
27630
27631 2010-05-11  Eric Blake  <eblake@redhat.com>
27632
27633         maint.mk: gnulib doesn't guarantee NSIG
27634         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
27635
27636 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27637
27638         test-pwrite.c: Remove unused variable declaration.
27639         * tests/test-pwrite.c (main): Remove read_buf declaration.
27640
27641         Remove useless test-pwrite.sh file.
27642         * tests/test-pwrite.sh: Delete file.
27643         * modules/pwrite-tests: Remove references.
27644         Reported by Bruno Haible.
27645
27646 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
27647
27648         init.sh: fix a typo
27649         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
27650
27651 2010-05-10  Jim Meyering  <meyering@redhat.com>
27652
27653         maint.mk: avoid using a temporary file in the always-defined-macros check
27654         * top/maint.mk (.re-defmac): Remove rule.
27655         (gl_trap_): Remove definition.
27656         (sc_prohibit_always-defined_macros): Rewrite not to create and
27657         depend on a temporary file.  Instead, depend on GNU grep's ability
27658         to read a list of regular expressions from stdin when given "-f -".
27659
27660 2010-05-09  Bruno Haible  <bruno@clisp.org>
27661
27662         Update to GNU gettext 0.18, part 1.
27663         * m4/gettext.m4: Update to GNU gettext 0.18.
27664         * m4/intl.m4: Likewise.
27665         * m4/po.m4: Likewise.
27666         * modules/gettext (Files): Add m4/fcntl-o.m4.
27667         (configure.ac): Require gettext infrastructure from version 0.18.
27668
27669 2010-05-09  Jim Meyering  <meyering@redhat.com>
27670
27671         init.sh: enable MALLOC_PERTURB_
27672         * tests/init.sh: Enable glibc's malloc-perturbing option.
27673
27674         maint.mk: improve sc_cross_check_PATH_usage_in_tests
27675         With my recent change in init.sh from the two-line form:
27676             -#   : ${srcdir=.}
27677             -#   . "$srcdir/init.sh"; path_prepend_ .
27678             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
27679         I noticed that using the one-line form would cause this test
27680         to fail with a false-positive, or to stop working altogether,
27681         depending on whether help-version changed or all the tests did.
27682         * top/maint.mk (_hv_regex): Remove this definition.
27683         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
27684         (_hv_regex_strong): Use a stronger regex to check for conformance.
27685         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
27686         Give a separate diagnostic for lack of conforming use.
27687
27688         maint.mk: prohibit definition of symbols defined by gnulib
27689         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
27690         definition of symbols defined by gnulib.
27691
27692 2010-05-09  Bruno Haible  <bruno@clisp.org>
27693
27694         acl: Avoid test failure on Cygwin-hosted mingw.
27695         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
27696
27697 2010-05-09  Bruno Haible  <bruno@clisp.org>
27698
27699         error: Use system's fcntl function.
27700         * lib/error.c (fcntl): Undefine.
27701
27702 2010-05-09  Jim Meyering  <meyering@redhat.com>
27703
27704         verify: adjust formatting to be more consistent
27705         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
27706         argument-list '('s, and after one comma.
27707
27708 2010-05-09  Bruno Haible  <bruno@clisp.org>
27709
27710         error: More reliable output on mingw.
27711         * lib/error.c: Include <windows.h>.
27712         (is_open): New function.
27713         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
27714         defined.
27715
27716 2010-05-09  Bruno Haible  <bruno@clisp.org>
27717
27718         vasnprintf: Fix syntax errors in libintl build on mingw.
27719         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
27720         pad_ourselves and prec_ourselves after use.
27721
27722 2010-05-08  Bruno Haible  <bruno@clisp.org>
27723
27724         * lib/config.charset: Update comments for Cygwin 1.7.
27725         * lib/localcharset.c: Likewise.
27726
27727 2010-05-07  Jim Meyering  <meyering@redhat.com>
27728
27729         init.sh: improve comments
27730         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
27731         . "${srcdir=.}/init.sh"; path_prepend_ .
27732         Add a note about path_prepend_ and the alternative of using
27733         TESTS_ENVIRONMENT.
27734
27735 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
27736
27737         exclude: Unescape hashed patterns in wildcard mode.
27738         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
27739         to the hash list.
27740         * tests/test-exclude8.sh: New test case.
27741         * modules/exclude-tests: Add new test.
27742
27743 2010-05-05  Eric Blake  <eblake@redhat.com>
27744
27745         verify: automate tests
27746         * modules/verify-tests: New module.
27747         * tests/test-verify.sh: New file.
27748         * tests/test-verify.c: Guard each negative test with a unique id.
27749         Also avoid warning about unused left hand of comma expressions.
27750
27751 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
27752
27753         Further improvements to verify.h, suggested by Eric Blake.
27754         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
27755         the GL_* versions, to avoid collision with OpenGL.
27756         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
27757         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
27758         than testing merely whether it's defined.
27759
27760         Modify verify.h to pacify gcc -Wredundant_decls.
27761         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
27762         These use the prefix "GL_" since they're likely to be useful elsewhere.
27763         We may need to break them out into a different .h file.
27764         (__COUNTER__): Define to 0 if the compiler doesn't support it.
27765         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
27766         of verify_function__.
27767
27768 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27769
27770         Tests for module pwrite.
27771         * modules/pwrite-tests: New file.
27772         * tests/test-pwrite.sh: New file.
27773         * tests/test-pwrite.c: New file.
27774
27775         New module pwrite.
27776         * lib/unistd.in.h (pwrite): New declaration.
27777         * lib/pwrite.c: New file, from glibc with modifications.
27778         * m4/pwrite.m4: New file.
27779         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
27780         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
27781         REPLACE_PWRITE.
27782         * modules/pwrite: New file.
27783         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
27784         REPLACE_PWRITE.
27785         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
27786         * doc/posix-functions/pwrite.texi: Mention the new module.
27787
27788 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
27789
27790         pread: Update documentation.
27791         * doc/posix-functions/pread.texi: Mention the 'pread' module.
27792
27793 2010-05-04  Eric Blake  <eblake@redhat.com>
27794
27795         docs: update cygwin progress
27796         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
27797         this bug.
27798         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
27799         Added in cygwin 1.7.2.
27800         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
27801         Likewise.
27802         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
27803         Likewise.
27804         * doc/glibc-functions/dup3.texi (dup3): Likewise.
27805         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
27806         * doc/glibc-functions/accept4.texi (accept4): Likewise.
27807         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
27808         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
27809         Mention nproc module.
27810         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
27811         bug in cygwin 1.7.5 addition.
27812         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
27813         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
27814         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
27815         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
27816         1.7.5.
27817         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
27818         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
27819         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
27820         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
27821         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
27822         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
27823         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
27824         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
27825         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
27826         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
27827         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
27828         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
27829         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
27830         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
27831         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
27832         Likewise.
27833         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
27834         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
27835         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
27836         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
27837         Likewise.
27838         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
27839         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
27840         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
27841         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
27842         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
27843         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
27844         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
27845         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
27846         Likewise.
27847         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
27848         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
27849         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
27850         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
27851         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
27852         Likewise.
27853         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
27854         Likewise.
27855         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
27856         Likewise.
27857         * doc/glibc-functions/xdrrec_endofrecord.texi
27858         (xdrrec_endofrecord): Likewise.
27859         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
27860         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
27861         Likewise.
27862         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
27863         Likewise.
27864
27865 2010-05-04  Jim Meyering  <meyering@redhat.com>
27866
27867         gendocs.sh: make its "-s FILE" option more useful
27868         * build-aux/gendocs.sh: When honoring the -s FILE option, update
27869         $PACKAGE to reflect the probably-different basename of "FILE".
27870
27871 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
27872
27873         bootstrap: don't ignore download_po_files failure
27874         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
27875         failure.
27876
27877 2010-05-03  Jim Meyering  <meyering@redhat.com>
27878
27879         maint.mk: allow to pass options to gendocs.sh
27880         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
27881         (gendocs_options_): New overridable variable.
27882
27883         gnu-web-doc-update: don't ignore configure or build failure
27884         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
27885
27886         announce-gen: backslash-escape '@'s in --help output
27887         * build-aux/announce-gen: Fix syntax errors.
27888
27889         maint.mk, announce-gen: allow project-specific announcement mail headers
27890         * top/maint.mk (translation_project_): Define default.
27891         (announcement_Cc_, announcement_mail_headers_): Likewise.
27892         (announcement): Invoke announce-gen with new --mail-headers option.
27893         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
27894
27895         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
27896         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
27897         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
27898         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
27899         line in the "err2" output file when running "make check" in verbose
27900         mode (i.e., with set -x enabled).
27901
27902 2010-05-03  Bruno Haible  <bruno@clisp.org>
27903
27904         wctob: Fix for weird platforms.
27905         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
27906         argument value.
27907
27908 2010-05-03  Jim Meyering  <meyering@redhat.com>
27909
27910         maint.mk: prohibit unwarranted use of <strings.h>
27911         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
27912         strings.h in a file that does not also use strcasecmp, strncasecmp,
27913         ffs or ffsll.
27914
27915         maint.mk: remove obsolete comments
27916         * top/maint.mk: Remove stale, commented-out rules.
27917
27918 2010-05-02  Bruno Haible  <bruno@clisp.org>
27919
27920         wcwidth: Declare also when it's aliased.
27921         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
27922         macro.
27923
27924 2010-05-02  Bruno Haible  <bruno@clisp.org>
27925
27926         Fix regression from 2010-04-25.
27927         * gnulib-tool (func_modules_transitive_closure): Check the status of
27928         all modules, not only of the tests that are of the form foo-tests where
27929         foo is a module.
27930
27931 2010-05-02  Bruno Haible  <bruno@clisp.org>
27932
27933         wctob: Work around nasty Cygwin 1.7.2 bug.
27934         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
27935         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
27936
27937 2010-05-01  Bruno Haible  <bruno@clisp.org>
27938
27939         fpurge: Sharper test.
27940         * tests/test-fpurge.c (main): Add one more ftell check.
27941         * modules/fpurge-tests (Depends-on): Add ftell.
27942         Suggested by Eric Blake.
27943
27944 2010-05-01  Bruno Haible  <bruno@clisp.org>
27945
27946         ftello: Another test.
27947         * tests/test-ftello3.c: New file.
27948         * modules/ftello-tests (Files): Add it.
27949         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27950         MOSTLYCLEANFILES.
27951
27952         ftell: Another test.
27953         * tests/test-ftell3.c: New file.
27954         * modules/ftell-tests (Files): Add it.
27955         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
27956         MOSTLYCLEANFILES.
27957
27958 2010-05-01  Bruno Haible  <bruno@clisp.org>
27959
27960         ftell, ftello: Work around Solaris bug.
27961         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
27962         * lib/ftello.c: Include stdio-impl.h.
27963         (ftello): On Solaris, when _IOWRT is set, compute the result without
27964         looking at _IOREAD.
27965         * modules/ftello (Files): Add lib/stdio-impl.h.
27966         * doc/posix-functions/ftell.texi: Mention Solaris bug.
27967         * doc/posix-functions/ftello.texi: Likewise.
27968         Reported by Eric Blake.
27969
27970 2010-05-01  Bruno Haible  <bruno@clisp.org>
27971
27972         freading: Adapt to special meaning of _IOREAD flag on Solaris.
27973         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
27974         the _IOWRT flag is also set.
27975
27976 2010-05-01  Bruno Haible  <bruno@clisp.org>
27977
27978         Fix doc about a HP-UX stdio bug.
27979         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
27980         * doc/posix-functions/ftello.texi: Likewise.
27981
27982 2010-05-01  Bruno Haible  <bruno@clisp.org>
27983
27984         lseek test: Fix failure on Solaris.
27985         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
27986         output.
27987
27988 2010-04-30  Jim Meyering  <meyering@redhat.com>
27989
27990         bootstrap: don't ignore failure to generate po*/Makevars
27991         * build-aux/bootstrap (with_gettext): Don't ignore failure
27992         to create po/Makevars or runtime-po/Makevars.
27993
27994 2010-04-29  Eric Blake  <eblake@redhat.com>
27995
27996         headers: relax license to LGPLv2+
27997         * modules/fcntl-h (License): Relax license.
27998         * modules/getopt-posix (License): Likewise.
27999         * modules/locale (License): Likewise.
28000         * modules/math (License): Likewise.
28001         * modules/pty (License): Likewise.
28002         * modules/sched (License): Likewise.
28003         * modules/search (License): Likewise.
28004         * modules/spawn (License): Likewise.
28005         * modules/stdarg (License): Likewise.
28006         * modules/sysexits (License): Likewise.
28007
28008 2010-04-29  Jim Meyering  <meyering@redhat.com>
28009
28010         inttypes: relax license to LGPLv2+
28011         * modules/inttypes (License): Relax license.
28012
28013 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28014
28015         * top/maint.mk (indent): Run twice to produce idempotent results.
28016
28017 2010-04-28  Bruno Haible  <bruno@clisp.org>
28018
28019         getdate: Generate getdate.c in the source directory.
28020         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28021         MOSTLYCLEANFILES.
28022         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28023
28024 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28025
28026         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28027         is not declared as a const *; avoid warnings in that case.
28028
28029 2010-04-28  Eric Blake  <eblake@redhat.com>
28030
28031         canonicalize-lgpl: avoid compiler warning
28032         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28033         declaration' / 'extraneous semicolon' warning with some compilers.
28034         Reported by Andreas Gruenbacher.
28035
28036 2010-04-28  Jim Meyering  <meyering@redhat.com>
28037
28038         init.sh: ensure a more reliable exit status when exiting via trap
28039         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28040         Inspired by patches from Dmitry V. Levin.
28041         Also trap on signal 3 (SIGQUIT).
28042
28043 2010-04-27  Bruno Haible  <bruno@clisp.org>
28044
28045         Update doc about utimes().
28046         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28047         'utimens' module.
28048         Reported by Andreas Gruenbacher <agruen@suse.de>.
28049
28050 2010-04-27  Eric Blake  <eblake@redhat.com>
28051
28052         full-read, full-write: relax license
28053         * modules/full-read (License): Drop to LGPLv2+.
28054         * modules/full-write (License): Likewise.
28055         * modules/safe-read (License): Likewise.
28056         * modules/safe-write (License): Likewise.
28057
28058         pthread: mention library for linking
28059         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28060
28061 2010-04-27  Jim Meyering  <meyering@redhat.com>
28062
28063         maint.mk: fix a bug introduced in last change
28064         * top/maint.mk (gl_assured_headers_): Now that all names are on
28065         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28066         is not anchored to end of word, it should be adequate.
28067
28068         maint.mk: avoid side-effect in latest syntax-check
28069         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28070         to run commands via $(shell...), and hence to incur cost only when
28071         the new rule is actually run.
28072
28073         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28074         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28075         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28076         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28077         (gl_assured_headers_, az_, AZ_): Define.
28078         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28079
28080 2010-04-26  Jim Meyering  <jim@meyering.net>
28081             Bruno Haible  <bruno@clisp.org>
28082
28083         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28084         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28085         Prompted by an exchange with Gilles Espinasse.
28086
28087 2010-04-26  Jim Meyering  <meyering@redhat.com>
28088
28089         git-version-gen: aesthetic tweak
28090         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28091         so that the command remains on a single line.
28092
28093 2010-04-26  Eric Blake  <eblake@redhat.com>
28094
28095         git-version-gen: allow use on EBCDIC hosts
28096         * build-aux/git-version-gen (dirty): Use literal rather than tying
28097         ourselves to ascii.
28098         Reported by Steve Goetze.
28099
28100 2010-04-25  Bruno Haible  <bruno@clisp.org>
28101
28102         netdb: Add support for GNULIB_POSIXCHECK.
28103         * lib/netdb.in.h: Include warn-on-use.h.
28104         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28105         functions are used when GNULIB_POSIXCHECK is defined and the
28106         getaddrinfo module is not in use.
28107         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28108         freeaddrinfo, gai_strerror, getnameinfo are declared.
28109         * modules/netdb (Depends-on): Add warn-on-use.
28110         (Makefile.am): Include warn-on-use.h in netdb.h.
28111
28112 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28113
28114         build: avoid "make check" failure without .git/ directory
28115         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28116         there is no .git/ directory.
28117
28118 2010-04-25  Bruno Haible  <bruno@clisp.org>
28119
28120         ptsname: Fix misuse of ttyname_r.
28121         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28122         of errno.
28123
28124 2010-04-25  Bruno Haible  <bruno@clisp.org>
28125
28126         ttyname_r: Make it work on Solaris 10.
28127         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28128         if the system function has the POSIX declaration. Test whether the
28129         function fails if the buffer is less than 128 bytes large.
28130         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28131         system's ttyname_r function. Provide a reasonably large buffer.
28132         * modules/ttyname_r (Depends-on): Add extensions.
28133         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28134
28135 2010-04-25  Bruno Haible  <bruno@clisp.org>
28136
28137         Use the 'extensions' module for some more functions on Solaris.
28138         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28139         module.
28140         * doc/posix-functions/ctime_r.texi: Likewise.
28141         * doc/posix-functions/getgrgid_r.texi: Likewise.
28142         * doc/posix-functions/getgrnam_r.texi: Likewise.
28143         * doc/posix-functions/getpwnam_r.texi: Likewise.
28144         * doc/posix-functions/getpwuid_r.texi: Likewise.
28145         * doc/posix-functions/readdir_r.texi: Likewise.
28146         * doc/posix-functions/sigwait.texi: Likewise.
28147         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28148         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28149
28150 2010-04-25  Bruno Haible  <bruno@clisp.org>
28151
28152         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28153         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28154         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28155         * lib/ttyname_r.c: Include <limits.h>.
28156         (ttyname_r): Define using the system's ttyname_r function, if it exists
28157         and not on Solaris.
28158         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28159         set.
28160         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28161         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28162         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28163         Reported by Simon Josefsson.
28164
28165 2010-04-25  Bruno Haible  <bruno@clisp.org>
28166
28167         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28168         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28169         * doc/posix-functions/ctime_r.texi: Likewise.
28170         * doc/posix-functions/getgrgid_r.texi: Likewise.
28171         * doc/posix-functions/getgrnam_r.texi: Likewise.
28172         * doc/posix-functions/getlogin_r.texi: Likewise.
28173         * doc/posix-functions/getpwnam_r.texi: Likewise.
28174         * doc/posix-functions/getpwuid_r.texi: Likewise.
28175         * doc/posix-functions/readdir_r.texi: Likewise.
28176         * doc/posix-functions/sigwait.texi: Likewise.
28177         * doc/posix-functions/ttyname_r.texi: Likewise.
28178         Reported by Simon Josefsson.
28179
28180 2010-04-25  Bruno Haible  <bruno@clisp.org>
28181
28182         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28183         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28184         also to --create-testdir.
28185         (func_acceptable): Don't consider the status of *-tests modules here.
28186         (func_modules_transitive_closure): Consider it here, before including a
28187         test module.
28188         (func_import, func_create_testdir): Set inc_all_direct_tests,
28189         inc_all_indirect_tests.
28190         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28191         --create-testdir and --create-megatestdir.
28192
28193 2010-04-25  Bruno Haible  <bruno@clisp.org>
28194
28195         gnulib-tool: Add --without-*-tests options.
28196         * gnulib-tool (func_usage): Document the --without-*-tests options.
28197         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28198         excl_unportable_tests): New variables.
28199         Fail if they are specified with --import or --update.
28200         (func_acceptable): Respect the excl_*_tests variables.
28201         (func_import): Set the excl_*_tests variables to empty.
28202
28203 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28204             Bruno Haible  <bruno@clisp.org>
28205
28206         Work around a MacOS X 10.4 bug with openpty.
28207         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28208         * tests/test-openpty.c (main): Close the master side explicitly.
28209
28210 2010-04-25  Bruno Haible  <bruno@clisp.org>
28211
28212         strnlen: Fix a C++ test error on MacOS X and Solaris.
28213         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28214         the function is not declared.
28215         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28216         Simon Josefsson.
28217
28218 2010-04-24  Bruno Haible  <bruno@clisp.org>
28219
28220         Avoid a gcc warning.
28221         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28222         of correct type for %08lx directive.
28223         Reported by Eric Blake.
28224
28225 2010-04-24  Bruno Haible  <bruno@clisp.org>
28226
28227         vasnprintf: Correct errno value in case of out-of-memory.
28228         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28229         or sprintf. Use the errno value from SNPRINTF or sprintf.
28230         Reported by Ian Beckwith <ianb@erislabs.net>.
28231
28232 2010-04-24  Bruno Haible  <bruno@clisp.org>
28233
28234         ansi-c++-opt: Find correct compiler when cross-compiling.
28235         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28236         AC_CHECK_PROGS.
28237         Reported by Simon Josefsson.
28238
28239 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28240
28241         vc-list-files: Add support for subversion
28242         * build-aux/vc-list-files: Use "svn list" to generate the list of
28243         files controlled by subversion.
28244
28245 2010-04-23  Jim Meyering  <meyering@redhat.com>
28246
28247         vc-list-files tests: convert to use init.sh
28248         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28249         path_prepend_.
28250         Use Exit, not exit.
28251         Use skip_ rather than open coding it.
28252         Remove trap set-up and compare definitions.
28253         * tests/test-vc-list-files-git.sh: Likewise.
28254         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28255
28256 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28257
28258         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28259         backup files.
28260
28261 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28262
28263         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28264
28265 2010-04-20  Eric Blake  <eblake@redhat.com>
28266
28267         tests: be robust to ignored SIGPIPE
28268         * tests/test-select-in.sh: Consume all output.
28269         * tests/test-lseek.sh: Check correct exit status, while avoiding
28270         EPIPE.
28271
28272 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28273             Bruno Haible  <bruno@clisp.org>
28274
28275         visibility: Don't use -fvisibility if it leads to a warning.
28276         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28277         yes, don't pretend that visibility works if it leads to a warning.
28278         Reported by Mike Gran <spk121@yahoo.com>.
28279
28280 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28281
28282         * build-aux/bootstrap: Use "git -h" for testing for supported options
28283         instead of "git --help".  The short-form option only shows a summary,
28284         and doesn't layout the full man page.  Grep for the full option name
28285         in the summary, too.
28286
28287 2010-04-19  Bruno Haible  <bruno@clisp.org>
28288
28289         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28290         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28291         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28292         mention of RELOCATABLE_STRIP.
28293         Reported by Sylvain Beucler <beuc@beuc.net>.
28294
28295 2010-04-19  Bruno Haible  <bruno@clisp.org>
28296
28297         * lib/diffseq.h: Fix typo in comment.
28298         Reported by Eric Blake.
28299
28300 2010-04-19  Bruno Haible  <bruno@clisp.org>
28301
28302         ioctl: Move autoconf macro to a .m4 file.
28303         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28304         * modules/ioctl (Files): Add it.
28305         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28306         Reported by Ian Beckwith <ianb@erislabs.net>.
28307
28308 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28309             Bruno Haible  <bruno@clisp.org>
28310
28311         diffseq: Accommodate use-case with abstract arrays.
28312         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28313         is not defined.
28314         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28315         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28316
28317 2010-04-18  Bruno Haible  <bruno@clisp.org>
28318
28319         * doc/posix-headers/stdbool.texi: More precise wording.
28320
28321 2010-04-17  Jim Meyering  <meyering@redhat.com>
28322
28323         maint.mk: use gnu-style indentation in an embedded perl script
28324         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28325         Rename variable: s/two/last_two_bytes/
28326
28327 2010-04-16  Eric Blake  <eblake@redhat.com>
28328
28329         test-stdbool: skip test that fails with Solaris CC
28330         * tests/test-stdbool.c (f): Skip test that causes compilation
28331         error under buggy C++ compiler.
28332         * lib/stdbool.in.h: Document the limitation.
28333         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28334
28335         setenv: allow compilation with C++
28336         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28337         register keyword.
28338
28339         stdint: allow test to pass with C++
28340         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28341
28342         getopt: allow compilation with C++
28343         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28344         struct.
28345         * lib/getopt.c (_getopt_internal_r): Use correct type.
28346         Reported by Dagobert Michelson, via Joel E. Denny.
28347
28348 2010-04-16  Bruno Haible  <bruno@clisp.org>
28349
28350         Override netdb.h always.
28351         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28352         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28353         Reported by Ludovic Courtès <ludo@gnu.org>.
28354
28355 2010-04-15  Bruno Haible  <bruno@clisp.org>
28356
28357         openpty: Fix mistake from 2010-03-21.
28358         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28359         Reported by Simon Josefsson.
28360
28361 2010-04-15  Eric Blake  <eblake@redhat.com>
28362
28363         test-forkpty: fix expected signature
28364         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28365         Reported by Simon Josefsson.
28366
28367 2010-04-15  Jim Meyering  <meyering@redhat.com>
28368
28369         maint.mk: texinfo_suffix_re_: correct the default regexp
28370         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28371
28372         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28373         make it configurable via texinfo_suffix_re_.
28374
28375 2010-04-14  Eric Blake  <eblake@redhat.com>
28376
28377         strtok_r: relax license to LGPLv2+
28378         * modules/strtok_r (License): Relax license.
28379         Reported by Matthias Bolte.
28380
28381 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28382
28383         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28384         version 1.4.4 by default instead of requiring the libgcrypt
28385         version used during build.  This makes it possible to use the
28386         application with older but still binary compatible libgcrypt
28387         versions.
28388
28389 2010-04-13  Eric Blake  <eblake@redhat.com>
28390
28391         getopt-gnu: match recent glibc fixes and posix ruling
28392         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28393         '+' handling, when requesting extensions.
28394         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28395         'W;' handling.
28396         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28397         * doc/posix-functions/getopt.texi (getopt): Document this.
28398         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28399         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28400         Likewise.
28401
28402         getopt: merge bug fixes from glibc
28403         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28404         diagnostics.  Honor '+:' correctly.  Reject ';'.
28405
28406         getopt-posix: detect MacOS bug
28407         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28408         optind when missing a required argument.
28409         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28410         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28411         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28412         Likewise.
28413
28414         getopt-posix: avoid spurious failure on Solaris
28415         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28416         an indicator that setting optind=1 is sufficient for reset.
28417
28418         getopt-posix: avoid spurious failure on FreeBSD
28419         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28420         in POSIX mode, since the m4 test uses it.
28421
28422         gnulib-tool: silence warning on BSD sh
28423         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28424
28425 2010-04-13  Jim Meyering  <meyering@redhat.com>
28426
28427         doc: users.txt: GNU patch now uses gnulib
28428         * users.txt: Add patch.
28429
28430 2010-04-12  Jim Meyering  <meyering@redhat.com>
28431
28432         maint.mk: generate more concise timing data for syntax-check rules
28433         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28434         " done" from each line that reports a syntax-check test duration.
28435
28436 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
28437
28438         git-version-gen: use "git update-index..." rather than "git status"
28439         * build-aux/git-version-gen: Use git update-index --refresh, not
28440         "git status".  With some versions of git, "git status" would fail
28441         to update the index and result in an unwarranted "-dirty" suffix.
28442
28443 2010-04-11  Jim Meyering  <meyering@redhat.com>
28444
28445         openat: correct formatting (no semantic change)
28446         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
28447         Suggested by Bruno Haible.
28448
28449 2010-04-11  Bruno Haible  <bruno@clisp.org>
28450
28451         Stricter declaration checking in testdirs.
28452         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28453         If for_tests is true, augment AM_CPPFLAGS to define
28454         GNULIB_STRICT_CHECKING.
28455         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
28456         GNULIB_STRICT_CHECKING is defined, verify that the function is
28457         declared.
28458
28459 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
28460             Bruno Haible  <bruno@clisp.org>
28461
28462         libunistring: Improve configure output.
28463         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
28464         Don't say "consider installing GNU libunistring" when checking again
28465         with libiconv.
28466
28467 2010-04-11  Bruno Haible  <bruno@clisp.org>
28468
28469         libunistring: Correct value of $LTLIBUNISTRING.
28470         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
28471         correct the value of $LTLIBUNISTRING.
28472
28473 2010-04-11  Bruno Haible  <bruno@clisp.org>
28474
28475         havelib: Add static libraries to LIBS in the right order.
28476         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
28477         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
28478
28479 2010-04-11  Bruno Haible  <bruno@clisp.org>
28480
28481         libunistring: Detect libunistring also when it depends on libiconv.
28482         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
28483         the second AC_LIB_HAVE_LINKFLAGS invocation.
28484
28485 2010-04-11  James Youngman  <jay@gnu.org>
28486
28487         close-stream: declare local scalars to be "const"
28488         * lib/close-stream.c (close_stream): Make boolean variables const
28489         to document the fact that we set but do not change them.
28490
28491 2010-04-11  Bruno Haible  <bruno@clisp.org>
28492
28493         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
28494
28495 2010-04-11  Jim Meyering  <meyering@redhat.com>
28496
28497         maint.mk: don't include dist-check.mk
28498         * top/maint.mk: Remove bogus include directive.
28499
28500         maint.mk: improve empty-line-at-EOF check
28501         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
28502         solution, rather than tail+Perl-based one.  The latter would read
28503         a few kilobytes from the end of each file, and did not handle empty
28504         files properly.
28505
28506         maint.mk: print the elapsed time for each syntax-check rule
28507         * top/maint.mk (sc_m_rules_): Save start time in a file.
28508         (sc_z_rules_): New rules: remove temp file and print elapsed time.
28509         (local-check): Interpose the .z rules
28510
28511 2010-04-11  Jim Meyering  <meyering@redhat.com>
28512
28513         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
28514         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
28515         empty file with one that ends in an empty line.
28516
28517 2010-04-10  Bruno Haible  <bruno@clisp.org>
28518
28519         mkdir: Make it work on mingw64.
28520         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
28521         * lib/mkdir.c: Update comment.
28522         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
28523
28524 2010-04-10  Bruno Haible  <bruno@clisp.org>
28525
28526         Don't override improved macro from newer autoconf.
28527         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
28528         autoconf >= 2.62.
28529         Reported by Joel E. Denny <jdenny@clemson.edu>.
28530
28531 2010-04-10  Jim Meyering  <meyering@redhat.com>
28532
28533         maint.mk: new syntax-check rule: prohibit empty lines at end of file
28534         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
28535
28536         maint.mk: correct a diagnostic
28537         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
28538         in diagnostic; now use $prohibit.
28539
28540 2010-04-10  Bruno Haible  <address@hidden>
28541
28542         fchownat: Fix a C++ test error on Solaris 8.
28543         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
28544         the function does not exist.
28545
28546 2010-04-10  Bruno Haible  <bruno@clisp.org>
28547
28548         vasnprintf: Add more tests.
28549         * tests/test-vasnprintf-posix.c: Include <errno.h>.
28550         (test_function): Test converting an invalid wide string.
28551
28552         vasnprintf: Correct handling of unconvertible wide string arguments.
28553         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
28554         VASNPRINTF.
28555         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
28556         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
28557         smaller than the expected maximum need for the directive. Set errno to
28558         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
28559         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
28560         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
28561         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
28562         * modules/vasnprintf (Files): Add m4/printf.m4.
28563         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28564
28565 2010-04-10  Bruno Haible  <bruno@clisp.org>
28566
28567         vasnprintf: Fix crash in %ls directive.
28568         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
28569         string is passed as argument to %ls, with no precision and no width.
28570         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28571
28572 2010-04-10  Bruno Haible  <bruno@clisp.org>
28573
28574         vasnprintf: Fix multiple test failures on mingw.
28575         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
28576         _snprintf, or snwprintf, not _snwprintf.
28577
28578 2010-04-10  Bruno Haible  <bruno@clisp.org>
28579
28580         write: Fix a C++ test error on mingw.
28581         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
28582
28583 2010-04-10  Bruno Haible  <bruno@clisp.org>
28584
28585         vasnprintf test: Reduce code duplication.
28586         * tests/test-vasnprintf.c (test_function): New function, extracted from
28587         test_vasnprintf.
28588         (test_vasnprintf, test_asnprintf): Invoke it.
28589
28590 2010-04-10  Bruno Haible  <bruno@clisp.org>
28591
28592         strnlen: Fix warning in C++ mode on MacOS X.
28593         * lib/string.in.h (strnlen): Use the modern idiom.
28594         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
28595         defining strnlen as a macro already in <config.h>.
28596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28597         REPLACE_STRNLEN.
28598         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
28599         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28600
28601 2010-04-08  James Youngman  <jay@gnu.org>
28602
28603         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
28604         the example.
28605
28606 2010-04-09  Jim Meyering  <meyering@redhat.com>
28607
28608         maint.mk: print better diagnostic when there is no $(_hv_file)
28609         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
28610         announce that when $(_hv_file) (aka help-version) does not exist.
28611
28612         init.sh: run tr in the "C" locale to avoid multibyte interpretation
28613         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
28614         not try to interpret its random input bytes.  Jarno Rajahalme reported
28615         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
28616         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
28617         (mktempd_): Likewise, just in case.
28618
28619         ftruncate: add two years to projected module removal date: 2012
28620         * m4/ftruncate.m4: Adjust comments.
28621
28622         ftruncate: mark module as obsolete; even MinGW provides it, now
28623         * modules/ftruncate (Status): Obsolete.
28624         (Notice): Say that.
28625         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
28626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
28627
28628 2010-04-08  Bruno Haible  <bruno@clisp.org>
28629
28630         Fix side effects from tests-related modules.
28631         * modules/dprintf-posix (Comment): New section.
28632         * modules/fprintf-posix (Comment): Likewise.
28633         * modules/obstack-printf-posix (Comment): Likewise.
28634         * modules/printf-posix (Comment): Likewise.
28635         * modules/snprintf-posix (Comment): Likewise.
28636         * modules/sprintf-posix (Comment): Likewise.
28637         * modules/vasnprintf-posix (Comment): Likewise.
28638         * modules/vasprintf-posix (Comment): Likewise.
28639         * modules/vdprintf-posix (Comment): Likewise.
28640         * modules/vfprintf-posix (Comment): Likewise.
28641         * modules/vprintf-posix (Comment): Likewise.
28642         * modules/vsnprintf-posix (Comment): Likewise.
28643         * modules/vsprintf-posix (Comment): Likewise.
28644         * modules/xprintf-posix (Comment): Likewise.
28645         * modules/xvasprintf-posix (Comment): Likewise.
28646         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
28647         * modules/floorf-tests (Depends-on): Likewise.
28648         * modules/round-tests (Depends-on): Likewise.
28649         * modules/roundf-tests (Depends-on): Likewise.
28650         * modules/trunc-tests (Depends-on): Likewise.
28651         * modules/truncf-tests (Depends-on): Likewise.
28652         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
28653         'fprintf-posix' module is not present.
28654         * tests/test-floorf2.c (check): Likewise.
28655         * tests/test-trunc2.c (check): Likewise.
28656         * tests/test-truncf2.c (check): Likewise.
28657         * tests/test-round2.c (equal): Likewise.
28658         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28659
28660 2010-04-07  Karl Berry  <karl@gnu.org>
28661
28662         * config/srclist.txt,
28663         * config/srclistvars.sh,
28664         * config/srclist-update: doc fixes.
28665
28666 2010-04-07  Jim Meyering  <meyering@redhat.com>
28667
28668         maint.mk: add a PATH crosschecking syntax-check rule
28669         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
28670         Useful if you use a test like the one in help-version (coreutils,
28671         diffutils, grep, gzip) that ensures $(VERSION) matches what is
28672         printed by prog --version.
28673
28674 2010-04-06  Bruno Haible  <bruno@clisp.org>
28675
28676         Fix link error on mingw.
28677         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
28678         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
28679
28680 2010-04-06  Bruno Haible  <bruno@clisp.org>
28681
28682         Assume rmdir exists.
28683         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
28684
28685 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
28686
28687         doc: update users.txt
28688         * users.txt: Add gcal.
28689
28690 2010-04-06  Jim Meyering  <meyering@redhat.com>
28691
28692         init.sh: simply unset TMPDIR rather than risking env -i
28693         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
28694         although it probably works fine on all Unix-based systems, some
28695         systems (Cygwin?) cannot tolerate a totally cleared environment.
28696         Suggestion from Eric Blake.
28697
28698 2010-04-06  Jim Meyering  <meyering@redhat.com>
28699
28700         init.sh: portability fix: use env's POSIX-specified -i option not -u
28701         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
28702         than unportable env -u.  Solaris 5.11's env lacks support for -u.
28703
28704 2010-04-05  Bruno Haible  <bruno@clisp.org>
28705
28706         btowc: Work around Cygwin 1.7.2 bug.
28707         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
28708         does not map NUL to 0.
28709         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
28710
28711 2010-04-05  Bruno Haible  <bruno@clisp.org>
28712
28713         Make the multithread modules work on Cygwin 1.7.2.
28714         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
28715         imported symbols can be declared weak, so that it returns "no" on
28716         Cygwin 1.7.2.
28717
28718 2010-04-05  Bruno Haible  <bruno@clisp.org>
28719
28720         Use the module 'strncat'.
28721         * modules/unistr/u8-strncat (Depends-on): Add strncat.
28722
28723         Tests for module 'strncat'.
28724         * modules/strncat-tests: New file.
28725         * tests/test-strncat.c: New file.
28726
28727         New module 'strncat'.
28728         * lib/string.in.h (strncat): New declaration.
28729         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
28730         * m4/strncat.m4: New file, based on m4/memchr.m4.
28731         * modules/strncat: New file.
28732         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
28733         is declared.
28734         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
28735         REPLACE_STRNCAT.
28736         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
28737         REPLACE_STRNCAT.
28738         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
28739         module.
28740         * tests/test-string-c++.cc: Check signature of strncat.
28741
28742 2010-04-05  Jim Meyering  <meyering@redhat.com>
28743
28744         xstrtoumax-tests: convert to use init.sh
28745         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
28746         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28747         Use Exit, not exit.
28748         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28749
28750         xstrtoimax-tests: convert to use init.sh
28751         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
28752         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28753         Use Exit, not exit.
28754         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28755
28756 2010-04-05  Bruno Haible  <bruno@clisp.org>
28757
28758         sys_socket: Avoid #define replacements in C++ mode.
28759         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
28760         warning to the function if possible, rather than #defining the symbol
28761         to a dysfunctional alias.
28762
28763 2010-04-05  Bruno Haible  <bruno@clisp.org>
28764
28765         fseeko: Fix C++ test error on mingw.
28766         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
28767         gl_FUNC_FSEEKO.
28768         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
28769         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
28770         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
28771         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
28772
28773 2010-04-05  Bruno Haible  <bruno@clisp.org>
28774
28775         duplocale: Improve test output.
28776         * tests/test-duplocale.c (main): Print reason for skipped test.
28777
28778 2010-04-05  Bruno Haible  <bruno@clisp.org>
28779
28780         Assume rmdir exists.
28781         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
28782         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
28783
28784 2010-04-05  Bruno Haible  <bruno@clisp.org>
28785
28786         Fix link error on Solaris 8 with cc.
28787         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
28788
28789 2010-04-05  Bruno Haible  <bruno@clisp.org>
28790
28791         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28792         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
28793
28794 2010-04-05  Bruno Haible  <bruno@clisp.org>
28795
28796         vasprintf: Update documentation.
28797         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
28798
28799 2010-04-05  Bruno Haible  <bruno@clisp.org>
28800
28801         ptsname: Improve test.
28802         * tests/test-ptsname.c (main): Also try the various master names of BSD
28803         systems.
28804
28805 2010-04-05  Bruno Haible  <bruno@clisp.org>
28806
28807         memchr: Avoid a possible C++ test error.
28808         * lib/string.in.h (memchr): Provide declaration if function is missing.
28809         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
28810         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
28811         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
28812         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
28813
28814 2010-04-05  Bruno Haible  <bruno@clisp.org>
28815
28816         strtok_r: Improve idiom.
28817         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
28818         AC_LIBOBJ is used.
28819
28820 2010-04-05  Bruno Haible  <bruno@clisp.org>
28821
28822         strdup: Improve idiom.
28823         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
28824         AC_LIBOBJ is used.
28825         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
28826         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
28827         when AC_LIBOBJ is used.
28828
28829 2010-04-05  Bruno Haible  <bruno@clisp.org>
28830
28831         mbsinit, mbrtowc, wcrtomb: Improve idioms.
28832         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
28833         don't set REPLACE_MBSINIT to 1.
28834         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
28835         don't set REPLACE_MBRTOWC to 1.
28836         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
28837         exist, don't set REPLACE_MBSRTOWCS to 1.
28838         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
28839         exist, don't set REPLACE_MBSNRTOWCS to 1.
28840         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
28841         don't set REPLACE_WCRTOMB to 1.
28842         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
28843         exist, don't set REPLACE_WCSRTOMBS to 1.
28844         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
28845         exist, don't set REPLACE_WCSNRTOMBS to 1.
28846
28847 2010-04-05  Bruno Haible  <bruno@clisp.org>
28848
28849         ldexpl: Improve idiom.
28850         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
28851         make sure to set HAVE_DECL_LDEXPL to 0.
28852
28853 2010-04-05  Jim Meyering  <meyering@redhat.com>
28854
28855         xstrtol-tests: convert to use init.sh
28856         * modules/xstrtol-tests (Files): Add tests/init.sh.
28857         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28858         Use Exit, not exit.
28859         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28860
28861         atexit-tests: convert to use init.sh
28862         * modules/atexit-tests (Files): Add tests/init.sh.
28863         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
28864         Use Exit, not exit.
28865         Remove uses of $EXEEXT and "./" to run a program in the current dir.
28866
28867         init.sh: fix typo
28868         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
28869
28870         init.sh: make it easier for a test script to write to the tty, ...
28871         when using automake's parallel-tests mode.
28872         * tests/init.sh (stderr_fileno_): Define overridable variable.
28873         (warn_): New function, to use it.
28874         (fail_, skip_, framework_failure_): Use warn_.
28875
28876 2010-04-04  Bruno Haible  <bruno@clisp.org>
28877
28878         btowc: Avoid warning.
28879         * lib/btowc.c: Include <stdlib.h>.
28880         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
28881
28882 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28883             Bruno Haible  <bruno@clisp.org>
28884
28885         wchar: Port to NetBSD 1.5.
28886         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
28887         * lib/wctype.in.h (WEOF): Likewise.
28888
28889 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
28890             Bruno Haible  <bruno@clisp.org>
28891
28892         Port extended stdio to NetBSD 1.5.
28893         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
28894         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
28895         older.
28896
28897 2010-04-04  Bruno Haible  <bruno@clisp.org>
28898
28899         string: Remove unused substitution.
28900         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28901         HAVE_DECL_STRERROR.
28902         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
28903
28904 2010-04-04  Bruno Haible  <bruno@clisp.org>
28905
28906         strtod: Avoid a possible C++ test error.
28907         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
28908         set REPLACE_STRTOD.
28909
28910 2010-04-04  Bruno Haible  <bruno@clisp.org>
28911
28912         strerror: Update documentation.
28913         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
28914
28915 2010-04-04  Bruno Haible  <bruno@clisp.org>
28916
28917         stdio: Fix some C++ test errors on Solaris 8 with GCC.
28918         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
28919         _GL_CXXALIAS_SYS_CAST.
28920
28921 2010-04-04  Bruno Haible  <bruno@clisp.org>
28922
28923         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
28924         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
28925         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
28926         REPLACE_FREXPL to 1.
28927         * doc/posix-functions/frexpl.texi: Update documentation.
28928
28929 2010-04-04  Bruno Haible  <bruno@clisp.org>
28930
28931         math: Fix some C++ test errors on Solaris 8 and Cygwin.
28932         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
28933
28934 2010-04-04  Bruno Haible  <bruno@clisp.org>
28935
28936         Implement nanosleep for native Windows.
28937         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
28938
28939 2010-04-04  Bruno Haible  <bruno@clisp.org>
28940
28941         math: Fix some C++ test errors on Solaris 8.
28942         * lib/math.in.h (truncf, trunc): Use simpler idiom.
28943
28944 2010-04-04  Bruno Haible  <bruno@clisp.org>
28945
28946         math: Fix some C++ test errors on Cygwin.
28947         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
28948         truncl): Provide declaration if the system does not have it.
28949         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
28950         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
28951         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
28952         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
28953         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
28954         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
28955         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
28956         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
28957         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
28958         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
28959         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
28960         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
28961         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
28962         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
28963         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
28964         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
28965         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
28966         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28967         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28968         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
28969         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
28970         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
28971
28972 2010-04-04  Bruno Haible  <bruno@clisp.org>
28973
28974         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
28975         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
28976         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
28977         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
28978         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
28979         * m4/isinf.m4 (gl_ISINF): Likewise.
28980         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28981
28982 2010-04-04  Bruno Haible  <bruno@clisp.org>
28983
28984         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
28985         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28986
28987 2010-04-04  Bruno Haible  <bruno@clisp.org>
28988
28989         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
28990         * modules/tmpfile (configure.ac): Update.
28991
28992         tmpfile: Fix C++ test error on mingw.
28993         * lib/stdio.in.h (tmpfile): New declaration.
28994         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
28995         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
28996         * modules/tmpfile (Depends-on): Add stdio.
28997         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28998         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
28999         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29000         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29001         REPLACE_TMPFILE.
29002         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29003
29004 2010-04-04  Bruno Haible  <bruno@clisp.org>
29005
29006         ioctl: Fix C++ test error on mingw.
29007         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29008         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29009         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29010
29011 2010-04-03  Bruno Haible  <bruno@clisp.org>
29012
29013         wcwidth: Fix C++ test error on mingw.
29014         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29015         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29016         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29017
29018 2010-04-03  Bruno Haible  <bruno@clisp.org>
29019
29020         nanosleep: Fix C++ test error on mingw.
29021         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29022         * lib/time.in.h (nanosleep): Use modern idiom.
29023         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29024         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29025         REPLACE_NANOSLEEP to 1.
29026         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29027         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29028
29029 2010-04-03  Bruno Haible  <bruno@clisp.org>
29030
29031         strptime: Fix C++ test error on mingw.
29032         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29033         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29034         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29035         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29036         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29037         not REPLACE_STRPTIME.
29038         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29039         REPLACE_STRPTIME.
29040
29041 2010-04-03  Bruno Haible  <bruno@clisp.org>
29042
29043         timegm: Fix C++ test error on mingw.
29044         * lib/time.in.h (timegm): Use modern idiom.
29045         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29046         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29047         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29048         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29049
29050 2010-04-03  Bruno Haible  <bruno@clisp.org>
29051
29052         timegm: Assume declaration if function exists.
29053         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29054         if it exists. Don't clobber ac_cv_func_timegm.
29055
29056 2010-04-03  Bruno Haible  <bruno@clisp.org>
29057
29058         time_r: Fix C++ test error on mingw.
29059         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29060         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29061         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29062         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29063         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29064
29065 2010-04-03  Bruno Haible  <bruno@clisp.org>
29066
29067         time_r: Minor updates.
29068         * modules/time_r (Description): Mention the provided functions.
29069         * lib/time_r.c: Don't include <string.h>.
29070         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29071         * doc/posix-functions/localtime_r.texi: Likewise.
29072
29073 2010-04-03  Bruno Haible  <bruno@clisp.org>
29074
29075         time: Fix regression introduced on 2010-03-08.
29076         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29077         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29078
29079 2010-04-03  Jim Meyering  <meyering@redhat.com>
29080
29081         maint.mk: don't silently disable project-specific syntax-check rules
29082         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29083         that they need to convert their project-specific syntax-check rules
29084         to use the new _sc_search_regexp.
29085
29086 2010-04-03  Bruno Haible  <bruno@clisp.org>
29087
29088         fchdir: Fix regression introduced on 2010-03-08.
29089         * lib/unistd.in.h (fchdir): Fix declaration.
29090         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29092         REPLACE_FCHDIR.
29093         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29094         REPLACE_FCHDIR.
29095
29096 2010-04-03  Bruno Haible  <bruno@clisp.org>
29097
29098         getpagesize: Fix C++ test error on mingw.
29099         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29100         system does not declare the function.
29101         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29102         declared.
29103         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29104         HAVE_DECL_GETPAGESIZE.
29105         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29106
29107 2010-04-03  Bruno Haible  <bruno@clisp.org>
29108
29109         stdio: Make C++ tests work on mingw.
29110         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29111         does not declare the function.
29112
29113 2010-04-03  Bruno Haible  <bruno@clisp.org>
29114
29115         ftello: Fix C++ test error on mingw.
29116         * lib/stdio.in.h (ftello): Use modern idiom.
29117         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29118         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29119         is missing and that it needs to be replaced.
29120         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29121         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29122         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29123
29124 2010-04-03  Bruno Haible  <bruno@clisp.org>
29125
29126         fseeko: Fix C++ test error on mingw.
29127         * lib/stdio.in.h (fseeko): Use modern idiom.
29128         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29129         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29130         is missing and that it needs to be replaced.
29131         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29133         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29134
29135 2010-04-03  Bruno Haible  <bruno@clisp.org>
29136
29137         mkstemp: Fix C++ test error on mingw.
29138         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29139         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29140         function is missing and that it needs to be replaced.
29141         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29142         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29143
29144 2010-04-03  Bruno Haible  <bruno@clisp.org>
29145
29146         stpncpy: Fix C++ test error on mingw.
29147         * lib/string.in.h (stpncpy): Use modern idiom.
29148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29149         function is missing and that it needs to be replaced.
29150         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29151         REPLACE_STPNCPY.
29152         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29153
29154 2010-04-03  Bruno Haible  <bruno@clisp.org>
29155
29156         sys_stat: Fix C++ test error on mingw.
29157         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29158         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29159
29160 2010-04-03  Bruno Haible  <bruno@clisp.org>
29161
29162         pty: Update doc.
29163         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29164
29165 2010-04-03  Bruno Haible  <bruno@clisp.org>
29166
29167         unistd: Fix C++ test error on mingw.
29168         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29169
29170 2010-04-03  Bruno Haible  <bruno@clisp.org>
29171
29172         Update doc regarding mingw.
29173         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29174         * doc/glibc-functions/login_tty.texi: Likewise.
29175         * doc/glibc-functions/forkpty.texi: Likewise.
29176
29177 2010-04-03  Bruno Haible  <bruno@clisp.org>
29178
29179         stdlib: Avoid compilation failure of c-strtold on mingw.
29180         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29181
29182 2010-04-03  Bruno Haible  <bruno@clisp.org>
29183
29184         locale: Make C++ tests work on Cygwin and mingw.
29185         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29186         cannot provide the function.
29187         Reported by Simon Josefsson.
29188
29189 2010-04-03  Bruno Haible  <bruno@clisp.org>
29190
29191         localename: Port to MacOS X 10.6.
29192         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29193         memory layout of the locales in MacOS X 10.6 as well.
29194         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29195
29196 2010-04-02  Bruno Haible  <bruno@clisp.org>
29197
29198         gnulib-tool: Ensure that long-running tests are executed last.
29199         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29200         running tests after the one for the other tests.
29201
29202 2010-04-02  Bruno Haible  <bruno@clisp.org>
29203
29204         gnulib-tool: Ensure the tests in the main directory are executed first.
29205         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29206         start with the current directory.
29207
29208 2010-04-02  Bruno Haible  <bruno@clisp.org>
29209
29210         Tests for module 'havelib', moved here from GNU gettext.
29211         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29212         modifications.
29213         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29214         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29215         with modifications.
29216         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29217         modifications.
29218         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29219         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29220         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29221         with modifications.
29222         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29223         with modifications.
29224         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29225         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29226         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29227         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29228         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29229         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29230         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29231         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29232         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29233         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29234         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29235         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29236         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29237         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29238         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29239         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29240         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29241         with modifications.
29242         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29243         with modifications.
29244         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29245         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29246         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29247         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29248         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29249         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29250         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29251         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29252         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29253         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29254         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29255         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29256         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29257         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29258         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29259         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29260         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29261         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29262         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29263         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29264         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29265         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29266         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29267         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29268         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29269         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29270         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29271         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29272         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29273         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29274         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29275         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29276         * tests/havelib/rpathx/rpathx.c: New file, from
29277         gettext/autoconf-lib-link.
29278         * tests/havelib/rpathx/Makefile.am: New file, from
29279         gettext/autoconf-lib-link.
29280         * tests/havelib/rpathx/configure.ac: New file, from
29281         gettext/autoconf-lib-link with modifications.
29282         * tests/havelib/rpathy/rpathy.c: New file, from
29283         gettext/autoconf-lib-link.
29284         * tests/havelib/rpathy/Makefile.am: New file, from
29285         gettext/autoconf-lib-link.
29286         * tests/havelib/rpathy/configure.ac: New file, from
29287         gettext/autoconf-lib-link with modifications.
29288         * tests/havelib/rpathz/rpathz.c: New file, from
29289         gettext/autoconf-lib-link.
29290         * tests/havelib/rpathz/Makefile.am: New file, from
29291         gettext/autoconf-lib-link.
29292         * tests/havelib/rpathz/configure.ac: New file, from
29293         gettext/autoconf-lib-link with modifications.
29294         * tests/havelib/rpathlx/usex.c: New file, from
29295         gettext/autoconf-lib-link.
29296         * tests/havelib/rpathlx/Makefile.am: New file, from
29297         gettext/autoconf-lib-link.
29298         * tests/havelib/rpathlx/configure.ac: New file, from
29299         gettext/autoconf-lib-link with modifications.
29300         * tests/havelib/rpathly/usey.c: New file, from
29301         gettext/autoconf-lib-link.
29302         * tests/havelib/rpathly/Makefile.am: New file, from
29303         gettext/autoconf-lib-link.
29304         * tests/havelib/rpathly/configure.ac: New file, from
29305         gettext/autoconf-lib-link with modifications.
29306         * tests/havelib/rpathlz/usez.c: New file, from
29307         gettext/autoconf-lib-link.
29308         * tests/havelib/rpathlz/Makefile.am: New file, from
29309         gettext/autoconf-lib-link.
29310         * tests/havelib/rpathlz/configure.ac: New file, from
29311         gettext/autoconf-lib-link with modifications.
29312         * tests/havelib/rpathlyx/usey.c: New file, from
29313         gettext/autoconf-lib-link.
29314         * tests/havelib/rpathlyx/Makefile.am: New file, from
29315         gettext/autoconf-lib-link.
29316         * tests/havelib/rpathlyx/configure.ac: New file, from
29317         gettext/autoconf-lib-link with modifications.
29318         * tests/havelib/rpathlzyx/usez.c: New file, from
29319         gettext/autoconf-lib-link.
29320         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29321         gettext/autoconf-lib-link.
29322         * tests/havelib/rpathlzyx/configure.ac: New file, from
29323         gettext/autoconf-lib-link with modifications.
29324         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29325         with modifications.
29326
29327 2010-04-02  Bruno Haible  <bruno@clisp.org>
29328
29329         gnulib-tool: Create distributed built sources also for the tests.
29330         * gnulib-tool (func_create_testdir): Also generate distributed built
29331         sources in the tests directory.
29332
29333 2010-04-02  Bruno Haible  <bruno@clisp.org>
29334
29335         gnulib-tool: Obey user's environment variables.
29336         * gnulib-tool (func_create_testdir): When creating built sources,
29337         respect the environment variables for autoconf, automake, etc. given by
29338         the user.
29339
29340 2010-04-02  Bruno Haible  <bruno@clisp.org>
29341
29342         gnulib-tool: Provide the value of --m4-base to modules.
29343         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29344         of gl_m4_base.
29345
29346 2010-04-02  Eric Blake  <eblake@redhat.com>
29347
29348         maint.mk: fix some fallout
29349         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29350         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29351
29352 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29353
29354         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29355         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29356         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29357         (sc_cast_of_x_alloc_return_value): Likewise.
29358         (sc_cast_of_alloca_return_value): Likewise.
29359         (sc_space_tab): Likewise.
29360         (sc_prohibit_atoi_atof): Likewise.
29361         (sc_prohibit_magic_number_exit): Likewise.
29362         (sc_error_exit_success): Likewise.
29363         (sc_file_system): Likewise.
29364         (sc_prohibit_have_config_h): Likewise.
29365         (sc_require_config_h): Likewise.
29366         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29367         (sc_obsolete_symbols): Likewise.
29368         (sc_changelog): Likewise.
29369         (sc_program_name): Likewise.
29370         (sc_the_the): Likewise.
29371         (sc_trailing_blank): Likewise.
29372         (sc_two_space_separator_in_usage): Likewise.
29373         (sc_useless_cpp_parens): Likewise.
29374         (sc_GPL_version): Likewise.
29375         (sc_GFDL_version): Likewise.
29376         (sc_texinfo_acronym): Likewise.
29377         (sc_prohibit_cvs_keyword): Likewise.
29378         (sc_prohibit_stat_st_blocks): Likewise.
29379         (sc_prohibit_S_IS_definition): Likewise.
29380         (sc_redundant_const): Likewise.
29381         (sc_makefile_TAB_only_indentation): Likewise.
29382         (sc_m4_quote_check): Likewise.
29383         (sc_makefile_path_separator_check): Likewise.
29384         (sc_copyright_check): Likewise.
29385         (sc_Wundef_boolean): Likewise.
29386         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29387
29388         maint.mk: match 0 or more whitespace-before-function-call '('
29389         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29390         that have zero or two-and-more spaces between the function name
29391         and the open parenthesis.
29392         (sc_error_message_warn_fatal): Likewise.
29393         (sc_error_message_uppercase): Likewise.
29394         (sc_error_message_period): Likewise.
29395
29396 2010-03-31  Eric Blake  <eblake@redhat.com>
29397
29398         maint.mk: check for [ as well as test
29399         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29400         Based on a libvirt report by Matthias Bolte.
29401
29402         gnumakefile: don't squelch _version output
29403         * top/GNUmakefile (_version): Create one-shot dependency rather
29404         than using $(shell) when version must be regenerated.
29405         (_autoreconf): Run verbosely, by default.
29406
29407         sys_time: avoid compiler warnings
29408         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29409         unconditional, fixing regression from 2010-03-29.
29410         Reported by Simon Josefsson.
29411
29412 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29413
29414         maint.mk: s/_header_without_use/_sc_header_without_use/
29415         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29416         (sc_prohibit_assert_without_use): Use the new name.
29417         (sc_prohibit_close_stream_without_use): Likewise.
29418         (sc_prohibit_getopt_without_use): Likewise.
29419         (sc_prohibit_quotearg_without_use): Likewise.
29420         (sc_prohibit_quote_without_use): Likewise.
29421         (sc_prohibit_long_options_without_use): Likewise.
29422         (sc_prohibit_inttostr_without_use): Likewise.
29423         (sc_prohibit_ignore_value_without_use): Likewise.
29424         (sc_prohibit_error_without_use): Likewise.
29425         (sc_prohibit_xalloc_without_use): Likewise.
29426         (sc_prohibit_hash_without_use): Likewise.
29427         (sc_prohibit_hash_pjw_without_use): Likewise.
29428         (sc_prohibit_safe_read_without_use): Likewise.
29429         (sc_prohibit_argmatch_without_use): Likewise.
29430         (sc_prohibit_canonicalize_without_use): Likewise.
29431         (sc_prohibit_root_dev_ino_without_use): Likewise.
29432         (sc_prohibit_openat_without_use): Likewise.
29433         (sc_prohibit_c_ctype_without_use): Likewise.
29434         (sc_prohibit_signal_without_use): Likewise.
29435         (sc_prohibit_intprops_without_use): Likewise.
29436
29437 2010-03-30  Eric Blake  <eblake@redhat.com>
29438
29439         maint: improve module indicators
29440         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
29441         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
29442         columns, and avoid extra macro expansion.
29443
29444         fdopendir: work around FreeBSD bug
29445         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
29446         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
29447         * modules/dirent (Makefile.am): Substitute it.
29448         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
29449         declaration.
29450         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
29451         fix.
29452         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29453
29454 2010-03-29  Bruno Haible  <bruno@clisp.org>
29455
29456         Emit #pragma system_header after the inclusion guard, not before.
29457         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
29458         guard that spans the entire file, not before. This enables an
29459         optimization in GCC's preprocessor.
29460         * lib/ctype.in.h: Likewise.
29461         * lib/dirent.in.h: Likewise.
29462         * lib/errno.in.h: Likewise.
29463         * lib/float.in.h: Likewise.
29464         * lib/getopt.in.h: Likewise.
29465         * lib/iconv.in.h: Likewise.
29466         * lib/langinfo.in.h: Likewise.
29467         * lib/locale.in.h: Likewise.
29468         * lib/math.in.h: Likewise.
29469         * lib/netdb.in.h: Likewise.
29470         * lib/netinet_in.in.h: Likewise.
29471         * lib/pty.in.h: Likewise.
29472         * lib/sched.in.h: Likewise.
29473         * lib/se-selinux.in.h: Likewise.
29474         * lib/search.in.h: Likewise.
29475         * lib/spawn.in.h: Likewise.
29476         * lib/stdarg.in.h: Likewise.
29477         * lib/stdint.in.h: Likewise.
29478         * lib/string.in.h: Likewise.
29479         * lib/strings.in.h: Likewise.
29480         * lib/sys_file.in.h: Likewise.
29481         * lib/sys_ioctl.in.h: Likewise.
29482         * lib/sys_time.in.h: Likewise.
29483         * lib/sys_times.in.h: Likewise.
29484         * lib/sys_utsname.in.h: Likewise.
29485         * lib/sys_wait.in.h: Likewise.
29486         * lib/sysexits.in.h: Likewise.
29487         * lib/wctype.in.h: Likewise.
29488
29489 2010-03-28  James Youngman  <jay@gnu.org>
29490
29491         save-cwd: don't leak a file descriptor when the caller execs.
29492         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
29493         saved file descriptor.
29494         * modules/save-cwd (Depends-on): Depend on cloexec.
29495
29496 2010-03-29  Bruno Haible  <bruno@clisp.org>
29497
29498         Remove vestiges of fts-lgpl module.
29499         * lib/fts_.h: Assume GNULIB_FTS is 1.
29500         * lib/fts.c: Likewise.
29501         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29502
29503 2010-03-28  Bruno Haible  <bruno@clisp.org>
29504
29505         Fix definition of tests witness macro.
29506         * gnulib-tool (func_import): Fix definition of witness macro.
29507
29508 2010-03-28  Bruno Haible  <bruno@clisp.org>
29509
29510         Fix ioctl's protoype on glibc systems.
29511         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
29512         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
29513         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
29514         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
29515         signature. If not, arrange to replace the ioctl function.
29516         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
29517         REPLACE_IOCTL.
29518         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
29519         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
29520         Reported by Ludovic Courtès <ludo@gnu.org>.
29521
29522 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
29523
29524         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
29525         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
29526         made it so grep -r --include=GLOB* ... did not work.
29527
29528 2010-03-26  Jim Meyering  <meyering@redhat.com>
29529             Eric Blake  <eblake@redhat.com>
29530
29531         maint.mk: prohibit use of test's -o and -a operators
29532         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
29533
29534 2010-03-28  Bruno Haible  <bruno@clisp.org>
29535
29536         Remove unused GNULIB_XYZ macro definitions.
29537         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
29538         invocation.
29539
29540 2010-03-28  Bruno Haible  <bruno@clisp.org>
29541
29542         Mark privileged tests modules.
29543         * modules/idpriv-drop-tests (Status): New section.
29544         * modules/idpriv-droptemp-tests (Status): New section.
29545
29546 2010-03-28  Bruno Haible  <bruno@clisp.org>
29547
29548         Split C++ tests into separate tests modules.
29549         * modules/dirent-c++-tests: New file, extracted from
29550         modules/dirent-tests.
29551         * modules/dirent-tests: Depend on it.
29552         * modules/fcntl-h-c++-tests: New file, extracted from
29553         modules/fcntl-h-tests.
29554         * modules/fcntl-h-tests: Depend on it.
29555         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
29556         * modules/glob-tests: Depend on it.
29557         * modules/iconv-h-c++-tests: New file, extracted from
29558         modules/iconv-h-tests.
29559         * modules/iconv-h-tests: Depend on it.
29560         * modules/langinfo-c++-tests: New file, extracted from
29561         modules/langinfo-tests.
29562         * modules/langinfo-tests: Depend on it.
29563         * modules/locale-c++-tests: New file, extracted from
29564         modules/locale-tests.
29565         * modules/locale-tests: Depend on it.
29566         * modules/math-c++-tests: New file, extracted from modules/math-tests.
29567         * modules/math-tests: Depend on it.
29568         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
29569         * modules/pty-tests: Depend on it.
29570         * modules/search-c++-tests: New file, extracted from
29571         modules/search-tests.
29572         * modules/search-tests: Depend on it.
29573         * modules/signal-c++-tests: New file, extracted from
29574         modules/signal-tests.
29575         * modules/signal-tests: Depend on it.
29576         * modules/spawn-c++-tests: New file, extracted from
29577         modules/spawn-tests.
29578         * modules/spawn-tests: Depend on it.
29579         * modules/stdio-c++-tests: New file, extracted from
29580         modules/stdio-tests.
29581         * modules/stdio-tests: Depend on it.
29582         * modules/stdlib-c++-tests: New file, extracted from
29583         modules/stdlib-tests.
29584         * modules/stdlib-tests: Depend on it.
29585         * modules/string-c++-tests: New file, extracted from
29586         modules/string-tests.
29587         * modules/string-tests: Depend on it.
29588         * modules/sys_ioctl-c++-tests: New file, extracted from
29589         modules/sys_ioctl-tests.
29590         * modules/sys_ioctl-tests: Depend on it.
29591         * modules/sys_select-c++-tests: New file, extracted from
29592         modules/sys_select-tests.
29593         * modules/sys_select-tests: Depend on it.
29594         * modules/sys_socket-c++-tests: New file, extracted from
29595         modules/sys_socket-tests.
29596         * modules/sys_socket-tests: Depend on it.
29597         * modules/sys_stat-c++-tests: New file, extracted from
29598         modules/sys_stat-tests.
29599         * modules/sys_stat-tests: Depend on it.
29600         * modules/sys_time-c++-tests: New file, extracted from
29601         modules/sys_time-tests.
29602         * modules/sys_time-tests: Depend on it.
29603         * modules/time-c++-tests: New file, extracted from modules/time-tests.
29604         * modules/time-tests: Depend on it.
29605         * modules/unistd-c++-tests: New file, extracted from
29606         modules/unistd-tests.
29607         * modules/unistd-tests: Depend on it.
29608         * modules/wchar-c++-tests: New file, extracted from
29609         modules/wchar-tests.
29610         * modules/wchar-tests: Depend on it.
29611         * modules/wctype-c++-tests: New file, extracted from
29612         modules/wctype-tests.
29613         * modules/wctype-tests: Depend on it.
29614         Reported by Simon Josefsson.
29615
29616 2010-03-28  Bruno Haible  <bruno@clisp.org>
29617
29618         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
29619         * gnulib-tool (func_exists_module): New function, extracted from
29620         func_verify_module.
29621         (func_verify_module): Use it.
29622         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
29623         'foo' only if 'foo' exists.
29624         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
29625         module.
29626
29627 2010-03-28  Bruno Haible  <bruno@clisp.org>
29628
29629         gnulib-tool: Add support for special categories of tests.
29630         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
29631         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
29632         (func_usage): Document them.
29633         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
29634         inc_unportable_tests, inc_all_tests): New variables.
29635         (func_acceptable): Consider these variables.
29636         (func_modules_transitive_closure): Make it work when the 'Status' field
29637         consists of multiple words.
29638         (func_import): Store and restore the values of inc_cxx_tests,
29639         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
29640         inc_all_tests in gnulib-comp.m4.
29641         (func_create_testdir): Set inc_all_tests to true.
29642         * doc/gnulib.texi (Extra tests modules): New section.
29643         Suggested by Jim Meyering.
29644
29645 2010-03-28  Bruno Haible  <bruno@clisp.org>
29646
29647         ansi-c++-opt: Allow turning off the C++ build by default.
29648         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
29649         gl_CXX_CHOICE_DEFAULT_NO is defined.
29650         Requested by Eric Blake.
29651
29652 2010-03-28  Bruno Haible  <bruno@clisp.org>
29653
29654         unistd: Avoid #define replacements in C++ mode.
29655         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
29656         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
29657         setsockopt, shutdown, select): In C++, attach a warning to the function
29658         if possible, rather than #defining the symbol to a dysfunctional alias.
29659         Reported by John W. Eaton <jwe@gnu.org>.
29660
29661 2010-03-28  Bruno Haible  <bruno@clisp.org>
29662
29663         Fix link errors on mingw.
29664         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
29665         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
29666         $(LIBSOCKET).
29667         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
29668         $(LIBSOCKET).
29669
29670 2010-03-28  Bruno Haible  <bruno@clisp.org>
29671             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29672
29673         lib-ignore: Determine different options for different compilers.
29674         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
29675         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
29676         Add comments.
29677         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
29678         * NEWS: Mention the change.
29679
29680 2010-03-27  Bruno Haible  <bruno@clisp.org>
29681
29682         Remove unused GNULIB_XYZ macro definitions.
29683         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
29684         * modules/fseek (configure.ac): Likewise.
29685         * modules/ioctl (configure.ac): Likewise.
29686         * modules/open (configure.ac): Likewise.
29687         * modules/stdlib-safer (configure.ac): Likewise.
29688
29689 2010-03-27  Bruno Haible  <bruno@clisp.org>
29690
29691         Add a remark about certain modules.
29692         * modules/malloc (Comment): New section.
29693         * modules/realloc (Comment): Likewise.
29694         * modules/sigpipe (Comment): Likewise.
29695
29696 2010-03-27  Bruno Haible  <bruno@clisp.org>
29697
29698         Resolve conflict between the two kinds of module indicators.
29699         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
29700         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
29701         * modules/canonicalize (configure.ac): Invoke
29702         gl_MODULE_INDICATOR_FOR_TESTS.
29703         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
29704         GNULIB_XYZ.
29705         * tests/test-dirent-c++.cc: Likewise.
29706         * tests/test-dirent-safer.c: Likewise.
29707         * tests/test-dup2.c: Likewise.
29708         * tests/test-fchdir.c: Likewise.
29709         * tests/test-fcntl-h-c++.cc: Likewise.
29710         * tests/test-getopt.c: Likewise.
29711         * tests/test-getopt.h: Likewise.
29712         * tests/test-langinfo-c++.cc: Likewise.
29713         * tests/test-locale-c++.cc: Likewise.
29714         * tests/test-math-c++.cc: Likewise.
29715         * tests/test-pty-c++.cc: Likewise.
29716         * tests/test-search-c++.cc: Likewise.
29717         * tests/test-signal-c++.cc: Likewise.
29718         * tests/test-spawn-c++.cc: Likewise.
29719         * tests/test-stdio-c++.cc: Likewise.
29720         * tests/test-stdlib-c++.cc: Likewise.
29721         * tests/test-string-c++.cc: Likewise.
29722         * tests/test-sys_ioctl-c++.cc: Likewise.
29723         * tests/test-sys_select-c++.cc: Likewise.
29724         * tests/test-sys_socket-c++.cc: Likewise.
29725         * tests/test-sys_stat-c++.cc: Likewise.
29726         * tests/test-sys_time-c++.cc: Likewise.
29727         * tests/test-time-c++.cc: Likewise.
29728         * tests/test-unistd-c++.cc: Likewise.
29729         * tests/test-wchar-c++.cc: Likewise.
29730         * tests/uninorm/test-u8-nfc.c: Likewise.
29731         * tests/uninorm/test-u8-nfd.c: Likewise.
29732         * tests/uninorm/test-u8-nfkc.c: Likewise.
29733         * tests/uninorm/test-u8-nfkd.c: Likewise.
29734         * tests/uninorm/test-u16-nfc.c: Likewise.
29735         * tests/uninorm/test-u16-nfd.c: Likewise.
29736         * tests/uninorm/test-u16-nfkc.c: Likewise.
29737         * tests/uninorm/test-u16-nfkd.c: Likewise.
29738         * tests/uninorm/test-u32-nfc.c: Likewise.
29739         * tests/uninorm/test-u32-nfc-big.c: Likewise.
29740         * tests/uninorm/test-u32-nfd.c: Likewise.
29741         * tests/uninorm/test-u32-nfd-big.c: Likewise.
29742         * tests/uninorm/test-u32-nfkc.c: Likewise.
29743         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
29744         * tests/uninorm/test-u32-nfkd.c: Likewise.
29745         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
29746         * tests/uninorm/test-u32-normalize-big.c: Likewise.
29747
29748 2010-03-27  Bruno Haible  <bruno@clisp.org>
29749
29750         Distinguish two kinds of module indicators.
29751         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
29752         gl_MODULE_INDICATOR.
29753         (gl_MODULE_INDICATOR): New macro.
29754         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
29755         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
29756         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29757         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29758         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29759         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29760         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29761         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29762         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29763         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29764         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29765         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29767         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29768         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29769         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29770         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29771         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29772         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29773         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29774         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29775         * modules/cloexec (configure.ac): Likewise.
29776         * modules/getopt-gnu (configure.ac): Likewise.
29777         * modules/uninorm/u8-normalize (configure.ac): Likewise.
29778         * modules/uninorm/u16-normalize (configure.ac): Likewise.
29779         * modules/uninorm/u32-normalize (configure.ac): Likewise.
29780         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
29781
29782 2010-03-27  Bruno Haible  <bruno@clisp.org>
29783
29784         New module description field 'Comment'.
29785         * gnulib-tool: New option --extract-comment.
29786         (func_usage): Document it.
29787         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
29788         (func_get_comment): New function.
29789         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
29790
29791 2010-03-27  Bruno Haible  <bruno@clisp.org>
29792
29793         Addendum to 2010-02-07 commit.
29794         * gnulib-tool (func_usage): Document --extract-applicability option.
29795
29796 2010-03-27  Bruno Haible  <bruno@clisp.org>
29797
29798         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
29799         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
29800         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
29801         rather than link errors.
29802
29803 2010-03-27  Bruno Haible  <bruno@clisp.org>
29804
29805         Avoid side effects from tests-related modules on the compilation of lib.
29806         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
29807         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
29808         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
29809         parameter. Emit into AM_CPPFLAGS a definition of the designated C
29810         macro.
29811         (func_import): Define a witness macro. Assign it a value that depends
29812         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
29813         tests-related modules.
29814         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
29815         Reported by Jim Meyering.
29816
29817 2010-03-27  Bruno Haible  <bruno@clisp.org>
29818
29819         Factorize common .m4 code.
29820         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
29821         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
29822         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
29823         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
29824         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
29825         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
29826         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
29827         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
29828         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
29829         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
29830         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
29831         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
29832         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
29833         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
29834         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
29835         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
29836         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
29837         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
29838         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
29839         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
29840         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
29841         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
29842         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
29843         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
29844         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
29845         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
29846         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
29847         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
29848         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
29849         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
29850         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
29851         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
29852
29853 2010-03-27  Bruno Haible  <bruno@clisp.org>
29854
29855         Fix a compilation error on Cygwin with g++ >= 4.3.
29856         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
29857         if it is undefined or if we alias it to chmod.
29858         (lstat): Don't warn about the use of this function if it is undefined
29859         or if we alias it to stat.
29860         Reported by Simon Josefsson.
29861
29862 2010-03-27  Bruno Haible  <bruno@clisp.org>
29863
29864         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
29865         * modules/getlogin (configure.ac): Update.
29866
29867         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
29868         * modules/getlogin_r (configure.ac): Update.
29869
29870         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
29871         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
29872         * modules/inet_ntop (configure.ac): Update.
29873
29874         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
29875         * modules/inet_pton (configure.ac): Update.
29876
29877         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
29878         * modules/mbslen (configure.ac): Update.
29879
29880         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
29881         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
29882         * modules/forkpty (configure.ac): Update.
29883         * modules/openpty (configure.ac): Update.
29884
29885 2010-03-26  Simon Josefsson  <simon@josefsson.org>
29886
29887         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
29888         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
29889
29890 2010-03-25  Eric Blake  <eblake@redhat.com>
29891
29892         maint: use pragma consistently across replacement headers
29893         * lib/ctype.in.h (system_header): Hoist for consistent placement.
29894         * lib/dirent.in.h (system_header): Likewise.
29895         * lib/errno.in.h (system_header): Likewise.
29896         * lib/float.in.h (system_header): Likewise.
29897         * lib/getopt.in.h (system_header): Likewise.
29898         * lib/iconv.in.h (system_header): Likewise.
29899         * lib/inttypes.in.h (system_header): Likewise.
29900         * lib/langinfo.in.h (system_header): Likewise.
29901         * lib/locale.in.h (system_header): Likewise.
29902         * lib/math.in.h (system_header): Likewise.
29903         * lib/netdb.in.h (system_header): Likewise.
29904         * lib/netinet_in.in.h (system_header): Likewise.
29905         * lib/pty.in.h (system_header): Likewise.
29906         * lib/sched.in.h (system_header): Likewise.
29907         * lib/se-selinux.in.h (system_header): Likewise.
29908         * lib/search.in.h (system_header): Likewise.
29909         * lib/spawn.in.h (system_header): Likewise.
29910         * lib/stdarg.in.h (system_header): Likewise.
29911         * lib/stdint.in.h (system_header): Likewise.
29912         * lib/string.in.h (system_header): Likewise.
29913         * lib/strings.in.h (system_header): Likewise.
29914         * lib/sys_file.in.h (system_header): Likewise.
29915         * lib/sys_ioctl.in.h (system_header): Likewise.
29916         * lib/sys_socket.in.h (system_header): Likewise.
29917         * lib/sys_times.in.h (system_header): Likewise.
29918         * lib/sys_utsname.in.h (system_header): Likewise.
29919         * lib/sys_wait.in.h (system_header): Likewise.
29920         * lib/sysexits.in.h (system_header): Likewise.
29921         * lib/unistd.in.h (system_header): Likewise.
29922         * lib/wctype.in.h (system_header): Likewise.
29923
29924         arpa/inet: fix mingw compilation warning
29925         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
29926         Reported by Matthew Bolte.
29927
29928 2010-03-25  Bruno Haible  <bruno@clisp.org>
29929
29930         Avoid collision between gnulib wrapper and libintl wrapper.
29931         * lib/printf.c (printf): Don't define if a printf wrapper is already
29932         defined in intl/printf.c.
29933         Reported by Michel Boaventura <michel@michelboaventura.com>.
29934
29935 2010-03-25  Bruno Haible  <bruno@clisp.org>
29936
29937         Use ANSI C.
29938         * lib/readutmp.h (getutent): Provide ANSI C prototype.
29939
29940 2010-03-25  Bruno Haible  <bruno@clisp.org>
29941
29942         Minor formatting changes.
29943         * lib/acosl.c: Insert space before function argument list.
29944         * lib/argz.c: Likewise.
29945         * lib/asinl.c: Likewise.
29946         * lib/expl.c: Likewise.
29947         * lib/gen-uni-tables.c: Likewise.
29948         * lib/gettext.h: Likewise.
29949         * lib/glthread/lock.h: Likewise.
29950         * lib/tanl.c: Likewise.
29951         * lib/uniname/uniname.c: Likewise.
29952         * tests/test-idpriv-drop.c: Likewise.
29953         * tests/test-idpriv-droptemp.c: Likewise.
29954         * tests/test-lock.c: Likewise.
29955         * tests/test-tls.c: Likewise.
29956         * lib/argp-help.c: Insert space before function-like macro argument
29957         list.
29958         * lib/memcmp.c: Likewise.
29959         * tests/test-base64.c: Likewise.
29960         * lib/localename.c: Insert space before sizeof's argument list.
29961         * lib/safe-alloc.h: Likewise.
29962         * lib/file-set.h: Insert space before macro argument list.
29963         * tests/test-argp.c: Likewise.
29964         * lib/argp-namefrob.h: Insert space before function parameter list.
29965         * lib/getaddrinfo.c: Likewise.
29966         * lib/netdb.in.h: Likewise.
29967         * lib/parse-duration.h: Likewise.
29968         * lib/parse-duration.c: Likewise.
29969         * lib/poll.c: Likewise.
29970         * lib/select.c: Likewise.
29971         * lib/trim.h: Likewise.
29972         * tests/test-usleep.c: Likewise.
29973         * lib/ldexpl.c: Insert space before function parameter list and before
29974         function argument list.
29975         * lib/logl.c: Likewise.
29976         * lib/sqrtl.c: Likewise.
29977         * lib/trim.c: Likewise.
29978         * lib/cosl.c: Use GNU style indentation. Insert space before function
29979         argument list.
29980         * lib/sinl.c: Likewise.
29981         * lib/tsearch.c: Insert space after 'for'.
29982         Reported by Jim Meyering.
29983
29984 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
29985
29986         * maint.mk (sc_Wundef_boolean): Check for the presence of the
29987         config header before grepping, as it's not present before
29988         autoreconf/configure are run.  Reported by Simon Josefsson.
29989
29990 2010-03-23  Bruno Haible  <bruno@clisp.org>
29991
29992         pt_chown: Make it work with automake < 1.11.
29993         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
29994         Reported by Simon Josefsson.
29995
29996 2010-03-23  Bruno Haible  <bruno@clisp.org>
29997
29998         pt_chown: Don't depend on GPLed modules.
29999         * lib/pt_chown.c: Don't include idpriv.h.
30000         (main): Don't drop privileges.
30001         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30002         Reported by Simon Josefsson.
30003
30004 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30005
30006         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30007         suggestions from karl@freefriends.org (Karl Berry).
30008
30009 2010-03-22  Eric Blake  <eblake@redhat.com>
30010
30011         gethostname: further tweaks
30012         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30013         are overriding gethostname.
30014         Suggested by Bruno Haible.
30015
30016 2010-03-21  Bruno Haible  <bruno@clisp.org>
30017
30018         Fix comments.
30019         * lib/forkpty.c (rpl_forkpty): Fix comment.
30020         * lib/openpty.c (rpl_openpty): Likewise.
30021         Reported by Eric Blake.
30022
30023 2010-03-22  Eric Blake  <eblake@redhat.com>
30024
30025         gethostname: fix build on mingw
30026         * lib/unistd.in.h (includes): Work around fact that mingw
30027         <winsock2.h> re-includes <unistd.h>, by avoiding any
30028         redeclarations if we are being included by <winsock2.h>.
30029         Reported by Matthias Bolte.
30030
30031 2010-03-21  Bruno Haible  <bruno@clisp.org>
30032
30033         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30034         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30035         modifications.
30036         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30037         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30038         provide the replacement.
30039         * modules/forkpty (Depends-on): Add openpty, login_tty.
30040         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30041         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30042         * doc/glibc-functions/forkpty.texi: More supported platforms.
30043         * config/srclist.txt: Add forkpty.c (commented).
30044
30045 2010-03-21  Bruno Haible  <bruno@clisp.org>
30046
30047         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30048         (Makefile.am): Verify that PTY_LIB is defined.
30049
30050         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30051
30052 2010-03-21  Bruno Haible  <bruno@clisp.org>
30053
30054         Tests for module 'login_tty'.
30055         * modules/login_tty-tests: New file.
30056         * tests/test-login_tty.c: New file.
30057
30058         New module 'login_tty'.
30059         * lib/login_tty.c: New file.
30060         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30061         * modules/login_tty: New file.
30062         * doc/glibc-functions/login_tty.texi: Mention the new module.
30063
30064 2010-03-21  Bruno Haible  <bruno@clisp.org>
30065
30066         login_tty: Documentation.
30067         * doc/glibc-functions/login_tty.texi: New file.
30068         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30069
30070 2010-03-21  Bruno Haible  <bruno@clisp.org>
30071
30072         pty: Consistent macro naming.
30073         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30074         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30075         * modules/pty (configure.ac): Update.
30076
30077 2010-03-21  Bruno Haible  <bruno@clisp.org>
30078
30079         Tests for openpty: Make stricter.
30080         * tests/test-openpty.c (main): Add test of canonical processing and
30081         erase.
30082         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30083
30084         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30085         * lib/openpty.c (openpty): New replacement function.
30086         * lib/pty.in.h: Include <termios.h>.
30087         (openpty): Update declaration. Add comments.
30088         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30089         is not declared, arrange to provide the replacement. Check for _getpty
30090         and posix_openpt.
30091         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30092         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30093         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30094         * modules/pty-tests (test_pty_c___LDADD): New variable.
30095         * doc/glibc-functions/openpty.texi: More supported platforms.
30096
30097 2010-03-21  Bruno Haible  <bruno@clisp.org>
30098
30099         setenv: Tweaks.
30100         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30101         the test program.
30102         * doc/posix-functions/setenv.texi: Update platforms list.
30103
30104 2010-03-21  Bruno Haible  <bruno@clisp.org>
30105
30106         New module 'unlockpt'.
30107         * lib/unlockpt.c: New file, from glibc with modifications.
30108         * m4/unlockpt.m4: New file.
30109         * modules/unlockpt: New file.
30110         * lib/stdlib.in.h (unlockpt): New declaration.
30111         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30112         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30113         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30114         HAVE_UNLOCKPT.
30115         * doc/posix-functions/unlockpt.texi: Mention the new module.
30116         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30117         * config/srclist.txt: Add unlockpt.c (commented).
30118
30119 2010-03-21  Jim Meyering  <meyering@redhat.com>
30120
30121         maint.mk: prohibit inclusion of "intprops.h" without use
30122         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30123
30124 2010-03-21  Bruno Haible  <bruno@clisp.org>
30125
30126         New module 'grantpt'.
30127         * lib/grantpt.c: New file, from glibc with modifications.
30128         * m4/grantpt.m4: New file.
30129         * modules/grantpt: New file.
30130         * lib/stdlib.in.h (grantpt): New declaration.
30131         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30132         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30133         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30134         HAVE_GRANTPT.
30135         * doc/posix-functions/grantpt.texi: Mention the new module.
30136         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30137         * config/srclist.txt: Add grantpt.c (commented).
30138
30139 2010-03-21  Bruno Haible  <bruno@clisp.org>
30140
30141         New module 'pt_chown'.
30142         * lib/pt_chown.c: New file, from glibc with modifications.
30143         * lib/pty-private.h: New file, from glibc with modifications.
30144         * modules/pt_chown: New file.
30145         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30146
30147 2010-03-21  Bruno Haible  <bruno@clisp.org>
30148
30149         Tests for module 'ptsname'.
30150         * modules/ptsname-tests: New file.
30151         * tests/test-ptsname.c: New file.
30152
30153         New module 'ptsname'.
30154         * lib/ptsname.c: New file, from glibc with modifications.
30155         * m4/ptsname.m4: New file.
30156         * modules/ptsname: New file.
30157         * lib/stdlib.in.h (ptsname): New declaration.
30158         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30159         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30160         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30161         HAVE_PTSNAME.
30162         * doc/posix-functions/ptsname.texi: Mention the new module.
30163         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30164         * config/srclist.txt: Add ptsname.c (commented).
30165
30166 2010-03-21  Bruno Haible  <bruno@clisp.org>
30167
30168         Tests for module 'ttyname_r'.
30169         * modules/ttyname_r-tests: New file.
30170         * tests/test-ttyname_r.c: New file.
30171
30172         New module 'ttyname_r'.
30173         * lib/ttyname_r.c: New file.
30174         * m4/ttyname_r.m4: New file.
30175         * modules/ttyname_r: New file.
30176         * lib/unistd.in.h (ttyname_r): New declaration.
30177         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30178         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30179         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30180         HAVE_TTYNAME_R.
30181         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30182         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30183
30184 2010-03-20  Bruno Haible  <bruno@clisp.org>
30185
30186         signal: Undefine macro definitions in C++ mode.
30187         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30188         sigfillset): Undefine macro definitions from the system header in C++
30189         mode.
30190         Reported by John W. Eaton <jwe@gnu.org>.
30191
30192 2010-03-20  Bruno Haible  <bruno@clisp.org>
30193
30194         Ensure no #include statements inside extern "C" { ... }.
30195         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30196         contain #include statements.
30197         * lib/time.in.h: Likewise.
30198
30199 2010-03-20  Bruno Haible  <bruno@clisp.org>
30200
30201         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30202         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30203         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30204         Reported by John W. Eaton <jwe@gnu.org>.
30205
30206 2010-03-20  Bruno Haible  <bruno@clisp.org>
30207
30208         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30209         Reported by Jim Meyering.
30210
30211 2010-03-20  Bruno Haible  <bruno@clisp.org>
30212
30213         pipe: Set errno upon failure.
30214         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30215         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30216         errno value in error message.
30217
30218 2010-03-20  Bruno Haible  <bruno@clisp.org>
30219             Jim Meyering  <meyering@redhat.com>
30220
30221         lchown: Avoid "unused variable" warning.
30222         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30223
30224 2010-03-20  Bruno Haible  <bruno@clisp.org>
30225
30226         Work around unlink() bug on MacOS X 10.5.6.
30227         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30228         attempting to unlink a parent directory.
30229         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30230         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30231         activate for the replacement function.
30232         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30233
30234 2010-03-20  Bruno Haible  <bruno@clisp.org>
30235
30236         Fix link errors on Solaris 8.
30237         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30238         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30239
30240 2010-03-19  Jim Meyering  <meyering@redhat.com>
30241
30242         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30243         The _LIBC implementation of build_range_exp correctly honors the
30244         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30245         However, the non-_LIBC implementation would ignore that syntax-bit
30246         flag and return REG_ERANGE unconditionally.
30247         This change makes it honor that flag.
30248         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30249         Make two pointer parameters "const".
30250         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30251         (parse_bracket_exp): Update caller.
30252
30253         regex.m4: correct the reversed range endpoint ([b-a]) test
30254         * m4/regex.m4: When requiring that [b-a] evoke failure,
30255         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30256         test pass once again for x86-based systems.
30257
30258 2010-03-19  Bruno Haible  <bruno@clisp.org>
30259
30260         scandir: Fix link error on Solaris 8.
30261         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30262         macros.
30263
30264 2010-03-19  Bruno Haible  <bruno@clisp.org>
30265
30266         getusershell: Fix documentation.
30267         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30268         module.
30269         * doc/glibc-functions/setusershell.texi: Likewise.
30270
30271         getusershell: Provide declaration, missing on Solaris 9.
30272         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30273         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30274         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30275         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30277         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30278         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30279         HAVE_GETUSERSHELL.
30280         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30281
30282 2010-03-19  Bruno Haible  <bruno@clisp.org>
30283
30284         wctype: Provide iswblank function.
30285         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30286         exists and is fine.
30287         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30288         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30289         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30290         * doc/posix-functions/iswblank.texi: Update.
30291
30292 2010-03-19  Bruno Haible  <bruno@clisp.org>
30293
30294         Tests of module 'pty' in C++ mode.
30295         * modules/pty-tests: New file.
30296         * tests/test-pty-c++.cc: New file.
30297         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30298
30299 2010-03-19  Eric Blake  <eblake@redhat.com>
30300
30301         logb: fix documentation
30302         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30303         1.5 declaration bug.
30304
30305         forkpty, openpty: prefer glibc's const-safe prototype
30306         * lib/forkpty.c (rpl_forkpty): New file.
30307         * lib/openpty.c (rpl_openpty): Likewise.
30308         * modules/forkpty (Files): Distribute it.
30309         * modules/openpty (Files): Likewise.
30310         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30311         check...
30312         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30313         replacement for for non-const BSD signature.
30314         * modules/pty (Makefile.am): Substitute witnesses.
30315         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30316         * tests/test-forkpty.c: Update signature check.
30317         * tests/test-openpty.c: Likewise.
30318         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30319         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30320
30321         forkpty, openpty: split functions into new modules
30322         * modules/pty (Makefile.am): Substitute new witnesses.
30323         (Libraries): Move library detection...
30324         * modules/forkpty: ...into new module.
30325         * modules/openpty: Another new module.
30326         * modules/pty-tests: Rename and split...
30327         * modules/forkpty-tests: ...to this...
30328         * modules/openpty-tests: ...and this.
30329         * tests/test-pty.c: Rename and split...
30330         * tests/test-forkpty.c: ...to this...
30331         * tests/test-openpty.c: ...and this.
30332         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30333         (gl_PTY): Split library searching...
30334         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30335         (gl_FORKPTY, gl_OPENPTY): New macros.
30336         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30337         * NEWS: Mention the split.
30338         * MODULES.html.sh (Misc): Document the modules.
30339         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30340         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30341
30342         pty: improve replacement header
30343         * lib/pty.in.h: New file.
30344         * modules/pty (Files): Ship it.
30345         (Makefile.am): Always build replacement.
30346         * m4/pty.m4: Rename...
30347         * m4/pty_h.m4: ...to this.
30348         (gl_PTY): Modernize setting of witness macros; update check of
30349         forkpty to take proper advantage of cache.
30350         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30351
30352         getopt: avoid compiler warning
30353         * lib/getopt.c (attribute_hidden): Remove unused macro.
30354
30355 2010-03-18  Bruno Haible  <bruno@clisp.org>
30356
30357         Fix link errors on Solaris 8.
30358         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30359         * modules/search-tests (test_search_c___LDADD): Likewise.
30360         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30361         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30362         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30363         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30364         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30365         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30366         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30367
30368 2010-03-18  Bruno Haible  <bruno@clisp.org>
30369
30370         Fix bug introduced on 2010-03-14.
30371         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30372         (gl_SPAWN_H): Require it.
30373         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30374         Reported by Simon Josefsson.
30375
30376 2010-03-18  Bruno Haible  <bruno@clisp.org>
30377
30378         Fix typo introduced on 2009-12-31.
30379         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30380         posix_spawn_file_actions_adddup2.
30381
30382 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30383         and Eric Blake  <eblake@redhat.com>
30384
30385         test-vc-list-files-git: make more robust
30386         * tests/test-vc-list-files-git.sh: Unset problematic environment
30387         variables.  Chain commands together.
30388
30389 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30390
30391         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30392         `AC_CHECK_DECL' invocation.
30393
30394 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30395
30396         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30397         appears before executable statements. Suggested by Petr Sumbera
30398         <Petr.Sumbera@Sun.COM>.
30399
30400 2010-03-14  Bruno Haible  <bruno@clisp.org>
30401
30402         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30403         portability problems. Instead use a simpler test.
30404         (main): Check that invalid arguments are rejected only on Linux.
30405
30406 2010-03-14  Bruno Haible  <bruno@clisp.org>
30407
30408         Fix bug introduced on 2009-12-31.
30409         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30410         gl_PREREQ_SYS_H_WINSOCK2 always.
30411         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30412         SYS_SOCKET_H variable.
30413         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30414         Update comments.
30415         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30416         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30418         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30419         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30420
30421 2010-03-14  Bruno Haible  <bruno@clisp.org>
30422
30423         Fix values returned by sinl, cosl.
30424         * lib/trigl.h: Add specification comments.
30425         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30426         that combines the values from the precomputed table with the values of
30427         the Chebyshev polynomials.
30428
30429 2010-03-14  Bruno Haible  <bruno@clisp.org>
30430
30431         Fix compilation error when modules 'posix_spawn[p]' are not used.
30432         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30434
30435 2010-03-14  Bruno Haible  <bruno@clisp.org>
30436
30437         Fix compilation error on mingw when module 'time_r' is not used.
30438         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
30439         is 1.
30440         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
30441         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30442         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
30443         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
30444
30445 2010-03-14  Bruno Haible  <bruno@clisp.org>
30446
30447         Fix compilation error with Sun C.
30448         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
30449         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
30450         instead of GCC specific ULONG_LONG_MAX.
30451         * lib/xstrtoll.c: Likewise.
30452         * lib/xstrtoull.c: Likewise.
30453
30454 2010-03-13  Bruno Haible  <bruno@clisp.org>
30455
30456         Allow the user to disable C++ code and tests.
30457         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
30458         (gl_PROG_ANSI_CXX): Require it.
30459
30460 2010-03-13  Bruno Haible  <bruno@clisp.org>
30461
30462         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
30463         cases.
30464
30465 2010-03-13  Bruno Haible  <bruno@clisp.org>
30466
30467         Test that gnulib does not break the standard C++ headers.
30468         * tests/test-locale-c++2.cc: New file.
30469         * modules/locale-tests (Files): Add it.
30470         (Makefile.am): Compile it for test-locale-c++.
30471         * tests/test-math-c++2.cc: New file.
30472         * modules/math-tests (Files): Add it.
30473         (Makefile.am): Compile it for test-math-c++.
30474         * tests/test-signal-c++2.cc: New file.
30475         * modules/signal-tests (Files): Add it.
30476         (Makefile.am): Compile it for test-signal-c++.
30477         * tests/test-stdio-c++2.cc: New file.
30478         * modules/stdio-tests (Files): Add it.
30479         (Makefile.am): Compile it for test-stdio-c++.
30480         * tests/test-stdlib-c++2.cc: New file.
30481         * modules/stdlib-tests (Files): Add it.
30482         (Makefile.am): Compile it for test-stdlib-c++.
30483         * tests/test-string-c++2.cc: New file.
30484         * modules/string-tests (Files): Add it.
30485         (Makefile.am): Compile it for test-string-c++.
30486         * tests/test-time-c++2.cc: New file.
30487         * modules/time-tests (Files): Add it.
30488         (Makefile.am): Compile it for test-time-c++.
30489         Reported by John W. Eaton <jwe@gnu.org>.
30490
30491 2010-03-13  Bruno Haible  <bruno@clisp.org>
30492
30493         * gnulib-tool (func_usage): Clarify which options are available for
30494         --create-testdir and --create-megatestdir.
30495
30496 2010-03-13  Bruno Haible  <bruno@clisp.org>
30497
30498         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
30499         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
30500         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
30501         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
30502         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
30503         when appropriate.
30504         Reported by Jim Meyering.
30505
30506 2010-03-12  Simon Josefsson  <simon@josefsson.org>
30507
30508         * gnulib-tool (func_import): Explain origin of code.
30509
30510 2010-03-12  Bruno Haible  <bruno@clisp.org>
30511
30512         Fix problem with automake's definition of CXXLINK.
30513         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
30514         Reported by Simon Josefsson and Ludovic Courtès.
30515
30516 2010-03-12  Bruno Haible  <bruno@clisp.org>
30517
30518         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
30519         stable releases.
30520
30521 2010-03-11  Bruno Haible  <bruno@clisp.org>
30522
30523         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
30524         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
30525         whether the system provides one variant or multiple variants of the
30526         function.
30527         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
30528         C++ compilers.
30529         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
30530         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
30531         Reported by Jim Meyering.
30532
30533 2010-03-09  Simon Josefsson  <simon@josefsson.org>
30534
30535         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
30536
30537 2010-03-08  Bruno Haible  <bruno@clisp.org>
30538
30539         gnulib-tool: Add support for --libtool in --create-testdir.
30540         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
30541         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
30542
30543 2010-03-08  Eric Blake  <eblake@redhat.com>
30544
30545         gnulib-tool.texi: mention possibility of git submodule
30546         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
30547         submodules.
30548         * doc/.gitignore: Ignore another generated file.
30549
30550 2010-03-08  Karl Berry  <karl@gnu.org>
30551
30552         * doc/gnulib-tool.texi (VCS Issues): Mention third option
30553         of committing gnulib files while skipping others.
30554
30555 2010-03-07  Bruno Haible  <bruno@clisp.org>
30556
30557         Tests of module 'wctype' in C++ mode.
30558         * tests/test-wctype-c++.cc: New file.
30559         * modules/wctype-tests (Files): Add it and tests/signature.h.
30560         (Depends-on): Add ansi-c++-opt.
30561         (Makefile.am): Arrange to compile and run test-wctype-c++.
30562
30563         Tests of module 'wchar' in C++ mode.
30564         * tests/test-wchar-c++.cc: New file.
30565         * modules/wchar-tests (Files): Add it and tests/signature.h.
30566         (Depends-on): Add ansi-c++-opt.
30567         (Makefile.am): Arrange to compile and run test-wchar-c++.
30568         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
30569         gl_MODULE_INDICATOR.
30570
30571         Tests of module 'unistd' in C++ mode.
30572         * tests/test-unistd-c++.cc: New file.
30573         * modules/unistd-tests (Files): Add it and tests/signature.h.
30574         (Depends-on): Add ansi-c++-opt.
30575         (Makefile.am): Arrange to compile and run test-unistd-c++.
30576         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
30577         gl_MODULE_INDICATOR.
30578
30579         Tests of module 'time' in C++ mode.
30580         * tests/test-time-c++.cc: New file.
30581         * modules/time-tests (Files): Add it and tests/signature.h.
30582         (Depends-on): Add ansi-c++-opt.
30583         (Makefile.am): Arrange to compile and run test-time-c++.
30584         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30585
30586         Tests of module 'sys_time' in C++ mode.
30587         * tests/test-sys_time-c++.cc: New file.
30588         * modules/sys_time-tests (Files): Add it and tests/signature.h.
30589         (Depends-on): Add ansi-c++-opt.
30590         (Makefile.am): Arrange to compile and run test-sys_time-c++.
30591         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
30592         gl_MODULE_INDICATOR.
30593
30594         Tests of module 'sys_stat' in C++ mode.
30595         * tests/test-sys_stat-c++.cc: New file.
30596         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
30597         (Depends-on): Add ansi-c++-opt.
30598         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
30599         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
30600         gl_MODULE_INDICATOR.
30601
30602         Tests of module 'sys_socket' in C++ mode.
30603         * tests/test-sys_socket-c++.cc: New file.
30604         * modules/sys_socket-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_socket-c++.
30607         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
30608         gl_MODULE_INDICATOR.
30609
30610         Tests of module 'sys_select' in C++ mode.
30611         * tests/test-sys_select-c++.cc: New file.
30612         * modules/sys_select-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_select-c++.
30615         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
30616         gl_MODULE_INDICATOR.
30617
30618         Tests of module 'sys_ioctl' in C++ mode.
30619         * tests/test-sys_ioctl-c++.cc: New file.
30620         * modules/sys_ioctl-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_ioctl-c++.
30623         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
30624         gl_MODULE_INDICATOR.
30625
30626         Tests of module 'string' in C++ mode.
30627         * tests/test-string-c++.cc: New file.
30628         * modules/string-tests (Files): Add it and tests/signature.h.
30629         (Depends-on): Add ansi-c++-opt.
30630         (Makefile.am): Arrange to compile and run test-string-c++.
30631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
30632         gl_MODULE_INDICATOR.
30633
30634         Tests of module 'stdlib' in C++ mode.
30635         * tests/test-stdlib-c++.cc: New file.
30636         * modules/stdlib-tests (Files): Add it and tests/signature.h.
30637         (Depends-on): Add ansi-c++-opt.
30638         (Makefile.am): Arrange to compile and run test-stdlib-c++.
30639         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
30640         gl_MODULE_INDICATOR.
30641
30642         Tests of module 'stdio' in C++ mode.
30643         * tests/test-stdio-c++.cc: New file.
30644         * modules/stdio-tests (Files): Add it and tests/signature.h.
30645         (Depends-on): Add ansi-c++-opt.
30646         (Makefile.am): Arrange to compile and run test-stdio-c++.
30647         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
30648         gl_MODULE_INDICATOR.
30649
30650         Tests of module 'spawn' in C++ mode.
30651         * tests/test-spawn-c++.cc: New file.
30652         * modules/spawn-tests (Files): Add it and tests/signature.h.
30653         (Depends-on): Add ansi-c++-opt.
30654         (Makefile.am): Arrange to compile and run test-spawn-c++.
30655         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
30656         gl_MODULE_INDICATOR.
30657
30658         Tests of module 'signal' in C++ mode.
30659         * tests/test-signal-c++.cc: New file.
30660         * modules/signal-tests (Files): Add it and tests/signature.h.
30661         (Depends-on): Add ansi-c++-opt.
30662         (Makefile.am): Arrange to compile and run test-signal-c++.
30663         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
30664         gl_MODULE_INDICATOR.
30665
30666         Tests of module 'search' in C++ mode.
30667         * tests/test-search-c++.cc: New file.
30668         * modules/search-tests (Files): Add it and tests/signature.h.
30669         (Depends-on): Add ansi-c++-opt.
30670         (Makefile.am): Arrange to compile and run test-search-c++.
30671         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
30672         gl_MODULE_INDICATOR.
30673
30674         Tests of module 'math' in C++ mode.
30675         * tests/test-math-c++.cc: New file.
30676         * modules/math-tests (Files): Add it and tests/signature.h.
30677         (Depends-on): Add ansi-c++-opt.
30678         (Makefile.am): Arrange to compile and run test-math-c++.
30679         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30680
30681         Tests of module 'locale' in C++ mode.
30682         * tests/test-locale-c++.cc: New file.
30683         * modules/locale-tests (Files): Add it and tests/signature.h.
30684         (Depends-on): Add ansi-c++-opt.
30685         (Makefile.am): Arrange to compile and run test-locale-c++.
30686         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
30687         gl_MODULE_INDICATOR.
30688
30689         Tests of module 'langinfo' in C++ mode.
30690         * tests/test-langinfo-c++.cc: New file.
30691         * modules/langinfo-tests (Files): Add it and tests/signature.h.
30692         (Depends-on): Add ansi-c++-opt.
30693         (Makefile.am): Arrange to compile and run test-langinfo-c++.
30694         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
30695         gl_MODULE_INDICATOR.
30696
30697         Tests of module 'iconv-h' in C++ mode.
30698         * tests/test-iconv-h-c++.cc: New file.
30699         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
30700         (Depends-on): Add ansi-c++-opt.
30701         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
30702
30703         Tests of module 'glob' in C++ mode.
30704         * tests/test-glob-c++.cc: New file.
30705         * modules/glob-tests (Files): Add it.
30706         (Depends-on): Add ansi-c++-opt.
30707         (Makefile.am): Arrange to compile and run test-glob-c++.
30708
30709         Tests of module 'fcntl-h' in C++ mode.
30710         * tests/test-fcntl-h-c++.cc: New file.
30711         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
30712         (Depends-on): Add ansi-c++-opt.
30713         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
30714         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
30715         gl_MODULE_INDICATOR.
30716
30717         Tests of module 'dirent' in C++ mode.
30718         * tests/test-dirent-c++.cc: New file.
30719         * modules/dirent-tests (Files): Add it and tests/signature.h.
30720         (Depends-on): Add ansi-c++-opt.
30721         (Makefile.am): Arrange to compile and run test-dirent-c++.
30722         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30723         gl_MODULE_INDICATOR.
30724
30725         New module 'ansi-c++-opt'.
30726         * modules/ansi-c++-opt: New file.
30727         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
30728
30729         Document C++ namespace mode.
30730         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
30731
30732         wctype: Avoid #define replacements in C++ mode.
30733         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
30734         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
30735         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
30736         In C++, define a namespaced alias symbol.
30737         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
30738         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
30739         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
30740         rule.
30741
30742         wchar: Avoid #define replacements in C++ mode.
30743         * lib/wchar.in.h: Include c++defs.h.
30744         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
30745         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
30746         symbol.
30747         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
30748         * modules/wchar (Depends-on): Add c++defs.
30749         (Makefile.am): Update wchar.h rule.
30750
30751         unistd: Avoid #define replacements in C++ mode.
30752         * lib/unistd.in.h: Include c++defs.h.
30753         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
30754         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
30755         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
30756         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
30757         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
30758         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
30759         symbol.
30760         (environ): Update.
30761         * modules/unistd (Depends-on): Add c++defs.
30762         (Makefile.am): Update unistd.h rule.
30763
30764         time: Avoid #define replacements in C++ mode.
30765         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
30766         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
30767         define a namespaced alias symbol.
30768         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
30769         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
30770         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
30771         * modules/time (Depends-on): Add c++defs, warn-on-use.
30772         (Makefile.am): Update time.h rule.
30773         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
30774         * modules/nanosleep (configure.ac): Likewise.
30775         * modules/strptime (configure.ac): Likewise.
30776         * modules/timegm (configure.ac): Likewise.
30777
30778         sys_time: Avoid #define replacements in C++ mode.
30779         * lib/sys_time.in.h: Include c++defs.h.
30780         (gettimeofday): In C++, define a namespaced alias symbol.
30781         * modules/sys_time (Depends-on): Add c++defs.
30782         (Makefile.am): Update sys/time.h rule.
30783
30784         sys_stat: Avoid #define replacements in C++ mode.
30785         * lib/sys_stat.in.h: Include c++defs.h.
30786         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
30787         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
30788         namespaced alias symbol.
30789         In C++, define a namespaced alias symbol.
30790         * modules/sys_stat (Depends-on): Add c++defs.
30791         (Makefile.am): Update sys/stat.h rule.
30792
30793         sys_socket: Avoid #define replacements in C++ mode.
30794         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
30795         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
30796         definitions also when the system has a <sys/socket.h>.
30797         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
30798         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
30799         In C++, define a namespaced alias symbol.
30800         * modules/sys_socket (Depends-on): Add c++defs.
30801         (Makefile.am): Update sys/socket.h rule.
30802
30803         sys_select: Avoid #define replacements in C++ mode.
30804         * lib/sys_select.in.h: Include c++defs.h. Enable the function
30805         definitions also when the system has a <sys/select.h>.
30806         (select): In C++, define a namespaced alias symbol.
30807         * modules/sys_select (Depends-on): Add c++defs.
30808         (Makefile.am): Update sys/select.h rule.
30809
30810         sys_ioctl: Avoid #define replacements in C++ mode.
30811         * lib/sys_ioctl.in.h: Include c++defs.h.
30812         (ioctl): In C++, define a namespaced alias symbol.
30813         * modules/sys_ioctl (Depends-on): Add c++defs.
30814         (Makefile.am): Update sys/ioctl.h rule.
30815
30816         string: Avoid #define replacements in C++ mode.
30817         * lib/string.in.h: Include c++defs.h.
30818         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
30819         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
30820         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
30821         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
30822         strsignal, strverscmp): In C++, define a namespaced alias symbol.
30823         * modules/string (Depends-on): Add c++defs.
30824         (Makefile.am): Update string.h rule.
30825
30826         stdlib: Avoid #define replacements in C++ mode.
30827         * lib/stdlib.in.h: Include c++defs.h.
30828         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
30829         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
30830         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
30831         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
30832         symbol.
30833         * modules/stdlib (Depends-on): Add c++defs.
30834         (Makefile.am): Update stdlib.h rule.
30835
30836         stdio: Avoid #define replacements in C++ mode.
30837         * lib/stdio.in.h: Include c++defs.h.
30838         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
30839         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
30840         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
30841         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
30842         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
30843         namespaced alias symbol.
30844         * modules/stdio (Depends-on): Add c++defs.
30845         (Makefile.am): Update stdio.h rule.
30846
30847         spawn: Avoid #define replacements in C++ mode.
30848         * lib/spawn.in.h: Include c++defs.h.
30849         (posix_spawn, posix_spawnp, posix_spawnattr_init,
30850         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
30851         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
30852         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
30853         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
30854         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
30855         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
30856         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
30857         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
30858         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
30859         In C++, define a namespaced alias symbol.
30860         * modules/spawn (Depends-on): Add c++defs.
30861         (Makefile.am): Update spawn.h rule.
30862
30863         signal: Avoid #define replacements in C++ mode.
30864         * lib/signal.in.h: Include c++defs.h.
30865         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
30866         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
30867         namespaced alias symbol.
30868         * modules/signal (Depends-on): Add c++defs.
30869         (Makefile.am): Update signal.h rule.
30870
30871         search: Avoid #define replacements in C++ mode.
30872         * lib/search.in.h: Include c++defs.h.
30873         (_gl_search_compar_fn, _gl_search_action_fn): New types.
30874         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
30875         symbol.
30876         * modules/search (Depends-on): Add c++defs.
30877         (Makefile.am): Update search.h rule.
30878
30879         math: Avoid #define replacements in C++ mode.
30880         * lib/math.in.h: Include c++defs.h.
30881         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
30882         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
30883         trunc, truncl): In C++, define a namespaced alias symbol.
30884         * modules/math (Depends-on): Add c++defs.
30885         (Makefile.am): Update math.h rule.
30886
30887         locale: Avoid #define replacements in C++ mode.
30888         * lib/locale.in.h: Include c++defs.h.
30889         (duplocale): In C++, define a namespaced alias symbol.
30890         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
30891         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
30892         * modules/locale (Depends-on): Add c++defs.
30893         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
30894
30895         langinfo: Avoid #define replacements in C++ mode.
30896         * lib/langinfo.in.h: Include c++defs.h.
30897         (nl_langinfo): In C++, define a namespaced alias symbol.
30898         * modules/langinfo (Depends-on): Add c++defs.
30899         (Makefile.am): Update langinfo.h rule.
30900
30901         iconv-h: Avoid #define replacements in C++ mode.
30902         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
30903         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
30904         symbol.
30905         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
30906         whenever iconv is present.
30907         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
30908         (Makefile.am): Update iconv.h rule.
30909
30910         glob: Avoid #define replacements in C++ mode.
30911         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
30912         (_gl_glob_errfunc_fn): New type.
30913         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
30914         symbol.
30915         * modules/glob (Depends-on): Add c++defs, warn-on-use.
30916         (Makefile.am): Update glob.h rule.
30917
30918         fcntl-h: Avoid #define replacements in C++ mode.
30919         * lib/fcntl.in.h: Include c++defs.h.
30920         (fcntl, open, openat): In C++, define a namespaced alias symbol.
30921         * modules/fcntl-h (Depends-on): Add c++defs.
30922         (Makefile.am): Update fcntl.h rule.
30923
30924         dirent: Avoid #define replacements in C++ mode.
30925         * lib/dirent.in.h: Include c++defs.h.
30926         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
30927         namespaced alias symbol.
30928         (dirfd): Update declaration.
30929         * modules/dirent (Depends-on): Add c++defs.
30930         (Makefile.am): Update dirent.h rule.
30931
30932         ctype: Make it usable in C++ code.
30933         * lib/ctype.in.h: Include c++defs.h.
30934         (isblank): Declare as extern "C".
30935         * modules/ctype (Depends-on): Add c++defs.
30936         (Makefile.am): Update ctype.h rule.
30937
30938         New module 'c++defs'.
30939         * modules/c++defs: New file.
30940         * build-aux/c++defs.h: New file.
30941         Reported by John W. Eaton <jwe@gnu.org>.
30942
30943 2010-03-07  Bruno Haible  <bruno@clisp.org>
30944
30945         logb: Provide missing declaration for Cygwin.
30946         * lib/math.in.h (logb): New declaration.
30947         * m4/logb.m4: New file.
30948         * modules/logb (Files): Add m4/logb.m4.
30949         (Depends-on): Add math.
30950         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
30951         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
30952         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
30953         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
30954         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
30955
30956 2010-03-07  Bruno Haible  <bruno@clisp.org>
30957
30958         Fix test-cond link error.
30959         * tests/test-cond.c: Include <stdio.h>.
30960
30961 2010-03-07  Bruno Haible  <bruno@clisp.org>
30962
30963         Fix test-dirent-safer link error.
30964         * modules/dirent-safer-tests (Makefile.am): Define
30965         test_dirent_safer_LDADD.
30966
30967 2010-03-07  Bruno Haible  <bruno@clisp.org>
30968
30969         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
30970         among default module list.
30971
30972 2010-03-07  Bruno Haible  <bruno@clisp.org>
30973
30974         Fix link error on platforms with GNU libiconv.
30975         * modules/unistr/u8-strcoll-tests (Makefile): Define
30976         test_u8_strcoll_LDADD.
30977         * modules/unistr/u16-strcoll-tests (Makefile): Define
30978         test_u16_strcoll_LDADD.
30979         * modules/unistr/u32-strcoll-tests (Makefile): Define
30980         test_u32_strcoll_LDADD.
30981
30982 2010-03-07  Bruno Haible  <bruno@clisp.org>
30983
30984         Use POSIX declarations for socket functions.
30985         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
30986         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
30987         rpl_sendto): Change declaration to match POSIX.
30988         * lib/connect.c (rpl_connect): Likewise.
30989         * lib/accept.c (rpl_accept): Likewise.
30990         * lib/bind.c (rpl_bind): Likewise.
30991         * lib/getpeername.c (rpl_getpeername): Likewise.
30992         * lib/getsockname.c (rpl_getsockname): Likewise.
30993         * lib/recv.c (rpl_recv): Likewise.
30994         * lib/send.c (rpl_send): Likewise.
30995         * lib/recvfrom.c (rpl_recvfrom): Likewise.
30996         * lib/sendto.c (rpl_sendto): Likewise.
30997
30998 2010-03-06  Bruno Haible  <bruno@clisp.org>
30999
31000         Clarify access, euidaccess, faccessat.
31001         * doc/posix-functions/faccessat.texi: Mention security problem under
31002         "Other problems", not "Portability problems".
31003         * doc/posix-functions/access.texi: Likewise. Mention a related security
31004         problem.
31005         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31006         * lib/euidaccess.c: Add comments about platforms.
31007         * lib/unistd.in.h (access, euidaccess): Add warnings.
31008
31009 2010-03-07  Bruno Haible  <bruno@clisp.org>
31010
31011         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31012         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31013         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31014         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31015         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31016         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31017         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31018         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31019         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31021         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31022         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31023         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31024         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31025         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31026         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31027         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31028         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31029         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31030         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31031         Likewise.
31032         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31033         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31034         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31035         Likewise.
31036         * tests/test-spawn.c (main): Make it work when
31037         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31038
31039 2010-03-07  Bruno Haible  <bruno@clisp.org>
31040
31041         Fix incorrect Makefile.am generation in German locale.
31042         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31043         Execute sed command with character range in C locale.
31044
31045 2010-03-06  Bruno Haible  <bruno@clisp.org>
31046
31047         Tests for module 'iconv-h'.
31048         * modules/iconv-h-tests: New file.
31049         * tests/test-iconv-h.c: New file.
31050
31051         New module 'iconv-h'.
31052         * modules/iconv-h: New file.
31053         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31054         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31055         (configure.ac): Remove gl_ICONV_H.
31056         (Makefile.am): Remove rule for iconv.h.
31057
31058 2010-03-06  Bruno Haible  <bruno@clisp.org>
31059
31060         More consistent naming of *.m4 files.
31061         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31062         * modules/wctype (Files): Update.
31063
31064         More consistent naming of *.m4 files.
31065         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31066         * modules/wchar (Files): Update.
31067
31068 2010-03-06  Jim Meyering  <meyering@redhat.com>
31069
31070         euidaccess: relax license to LGPLv2+
31071         * modules/euidaccess (License): Relax to LGPLv2+.
31072
31073 2010-03-06  Bruno Haible  <bruno@clisp.org>
31074
31075         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31076         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31077         (Makefile.am): Augment lib_SOURCES instead.
31078
31079 2010-03-04  Jim Meyering  <meyering@redhat.com>
31080
31081         utime: remove obsolete module
31082         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31083         unnecessary for years, and has been marked as obsolete for 10 months.
31084         * modules/utime: Remove file.
31085         * lib/utime.c: Remove file.
31086         * m4/utime.m4: Remove file.
31087         * m4/utimes-null.m4: Remove file.
31088         * doc/posix-functions/utime.texi (utime): Remove reference to
31089         the module.  Move the sole "fixed by gnulib" item into the
31090         "problems not fixed by Gnulib" list.
31091         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31092
31093 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31094
31095         * modules/exit (License): Relax license to LGPLv2+.
31096         (Status): Mark as obsolete.
31097         * NEWS: Mention deprecated 'exit' module.
31098         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31099         of now obsolete 'exit'.
31100
31101 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31102
31103         fts-lgpl: remove unused module
31104         * modules/fts-lgpl: Remove.
31105         * MODULES.html.sh (func_all_modules): Adjust.
31106         * check-module (find_included_lib_files): Adjust.
31107         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31108
31109 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31110
31111         copy-acl: enhance Solaris ACL error handling
31112         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31113         * lib/set-mode-acl.c (qset_acl): Likewise.
31114
31115 2010-03-02  Bruno Haible  <bruno@clisp.org>
31116
31117         spawn: Don't override the system defined values on FreeBSD 8.
31118         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31119         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31120         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31121         if HAVE_POSIX_SPAWN is 1.
31122         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31123
31124 2010-03-01  Bruno Haible  <bruno@clisp.org>
31125
31126         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31127         regarding Automake.
31128
31129 2010-02-25  Bruno Haible  <bruno@clisp.org>
31130
31131         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31132         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31133         setting, not afterwards.
31134         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31135
31136 2010-02-24  Eric Blake  <eblake@redhat.com>
31137
31138         bootstrap, git-version-gen: use timestamp
31139         * build-aux/git-version-gen (scriptversion): Force UTC.
31140         * build-aux/bootstrap (scriptversion): New variable.
31141
31142         bootstrap: allow older git
31143         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31144         older than 1.6.4.  Requested by the libvirt project.
31145
31146 2010-02-23  Eric Blake  <eblake@redhat.com>
31147
31148         warn-on-use: work with old autoconf
31149         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31150         AS_VAR semantics of autoconf 2.60.
31151         Reported by Bruno Haible.
31152
31153         bootstrap: improve some comments
31154         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31155         clarification comments.
31156
31157         gettimeofday: provide correct function
31158         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31159         when replacement is declared, otherwise provide gettimeofday.
31160         Reported by Michael Goffioul.
31161
31162 2010-02-23  Jim Meyering  <meyering@redhat.com>
31163
31164         lib-ignore: relax license to "unlimited", not LGPLv2+
31165         * modules/lib-ignore (License): Relax to "unlimited".
31166
31167 2010-02-23  Jim Meyering  <meyering@redhat.com>
31168
31169         lib-ignore: relax license to LGPLv2+
31170         * modules/lib-ignore (License): Relax to LGPLv2+.
31171
31172 2010-02-22  Eric Blake  <eblake@redhat.com>
31173
31174         lseek: avoid bash 3.2 broken pipe bug
31175         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31176         warning from bash 3.2.
31177         Reported by Ben Pfaff, with analysis from Bruno Haible.
31178
31179         bootstrap: support non-FSF copyright holder
31180         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31181         bootstrap.conf override of COPYRIGHT_HOLDER.
31182         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31183
31184         bootstrap: interoperate with gettext 0.14.1
31185         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31186
31187         bootstrap: allow for alternate submodule location
31188         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31189         hardcoding submodule location.
31190         (gnulib_mk): Allow direct use of Makefile.am.
31191
31192         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31193         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31194         rather than reconfiguring where the submodule points.
31195
31196         gettimeofday: restore support for platforms that lack function
31197         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31198         replacement if function is missing.
31199         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31200         * modules/sys_time (Makefile.am): Substitute it.
31201         * lib/sys_time.in.h (gettimeofday): Check it.
31202         Reported by Michael Goffioul.
31203
31204 2010-02-21  Bruno Haible  <bruno@clisp.org>
31205
31206         * lib/stdio.in.h (obstack_printf): Fix typo.
31207
31208 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31209
31210         vc-list-files: use bzr ls's -R option
31211         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31212         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31213
31214 2010-02-21  Jim Meyering  <meyering@redhat.com>
31215
31216         init.sh: fix EXEEXT shims to work also for names like test-prog
31217         * tests/init.sh: Re-exec a better shell, when needed.
31218         If the current shell lacks support for posix $(...), an init.sh-using
31219         test will now try to find a shell that supports that.  If EXEEXT is
31220         nonempty, we also require support for hyphen-in-alias-name and shell
31221         substitutions like ${var#glob}.  Failure to find such a shell results
31222         in a skipped test.
31223
31224 2010-02-21  Bruno Haible  <bruno@clisp.org>
31225
31226         Really work around around "broken pipe" error message from bash 3.2.
31227         * gnulib-tool (func_reset_sigpipe): Remove function.
31228         (echo): In bash 3.2, define to a function that uses printf.
31229         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31230
31231 2010-02-20  Bruno Haible  <bruno@clisp.org>
31232
31233         Restore support for automake 1.9.6 with autoconf 2.61.
31234         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31235         Reported by James Youngman <jay@gnu.org>.
31236
31237 2010-02-20  Bruno Haible  <bruno@clisp.org>
31238
31239         Improve *printf warning condition.
31240         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31241         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31242         and the function is overridden due to SIGPIPE emulation.
31243
31244 2010-02-20  Bruno Haible  <bruno@clisp.org>
31245
31246         * lib/stdio.in.h: Tweak comments.
31247
31248 2010-02-19  Bruno Haible  <bruno@clisp.org>
31249
31250         Make it easier to find modules. New gnulib-tool option '--find'.
31251         * gnulib-tool: New option --find.
31252         (func_usage): Document it.
31253         (func_sanitize_modulelist): New function, extracted from
31254         func_all_modules.
31255         (func_all_modules): Invoke it.
31256         * doc/gnulib-tool.texi (Which modules?): New node.
31257
31258 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31259
31260         * lib/sys_select.in.h: Provide select replacement even if
31261         sys/select.h exists on a system, for Interix.
31262
31263 2010-02-18  Jim Meyering  <meyering@redhat.com>
31264
31265         init.sh: don't use $(...) just yet
31266         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31267         to accommodate e.g., Solaris' /bin/sh.
31268
31269 2010-02-17  Bruno Haible  <bruno@clisp.org>
31270
31271         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31272         Reported by Ludovic Courtès <ludo@gnu.org>.
31273
31274 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31275
31276         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31277         linking with -lintl.
31278
31279 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31280
31281         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31282         if not provided by the system's netdb.h.  Reported by
31283         ludo@gnu.org (Ludovic Courtès).
31284
31285 2010-02-15  Jim Meyering  <meyering@redhat.com>
31286
31287         init.sh: improve portability and efficiency
31288         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31289         "dummy" in a for loop.
31290         Use '!', not '^' to select the complement of a character set used
31291         in a "case" statement.
31292         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31293         Suggestions from Eric Blake.
31294
31295         init.sh: automatically accommodate programs with the .exe suffix
31296         Automatically arrange for an invocation of "prog" to execute the
31297         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31298         may use the simpler "prog", yet still work when built on a system
31299         that requires specifying the added suffix.
31300         Do this by constructing a function named "prog" that invokes
31301         "prog.exe" for each .exe file in selected directories.
31302         * tests/init.sh (find_exe_basenames_): New function.
31303         (create_exe_shim_functions_): New function.
31304         (path_prepend_): Use it.
31305
31306         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31307         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31308         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31309
31310 2010-02-14  Jim Meyering  <meyering@redhat.com>
31311
31312         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31313         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31314         (sc_prohibit_hash_pjw_without_use): New rule.
31315
31316         maint.mk: allow the default upload destination dir to be overridden
31317         * top/maint.mk (upload_dest_dir_): Define with a default that
31318         preserves the status quo.
31319         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31320         Reported by Peter Simons.
31321
31322         maint.mk: prohibit inclusion of "hash.h" without_use
31323         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31324
31325 2010-02-10  Jim Meyering  <meyering@redhat.com>
31326
31327         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31328         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31329
31330 2010-02-09  Eric Blake  <ebb9@byu.net>
31331         and Bruno Haible  <bruno@clisp.org>
31332
31333         obstack-printf-posix: ensure declaration
31334         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31335         extracted from gl_FUNC_OBSTACK_PRINTF.
31336         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31337         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31338         Likewise.
31339         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31340         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31341         0.
31342
31343 2010-02-08  Bruno Haible  <bruno@clisp.org>
31344
31345         gnulib-tool: Fix typo in 2010-02-07 commit.
31346         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31347         Reported by Eric Blake.
31348
31349 2010-02-07  Bruno Haible  <bruno@clisp.org>
31350
31351         gnulib-tool: Fix up caching patches.
31352         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31353         option --no-cache. Use associative arrays when supported by the shell.
31354         (sed_comments): New variable.
31355         (modcache): Renamed from do_cache.
31356         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31357         abbreviate unnecessarily.
31358         (have_associative): New variable.
31359         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31360         way also for ksh and zsh.
31361         (func_init_sed_convert_to_cache_statements): New function, extracted
31362         from func_cache_lookup_module. Add support for associative arrays.
31363         Don't set the c_MODULE_cached variable here. Ignore all lines before
31364         the first field header. Remove only the final newline, not all trailing
31365         newlines. Support empty fields correctly. Limit the use of 'eval' to
31366         assignments.
31367         (func_get_description, func_get_status, func_get_notice,
31368         func_get_applicability, func_get_filelist, func_get_dependencies,
31369         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31370         func_get_automake_snippet, func_get_include_directive,
31371         func_get_link_directive, func_get_license, func_get_maintainer):
31372         Update documentation. List the unoptimized code first. Add support for
31373         associative arrays. Limit the use of 'eval' to assignments.
31374         (func_get_applicability): Undo stylistic pessimisations.
31375         (func_get_automake_snippet, func_get_include_directive): Reduce code
31376         duplication.
31377         (func_modules_transitive_closure, func_modules_add_dummy,
31378         func_modules_notice, func_modules_to_filelist, func_add_file,
31379         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31380         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31381         func_create_testdir, func_create_megatestdir): Update documentation.
31382
31383 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31384
31385         * gnulib-tool (func_cache_lookup_module): Store the module name
31386         belonging to the cache variable; error out if two different
31387         module names map to the same cache variable name.
31388
31389 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31390
31391         gnulib-tool: Make caching optional.
31392         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31393         Update matching short versions of --no-changelog.
31394         (func_usage): Update.
31395         (sed_extract_cache_prog): Renamed from ...
31396         (sed_extract_prog): ... this; revert to old extraction script.
31397         (func_get_description, func_get_status)
31398         (func_get_notice, func_get_applicability, func_get_filelist)
31399         (func_get_dependencies, func_get_autoconf_early_snippet)
31400         (func_get_autoconf_snippet, func_get_automake_snippet)
31401         (func_get_include_directive, func_get_link_directive)
31402         (func_get_license, func_get_maintainer): If $do_cache is false,
31403         use old, non-caching extraction scripts.
31404         Suggestion by Bruno Haible.
31405
31406 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31407
31408         gnulib-tool: cache module metainformation.
31409         * gnulib-tool (sed_extract_prog): Match newline before each
31410         header, and rewrite header to a shell variable suffix.
31411         (func_cache_var, func_cache_lookup_module): New functions,
31412         to turn a module name into a cache variable prefix, and to
31413         look up and cache module metainformation.
31414         (func_get_description, func_get_status)
31415         (func_get_notice, func_get_applicability, func_get_filelist)
31416         (func_get_dependencies, func_get_autoconf_early_snippet)
31417         (func_get_autoconf_snippet, func_get_automake_snippet)
31418         (func_get_include_directive, func_get_link_directive)
31419         (func_get_license, func_get_maintainer): Use
31420         func_cache_lookup_module.
31421
31422 2010-02-07  Bruno Haible  <bruno@clisp.org>
31423
31424         fnctl: Fix missing dependency.
31425         * modules/fcntl (Depends-on): Add getdtablesize.
31426         Reported by John W. Eaton <jwe@gnu.org>.
31427
31428 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31429
31430         Argp: fix recognition of short alias options.
31431
31432         * lib/argp-parse.c (convert_options): Fix improper use of
31433         `|' between character values.
31434         * tests/test-argp.c (group1_option): New alias option
31435         --read (-r).
31436         (group1_parser): Special handling for 'r'.
31437         (test15): New test case.
31438         (test_fun): Add test15.
31439         * tests/test-argp-2.sh: Update expected --help and --usage
31440         outputs.
31441
31442 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31443
31444         * tests/test-argp.c: Fix indentation.
31445
31446 2010-02-04  Eric Blake  <ebb9@byu.net>
31447
31448         gettimeofday: expose type of second argument
31449         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
31450         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
31451         * tests/test-gettimeofday.c: Use it to silence warning.
31452         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
31453         the issue.
31454
31455 2010-02-03  Jim Meyering  <meyering@redhat.com>
31456
31457         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
31458         * lib/regcomp.c (TYPE_SIGNED): Define.
31459         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
31460
31461         regcomp.c: avoid a new -Wshadow warning
31462         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
31463
31464 2010-02-01  Jim Meyering  <meyering@redhat.com>
31465
31466         removing useless parentheses in cpp #define directives
31467         For motivation, see commit c0221df4, "define STREQ(a,b)
31468         consistently, removing useless parentheses"
31469         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
31470         * lib/mountlist.c (MNT_IGNORE): Likewise.
31471         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
31472
31473 2010-02-01  Eric Blake  <ebb9@byu.net>
31474
31475         sys_time: use link-warning
31476         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
31477         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
31478         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
31479         * modules/sys_time (Depends-on): Add warn-on-use.
31480         (Makefile.am): Always build replacement.
31481         (configure.ac): Update substitutions.
31482         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
31483         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
31484         bother with SYS_TIME_H.
31485         * modules/gettimeofday (configure.ac): Declare indicator.
31486         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
31487         in use.
31488
31489         closein-tests: silence compiler warning
31490         * tests/test-closein.c (main): Ignore fread result.
31491         * modules/closein-tests (Depends-on): Add ignore-value.
31492
31493         tests: silence warning about system return
31494         * tests/test-areadlink-with-size.c (main): Ignore system result.
31495         * tests/test-areadlink.c (main): Likewise.
31496         * tests/test-areadlinkat-with-size.c (main): Likewise.
31497         * tests/test-areadlinkat.c (main): Likewise.
31498         * tests/test-canonicalize-lgpl.c (main): Likewise.
31499         * tests/test-canonicalize.c (main): Likewise.
31500         * tests/test-chown.c (main): Likewise.
31501         * tests/test-fchownat.c (main): Likewise.
31502         * tests/test-fdutimensat.c (main): Likewise.
31503         * tests/test-fstatat.c (main): Likewise.
31504         * tests/test-futimens.c (main): Likewise.
31505         * tests/test-lchown.c (main): Likewise.
31506         * tests/test-link.c (main): Likewise.
31507         * tests/test-linkat.c (main): Likewise.
31508         * tests/test-lstat.c (main): Likewise.
31509         * tests/test-mkdir.c (main): Likewise.
31510         * tests/test-mkdirat.c (main): Likewise.
31511         * tests/test-mkfifo.c (main): Likewise.
31512         * tests/test-mkfifoat.c (main): Likewise.
31513         * tests/test-mknod.c (main): Likewise.
31514         * tests/test-readlink.c (main): Likewise.
31515         * tests/test-remove.c (main): Likewise.
31516         * tests/test-rename.c (main): Likewise.
31517         * tests/test-renameat.c (main): Likewise.
31518         * tests/test-rmdir.c (main): Likewise.
31519         * tests/test-symlink.c (main): Likewise.
31520         * tests/test-symlinkat.c (main): Likewise.
31521         * tests/test-unlink.c (main): Likewise.
31522         * tests/test-unlinkat.c (main): Likewise.
31523         * tests/test-utimens.c (main): Likewise.
31524         * tests/test-utimensat.c (main): Likewise.
31525         * modules/areadlink-tests (Depends-on): Add ignore-value.
31526         * modules/areadlink-with-size-tests (Depends-on): Likewise.
31527         * modules/areadlinkat-tests (Depends-on): Likewise.
31528         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
31529         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31530         * modules/canonicalize-tests (Depends-on): Likewise.
31531         * modules/chown-tests (Depends-on): Likewise.
31532         * modules/fdutimensat-tests (Depends-on): Likewise.
31533         * modules/futimens-tests (Depends-on): Likewise.
31534         * modules/lchown-tests (Depends-on): Likewise.
31535         * modules/link-tests (Depends-on): Likewise.
31536         * modules/linkat-tests (Depends-on): Likewise.
31537         * modules/lstat-tests (Depends-on): Likewise.
31538         * modules/mkdir-tests (Depends-on): Likewise.
31539         * modules/mkfifo-tests (Depends-on): Likewise.
31540         * modules/mkfifoat-tests (Depends-on): Likewise.
31541         * modules/mknod-tests (Depends-on): Likewise.
31542         * modules/openat-tests (Depends-on): Likewise.
31543         * modules/readlink-tests (Depends-on): Likewise.
31544         * modules/remove-tests (Depends-on): Likewise.
31545         * modules/rename-tests (Depends-on): Likewise.
31546         * modules/renameat-tests (Depends-on): Likewise.
31547         * modules/rmdir-tests (Depends-on): Likewise.
31548         * modules/symlink-tests (Depends-on): Likewise.
31549         * modules/symlinkat-tests (Depends-on): Likewise.
31550         * modules/unlink-tests (Depends-on): Likewise.
31551         * modules/utimens-tests (Depends-on): Likewise.
31552         * modules/utimensat-tests (Depends-on): Likewise.
31553
31554 2010-01-31  Bruno Haible  <bruno@clisp.org>
31555
31556         Perform the same test for many <math.h> functions.
31557         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
31558         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
31559         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
31560         of gl_MATHFUNC.
31561         * modules/acos (configure.ac): Likewise.
31562         * modules/asin (configure.ac): Likewise.
31563         * modules/atan (configure.ac): Likewise.
31564         * modules/atan2 (configure.ac): Likewise.
31565         * modules/cbrt (configure.ac): Likewise.
31566         * modules/copysign (configure.ac): Likewise.
31567         * modules/cos (configure.ac): Likewise.
31568         * modules/cosh (configure.ac): Likewise.
31569         * modules/erf (configure.ac): Likewise.
31570         * modules/erfc (configure.ac): Likewise.
31571         * modules/exp (configure.ac): Likewise.
31572         * modules/fmod (configure.ac): Likewise.
31573         * modules/hypot (configure.ac): Likewise.
31574         * modules/j0 (configure.ac): Likewise.
31575         * modules/j1 (configure.ac): Likewise.
31576         * modules/jn (configure.ac): Likewise.
31577         * modules/lgamma (configure.ac): Likewise.
31578         * modules/log (configure.ac): Likewise.
31579         * modules/log10 (configure.ac): Likewise.
31580         * modules/log1p (configure.ac): Likewise.
31581         * modules/pow (configure.ac): Likewise.
31582         * modules/remainder (configure.ac): Likewise.
31583         * modules/sin (configure.ac): Likewise.
31584         * modules/sinh (configure.ac): Likewise.
31585         * modules/tan (configure.ac): Likewise.
31586         * modules/tanh (configure.ac): Likewise.
31587         * modules/y0 (configure.ac): Likewise.
31588         * modules/y1 (configure.ac): Likewise.
31589         * modules/yn (configure.ac): Likewise.
31590         Suggested by Paolo Bonzini.
31591
31592 2010-01-31  Bruno Haible  <bruno@clisp.org>
31593
31594         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
31595
31596 2010-01-31  Bruno Haible  <bruno@clisp.org>
31597
31598         Work around getdelim() bug on FreeBSD 8.0.
31599         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
31600         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
31601         not work.
31602         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
31603         is 1.
31604         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
31605         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
31606         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
31607         a non-zero size.
31608         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
31609
31610 2010-01-31  Bruno Haible  <bruno@clisp.org>
31611
31612         Work around getline() bug on FreeBSD 8.0.
31613         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
31614         and a non-zero size.
31615         * tests/test-getline.c (main): Likewise.
31616         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
31617         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
31618
31619 2010-01-28  Eric Blake  <ebb9@byu.net>
31620
31621         regex: fix build failure
31622         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
31623         platforms.
31624
31625 2010-01-28  Jim Meyering  <meyering@redhat.com>
31626
31627         regex: do not ignore memory allocation failure
31628         * lib/regex_internal.c (create_cd_newstate): Detect
31629         re_node_set_init_copy failure.   Extracted from glibc commit
31630         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31631
31632         regex: sync more white-space changes from libc
31633         * lib/regex_internal.c: White-space only changes.
31634         * lib/regexec.c: Likewise.
31635
31636         regex: add many uses of __attribute_warn_unused_result__
31637         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
31638         * lib/regexec.c: Likewise.
31639         Extracted from a messy glibc commit.
31640
31641         regcomp.c: spelling and merge-artifact from glibc
31642         * lib/regcomp.c: Merge remainder of glibc's
31643         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31644
31645         regcomp.c: sync white-space changes from glibc
31646         * lib/regcomp.c: Merge to accommodate white space
31647         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
31648
31649         regcomp.c: do not ignore internal return values
31650         * lib/regcomp.c: Do not ignore internal return values.
31651         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
31652         but without its white-space changes and spelling fixes.
31653
31654         regex_internal.h: define __attribute_warn_unused_result__
31655         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
31656
31657         maint: add a syntax-check rule to check for vulnerable Makefile.in
31658         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
31659
31660 2010-01-27  Jim Meyering  <meyering@redhat.com>
31661
31662         ncftpput-ftp: clean up spaces
31663         * build-aux/ncftpput-ftp: Make Copyright line consistent.
31664         Remove trailing blanks.
31665
31666 2010-01-27  Simon Josefsson  <simon@josefsson.org>
31667
31668         * build-aux/git-version-gen: Fix copyright statement.
31669         * build-aux/gnupload: Likewise.
31670         * tests/test-arcfour.c: Likewise.
31671         * tests/test-arctwo.c: Likewise.
31672         * tests/test-count-one-bits.c: Likewise.
31673         * tests/test-crc.c: Likewise.
31674         * tests/test-des.c: Likewise.
31675         * tests/test-gc-arcfour.c: Likewise.
31676         * tests/test-gc-arctwo.c: Likewise.
31677         * tests/test-gc-des.c: Likewise.
31678         * tests/test-gc-hmac-md5.c: Likewise.
31679         * tests/test-gc-hmac-sha1.c: Likewise.
31680         * tests/test-gc-md2.c: Likewise.
31681         * tests/test-gc-md4.c: Likewise.
31682         * tests/test-gc-md5.c: Likewise.
31683         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31684         * tests/test-gc-rijndael.c: Likewise.
31685         * tests/test-gc-sha1.c: Likewise.
31686         * tests/test-gc.c: Likewise.
31687         * tests/test-gethostname.c: Likewise.
31688         * tests/test-gettimeofday.c: Likewise.
31689         * tests/test-hash.c: Likewise.
31690         * tests/test-hmac-md5.c: Likewise.
31691         * tests/test-hmac-sha1.c: Likewise.
31692         * tests/test-md2.c: Likewise.
31693         * tests/test-md4.c: Likewise.
31694         * tests/test-md5.c: Likewise.
31695         * tests/test-memchr.c: Likewise.
31696         * tests/test-memchr2.c: Likewise.
31697         * tests/test-memcmp.c: Likewise.
31698         * tests/test-memmem.c: Likewise.
31699         * tests/test-memrchr.c: Likewise.
31700         * tests/test-rawmemchr.c: Likewise.
31701         * tests/test-read-file.c: Likewise.
31702         * tests/test-rijndael.c: Likewise.
31703         * tests/test-sockets.c: Likewise.
31704         * tests/test-strchrnul.c: Likewise.
31705         * tests/test-strstr.c: Likewise.
31706         * tests/test-strtod.c: Likewise.
31707         * build-aux/ncftpput-ftp: Likewise.
31708
31709 2010-01-26  Eric Blake  <ebb9@byu.net>
31710
31711         ignore-value: update recommended header name
31712         * modules/ignore-value (Include): Only use <> for headers that
31713         exist in glibc.
31714
31715 2010-01-26  Jim Meyering  <meyering@redhat.com>
31716
31717         test-userspec.c: avoid compiler warnings
31718         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
31719         and "initialization discards qualifiers..." warnings.
31720         Put the first "uid" in its own scope, and make char* members "const".
31721
31722 2010-01-25  Bruno Haible  <bruno@clisp.org>
31723
31724         gnulib-tool: Make warning diagnostics consistent.
31725         * gnulib-tool (func_warning): New function.
31726         Use it everywhere where gnulib-tool produces output to stderr and it is
31727         not a fatal error.
31728
31729 2010-01-25  Bruno Haible  <bruno@clisp.org>
31730
31731         Fix test dependencies.
31732         * modules/xstrtol-tests (Depends-on): Add inttypes.
31733         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
31734
31735 2010-01-25 Pádraig Brady <P@draigBrady.com>
31736
31737         syntax-check: detect incorrect boolean macro values in config.h
31738         * modules/maintainer-makefile (configure.ac): Parameterize the location
31739         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
31740         The logic is from Eric Blake and the location indicated by Jim Meyering.
31741         Note the more natural CONFIG_HEADER name is prohibited by automake
31742         for backwards compatibility reasons.
31743         * top/maint.mk (sc_Wundef_boolean): New rule.
31744
31745 2010-01-25  Jim Meyering  <meyering@redhat.com>
31746
31747         bootstrap: detect MacOS 10.6's shasum, too
31748         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
31749         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
31750
31751 2010-01-23  Jim Meyering  <meyering@redhat.com>
31752
31753         xstrtoll: new module
31754         * modules/xstrtoll: New file.
31755         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
31756         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
31757         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
31758         ./configure fails if you use this module and lack "long long".
31759         * modules/xstrtoll-tests: New module.
31760         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
31761         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
31762         new init.sh-based test framework.
31763
31764 2010-01-24  Bruno Haible  <bruno@clisp.org>
31765
31766         Tests for module 'yn'.
31767         * modules/yn-tests: New file.
31768         * tests/test-yn.c: New file.
31769
31770         Tests for module 'y1'.
31771         * modules/y1-tests: New file.
31772         * tests/test-y1.c: New file.
31773
31774         Tests for module 'y0'.
31775         * modules/y0-tests: New file.
31776         * tests/test-y0.c: New file.
31777
31778         Tests for module 'tanh'.
31779         * modules/tanh-tests: New file.
31780         * tests/test-tanh.c: New file.
31781
31782         Tests for module 'tan'.
31783         * modules/tan-tests: New file.
31784         * tests/test-tan.c: New file.
31785
31786         Tests for module 'sqrt'.
31787         * modules/sqrt-tests: New file.
31788         * tests/test-sqrt.c: New file.
31789
31790         Tests for module 'sinh'.
31791         * modules/sinh-tests: New file.
31792         * tests/test-sinh.c: New file.
31793
31794         Tests for module 'sin'.
31795         * modules/sin-tests: New file.
31796         * tests/test-sin.c: New file.
31797
31798         Tests for module 'rint'.
31799         * modules/rint-tests: New file.
31800         * tests/test-rint.c: New file.
31801
31802         Tests for module 'remainder'.
31803         * modules/remainder-tests: New file.
31804         * tests/test-remainder.c: New file.
31805
31806         Tests for module 'pow'.
31807         * modules/pow-tests: New file.
31808         * tests/test-pow.c: New file.
31809
31810         Tests for module 'nextafter'.
31811         * modules/nextafter-tests: New file.
31812         * tests/test-nextafter.c: New file.
31813
31814         Tests for module 'modf'.
31815         * modules/modf-tests: New file.
31816         * tests/test-modf.c: New file.
31817
31818         Tests for module 'logb'.
31819         * modules/logb-tests: New file.
31820         * tests/test-logb.c: New file.
31821
31822         Tests for module 'log1p'.
31823         * modules/log1p-tests: New file.
31824         * tests/test-log1p.c: New file.
31825
31826         Tests for module 'log10'.
31827         * modules/log10-tests: New file.
31828         * tests/test-log10.c: New file.
31829
31830         Tests for module 'log'.
31831         * modules/log-tests: New file.
31832         * tests/test-log.c: New file.
31833
31834         Tests for module 'lgamma'.
31835         * modules/lgamma-tests: New file.
31836         * tests/test-lgamma.c: New file.
31837
31838         Tests for module 'ldexp'.
31839         * modules/ldexp-tests: New file.
31840         * tests/test-ldexp.c: New file.
31841
31842         Tests for module 'jn'.
31843         * modules/jn-tests: New file.
31844         * tests/test-jn.c: New file.
31845
31846         Tests for module 'j1'.
31847         * modules/j1-tests: New file.
31848         * tests/test-j1.c: New file.
31849
31850         Tests for module 'j0'.
31851         * modules/j0-tests: New file.
31852         * tests/test-j0.c: New file.
31853
31854         Tests for module 'hypot'.
31855         * modules/hypot-tests: New file.
31856         * tests/test-hypot.c: New file.
31857
31858         Tests for module 'fmod'.
31859         * modules/fmod-tests: New file.
31860         * tests/test-fmod.c: New file.
31861
31862         Tests for module 'fabs'.
31863         * modules/fabs-tests: New file.
31864         * tests/test-fabs.c: New file.
31865
31866         Tests for module 'exp'.
31867         * modules/exp-tests: New file.
31868         * tests/test-exp.c: New file.
31869
31870         Tests for module 'erfc'.
31871         * modules/erfc-tests: New file.
31872         * tests/test-erfc.c: New file.
31873
31874         Tests for module 'erf'.
31875         * modules/erf-tests: New file.
31876         * tests/test-erf.c: New file.
31877
31878         Tests for module 'cosh'.
31879         * modules/cosh-tests: New file.
31880         * tests/test-cosh.c: New file.
31881
31882         Tests for module 'cos'.
31883         * modules/cos-tests: New file.
31884         * tests/test-cos.c: New file.
31885
31886         Tests for module 'copysign'.
31887         * modules/copysign-tests: New file.
31888         * tests/test-copysign.c: New file.
31889
31890         Tests for module 'cbrt'.
31891         * modules/cbrt-tests: New file.
31892         * tests/test-cbrt.c: New file.
31893
31894         Tests for module 'atan2'.
31895         * modules/atan2-tests: New file.
31896         * tests/test-atan2.c: New file.
31897
31898         Tests for module 'atan'.
31899         * modules/atan-tests: New file.
31900         * tests/test-atan.c: New file.
31901
31902         Tests for module 'asin'.
31903         * modules/asin-tests: New file.
31904         * tests/test-asin.c: New file.
31905
31906         Tests for module 'acos'.
31907         * modules/acos-tests: New file.
31908         * tests/test-acos.c: New file.
31909
31910 2010-01-24  Bruno Haible  <bruno@clisp.org>
31911
31912         Fix tests for common <math.h> functions.
31913         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
31914         code snippet that references the function pointer, rather than merely
31915         calling the function. Substitute the FUNC_LIBM variable.
31916         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
31917         * modules/acos (configure.ac): Likewise.
31918         * modules/asin (configure.ac): Likewise.
31919         * modules/atan (configure.ac): Likewise.
31920         * modules/atan2 (configure.ac): Likewise.
31921         * modules/cbrt (configure.ac): Likewise.
31922         * modules/copysign (configure.ac): Likewise.
31923         * modules/cos (configure.ac): Likewise.
31924         * modules/cosh (configure.ac): Likewise.
31925         * modules/erf (configure.ac): Likewise.
31926         * modules/erfc (configure.ac): Likewise.
31927         * modules/exp (configure.ac): Likewise.
31928         * modules/fabs (configure.ac): Likewise.
31929         * modules/fmod (configure.ac): Likewise.
31930         * modules/hypot (configure.ac): Likewise.
31931         * modules/j0 (configure.ac): Likewise.
31932         * modules/j1 (configure.ac): Likewise.
31933         * modules/jn (configure.ac): Likewise.
31934         * modules/ldexp (configure.ac): Likewise.
31935         * modules/lgamma (configure.ac): Likewise.
31936         * modules/log (configure.ac): Likewise.
31937         * modules/log10 (configure.ac): Likewise.
31938         * modules/log1p (configure.ac): Likewise.
31939         * modules/logb (configure.ac): Likewise.
31940         * modules/modf (configure.ac): Likewise.
31941         * modules/nextafter (configure.ac): Likewise.
31942         * modules/pow (configure.ac): Likewise.
31943         * modules/remainder (configure.ac): Likewise.
31944         * modules/rint (configure.ac): Likewise.
31945         * modules/sin (configure.ac): Likewise.
31946         * modules/sinh (configure.ac): Likewise.
31947         * modules/tan (configure.ac): Likewise.
31948         * modules/tanh (configure.ac): Likewise.
31949         * modules/y0 (configure.ac): Likewise.
31950         * modules/y1 (configure.ac): Likewise.
31951         * modules/yn (configure.ac): Likewise.
31952
31953 2010-01-24  Bruno Haible  <bruno@clisp.org>
31954
31955         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
31956         * tests/test-acosl.c (x): New variable.
31957         (main): Store argument in x and fetch it from x.
31958         * tests/test-asinl.c (x): New variable.
31959         (main): Store argument in x and fetch it from x.
31960         * tests/test-atanl.c (x): New variable.
31961         (main): Store argument in x and fetch it from x.
31962         * tests/test-cosl.c (x): New variable.
31963         (main): Store argument in x and fetch it from x.
31964         * tests/test-expl.c (x): New variable.
31965         (main): Store argument in x and fetch it from x.
31966         * tests/test-logl.c (x): New variable.
31967         (main): Store argument in x and fetch it from x.
31968         * tests/test-sinl.c (x): New variable.
31969         (main): Store argument in x and fetch it from x.
31970         * tests/test-sqrtl.c (x): New variable.
31971         (main): Store argument in x and fetch it from x.
31972         * tests/test-tanl.c (x): New variable.
31973         (main): Store argument in x and fetch it from x.
31974
31975 2010-01-24  Bruno Haible  <bruno@clisp.org>
31976
31977         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
31978         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
31979         assignments to the initial TESTS_ENVIRONMENT.
31980         * doc/gnulib.texi (Unit test modules): Document it.
31981         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
31982         TESTS_ENVIRONMENT.
31983         * modules/btowc-tests (Makefile.am): Likewise.
31984         * modules/c-stack-tests (Makefile.am): Likewise.
31985         * modules/c-strcase-tests (Makefile.am): Likewise.
31986         * modules/copy-file-tests (Makefile.am): Likewise.
31987         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
31988         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
31989         * modules/mbrtowc-tests (Makefile.am): Likewise.
31990         * modules/mbscasecmp-tests (Makefile.am): Likewise.
31991         * modules/mbscasestr-tests (Makefile.am): Likewise.
31992         * modules/mbschr-tests (Makefile.am): Likewise.
31993         * modules/mbscspn-tests (Makefile.am): Likewise.
31994         * modules/mbsinit-tests (Makefile.am): Likewise.
31995         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
31996         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
31997         * modules/mbspbrk-tests (Makefile.am): Likewise.
31998         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
31999         * modules/mbsrchr-tests (Makefile.am): Likewise.
32000         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32001         * modules/mbsspn-tests (Makefile.am): Likewise.
32002         * modules/mbsstr-tests (Makefile.am): Likewise.
32003         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32004         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32005         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32006         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32007         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32008         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32009         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32010         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32011         * modules/wcrtomb-tests (Makefile.am): Likewise.
32012         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32013         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32014         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32015         assignments from TESTS_ENVIRONMENT.
32016         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32017         augmentation.
32018         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32019         * modules/atexit-tests (Makefile.am): Likewise.
32020         * modules/binary-io-tests (Makefile.am): Likewise.
32021         * modules/closein-tests (Makefile.am): Likewise.
32022         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32023         * modules/exclude-tests (Makefile.am): Likewise.
32024         * modules/fflush-tests (Makefile.am): Likewise.
32025         * modules/fpending-tests (Makefile.am): Likewise.
32026         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32027         * modules/freadahead-tests (Makefile.am): Likewise.
32028         * modules/freadptr-tests (Makefile.am): Likewise.
32029         * modules/freadseek-tests (Makefile.am): Likewise.
32030         * modules/fseek-tests (Makefile.am): Likewise.
32031         * modules/fseeko-tests (Makefile.am): Likewise.
32032         * modules/ftell-tests (Makefile.am): Likewise.
32033         * modules/ftello-tests (Makefile.am): Likewise.
32034         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32035         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32036         * modules/lseek-tests (Makefile.am): Likewise.
32037         * modules/parse-duration-tests (Makefile.am): Likewise.
32038         * modules/perror-tests (Makefile.am): Likewise.
32039         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32040         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32041         * modules/pipe-tests (Makefile.am): Likewise.
32042         * modules/pread-tests (Makefile.am): Likewise.
32043         * modules/printf-posix-tests (Makefile.am): Likewise.
32044         * modules/select-tests (Makefile.am): Likewise.
32045         * modules/sigpipe-tests (Makefile.am): Likewise.
32046         * modules/tsearch-tests (Makefile.am): Likewise.
32047         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32048         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32049         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32050         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32051         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32052         * modules/version-etc-tests (Makefile.am): Likewise.
32053         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32054         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32055         * modules/xalloc-die-tests (Makefile.am): Likewise.
32056         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32057         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32058         * modules/xstrtol-tests (Makefile.am): Likewise.
32059         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32060         * modules/yesno-tests (Makefile.am): Likewise.
32061         Suggested by Jim Meyering.
32062
32063 2010-01-24  Bruno Haible  <bruno@clisp.org>
32064
32065         More documentation.
32066         * doc/gnulib.texi (Writing modules): New chapter.
32067         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32068         the new chapter.
32069
32070 2010-01-24  Jim Meyering  <meyering@redhat.com>
32071
32072         maint.mk: do not prepend "./" after filtering
32073         * top/maint.mk (_prepend_srcdir_prefix): New variable
32074         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32075         "./" when $(srcdir) is ".".
32076
32077         define STREQ(a,b) consistently, removing useless parentheses
32078         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32079         since the only risk is that "a" or "b" contains an unparenthesized
32080         comma, but if either did that, STREQ would have 3 or more arguments.
32081         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32082         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32083         * lib/hash-triple.c (STREQ): Likewise.
32084         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32085         * lib/getugroups.c (STREQ): Likewise.
32086
32087 2010-01-23  Jim Meyering  <meyering@redhat.com>
32088
32089         maint.mk: fix syntax-check in a non-srcdir build directory
32090         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32091         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32092
32093 2010-01-22  Jim Meyering  <meyering@redhat.com>
32094
32095         userspec: add unit tests
32096         * tests/test-userspec.c: New file.
32097         * modules/userspec-tests: Likewise.
32098
32099 2010-01-21  Jim Meyering  <meyering@redhat.com>
32100
32101         maint.mk: handle source file names containing "." robustly
32102         * top/maint.mk (_dot_escaped_srcdir): Define.
32103         (VC_LIST): Use it in LHS of sed substitution.
32104
32105 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32106
32107         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32108         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32109         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32110         from a non-srcdir build.
32111
32112 2010-01-20  Eric Blake  <ebb9@byu.net>
32113
32114         warn-on-use: use instead of link-warning
32115         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32116         * modules/unistd (Depends-on, Makefile.am): Likewise.
32117         * modules/arpa_inet (Depends-on): Replace link-warning with
32118         warn-on-use.
32119         (Makefile.am): Update rules accordingly.
32120         * modules/ctype (Depends-on, Makefile.am): Likewise.
32121         * modules/dirent (Depends-on, Makefile.am): Likewise.
32122         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32123         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32124         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32125         * modules/locale (Depends-on, Makefile.am): Likewise.
32126         * modules/math (Depends-on, Makefile.am): Likewise.
32127         * modules/search (Depends-on, Makefile.am): Likewise.
32128         * modules/signal (Depends-on, Makefile.am): Likewise.
32129         * modules/spawn (Depends-on, Makefile.am): Likewise.
32130         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32131         * modules/string (Depends-on, Makefile.am): Likewise.
32132         * modules/strings (Depends-on, Makefile.am): Likewise.
32133         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32134         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32135         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32136         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32137         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32138         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32139         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32140         * modules/wchar (Depends-on, Makefile.am): Likewise.
32141         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32142         should be poisoned.
32143         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32144         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32145         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32146         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32147         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32148         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32149         * m4/math_h.m4 (gl_MATH_H): Likewise.
32150         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32151         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32152         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32153         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32154         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32155         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32156         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32157         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32158         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32159         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32160         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32161         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32162         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32163         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32164         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32165         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32166         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32167         GL_LINK_WARNING.
32168         * lib/ctype.in.h: Likewise.
32169         * lib/dirent.in.h: Likewise.
32170         * lib/fcntl.in.h: Likewise.
32171         * lib/inttypes.in.h: Likewise.
32172         * lib/langinfo.in.h: Likewise.
32173         * lib/locale.in.h: Likewise.
32174         * lib/math.in.h: Likewise.
32175         * lib/search.in.h: Likewise.
32176         * lib/signal.in.h: Likewise.
32177         * lib/spawn.in.h: Likewise.
32178         * lib/stdio.in.h: Likewise.
32179         * lib/stdlib.in.h: Likewise.
32180         * lib/string.in.h: Likewise.
32181         * lib/strings.in.h: Likewise.
32182         * lib/sys_file.in.h: Likewise.
32183         * lib/sys_ioctl.in.h: Likewise.
32184         * lib/sys_select.in.h: Likewise.
32185         * lib/sys_socket.in.h: Likewise.
32186         * lib/sys_stat.in.h: Likewise.
32187         * lib/sys_times.in.h: Likewise.
32188         * lib/sys_utsname.in.h: Likewise.
32189         * lib/unistd.in.h: Likewise.
32190         * lib/wchar.in.h: Likewise.
32191
32192 2010-01-20  Bruno Haible  <bruno@clisp.org>
32193
32194         Avoid duplicate -lm.
32195         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32196         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32197         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32199         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32200         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32201         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32202         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32203         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32204         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32205         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32206         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32207         Reported by Paolo Bonzini.
32208
32209 2010-01-19  Bruno Haible  <bruno@clisp.org>
32210
32211         langinfo, nl_langinfo: Relicense under LGPLv2+.
32212         * modules/langinfo (License): Change to LGPLv2+.
32213         * modules/nl_langinfo (License): Likewise.
32214         Patch by David Lutterkort <lutter@redhat.com>.
32215
32216 2010-01-19  Bruno Haible  <bruno@clisp.org>
32217
32218         Avoid compilation error with cc on OSF/1 5.1.
32219         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32220         statement, not before.
32221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32222
32223 2010-01-18  Bruno Haible  <bruno@clisp.org>
32224
32225         Avoid a link error due to the __printf__ symbol.
32226         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32227         and 2.6.x.
32228         (__format__, __printf__): Remove definitions.
32229         * lib/argp-fmtstream.h: Likewise.
32230         * lib/argp.h: Likewise.
32231         * lib/error.h: Likewise.
32232         * lib/vasnprintf.h: Likewise.
32233         * lib/xprintf.h: Likewise.
32234         * lib/xvasprintf.h: Likewise.
32235         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32236
32237 2010-01-18  Bruno Haible  <bruno@clisp.org>
32238
32239         Tests for module 'tanl'.
32240         * modules/tanl-tests: New file.
32241         * tests/test-tanl.c: New file.
32242
32243         Tests for module 'sqrtl'.
32244         * modules/sqrtl-tests: New file.
32245         * tests/test-sqrtl.c: New file.
32246
32247         Tests for module 'sinl'.
32248         * modules/sinl-tests: New file.
32249         * tests/test-sinl.c: New file.
32250
32251         Tests for module 'logl'.
32252         * modules/logl-tests: New file.
32253         * tests/test-logl.c: New file.
32254
32255         Tests for module 'expl'.
32256         * modules/expl-tests: New file.
32257         * tests/test-expl.c: New file.
32258
32259         Tests for module 'cosl'.
32260         * modules/cosl-tests: New file.
32261         * tests/test-cosl.c: New file.
32262
32263         Tests for module 'atanl'.
32264         * modules/atanl-tests: New file.
32265         * tests/test-atanl.c: New file.
32266
32267         Tests for module 'asinl'.
32268         * modules/asinl-tests: New file.
32269         * tests/test-asinl.c: New file.
32270
32271         Tests for module 'acosl'.
32272         * modules/acosl-tests: New file.
32273         * tests/test-acosl.c: New file.
32274
32275         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32276         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32277         tanl): Use the standard gnulib idiom.
32278         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32279         * lib/sinl.c: Likewise.
32280         * lib/tanl.c: Don't include trigl.c.
32281         (kernel_tanl): Make static.
32282         * lib/sincosl.c: Include trigl.h first.
32283         * lib/trigl.c: Likewise.
32284         * m4/acosl.m4: New file.
32285         * m4/asinl.m4: New file.
32286         * m4/atanl.m4: New file.
32287         * m4/cosl.m4: New file.
32288         * m4/expl.m4: New file.
32289         * m4/logl.m4: New file.
32290         * m4/sinl.m4: New file.
32291         * m4/sqrtl.m4: New file.
32292         * m4/tanl.m4: New file.
32293         * m4/mathl.m4: Remove file.
32294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32295         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32296         Don't initialize GNULIB_MATHL.
32297         * modules/acosl: New file.
32298         * modules/asinl: New file.
32299         * modules/atanl: New file.
32300         * modules/cosl: New file.
32301         * modules/expl: New file.
32302         * modules/logl: New file.
32303         * modules/sinl: New file.
32304         * modules/sqrtl: New file.
32305         * modules/tanl: New file.
32306         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32307         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32308         substitute GNULIB_MATHL.
32309         * modules/mathl: Rewritten.
32310         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32311         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32312         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32313         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32314         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32315         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32316         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32317         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32318         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32319
32320 2010-01-18  Bruno Haible  <bruno@clisp.org>
32321
32322         sqrt: Make gl_FUNC_SQRT requirable.
32323         * m4/sqrt.m4: New file.
32324         * modules/sqrt (Files): Add it.
32325         (configure.ac): Invoke gl_FUNC_SQRT.
32326
32327 2010-01-18  Bruno Haible  <bruno@clisp.org>
32328
32329         New modules for common <math.h> functions.
32330         * m4/mathfunc.m4: New file.
32331         * modules/acos: New file.
32332         * modules/asin: New file.
32333         * modules/atan: New file.
32334         * modules/atan2: New file.
32335         * modules/cbrt: New file.
32336         * modules/copysign: New file.
32337         * modules/cos: New file.
32338         * modules/cosh: New file.
32339         * modules/erf: New file.
32340         * modules/erfc: New file.
32341         * modules/exp: New file.
32342         * modules/fabs: New file.
32343         * modules/fmod: New file.
32344         * modules/hypot: New file.
32345         * modules/j0: New file.
32346         * modules/j1: New file.
32347         * modules/jn: New file.
32348         * modules/ldexp: New file.
32349         * modules/lgamma: New file.
32350         * modules/log: New file.
32351         * modules/log10: New file.
32352         * modules/log1p: New file.
32353         * modules/logb: New file.
32354         * modules/modf: New file.
32355         * modules/nextafter: New file.
32356         * modules/pow: New file.
32357         * modules/remainder: New file.
32358         * modules/rint: New file.
32359         * modules/sin: New file.
32360         * modules/sinh: New file.
32361         * modules/sqrt: New file.
32362         * modules/tan: New file.
32363         * modules/tanh: New file.
32364         * modules/y0: New file.
32365         * modules/y1: New file.
32366         * modules/yn: New file.
32367         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32368         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32369         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32370         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32371         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32372         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32373         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32374         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32375         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32376         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32377         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32378         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32379         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32380         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32381         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32382         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32383         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32384         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32385         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32386         * doc/posix-functions/log.texi: Mention the 'log' module.
32387         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32388         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32389         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32390         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32391         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32392         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32393         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32394         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32395         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32396         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32397         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32398         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32399         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32400         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32401         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32402         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32403
32404 2010-01-18  Jim Meyering  <meyering@redhat.com>
32405
32406         ignore-value: relax license to LGPLv2+
32407         * modules/ignore-value (License): Relax to LGPLv2+.
32408
32409         getdate: don't leak when TZ contains two or more '"'s
32410         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32411         double quote in TZ after the first one.
32412
32413         readtokens: do not leak internal token_lengths buffer
32414         * lib/readtokens.c (readtokens): Free the local, lengths,
32415         when the supplied "token_lengths" parameter is NULL.
32416
32417 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32418
32419         Fix a couple of missing LIBTHREAD link failures on AIX.
32420         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32421         $(LIBTHREAD).
32422         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32423
32424         Link test-poll against INET_PTON_LIB.
32425         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32426         for inet_pton on Solaris 10.
32427
32428 2010-01-17  Bruno Haible  <bruno@clisp.org>
32429
32430         unistdio/*-sprintf: Fix typo in module description.
32431         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32432         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32433         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32434         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32435         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32436         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
32437         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
32438         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32439
32440 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32441
32442         gnulib-tool: fix filelist for AIX, HP-UX ksh.
32443         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
32444         variables in shell case patterns, for AIX and HP-UX ksh.
32445
32446         Split large sed scripts, for HP-UX sed.
32447         * modules/stdio: Split sed scripts around 50 sed commands,
32448         to avoid HP-UX limit of 99 commands, in the near future.
32449         * modules/string: Likewise.
32450         * modules/unistd: Likewise.
32451
32452         gnulib-tool: avoid writing in the current directory.
32453         * gnulib-tool (func_emit_lib_Makefile_am)
32454         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
32455         not in the current directory, so concurrent gnulib-tool
32456         instances do not interfere.
32457
32458 2010-01-16  Jim Meyering  <meyering@redhat.com>
32459
32460         doc: update users.txt
32461         * users.txt: Add grep.
32462         (diffutils, gzip): Update URLs.
32463
32464 2010-01-12  Bruno Haible  <bruno@clisp.org>
32465
32466         posix_spawn: Avoid test failure on Cygwin.
32467         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
32468         characters.
32469         Reported by Simon Josefsson.
32470
32471 2010-01-12  Bruno Haible  <bruno@clisp.org>
32472
32473         * tests/test-cond.c (main): When skipping the test, show the reason.
32474
32475 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32476
32477         * lib/striconv.c (str_cd_iconv): Avoid if before free.
32478
32479 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32480
32481         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
32482         VC_LIST_ALWAYS_EXCLUDE_REGEX.
32483
32484 2010-01-12  Eric Blake  <ebb9@byu.net>
32485
32486         build: guarantee AS_VAR_IF
32487         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
32488         (gl_AS_VAR_IF): Move...
32489         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
32490         Reported by Simon Josefsson.
32491
32492 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32493
32494         * lib/stdio.in.h: Fix typo.
32495
32496 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32497
32498         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
32499         libgpg-error.
32500
32501 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32502
32503         * tests/test-xalloc-die.sh: Use $EXEEXT.
32504
32505 2010-01-12  Simon Josefsson  <simon@josefsson.org>
32506             Bruno Haible  <bruno@clisp.org>
32507
32508         getlogin, getlogin_r: Avoid test failure.
32509         * tests/test-getlogin.c: Include <stdio.h>.
32510         (main): Skip the test when the function fails because stdin is not a
32511         tty.
32512         * tests/test-getlogin_r.c: Include <stdio.h>.
32513         (main): Skip the test when the function fails because stdin is not a
32514         tty.
32515
32516 2010-01-11  Eric Blake  <ebb9@byu.net>
32517
32518         tests: avoid more large file warnings
32519         * tests/test-fflush.c: Avoid warning about ftell use.
32520         * tests/test-fseek.c: Avoid warning about fseek use.
32521
32522 2010-01-10  Bruno Haible  <bruno@clisp.org>
32523
32524         nproc: Work better on Linux when /proc and /sys are not mounted.
32525         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
32526         as lower bound when, on glibc/Linux systems,
32527         sysconf (_SC_NPROCESSORS_CONF) returns 1.
32528         Suggested by Pádraig Brady <P@draigbrady.com>.
32529         Reported by Dmitry V. Levin <ldv@altlinux.org>.
32530
32531         nproc: Refactor.
32532         * lib/nproc.c (num_processors_via_affinity_mask): New function,
32533         extracted from num_processors.
32534         (num_processors): Call it.
32535
32536 2010-01-11  Jim Meyering  <meyering@redhat.com>
32537
32538         utimecmp: avoid new warning from upcoming gcc-4.5.0
32539         * lib/utimecmp.c (BILLION): Define using #define rather than an
32540         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
32541
32542 2010-01-11  Eric Blake  <ebb9@byu.net>
32543
32544         math: add portability warnings for classification macros
32545         * modules/math (Depends-on): Add warn-on-use.
32546         (Makefile.am): Provide new substitutions.
32547         * m4/math_h.m4 (gl_MATH_H): Require inline.
32548         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
32549         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
32550         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
32551         implement warnings.
32552
32553         unistd: warn on use of environ without module
32554         * modules/unistd (Depends-on): Add warn-on-use.
32555         (Makefile.am): Provide new substitutions.
32556         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
32557         * lib/unistd.in.h (environ): Wrap with a warning helper function.
32558
32559         stdio: warn on suspicious uses
32560         * modules/stdio (Depends-on): Add warn-on-use.
32561         (Makefile.am): Provide new substitutions.
32562         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
32563         fseeko.
32564         * lib/stdio.in.h (gets): Always warn on use.
32565         (fseek, ftell): Adjust when warnings are issued, and honor
32566         _GL_NO_LARGE_FILES as a way to silence the warning.
32567         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
32568         any warning about large file offsets.
32569         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
32570         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
32571         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
32572         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
32573         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
32574         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
32575         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
32576         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
32577
32578         warn-on-use: new module
32579         * modules/warn-on-use: New file.
32580         * build-aux/warn-on-use.h: Likewise.
32581         * m4/warn-on-use.m4: Likewise.
32582         * MODULES.html.sh (Support for building): Mention it.
32583
32584 2010-01-10  Bruno Haible  <bruno@clisp.org>
32585
32586         Tests for module 'unistr/u32-strdup'.
32587         * modules/unistr/u32-strdup-tests: New file.
32588         * tests/unistr/test-u32-strdup.c: New file.
32589
32590         Tests for module 'unistr/u16-strdup'.
32591         * modules/unistr/u16-strdup-tests: New file.
32592         * tests/unistr/test-u16-strdup.c: New file.
32593
32594         Tests for module 'unistr/u8-strdup'.
32595         * modules/unistr/u8-strdup-tests: New file.
32596         * tests/unistr/test-u8-strdup.c: New file.
32597         * tests/unistr/test-strdup.h: New file.
32598
32599         Tests for module 'unistr/u32-strncmp'.
32600         * modules/unistr/u32-strncmp-tests: New file.
32601         * tests/unistr/test-u32-strncmp.c: New file.
32602
32603         Tests for module 'unistr/u16-strncmp'.
32604         * modules/unistr/u16-strncmp-tests: New file.
32605         * tests/unistr/test-u16-strncmp.c: New file.
32606
32607         Tests for module 'unistr/u8-strncmp'.
32608         * modules/unistr/u8-strncmp-tests: New file.
32609         * tests/unistr/test-u8-strncmp.c: New file.
32610         * tests/unistr/test-strncmp.h: New file.
32611
32612         Tests for module 'unistr/u32-strcoll'.
32613         * modules/unistr/u32-strcoll-tests: New file.
32614         * tests/unistr/test-u32-strcoll.c: New file.
32615
32616         Tests for module 'unistr/u16-strcoll'.
32617         * modules/unistr/u16-strcoll-tests: New file.
32618         * tests/unistr/test-u16-strcoll.c: New file.
32619
32620         Tests for module 'unistr/u8-strcoll'.
32621         * modules/unistr/u8-strcoll-tests: New file.
32622         * tests/unistr/test-u8-strcoll.c: New file.
32623
32624         Tests for module 'unistr/u32-strcmp'.
32625         * modules/unistr/u32-strcmp-tests: New file.
32626         * tests/unistr/test-u32-strcmp.c: New file.
32627         * tests/unistr/test-u32-strcmp.h: New file.
32628
32629         Tests for module 'unistr/u16-strcmp'.
32630         * modules/unistr/u16-strcmp-tests: New file.
32631         * tests/unistr/test-u16-strcmp.c: New file.
32632         * tests/unistr/test-u16-strcmp.h: New file.
32633
32634         Tests for module 'unistr/u8-strcmp'.
32635         * modules/unistr/u8-strcmp-tests: New file.
32636         * tests/unistr/test-u8-strcmp.c: New file.
32637         * tests/unistr/test-u8-strcmp.h: New file.
32638         * tests/unistr/test-strcmp.h: New file.
32639
32640         Tests for module 'unistr/u32-strncat'.
32641         * modules/unistr/u32-strncat-tests: New file.
32642         * tests/unistr/test-u32-strncat.c: New file.
32643
32644         Tests for module 'unistr/u16-strncat'.
32645         * modules/unistr/u16-strncat-tests: New file.
32646         * tests/unistr/test-u16-strncat.c: New file.
32647
32648         Tests for module 'unistr/u8-strncat'.
32649         * modules/unistr/u8-strncat-tests: New file.
32650         * tests/unistr/test-u8-strncat.c: New file.
32651         * tests/unistr/test-strncat.h: New file.
32652
32653         Tests for module 'unistr/u32-strcat'.
32654         * modules/unistr/u32-strcat-tests: New file.
32655         * tests/unistr/test-u32-strcat.c: New file.
32656
32657         Tests for module 'unistr/u16-strcat'.
32658         * modules/unistr/u16-strcat-tests: New file.
32659         * tests/unistr/test-u16-strcat.c: New file.
32660
32661         Tests for module 'unistr/u8-strcat'.
32662         * modules/unistr/u8-strcat-tests: New file.
32663         * tests/unistr/test-u8-strcat.c: New file.
32664         * tests/unistr/test-strcat.h: New file.
32665
32666         Tests for module 'unistr/u32-stpncpy'.
32667         * modules/unistr/u32-stpncpy-tests: New file.
32668         * tests/unistr/test-u32-stpncpy.c: New file.
32669
32670         Tests for module 'unistr/u16-stpncpy'.
32671         * modules/unistr/u16-stpncpy-tests: New file.
32672         * tests/unistr/test-u16-stpncpy.c: New file.
32673
32674         Tests for module 'unistr/u8-stpncpy'.
32675         * modules/unistr/u8-stpncpy-tests: New file.
32676         * tests/unistr/test-u8-stpncpy.c: New file.
32677         * tests/unistr/test-stpncpy.h: New file.
32678
32679         Tests for module 'unistr/u32-strncpy'.
32680         * modules/unistr/u32-strncpy-tests: New file.
32681         * tests/unistr/test-u32-strncpy.c: New file.
32682
32683         Tests for module 'unistr/u16-strncpy'.
32684         * modules/unistr/u16-strncpy-tests: New file.
32685         * tests/unistr/test-u16-strncpy.c: New file.
32686
32687         Tests for module 'unistr/u8-strncpy'.
32688         * modules/unistr/u8-strncpy-tests: New file.
32689         * tests/unistr/test-u8-strncpy.c: New file.
32690         * tests/unistr/test-strncpy.h: New file.
32691
32692         Tests for module 'unistr/u32-stpcpy'.
32693         * modules/unistr/u32-stpcpy-tests: New file.
32694         * tests/unistr/test-u32-stpcpy.c: New file.
32695
32696         Tests for module 'unistr/u16-stpcpy'.
32697         * modules/unistr/u16-stpcpy-tests: New file.
32698         * tests/unistr/test-u16-stpcpy.c: New file.
32699
32700         Tests for module 'unistr/u8-stpcpy'.
32701         * modules/unistr/u8-stpcpy-tests: New file.
32702         * tests/unistr/test-u8-stpcpy.c: New file.
32703         * tests/unistr/test-stpcpy.h: New file.
32704
32705         Tests for module 'unistr/u32-strcpy'.
32706         * modules/unistr/u32-strcpy-tests: New file.
32707         * tests/unistr/test-u32-strcpy.c: New file.
32708
32709         Tests for module 'unistr/u16-strcpy'.
32710         * modules/unistr/u16-strcpy-tests: New file.
32711         * tests/unistr/test-u16-strcpy.c: New file.
32712
32713         Tests for module 'unistr/u8-strcpy'.
32714         * modules/unistr/u8-strcpy-tests: New file.
32715         * tests/unistr/test-u8-strcpy.c: New file.
32716         * tests/unistr/test-strcpy.h: New file.
32717
32718         Tests for module 'unistr/u32-strnlen'.
32719         * modules/unistr/u32-strnlen-tests: New file.
32720         * tests/unistr/test-u32-strnlen.c: New file.
32721
32722         Tests for module 'unistr/u16-strnlen'.
32723         * modules/unistr/u16-strnlen-tests: New file.
32724         * tests/unistr/test-u16-strnlen.c: New file.
32725
32726         Tests for module 'unistr/u8-strnlen'.
32727         * modules/unistr/u8-strnlen-tests: New file.
32728         * tests/unistr/test-u8-strnlen.c: New file.
32729         * tests/unistr/test-strnlen.h: New file.
32730
32731         Tests for module 'unistr/u32-strlen'.
32732         * modules/unistr/u32-strlen-tests: New file.
32733         * tests/unistr/test-u32-strlen.c: New file.
32734
32735         Tests for module 'unistr/u16-strlen'.
32736         * modules/unistr/u16-strlen-tests: New file.
32737         * tests/unistr/test-u16-strlen.c: New file.
32738
32739         Tests for module 'unistr/u8-strlen'.
32740         * modules/unistr/u8-strlen-tests: New file.
32741         * tests/unistr/test-u8-strlen.c: New file.
32742
32743         Tests for module 'unistr/u32-prev'.
32744         * modules/unistr/u32-prev-tests: New file.
32745         * tests/unistr/test-u32-prev.c: New file.
32746
32747         Tests for module 'unistr/u16-prev'.
32748         * modules/unistr/u16-prev-tests: New file.
32749         * tests/unistr/test-u16-prev.c: New file.
32750
32751         Tests for module 'unistr/u8-prev'.
32752         * modules/unistr/u8-prev-tests: New file.
32753         * tests/unistr/test-u8-prev.c: New file.
32754
32755         Tests for module 'unistr/u32-next'.
32756         * modules/unistr/u32-next-tests: New file.
32757         * tests/unistr/test-u32-next.c: New file.
32758
32759         Tests for module 'unistr/u16-next'.
32760         * modules/unistr/u16-next-tests: New file.
32761         * tests/unistr/test-u16-next.c: New file.
32762
32763         Tests for module 'unistr/u8-next'.
32764         * modules/unistr/u8-next-tests: New file.
32765         * tests/unistr/test-u8-next.c: New file.
32766
32767         Tests for module 'unistr/u32-strmbtouc'.
32768         * modules/unistr/u32-strmbtouc-tests: New file.
32769         * tests/unistr/test-u32-strmbtouc.c: New file.
32770
32771         Tests for module 'unistr/u16-strmbtouc'.
32772         * modules/unistr/u16-strmbtouc-tests: New file.
32773         * tests/unistr/test-u16-strmbtouc.c: New file.
32774
32775         Tests for module 'unistr/u8-strmbtouc'.
32776         * modules/unistr/u8-strmbtouc-tests: New file.
32777         * tests/unistr/test-u8-strmbtouc.c: New file.
32778
32779         Tests for module 'unistr/u32-strmblen'.
32780         * modules/unistr/u32-strmblen-tests: New file.
32781         * tests/unistr/test-u32-strmblen.c: New file.
32782
32783         Tests for module 'unistr/u16-strmblen'.
32784         * modules/unistr/u16-strmblen-tests: New file.
32785         * tests/unistr/test-u16-strmblen.c: New file.
32786
32787         Tests for module 'unistr/u8-strmblen'.
32788         * modules/unistr/u8-strmblen-tests: New file.
32789         * tests/unistr/test-u8-strmblen.c: New file.
32790
32791         Tests for module 'unistr/u32-cpy-alloc'.
32792         * modules/unistr/u32-cpy-alloc-tests: New file.
32793         * tests/unistr/test-u32-cpy-alloc.c: New file.
32794
32795         Tests for module 'unistr/u16-cpy-alloc'.
32796         * modules/unistr/u16-cpy-alloc-tests: New file.
32797         * tests/unistr/test-u16-cpy-alloc.c: New file.
32798
32799         Tests for module 'unistr/u8-cpy-alloc'.
32800         * modules/unistr/u8-cpy-alloc-tests: New file.
32801         * tests/unistr/test-u8-cpy-alloc.c: New file.
32802         * tests/unistr/test-cpy-alloc.h: New file.
32803
32804         Tests for module 'unistr/u32-mbsnlen'.
32805         * modules/unistr/u32-mbsnlen-tests: New file.
32806         * tests/unistr/test-u32-mbsnlen.c: New file.
32807
32808         Tests for module 'unistr/u16-mbsnlen'.
32809         * modules/unistr/u16-mbsnlen-tests: New file.
32810         * tests/unistr/test-u16-mbsnlen.c: New file.
32811
32812         Tests for module 'unistr/u8-mbsnlen'.
32813         * modules/unistr/u8-mbsnlen-tests: New file.
32814         * tests/unistr/test-u8-mbsnlen.c: New file.
32815
32816         Tests for module 'unistr/u32-chr'.
32817         * modules/unistr/u32-chr-tests: New file.
32818         * tests/unistr/test-u32-chr.c: New file.
32819
32820         Tests for module 'unistr/u16-chr'.
32821         * modules/unistr/u16-chr-tests: New file.
32822         * tests/unistr/test-u16-chr.c: New file.
32823
32824         Tests for module 'unistr/u8-chr'.
32825         * modules/unistr/u8-chr-tests: New file.
32826         * tests/unistr/test-u8-chr.c: New file.
32827         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
32828
32829         Tests for module 'unistr/u32-cmp2'.
32830         * modules/unistr/u32-cmp2-tests: New file.
32831         * tests/unistr/test-u32-cmp2.c: New file.
32832
32833         Tests for module 'unistr/u16-cmp2'.
32834         * modules/unistr/u16-cmp2-tests: New file.
32835         * tests/unistr/test-u16-cmp2.c: New file.
32836
32837         Tests for module 'unistr/u8-cmp2'.
32838         * modules/unistr/u8-cmp2-tests: New file.
32839         * tests/unistr/test-u8-cmp2.c: New file.
32840         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
32841
32842         Tests for module 'unistr/u32-cmp'.
32843         * modules/unistr/u32-cmp-tests: New file.
32844         * tests/unistr/test-u32-cmp.c: New file.
32845
32846         Tests for module 'unistr/u16-cmp'.
32847         * modules/unistr/u16-cmp-tests: New file.
32848         * tests/unistr/test-u16-cmp.c: New file.
32849
32850         Tests for module 'unistr/u8-cmp'.
32851         * modules/unistr/u8-cmp-tests: New file.
32852         * tests/unistr/test-u8-cmp.c: New file.
32853         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
32854
32855         Tests for module 'unistr/u32-set'.
32856         * modules/unistr/u32-set-tests: New file.
32857         * tests/unistr/test-u32-set.c: New file.
32858
32859         Tests for module 'unistr/u16-set'.
32860         * modules/unistr/u16-set-tests: New file.
32861         * tests/unistr/test-u16-set.c: New file.
32862
32863         Tests for module 'unistr/u8-set'.
32864         * modules/unistr/u8-set-tests: New file.
32865         * tests/unistr/test-u8-set.c: New file.
32866         * tests/unistr/test-set.h: New file.
32867
32868         Tests for module 'unistr/u32-move'.
32869         * modules/unistr/u32-move-tests: New file.
32870         * tests/unistr/test-u32-move.c: New file.
32871
32872         Tests for module 'unistr/u16-move'.
32873         * modules/unistr/u16-move-tests: New file.
32874         * tests/unistr/test-u16-move.c: New file.
32875
32876         Tests for module 'unistr/u8-move'.
32877         * modules/unistr/u8-move-tests: New file.
32878         * tests/unistr/test-u8-move.c: New file.
32879         * tests/unistr/test-move.h: New file.
32880
32881         Tests for module 'unistr/u32-cpy'.
32882         * modules/unistr/u32-cpy-tests: New file.
32883         * tests/unistr/test-u32-cpy.c: New file.
32884
32885         Tests for module 'unistr/u16-cpy'.
32886         * modules/unistr/u16-cpy-tests: New file.
32887         * tests/unistr/test-u16-cpy.c: New file.
32888
32889         Tests for module 'unistr/u8-cpy'.
32890         * modules/unistr/u8-cpy-tests: New file.
32891         * tests/unistr/test-u8-cpy.c: New file.
32892         * tests/unistr/test-cpy.h: New file.
32893
32894 2010-01-09  Bruno Haible  <bruno@clisp.org>
32895
32896         Tests for module 'unistr/u32-uctomb'.
32897         * modules/unistr/u32-uctomb-tests: New file.
32898         * tests/unistr/test-u32-uctomb.c: New file.
32899
32900         Tests for module 'unistr/u16-uctomb'.
32901         * modules/unistr/u16-uctomb-tests: New file.
32902         * tests/unistr/test-u16-uctomb.c: New file.
32903
32904         Tests for module 'unistr/u8-uctomb'.
32905         * modules/unistr/u8-uctomb-tests: New file.
32906         * tests/unistr/test-u8-uctomb.c: New file.
32907
32908         Tests for module 'unistr/u32-mbtoucr'.
32909         * modules/unistr/u32-mbtoucr-tests: New file.
32910         * tests/unistr/test-u32-mbtoucr.c: New file.
32911
32912         Tests for module 'unistr/u16-mbtoucr'.
32913         * modules/unistr/u16-mbtoucr-tests: New file.
32914         * tests/unistr/test-u16-mbtoucr.c: New file.
32915
32916         Tests for module 'unistr/u8-mbtoucr'.
32917         * modules/unistr/u8-mbtoucr-tests: New file.
32918         * tests/unistr/test-u8-mbtoucr.c: New file.
32919
32920         Tests for module 'unistr/u32-mbtouc'.
32921         * modules/unistr/u32-mbtouc-tests: New file.
32922         * tests/unistr/test-u32-mbtouc.c: New file.
32923
32924         Tests for module 'unistr/u16-mbtouc'.
32925         * modules/unistr/u16-mbtouc-tests: New file.
32926         * tests/unistr/test-u16-mbtouc.c: New file.
32927
32928         Tests for module 'unistr/u8-mbtouc'.
32929         * modules/unistr/u8-mbtouc-tests: New file.
32930         * tests/unistr/test-u8-mbtouc.c: New file.
32931
32932         Tests for module 'unistr/u32-mbtouc-unsafe'.
32933         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
32934         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
32935         * tests/unistr/test-u32-mbtouc.h: New file.
32936
32937         Tests for module 'unistr/u16-mbtouc-unsafe'.
32938         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
32939         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
32940         * tests/unistr/test-u16-mbtouc.h: New file.
32941
32942         Tests for module 'unistr/u8-mbtouc-unsafe'.
32943         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
32944         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
32945         * tests/unistr/test-u8-mbtouc.h: New file.
32946
32947         Tests for module 'unistr/u32-mblen'.
32948         * modules/unistr/u32-mblen-tests: New file.
32949         * tests/unistr/test-u32-mblen.c: New file.
32950
32951         Tests for module 'unistr/u16-mblen'.
32952         * modules/unistr/u16-mblen-tests: New file.
32953         * tests/unistr/test-u16-mblen.c: New file.
32954
32955         Tests for module 'unistr/u8-mblen'.
32956         * modules/unistr/u8-mblen-tests: New file.
32957         * tests/unistr/test-u8-mblen.c: New file.
32958
32959         Tests for module 'unistr/u32-to-u16'.
32960         * modules/unistr/u32-to-u16-tests: New file.
32961         * tests/unistr/test-u32-to-u16.c: New file.
32962
32963         Tests for module 'unistr/u32-to-u8'.
32964         * modules/unistr/u32-to-u8-tests: New file.
32965         * tests/unistr/test-u32-to-u8.c: New file.
32966
32967         Tests for module 'unistr/u16-to-u32'.
32968         * modules/unistr/u16-to-u32-tests: New file.
32969         * tests/unistr/test-u16-to-u32.c: New file.
32970
32971         Tests for module 'unistr/u16-to-u8'.
32972         * modules/unistr/u16-to-u8-tests: New file.
32973         * tests/unistr/test-u16-to-u8.c: New file.
32974
32975         Tests for module 'unistr/u8-to-u32'.
32976         * modules/unistr/u8-to-u32-tests: New file.
32977         * tests/unistr/test-u8-to-u32.c: New file.
32978
32979         Tests for module 'unistr/u8-to-u16'.
32980         * modules/unistr/u8-to-u16-tests: New file.
32981         * tests/unistr/test-u8-to-u16.c: New file.
32982
32983         Tests for module 'unistr/u32-check'.
32984         * modules/unistr/u32-check-tests: New file.
32985         * tests/unistr/test-u32-check.c: New file.
32986
32987         Tests for module 'unistr/u16-check'.
32988         * modules/unistr/u16-check-tests: New file.
32989         * tests/unistr/test-u16-check.c: New file.
32990
32991         Tests for module 'unistr/u8-check'.
32992         * modules/unistr/u8-check-tests: New file.
32993         * tests/unistr/test-u8-check.c: New file.
32994
32995         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
32996         (category_equals): New function.
32997         (main): Add more tests.
32998         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
32999
33000         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33001
33002 2010-01-10  Bruno Haible  <bruno@clisp.org>
33003
33004         unistr/u*-strcoll: Try harder to distinguish different strings.
33005         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33006         compare s1 and s2 to see if they are different.
33007
33008 2010-01-10  Bruno Haible  <bruno@clisp.org>
33009
33010         unistr/u*-stpncpy: Fix the return value.
33011         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33012         description of the return value consistent with stpncpy in glibc.
33013         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33014         written non-NUL unit.
33015
33016 2010-01-10  Bruno Haible  <bruno@clisp.org>
33017
33018         unistr/u*-next: Add missing dependencies.
33019         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33020         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33021         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33022
33023 2010-01-10  Bruno Haible  <bruno@clisp.org>
33024
33025         unistr/u8-mbsnlen: Fix return value for incomplete character.
33026         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33027         u8_mblen.
33028         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33029         Remove unistr/u8-mblen.
33030         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33031         u16_mblen.
33032         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33033         Remove unistr/u16-mblen.
33034
33035 2010-01-10  Bruno Haible  <bruno@clisp.org>
33036
33037         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33038         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33039         Reported by Brian Gough <bjg@gnu.org> and
33040         Chris Clayton <chris2553@googlemail.com> via
33041         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33042
33043 2010-01-09  Bruno Haible  <bruno@clisp.org>
33044
33045         unistr/u16-to-u32: Reject invalid input.
33046         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33047         u16_mbtouc.
33048         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33049         Remove unistr/u16-mbtouc.
33050
33051         unistr/u16-to-u8: Reject invalid input.
33052         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33053         u16_mbtouc.
33054         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33055         Remove unistr/u16-mbtouc.
33056
33057         unistr/u8-to-u32: Reject invalid input.
33058         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33059         u8_mbtouc.
33060         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33061         Remove unistr/u8-mbtouc.
33062
33063         unistr/u8-to-u16: Reject invalid input.
33064         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33065         u8_mbtouc.
33066         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33067         Remove unistr/u8-mbtouc.
33068
33069 2010-01-09  Bruno Haible  <bruno@clisp.org>
33070
33071         Tests for module 'getlogin'.
33072         * modules/getlogin-tests: New file.
33073         * tests/test-getlogin.c: New file.
33074
33075         New module 'getlogin'.
33076         * lib/unistd.in.h (getlogin): New declaration.
33077         * lib/getlogin.c: New file.
33078         * m4/getlogin.m4: New file.
33079         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33080         HAVE_GETLOGIN.
33081         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33082         HAVE_GETLOGIN.
33083         * modules/getlogin: New file.
33084         * doc/posix-functions/getlogin.texi: Mention the new module.
33085         Reported by John W. Eaton <jwe@gnu.org>.
33086
33087 2010-01-09  Bruno Haible  <bruno@clisp.org>
33088
33089         getlogin_r: Support for native Windows.
33090         * lib/getlogin_r.c: Include <windows.h>
33091         (getlogin_r): Implement for native Windows.
33092         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33093         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33094         via John W. Eaton <jwe@gnu.org>.
33095
33096 2010-01-09  Bruno Haible  <bruno@clisp.org>
33097
33098         getlogin_r: Small fixes.
33099         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33100         succeeds.
33101         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33102         before testing whether getlogin_r is declared. No need to set
33103         HAVE_DECL_GETLOGIN_R to 1.
33104         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33105
33106 2010-01-09  Bruno Haible  <bruno@clisp.org>
33107
33108         * lib/unistd.in.h (getlogin_r): Add comment.
33109
33110 2010-01-09  Bruno Haible  <bruno@clisp.org>
33111
33112         Tests for module 'getlogin_r'.
33113         * modules/getlogin_r-tests: New file.
33114         * tests/test-getlogin_r.c: New file.
33115
33116 2010-01-09  Jim Meyering  <meyering@redhat.com>
33117
33118         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33119         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33120         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33121
33122 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33123
33124         * lib/dup2.c (rpl_dup2): Improve comment.
33125
33126 2010-01-08  Eric Blake  <ebb9@byu.net>
33127
33128         maint.mk: allow packages to add makefile @@ exceptions
33129         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33130         (sc_makefile_check): Rename...
33131         (sc_makefile_at_at_check): ...to this, and use hook.
33132
33133         dup2: work around mingw bug
33134         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33135         Reported by Simon Josefsson.
33136
33137 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33138
33139         glob: Fix C++ compilation.
33140         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33141         C++.
33142
33143 2010-01-07  Bruno Haible  <bruno@clisp.org>
33144
33145         Fix indentation of wctype.in.h, broken since 2007-01-06.
33146         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33147
33148 2010-01-07  Bruno Haible  <bruno@clisp.org>
33149
33150         mbslen: Avoid collision with system function.
33151         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33152         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33153         * m4/mbslen.m4: New file.
33154         * modules/mbslen (Files): Add it.
33155         (configure.ac): Invoke gl_MBSLEN.
33156         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33157         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33158         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33159         via Ian Beckwith <ianb@erislabs.net>.
33160
33161 2010-01-07  Bruno Haible  <bruno@clisp.org>
33162
33163         dirent: Document the last fix.
33164         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33165
33166 2010-01-07  Bruno Haible  <bruno@clisp.org>
33167
33168         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33169         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33170         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33171         va_list are defined.
33172         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33173         Reported by Eric Blake.
33174
33175 2010-01-07  Bruno Haible  <bruno@clisp.org>
33176
33177         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33178         * modules/xlist (Depends-on): Add 'list',
33179         * modules/xoset (Depends-on): Add 'oset'.
33180         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33181
33182 2010-01-07  Bruno Haible  <bruno@clisp.org>
33183
33184         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33185         * doc/posix-functions/strncasecmp.texi: Likewise.
33186
33187 2010-01-07  Bruno Haible  <bruno@clisp.org>
33188
33189         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33190
33191 2010-01-07  John W. Eaton  <jwe@octave.org>
33192
33193         wctype: allow C++ use
33194         * lib/wctype.in.h: Add extern "C" block for C++.
33195
33196 2010-01-06  Eric Blake  <ebb9@byu.net>
33197
33198         maint.mk: detect incorrect GFDL usage
33199         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33200
33201 2010-01-06  Jim Meyering  <meyering@redhat.com>
33202         and Eric Blake  <ebb9@byu.net>
33203
33204         maint.mk: ignore multi-line copyright in NEWS
33205         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33206
33207 2010-01-06  Eric Blake  <ebb9@byu.net>
33208
33209         select: add missing dependency
33210         * modules/select-tests (Depends-on): Move sockets dependency...
33211         * modules/select (Depends-on): ...here.
33212         Reported by Ian Beckwith.
33213
33214         doc: regenerate INSTALL
33215         * doc/INSTALL: Reflect recent autoconf update.
33216         * doc/INSTALL.ISO: Likewise.
33217         * doc/INSTALL.UTF-8: Likewise.
33218
33219         pread: fix compilation on glibc
33220         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33221         Reported by Ralf Wildenhues.
33222
33223         dirent: fix test failure
33224         * lib/dirent.in.h (includes): Guarantee ino_t.
33225         Reported by Ralf Wildenhues.
33226
33227 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33228
33229         linkat, renameat: avoid bad free
33230         * lib/at-func2.c (at_func2): Fix typo.
33231         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33232
33233 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33234
33235         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33236         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33237         to avoid failure of symlink test later.
33238
33239 2010-01-06  Eric Blake  <ebb9@byu.net>
33240
33241         stdio, unistd: guarantee ssize_t
33242         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33243         2008 are exposed when needed.
33244         * lib/stdio.in.h (includes): Likewise.
33245         Reported by Ralf Wildenhues.
33246
33247 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33248
33249         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33250         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33251         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33252
33253 2010-01-06  Jim Meyering  <meyering@redhat.com>
33254
33255         readtokens: this module *does* require xalloc.h
33256         It uses only functions that were omitted by the old syntax-check rule.
33257         * lib/readtokens.c: Include "xalloc.h" once again.
33258         * modules/readtokens (Depends-on): Add xalloc.
33259         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33260
33261 2010-01-05  Eric Blake  <ebb9@byu.net>
33262
33263         maint: support 'make announcement' from a VPATH build
33264         * top/maint.mk (announcement): Look for correct NEWS file.
33265
33266 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33267
33268         utimens (fdutimens): ignore a negative FD, per contract
33269         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33270         when we have a valid file descriptor.  Otherwise, using a brand
33271         new glibc (with just-patched futimens that now fails with EBADF)
33272         would cause this function to fail with ENOSYS.
33273         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33274         See also http://bugzilla.redhat.com/552320.
33275
33276 2010-01-05  Eric Blake  <ebb9@byu.net>
33277
33278         strcase: document what it provides
33279         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33280         gnulib module.
33281         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33282         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33283
33284 2010-01-05  Jim Meyering  <meyering@redhat.com>
33285
33286         maint: remove useless inclusions of "xalloc.h"
33287         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33288         * lib/readtokens.c: Likewise.
33289         * lib/same.c: Likewise.
33290         * modules/getloadavg (Depends-on): Remove xalloc.
33291         * modules/readtokens: Likewise.
33292         * modules/same: Likewise.
33293
33294         maint.mk: include 4 more function names in alloca.h-checking regexp
33295         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33296         regexp.  Before, we would give a false-positive (saying alloca.h
33297         is included unnecessarily) when the only uses involved omitted symbols.
33298
33299         xalloc.h: use consistent formatting
33300         * lib/xalloc.h: Move declarations to start in the first column.
33301
33302 2010-01-05  Eric Blake  <ebb9@byu.net>
33303
33304         mkdir: avoid xalloc
33305         * lib/mkdir.c (includes): Drop unused header.
33306         Reported by John W. Eaton.
33307
33308 2010-01-04  Jim Meyering  <meyering@redhat.com>
33309
33310         nl_langinfo: avoid configure-time syntax error
33311         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33312         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33313         the empty string.  Don't let that provoke a shell syntax error.
33314
33315         regcomp, regexec, fnmatch: avoid array bounds read error
33316         * lib/regcomp.c (build_equiv_class): From glibc:
33317         Use only the low 24 bits of a findidx return value as an index
33318         into the weights array.  Patch by Ulrich Drepper:
33319         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33320         * lib/regexec.c (check_node_accept_bytes): Likewise.
33321         * lib/fnmatch_loop.c (FCT): Likewise.
33322
33323         regcomp: skip collseq lookup when there are no rules
33324         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33325         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33326
33327         regcomp: recognize ill-formed { } expressions
33328         * lib/regcomp.c (parse_dup_op): From glibc:
33329         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33330
33331         regcomp: fix typo in comment
33332         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33333         s/satisfy/satisfies/.
33334
33335         regcomp: sync from glibc: remove dead store
33336         * lib/regcomp.c (duplicate_node_closure): Remove useless
33337         search_duplicated_node call and dead store.
33338
33339         regcomp: sync from glibc; always use nl_langinfo
33340         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33341         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33342         * modules/regex (Depends-on): Add nl_langinfo.
33343
33344 2010-01-04  Eric Blake  <ebb9@byu.net>
33345
33346         fdopendir: fix configure test
33347         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33348
33349 2010-01-01  Bruno Haible  <bruno@clisp.org>
33350
33351         wchar: Remove unused configure check.
33352         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33353
33354 2010-01-01  Eric Blake  <ebb9@byu.net>
33355
33356         headers: make check of system header explicit
33357         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33358         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33359         ourselves.
33360         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33361         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33362         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33363         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33364         internals.
33365         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33366         missing.
33367         Suggested by Bruno Haible.
33368
33369 2010-01-01  Jim Meyering  <meyering@redhat.com>
33370
33371         ChangeLog: tweak to eliminate unnecessary copyright line
33372         * ChangeLog: Remove a copyright line that was mistakenly updated
33373         by today's update-copyright run.  Reported by Eric Blake.
33374
33375         test-update-copyright: don't let envvar setting cause test failure
33376         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33377
33378 2010-01-01  Bruno Haible  <bruno@clisp.org>
33379
33380         localename: Avoid gcc warning.
33381         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33382         function if it is not used.
33383
33384 2010-01-01  Jim Meyering  <meyering@redhat.com>
33385
33386         update nearly all FSF copyright year lists to include 2010
33387         Use the same procedure as for 2009, outlined in
33388         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33389
33390         version-etc: set COPYRIGHT_YEAR to 2010
33391         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33392
33393 2009-12-31  Eric Blake  <ebb9@byu.net>
33394
33395         doc: correct availability of cygwin 1.5.x getopt
33396         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33397         variables.
33398         * doc/posix-functions/opterr.texi (opterr): Likewise.
33399         * doc/posix-functions/optind.texi (optind): Likewise.
33400         * doc/posix-functions/optopt.texi (optopt): Likewise.
33401         * doc/posix-functions/tzname.texi (tzname): Likewise.
33402
33403         openat: update maintainer
33404         * modules/openat (Maintainer): Add myself.
33405
33406         utimens: avoid shadowing warning
33407         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33408         buffers into one, to avoid shadowing, as well as avoiding a
33409         redundant stat.
33410         Reported by Jim Meyering.
33411
33412         test-dup2: avoid compiler warning
33413         * tests/test-dup2.c (is_inheritable): Only define if used.
33414
33415 2010-01-01  Bruno Haible  <bruno@clisp.org>
33416
33417         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33418         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33419         defined, use wctomb instead of wcrtomb.
33420
33421 2010-01-01  Bruno Haible  <bruno@clisp.org>
33422
33423         iconv: Reject native Solaris iconv.
33424         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33425         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33426
33427 2009-12-31  Bruno Haible  <bruno@clisp.org>
33428
33429         * tests/test-signal.c (main): Remove test of 'SIG'.
33430
33431 2009-12-31  Bruno Haible  <bruno@clisp.org>
33432
33433         spawn: Fix incomplete fix.
33434         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33435         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33436         warnings for GNULIB_POSIXCHECK again.
33437         Reported by Eric Blake.
33438
33439 2009-12-31  Bruno Haible  <bruno@clisp.org>
33440
33441         Avoid namespace pollution on glibc systems.
33442         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
33443         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
33444         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
33445         glibc systems.
33446
33447 2009-12-31  Bruno Haible  <bruno@clisp.org>
33448
33449         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
33450         (gl_REPLACE_WCHAR_H): Turn into a no-op.
33451         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
33452         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
33453         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
33454         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
33455         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
33456
33457 2009-12-31  Bruno Haible  <bruno@clisp.org>
33458
33459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33460         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
33461         afterwards.
33462
33463 2009-12-31  Bruno Haible  <bruno@clisp.org>
33464
33465         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
33466         SYS_UTSNAME_H.
33467
33468 2009-12-31  Bruno Haible  <bruno@clisp.org>
33469
33470         spawn: Fix misapplied patch.
33471         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33472         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33473         warnings for GNULIB_POSIXCHECK.
33474
33475 2009-12-31  Bruno Haible  <bruno@clisp.org>
33476
33477         times: Update after sys_times changed.
33478         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
33479         * modules/times (Files): Add it.
33480         (configure.ac): Invoke gl_FUNC_TIMES.
33481
33482 2009-12-31  Bruno Haible  <bruno@clisp.org>
33483
33484         Use AC_C_INLINE where necessary.
33485         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
33486         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
33487         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
33488         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
33489         * m4/mbfile.m4 (gl_MBFILE): Likewise.
33490         * m4/mbiter.m4 (gl_MBITER): Likewise.
33491         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
33492         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
33493         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
33494         * modules/u64 (configure.ac): Likewise.
33495
33496 2009-12-31  Bruno Haible  <bruno@clisp.org>
33497
33498         Use AC_C_INLINE instead of module 'inline' where possible.
33499         * modules/inline (Description): Clarify purpose.
33500         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
33501         * modules/count-one-bits (Depends-on): Remove inline.
33502         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
33503         * modules/openat (Depends-on): Remove inline.
33504         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
33505         instead of depending on module 'inline'.
33506         * modules/filevercmp (Depends-on, configure.ac): Likewise.
33507         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
33508         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
33509         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
33510         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
33511         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
33512         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
33513         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
33514         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
33515         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
33516         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
33517         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
33518         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
33519         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
33520         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
33521         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
33522         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
33523         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
33524         Likewise.
33525         * modules/unictype/property-ascii-hex-digit (Depends-on,
33526         configure.ac): Likewise.
33527         * modules/unictype/property-bidi-arabic-digit (Depends-on,
33528         configure.ac): Likewise.
33529         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
33530         configure.ac): Likewise.
33531         * modules/unictype/property-bidi-block-separator (Depends-on,
33532         configure.ac): Likewise.
33533         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
33534         configure.ac): Likewise.
33535         * modules/unictype/property-bidi-common-separator (Depends-on,
33536         configure.ac): Likewise.
33537         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
33538         Likewise.
33539         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
33540         configure.ac): Likewise.
33541         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
33542         configure.ac): Likewise.
33543         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
33544         configure.ac): Likewise.
33545         * modules/unictype/property-bidi-european-digit (Depends-on,
33546         configure.ac): Likewise.
33547         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
33548         configure.ac): Likewise.
33549         * modules/unictype/property-bidi-left-to-right (Depends-on,
33550         configure.ac): Likewise.
33551         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
33552         configure.ac): Likewise.
33553         * modules/unictype/property-bidi-other-neutral (Depends-on,
33554         configure.ac): Likewise.
33555         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
33556         Likewise.
33557         * modules/unictype/property-bidi-segment-separator (Depends-on,
33558         configure.ac): Likewise.
33559         * modules/unictype/property-bidi-whitespace (Depends-on,
33560         configure.ac): Likewise.
33561         * modules/unictype/property-combining (Depends-on, configure.ac):
33562         Likewise.
33563         * modules/unictype/property-composite (Depends-on, configure.ac):
33564         Likewise.
33565         * modules/unictype/property-currency-symbol (Depends-on,
33566         configure.ac): Likewise.
33567         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
33568         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
33569         Likewise.
33570         * modules/unictype/property-default-ignorable-code-point (Depends-on,
33571         configure.ac): Likewise.
33572         * modules/unictype/property-deprecated (Depends-on, configure.ac):
33573         Likewise.
33574         * modules/unictype/property-diacritic (Depends-on, configure.ac):
33575         Likewise.
33576         * modules/unictype/property-extender (Depends-on, configure.ac):
33577         Likewise.
33578         * modules/unictype/property-format-control (Depends-on, configure.ac):
33579         Likewise.
33580         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
33581         Likewise.
33582         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
33583         Likewise.
33584         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
33585         Likewise.
33586         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
33587         Likewise.
33588         * modules/unictype/property-hyphen (Depends-on, configure.ac):
33589         Likewise.
33590         * modules/unictype/property-id-continue (Depends-on, configure.ac):
33591         Likewise.
33592         * modules/unictype/property-id-start (Depends-on, configure.ac):
33593         Likewise.
33594         * modules/unictype/property-ideographic (Depends-on, configure.ac):
33595         Likewise.
33596         * modules/unictype/property-ids-binary-operator (Depends-on,
33597         configure.ac): Likewise.
33598         * modules/unictype/property-ids-trinary-operator (Depends-on,
33599         configure.ac): Likewise.
33600         * modules/unictype/property-ignorable-control (Depends-on,
33601         configure.ac): Likewise.
33602         * modules/unictype/property-iso-control (Depends-on, configure.ac):
33603         Likewise.
33604         * modules/unictype/property-join-control (Depends-on, configure.ac):
33605         Likewise.
33606         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
33607         Likewise.
33608         * modules/unictype/property-line-separator (Depends-on, configure.ac):
33609         Likewise.
33610         * modules/unictype/property-logical-order-exception (Depends-on,
33611         configure.ac): Likewise.
33612         * modules/unictype/property-lowercase (Depends-on, configure.ac):
33613         Likewise.
33614         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
33615         * modules/unictype/property-non-break (Depends-on, configure.ac):
33616         Likewise.
33617         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
33618         Likewise.
33619         * modules/unictype/property-numeric (Depends-on, configure.ac):
33620         Likewise.
33621         * modules/unictype/property-other-alphabetic (Depends-on,
33622         configure.ac): Likewise.
33623         * modules/unictype/property-other-default-ignorable-code-point
33624         (Depends-on, configure.ac): Likewise.
33625         * modules/unictype/property-other-grapheme-extend (Depends-on,
33626         configure.ac): Likewise.
33627         * modules/unictype/property-other-id-continue (Depends-on,
33628         configure.ac): Likewise.
33629         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
33630         Likewise.
33631         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
33632         Likewise.
33633         * modules/unictype/property-other-math (Depends-on, configure.ac):
33634         Likewise.
33635         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
33636         Likewise.
33637         * modules/unictype/property-paired-punctuation (Depends-on,
33638         configure.ac): Likewise.
33639         * modules/unictype/property-paragraph-separator (Depends-on,
33640         configure.ac): Likewise.
33641         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
33642         Likewise.
33643         * modules/unictype/property-pattern-white-space (Depends-on,
33644         configure.ac): Likewise.
33645         * modules/unictype/property-private-use (Depends-on, configure.ac):
33646         Likewise.
33647         * modules/unictype/property-punctuation (Depends-on, configure.ac):
33648         Likewise.
33649         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
33650         Likewise.
33651         * modules/unictype/property-radical (Depends-on, configure.ac):
33652         Likewise.
33653         * modules/unictype/property-sentence-terminal (Depends-on,
33654         configure.ac): Likewise.
33655         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
33656         Likewise.
33657         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
33658         * modules/unictype/property-terminal-punctuation (Depends-on,
33659         configure.ac): Likewise.
33660         * modules/unictype/property-titlecase (Depends-on, configure.ac):
33661         Likewise.
33662         * modules/unictype/property-unassigned-code-value (Depends-on,
33663         configure.ac): Likewise.
33664         * modules/unictype/property-unified-ideograph (Depends-on,
33665         configure.ac): Likewise.
33666         * modules/unictype/property-uppercase (Depends-on, configure.ac):
33667         Likewise.
33668         * modules/unictype/property-variation-selector (Depends-on,
33669         configure.ac): Likewise.
33670         * modules/unictype/property-white-space (Depends-on, configure.ac):
33671         Likewise.
33672         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
33673         Likewise.
33674         * modules/unictype/property-xid-start (Depends-on, configure.ac):
33675         Likewise.
33676         * modules/unictype/property-zero-width (Depends-on, configure.ac):
33677         Likewise.
33678         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
33679         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
33680         Likewise.
33681
33682 2009-12-31  Bruno Haible  <bruno@clisp.org>
33683
33684         Remove unnecessary AC_C_INLINE invocation.
33685         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
33686         since 2009-08-21.
33687
33688 2009-12-31  Jim Meyering  <meyering@redhat.com>
33689
33690         maint.mk: don't require explicit gpg_key_ID in cfg.mk
33691         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
33692         With this change, we can all remove the gpg_key_ID = ... definition
33693         from our respective cfg.mk files.
33694
33695         maint.mk: create announcement template in ~/, not in /tmp
33696         * top/maint.mk (emit_upload_commands): Adjust.
33697         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
33698         Remove temporary file, .ci-msg.
33699
33700 2009-12-31  Eric Blake  <ebb9@byu.net>
33701
33702         link-warning: always build headers with link warnings
33703         * modules/arpa_inet (Makefile.am): Always build replacement
33704         header.
33705         * modules/ctype (Makefile.am): Likewise.
33706         * modules/dirent (Makefile.am): Likewise.
33707         * modules/inttypes (Makefile.am): Likewise.
33708         * modules/langinfo (Makefile.am): Likewise.
33709         * modules/locale (Makefile.am): Likewise.
33710         * modules/spawn (Makefile.am): Likewise.
33711         * modules/sys_file (Makefile.am): Likewise.
33712         * modules/sys_ioctl (Makefile.am): Likewise.
33713         * modules/sys_select (Makefile.am): Likewise.
33714         * modules/sys_socket (Makefile.am): Likewise.
33715         * modules/sys_times (Makefile.am): Likewise.
33716         * modules/sys_utsname (Makefile.am): Likewise.
33717         * modules/sys_wait (Makefile.am): Likewise.
33718         * modules/wchar (Makefile.am): Likewise.
33719         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
33720         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
33721         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
33722         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
33723         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
33724         Likewise.
33725         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33726         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33727         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
33728         Likewise.
33729         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
33730         Likewise.
33731         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
33732         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
33733         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
33734         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33735         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33736         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33737         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33738         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
33739         (gl_WCHAR_H_DEFAULTS): Likewise.
33740
33741 2009-12-31  Eric Blake  <ebb9@byu.net>
33742
33743         signal, spawn: use link warnings
33744         * lib/signal.in.h (sigset_t): Make unconditional.
33745         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
33746         (sigpending, sigprocmask, sigaction): Add link warnings.
33747         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
33748         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
33749         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
33750         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
33751         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
33752         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
33753         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
33754         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
33755         (posix_spawn_file_actions_destroy)
33756         (posix_spawn_file_actions_addopen)
33757         (posix_spawn_file_actions_addclose)
33758         (posix_spawn_file_actions_adddup2): Likewise.
33759         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
33760         * tests/test-signal.c (main): Enhance test.
33761
33762         spawn: improve wrapper support
33763         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
33764         (gl_SPAWN_H_DEFAULTS): New defaults.
33765         * modules/spawn (Makefile.am): Substitute them.
33766         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
33767         Only declare if missing or broken.
33768
33769         sys_times, sys_utsname: use include_next
33770         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
33771         header.
33772         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
33773         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
33774         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
33775         * modules/sys_times (Depends-on): Add include_next.
33776         (Makefile.am): Substitute additional values.
33777         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
33778         * lib/sys_times.in.h (includes): Include native header, if
33779         available.
33780         * lib/sys_utsname.in.h (includes): Likewise.
33781         * tests/test-sys_times.c (main): Enhance test.
33782
33783         fdutimensat: revert prior patch
33784         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
33785         utimens.h.
33786         Reported by Bruno Haible.
33787
33788 2009-12-30  Eric Blake  <ebb9@byu.net>
33789
33790         sys_wait: drop link-warning dependency
33791         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
33792         link-warning efforts.
33793         * lib/sys_wait.in.h: Likewise.
33794
33795         fdutimensat: remove bogus dependency
33796         * modules/fdutimensat (Depends-on): Drop inline.
33797
33798         unistd: fix typo
33799         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
33800
33801 2009-12-30  Bruno Haible  <bruno@clisp.org>
33802
33803         Fix compilation error with Solaris cc.
33804         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
33805         * lib/unicase/u16-is-invariant.c: Likewise.
33806         * lib/unicase/u32-is-invariant.c: Likewise.
33807         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33808
33809 2009-12-30  Bruno Haible  <bruno@clisp.org>
33810
33811         Fix test crash.
33812         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
33813         locales.
33814         Reported by Simon Josefsson <simon@josefsson.org>.
33815
33816 2009-12-30  Bruno Haible  <bruno@clisp.org>
33817
33818         Fix compilation error on most platforms.
33819         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
33820         Reported by Simon Josefsson <simon@josefsson.org>
33821         and Nelson H. F. Beebe <beebe@math.utah.edu>.
33822
33823 2009-12-30  Eric Blake  <ebb9@byu.net>
33824
33825         futimens, utimensat: work around ntfs-3g bug
33826         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
33827         a ctime bug is present, and expand workaround to cover ntfs-3g.
33828         * lib/utimens.c (fdutimens, lutimens): Likewise.
33829         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
33830         (validate_timespec): Adjust return value.
33831         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
33832         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33833         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
33834
33835 2009-12-29  Eric Blake  <ebb9@byu.net>
33836
33837         link-warning: make usage consistent
33838         * modules/ctype (Depends-on): Add link-warning.
33839         (Makefile.am): Update rules accordingly.
33840         * modules/langinfo (Depends-on, Makefile.am): Likewise.
33841         * modules/locale (Depends-on, Makefile.am): Likewise.
33842         * modules/sys_file (Makefile.am): Likewise.
33843         * modules/getopt-posix (Makefile.am): Delete unused link warning
33844         efforts.
33845         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
33846         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
33847         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
33848         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
33849
33850         stdio: remove unused variables
33851         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
33852         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
33853         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
33854
33855         tests: test more substitute headers
33856         * modules/ctype-tests: New file.
33857         * modules/dirent-tests: Likewise.
33858         * modules/spawn-tests: Likewise.
33859         * modules/sys_file-tests: Likewise.
33860         * modules/sys_ioctl-tests: Likewise.
33861         * modules/sys_wait-tests: Likewise.
33862         * tests/test-ctype.c: Likewise.
33863         * tests/test-dirent.c: Likewise.
33864         * tests/test-spawn.c: Likewise.
33865         * tests/test-sys_file.c: Likewise.
33866         * tests/test-sys_ioctl.c: Likewise.
33867         * tests/test-sys_wait.c: Likewise.
33868         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
33869         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
33870         whether or not flock is in use.
33871
33872         tests: remove License section from module
33873         * modules/arpa_inet-tests: Remove unneeded section.
33874         * modules/byteswap-tests: Likewise.
33875         * modules/ceilf-tests: Likewise.
33876         * modules/ceill-tests: Likewise.
33877         * modules/crypto/des-tests: Likewise.
33878         * modules/crypto/gc-arcfour-tests: Likewise.
33879         * modules/crypto/gc-arctwo-tests: Likewise.
33880         * modules/crypto/gc-des-tests: Likewise.
33881         * modules/crypto/gc-hmac-md5-tests: Likewise.
33882         * modules/crypto/gc-hmac-sha1-tests: Likewise.
33883         * modules/crypto/gc-md2-tests: Likewise.
33884         * modules/crypto/gc-md4-tests: Likewise.
33885         * modules/crypto/gc-md5-tests: Likewise.
33886         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
33887         * modules/crypto/gc-rijndael-tests: Likewise.
33888         * modules/crypto/gc-sha1-tests: Likewise.
33889         * modules/crypto/gc-tests: Likewise.
33890         * modules/crypto/md2-tests: Likewise.
33891         * modules/crypto/md4-tests: Likewise.
33892         * modules/fcntl-h-tests: Likewise.
33893         * modules/floorf-tests: Likewise.
33894         * modules/floorl-tests: Likewise.
33895         * modules/frexp-nolibm-tests: Likewise.
33896         * modules/frexp-tests: Likewise.
33897         * modules/frexpl-nolibm-tests: Likewise.
33898         * modules/frexpl-tests: Likewise.
33899         * modules/getaddrinfo-tests: Likewise.
33900         * modules/inttypes-tests: Likewise.
33901         * modules/isfinite-tests: Likewise.
33902         * modules/isinf-tests: Likewise.
33903         * modules/ldexpl-tests: Likewise.
33904         * modules/locale-tests: Likewise.
33905         * modules/math-tests: Likewise.
33906         * modules/netdb-tests: Likewise.
33907         * modules/netinet_in-tests: Likewise.
33908         * modules/printf-frexp-tests: Likewise.
33909         * modules/printf-frexpl-tests: Likewise.
33910         * modules/priv-set-tests: Likewise.
33911         * modules/random_r-tests: Likewise.
33912         * modules/round-tests: Likewise.
33913         * modules/roundf-tests: Likewise.
33914         * modules/roundl-tests: Likewise.
33915         * modules/search-tests: Likewise.
33916         * modules/select-tests: Likewise.
33917         * modules/signal-tests: Likewise.
33918         * modules/stdbool-tests: Likewise.
33919         * modules/stddef-tests: Likewise.
33920         * modules/stdint-tests: Likewise.
33921         * modules/stdio-tests: Likewise.
33922         * modules/stdlib-tests: Likewise.
33923         * modules/string-tests: Likewise.
33924         * modules/strings-tests: Likewise.
33925         * modules/sys_select-tests: Likewise.
33926         * modules/sys_socket-tests: Likewise.
33927         * modules/sys_stat-tests: Likewise.
33928         * modules/sys_time-tests: Likewise.
33929         * modules/sys_utsname-tests: Likewise.
33930         * modules/sysexits-tests: Likewise.
33931         * modules/time-tests: Likewise.
33932         * modules/trunc-tests: Likewise.
33933         * modules/truncf-tests: Likewise.
33934         * modules/truncl-tests: Likewise.
33935         * modules/tsearch-tests: Likewise.
33936         * modules/unistd-tests: Likewise.
33937         * modules/wchar-tests: Likewise.
33938         * modules/wctype-tests: Likewise.
33939
33940         tests: fix license on several tests
33941         * tests/test-des.c: Update to GPLv3+.
33942         * tests/test-flock.c: Likewise.
33943         * tests/test-fsync.c: Likewise.
33944         * tests/test-futimens.h: Likewise.
33945         * tests/test-gc-arcfour.c: Likewise.
33946         * tests/test-gc-arctwo.c: Likewise.
33947         * tests/test-gc-des.c: Likewise.
33948         * tests/test-gc-hmac-md5.c: Likewise.
33949         * tests/test-gc-hmac-sha1.c: Likewise.
33950         * tests/test-gc-md2.c: Likewise.
33951         * tests/test-gc-md4.c: Likewise.
33952         * tests/test-gc-md5.c: Likewise.
33953         * tests/test-gc-pbkdf2-sha1.c: Likewise.
33954         * tests/test-gc-rijndael.c: Likewise.
33955         * tests/test-gc-sha1.c: Likewise.
33956         * tests/test-gc.c: Likewise.
33957         * tests/test-getcwd.c: Likewise.
33958         * tests/test-link.c: Likewise.
33959         * tests/test-link.h: Likewise.
33960         * tests/test-lutimens.h: Likewise.
33961         * tests/test-md2.c: Likewise.
33962         * tests/test-md4.c: Likewise.
33963         * tests/test-mkdir.h: Likewise.
33964         * tests/test-rename.c: Likewise.
33965         * tests/test-rename.h: Likewise.
33966         * tests/test-safe-alloc.c: Likewise.
33967         * tests/test-utimens-common.h: Likewise.
33968         * tests/test-utimens.h: Likewise.
33969
33970         maint: sync license texts
33971         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
33972         * doc/gpl-3.0.texi: Revert copyright year update.
33973         * doc/lgpl-3.0.texi: Likewise.
33974
33975 2009-12-29  Jim Meyering  <meyering@redhat.com>
33976
33977         update nearly all FSF copyright year lists to include 2009
33978         The files named by the following are exempted:
33979             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
33980               test -f "$dst" && { echo "$dst"; continue; }
33981               test -d "$dst" || continue
33982               echo "$dst"/$(basename "$src")
33983             done > exempt
33984             git ls-files tests/unictype >> exempt
33985         In the remaining files, convert to all-interval notation if
33986         - there is already at least one year interval like 2000-2003
33987         - the file is maintained by me
33988         - the file is in lib/uni*/, where that style already prevails
33989         Otherwise, use update-copyright's default.
33990
33991 2009-12-29  Simon Josefsson  <simon@josefsson.org>
33992         and Eric Blake  <ebb9@byu.net>
33993
33994         tests: don't require debug system() to pass
33995         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
33996         * tests/test-rmdir.h (test_rmdir_func): Likewise.
33997         * tests/test-unlink.h (test_unlink_func): Likewise.
33998         * tests/test-fstatat.c (main): ...into callers.
33999         * tests/test-lstat.c (main): Likewise.
34000         * tests/test-rmdir.c (main): Likewise.
34001         * tests/test-unlink.c (main): Likewise.
34002         * tests/test-unlinkat.c (main): Likewise.
34003         * tests/test-areadlink-with-size.c (main): Don't require a
34004         debug-only system call to pass, aiding cross-testing to mingw.
34005         * tests/test-areadlink.c (main): Likewise.
34006         * tests/test-areadlinkat-with-size.c (main): Likewise.
34007         * tests/test-areadlinkat.c (main): Likewise.
34008         * tests/test-canonicalize-lgpl.c (main): Likewise.
34009         * tests/test-canonicalize.c (main): Likewise.
34010         * tests/test-chown.c (main): Likewise.
34011         * tests/test-fchownat.c (main): Likewise.
34012         * tests/test-lchown.c (main): Likewise.
34013         * tests/test-fdutimensat.c (main): Likewise.
34014         * tests/test-futimens.c (main): Likewise.
34015         * tests/test-link.c (main): Likewise.
34016         * tests/test-linkat.c (main): Likewise.
34017         * tests/test-mkdir.c (main): Likewise.
34018         * tests/test-mkdirat.c (main): Likewise.
34019         * tests/test-mkfifo.c (main): Likewise.
34020         * tests/test-mkfifoat.c (main): Likewise.
34021         * tests/test-mknod.c (main): Likewise.
34022         * tests/test-readlink.c (main): Likewise.
34023         * tests/test-remove.c (main): Likewise.
34024         * tests/test-rename.c (main): Likewise.
34025         * tests/test-renameat.c (main): Likewise.
34026         * tests/test-symlink.c (main): Likewise.
34027         * tests/test-symlinkat.c (main): Likewise.
34028         * tests/test-utimens.c (main): Likewise.
34029         * tests/test-utimensat.c (main): Likewise.
34030
34031 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34032
34033         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34034         on $(UNUSED_PARAMETER_H) to avoid build failure.
34035
34036 2009-12-28  Jim Meyering  <meyering@redhat.com>
34037
34038         update-copyright: you may specify a max. line length other than 72
34039         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34040
34041         maint: use consistent FSF copyright line syntax
34042         * lib/posixtm.c: Add missing comma in FSF copyright line.
34043         * lib/posixtm.h: Likewise.
34044         * lib/getugroups.c: Add missing ", Inc.".
34045
34046         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34047         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34048         FSF copyright line.  Remove trailing blanks.
34049
34050 2009-12-28  Eric Blake  <ebb9@byu.net>
34051
34052         test-dup2: reduce dependencies
34053         * modules/cloexec (Configure.ac): Set witness.
34054         * modules/dup2-tests (Depends-on): Drop cloexec.
34055         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34056         not present.
34057         Suggested by Bruno Haible.
34058
34059 2009-12-26  Bruno Haible  <bruno@clisp.org>
34060
34061         Remove an unneeded dependency.
34062         * modules/fseterr (Depends-on): Remove dup2.
34063
34064 2009-12-26  Eric Blake  <ebb9@byu.net>
34065
34066         tests: use macros.h in more places
34067         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34068         (ASSERT_STREAM): Provide default of stderr.
34069         * tests/test-dirent-safer.c: Include macros.h, using alternate
34070         stream for assertions.
34071         * tests/test-dup-safer.c: Likewise.
34072         * tests/test-freopen-safer.c: Likewise.
34073         * tests/test-getopt.c: Likewise.
34074         * tests/test-openat-safer.c: Likewise.
34075         * tests/test-pipe.c: Likewise.
34076         * tests/test-popen-safer.c: Likewise.
34077         * modules/dirent-safer-tests (Files): Include macros.h.
34078         * modules/unistd-safer-tests (Files): Likewise.
34079         * modules/freopen-safer-tests (Files): Likewise.
34080         * modules/getopt-posix-tests (Files): Likewise.
34081         * modules/openat-safer-tests (Files): Likewise.
34082         * modules/pipe-tests (Files): Likewise.
34083
34084 2009-12-26  Bruno Haible  <bruno@clisp.org>
34085
34086         javacomp: Portability fix.
34087         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34088         that it also works on Solaris.
34089
34090 2009-12-26  Bruno Haible  <bruno@clisp.org>
34091
34092         localename: Fix storage allocation of gl_locale_name_thread's result.
34093         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34094         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34095         all platforms that have 'uselocale'.
34096         (gl_locale_name_thread_unsafe): New function, extracted from
34097         gl_locale_name_thread.
34098         (gl_locale_name_thread): Call struniq on all platforms that have
34099         'uselocale'.
34100         * tests/test-localename.c (test_locale_name_thread): Check that the
34101         resulting strings are permanently allocated.
34102         * modules/localename-tests (Depends-on): Add strdup.
34103
34104 2009-12-26  Bruno Haible  <bruno@clisp.org>
34105
34106         * tests/test-localename.c (categories): Fill in the strings.
34107
34108 2009-12-26  Jim Meyering  <meyering@redhat.com>
34109
34110         isdir: complete the removal of m4/isdir.m4
34111         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34112
34113         isdir: clean up, since at least grep still uses it
34114         * lib/isdir.c: Include "isdir.h".
34115         (S_ISDIR): Remove now-unneeded definition.
34116         * modules/isdir (Files): Add lib/isdir.h.
34117         * lib/isdir.h: New file, with declaration.
34118         * m4/isdir.m4: Remove file -- unneeded.
34119
34120 2009-12-25  Bruno Haible  <bruno@clisp.org>
34121
34122         selinux-h: Make generated .h files standalone.
34123         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34124         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34125         * lib/se-selinux.in.h: Likewise.
34126         * modules/selinux-h (Depends-on): Add unused-parameter.
34127         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34128         selinux/selinux.h and selinux/context.h.
34129         Suggested by Eric Blake.
34130
34131 2009-12-25  Bruno Haible  <bruno@clisp.org>
34132
34133         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34134         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34135         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34136         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34137         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34138
34139 2009-12-24  Bruno Haible  <bruno@clisp.org>
34140
34141         openat: Fix warning.
34142         * lib/openat-proc.c: Include <unistd.h>.
34143
34144 2009-12-24  Bruno Haible  <bruno@clisp.org>
34145
34146         New module 'unused-parameter'.
34147         * build-aux/unused-parameter.h: New file, extracted from earlier
34148         gnulib-common.m4.
34149         * modules/unused-parameter: New file.
34150         * lib/unistr.h: Include unused-parameter.h.
34151         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34152         _GL_UNUSED.
34153         * modules/unistr/base (Depends-on): Add unused-parameter.
34154
34155 2009-12-24  Bruno Haible  <bruno@clisp.org>
34156
34157         Add missing dependencies to 'extensions' module.
34158         * m4/extensions.m4: Add comment.
34159         * modules/accept4 (Depends-on): Add extensions.
34160         * modules/dup3 (Depends-on): Likewise.
34161         * modules/fcntl (Depends-on): Likewise.
34162         * modules/futimens (Depends-on): Likewise.
34163         * modules/mknod (Depends-on): Likewise.
34164         * modules/pipe2 (Depends-on): Likewise.
34165         * modules/stat-time (Depends-on): Likewise.
34166         * modules/strcasestr-simple (Depends-on): Likewise.
34167         * modules/strsignal (Depends-on): Likewise.
34168         * modules/utimensat (Depends-on): Likewise.
34169         * modules/localcharset (Depends-on): Likewise. Needed because of
34170         gl_FCNTL_O_FLAGS.
34171         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34172         AC_TYPE_MBSTATE_T.
34173         * modules/wcsnrtombs (Depends-on): Likewise.
34174         * modules/wcsrtombs (Depends-on): Likewise.
34175
34176 2009-12-24  Bruno Haible  <bruno@clisp.org>
34177
34178         binary-io: Avoid gcc warning due to SET_BINARY.
34179         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34180         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34181
34182 2009-12-24  Bruno Haible  <bruno@clisp.org>
34183
34184         Avoid future namespace pollution on glibc systems.
34185         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34186         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34187         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34188         glibc systems.
34189
34190 2009-12-24  Bruno Haible  <bruno@clisp.org>
34191
34192         Refactor common macros used in tests.
34193         * tests/macros.h: New file.
34194         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34195         and/or <stdlib.h>, if appropriate.
34196         (ASSERT, SIZEOF): Remove macros.
34197         * tests/test-areadlink-with-size.c: Likewise.
34198         * tests/test-areadlinkat.c: Likewise.
34199         * tests/test-areadlinkat-with-size.c: Likewise.
34200         * tests/test-argmatch.c: Likewise.
34201         * tests/test-argv-iter.c: Likewise.
34202         * tests/test-array-mergesort.c: Likewise.
34203         * tests/test-array_list.c: Likewise.
34204         * tests/test-array_oset.c: Likewise.
34205         * tests/test-avltree_list.c: Likewise.
34206         * tests/test-avltree_oset.c: Likewise.
34207         * tests/test-avltreehash_list.c: Likewise.
34208         * tests/test-base64.c: Likewise.
34209         * tests/test-binary-io.c: Likewise.
34210         * tests/test-bitrotate.c: Likewise.
34211         * tests/test-btowc.c: Likewise.
34212         * tests/test-byteswap.c: Likewise.
34213         * tests/test-c-ctype.c: Likewise.
34214         * tests/test-c-stack.c: Likewise.
34215         * tests/test-c-strcasecmp.c: Likewise.
34216         * tests/test-c-strcasestr.c: Likewise.
34217         * tests/test-c-strncasecmp.c: Likewise.
34218         * tests/test-c-strstr.c: Likewise.
34219         * tests/test-canonicalize-lgpl.c: Likewise.
34220         * tests/test-canonicalize.c: Likewise.
34221         * tests/test-carray_list.c: Likewise.
34222         * tests/test-ceilf1.c: Likewise.
34223         * tests/test-ceilf2.c: Likewise.
34224         * tests/test-ceill.c: Likewise.
34225         * tests/test-chown.c: Likewise.
34226         * tests/test-cloexec.c: Likewise.
34227         * tests/test-copy-acl.c: Likewise.
34228         * tests/test-copy-file.c: Likewise.
34229         * tests/test-count-one-bits.c: Likewise.
34230         * tests/test-dprintf-posix.c: Likewise.
34231         * tests/test-dup2.c: Likewise.
34232         * tests/test-dup3.c: Likewise.
34233         * tests/test-duplocale.c: Likewise.
34234         * tests/test-fbufmode.c: Likewise.
34235         * tests/test-fchdir.c: Likewise.
34236         * tests/test-fchownat.c: Likewise.
34237         * tests/test-fcntl-safer.c: Likewise.
34238         * tests/test-fcntl.c: Likewise.
34239         * tests/test-fdopendir.c: Likewise.
34240         * tests/test-fdutimensat.c: Likewise.
34241         * tests/test-fflush2.c: Likewise.
34242         * tests/test-file-has-acl.c: Likewise.
34243         * tests/test-filevercmp.c: Likewise.
34244         * tests/test-flock.c: Likewise.
34245         * tests/test-floorf1.c: Likewise.
34246         * tests/test-floorf2.c: Likewise.
34247         * tests/test-floorl.c: Likewise.
34248         * tests/test-fnmatch.c: Likewise.
34249         * tests/test-fopen.h: Likewise.
34250         * tests/test-fpending.c: Likewise.
34251         * tests/test-fprintf-posix.c: Likewise.
34252         * tests/test-fpurge.c: Likewise.
34253         * tests/test-freadable.c: Likewise.
34254         * tests/test-freadahead.c: Likewise.
34255         * tests/test-freading.c: Likewise.
34256         * tests/test-freadptr.c: Likewise.
34257         * tests/test-freadptr2.c: Likewise.
34258         * tests/test-freadseek.c: Likewise.
34259         * tests/test-freopen.c: Likewise.
34260         * tests/test-frexp.c: Likewise.
34261         * tests/test-frexpl.c: Likewise.
34262         * tests/test-fseek.c: Likewise.
34263         * tests/test-fseeko.c: Likewise.
34264         * tests/test-fstatat.c: Likewise.
34265         * tests/test-fstrcmp.c: Likewise.
34266         * tests/test-fsync.c: Likewise.
34267         * tests/test-ftell.c: Likewise.
34268         * tests/test-ftello.c: Likewise.
34269         * tests/test-func.c: Likewise.
34270         * tests/test-futimens.c: Likewise.
34271         * tests/test-fwritable.c: Likewise.
34272         * tests/test-fwriting.c: Likewise.
34273         * tests/test-getcwd.c: Likewise.
34274         * tests/test-getdate.c: Likewise.
34275         * tests/test-getdelim.c: Likewise.
34276         * tests/test-getdtablesize.c: Likewise.
34277         * tests/test-getgroups.c: Likewise.
34278         * tests/test-getline.c: Likewise.
34279         * tests/test-getndelim2.c: Likewise.
34280         * tests/test-glob.c: Likewise.
34281         * tests/test-hash.c: Likewise.
34282         * tests/test-i-ring.c: Likewise.
34283         * tests/test-iconv-utf.c: Likewise.
34284         * tests/test-iconv.c: Likewise.
34285         * tests/test-idpriv-drop.c: Likewise.
34286         * tests/test-idpriv-droptemp.c: Likewise.
34287         * tests/test-inet_ntop.c: Likewise.
34288         * tests/test-inet_pton.c: Likewise.
34289         * tests/test-isblank.c: Likewise.
34290         * tests/test-isfinite.c: Likewise.
34291         * tests/test-isinf.c: Likewise.
34292         * tests/test-isnan.c: Likewise.
34293         * tests/test-isnand.h: Likewise.
34294         * tests/test-isnanf.h: Likewise.
34295         * tests/test-isnanl.h: Likewise.
34296         * tests/test-lchown.c: Likewise.
34297         * tests/test-ldexpl.c: Likewise.
34298         * tests/test-link.c: Likewise.
34299         * tests/test-linkat.c: Likewise.
34300         * tests/test-linked_list.c: Likewise.
34301         * tests/test-linkedhash_list.c: Likewise.
34302         * tests/test-localename.c: Likewise.
34303         * tests/test-lseek.c: Likewise.
34304         * tests/test-lstat.c: Likewise.
34305         * tests/test-mbmemcasecmp.c: Likewise.
34306         * tests/test-mbmemcasecoll.c: Likewise.
34307         * tests/test-mbrtowc.c: Likewise.
34308         * tests/test-mbscasecmp.c: Likewise.
34309         * tests/test-mbscasestr1.c: Likewise.
34310         * tests/test-mbscasestr2.c: Likewise.
34311         * tests/test-mbscasestr3.c: Likewise.
34312         * tests/test-mbscasestr4.c: Likewise.
34313         * tests/test-mbschr.c: Likewise.
34314         * tests/test-mbscspn.c: Likewise.
34315         * tests/test-mbsinit.c: Likewise.
34316         * tests/test-mbsncasecmp.c: Likewise.
34317         * tests/test-mbsnrtowcs.c: Likewise.
34318         * tests/test-mbspbrk.c: Likewise.
34319         * tests/test-mbspcasecmp.c: Likewise.
34320         * tests/test-mbsrchr.c: Likewise.
34321         * tests/test-mbsrtowcs.c: Likewise.
34322         * tests/test-mbsspn.c: Likewise.
34323         * tests/test-mbsstr1.c: Likewise.
34324         * tests/test-mbsstr2.c: Likewise.
34325         * tests/test-mbsstr3.c: Likewise.
34326         * tests/test-memchr.c: Likewise.
34327         * tests/test-memchr2.c: Likewise.
34328         * tests/test-memcmp.c: Likewise.
34329         * tests/test-memmem.c: Likewise.
34330         * tests/test-memrchr.c: Likewise.
34331         * tests/test-mkdir.c: Likewise.
34332         * tests/test-mkdirat.c: Likewise.
34333         * tests/test-mkfifo.c: Likewise.
34334         * tests/test-mkfifoat.c: Likewise.
34335         * tests/test-mknod.c: Likewise.
34336         * tests/test-nanosleep.c: Likewise.
34337         * tests/test-nl_langinfo.c: Likewise.
34338         * tests/test-obstack-printf.c: Likewise.
34339         * tests/test-open.c: Likewise.
34340         * tests/test-openat.c: Likewise.
34341         * tests/test-pipe-filter-gi1.c: Likewise.
34342         * tests/test-pipe-filter-gi2-main.c: Likewise.
34343         * tests/test-pipe-filter-ii1.c: Likewise.
34344         * tests/test-pipe-filter-ii2-main.c: Likewise.
34345         * tests/test-pipe2.c: Likewise.
34346         * tests/test-popen.h: Likewise.
34347         * tests/test-posixtm.c: Likewise.
34348         * tests/test-pread.c: Likewise.
34349         * tests/test-printf-frexp.c: Likewise.
34350         * tests/test-printf-frexpl.c: Likewise.
34351         * tests/test-printf-posix.c: Likewise.
34352         * tests/test-priv-set.c: Likewise.
34353         * tests/test-quotearg.c: Likewise.
34354         * tests/test-random_r.c: Likewise.
34355         * tests/test-rawmemchr.c: Likewise.
34356         * tests/test-rbtree_list.c: Likewise.
34357         * tests/test-rbtree_oset.c: Likewise.
34358         * tests/test-rbtreehash_list.c: Likewise.
34359         * tests/test-readlink.c: Likewise.
34360         * tests/test-remove.c: Likewise.
34361         * tests/test-rename.c: Likewise.
34362         * tests/test-renameat.c: Likewise.
34363         * tests/test-rmdir.c: Likewise.
34364         * tests/test-round1.c: Likewise.
34365         * tests/test-roundf1.c: Likewise.
34366         * tests/test-roundl.c: Likewise.
34367         * tests/test-safe-alloc.c: Likewise.
34368         * tests/test-sameacls.c: Likewise.
34369         * tests/test-set-mode-acl.c: Likewise.
34370         * tests/test-setenv.c: Likewise.
34371         * tests/test-sigaction.c: Likewise.
34372         * tests/test-signbit.c: Likewise.
34373         * tests/test-sleep.c: Likewise.
34374         * tests/test-snprintf-posix.c: Likewise.
34375         * tests/test-snprintf.c: Likewise.
34376         * tests/test-sprintf-posix.c: Likewise.
34377         * tests/test-stat-time.c: Likewise.
34378         * tests/test-stat.c: Likewise.
34379         * tests/test-strcasestr.c: Likewise.
34380         * tests/test-strchrnul.c: Likewise.
34381         * tests/test-strerror.c: Likewise.
34382         * tests/test-striconv.c: Likewise.
34383         * tests/test-striconveh.c: Likewise.
34384         * tests/test-striconveha.c: Likewise.
34385         * tests/test-strsignal.c: Likewise.
34386         * tests/test-strstr.c: Likewise.
34387         * tests/test-strtod.c: Likewise.
34388         * tests/test-strverscmp.c: Likewise.
34389         * tests/test-symlink.c: Likewise.
34390         * tests/test-symlinkat.c: Likewise.
34391         * tests/test-trunc1.c: Likewise.
34392         * tests/test-trunc2.c: Likewise.
34393         * tests/test-truncf1.c: Likewise.
34394         * tests/test-truncf2.c: Likewise.
34395         * tests/test-truncl.c: Likewise.
34396         * tests/test-uname.c: Likewise.
34397         * tests/test-unlink.c: Likewise.
34398         * tests/test-unlinkat.c: Likewise.
34399         * tests/test-unsetenv.c: Likewise.
34400         * tests/test-usleep.c: Likewise.
34401         * tests/test-utimens.c: Likewise.
34402         * tests/test-utimensat.c: Likewise.
34403         * tests/test-vasnprintf-posix.c: Likewise.
34404         * tests/test-vasnprintf-posix2.c: Likewise.
34405         * tests/test-vasnprintf.c: Likewise.
34406         * tests/test-vasprintf-posix.c: Likewise.
34407         * tests/test-vasprintf.c: Likewise.
34408         * tests/test-vdprintf-posix.c: Likewise.
34409         * tests/test-vfprintf-posix.c: Likewise.
34410         * tests/test-vprintf-posix.c: Likewise.
34411         * tests/test-vsnprintf-posix.c: Likewise.
34412         * tests/test-vsnprintf.c: Likewise.
34413         * tests/test-vsprintf-posix.c: Likewise.
34414         * tests/test-wcrtomb.c: Likewise.
34415         * tests/test-wcsnrtombs.c: Likewise.
34416         * tests/test-wcsrtombs.c: Likewise.
34417         * tests/test-wctype.c: Likewise.
34418         * tests/test-wcwidth.c: Likewise.
34419         * tests/test-xfprintf-posix.c: Likewise.
34420         * tests/test-xmemdup0.c: Likewise.
34421         * tests/test-xprintf-posix.c: Likewise.
34422         * tests/test-xvasprintf.c: Likewise.
34423         * tests/unicase/test-locale-language.c: Likewise.
34424         * tests/unicase/test-mapping-part1.h: Likewise.
34425         * tests/unicase/test-predicate-part1.h: Likewise.
34426         * tests/unicase/test-u8-casecmp.c: Likewise.
34427         * tests/unicase/test-u8-casecoll.c: Likewise.
34428         * tests/unicase/test-u8-casefold.c: Likewise.
34429         * tests/unicase/test-u8-is-cased.c: Likewise.
34430         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34431         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34432         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34433         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34434         * tests/unicase/test-u8-tolower.c: Likewise.
34435         * tests/unicase/test-u8-totitle.c: Likewise.
34436         * tests/unicase/test-u8-toupper.c: Likewise.
34437         * tests/unicase/test-u16-casecmp.c: Likewise.
34438         * tests/unicase/test-u16-casecoll.c: Likewise.
34439         * tests/unicase/test-u16-casefold.c: Likewise.
34440         * tests/unicase/test-u16-is-cased.c: Likewise.
34441         * tests/unicase/test-u16-is-casefolded.c: Likewise.
34442         * tests/unicase/test-u16-is-lowercase.c: Likewise.
34443         * tests/unicase/test-u16-is-titlecase.c: Likewise.
34444         * tests/unicase/test-u16-is-uppercase.c: Likewise.
34445         * tests/unicase/test-u16-tolower.c: Likewise.
34446         * tests/unicase/test-u16-totitle.c: Likewise.
34447         * tests/unicase/test-u16-toupper.c: Likewise.
34448         * tests/unicase/test-u32-casecmp.c: Likewise.
34449         * tests/unicase/test-u32-casecoll.c: Likewise.
34450         * tests/unicase/test-u32-casefold.c: Likewise.
34451         * tests/unicase/test-u32-is-cased.c: Likewise.
34452         * tests/unicase/test-u32-is-casefolded.c: Likewise.
34453         * tests/unicase/test-u32-is-lowercase.c: Likewise.
34454         * tests/unicase/test-u32-is-titlecase.c: Likewise.
34455         * tests/unicase/test-u32-is-uppercase.c: Likewise.
34456         * tests/unicase/test-u32-tolower.c: Likewise.
34457         * tests/unicase/test-u32-totitle.c: Likewise.
34458         * tests/unicase/test-u32-toupper.c: Likewise.
34459         * tests/unicase/test-ulc-casecmp.c: Likewise.
34460         * tests/unicase/test-ulc-casecoll.c: Likewise.
34461         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
34462         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
34463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
34464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
34465         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
34466         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
34467         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
34468         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
34469         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
34470         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
34471         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
34472         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
34473         * tests/unictype/test-bidi_byname.c: Likewise.
34474         * tests/unictype/test-bidi_name.c: Likewise.
34475         * tests/unictype/test-bidi_of.c: Likewise.
34476         * tests/unictype/test-bidi_test.c: Likewise.
34477         * tests/unictype/test-block_list.c: Likewise.
34478         * tests/unictype/test-block_of.c: Likewise.
34479         * tests/unictype/test-block_test.c: Likewise.
34480         * tests/unictype/test-categ_and.c: Likewise.
34481         * tests/unictype/test-categ_and_not.c: Likewise.
34482         * tests/unictype/test-categ_byname.c: Likewise.
34483         * tests/unictype/test-categ_name.c: Likewise.
34484         * tests/unictype/test-categ_none.c: Likewise.
34485         * tests/unictype/test-categ_of.c: Likewise.
34486         * tests/unictype/test-categ_or.c: Likewise.
34487         * tests/unictype/test-categ_test_withtable.c: Likewise.
34488         * tests/unictype/test-combining.c: Likewise.
34489         * tests/unictype/test-decdigit.c: Likewise.
34490         * tests/unictype/test-digit.c: Likewise.
34491         * tests/unictype/test-mirror.c: Likewise.
34492         * tests/unictype/test-numeric.c: Likewise.
34493         * tests/unictype/test-pr_byname.c: Likewise.
34494         * tests/unictype/test-pr_test.c: Likewise.
34495         * tests/unictype/test-predicate-part1.h: Likewise.
34496         * tests/unictype/test-scripts.c: Likewise.
34497         * tests/unictype/test-sy_c_ident.c: Likewise.
34498         * tests/unictype/test-sy_java_ident.c: Likewise.
34499         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
34500         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
34501         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
34502         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
34503         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
34504         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
34505         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
34506         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
34507         * tests/uninorm/test-canonical-decomposition.c: Likewise.
34508         * tests/uninorm/test-compat-decomposition.c: Likewise.
34509         * tests/uninorm/test-composition.c: Likewise.
34510         * tests/uninorm/test-decomposing-form.c: Likewise.
34511         * tests/uninorm/test-decomposition.c: Likewise.
34512         * tests/uninorm/test-u8-nfc.c: Likewise.
34513         * tests/uninorm/test-u8-nfd.c: Likewise.
34514         * tests/uninorm/test-u8-nfkc.c: Likewise.
34515         * tests/uninorm/test-u8-nfkd.c: Likewise.
34516         * tests/uninorm/test-u8-normcmp.c: Likewise.
34517         * tests/uninorm/test-u8-normcoll.c: Likewise.
34518         * tests/uninorm/test-u16-nfc.c: Likewise.
34519         * tests/uninorm/test-u16-nfd.c: Likewise.
34520         * tests/uninorm/test-u16-nfkc.c: Likewise.
34521         * tests/uninorm/test-u16-nfkd.c: Likewise.
34522         * tests/uninorm/test-u16-normcmp.c: Likewise.
34523         * tests/uninorm/test-u16-normcoll.c: Likewise.
34524         * tests/uninorm/test-u32-nfc.c: Likewise.
34525         * tests/uninorm/test-u32-nfd.c: Likewise.
34526         * tests/uninorm/test-u32-nfkc.c: Likewise.
34527         * tests/uninorm/test-u32-nfkd.c: Likewise.
34528         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34529         * tests/uninorm/test-u32-normcmp.c: Likewise.
34530         * tests/uninorm/test-u32-normcoll.c: Likewise.
34531         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
34532         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
34533         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
34534         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
34535         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
34536         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
34537         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
34538         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
34539         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
34540         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
34541         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
34542         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
34543         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
34544         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
34545         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
34546         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
34547         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
34548         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
34549         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
34550         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
34551         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
34552         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
34553         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
34554         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
34555         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
34556         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
34557         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
34558         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
34559         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
34560         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
34561         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
34562         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
34563         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
34564         * tests/uniwidth/test-u8-strwidth.c: Likewise.
34565         * tests/uniwidth/test-u8-width.c: Likewise.
34566         * tests/uniwidth/test-u16-strwidth.c: Likewise.
34567         * tests/uniwidth/test-u16-width.c: Likewise.
34568         * tests/uniwidth/test-u32-strwidth.c: Likewise.
34569         * tests/uniwidth/test-u32-width.c: Likewise.
34570         * tests/uniwidth/test-uc_width.c: Likewise.
34571         * tests/uniwidth/test-uc_width2.c: Likewise.
34572         * modules/acl-tests (Files): Add tests/macros.h.
34573         * modules/areadlink-tests (Files): Likewise.
34574         * modules/areadlink-with-size-tests (Files): Likewise.
34575         * modules/areadlinkat-tests (Files): Likewise.
34576         * modules/areadlinkat-with-size-tests (Files): Likewise.
34577         * modules/argmatch-tests (Files): Likewise.
34578         * modules/argv-iter-tests (Files): Likewise.
34579         * modules/array-list-tests (Files): Likewise.
34580         * modules/array-mergesort-tests (Files): Likewise.
34581         * modules/array-oset-tests (Files): Likewise.
34582         * modules/avltree-list-tests (Files): Likewise.
34583         * modules/avltree-oset-tests (Files): Likewise.
34584         * modules/avltreehash-list-tests (Files): Likewise.
34585         * modules/base64-tests (Files): Likewise.
34586         * modules/binary-io-tests (Files): Likewise.
34587         * modules/bitrotate-tests (Files): Likewise.
34588         * modules/btowc-tests (Files): Likewise.
34589         * modules/byteswap-tests (Files): Likewise.
34590         * modules/c-ctype-tests (Files): Likewise.
34591         * modules/c-stack-tests (Files): Likewise.
34592         * modules/c-strcase-tests (Files): Likewise.
34593         * modules/c-strcasestr-tests (Files): Likewise.
34594         * modules/c-strstr-tests (Files): Likewise.
34595         * modules/canonicalize-lgpl-tests (Files): Likewise.
34596         * modules/canonicalize-tests (Files): Likewise.
34597         * modules/carray-list-tests (Files): Likewise.
34598         * modules/ceilf-tests (Files): Likewise.
34599         * modules/ceill-tests (Files): Likewise.
34600         * modules/chown-tests (Files): Likewise.
34601         * modules/cloexec-tests (Files): Likewise.
34602         * modules/copy-file-tests (Files): Likewise.
34603         * modules/count-one-bits-tests (Files): Likewise.
34604         * modules/dprintf-posix-tests (Files): Likewise.
34605         * modules/dup2-tests (Files): Likewise.
34606         * modules/dup3-tests (Files): Likewise.
34607         * modules/duplocale-tests (Files): Likewise.
34608         * modules/fbufmode-tests (Files): Likewise.
34609         * modules/fchdir-tests (Files): Likewise.
34610         * modules/fcntl-safer-tests (Files): Likewise.
34611         * modules/fcntl-tests (Files): Likewise.
34612         * modules/fdopendir-tests (Files): Likewise.
34613         * modules/fdutimensat-tests (Files): Likewise.
34614         * modules/fflush-tests (Files): Likewise.
34615         * modules/filevercmp-tests (Files): Likewise.
34616         * modules/flock-tests (Files): Likewise.
34617         * modules/floorf-tests (Files): Likewise.
34618         * modules/floorl-tests (Files): Likewise.
34619         * modules/fnmatch-tests (Files): Likewise.
34620         * modules/fopen-safer-tests (Files): Likewise.
34621         * modules/fopen-tests (Files): Likewise.
34622         * modules/fpending-tests (Files): Likewise.
34623         * modules/fprintf-posix-tests (Files): Likewise.
34624         * modules/fpurge-tests (Files): Likewise.
34625         * modules/freadable-tests (Files): Likewise.
34626         * modules/freadahead-tests (Files): Likewise.
34627         * modules/freading-tests (Files): Likewise.
34628         * modules/freadptr-tests (Files): Likewise.
34629         * modules/freadseek-tests (Files): Likewise.
34630         * modules/freopen-tests (Files): Likewise.
34631         * modules/frexp-nolibm-tests (Files): Likewise.
34632         * modules/frexp-tests (Files): Likewise.
34633         * modules/frexpl-nolibm-tests (Files): Likewise.
34634         * modules/frexpl-tests (Files): Likewise.
34635         * modules/fseek-tests (Files): Likewise.
34636         * modules/fseeko-tests (Files): Likewise.
34637         * modules/fstrcmp-tests (Files): Likewise.
34638         * modules/fsync-tests (Files): Likewise.
34639         * modules/ftell-tests (Files): Likewise.
34640         * modules/ftello-tests (Files): Likewise.
34641         * modules/func-tests (Files): Likewise.
34642         * modules/futimens-tests (Files): Likewise.
34643         * modules/fwritable-tests (Files): Likewise.
34644         * modules/fwriting-tests (Files): Likewise.
34645         * modules/getcwd-tests (Files): Likewise.
34646         * modules/getdate-tests (Files): Likewise.
34647         * modules/getdelim-tests (Files): Likewise.
34648         * modules/getdtablesize-tests (Files): Likewise.
34649         * modules/getgroups-tests (Files): Likewise.
34650         * modules/getline-tests (Files): Likewise.
34651         * modules/getndelim2-tests (Files): Likewise.
34652         * modules/glob-tests (Files): Likewise.
34653         * modules/hash-tests (Files): Likewise.
34654         * modules/i-ring-tests (Files): Likewise.
34655         * modules/iconv-tests (Files): Likewise.
34656         * modules/iconv_open-utf-tests (Files): Likewise.
34657         * modules/idpriv-drop-tests (Files): Likewise.
34658         * modules/idpriv-droptemp-tests (Files): Likewise.
34659         * modules/inet_ntop-tests (Files): Likewise.
34660         * modules/inet_pton-tests (Files): Likewise.
34661         * modules/isblank-tests (Files): Likewise.
34662         * modules/isfinite-tests (Files): Likewise.
34663         * modules/isinf-tests (Files): Likewise.
34664         * modules/isnan-tests (Files): Likewise.
34665         * modules/isnand-nolibm-tests (Files): Likewise.
34666         * modules/isnand-tests (Files): Likewise.
34667         * modules/isnanf-nolibm-tests (Files): Likewise.
34668         * modules/isnanf-tests (Files): Likewise.
34669         * modules/isnanl-nolibm-tests (Files): Likewise.
34670         * modules/isnanl-tests (Files): Likewise.
34671         * modules/lchown-tests (Files): Likewise.
34672         * modules/ldexpl-tests (Files): Likewise.
34673         * modules/link-tests (Files): Likewise.
34674         * modules/linkat-tests (Files): Likewise.
34675         * modules/linked-list-tests (Files): Likewise.
34676         * modules/linkedhash-list-tests (Files): Likewise.
34677         * modules/localename-tests (Files): Likewise.
34678         * modules/lseek-tests (Files): Likewise.
34679         * modules/lstat-tests (Files): Likewise.
34680         * modules/mbmemcasecmp-tests (Files): Likewise.
34681         * modules/mbmemcasecoll-tests (Files): Likewise.
34682         * modules/mbrtowc-tests (Files): Likewise.
34683         * modules/mbscasecmp-tests (Files): Likewise.
34684         * modules/mbscasestr-tests (Files): Likewise.
34685         * modules/mbschr-tests (Files): Likewise.
34686         * modules/mbscspn-tests (Files): Likewise.
34687         * modules/mbsinit-tests (Files): Likewise.
34688         * modules/mbsncasecmp-tests (Files): Likewise.
34689         * modules/mbsnrtowcs-tests (Files): Likewise.
34690         * modules/mbspbrk-tests (Files): Likewise.
34691         * modules/mbspcasecmp-tests (Files): Likewise.
34692         * modules/mbsrchr-tests (Files): Likewise.
34693         * modules/mbsrtowcs-tests (Files): Likewise.
34694         * modules/mbsspn-tests (Files): Likewise.
34695         * modules/mbsstr-tests (Files): Likewise.
34696         * modules/memchr-tests (Files): Likewise.
34697         * modules/memchr2-tests (Files): Likewise.
34698         * modules/memcmp-tests (Files): Likewise.
34699         * modules/memmem-tests (Files): Likewise.
34700         * modules/memrchr-tests (Files): Likewise.
34701         * modules/mkdir-tests (Files): Likewise.
34702         * modules/mkfifo-tests (Files): Likewise.
34703         * modules/mkfifoat-tests (Files): Likewise.
34704         * modules/mknod-tests (Files): Likewise.
34705         * modules/nanosleep-tests (Files): Likewise.
34706         * modules/nl_langinfo-tests (Files): Likewise.
34707         * modules/obstack-printf-tests (Files): Likewise.
34708         * modules/open-tests (Files): Likewise.
34709         * modules/openat-tests (Files): Likewise.
34710         * modules/pipe-filter-gi-tests (Files): Likewise.
34711         * modules/pipe-filter-ii-tests (Files): Likewise.
34712         * modules/pipe2-tests (Files): Likewise.
34713         * modules/popen-safer-tests (Files): Likewise.
34714         * modules/popen-tests (Files): Likewise.
34715         * modules/posixtm-tests (Files): Likewise.
34716         * modules/pread-tests (Files): Likewise.
34717         * modules/printf-frexp-tests (Files): Likewise.
34718         * modules/printf-frexpl-tests (Files): Likewise.
34719         * modules/printf-posix-tests (Files): Likewise.
34720         * modules/priv-set-tests (Files): Likewise.
34721         * modules/quotearg-tests (Files): Likewise.
34722         * modules/random_r-tests (Files): Likewise.
34723         * modules/rawmemchr-tests (Files): Likewise.
34724         * modules/rbtree-list-tests (Files): Likewise.
34725         * modules/rbtree-oset-tests (Files): Likewise.
34726         * modules/rbtreehash-list-tests (Files): Likewise.
34727         * modules/readlink-tests (Files): Likewise.
34728         * modules/remove-tests (Files): Likewise.
34729         * modules/rename-tests (Files): Likewise.
34730         * modules/renameat-tests (Files): Likewise.
34731         * modules/rmdir-tests (Files): Likewise.
34732         * modules/round-tests (Files): Likewise.
34733         * modules/roundf-tests (Files): Likewise.
34734         * modules/roundl-tests (Files): Likewise.
34735         * modules/safe-alloc-tests (Files): Likewise.
34736         * modules/setenv-tests (Files): Likewise.
34737         * modules/sigaction-tests (Files): Likewise.
34738         * modules/signbit-tests (Files): Likewise.
34739         * modules/sleep-tests (Files): Likewise.
34740         * modules/snprintf-posix-tests (Files): Likewise.
34741         * modules/snprintf-tests (Files): Likewise.
34742         * modules/sprintf-posix-tests (Files): Likewise.
34743         * modules/stat-tests (Files): Likewise.
34744         * modules/stat-time-tests (Files): Likewise.
34745         * modules/strcasestr-tests (Files): Likewise.
34746         * modules/strchrnul-tests (Files): Likewise.
34747         * modules/strerror-tests (Files): Likewise.
34748         * modules/striconv-tests (Files): Likewise.
34749         * modules/striconveh-tests (Files): Likewise.
34750         * modules/striconveha-tests (Files): Likewise.
34751         * modules/strsignal-tests (Files): Likewise.
34752         * modules/strstr-tests (Files): Likewise.
34753         * modules/strtod-tests (Files): Likewise.
34754         * modules/strverscmp-tests (Files): Likewise.
34755         * modules/symlink-tests (Files): Likewise.
34756         * modules/symlinkat-tests (Files): Likewise.
34757         * modules/trunc-tests (Files): Likewise.
34758         * modules/truncf-tests (Files): Likewise.
34759         * modules/truncl-tests (Files): Likewise.
34760         * modules/uname-tests (Files): Likewise.
34761         * modules/unicase/cased-tests (Files): Likewise.
34762         * modules/unicase/ignorable-tests (Files): Likewise.
34763         * modules/unicase/locale-language-tests (Files): Likewise.
34764         * modules/unicase/tolower-tests (Files): Likewise.
34765         * modules/unicase/totitle-tests (Files): Likewise.
34766         * modules/unicase/toupper-tests (Files): Likewise.
34767         * modules/unicase/u8-casecmp-tests (Files): Likewise.
34768         * modules/unicase/u8-casecoll-tests (Files): Likewise.
34769         * modules/unicase/u8-casefold-tests (Files): Likewise.
34770         * modules/unicase/u8-is-cased-tests (Files): Likewise.
34771         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
34772         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
34773         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
34774         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
34775         * modules/unicase/u8-tolower-tests (Files): Likewise.
34776         * modules/unicase/u8-totitle-tests (Files): Likewise.
34777         * modules/unicase/u8-toupper-tests (Files): Likewise.
34778         * modules/unicase/u16-casecmp-tests (Files): Likewise.
34779         * modules/unicase/u16-casecoll-tests (Files): Likewise.
34780         * modules/unicase/u16-casefold-tests (Files): Likewise.
34781         * modules/unicase/u16-is-cased-tests (Files): Likewise.
34782         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
34783         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
34784         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
34785         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
34786         * modules/unicase/u16-tolower-tests (Files): Likewise.
34787         * modules/unicase/u16-totitle-tests (Files): Likewise.
34788         * modules/unicase/u16-toupper-tests (Files): Likewise.
34789         * modules/unicase/u32-casecmp-tests (Files): Likewise.
34790         * modules/unicase/u32-casecoll-tests (Files): Likewise.
34791         * modules/unicase/u32-casefold-tests (Files): Likewise.
34792         * modules/unicase/u32-is-cased-tests (Files): Likewise.
34793         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
34794         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
34795         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
34796         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
34797         * modules/unicase/u32-tolower-tests (Files): Likewise.
34798         * modules/unicase/u32-totitle-tests (Files): Likewise.
34799         * modules/unicase/u32-toupper-tests (Files): Likewise.
34800         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
34801         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
34802         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
34803         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
34804         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
34805         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
34806         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
34807         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
34808         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
34809         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
34810         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
34811         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
34812         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
34813         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
34814         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
34815         * modules/unictype/bidicategory-name-tests (Files): Likewise.
34816         * modules/unictype/bidicategory-of-tests (Files): Likewise.
34817         * modules/unictype/bidicategory-test-tests (Files): Likewise.
34818         * modules/unictype/block-list-tests (Files): Likewise.
34819         * modules/unictype/block-of-tests (Files): Likewise.
34820         * modules/unictype/block-test-tests (Files): Likewise.
34821         * modules/unictype/category-C-tests (Files): Likewise.
34822         * modules/unictype/category-Cc-tests (Files): Likewise.
34823         * modules/unictype/category-Cf-tests (Files): Likewise.
34824         * modules/unictype/category-Cn-tests (Files): Likewise.
34825         * modules/unictype/category-Co-tests (Files): Likewise.
34826         * modules/unictype/category-Cs-tests (Files): Likewise.
34827         * modules/unictype/category-L-tests (Files): Likewise.
34828         * modules/unictype/category-Ll-tests (Files): Likewise.
34829         * modules/unictype/category-Lm-tests (Files): Likewise.
34830         * modules/unictype/category-Lo-tests (Files): Likewise.
34831         * modules/unictype/category-Lt-tests (Files): Likewise.
34832         * modules/unictype/category-Lu-tests (Files): Likewise.
34833         * modules/unictype/category-M-tests (Files): Likewise.
34834         * modules/unictype/category-Mc-tests (Files): Likewise.
34835         * modules/unictype/category-Me-tests (Files): Likewise.
34836         * modules/unictype/category-Mn-tests (Files): Likewise.
34837         * modules/unictype/category-N-tests (Files): Likewise.
34838         * modules/unictype/category-Nd-tests (Files): Likewise.
34839         * modules/unictype/category-Nl-tests (Files): Likewise.
34840         * modules/unictype/category-No-tests (Files): Likewise.
34841         * modules/unictype/category-P-tests (Files): Likewise.
34842         * modules/unictype/category-Pc-tests (Files): Likewise.
34843         * modules/unictype/category-Pd-tests (Files): Likewise.
34844         * modules/unictype/category-Pe-tests (Files): Likewise.
34845         * modules/unictype/category-Pf-tests (Files): Likewise.
34846         * modules/unictype/category-Pi-tests (Files): Likewise.
34847         * modules/unictype/category-Po-tests (Files): Likewise.
34848         * modules/unictype/category-Ps-tests (Files): Likewise.
34849         * modules/unictype/category-S-tests (Files): Likewise.
34850         * modules/unictype/category-Sc-tests (Files): Likewise.
34851         * modules/unictype/category-Sk-tests (Files): Likewise.
34852         * modules/unictype/category-Sm-tests (Files): Likewise.
34853         * modules/unictype/category-So-tests (Files): Likewise.
34854         * modules/unictype/category-Z-tests (Files): Likewise.
34855         * modules/unictype/category-Zl-tests (Files): Likewise.
34856         * modules/unictype/category-Zp-tests (Files): Likewise.
34857         * modules/unictype/category-Zs-tests (Files): Likewise.
34858         * modules/unictype/category-and-not-tests (Files): Likewise.
34859         * modules/unictype/category-and-tests (Files): Likewise.
34860         * modules/unictype/category-byname-tests (Files): Likewise.
34861         * modules/unictype/category-name-tests (Files): Likewise.
34862         * modules/unictype/category-none-tests (Files): Likewise.
34863         * modules/unictype/category-of-tests (Files): Likewise.
34864         * modules/unictype/category-or-tests (Files): Likewise.
34865         * modules/unictype/category-test-withtable-tests (Files): Likewise.
34866         * modules/unictype/combining-class-tests (Files): Likewise.
34867         * modules/unictype/ctype-alnum-tests (Files): Likewise.
34868         * modules/unictype/ctype-alpha-tests (Files): Likewise.
34869         * modules/unictype/ctype-blank-tests (Files): Likewise.
34870         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
34871         * modules/unictype/ctype-digit-tests (Files): Likewise.
34872         * modules/unictype/ctype-graph-tests (Files): Likewise.
34873         * modules/unictype/ctype-lower-tests (Files): Likewise.
34874         * modules/unictype/ctype-print-tests (Files): Likewise.
34875         * modules/unictype/ctype-punct-tests (Files): Likewise.
34876         * modules/unictype/ctype-space-tests (Files): Likewise.
34877         * modules/unictype/ctype-upper-tests (Files): Likewise.
34878         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
34879         * modules/unictype/decimal-digit-tests (Files): Likewise.
34880         * modules/unictype/digit-tests (Files): Likewise.
34881         * modules/unictype/mirror-tests (Files): Likewise.
34882         * modules/unictype/numeric-tests (Files): Likewise.
34883         * modules/unictype/property-alphabetic-tests (Files): Likewise.
34884         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
34885         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
34886         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
34887         Likewise.
34888         * modules/unictype/property-bidi-block-separator-tests (Files):
34889         Likewise.
34890         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
34891         Likewise.
34892         * modules/unictype/property-bidi-common-separator-tests (Files):
34893         Likewise.
34894         * modules/unictype/property-bidi-control-tests (Files): Likewise.
34895         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
34896         Likewise.
34897         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
34898         Likewise.
34899         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
34900         Likewise.
34901         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
34902         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
34903         Likewise.
34904         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
34905         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
34906         Likewise.
34907         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
34908         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
34909         * modules/unictype/property-bidi-segment-separator-tests (Files):
34910         Likewise.
34911         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
34912         * modules/unictype/property-byname-tests (Files): Likewise.
34913         * modules/unictype/property-combining-tests (Files): Likewise.
34914         * modules/unictype/property-composite-tests (Files): Likewise.
34915         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
34916         * modules/unictype/property-dash-tests (Files): Likewise.
34917         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
34918         * modules/unictype/property-default-ignorable-code-point-tests (Files):
34919         Likewise.
34920         * modules/unictype/property-deprecated-tests (Files): Likewise.
34921         * modules/unictype/property-diacritic-tests (Files): Likewise.
34922         * modules/unictype/property-extender-tests (Files): Likewise.
34923         * modules/unictype/property-format-control-tests (Files): Likewise.
34924         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
34925         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
34926         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
34927         * modules/unictype/property-hex-digit-tests (Files): Likewise.
34928         * modules/unictype/property-hyphen-tests (Files): Likewise.
34929         * modules/unictype/property-id-continue-tests (Files): Likewise.
34930         * modules/unictype/property-id-start-tests (Files): Likewise.
34931         * modules/unictype/property-ideographic-tests (Files): Likewise.
34932         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
34933         * modules/unictype/property-ids-trinary-operator-tests (Files):
34934         Likewise.
34935         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
34936         * modules/unictype/property-iso-control-tests (Files): Likewise.
34937         * modules/unictype/property-join-control-tests (Files): Likewise.
34938         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
34939         * modules/unictype/property-line-separator-tests (Files): Likewise.
34940         * modules/unictype/property-logical-order-exception-tests (Files):
34941         Likewise.
34942         * modules/unictype/property-lowercase-tests (Files): Likewise.
34943         * modules/unictype/property-math-tests (Files): Likewise.
34944         * modules/unictype/property-non-break-tests (Files): Likewise.
34945         * modules/unictype/property-not-a-character-tests (Files): Likewise.
34946         * modules/unictype/property-numeric-tests (Files): Likewise.
34947         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
34948         * modules/unictype/property-other-default-ignorable-code-point-tests
34949         (Files): Likewise.
34950         * modules/unictype/property-other-grapheme-extend-tests (Files):
34951         Likewise.
34952         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
34953         * modules/unictype/property-other-id-start-tests (Files): Likewise.
34954         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
34955         * modules/unictype/property-other-math-tests (Files): Likewise.
34956         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
34957         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
34958         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
34959         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
34960         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
34961         * modules/unictype/property-private-use-tests (Files): Likewise.
34962         * modules/unictype/property-punctuation-tests (Files): Likewise.
34963         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
34964         * modules/unictype/property-radical-tests (Files): Likewise.
34965         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
34966         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
34967         * modules/unictype/property-space-tests (Files): Likewise.
34968         * modules/unictype/property-terminal-punctuation-tests (Files):
34969         Likewise.
34970         * modules/unictype/property-test-tests (Files): Likewise.
34971         * modules/unictype/property-titlecase-tests (Files): Likewise.
34972         * modules/unictype/property-unassigned-code-value-tests (Files):
34973         Likewise.
34974         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
34975         * modules/unictype/property-uppercase-tests (Files): Likewise.
34976         * modules/unictype/property-variation-selector-tests (Files): Likewise.
34977         * modules/unictype/property-white-space-tests (Files): Likewise.
34978         * modules/unictype/property-xid-continue-tests (Files): Likewise.
34979         * modules/unictype/property-xid-start-tests (Files): Likewise.
34980         * modules/unictype/property-zero-width-tests (Files): Likewise.
34981         * modules/unictype/scripts-tests (Files): Likewise.
34982         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
34983         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
34984         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
34985         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
34986         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
34987         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
34988         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
34989         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
34990         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
34991         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
34992         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
34993         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
34994         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
34995         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
34996         * modules/uninorm/composition-tests (Files): Likewise.
34997         * modules/uninorm/decomposing-form-tests (Files): Likewise.
34998         * modules/uninorm/decomposition-tests (Files): Likewise.
34999         * modules/uninorm/filter-tests (Files): Likewise.
35000         * modules/uninorm/nfc-tests (Files): Likewise.
35001         * modules/uninorm/nfd-tests (Files): Likewise.
35002         * modules/uninorm/nfkc-tests (Files): Likewise.
35003         * modules/uninorm/nfkd-tests (Files): Likewise.
35004         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35005         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35006         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35007         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35008         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35009         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35010         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35011         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35012         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35013         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35014         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35015         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35016         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35017         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35018         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35019         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35020         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35021         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35022         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35023         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35024         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35025         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35026         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35027         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35028         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35029         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35030         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35031         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35032         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35033         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35034         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35035         * modules/uniwidth/u8-width-tests (Files): Likewise.
35036         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35037         * modules/uniwidth/u16-width-tests (Files): Likewise.
35038         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35039         * modules/uniwidth/u32-width-tests (Files): Likewise.
35040         * modules/uniwidth/width-tests (Files): Likewise.
35041         * modules/unlink-tests (Files): Likewise.
35042         * modules/unsetenv-tests (Files): Likewise.
35043         * modules/usleep-tests (Files): Likewise.
35044         * modules/utimens-tests (Files): Likewise.
35045         * modules/utimensat-tests (Files): Likewise.
35046         * modules/vasnprintf-posix-tests (Files): Likewise.
35047         * modules/vasnprintf-tests (Files): Likewise.
35048         * modules/vasprintf-posix-tests (Files): Likewise.
35049         * modules/vasprintf-tests (Files): Likewise.
35050         * modules/vdprintf-posix-tests (Files): Likewise.
35051         * modules/vfprintf-posix-tests (Files): Likewise.
35052         * modules/vprintf-posix-tests (Files): Likewise.
35053         * modules/vsnprintf-posix-tests (Files): Likewise.
35054         * modules/vsnprintf-tests (Files): Likewise.
35055         * modules/vsprintf-posix-tests (Files): Likewise.
35056         * modules/wcrtomb-tests (Files): Likewise.
35057         * modules/wcsnrtombs-tests (Files): Likewise.
35058         * modules/wcsrtombs-tests (Files): Likewise.
35059         * modules/wctype-tests (Files): Likewise.
35060         * modules/wcwidth-tests (Files): Likewise.
35061         * modules/xmemdup0-tests (Files): Likewise.
35062         * modules/xprintf-posix-tests (Files): Likewise.
35063         * modules/xvasprintf-tests (Files): Likewise.
35064
35065 2009-12-24  Eric Blake  <ebb9@byu.net>
35066
35067         test-nanosleep: fix typo
35068         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35069         patch.
35070         Reported by Bruno Haible.
35071
35072 2009-12-24  Bruno Haible  <bruno@clisp.org>
35073
35074         Reduce namespace pollution on glibc systems.
35075         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35076         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35077         systems.
35078         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35079         <getopt.h> on glibc systems.
35080         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35081         systems.
35082         * lib/fcntl.c: Include <unistd.h> here instead.
35083
35084 2009-12-24  Bruno Haible  <bruno@clisp.org>
35085
35086         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35087
35088 2009-12-24  Eric Blake  <ebb9@byu.net>
35089
35090         tests: add signature checks
35091         * tests/signature.h (SIGNATURE_CHECK): New file.
35092         * modules/atexit-tests (Files): Use it.
35093         * modules/btowc-tests (Files): Likewise.
35094         * modules/canonicalize-lgpl-tests (Files): Likewise.
35095         * modules/ceilf-tests (Files): Likewise.
35096         * modules/ceill-tests (Files): Likewise.
35097         * modules/chown-tests (Files): Likewise.
35098         * modules/dprintf-posix-tests (Files): Likewise.
35099         * modules/dup2-tests (Files): Likewise.
35100         * modules/dup3-tests (Files): Likewise.
35101         * modules/duplocale-tests (Files): Likewise.
35102         * modules/fchdir-tests (Files): Likewise.
35103         * modules/fcntl-tests (Files): Likewise.
35104         * modules/fdopendir-tests (Files): Likewise.
35105         * modules/fflush-tests (Files): Likewise.
35106         * modules/flock-tests (Files): Likewise.
35107         * modules/floorf-tests (Files): Likewise.
35108         * modules/floorl-tests (Files): Likewise.
35109         * modules/fnmatch-tests (Files): Likewise.
35110         * modules/fopen-tests (Files): Likewise.
35111         * modules/fprintf-posix-tests (Files): Likewise.
35112         * modules/freopen-tests (Files): Likewise.
35113         * modules/frexp-nolibm-tests (Files): Likewise.
35114         * modules/frexp-tests (Files): Likewise.
35115         * modules/frexpl-nolibm-tests (Files): Likewise.
35116         * modules/frexpl-tests (Files): Likewise.
35117         * modules/fseek-tests (Files): Likewise.
35118         * modules/fseeko-tests (Files): Likewise.
35119         * modules/fsync-tests (Files): Likewise.
35120         * modules/ftell-tests (Files): Likewise.
35121         * modules/ftello-tests (Files): Likewise.
35122         * modules/futimens-tests (Files): Likewise.
35123         * modules/getaddrinfo-tests (Files): Likewise.
35124         * modules/getcwd-tests (Files): Likewise.
35125         * modules/getdelim-tests (Files): Likewise.
35126         * modules/getdtablesize-tests (Files): Likewise.
35127         * modules/getgroups-tests (Files): Likewise.
35128         * modules/gethostname-tests (Files): Likewise.
35129         * modules/getline-tests (Files): Likewise.
35130         * modules/getopt-posix-tests (Files): Likewise.
35131         * modules/gettimeofday-tests (Files): Likewise.
35132         * modules/glob-tests (Files): Likewise.
35133         * modules/iconv-tests (Files): Likewise.
35134         * modules/inet_ntop-tests (Files): Likewise.
35135         * modules/inet_pton-tests (Files): Likewise.
35136         * modules/isblank-tests (Files): Likewise.
35137         * modules/lchown-tests (Files): Likewise.
35138         * modules/ldexpl-tests (Files): Likewise.
35139         * modules/link-tests (Files): Likewise.
35140         * modules/linkat-tests (Files): Likewise.
35141         * modules/lseek-tests (Files): Likewise.
35142         * modules/lstat-tests (Files): Likewise.
35143         * modules/mbrtowc-tests (Files): Likewise.
35144         * modules/mbsinit-tests (Files): Likewise.
35145         * modules/mbsnrtowcs-tests (Files): Likewise.
35146         * modules/mbsrtowcs-tests (Files): Likewise.
35147         * modules/memchr-tests (Files): Likewise.
35148         * modules/memcmp-tests (Files): Likewise.
35149         * modules/memmem-tests (Files): Likewise.
35150         * modules/memrchr-tests (Files): Likewise.
35151         * modules/mkdir-tests (Files): Likewise.
35152         * modules/mkfifo-tests (Files): Likewise.
35153         * modules/mkfifoat-tests (Files): Likewise.
35154         * modules/mknod-tests (Files): Likewise.
35155         * modules/nanosleep-tests (Files): Likewise.
35156         * modules/nl_langinfo-tests (Files): Likewise.
35157         * modules/obstack-printf-tests (Files): Likewise.
35158         * modules/open-tests (Files): Likewise.
35159         * modules/openat-tests (Files): Likewise.
35160         * modules/perror-tests (Files): Likewise.
35161         * modules/pipe2-tests (Files): Likewise.
35162         * modules/poll-tests (Files): Likewise.
35163         * modules/popen-tests (Files): Likewise.
35164         * modules/posix_spawn-tests (Files): Likewise.
35165         * modules/posix_spawnp-tests (Files): Likewise.
35166         * modules/pread-tests (Files): Likewise.
35167         * modules/printf-posix-tests (Files): Likewise.
35168         * modules/pty-tests (Files): Likewise.
35169         * modules/random_r-tests (Files): Likewise.
35170         * modules/rawmemchr-tests (Files): Likewise.
35171         * modules/readlink-tests (Files): Likewise.
35172         * modules/remove-tests (Files): Likewise.
35173         * modules/rename-tests (Files): Likewise.
35174         * modules/renameat-tests (Files): Likewise.
35175         * modules/rmdir-tests (Files): Likewise.
35176         * modules/round-tests (Files): Likewise.
35177         * modules/roundf-tests (Files): Likewise.
35178         * modules/roundl-tests (Files): Likewise.
35179         * modules/select-tests (Files): Likewise.
35180         * modules/setenv-tests (Files): Likewise.
35181         * modules/sigaction-tests (Files): Likewise.
35182         * modules/sleep-tests (Files): Likewise.
35183         * modules/snprintf-posix-tests (Files): Likewise.
35184         * modules/snprintf-tests (Files): Likewise.
35185         * modules/sprintf-posix-tests (Files): Likewise.
35186         * modules/stat-tests (Files): Likewise.
35187         * modules/strcasestr-tests (Files): Likewise.
35188         * modules/strchrnul-tests (Files): Likewise.
35189         * modules/strerror-tests (Files): Likewise.
35190         * modules/strsignal-tests (Files): Likewise.
35191         * modules/strstr-tests (Files): Likewise.
35192         * modules/strtod-tests (Files): Likewise.
35193         * modules/strverscmp-tests (Files): Likewise.
35194         * modules/symlink-tests (Files): Likewise.
35195         * modules/symlinkat-tests (Files): Likewise.
35196         * modules/times-tests (Files): Likewise.
35197         * modules/trunc-tests (Files): Likewise.
35198         * modules/truncf-tests (Files): Likewise.
35199         * modules/truncl-tests (Files): Likewise.
35200         * modules/tsearch-tests (Files): Likewise.
35201         * modules/uname-tests (Files): Likewise.
35202         * modules/unlink-tests (Files): Likewise.
35203         * modules/unsetenv-tests (Files): Likewise.
35204         * modules/usleep-tests (Files): Likewise.
35205         * modules/utimensat-tests (Files): Likewise.
35206         * modules/vasprintf-tests (Files): Likewise.
35207         * modules/vdprintf-posix-tests (Files): Likewise.
35208         * modules/vfprintf-posix-tests (Files): Likewise.
35209         * modules/vprintf-posix-tests (Files): Likewise.
35210         * modules/vsnprintf-posix-tests (Files): Likewise.
35211         * modules/vsnprintf-tests (Files): Likewise.
35212         * modules/vsprintf-posix-tests (Files): Likewise.
35213         * modules/wcrtomb-tests (Files): Likewise.
35214         * modules/wcsnrtombs-tests (Files): Likewise.
35215         * modules/wcsrtombs-tests (Files): Likewise.
35216         * modules/wcwidth-tests (Files): Likewise.
35217         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35218         * tests/test-isinf.c (isinf): Likewise.
35219         * tests/test-isnan.c (isnan): Likewise.
35220         * tests/test-signbit.c (signbit): Likewise.
35221         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35222         declaration, either as macro or with correct signature.
35223         (select): Ensure function under test is declared with correct
35224         signature in correct header.
35225         * tests/test-atexit.c (atexit): Likewise.
35226         * tests/test-btowc.c (btowc): Likewise.
35227         * tests/test-canonicalize-lgpl.c (realpath)
35228         (canonicalize_file_name): Likewise.
35229         * tests/test-ceilf1.c (ceilf): Likewise.
35230         * tests/test-ceill.c (ceill): Likewise.
35231         * tests/test-chown.c (chown): Likewise.
35232         * tests/test-dprintf-posix.c (dprintf): Likewise.
35233         * tests/test-dup2.c (dup2): Likewise.
35234         * tests/test-dup3.c (dup3): Likewise.
35235         * tests/test-duplocale.c (duplocale): Likewise.
35236         * tests/test-fchdir.c (fchdir): Likewise.
35237         * tests/test-fchownat.c (fchownat): Likewise.
35238         * tests/test-fcntl.c (fcntl): Likewise.
35239         * tests/test-fdopendir.c (fdopendir): Likewise.
35240         * tests/test-fflush.c (fflush): Likewise.
35241         * tests/test-flock.c (flock): Likewise.
35242         * tests/test-floorf1.c (floorf): Likewise.
35243         * tests/test-floorl.c (floorl): Likewise.
35244         * tests/test-fnmatch.c (fnmatch): Likewise.
35245         * tests/test-fopen.c (fopen): Likewise.
35246         * tests/test-fprintf-posix.c (fprintf): Likewise.
35247         * tests/test-freopen.c (freopen): Likewise.
35248         * tests/test-frexp.c (frexp): Likewise.
35249         * tests/test-frexpl.c (frexpl): Likewise.
35250         * tests/test-fseek.c (fseek): Likewise.
35251         * tests/test-fseeko.c (fseeko): Likewise.
35252         * tests/test-fstatat.c (fstatat): Likewise.
35253         * tests/test-fsync.c (fsync): Likewise.
35254         * tests/test-ftell.c (ftell): Likewise.
35255         * tests/test-ftello.c (ftello): Likewise.
35256         * tests/test-futimens.c (futimens): Likewise.
35257         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35258         (gai_strerror): Likewise.
35259         * tests/test-getcwd.c (getcwd): Likewise.
35260         * tests/test-getdelim.c (getdelim): Likewise.
35261         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35262         * tests/test-getgroups.c (getgroups): Likewise.
35263         * tests/test-gethostname.c (gethostname): Likewise.
35264         * tests/test-getline.c (getline): Likewise.
35265         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35266         Likewise.
35267         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35268         * tests/test-glob.c (glob, globfree): Likewise.
35269         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35270         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35271         * tests/test-inet_pton.c (inet_pton): Likewise.
35272         * tests/test-isblank.c (isblank): Likewise.
35273         * tests/test-lchown.c (lchown): Likewise.
35274         * tests/test-ldexpl.c (ldexpl): Likewise.
35275         * tests/test-link.c (link): Likewise.
35276         * tests/test-linkat.c (linkat): Likewise.
35277         * tests/test-lseek.c (lseek): Likewise.
35278         * tests/test-lstat.c (lstat): Likewise.
35279         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35280         * tests/test-mbsinit.c (mbsinit): Likewise.
35281         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35282         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35283         * tests/test-memchr.c (memchr): Likewise.
35284         * tests/test-memcmp.c (memcmp): Likewise.
35285         * tests/test-memmem.c (memmem): Likewise.
35286         * tests/test-memrchr.c (memrchr): Likewise.
35287         * tests/test-mkdir.c (mkdir): Likewise.
35288         * tests/test-mkdirat.c (mkdirat): Likewise.
35289         * tests/test-mkfifo.c (mkfifo): Likewise.
35290         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35291         * tests/test-mknod.c (mknod): Likewise.
35292         * tests/test-nanosleep.c (nanosleep): Likewise.
35293         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35294         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35295         Likewise.
35296         * tests/test-open.c (open): Likewise.
35297         * tests/test-openat.c (openat): Likewise.
35298         * tests/test-perror.c (perror): Likewise.
35299         * tests/test-pipe2.c (pipe2): Likewise.
35300         * tests/test-poll.c (poll): Likewise.
35301         * tests/test-popen.c (popen, pclose): Likewise.
35302         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35303         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35304         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35305         (posix_spawn_file_actions_destroy)
35306         (posix_spawn_file_actions_addclose)
35307         (posix_spawn_file_actions_addopen)
35308         (posix_spawn_file_actions_adddup2): Likewise.
35309         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35310         * tests/test-pread.c (pread): Likewise.
35311         * tests/test-printf-posix.c (printf): Likewise.
35312         * tests/test-pty.c (openpty, forkpty): Likewise.
35313         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35314         (random_r): Likewise.
35315         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35316         * tests/test-readlink.c (readlink): Likewise.
35317         * tests/test-remove.c (remove): Likewise.
35318         * tests/test-rename.c (rename): Likewise.
35319         * tests/test-renameat.c (renameat): Likewise.
35320         * tests/test-rmdir.c (rmdir): Likewise.
35321         * tests/test-round1.c (round): Likewise.
35322         * tests/test-roundf1.c (roundf): Likewise.
35323         * tests/test-roundl.c (roundl): Likewise.
35324         * tests/test-setenv.c (setenv): Likewise.
35325         * tests/test-sigaction.c (sigaction): Likewise.
35326         * tests/test-sleep.c (sleep): Likewise.
35327         * tests/test-snprintf.c (snprintf): Likewise.
35328         * tests/test-sprintf-posix.c (sprintf): Likewise.
35329         * tests/test-stat.c (stat): Likewise.
35330         * tests/test-stpncpy.c (stpncpy): Likewise.
35331         * tests/test-strcasestr.c (strcasestr): Likewise.
35332         * tests/test-strchrnul.c (strchrnul): Likewise.
35333         * tests/test-strerror.c (strerror): Likewise.
35334         * tests/test-strsignal.c (strsignal): Likewise.
35335         * tests/test-strstr.c (strstr): Likewise.
35336         * tests/test-strtod.c (strtod): Likewise.
35337         * tests/test-strverscmp.c (strverscmp): Likewise.
35338         * tests/test-symlink.c (symlink): Likewise.
35339         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35340         * tests/test-times.c (times): Likewise.
35341         * tests/test-trunc1.c (trunc): Likewise.
35342         * tests/test-truncf1.c (truncf): Likewise.
35343         * tests/test-truncl.c (truncl): Likewise.
35344         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35345         Likewise.
35346         * tests/test-uname.c (uname): Likewise.
35347         * tests/test-unlink.c (unlink): Likewise.
35348         * tests/test-unlinkat.c (unlinkat): Likewise.
35349         * tests/test-unsetenv.c (unsetenv): Likewise.
35350         * tests/test-usleep.c (usleep): Likewise.
35351         * tests/test-utimensat.c (utimensat): Likewise.
35352         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35353         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35354         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35355         * tests/test-vprintf-posix.c (vprintf): Likewise.
35356         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35357         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35358         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35359         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35360         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35361         * tests/test-wcwidth.c (wcwidth): Likewise.
35362
35363         build: pull in conditional headers during GNULIB_POSIXCHECK
35364         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35365         definitions from any conditionally-included headers.
35366         * lib/stdlib.in.h (includes): Likewise.
35367         * lib/unistd.in.h (includes): Likewise.
35368
35369 2009-12-24  Bruno Haible  <bruno@clisp.org>
35370
35371         * tests/test-argv-iter.c: Include header file being tested immediately
35372         after config.h.
35373         * tests/test-base64.c: Likewise.
35374         * tests/test-flock.c: Likewise.
35375         * tests/test-fsync.c: Likewise.
35376         * tests/test-getdate.c: Likewise.
35377         * tests/test-getndelim2.c: Likewise.
35378         * tests/test-isfinite.c: Likewise.
35379         * tests/test-isinf.c: Likewise.
35380         * tests/test-strerror.c: Likewise.
35381         * tests/test-strsignal.c: Likewise.
35382
35383 2009-12-23  Eric Blake  <ebb9@byu.net>
35384
35385         unistd: work around cygwin bug
35386         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35387         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35388         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35389
35390 2009-12-23  Bruno Haible  <bruno@clisp.org>
35391
35392         localename: More tests.
35393         * tests/test-localename.c (SIZEOF): New macro.
35394         (categories): New variable.
35395         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35396         test_locale_name_default): Add test w.r.t. thread locale.
35397         (test_locale_name_thread): New function.
35398         (main): Invoke it.
35399
35400         localename: Make aware of thread locale.
35401         * lib/localename.h (gl_locale_name_thread): New declaration.
35402         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35403         behaviour with respect to thread locale.
35404         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35405         <langinfo.h>, glthread/lock.h.
35406         (SIZE_BITS): New macro.
35407         (string_hash): New function.
35408         (struct hash_node): New type.
35409         (HASH_TABLE_SIZE): New macro.
35410         (struniq_hash_table, struniq_lock): New variables.
35411         (struniq): New function.
35412         (gl_locale_name_thread): New function.
35413         (gl_locale_name): Invoke it.
35414         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35415         * modules/localename (Depends-on): Add lock.
35416         Reported by Mike Gran <spk121@yahoo.com>.
35417
35418 2009-12-23  Eric Blake  <ebb9@byu.net>
35419
35420         va-args: new module
35421         * modules/va-args: New file.
35422         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35423         * MODULES.html.sh (Core language properties): Mention it.
35424
35425         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35426         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35427         named alias for __attribute__((__unused__)).
35428         * lib/chown.c: Update client.
35429         * lib/fchmodat.c: Likewise.
35430         * lib/fts.c: Likewise.
35431         * lib/getdate.y: Likewise.
35432         * lib/getgroups.c: Likewise.
35433         * lib/getopt.c: Likewise.
35434         * lib/getugroups.c: Likewise.
35435         * lib/mkdir.c: Likewise.
35436         * lib/mkfifo.c: Likewise.
35437         * lib/mkfifoat.c: Likewise.
35438         * lib/mknod.c: Likewise.
35439         * lib/mknodat.c: Likewise.
35440         * lib/readlink.c: Likewise.
35441         * lib/se-context.in.h: Likewise.
35442         * lib/se-selinux.in.h: Likewise.
35443         * lib/sockets.c: Likewise.
35444         * lib/symlink.c: Likewise.
35445         * lib/symlinkat.c: Likewise.
35446         * lib/unicodeio.c: Likewise.
35447         * lib/unistr.h: Likewise.
35448         * tests/test-areadlink.c: Likewise.
35449         * tests/test-areadlinkat.c: Likewise.
35450         * tests/test-filenamecat.c: Likewise.
35451         * tests/test-fseeko.c: Likewise.
35452         * tests/test-ftello.c: Likewise.
35453         * tests/test-getdate.c: Likewise.
35454         * tests/test-getgroups.c: Likewise.
35455         * tests/test-gethostname.c: Likewise.
35456         * tests/test-quotearg.c: Likewise.
35457         * tests/test-version-etc.c: Likewise.
35458         * tests/test-xalloc-die.c: Likewise.
35459         * tests/test-xfprintf-posix.c: Likewise.
35460         * tests/test-xprintf-posix.c: Likewise.
35461         * tests/test-xvasprintf.c: Likewise.
35462
35463         tests: avoid compiler warnings
35464         * tests/test-fcntl.c (main): Delete unused parameters.
35465         * tests/test-freopen-safer.c (main): Likewise.
35466         * tests/test-xalloc-die.c (main): Mark unused parameters.
35467         * tests/test-fseeko.c (main): Likewise.
35468         * tests/test-ftello.c (main): Likewise.
35469         * tests/test-nanosleep.c (main): Avoid declaration warning.
35470         * tests/test-sleep.c (main): Likewise.
35471         * tests/test-unsetenv.c (main): Silence warning about string
35472         literal.
35473         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
35474
35475 2009-12-23  Bruno Haible  <bruno@clisp.org>
35476
35477         * tests/test-localename.c (test_locale_name): New function, extracted
35478         from main. Also test mixed situations.
35479         (test_locale_name_posix, test_locale_name_environ,
35480         test_locale_name_default): New functions.
35481         (main): Invoke them all.
35482         * modules/localename-tests (configure.ac): Test for newlocale.
35483
35484 2009-12-23  Bruno Haible  <bruno@clisp.org>
35485
35486         unistd: Ensure getcwd gets declared before being overridden.
35487         * lib/unistd.in.h: Conditionally include <io.h>.
35488
35489 2009-12-22  Bruno Haible  <bruno@clisp.org>
35490
35491         wchar: Diagnose broken combination of glibc and gcc versions and flags.
35492         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
35493         (gl_WCHAR_H): Invoke it.
35494         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
35495         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
35496         Reported by Karl Berry <karl@freefriends.org>.
35497
35498 2009-12-22  Eric Blake  <ebb9@byu.net>
35499
35500         math, unistd: avoid redundant includes
35501         * lib/math.in.h (isnan): No need to re-include <math.h>.
35502         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
35503
35504         getsubopt: work around cygwin bug
35505         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
35506         avoid conflicting with system getsubopt.
35507         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
35508         bug.
35509
35510         getopt: synchronize from glibc
35511         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
35512         parameter order.  Adjust all callers.
35513         (_getopt_internal_r, main): Adjust quoting in error messages.
35514         Drop considerations for outdated POSIX 1003.2 error message.
35515         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
35516         callers.
35517         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
35518
35519         test-getopt: test stderr behavior
35520         * modules/getopt-posix-tests (Depends-on): Add dup2.
35521         * tests/test-getopt.c (ASSERT): Avoid stderr.
35522         (main): Move stderr to a temporary file.
35523         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
35524         Instead, add parameter to inform caller if output occurred.
35525         (test_getopt): Adjust all existing tests to expect silence, and
35526         add new tests of leading ":".
35527         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35528         glibc shortcomings with leading "-:" or "+:" in optstring.
35529         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35530         Likewise.
35531         * doc/posix-functions/getopt.texi (getopt): Likewise.
35532
35533         test-getopt: enhance test
35534         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
35535         supports optind=0.
35536         * tests/test-getopt.c (OPTIND_MIN): Move...
35537         * tests/test-getopt.h (OPTIND_MIN): ...here.
35538         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
35539         Require that optind=0 works, since modern BSD supports it in
35540         addition to optreset, and since coreutils expects it.
35541         (test_getopt_long_only): New test.
35542         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
35543         glibc shortcomings with 'W;', and enforcement of optind=0.
35544         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
35545         Likewise.
35546
35547 2009-12-21  Bruno Haible  <bruno@clisp.org>
35548
35549         localename: Improvements for MacOS X and Cygwin.
35550         * lib/localename.h (gl_locale_name_environ): New declaration.
35551         * lib/localename.c (gl_locale_name_environ): New function, extracted from
35552         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
35553         (gl_locale_name_posix): Invoke it.
35554         (gl_locale_name_default): Add comments. Use Windows native API also on
35555         Cygwin.
35556
35557 2009-12-21  Bruno Haible  <bruno@clisp.org>
35558
35559         Update list of Win32 locale ids.
35560         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
35561         (LANG_SAMI): Renamed from LANG_SAAMI.
35562         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
35563         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
35564         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
35565         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
35566         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
35567         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
35568         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
35569         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
35570         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
35571         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
35572         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
35573         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
35574         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
35575         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
35576         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
35577         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
35578         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
35579         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
35580         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
35581         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
35582         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
35583         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
35584         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
35585         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
35586         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
35587         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
35588         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
35589         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
35590         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
35591         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
35592         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
35593         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
35594         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
35595         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
35596         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
35597         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
35598         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
35599         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
35600         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
35601         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
35602         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
35603         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
35604         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
35605         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
35606         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
35607         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
35608         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
35609         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
35610         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
35611         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
35612         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
35613         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
35614         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
35615         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
35616         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
35617         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
35618         Add more languages and countries for Sami, Sorbian. Add more countries
35619         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
35620         for Pashto. Change country for Syriac, Tswana.
35621
35622 2009-12-21  Eric Blake  <ebb9@byu.net>
35623
35624         test-utimens: avoid spurious failure
35625         * tests/test-chown.h (nap): Factor...
35626         * tests/nap.h: ...into new file.
35627         * tests/test-lchown.h (nap): Avoid duplication.
35628         * tests/test-utimens-common.h (nap): Use shared implementation,
35629         necessary on file systems with 1-second resolution.
35630         * modules/chown-tests (Files): Include new file.
35631         * modules/fdutimensat-tests (Files): Likewise.
35632         * modules/futimens-tests (Files): Likewise.
35633         * modules/lchown-tests (Files): Likewise.
35634         * modules/openat-tests (Files): Likewise.
35635         * modules/utimens-tests (Files): Likewise.
35636         * modules/utimensat-tests (Files): Likewise.
35637
35638 2009-12-19  Eric Blake  <ebb9@byu.net>
35639
35640         futimens, utimensat: work around Linux bug
35641         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
35642         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
35643         * lib/utimensat.c (rpl_utimensat): Work around it.
35644         * lib/futimens.c (rpl_futimens): Adjust comment.
35645
35646         utimens: work around Linux ctime bug
35647         * lib/utimens.c (detect_ctime_bug): New helper function.
35648         (update_timespec): Differentiate between workaround needed for
35649         this bug vs. what is needed for systems that lack utimensat.
35650         (fdutimens, lutimens): Work around bug.
35651
35652         utimens: check for ctime update
35653         * tests/test-utimens-common.h (check_ctime): Define.
35654         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
35655         * tests/test-futimens.h (test_futimens): Likewise.
35656         * tests/test-lutimens.h (test_lutimens): Likewise.
35657         * doc/posix-functions/futimens.texi (futimens): Document the bug.
35658         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35659
35660 2009-12-19  Bruno Haible  <bruno@clisp.org>
35661
35662         dprintf-posix: Check against memory leak fixed on 2009-12-15.
35663         * tests/test-dprintf-posix2.sh: New file.
35664         * tests/test-dprintf-posix2.c: New file.
35665         * modules/dprintf-posix-tests (Files): Add them.
35666         (configure.ac): Check for getrlimit and setrlimit.
35667         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35668
35669 2009-12-19  Bruno Haible  <bruno@clisp.org>
35670
35671         fprintf-posix: Check against memory leak fixed on 2009-12-15.
35672         * tests/test-fprintf-posix3.sh: New file.
35673         * tests/test-fprintf-posix3.c: New file.
35674         * modules/fprintf-posix-tests (Files): Add them.
35675         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
35676
35677 2009-12-19  Eric Blake  <ebb9@byu.net>
35678
35679         dirfd: fix prototype
35680         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
35681         * lib/dirfd.c (dirfd): Likewise.
35682
35683         canonicalize: reduce memory usage
35684         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
35685         allocation to size.
35686         Reported by Solar Designer <solar@openwall.com>.
35687
35688 2009-12-19  Bruno Haible  <bruno@clisp.org>
35689
35690         New module attribute 'Applicability'.
35691         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
35692         * gnulib-tool: New option --extract-applicability.
35693         (func_usage): Document it.
35694         (sed_extract_prog): Recognize it.
35695         (func_get_applicability): New function.
35696         (func_import): Generalize handling of 'link-warning' module.
35697         * modules/link-warning (Applicability): New section.
35698         * modules/arg-nonnull (Applicability): New section.
35699         Repoted by Simon Josefsson <simon@josefsson.org>.
35700
35701 2009-12-19  Bruno Haible  <bruno@clisp.org>
35702
35703         fflush: tweak
35704         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
35705         * lib/fseeko.c (rpl_fseeko): Likewise.
35706
35707 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
35708
35709         * lib/gl_list.h: Fix typo in comment.
35710
35711 2009-12-16  Eric Blake  <ebb9@byu.net>
35712
35713         fcntl: use to simplify other modules
35714         * modules/cloexec (Depends-on): Add fcntl.
35715         * modules/fchdir (Depends-on): Likewise.
35716         * modules/fd-safer-flag (Depends-on): Likewise.
35717         * modules/unistd-safer (Depends-on): Likewise.
35718         * modules/dup3 (configure.ac): Set module indicator.
35719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
35720         missing.
35721         * lib/fchdir.c (_gl_register_dup): Fix comment.
35722         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
35723         * lib/dup-safer.c (dup_safer): Likewise.
35724         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
35725         * lib/dup3.c (dup3): Likewise.
35726         * tests/test-fchdir.c (main): Enhance test.
35727         Fixes a dup_cloexec bug reported by Ondřej Vašík.
35728
35729         fcntl: port portions of fcntl to mingw
35730         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
35731         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
35732         replacement for mingw.
35733         * modules/fcntl (Description): Update.
35734         (Depends-on): Add dup2.
35735         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
35736         * modules/fcntl-h (Makefile.am): Substitute it.
35737         * lib/fcntl.in.h (fcntl): Update declaration.
35738         (F_DUPFD, F_GETFD): New macros, when needed.
35739         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
35740         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
35741         * tests/test-fcntl.c (check_flags, main): Enhance test for items
35742         we now guarantee.
35743
35744         fcntl: work around cygwin bug in F_DUPFD
35745         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
35746         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
35747         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
35748         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
35749         * doc/posix-functions/fcntl.texi (fcntl): Document it.
35750
35751         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
35752         * modules/fcntl (Files): List new files.
35753         (configure.ac): Run a test.
35754         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
35755         * lib/fcntl.c (rpl_fcntl): Likewise.
35756         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
35757         (gl_FCNTL_H): Always replace fcntl.h.
35758         * modules/fcntl-h (Makefile.am): Substitute witnesses.
35759         * lib/fcntl.in.h (fcntl): Declare replacement.
35760         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
35761         needed, plus a witness.
35762         * doc/posix-functions/fcntl.texi (fcntl): Document this.
35763         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
35764         * tests/test-fcntl.c: New file.
35765         * modules/fcntl-tests: Likewise.
35766
35767         binary-io: avoid potential compilation warning
35768         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
35769         directives.
35770
35771         fflush: avoid compilation error on NetBSD
35772         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
35773         between off_t and fpos_t, since the latter is sometimes a struct.
35774         * lib/fseeko.c (rpl_fseeko): Likewise.
35775         Reported by Alexander Nasonov <alnsn@yandex.ru>.
35776
35777 2009-12-15  Eric Blake  <ebb9@byu.net>
35778
35779         fcntl-h, stdio, sys_ioctl: fix declarations
35780         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
35781         function must not take arguments.
35782         * lib/sys_ioctl.in.h (ioctl): Likewise.
35783         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
35784         (open): Add a link warning.
35785
35786 2009-12-15  Jim Meyering  <meyering@redhat.com>
35787
35788         areadlink, areadlink-with-size: relax license to LGPLv2+
35789         * modules/areadlink (License): Relax to LGPLv2+.
35790         * modules/areadlink-with-size (License): Likewise.
35791
35792 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
35793             Bruno Haible  <bruno@clisp.org>
35794
35795         *printf: Fix memory leak.
35796         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
35797         * lib/vfprintf.c (vfprintf): Likewise.
35798         * lib/dprintf.c (dprintf): Likewise.
35799         * lib/vdprintf.c (vdprintf): Likewise.
35800
35801 2009-12-14  Eric Blake  <ebb9@byu.net>
35802
35803         accept4: adjust module dependencies
35804         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
35805
35806         utimens: one more try at avoiding compiler warning
35807         * lib/utimens.c (lutimens): Lower scope of result.
35808
35809 2009-12-13  Bruno Haible  <bruno@clisp.org>
35810
35811         Move the malloc checking from module 'list' to new module 'xlist'.
35812         * modules/xlist: New file.
35813         * lib/gl_xlist.h: New file.
35814         * lib/gl_xlist.c: New file.
35815         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
35816         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
35817         gl_list_add_last, gl_list_add_before, gl_list_add_after,
35818         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
35819         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
35820         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
35821         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
35822         gl_sortedlist_nx_add): New declarations.
35823         (struct gl_list_implementation): Rename and change methods accordingly.
35824         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
35825         (gl_list_nx_create): Renamed from gl_list_create.
35826         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35827         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35828         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35829         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35830         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35831         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35832         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35833         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35834         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
35835         gl_list_create_empty.
35836         (gl_list_nx_create): Renamed from gl_list_create.
35837         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
35838         (gl_list_nx_set_at): Renamed from gl_list_set_at.
35839         (gl_list_nx_add_first): Renamed from gl_list_add_first.
35840         (gl_list_nx_add_last): Renamed from gl_list_add_last.
35841         (gl_list_nx_add_before): Renamed from gl_list_add_before.
35842         (gl_list_nx_add_after): Renamed from gl_list_add_after.
35843         (gl_list_nx_add_at): Renamed from gl_list_add_at.
35844         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
35845         * lib/gl_array_list.c: Don't include xalloc.h.
35846         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
35847         NULL upon out-of-memory.
35848         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
35849         out-of-memory.
35850         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
35851         Change return type to 'int'.
35852         (gl_array_nx_set_at): Renamed from gl_array_set_at.
35853         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35854         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
35855         upon out-of-memory.
35856         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
35857         upon out-of-memory.
35858         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
35859         upon out-of-memory.
35860         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
35861         upon out-of-memory.
35862         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
35863         out-of-memory.
35864         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
35865         Update.
35866         (gl_array_list_implementation): Update.
35867         * lib/gl_carray_list.c: Don't include xalloc.h.
35868         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
35869         Return NULL upon out-of-memory.
35870         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
35871         out-of-memory.
35872         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
35873         Change return type to 'int'.
35874         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
35875         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
35876         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
35877         upon out-of-memory.
35878         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
35879         upon out-of-memory.
35880         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
35881         out-of-memory.
35882         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
35883         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
35884         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
35885         Update.
35886         (gl_carray_list_implementation): Update.
35887         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
35888         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
35889         gl_linked_create_empty. Return NULL upon out-of-memory.
35890         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
35891         out-of-memory.
35892         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
35893         Change return type to 'int'. Return -1 upon out-of-memory.
35894         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
35895         out-of-memory.
35896         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
35897         upon out-of-memory.
35898         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
35899         upon out-of-memory.
35900         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
35901         NULL upon out-of-memory.
35902         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
35903         upon out-of-memory.
35904         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
35905         out-of-memory.
35906         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
35907         Update.
35908         * lib/gl_linked_list.c: Don't include xalloc.h.
35909         (gl_linked_list_implementation): Update.
35910         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
35911         (add_to_bucket): Change return type to 'int'.
35912         (gl_linkedhash_list_implementation): Update.
35913         * lib/gl_anytree_list1.h (free_subtree): New function.
35914         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
35915         gl_tree_create_empty. Return NULL upon out-of-memory.
35916         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
35917         Change return type to 'int'. Return -1 upon out-of-memory.
35918         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
35919         out-of-memory.
35920         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
35921         (gl_tree_remove_node): New function, moved here from
35922         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
35923         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
35924         Update.
35925         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
35926         malloc, not xmalloc. Return NULL upon out-of-memory.
35927         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35928         out-of-memory.
35929         (gl_tree_remove_node_from_tree): New function, extracted from
35930         gl_tree_remove_node.
35931         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35932         upon out-of-memory.
35933         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35934         out-of-memory.
35935         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35936         upon out-of-memory.
35937         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35938         upon out-of-memory.
35939         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35940         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
35941         not xmalloc. Return NULL upon out-of-memory.
35942         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
35943         out-of-memory.
35944         (gl_tree_remove_node_from_tree): New function, extracted from
35945         gl_tree_remove_node.
35946         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
35947         upon out-of-memory.
35948         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
35949         out-of-memory.
35950         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
35951         upon out-of-memory.
35952         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
35953         upon out-of-memory.
35954         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
35955         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
35956         gl_anytree_list1.h before gl_anyavltree_list2.h.
35957         (gl_avltree_list_implementation): Update.
35958         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
35959         gl_anytree_list1.h before gl_anyavltree_list2.h.
35960         (gl_rbtree_list_implementation): Update.
35961         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
35962         Change return type to 'int'. Return -1 upon out-of-memory. Use
35963         __builtin_expect.
35964         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
35965         (gl_avltreehash_list_implementation): Update.
35966         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
35967         (gl_rbtreehash_list_implementation): Update.
35968         * modules/array-list (Depends-on): Remove xalloc.
35969         * modules/carray-list (Depends-on): Likewise.
35970         * modules/linked-list (Depends-on): Likewise.
35971         * modules/linkedhash-list (Depends-on): Likewise.
35972         * modules/avltree-list (Depends-on): Likewise.
35973         * modules/rbtree-list (Depends-on): Likewise.
35974         * modules/avltreehash-list (Depends-on): Likewise.
35975         * modules/rbtreehash-list (Depends-on): Likewise.
35976
35977         * modules/xsublist: New file.
35978         * lib/gl_xsublist.h: New file.
35979         * lib/gl_xsublist.c: New file.
35980         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
35981         (gl_sublist_nx_create): New declaration.
35982         * lib/gl_sublist.c: Don't include xalloc.h.
35983         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
35984         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
35985         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
35986         Change return type to 'int'. Return -1 upon out-of-memory.
35987         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
35988         upon out-of-memory.
35989         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
35990         NULL upon out-of-memory.
35991         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
35992         upon out-of-memory.
35993         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
35994         NULL upon out-of-memory.
35995         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
35996         NULL upon out-of-memory.
35997         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
35998         upon out-of-memory.
35999         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36000         (gl_sublist_list_implementation): Update.
36001         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36002         upon out-of-memory.
36003         * modules/sublist (Depends-on): Remove xalloc.
36004
36005         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36006         * tests/test-carray_list.c: Likewise.
36007         * tests/test-linked_list.c: Likewise.
36008         * tests/test-linkedhash_list.c: Likewise.
36009         * tests/test-avltree_list.c: Likewise.
36010         * tests/test-rbtree_list.c: Likewise.
36011         * tests/test-avltreehash_list.c: Likewise.
36012         * tests/test-rbtreehash_list.c: Likewise.
36013         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36014         * modules/carray-list-tests (Makefile.am): Likewise.
36015         * modules/linked-list-tests (Makefile.am): Likewise.
36016         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36017         * modules/avltree-list-tests (Makefile.am): Likewise.
36018         * modules/rbtree-list-tests (Makefile.am): Likewise.
36019         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36020         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36021
36022         * NEWS: Mention the changes.
36023
36024         * lib/clean-temp.c: Include gl_xlist.h.
36025         * modules/clean-temp (Depends-on): Add xlist.
36026
36027         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36028         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36029
36030         * tests/test-array_oset.c: Include gl_xlist.h.
36031         * modules/array-oset-tests (Depends-on): Add xlist.
36032
36033         Reported by José E. Marchesi <jemarch@gnu.org>.
36034
36035 2009-12-13  Bruno Haible  <bruno@clisp.org>
36036
36037         Move the malloc checking from module 'oset' to new module 'xoset'.
36038         * modules/xoset: New file.
36039         * lib/gl_xoset.h: New file.
36040         * lib/gl_xoset.c: New file.
36041         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36042         declarations.
36043         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36044         (struct gl_oset_implementation): Rename and change methods accordingly.
36045         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36046         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36047         'int'. Mark as __warn_unused_result__.
36048         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36049         gl_oset_create_empty.
36050         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36051         'int'.
36052         * lib/gl_array_oset.c: Don't include xalloc.h.
36053         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36054         malloc, not xmalloc.
36055         (grow): Change return type to 'int'. Don't call xalloc_die.
36056         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36057         to 'int'.
36058         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36059         'int'.
36060         (gl_array_oset_implementation): Update.
36061         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36062         gl_tree_create_empty.
36063         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36064         'int'.
36065         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36066         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36067         xmalloc.
36068         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36069         not xmalloc.
36070         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36071         xmalloc.
36072         (gl_avltree_oset_implementation): Update.
36073         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36074         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36075         xmalloc.
36076         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36077         not xmalloc.
36078         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36079         xmalloc.
36080         (gl_rbtree_oset_implementation): Update.
36081         * modules/array-oset (Depends-on): Remove xalloc.
36082         * modules/avltree-oset (Depends-on): Likewise.
36083         * modules/rbtree-oset (Depends-on): Likewise.
36084         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36085         * tests/test-avltree_oset.c: Likewise.
36086         * tests/test-rbtree_oset.c: Likewise.
36087         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36088         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36089         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36090         * NEWS: Mention the change.
36091
36092 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36093
36094         maint.mk: allow a project to override release-prep commands
36095         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36096         commands into a new rule.
36097         (release-prep): New rule.
36098         (release-prep-hook): New overridable variable.
36099
36100 2009-12-13  Bruno Haible  <bruno@clisp.org>
36101
36102         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36103
36104 2009-12-13  Jim Meyering  <meyering@redhat.com>
36105
36106         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36107         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36108
36109 2009-12-12  Bruno Haible  <bruno@clisp.org>
36110
36111         duplocale: Tweak.
36112         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36113
36114 2009-12-12  Karl Berry  <karl@gnu.org>
36115
36116         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36117
36118 2009-12-12  Bruno Haible  <bruno@clisp.org>
36119
36120         * m4/po.m4: Undo incorrect untabification.
36121
36122 2009-12-12  Bruno Haible  <bruno@clisp.org>
36123
36124         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36125         * modules/c-strtod (Depends-on): Add locale.
36126         * modules/c-strtold (Depends-on): Likewise.
36127
36128 2009-12-12  Bruno Haible  <bruno@clisp.org>
36129
36130         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36131
36132 2009-12-11  Eric Blake  <ebb9@byu.net>
36133
36134         setenv: relax requirement in light of POSIX ruling
36135         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36136         not NULL.
36137         * tests/test-setenv.c (main): Relax test.
36138         * tests/test-unsetenv.c (main): Likewise.
36139         * doc/posix-functions/setenv.texi (setenv): Document this.
36140         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36141
36142 2009-12-11  Bruno Haible  <bruno@clisp.org>
36143
36144         New module 'fd-safer-flag'.
36145         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36146         * lib/dup-safer.c (dup_safer_flag): Remove function.
36147         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36148         * lib/fd-safer.c (fd_safer_flag): Remove function.
36149         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36150         * modules/cloexec (configure.ac): Drop indicator macro.
36151         * modules/fd-safer-flag: New file.
36152         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36153         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36154         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36155
36156 2009-12-11  Bruno Haible  <bruno@clisp.org>
36157
36158         Tests for module 'nl_langinfo'.
36159         * modules/nl_langinfo-tests: New file.
36160         * tests/test-nl_langinfo.sh: New file.
36161         * tests/test-nl_langinfo.c: New file.
36162
36163         New module 'nl_langinfo'.
36164         * lib/nl_langinfo.c: New file.
36165         * m4/nl_langinfo.m4: New file.
36166         * modules/nl_langinfo: New file.
36167         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36168
36169 2009-12-11  Bruno Haible  <bruno@clisp.org>
36170
36171         Tests for module 'langinfo'.
36172         * modules/langinfo-tests: New file.
36173         * tests/test-langinfo.c: New file.
36174
36175         New module 'langinfo'.
36176         * lib/langinfo.in.h: New file.
36177         * m4/langinfo_h.m4: New file.
36178         * modules/langinfo: New file.
36179         * doc/posix-headers/langinfo.texi: Mention the new module.
36180
36181 2009-12-11  Bruno Haible  <bruno@clisp.org>
36182
36183         * lib/config.charset: Untabify.
36184
36185 2009-12-11  Bruno Haible  <bruno@clisp.org>
36186
36187         * modules/unistd-safer (configure.ac): Drop indicator macro.
36188
36189 2009-12-11  Bruno Haible  <bruno@clisp.org>
36190
36191         Move pipe2-safer code to its own file.
36192         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36193         * lib/pipe-safer.c (pipe2_safer): Remove function.
36194         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36195         (Makefile.am): Add it to lib_SOURCES.
36196
36197 2009-12-10  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36200
36201 2009-12-10  Bruno Haible  <bruno@clisp.org>
36202
36203         Declare which arguments expect non-NULL values, for GCC and clang.
36204         * build-aux/arg-nonnull.h: New file.
36205         * modules/arg-nonnull: New file.
36206         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36207         (inet_ntop, inet_pton): Use it.
36208         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36209         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36210         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36211         (open, openat): Use it.
36212         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36213         (fnmatch): Use it.
36214         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36215         (getopt, getopt_long, getopt_long_only): Use it.
36216         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36217         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36218         Use it.
36219         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36220         (iconv_open): Use it.
36221         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36222         (strtoimax, strtoumax): Use it.
36223         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36224         (duplocale): Use it.
36225         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36226         (frexp, frexpl): Use it.
36227         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36228         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36229         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36230         (tsearch, tfind, tdelete, twalk): Use it.
36231         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36232         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36233         sigpending): Use it.
36234         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36235         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36236         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36237         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36238         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36239         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36240         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36241         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36242         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36243         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36244         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36245         Use it.
36246         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36247         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36248         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36249         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36250         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36251         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36252         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36253         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36254         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36255         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36256         strtoull, unsetenv): Use it.
36257         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36258         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36259         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36260         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36261         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36262         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36263         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36264         (strcasecmp, strncasecmp): Use it.
36265         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36266         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36267         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36268         rpl_setsockopt): Use it.
36269         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36270         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36271         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36272         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36273         (gettimeofday): Use it.
36274         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36275         (times): Use it.
36276         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36277         (uname): Use it.
36278         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36279         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36280         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36281         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36282         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36283         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36284         unlinkat, write): Use it.
36285         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36286         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36287         * lib/argv-iter.h: Include arg-nonnull.h.
36288         (_ATTRIBUTE_NONNULL_): Remove macro.
36289         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36290         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36291         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36292         optimization.
36293         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36294         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36295         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36296         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36297         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36298         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36299         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36300         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36301         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36302         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36303         * modules/dirent (Depends-on): Add arg-nonnull.
36304         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36305         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36306         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36307         * modules/fnmatch (Depends-on): Add arg-nonnull.
36308         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36309         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36310         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36311         * modules/glob (Depends-on): Add arg-nonnull.
36312         (Makefile.am): Insert arg-nonnull.h into glob.h.
36313         * modules/iconv_open (Depends-on): Add arg-nonnull.
36314         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36315         * modules/inttypes (Depends-on): Add arg-nonnull.
36316         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36317         * modules/locale (Depends-on): Add arg-nonnull.
36318         (Makefile.am): Insert arg-nonnull.h into locale.h.
36319         * modules/math (Depends-on): Add arg-nonnull.
36320         (Makefile.am): Insert arg-nonnull.h into math.h.
36321         * modules/netdb (Depends-on): Add arg-nonnull.
36322         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36323         * modules/search (Depends-on): Add arg-nonnull.
36324         (Makefile.am): Insert arg-nonnull.h into search.h.
36325         * modules/signal (Depends-on): Add arg-nonnull.
36326         (Makefile.am): Insert arg-nonnull.h into signal.h.
36327         * modules/spawn (Depends-on): Add arg-nonnull.
36328         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36329         * modules/stdio (Depends-on): Add arg-nonnull.
36330         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36331         * modules/stdlib (Depends-on): Add arg-nonnull.
36332         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36333         * modules/string (Depends-on): Add arg-nonnull.
36334         (Makefile.am): Insert arg-nonnull.h into string.h.
36335         * modules/strings (Depends-on): Add arg-nonnull.
36336         (Makefile.am): Insert arg-nonnull.h into strings.h.
36337         * modules/sys_socket (Depends-on): Add arg-nonnull.
36338         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36339         * modules/sys_stat (Depends-on): Add arg-nonnull.
36340         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36341         * modules/sys_time (Depends-on): Add arg-nonnull.
36342         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36343         * modules/sys_times (Depends-on): Add arg-nonnull.
36344         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36345         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36346         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36347         * modules/time (Depends-on): Add arg-nonnull.
36348         (Makefile.am): Insert arg-nonnull.h into time.h.
36349         * modules/unistd (Depends-on): Add arg-nonnull.
36350         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36351         * modules/wchar (Depends-on): Add arg-nonnull.
36352         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36353         * modules/argv-iter (Depends-on): Add arg-nonnull.
36354         * tests/test-canonicalize.c (null_ptr): New function.
36355         (main): Use it.
36356         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36357         (main): Use it.
36358         * tests/test-memmem.c (null_ptr): New function.
36359         (main): Use it.
36360         Reported by Jim Meyering.
36361
36362 2009-12-10  Bruno Haible  <bruno@clisp.org>
36363
36364         Use spaces for indentation, not tabs.
36365         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36366         * m4/*.m4: Untabify.
36367         * build-aux/*.h: Untabify.
36368         * tests/**/*.[hc]: Untabify.
36369         * README: New section "Indent with spaces, not TABs", based on
36370         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36371         * NEWS: Mention the change.
36372
36373 2009-12-10  Bruno Haible  <bruno@clisp.org>
36374
36375         pty test: Fix link error.
36376         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36377         test_pty_LDADD.
36378
36379 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36380
36381         * modules/pty: New file.
36382         * modules/pty-tests: New file.
36383         * m4/pty.m4: New file.
36384         * tests/test-pty.c: New file.
36385         * doc/glibc-headers/pty.texi: Modified.
36386         * doc/glibc-functions/forkpty.texi: Modified.
36387         * doc/glibc-functions/openpty.texi: Modified.
36388
36389 2009-12-10  Bruno Haible  <bruno@clisp.org>
36390
36391         Avoid syntax error in C++ mode.
36392         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36393
36394 2009-12-10  Bruno Haible  <bruno@clisp.org>
36395
36396         Use sed with option -e.
36397         * gnulib-tool (func_version, func_emit_copyright_notice,
36398         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36399         option -e to sed.
36400         * modules/link-warning (Makefile.am): Likewise.
36401
36402 2009-12-10  Jim Meyering  <meyering@redhat.com>
36403
36404         mgetgroups: do not write bytes beyond end of malloc'd buffer
36405         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36406         username, we call getgroups with a one-element-shorter buffer,
36407         but still told it the length was original, max_n_groups.
36408
36409 2009-12-09  Eric Blake  <ebb9@byu.net>
36410
36411         cloexec: relax license
36412         * modules/cloexec (Maintainer): Add myself.
36413         (License): Use LGPL, not GPL.
36414
36415         link-warning: optimize generation
36416         * modules/link-warning (Makefile.am): Reduce process usage.
36417
36418 2009-12-09  Bruno Haible  <bruno@clisp.org>
36419
36420         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36421         workaround was added on 2009-11-17.
36422
36423 2009-12-09  Jim Meyering  <meyering@redhat.com>
36424             Bruno Haible  <bruno@clisp.org>
36425
36426         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36427         * modules/link-warning (Makefile.am): Make the comment-removing sed
36428         command more robust in the face of bootstrap-prepended comment lines.
36429
36430 2009-12-09  Bruno Haible  <bruno@clisp.org>
36431
36432         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36433         most one group.
36434
36435 2009-12-09  Simon Josefsson <simon@josefsson.org>
36436             Bruno Haible  <bruno@clisp.org>
36437
36438         * build-aux/link-warning.h: Add copyright notice.
36439         * modules/link-warning (Makefile.am): Generate link-warning.h from
36440         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
36441         * NEWS: Mention change in link-warning module.
36442         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
36443         * modules/dirent (Makefile.am): Add dependency to dirent.h.
36444         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
36445         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
36446         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
36447         * modules/math (Makefile.am): Add dependency to math.h.
36448         * modules/search (Makefile.am): Add dependency to search.h.
36449         * modules/signal (Makefile.am): Add dependency to signal.h.
36450         * modules/spawn (Makefile.am): Add dependency to spawn.h.
36451         * modules/stdio (Makefile.am): Add dependency to stdio.h.
36452         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
36453         * modules/string (Makefile.am): Add dependency to string.h.
36454         * modules/strings (Makefile.am): Add dependency to strings.h.
36455         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
36456         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
36457         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
36458         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
36459         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
36460         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
36461         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
36462         * modules/unistd (Makefile.am): Add dependency to unistd.h.
36463         * modules/wchar (Makefile.am): Add dependency to wchar.h.
36464
36465 2009-12-09  Bruno Haible  <bruno@clisp.org>
36466
36467         fchdir: Optimize away rpl_fstat when possible.
36468         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
36469         REPLACE_OPEN_DIRECTORY.
36470         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
36471
36472 2009-12-09  Bruno Haible  <bruno@clisp.org>
36473
36474         * lib/fchdir.c: Update comment.
36475
36476 2009-12-09  Bruno Haible  <bruno@clisp.org>
36477
36478         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
36479
36480 2009-12-08  Eric Blake  <ebb9@byu.net>
36481
36482         fchdir: avoid memory leak on re-registration.
36483         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
36484
36485 2009-12-08  Jim Meyering  <meyering@redhat.com>
36486
36487         init.sh: avoid Solaris 10 /bin/sh portability problem
36488         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
36489         sourced script:
36490           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
36491           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
36492           bar
36493         tests/init.sh relied on that, accepting a --set-path=DIR argument,
36494         and two tests used that idiom.
36495         * tests/init.sh: Update suggested usage comments.
36496         (path_prepend_): New function, to be used in place
36497         of the --src-path=DIR option.
36498         (setup_): Move PATH-prepending code into path_prepend_.
36499         * tests/test-pread.sh: Adapt to new usage.
36500         * tests/test-xalloc-die.sh: Likewise.
36501
36502 2009-12-08  Simon Josefsson  <simon@josefsson.org>
36503
36504         * doc/gnulib.texi (Glibc pty.h): Add.
36505         * doc/glibc-functions/forkpty.texi: Add.
36506         * doc/glibc-functions/openpty.texi: Add.
36507         Suggested by Bruno Haible.
36508
36509 2009-12-08  Eric Blake  <ebb9@byu.net>
36510
36511         fchdir: fix logic bugs
36512         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
36513         * tests/test-fchdir.c (main): Enhance test.
36514         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
36515         is in use.
36516
36517         dup2: fix logic bugs
36518         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
36519         REPLACE_DUP2 to decide when rpl_dup2 is needed.
36520         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
36521         exists.
36522         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
36523
36524 2009-12-07  Eric Blake  <ebb9@byu.net>
36525
36526         unlink: fix m4 detection
36527         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
36528
36529         unistd-safer: add unit test
36530         * modules/unistd-safer-tests: New file.
36531         * tests/test-dup-safer.c: Likewise.
36532         * tests/test-cloexec.c (setmode): Avoid compiler warning.
36533         * tests/test-dup2.c (setmode): Likewise.
36534         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
36535
36536         cloexec: preserve text vs. binary across dup_cloexec
36537         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
36538         mode.
36539         * modules/dup2-tests (Depends-on): Add binary-io.
36540         * modules/cloexec-tests (Depends-on): Likewise.
36541         * tests/test-dup2.c (setmode, is_mode): New helpers.
36542         (main): Add tests that translation mode is preserved.
36543         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
36544         Reported by Bruno Haible.
36545
36546         mgetgroups: reduce duplicate listings
36547         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
36548         resulting array.
36549         * tests/test-chown.h (test_chown): Simplify client.
36550         * tests/test-lchown.h (test_lchown): Likewise.
36551
36552 2009-12-06  Bruno Haible  <bruno@clisp.org>
36553
36554         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
36555         value.
36556
36557 2009-12-06  Bruno Haible  <bruno@clisp.org>
36558
36559         * lib/progname.c: Include stdio.h, stdlib.h.
36560         (set_program_name): Reject a NULL argument.
36561
36562 2009-12-05  Eric Blake  <ebb9@byu.net>
36563
36564         pipe2-safer: new module
36565         * modules/pipe2-safer: New file.
36566         * lib/unistd-safer.h (pipe2_safer): New prototype.
36567         * lib/unistd--.h (pipe2): New wrapper.
36568         * lib/pipe-safer.c (pipe2_safer): New function.
36569         * modules/pipe (Depends-on): Add pipe2-safer.
36570         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
36571
36572         stdlib-safer: preserve cloexec flag for mkostemp[s]
36573         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
36574         fd_safer_flag.
36575
36576         unistd-safer: allow preservation of cloexec status via flag
36577         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
36578         prototypes.
36579         * lib/dup-safer.c (dup_safer_flag): New function.
36580         * lib/fd-safer.c (fd_safer_flag): Likewise.
36581         * modules/cloexec (configure.ac): Set witness.
36582
36583         test-dup2: enhance test
36584         * modules/dup2-tests (Depends-on): Add cloexec.
36585         * tests/test-dup2.c (main): Enhance test.
36586
36587         cloexec: add dup_cloexec
36588         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
36589         header and comments.
36590         * lib/cloexec.c (set_cloexec_flag): Add comments.
36591         (dup_cloexec): New function, with mingw implementation borrowed
36592         from...
36593         * lib/w32spawn.h (dup_noinherit): ...here.
36594         * modules/execute (Depends-on): Add cloexec.
36595         * modules/pipe (Depends-on): Likewise.
36596         * modules/cloexec (Depends-on): Add dup2.
36597         * modules/cloexec-tests (Files): New file.
36598         * tests/test-cloexec.c: Likewise.
36599
36600         test-xalloc-die: fix test for mingw
36601         * modules/xalloc-die-tests (Files): Add tests/init.sh.
36602         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
36603         directory and .exe suffix off argv[0] output.
36604
36605         test-fseeko: fix test for mingw
36606         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
36607         than undefining fseek, so test will pass on mingw.
36608
36609 2009-12-05  Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/progname.h (set_program_name): Clarify specification.
36612         * lib/progname.c (set_program_name): Likewise.
36613         Reported by Jim Meyering.
36614
36615 2009-12-05  Jim Meyering  <meyering@redhat.com>
36616
36617         maint.mk: backslash-escape parens in default regexp
36618         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
36619         backslash-escape the literal parentheses.
36620
36621         maint.mk: news-date-check: use grep -E
36622         * top/maint.mk (today): Define a Make variable, not a...
36623         (news-date-check): ...shell variable.
36624         (news-date-regexp): Use the Make variable.
36625         Use grep's -E option.  Change the failing diagnostic to mention
36626         the variable, $(news-date-regexp).
36627
36628 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
36629
36630         maintainer-makefile: allow customization of NEWS entry format
36631         * top/maint.mk (news-date-regexp): New overridable variable.
36632         (news-date-check): Use it.
36633
36634 2009-12-04  Eric Blake  <ebb9@byu.net>
36635
36636         mgetgroups: add xgetgroups, and avoid ENOSYS failures
36637         * lib/mgetgroups.h (xgetgroups): New prototype.
36638         * lib/mgetgroups.c (xgetgroups): New wrapper.
36639         (mgetgroups): Handle ENOSYS.
36640         * modules/mgetgroups (Depends-on): Add realloc.
36641         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
36642
36643         mgetgroups: avoid argument promotion issues with -1
36644         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
36645         for invalid gid_t.
36646         * tests/test-chown.h (getegid, test_chown): Likewise.
36647         * tests/test-lchown.h (getegid, test_lchown): Likewise.
36648
36649 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
36650
36651         exclude: Fix header file problems.
36652         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
36653
36654 2009-12-01  Jim Meyering  <meyering@redhat.com>
36655
36656         fts: fts_open: do not let an empty string cause immediate failure
36657         This is required in support of GNU rm, for which the command
36658         "rm A '' B" must process and remove both A and B, in spite of
36659         the empty string argument.
36660         * lib/fts.c (fts_open): Do not let the presence of an empty string
36661         cause fts_open to fail immediately.  Most fts-using tools must be
36662         able to process all arguments, in order, and can be expected to
36663         diagnose such arguments themselves.
36664
36665 2009-11-30  Eric Blake  <ebb9@byu.net>
36666
36667         utimens: fix compilation error
36668         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
36669         Declare variable at right scope.
36670
36671 2009-11-29  Jim Meyering  <meyering@redhat.com>
36672
36673         bootstrap: handle perl-5.11's changed --version output
36674         * build-aux/bootstrap (get_version): Handle perl separately,
36675         since perl-5.11's --version output is different.
36676
36677 2009-11-28  Jim Meyering  <meyering@redhat.com>
36678
36679         userspec: depend on the inttostr module, too
36680         * modules/userspec (Depends-on): Add inttostr.
36681
36682         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
36683         * lib/userspec.c (parse_with_separator): Do not accept a user ID
36684         number of MAXUID when it evaluates to (uid_t) -1.
36685         Likewise for group ID.  Reported by Matt McCutchen in
36686         <http://savannah.gnu.org/bugs/?28113>
36687
36688         userspec: reformat to use spaces, not TABs
36689         * lib/userspec.c: Expand TABs to spaces.
36690         Add Emacs' "indent-tabs-mode: nil" hint.
36691
36692 2009-11-27  Eric Blake  <ebb9@byu.net>
36693
36694         getopt-gnu: flush out another BSD bug
36695         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
36696         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
36697         flush out BSD bug.
36698         * tests/test-getopt.h (test_getopt): End lists with NULL.
36699         * tests/test-getopt_long.h (test_getopt_long): Likewise.
36700         (test_getopt_long_posix): Enhance test.
36701         * modules/getopt-posix-tests (Depends-on): Add stdbool.
36702         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
36703         getopt-gnu.
36704         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36705         Likewise.
36706
36707 2009-11-27  Simon Josefsson  <simon@josefsson.org>
36708
36709         * modules/idpriv-droptemp-tests (Notice): Fix text.
36710
36711 2009-11-27  Jim Meyering  <meyering@redhat.com>
36712
36713         test-xalloc-die: avoid spurious failure due to libtool argv difference
36714         In a libtool-enabled project, this test would fail due to a difference
36715         in the emitted program name, e.g.,
36716         -test-xalloc-die: memory exhausted
36717         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
36718         Use program to avoid that.
36719         * modules/xalloc-die-tests (Depends-on): Add progname.
36720         * tests/test-xalloc-die.c: Include progname.h".
36721         (program_name): Remove decl.
36722         (main): Call set_program_name.
36723         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
36724
36725 2009-11-26  Richard Jones  <rjones@redhat.com>
36726
36727         w32sock: leave win32 error in place.
36728         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
36729
36730 2009-11-26  Eric Blake  <ebb9@byu.net>
36731
36732         init.sh: suggest to use skip_ and fail_ functions in comments
36733         * tests/init.sh: Add a sentence.
36734
36735 2009-11-25  Bruno Haible  <bruno@clisp.org>
36736
36737         init.sh: add documentation in comments
36738         * tests/init.sh: Add some developer and user documentation.
36739
36740 2009-11-26  Jim Meyering  <meyering@redhat.com>
36741
36742         init.sh: accommodate even those who specify bogus srcdir manually
36743         * tests/init.sh: Normally, srcdir is guaranteed by automake and
36744         configure-time tests to be sanitized, so that there is no need to
36745         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
36746         (with no double quotes) suffices.  However, since tests may be
36747         invoked manually, and since you may explicitly set srcdir to the
36748         name of a directory containing spaces, do quote its uses here.
36749         * tests/test-pread.sh: Likewise.
36750         Suggested by Bruno Haible.
36751
36752         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
36753         * tests/test-pread.sh: Write no data into the pipe, because
36754         test-pread actually reads none.  This avoids a diagnostic,
36755         "bash: echo: write error: Broken pipe", that arises in the unusual
36756         event something is ignoring SIGPIPE, and might be interpreted
36757         as some sort of failure.  Reported by Bruno Haible.
36758
36759 2009-11-25  Jim Meyering  <meyering@redhat.com>
36760
36761         test-pread: cover failure with ESPIPE and EINVAL
36762         * tests/test-pread.c (main): Test for failure, too.
36763         * tests/test-pread.sh: Invoke with stdin on a pipe.
36764         Suggested by Eric Blake.
36765
36766         pread: improvement and fix
36767         * modules/pread (Depends-on): Depend on lseek, for portability to
36768         e.g., mingw.  Suggested by Eric Blake.
36769         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
36770
36771         unistd.in.h: correct declaration of pread
36772         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
36773         Reported by Richard W.M. Jones.
36774
36775         test-pread.sh: distribute the test script
36776         * modules/pread-tests (Files): Include test-pread.sh.
36777
36778         test-pread.sh: clean up
36779         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
36780         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
36781         That is unnecessary, since it's always ".".
36782         Suggestion from Eric Blake.
36783
36784         test-pread.sh: make executable
36785         * tests/test-pread.sh: Set executable bit.
36786         Reported by Eric Blake.
36787
36788         correct typo in test-pread.sh
36789         * tests/test-pread.sh: Add #! line.
36790
36791         test pread
36792         * tests/test-pread.c: New file.
36793         * tests/test-pread.sh: Likewise.
36794         * modules/pread-tests: Likewise.
36795
36796         pread: new module
36797         * modules/pread: New file.
36798         * lib/unistd.in.h (pread): Define/declare.
36799         * lib/pread.c (pread): New file.
36800         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
36801         * modules/unistd (Makefile.am): Substitute witnesses.
36802         * doc/posix-functions/pread.texi (pread): Update.
36803         * MODULES.html.sh: Add pread.
36804
36805 2009-11-25  Jim Meyering  <meyering@redhat.com>
36806
36807         tests/init.sh: new file to be used via most *.sh tests
36808         * tests/init.sh: New file.
36809
36810 2009-11-25  Eric Blake  <ebb9@byu.net>
36811
36812         utimens: work around older Linux failure with symlinks
36813         * lib/utimens.c (lutimensat_works_really): New variable.
36814         (fdutimens, lutimens): Use it to manage kernels that support
36815         nanosecond times on files, but not on symlinks.
36816         Reported by Ondřej Vašík.
36817
36818         utimes: fix configure grammar
36819         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
36820
36821 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
36822
36823         regex: Fix fastmap for multibyte character ranges.
36824         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
36825         characters when a multibyte character range is included.
36826
36827 2009-11-22  Andy Wingo  <wingo@pobox.com>
36828
36829         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
36830         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
36831
36832 2009-11-24  Bruno Haible  <bruno@clisp.org>
36833
36834         doc: Most *_l functions exist in MacOS X 10.5.
36835         * doc/posix-functions/duplocale.texi: Update platforms list.
36836         * doc/posix-functions/freelocale.texi: Likewise.
36837         * doc/posix-functions/newlocale.texi: Likewise.
36838         * doc/posix-functions/uselocale.texi: Likewise.
36839         * doc/posix-functions/isalnum_l.texi: Likewise.
36840         * doc/posix-functions/isalpha_l.texi: Likewise.
36841         * doc/posix-functions/isblank_l.texi: Likewise.
36842         * doc/posix-functions/iscntrl_l.texi: Likewise.
36843         * doc/posix-functions/isdigit_l.texi: Likewise.
36844         * doc/posix-functions/isgraph_l.texi: Likewise.
36845         * doc/posix-functions/islower_l.texi: Likewise.
36846         * doc/posix-functions/isprint_l.texi: Likewise.
36847         * doc/posix-functions/ispunct_l.texi: Likewise.
36848         * doc/posix-functions/isspace_l.texi: Likewise.
36849         * doc/posix-functions/isupper_l.texi: Likewise.
36850         * doc/posix-functions/iswalnum_l.texi: Likewise.
36851         * doc/posix-functions/iswalpha_l.texi: Likewise.
36852         * doc/posix-functions/iswblank_l.texi: Likewise.
36853         * doc/posix-functions/iswcntrl_l.texi: Likewise.
36854         * doc/posix-functions/iswctype_l.texi: Likewise.
36855         * doc/posix-functions/iswdigit_l.texi: Likewise.
36856         * doc/posix-functions/iswgraph_l.texi: Likewise.
36857         * doc/posix-functions/iswlower_l.texi: Likewise.
36858         * doc/posix-functions/iswprint_l.texi: Likewise.
36859         * doc/posix-functions/iswpunct_l.texi: Likewise.
36860         * doc/posix-functions/iswspace_l.texi: Likewise.
36861         * doc/posix-functions/iswupper_l.texi: Likewise.
36862         * doc/posix-functions/iswxdigit_l.texi: Likewise.
36863         * doc/posix-functions/isxdigit_l.texi: Likewise.
36864         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
36865         * doc/posix-functions/strcasecmp_l.texi: Likewise.
36866         * doc/posix-functions/strcoll_l.texi: Likewise.
36867         * doc/posix-functions/strfmon_l.texi: Likewise.
36868         * doc/posix-functions/strftime_l.texi: Likewise.
36869         * doc/posix-functions/strncasecmp_l.texi: Likewise.
36870         * doc/posix-functions/strxfrm_l.texi: Likewise.
36871         * doc/posix-functions/tolower_l.texi: Likewise.
36872         * doc/posix-functions/toupper_l.texi: Likewise.
36873         * doc/posix-functions/towctrans_l.texi: Likewise.
36874         * doc/posix-functions/towlower_l.texi: Likewise.
36875         * doc/posix-functions/towupper_l.texi: Likewise.
36876         * doc/posix-functions/wcscoll_l.texi: Likewise.
36877         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
36878         * doc/posix-functions/wctrans_l.texi: Likewise.
36879         * doc/posix-functions/wctype_l.texi: Likewise.
36880         * doc/glibc-functions/strptime_l.texi: Likewise.
36881         * doc/glibc-functions/strtod_l.texi: Likewise.
36882         * doc/glibc-functions/strtof_l.texi: Likewise.
36883         * doc/glibc-functions/strtol_l.texi: Likewise.
36884         * doc/glibc-functions/strtold_l.texi: Likewise.
36885         * doc/glibc-functions/strtoll_l.texi: Likewise.
36886         * doc/glibc-functions/strtoul_l.texi: Likewise.
36887         * doc/glibc-functions/strtoull_l.texi: Likewise.
36888         * doc/glibc-functions/wcsftime_l.texi: Likewise.
36889         * doc/glibc-functions/wcstod_l.texi: Likewise.
36890         * doc/glibc-functions/wcstof_l.texi: Likewise.
36891         * doc/glibc-functions/wcstol_l.texi: Likewise.
36892         * doc/glibc-functions/wcstold_l.texi: Likewise.
36893         * doc/glibc-functions/wcstoll_l.texi: Likewise.
36894         * doc/glibc-functions/wcstoul_l.texi: Likewise.
36895         * doc/glibc-functions/wcstoull_l.texi: Likewise.
36896
36897 2009-11-24  Bruno Haible  <bruno@clisp.org>
36898
36899         duplocale: Fix logic bug.
36900         * lib/duplocale.c: Don't include <langinfo.h>.
36901         (_NL_LOCALE_NAME): Remove macro.
36902         (rpl_duplocale): Use setlocale instead of nl_langinfo.
36903         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
36904
36905 2009-11-23  Jim Meyering  <meyering@redhat.com>
36906
36907         test-update-copyright: don't hard-code /usr/bin/perl
36908         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
36909         perl to print the current year.  Gilles Espinasse reported that
36910         the replaced use of perl was hard-coded as /usr/bin/perl.
36911
36912 2009-11-23  Bruno Haible  <bruno@clisp.org>
36913
36914         duplocale: Add support for glibc 2.3.x.
36915         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
36916
36917 2009-11-22  Bruno Haible  <bruno@clisp.org>
36918
36919         vasnprintf: Tiny optimization.
36920         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
36921         MacOS X.
36922
36923 2009-11-22  Bruno Haible  <bruno@clisp.org>
36924
36925         Tests for module 'duplocale'.
36926         * modules/duplocale-tests: New file.
36927         * tests/test-duplocale.c: New file.
36928
36929         New module 'duplocale'.
36930         * m4/duplocale.m4: New file.
36931         * lib/locale.in.h (duplocale): New declaration.
36932         * lib/duplocale.c: New file.
36933         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
36934         gl_LOCALE_H_DEFAULTS): New macros.
36935         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
36936         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
36937         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
36938         REPLACE_DUPLOCALE.
36939         * modules/duplocale: New file.
36940         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
36941
36942 2009-11-22  Bruno Haible  <bruno@clisp.org>
36943
36944         * modules/locale-tests (configure.ac): Test for newlocale function.
36945         * tests/test-locale.c: When the system has extended locale functions,
36946         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
36947
36948         locale: Make locale_t available when possible.
36949         * lib/locale.in.h: Include <xlocale.h> when it exists.
36950         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
36951         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
36952         * modules/locale (Depends-on): Add extensions.
36953         (Makefile.am): Also substitute HAVE_XLOCALE_H.
36954         * doc/posix-headers/locale.texi: Document the problem with locale_t.
36955
36956 2009-11-22  Bruno Haible  <bruno@clisp.org>
36957
36958         Add comments.
36959         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
36960         invocation.
36961         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
36962         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36963         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36964
36965 2009-11-22  Bruno Haible  <bruno@clisp.org>
36966
36967         error: account for the possibility of freopen (stdout).
36968         * lib/error.c: Include <unistd.h>.
36969         (flush_stdout): New function, extracted from error and error_at_line.
36970         Determine stdout's fd dynamically.
36971         (error, error_at_line): Invoke flush_stdout.
36972         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
36973         * modules/error (Depends-on): Add unistd.
36974
36975 2009-11-22  Bruno Haible  <bruno@clisp.org>
36976
36977         diffseq: Add comment.
36978         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
36979
36980 2009-11-22  Jim Meyering  <meyering@redhat.com>
36981
36982         c-stack: avoid defining an unused static function
36983         * lib/c-stack.c (find_stack_direction): Do not define this function
36984         when it will not be used.
36985
36986         diffseq: avoid spurious gcc warnings
36987         * lib/diffseq.h (IF_LINT2): Define.
36988         (compareseq): Use it to initialize two members of "part".
36989         This avoids two used-uninitialized warnings.
36990
36991 2009-11-21  Jim Meyering  <meyering@redhat.com>
36992
36993         c-stack: avoid "ignoring return value of `write'" warning
36994         * lib/c-stack.c: Include "ignore-value.h".
36995         (die): Explicitly ignore each write return value.
36996         * modules/c-stack (Depends-on): Add ignore-value.
36997
36998 2009-11-21  Bruno Haible  <bruno@clisp.org>
36999
37000         diffseq: reduce scope of variable 'best'.
37001         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37002         variable, earlier used for two different purposes.
37003
37004 2009-11-21  Jim Meyering  <meyering@redhat.com>
37005
37006         diffseq: remove useless assignment to "best"
37007         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37008         assignment.  At that point "best" is already guaranteed to be zero.
37009
37010 2009-11-20  Eric Blake  <ebb9@byu.net>
37011
37012         build: mention ftp redirector in release announcements
37013         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37014         values that used to come from cfg.mk; mention FTP redirect URL.
37015         * build-aux/announce-gen: Mention the mirror list.
37016         Suggested by Karl Berry.
37017
37018         nanosleep: improve port to mingw
37019         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37021         LIB_NANOSLEEP, but only when needed.
37022         * modules/select (Link): Document LIBSOCKET.
37023         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37024         enough.
37025
37026         nanosleep: work around cygwin bug
37027         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37028         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37029         bug.
37030         (getnow): Delete, not needed.
37031         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37032         LIB_CLOCK_GETTIME.
37033         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37034         clock-time, gettime.
37035         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37036         bug.
37037         * modules/nanosleep-tests: New test.
37038         * tests/test-nanosleep.c: New file.
37039
37040         sleep: work around cygwin bug
37041         * lib/sleep.c (rpl_sleep): Work around the bug.
37042         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37043         (gl_PREREQ_SLEEP): Delete unused macro.
37044         * modules/sleep (Depends-on): Add verify.
37045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37046         * modules/unistd (Makefile.am): Substitute witness.
37047         * lib/unistd.in.h (sleep): Update prototype.
37048         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37049         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37050         * modules/sleep-tests (Depends-on): Check for alarm.
37051
37052 2009-11-20  Jim Meyering  <meyering@redhat.com>
37053
37054         maint.mk: improve sc_prohibit_magic_number_exit
37055         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37056         so it does not match uses like System.exit(1).
37057         Add comments showing how to correct all offenders.
37058
37059 2009-11-19  Eric Blake  <ebb9@byu.net>
37060
37061         xalloc-die-tests: add missing library
37062         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37063
37064         test-xvasprintf: silence compiler warnings
37065         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37066         empty string from gcc.
37067
37068 2009-11-19  Jim Meyering  <meyering@redhat.com>
37069
37070         xfreopen: new module, from coreutils
37071         * modules/xfreopen: New module.
37072         * lib/xfreopen.c: New file.
37073         * lib/xfreopen.h: New file.
37074         * MODULES.html.sh (File stream based Input/Output"): Add it.
37075
37076 2009-11-19  Eric Blake  <ebb9@byu.net>
37077
37078         manywarnings: depend on warnings
37079         * modules/manywarnings (Depends-on): Add warnings.
37080
37081         build: avoid compiler warnings
37082         * lib/select.c (rpl_select): Delete unused variable.
37083         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37084
37085 2009-11-18  Eric Blake  <ebb9@byu.net>
37086
37087         tests: avoid false negative with --with-packager
37088         * tests/test-version-etc.sh: Discard packager information.
37089         * tests/test-argp-version-etc-1.sh: Likewise.
37090         Reported by Mike Frysinger.
37091
37092         utimens: fix regression on Solaris
37093         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37094         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37095         can only change fd timestamps via futimesat.  Instead, use an
37096         additional witness macro to avoid BSD bug.
37097         Reported by Jim Meyering.
37098
37099 2009-11-17  Eric Blake  <ebb9@byu.net>
37100
37101         usleep: use it to simplify tests
37102         * modules/stat-time-tests (Depends-on): Add usleep.
37103         (configure.ac): Drop usleep check.
37104         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37105         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37106         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37107         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37108         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37109         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37110         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37111         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37112         Likewise.
37113         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37114         * tests/test-lchown.h (nap): Likewise.
37115         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37116         * tests/test-stat-time.c (nap): Likewise.
37117         * tests/test-utimens-common.h (nap): Update comments.
37118
37119         usleep: new module
37120         * modules/usleep: New file.
37121         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37122         * lib/usleep.c (usleep): Likewise.
37123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37124         * modules/unistd (Makefile.am): Substitute witnesses.
37125         * lib/unistd.in.h (usleep): Add declaration.
37126         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37127         * MODULES.html.sh (Date and time): Likewise.
37128         * modules/usleep-tests (Depends-on): New test.
37129         * tests/test-usleep.c: New file.
37130
37131         chown: work around OpenBSD bug
37132         * lib/chown.c (rpl_chown): Work around the bug.
37133         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37134         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37135         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37136         * modules/chown (Depends-on): Add stdbool.
37137         * modules/lchown (Depends-on): Likewise.
37138         * doc/posix-functions/chown.texi (chown): Document the bug.
37139         * doc/posix-functions/lchown.texi (lchown): Likewise.
37140         * tests/test-lchown.h (test_chown): Relax test.
37141
37142         mkstemp: avoid conflict with C++ keyword template
37143         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37144         * lib/mkostemp.c (mkostemp): Likewise.
37145         * lib/mkostemps.c (mkostemps): Likewise.
37146         * lib/mkstemp.c (mkstemp): Likewise.
37147         * lib/mkstemps.c (mkstemps): Likewise.
37148
37149         xalloc-die-tests: optimize
37150         * tests/test-xalloc-die.sh: Reduce number of processes.
37151
37152 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37153
37154         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37155         patch from ludo@gnu.org (Ludovic Courtès).
37156
37157 2009-11-17  Jim Meyering  <meyering@redhat.com>
37158
37159         version-etc: use proper license string
37160         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37161         * modules/version-etc-fsf: Likewise.
37162
37163 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37164
37165         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37166         printed to stdout.  Deal with EOL differences.
37167
37168 2009-11-17  Eric Blake  <ebb9@byu.net>
37169
37170         unsetenv: work around Solaris bug
37171         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37172         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37173         Reported by Jim Meyering.
37174
37175         vasnprintf: avoid compiler warnings
37176         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37177         variables.
37178         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37179
37180 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37181
37182         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37183         settings since xalloc-die is no longer the self test,
37184         xalloc-die.sh is.
37185
37186 2009-11-17  Jim Meyering  <meyering@redhat.com>
37187
37188         test-xalloc-die.sh: make the code agree with the commit log
37189         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37190         at the end, just in case you happen to have a test-xalloc-die
37191         program in some other PATH directory.
37192
37193         test-xalloc-die.sh: fix a portability bug
37194         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37195         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37196         Otherwise, argv[0] (as often seen in diagnostics) would be too
37197         system-dependent, sometimes with, and sometimes without the leading "./".
37198
37199         version-etc-fsf: relax license to LGPLv3+
37200         * modules/version-etc-fsf (License): Relax license.
37201
37202 2009-11-16  Eric Blake  <ebb9@byu.net>
37203
37204         xalloc-die-tests: avoid printing null pointer
37205         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37206         shell script.
37207         * tests/test-xalloc-die.c (program_name): Declare.
37208         * tests/test-xalloc-die.sh (tmpfiles): New file.
37209
37210         setenv, unsetenv: work around various bugs
37211         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37212         (setenv) [HAVE_SETENV]: Work around bugs.
37213         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37214         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37215         for bugs.
37216         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37217         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37218         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37219         * modules/stdlib (Makefile.am): Update substitutions.
37220         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37221         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37222         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37223         * modules/setenv-tests: New test.
37224         * modules/unsetenv-tests: Likewise.
37225         * tests/test-setenv.c: New file.
37226         * tests/test-unsetenv.c: Likewise.
37227
37228 2009-11-16  Jim Meyering  <meyering@redhat.com>
37229
37230         version-etc: relax license to LGPLv3+
37231         * modules/version-etc (License): Relax license.
37232
37233         better AC_REQUIRE expanded-before-required-warning avoidance
37234         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37235         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37236         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37237         which is no longer needed.
37238
37239 2009-11-16  Eric Blake  <ebb9@byu.net>
37240
37241         test-freading: clean up temporary file
37242         * tests/test-freading.c (main): Remove file on success, and use
37243         ASSERT more liberally.
37244         Reported by Jim Meyering.
37245
37246 2009-11-16  Jim Meyering  <meyering@redhat.com>
37247
37248         avoid new AC_REQUIRE expanded-before-required warnings
37249         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37250         merely using it.
37251         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37252         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37253
37254 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37255
37256         * tests/test-xalloc-die.c: New file.
37257         * modules/xalloc-die-tests: New file.
37258         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37259         XFAIL_TESTS so it can be appended by modules.
37260
37261 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37262
37263         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37264         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37265
37266 2009-11-14  Eric Blake  <ebb9@byu.net>
37267
37268         fnmatch: avoid compiler warning
37269         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37270         to silence compiler warning about mismatch signedness in ?:.
37271         Reported by Robert Millan.
37272
37273         intprops: add double-inclusion guard
37274         * lib/intprops.h: Allow idempotent includes.
37275         Suggested by Bruce Korb.
37276
37277         openat: detect Solaris fchownat bug
37278         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37279         penalizing glibc chownat when only lchownat is broken.
37280         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37281         trailing slash bugs.
37282         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37283         * modules/openat-tests (Files): Include more files.
37284         (Depends-on): Add mgetgroups, sleep, stat-time.
37285         (configure.ac): Add additional checks.
37286         (Makefile.am): Build new test.
37287         * tests/test-fchownat.c: New file.
37288
37289         lchown: detect Solaris and FreeBSD bug
37290         * lib/lchown.c (rpl_lchown): Work around bug.
37291         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37293         * modules/unistd (Makefile.am): Populate it.
37294         * lib/unistd.in.h (lchown): Update declaration.
37295         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37296         * modules/lchown-tests: New file.
37297         * tests/test-lchown.h (test_lchown): Likewise.
37298         * tests/test-lchown.c (main): Likewise.
37299
37300         chown: detect Solaris and FreeBSD bug
37301         * lib/chown.c (rpl_chown): Work around bug.
37302         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37303         (gl_PREREQ_CHOWN): Delete.
37304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37305         * modules/unistd (Makefile.am): Populate it.
37306         * lib/unistd.in.h (chown): Update declaration.
37307         * lib/lchown.c (chown): Update client.
37308         * modules/lchown (Depends-on): Add lstat.
37309         * doc/posix-functions/chown.texi (chown): Document the bug.
37310         * doc/posix-functions/getgroups.texi (getgroups): Document
37311         getgroups pitfall.
37312         * modules/chown-tests: New file.
37313         * tests/test-chown.h (test_chown): Likewise.
37314         * tests/test-chown.c (main): Likewise.
37315
37316 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37317
37318         gnulib-tool: correctly detect absence of m4 directories
37319         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37320
37321 2009-11-14  Jim Meyering  <meyering@redhat.com>
37322
37323         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37324         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37325
37326 2009-11-14  John W. Eaton  <jwe@gnu.org>
37327
37328         strftime.h: wrap funtion declaration in extern "C" block
37329         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37330
37331 2009-11-13  Eric Blake  <ebb9@byu.net>
37332
37333         getgroups: avoid compiler warning
37334         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37335
37336         getgroups: work around FreeBSD bug
37337         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37338         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37339         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37340         * tests/test-getgroups.c (main): Fix buffer overrun.
37341
37342         getgroups: avoid compilation failure
37343         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37344         * modules/getgroups (Depends-on): Add stdint.
37345
37346 2009-11-13  Jim Meyering  <meyering@redhat.com>
37347
37348         test-getgroups: avoid compilation failure
37349         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37350
37351 2009-11-13  Eric Blake  <ebb9@byu.net>
37352
37353         mgetgroups: new module, taken from coreutils
37354         * modules/mgetgroups: New file.
37355         * lib/mgetgroups.h: Likewise.
37356         * lib/mgetgroups.c (mgetgroups): Likewise.
37357         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37358         * MODULES.html.sh (Users and groups): Mention it.
37359
37360         getgroups: don't expose GETGROUPS_T to user
37361         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37362         an element at a time if GETGROUPS_T is wrong size.
37363         * lib/getugroups.h (getugroups): Change signature.
37364         * lib/unistd.in.h (getgroups): Likewise.
37365         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37366         signature needs fixing.
37367         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37368         AC_TYPE_GETGROUPS.
37369         * modules/group-member (Depends-on): Add getgroups.
37370         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37371         (group_member): Rely on getgroups replacement.
37372         * lib/getugroups.c (getugroups): Use gid_t.
37373         * tests/test-getgroups.c (main): Likewise.
37374         * NEWS: Mention the signature change.
37375         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37376         problem with signature.
37377         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37378         GETGROUPS_T is still useful for setgroups.
37379
37380         getgroups, getugroups: provide stubs for mingw
37381         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37382         * lib/getugroups.c (getugroups): Likewise.
37383         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37384         function.  Modernize replacement scheme.
37385         (gl_PREREQ_GETGROUPS): Delete.
37386         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37387         * modules/getgroups (configure.ac): Declare witness.
37388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37389         * modules/unistd (Depends-on): Substitute witness.
37390         * lib/unistd.in.h (getgroups): Declare replacement.
37391
37392         getgroups: avoid calling exit
37393         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37394         drop xalloc.
37395         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37396         dependencies.
37397         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37398         exiting, in the rare case of malloc failure.
37399
37400         getgroups: fix logic error
37401         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37402         has more than 20 groups.
37403         * modules/getgroups-tests: New test.
37404         * tests/test-getgroups.c: New file.
37405
37406 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37407
37408         * tests/test-base64.c: Improve.
37409
37410 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37411
37412         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37413         Blake <ebb9@byu.net>.
37414
37415 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37416
37417         * tests/test-xvasprintf.c: Add %s%s related checks.
37418
37419 2009-11-12  Eric Blake  <ebb9@byu.net>
37420
37421         version-etc: match standards.texi style
37422         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37423         and use <> only for URLs.
37424
37425 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37426
37427         fts: do not fail on a submount during traversal
37428         * lib/fts.c (fts_build): Read the stat info again after opening
37429         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37430         Original report at http://bugzilla.redhat.com/501848.
37431
37432 2009-11-12  Jim Meyering  <meyering@redhat.com>
37433
37434         bootstrap: sync from coreutils
37435         * build-aux/bootstrap (bootstrap_epilogue): New function.
37436         Use git_modules_config in one more place.  This make bootstrap's
37437         --gnulib-srcdir option more useful for testing.
37438
37439         bootstrap: generalize autoheader check
37440         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
37441         AC_CONFIG_HEADERS.
37442
37443 2009-11-11  Eric Blake  <ebb9@byu.net>
37444
37445         mkfifoat: use new modules for Solaris and BSD bugs
37446         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
37447         * lib/mkfifoat.c (mknodat): Split...
37448         * lib/mknodat.c (mknodat): ...into new file.
37449         * modules/mkfifoat (Files): Ship new file.
37450         (Depends-on): Add mkfifo, mknod.
37451         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
37452         (Depends-on): Add symlink.
37453         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
37454         redundant with test_mkfifo.h.
37455         (do_mkfifoat, do_mknodat): New helpers.
37456
37457         mknod: new module
37458         * modules/mknod: New file.
37459         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
37460         * lib/mknod.c (mknod): Likewise.
37461         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37462         defaults.
37463         * modules/sys_stat (Makefile.am): Substitute them.
37464         * lib/sys_stat.in.h (mknod): Declare replacement.
37465         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37466         Document it.
37467         * doc/posix-functions/mknod.texi (mknod): Likewise.
37468         * modules/mknod-tests: New test.
37469         * tests/test-mknod.c: Likewise.
37470
37471         mkfifo: new module
37472         * modules/mkfifo: New file.
37473         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
37474         * lib/mkfifo.c (mkfifo): Likewise.
37475         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
37476         defaults.
37477         * modules/sys_stat (Makefile.am): Substitute them.
37478         * lib/sys_stat.in.h (mkfifo): Declare replacement.
37479         * MODULES.html.sh (Support for systems lacking POSIX:2008):
37480         Document it.
37481         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
37482         * modules/mkfifo-tests: New test.
37483         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
37484         from test-mkfifoat.c.
37485         * tests/test-mkfifo.c: New file.
37486
37487         readlink: detect FreeBSD bug
37488         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
37489         slash on symlink.
37490         * doc/posix-functions/readlink.texi (readlink): Document the bug.
37491         * tests/test-readlink.h (test_readlink): Enhance test.
37492
37493         symlink: detect FreeBSD bug
37494         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
37495         slash on symlink.
37496         * doc/posix-functions/symlink.texi (symlink): Document the bug.
37497         * tests/test-symlink.h (test_symlink): Enhance test.
37498
37499 2009-11-10  Eric Blake  <ebb9@byu.net>
37500
37501         link: detect FreeBSD bug
37502         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
37503         symlink.
37504         * doc/posix-functions/link.texi (link): Document the bug.
37505         * tests/test-link.h (test_link): Enhance test.
37506         * tests/test-linkat.c (main): Update caller.
37507
37508         unlink, remove: detect FreeBSD bug
37509         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
37510         slash on symlink.
37511         * doc/posix-functions/unlink.texi (unlink): Document the bug.
37512         * doc/posix-functions/remove.texi (remove): Likewise.
37513         * tests/test-unlink.h (test_unlink): Enhance test.
37514         * tests/test-remove.c (main): Likewise.
37515
37516 2009-11-09  Eric Blake  <ebb9@byu.net>
37517
37518         rename: detect FreeBSD bug
37519         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
37520         slash on symlink.
37521         * modules/renameat-tests (Depends-on): Add filenamecat.
37522         * tests/test-rename.h (test_rename): Allow one more errno.
37523         * tests/test-renameat.c (main): Likewise.
37524         * doc/posix-functions/rename.texi (rename): Document the bug.
37525
37526         open: detect FreeBSD bug
37527         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
37528         symlink.
37529         * doc/posix-functions/open.texi (open): Document the bug.
37530         * doc/posix-functions/utimes.texi (utimes): Likewise.
37531         * tests/test-open.h (test_open): Add parameters, and test symlink
37532         handling.
37533         * tests/test-open.c (main): Adjust caller.
37534         * tests/test-fcntl-safer.c (main): Likewise.
37535         * modules/open-tests (Depends-on): Add stdbool, symlink.
37536         * modules/fcntl-safer-tests (Depends-on): Likewise.
37537         * tests/test-openat.c (main): Add test-open tests.
37538
37539         stat: detect FreeBSD bug
37540         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
37541         symlink.
37542         * doc/posix-functions/stat.texi (stat): Document the bug.
37543         * tests/test-stat.h (test_stat_func): Add argument.
37544         * tests/test-stat.c (main): Adjust caller.
37545         * tests/test-fstatat.c (main): Likewise.
37546         * modules/stat-tests (Depends-on): Add stdbool, symlink.
37547         Reported by Jim Meyering.
37548
37549 2009-11-09  James Youngman  <jay@gnu.org>
37550
37551         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
37552         * lib/strftime.c: Correct placement of #include "ignore-value.h".
37553
37554 2009-11-08  Jim Meyering  <meyering@redhat.com>
37555
37556         utimens: remove invalid futimesat call
37557         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
37558         It used the file descriptor of the target file as the DIR_FD
37559         parameter and NULL as the file name.  That caused failure with
37560         errno == EFAULT on FreeBSD-8.0-rc2
37561
37562 2009-11-07  Eric Blake  <ebb9@byu.net>
37563
37564         fflush, freadseek: use fseeko, not fseek
37565         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
37566         (clear_ungetc_buffer): Avoid potential problems on large files.
37567         * lib/freadseek.c (freadseek): Likewise.
37568         * modules/freadseek (Depends-on): Add fseeko.
37569         * modules/fseek (configure.ac): Set a witness.
37570         * tests/test-fflush.c (main): Use fseeko.
37571         * tests/test-fpurge.c (fseek): Disable link warning.
37572         * tests/test-freadable.c (fseek): Likewise.
37573         * tests/test-freading.c (fseek): Likewise.
37574         * tests/test-fseeko.c (fseek): Likewise.
37575         * tests/test-ftell.c (fseek): Likewise.
37576         * tests/test-ftello.c (fseek): Likewise.
37577         * tests/test-fwritable.c (fseek): Likewise.
37578         * tests/test-fwriting.c (fseek): Likewise.
37579
37580 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37581
37582         * modules/memchr (Depends-on): Drop getpagesize dependency.
37583
37584 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37585
37586         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
37587         Reported by Ludovic Courtès.
37588         * build-aux/pmccabe2html: Improve example usage.
37589         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
37590
37591 2009-11-06  Jim Meyering  <meyering@redhat.com>
37592
37593         do-release-commit-and-tag: New module.
37594         Automate the release-commit and tag process.
37595         * build-aux/do-release-commit-and-tag: New script, from coreutils.
37596         * modules/do-release-commit-and-tag: New file.
37597         * MODULES.html.sh (Support for maintaining and releasing): Add it.
37598
37599 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37600
37601         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
37602         because test-select.c uses inet_pton.
37603
37604 2009-11-06  Simon Josefsson  <simon@josefsson.org>
37605
37606         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
37607         GETADDRINFO_LIB.  Bump serial number.
37608         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
37609         Suggested by Eric Blake <ebb9@byu.net>.
37610
37611 2009-11-05  Eric Blake  <ebb9@byu.net>
37612
37613         strtod: detect darwin bug
37614         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
37615         Reported by Leo Davis.
37616
37617         freopen-safer: new module
37618         * modules/freopen-safer: New module.
37619         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
37620         * lib/freopen-safer.c (freopen_safer): New file.
37621         * lib/stdio-safer.h (freopen_safer): New declaration.
37622         * lib/stdio--.h (freopen): New override.
37623         * MODULES.html.sh (File stream based Input/Output): Mention it.
37624         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
37625         freopen-safer module.
37626         * doc/posix-functions/stderr.texi (stderr): Likewise.
37627         * doc/posix-functions/stdin.texi (stdin): Likewise.
37628         * doc/posix-functions/stdout.texi (stdout): Likewise.
37629         * modules/freopen-safer-tests: New test.
37630         * tests/test-reopen-safer.c: New file.
37631
37632 2009-11-05  Jim Meyering  <meyering@redhat.com>
37633
37634         maint.mk: Prohibit inclusion of "close-stream.h" without use.
37635         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37636
37637 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37638
37639         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
37640
37641 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37642
37643         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
37644
37645 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37646
37647         Fix link error.
37648         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37649         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37650
37651 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37652
37653         * tests/test-func.c: Also test value of __func__.
37654
37655 2009-11-05  Simon Josefsson  <simon@josefsson.org>
37656
37657         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
37658         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
37659
37660 2009-11-05  Bruno Haible  <bruno@clisp.org>
37661
37662         Fix link error.
37663         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
37664         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
37665         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
37666
37667 2009-11-05  Bruno Haible  <bruno@clisp.org>
37668
37669         Tests for module 'inet_pton'.
37670         * modules/inet_pton-tests: New file.
37671         * tests/test-inet_pton.c: New file.
37672
37673 2009-11-05  Bruno Haible  <bruno@clisp.org>
37674
37675         Tests for module 'inet_ntop'.
37676         * modules/inet_ntop-tests: New file.
37677         * tests/test-inet_ntop.c: New file.
37678
37679 2009-11-04  Eric Blake  <ebb9@byu.net>
37680
37681         stdlib-safer: wrap all mkstemp variants
37682         * modules/mkostemp (configure.ac): Set witness.
37683         * modules/mkostemps (configure.ac): Likewise.
37684         * modules/mkstemps (configure.ac): Likewise.
37685         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
37686         (mkstemps_safer): Wrap more functions.
37687         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
37688         wrapping.
37689         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
37690         (mkstemps_safer): Implement the wrappers.
37691
37692         mkstemps, mkostemps: new modules
37693         * modules/mkostemps: New module.
37694         * modules/mkstemps: Likewise.
37695         * lib/mkostemps.c (mkostemps): New file.
37696         * lib/mkstemps.c (mkstemps): Likewise.
37697         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
37698         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
37699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
37700         * modules/stdlib (Makefile.am): Substitute them.
37701         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
37702         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
37703         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
37704         * doc/gnulib.texi (Glibc stdlib.h): Include them.
37705         * MODULES.html.sh (File system functions): Mention them.
37706
37707         tempname: resync from glibc
37708         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
37709         same values for __GT_FILE as glibc.  Abort even when assertions
37710         are disabled.
37711         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
37712         match its value otherwise.  Allow idempotent inclusion.
37713         * lib/mkdtemp.c (mkdtemp): Adjust caller.
37714         * lib/mkostemp.c (mkostemp): Likewise.
37715         * lib/mkstemp.c (mkstemp): Likewise.
37716         * lib/tmpfile.c (tmpfile): Likewise.
37717         * NEWS: Document this.
37718
37719         utimens: fix use of futimens on older Linux
37720         * lib/utimens.c (fdutimens): Use updated, rather than original,
37721         timespec to avoid bug in older Linux kernel.
37722         Reported by Simon Josefsson.
37723
37724 2009-11-04  Bruno Haible  <bruno@clisp.org>
37725
37726         Make num_processors more flexible and consistent.
37727         * lib/nproc.h (enum nproc_query): New type.
37728         (num_processors): Add a 'query' argument.
37729         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
37730         (num_processors): Add a 'query' argument. Test the value of the
37731         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
37732         mingw, count the number of CPUs available for the current process.
37733         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
37734         Check for sched_getaffinity and sched_getaffinity_np.
37735         * modules/nproc (Depends-on): Add c-ctype, extensions.
37736         * NEWS: Mention the change.
37737
37738 2009-11-03  Bruno Haible  <bruno@clisp.org>
37739
37740         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
37741
37742 2009-11-03  Jim Meyering  <meyering@redhat.com>
37743
37744         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
37745         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
37746         if it is defined.
37747
37748 2009-11-02  Eric Blake  <ebb9@byu.net>
37749
37750         mktime, timegm: share common declaration
37751         * lib/mktime-internal.h: New file.
37752         * lib/mktime.c: Use it rather than open-coding a declaration.
37753         * lib/timegm.c: Likewise.
37754         * modules/mktime (Files): Ship it.
37755         * modules/timegm (Files): Likewise.
37756         Suggested by Bruno Haible.
37757
37758         test-update-copyright: update test to match script changes
37759         * tests/test-update-copyright.sh: Avoid hard-coding perl
37760         location.  Don't update *.bak created by earlier runs.
37761
37762 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
37763             Simon Josefsson  <simon@josefsson.org>
37764             Bruno Haible  <bruno@clisp.org>
37765
37766         Fix link error on Solaris 8.
37767         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
37768         also in libnsl. Define also INET_PTON_LIB.
37769         * modules/inet_pton (Link): New section.
37770
37771 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37772             Bruno Haible  <bruno@clisp.org>
37773
37774         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
37775         * modules/inet_ntop (Link): New section.
37776         Reported by Boyan Kasarov <bkasarov@gmail.com>.
37777
37778 2009-11-02  Eric Blake  <ebb9@byu.net>
37779
37780         maint: avoid compiler warnings in m4 macros
37781         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
37782         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
37783
37784 2009-11-02  Simon Josefsson  <simon@josefsson.org>
37785
37786         * m4/pmccabe2html.m4: Remove file.
37787         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
37788         function.  Change maintainer.
37789         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
37790         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
37791         Courtès).
37792
37793 2009-10-31  Eric Blake  <ebb9@byu.net>
37794
37795         fseeko: fix m4 regression
37796         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
37797         regression from 2009-10-27.
37798         Reported by Ralf Wildenhues.
37799
37800 2009-10-31  Jim Meyering  <meyering@redhat.com>
37801
37802         inttostr: aesthetics and improved (compile-time) safety
37803         Define inttype_is_signed rather than inttype_is_unsigned,
37804         since the sole use is via "#if inttype_is_signed".
37805         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
37806         inttype_is_unsigned.
37807         * lib/offtostr.c (inttype_is_signed): Likewise.
37808         * lib/uinttostr.c (inttype_is_signed): Likewise.
37809         * lib/umaxtostr.c (inttype_is_signed): Likewise.
37810         * lib/inttostr.c (inttostr): Use verify to cross-check the
37811         inttype_is_signed value and the signedness of the actual type.
37812         * modules/inttostr (Depends-on): Add verify.
37813
37814 2009-10-30  Eric Blake  <ebb9@byu.net>
37815
37816         build: avoid compiler warnings
37817         * lib/fchmodat.c (lchmod): Mark unused variables.
37818         * lib/getopt.c (_getopt_initialize): Likewise.
37819         * lib/mktime.c (__mktime_internal): Provide prototype.
37820         * lib/inttostr.c (inttostr): Avoid compiler warning even with
37821         older gcc that do not understand #pragma GCC diagnostic.
37822         * lib/uinttostr.c (inttype_is_unsigned): Define.
37823         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
37824
37825 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
37826
37827         stat: fix compilation on AIX
37828         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
37829         only see struct stat64.
37830
37831 2009-10-30  Eric Blake  <ebb9@byu.net>
37832
37833         exclude: make more robust
37834         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
37835         rather than masking a coding bug.
37836         Suggested by Bruno Haible.
37837
37838 2009-10-30  Jim Meyering  <meyering@redhat.com>
37839
37840         perl scripts: remove #!/usr/bin/perl in favor of more portable...
37841         Rather than putting #!/usr/bin/perl on the first line,
37842         start with a variant of what's recommended by "man perlrun" that
37843         invokes the first "perl" program from your shell's search path.
37844         * build-aux/gitlog-to-changelog: Replace #!... as above.
37845         Add a "Local Variables" perl mode setting.
37846         Prompted by a patch from Ludovic Courtès.
37847         Improved by Eric Blake.
37848         * build-aux/useless-if-before-free: Likewise.
37849         * build-aux/announce-gen: Likewise.
37850         * build-aux/update-copyright: Likewise.
37851
37852 2009-10-29  Eric Blake  <ebb9@byu.net>
37853
37854         filenamecat-lgpl: adjust clients
37855         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
37856         filenamecat.
37857         * modules/renameat (Depends-on): Likewise.
37858
37859         filenamecat: split into filenamecat-lgpl
37860         * modules/filenamecat-lgpl: New module.
37861         * modules/filenamecat (Files): Move library-safe files into
37862         filenamecat-lgpl.
37863         (Depends-on): Add filenamecat-lgpl.
37864         (configure.ac): Declare witness.
37865         * lib/filenamecat.h (file_name_concat): Only declare when using
37866         GPL module.
37867         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
37868         Move...
37869         * lib/filenamecat-lgpl.c: ...into new file.
37870         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
37871         (gl_FILE_NAME_CONCAT): Use it.
37872         * MODULES.html.sh (File system functions): Mention new module.
37873
37874         argp: avoid memory leak
37875         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
37876         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
37877         base_name, since the latter malloc()s and can call exit().
37878         Leak introduced 2006-07-03.
37879
37880         dirname-lgpl: adjust clients that don't need full dirname
37881         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
37882         * modules/filenamecat (Depends-on): Likewise.
37883         * modules/linkat (Depends-on): Likewise.
37884         * modules/mkancesdirs (Depends-on): Likewise.
37885         * modules/mkdir (Depends-on): Likewise.
37886         * modules/openat (Depends-on): Likewise.
37887         * modules/savewd (Depends-on): Likewise.
37888         * modules/rename (Depends-on): Likewise.
37889         (License): Relax license.
37890         * modules/mkdir-tests (Depends-on): Drop progname.
37891         (Makefile.am): Delete unneeded LDADD.
37892         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
37893
37894         dirname: split into dirname-lgpl
37895         * modules/dirname-lgpl: New module.
37896         * modules/dirname (Files): Move library-safe files into
37897         dirname-lgpl.
37898         (Depends-on): Add dirname-lgpl.
37899         (configure.ac): Declare witness.
37900         * modules/double-slash-root (License): Relax license.
37901         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
37902         module.
37903         * lib/dirname.c (dir_len, mdir_name): Move...
37904         * lib/dirname-lgpl.c: ...into new file.
37905         * lib/basename.c (last_component, base_len): Move...
37906         * lib/basename-lgpl.c: ...into new file.
37907         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
37908         (gl_DIRNAME): Use it.
37909         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
37910         Mention new module.
37911         * modules/dirname-tests (Depends-on): Add progname.
37912         * tests/test-dirname.c (program_name): Delete.
37913
37914         mkdir: make safe for libraries
37915         * modules/mkdir (Depends-on): Drop xalloc.
37916         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
37917         exit.
37918
37919         tests: avoid some compiler warnings
37920         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
37921         literals.
37922         * tests/test-memchr.c (main): Avoid type mismatch.
37923         * tests/test-arpa_inet.c (main): Avoid unused parameters.
37924         * tests/test-base64.c (main): Likewise.
37925         * tests/test-getdelim.c (main): Likewise.
37926         * tests/test-gethostname.c (main): Likewise.
37927         * tests/test-getline.c (main): Likewise.
37928         * tests/test-netinet_in.c (main): Likewise.
37929         * tests/test-select.c (open_server_socket, main): Likewise.
37930         * tests/test-select-stdin.c (main): Likewise.
37931         * tests/test-sockets.c (main): Likewise.
37932         * tests/test-strsignal.c (main): Likewise.
37933         * tests/test-sys_select.c (main): Likewise.
37934         * tests/test-sys_socket.c (main): Likewise.
37935         * tests/test-u64.c (main): Likewise.
37936         * tests/test-xfprintf-posix.c (main): Likewise.
37937         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
37938
37939         sockets: avoid compiler warning
37940         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
37941
37942         maint: detect usage(1) and other suspicious exits
37943         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
37944
37945 2009-10-29  Jim Meyering  <meyering@redhat.com>
37946
37947         timespec: long-to-int truncation could make timespec_cmp malfunction
37948         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
37949         a multiple of 2^32 nanoseconds as no difference.
37950
37951 2009-10-28  Jim Meyering  <meyering@redhat.com>
37952
37953         fprintftime: wrap macro code argument in "do {...} while(0)"
37954         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
37955         cpy macro must be a statement that can be followed by a semicolon.
37956         Now that the else clause contains a comment and is hence longer
37957         than one line, I require curly braces.  That in turn requires
37958         that we wrap this code block in the standard do...while(0).
37959
37960         fprintftime: remove stray semicolon from previous change
37961         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
37962
37963         fprintftime: avoid a warning about ignored fwrite return value
37964         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
37965         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
37966         that is unsafe.
37967         * modules/fprintftime (Depends-on): Add ignore-value.
37968
37969         exclude: avoid an unwarranted warning
37970         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
37971
37972 2009-10-27  Eric Blake  <ebb9@byu.net>
37973
37974         fseek: avoid compilation failure when fflush is replaced
37975         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
37976         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
37977         module is in use.
37978         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
37979         module is not in use; since REPLACE_FSEEK worked otherwise.
37980         (GNULIB_FTELLO): Likewise for ftell.
37981         Reported by Ian Beckwith and others.
37982
37983 2009-10-27  Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
37986         Reported by Jim Meyering.
37987
37988 2009-10-27  Jim Meyering  <jim@meyering.net>
37989             Bruno Haible  <bruno@clisp.org>
37990
37991         Avoid warning despite dropping the return value of fwrite.
37992         * lib/unicodeio.c: Include ignore-value.h.
37993         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37994         * modules/unicodeio (Depends-on): Add ignore-value.
37995
37996 2009-10-26  Eric Blake  <ebb9@byu.net>
37997
37998         areadlinkat: fix fallback path
37999         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38000         pointer and zero.
38001
38002 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38003
38004         Use a better IO block size for modern systems
38005         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38006         * lib/md2.c: Likewise.
38007         * lib/md4.c: Likewise.
38008         * lib/md5.c: Likewise.
38009         * lib/sha1.c: Likewise.
38010         * lib/sha256.c: Likewise.
38011         * lib/sha512.c: Likewise.
38012
38013 2009-10-22  Eric Blake  <ebb9@byu.net>
38014
38015         tests: avoid several compiler warnings
38016         * tests/test-getcwd.c (main): Avoid buffer underflow.
38017         * tests/test-getdate.c (main): String literals are not safe with
38018         putenv, so use setenv.  Declare unused argument.
38019         * modules/getdate-tests (Depends-on): Add setenv.
38020         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38021         problems with string literals in char *.
38022         * tests/test-hash.c (main): Avoid shadowing declaration.
38023         (insert_new): Treat string literals as char const *.
38024         * tests/test-getopt.h (test_getopt): Likewise.
38025         (getopt_loop): Alter types to minimize casting elsewhere.
38026         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38027         (test_getopt_long_posix): Likewise.
38028         (do_getopt_long): Add wrapper to minimize casting.
38029         * tests/test-atexit.c (clear_temp_file): Use void.
38030         * tests/test-areadlink-with-size.c (main): Declare unused
38031         arguments.
38032         * tests/test-areadlink.c (main): Likewise.
38033         * tests/test-areadlinkat-with-size.c (main): Likewise.
38034         * tests/test-areadlinkat.c (main): Likewise.
38035         * tests/test-canonicalize-lgpl.c (main): Likewise.
38036         * tests/test-canonicalize.c (main): Likewise.
38037         * tests/test-dirent-safer.c (main): Likewise.
38038         * tests/test-dirname.c (main): Likewise.
38039         * tests/test-dup2.c (main): Likewise.
38040         * tests/test-fchdir.c (main): Likewise.
38041         * tests/test-fcntl-h.c (main): Likewise.
38042         * tests/test-fcntl-safer.c (main): Likewise.
38043         * tests/test-fdopendir.c (main): Likewise.
38044         * tests/test-fdutimensat.c (main): Likewise.
38045         * tests/test-fflush.c (main): Likewise.
38046         * tests/test-filenamecat.c (main): Likewise.
38047         * tests/test-filevercmp.c (main): Likewise.
38048         * tests/test-fopen-safer.c (main): Likewise.
38049         * tests/test-fopen.c (main): Likewise.
38050         * tests/test-fpending.c (main): Likewise.
38051         * tests/test-fpurge.c (main): Likewise.
38052         * tests/test-freading.c (main): Likewise.
38053         * tests/test-fstatat.c (main): Likewise.
38054         * tests/test-fsync.c (main): Likewise.
38055         * tests/test-futimens.c (main): Likewise.
38056         * tests/test-getndelim2.c (main): Likewise.
38057         * tests/test-gettimeofday.c (main): Likewise.
38058         * tests/test-getopt.c (main): Likewise.
38059         * tests/test-i-ring.c (main): Likewise.
38060         * tests/test-inttypes.c (main): Likewise.
38061         * tests/test-link.c (main): Likewise.
38062         * tests/test-lstat.c (main): Likewise.
38063         * tests/test-math.c (main): Likewise.
38064         * tests/test-md5.c (main): Likewise.
38065         * tests/test-memchr2.c (main): Likewise.
38066         * tests/test-memrchr.c (main): Likewise.
38067         * tests/test-mkdir.c (main): Likewise.
38068         * tests/test-mkdirat.c (main): Likewise.
38069         * tests/test-mkfifoat.c (main): Likewise.
38070         * tests/test-open.c (main): Likewise.
38071         * tests/test-openat-safer.c (main): Likewise.
38072         * tests/test-openat.c (main): Likewise.
38073         * tests/test-quotearg.c (main): Likewise.
38074         * tests/test-rawmemchr.c (main): Likewise.
38075         * tests/test-readlink.c (main): Likewise.
38076         * tests/test-remove.c (main): Likewise.
38077         * tests/test-rename.c (main): Likewise.
38078         * tests/test-renameat.c (main): Likewise.
38079         * tests/test-rmdir.c (main): Likewise.
38080         * tests/test-sha1.c (main): Likewise.
38081         * tests/test-signal.c (main): Likewise.
38082         * tests/test-sigaction.c (main): Likewise.
38083         * tests/test-stat.c (main): Likewise.
38084         * tests/test-stat-time.c (main): Likewise.
38085         * tests/test-stddef.c (main): Likewise.
38086         * tests/test-stdint.c (main): Likewise.
38087         * tests/test-stdio.c (main): Likewise.
38088         * tests/test-stdlib.c (main): Likewise.
38089         * tests/test-strchrnul.c (main): Likewise.
38090         * tests/test-strerror.c (main): Likewise.
38091         * tests/test-string.c (main): Likewise.
38092         * tests/test-strtod.c (main): Likewise.
38093         * tests/test-strverscmp.c (main): Likewise.
38094         * tests/test-symlink.c (main): Likewise.
38095         * tests/test-symlinkat.c (main): Likewise.
38096         * tests/test-sys_stat.c (main): Likewise.
38097         * tests/test-sys_time.c (main): Likewise.
38098         * tests/test-time.c (main): Likewise.
38099         * tests/test-unistd.c (main): Likewise.
38100         * tests/test-unlink.c (main): Likewise.
38101         * tests/test-unlinkat.c (main): Likewise.
38102         * tests/test-utimens.c (main): Likewise.
38103         * tests/test-utimensat.c (main): Likewise.
38104         * tests/test-version-etc.c (main): Likewise.
38105         * tests/test-wchar.c (main): Likewise.
38106         * tests/test-wctype.c (main): Likewise.
38107         * tests/test-xprintf-posix.c (main): Likewise.
38108         * tests/test-posixtm.c (main): Likewise.
38109         (STREQ): Delete unused macro.
38110         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38111         shadowed variables.
38112         * tests/test-memchr.c (main): Likewise.
38113
38114 2009-10-21  Eric Blake  <ebb9@byu.net>
38115
38116         areadlinkat: avoid failure on older glibc
38117         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38118         rather than mis-comparing 0 against FUNC_RESULT of char*.
38119
38120 2009-10-21  Bruno Haible  <bruno@clisp.org>
38121
38122         * modules/stpncpy (License): Relicense under LGPLv2+.
38123         Reported by David Lutterkort <lutter@redhat.com>.
38124
38125 2009-10-20  Eric Blake  <ebb9@byu.net>
38126
38127         utimensat: work around Solaris 9 bug
38128         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38129         has trailing slash bugs.
38130         * tests/test-lutimens.h (test_lutimens): Enhance test.
38131         * tests/test-utimens.h (test_utimens): Likewise.
38132         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38133         * doc/posix-functions/utimes.texi (utimes): Likewise.
38134         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38135         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38136         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38137         * doc/posix-functions/futimens.texi (futimens): Likewise.
38138
38139         fdutimensat: new module
38140         * modules/fdutimensat: New file.
38141         * lib/fdutimensat.c (fdutimensat): Likewise.
38142         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38143         * MODULES.html.sh (File system functions): Mention module.
38144         * modules/fdutimensat-tests: New test.
38145         * tests/test-fdutimensat.c: Likewise.
38146
38147         doc: regenerate INSTALL
38148         * doc/INSTALL: Reflect recent autoconf update.
38149         * doc/INSTALL.ISO: Likewise.
38150         * doc/INSTALL.UTF-8: Likewise.
38151
38152 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38153
38154         acl: warn if ACL support is not detected
38155         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38156
38157 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38158
38159         * lib/nproc.h: Add extern "C" block for C++.
38160
38161 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38162             Bruno Haible  <bruno@clisp.org>
38163
38164         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38165         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38166         * doc/posix-functions/isalpha.texi: Likewise.
38167         * doc/posix-functions/isblank.texi: Likewise.
38168         * doc/posix-functions/iscntrl.texi: Likewise.
38169         * doc/posix-functions/isdigit.texi: Likewise.
38170         * doc/posix-functions/isgraph.texi: Likewise.
38171         * doc/posix-functions/islower.texi: Likewise.
38172         * doc/posix-functions/isprint.texi: Likewise.
38173         * doc/posix-functions/ispunct.texi: Likewise.
38174         * doc/posix-functions/isspace.texi: Likewise.
38175         * doc/posix-functions/isupper.texi: Likewise.
38176         * doc/posix-functions/isxdigit.texi: Likewise.
38177
38178 2009-10-18  Bruno Haible  <bruno@clisp.org>
38179
38180         Tests for module 'isblank'.
38181         * modules/isblank-tests: New file.
38182         * tests/test-isblank.c: New file.
38183
38184         New module 'isblank'.
38185         * lib/isblank.c: New file.
38186         * m4/isblank.m4: New file.
38187         * modules/isblank: New file.
38188         * doc/posix-functions/isblank.texi: Mention the new module.
38189
38190 2009-10-18  Bruno Haible  <bruno@clisp.org>
38191
38192         New module 'ctype'.
38193         * lib/ctype.in.h: New file.
38194         * m4/ctype.m4: New file.
38195         * modules/ctype: New file.
38196         * doc/posix-headers/ctype.texi: Mention the new module.
38197
38198 2009-10-18  Jim Meyering  <meyering@redhat.com>
38199
38200         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38201         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38202         right after its initialization, rather than farther down.
38203         Keeping these in close proximity makes it easier to ensure
38204         that each such variable is initialized.  E.g.,
38205
38206             LIB_CLOCK_GETTIME=
38207             AC_SUBST([LIB_CLOCK_GETTIME])
38208
38209         This change also increments these serial numbers.
38210         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38211         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38212         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38213
38214 2009-10-18  Bruno Haible  <bruno@clisp.org>
38215
38216         Don't let environment variables perturb build.
38217         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38218         (gl_PREREQ_GETHRXTIME): ... not here.
38219
38220 2009-10-18  Bruno Haible  <bruno@clisp.org>
38221
38222         Avoid symlink attack in localcharset module.
38223         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38224         (O_NOFOLLOW): Define fallback.
38225         (get_charset_aliases): Don't open the file if it is a symbolic link.
38226         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38227         gl_FCNTL_H.
38228         (gl_FCNTL_H): Require it.
38229         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38230         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38231         Reported by Fergal Glynn <fglynn@veracode.com>.
38232
38233 2009-10-18  Bruno Haible  <bruno@clisp.org>
38234
38235         Implement nproc for mingw.
38236         * lib/nproc.c: Include <windows.h>
38237         (num_processors): On native Windows platforms, try GetSystemInfo.
38238
38239 2009-10-18  Bruno Haible  <bruno@clisp.org>
38240
38241         Implement nproc for IRIX.
38242         * lib/nproc.c: Include <sys/sysmp.h>.
38243         (num_processors): On IRIX systems, try sysmp.
38244         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38245
38246 2009-10-18  Bruno Haible  <bruno@clisp.org>
38247
38248         Implement nproc for HP-UX.
38249         * lib/nproc.c: Include <sys/pstat.h>
38250         (num_processors): On HP-UX systems, try pstat_getdynamic.
38251         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38252         pstat_getdynamic.
38253
38254 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38255             Bruno Haible  <bruno@clisp.org>
38256
38257         Implement nproc for NetBSD, OpenBSD.
38258         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38259         (ARRAY_SIZE): New macro.
38260         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38261         * m4/nproc.m4: New file.
38262         * modules/nproc (Files): Add m4/nproc.m4.
38263         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38264         (Makefile.am): Instead, augment lib_SOURCES.
38265
38266 2009-10-18  Bruno Haible  <bruno@clisp.org>
38267
38268         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38269         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38270         sys/param.h.
38271
38272 2009-10-16  Eric Blake  <ebb9@byu.net>
38273
38274         utimensat: new module
38275         * modules/utimensat: New file.
38276         * lib/utimensat.c (utimensat): Likewise.
38277         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38278         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38279         so we can work around Linux bugs.
38280         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38281         * modules/sys_stat (Makefile.am): Substitute them.
38282         * lib/sys_stat.in.h (utimensat): Declare it.
38283         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38284         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38285         * modules/utimensat-tests: New test.
38286         * tests/test-utimensat.c: Likewise.
38287
38288         utimens: let lutimens work on non-symlinks
38289         * lib/utimens.c (lutimens): Fall back to utimens rather than
38290         failing with ENOSYS, when file is not a symlink.
38291         (utimens): Reduce redirection.
38292         * tests/test-lutimens.h (test_lutimens): Update test to cover
38293         non-symlinks.
38294         * tests/test-utimens.h (test_utimens): Update test to cover
38295         symlinks.
38296         * tests/test-utimens.c (main): Update caller.
38297
38298         utimens: cache whether utimensat syscall works
38299         * lib/utimens.c (utimensat_works_really): New cache variable.
38300         (fdutimens, lutimens): Use it to avoid failing syscall.
38301
38302         test-stat-time, test-utimens: improve portability
38303         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38304         ext4 on alpha, and for cygwin.
38305         * tests/test-utimens-common.h: New file.
38306         (nap): Factor delays into single function.
38307         * tests/test-lutimens.h (test_lutimens): Use new header.
38308         * tests/test-futimens.h (test_futimens): Likewise.
38309         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38310         timestamps to occur from same machine, as was done previously for
38311         test_utimens.
38312         * modules/utimens-tests (Files): Ship new file.
38313         * modules/futimens-tests (Files): Likewise.
38314         Reported in part by Jim Meyering.
38315
38316         sys_stat: sort replacement declarations
38317         * lib/sys_stat.in.h: Sort declarations.
38318         * lib/futimens.c (futimens): Fix typo.
38319
38320 2009-10-15  Jim Meyering  <meyering@redhat.com>
38321
38322         don't let environment settings perturb build
38323         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38324         could cause a configure-time and/or build-time malfunction.
38325         Typically, a configure-time function-in-library test is performed
38326         via code like this:
38327
38328           LIB_VAR=
38329           AC_SUBST([LIB_VAR])
38330           prefix_saved_LIBS=$LIBS
38331             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38332                        [test "$ac_cv_search_FUNC" = "none required" ||
38333                         LIB_VAR=$ac_cv_search_FUNC])
38334           LIBS=$prefix_saved_LIBS
38335
38336         However, in each of the files affected by this change, the LIB_VAR=
38337         initialization was omitted.  Thus, when set in the environment, its
38338         value would propagate into generated Makefiles when FUNC is not found
38339         in LIB_NAME.
38340         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38341         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38342         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38343
38344 2009-10-14  Eric Blake  <ebb9@byu.net>
38345
38346         fchdir: avoid infinite recursion in mingw
38347         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38348         recursing.
38349
38350         test-stat-time: port to mingw
38351         * tests/test-stat-time.c (force_unlink): Return a value.
38352         (test_ctime) [W32]: Fix compilation error.
38353         (nap): Don't call usleep with too large an argument.  Use
38354         force_unlink.
38355         * doc/pastposix-functions/usleep.texi (usleep): Document the
38356         portability issue.
38357
38358 2009-10-13  Jim Meyering  <meyering@redhat.com>
38359
38360         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38361         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38362         * modules/pipe-filter-ii: Likewise.
38363         * modules/sys_socket-tests: Likewise.
38364         * modules/tsearch-tests: Likewise.
38365         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38366         (check): Depend on it.
38367
38368 2009-10-12  Eric Blake  <ebb9@byu.net>
38369
38370         utimens-tests: port to NFS file systems
38371         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38372         comparisons to avoid spurious failures from timestamp drift
38373         between NFS machines.
38374
38375 2009-10-12  Eric Blake  <ebb9@byu.net>
38376
38377         stat-time-tests: minor cleanups
38378         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38379         * tests/test-stat-time.c (nap): Separate assignment from call.
38380         Suggested by Paolo Bonzini and Bruno Haible.
38381
38382         sys_stat: guarantee struct timespec
38383         * lib/sys_stat.in.h (includes): Always include <time.h>
38384         * modules/sys_stat (Depends-on): Add time.
38385         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38386         mode_t permission values.
38387         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38388         get at subsecond timestamps.
38389
38390 2009-10-10  Eric Blake  <ebb9@byu.net>
38391
38392         futimens: new module
38393         * modules/futimens: New file.
38394         * lib/futimens.c (futimens): Likewise.
38395         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38396         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38397         we can work around Linux bugs.
38398         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38399         * modules/sys_stat (Makefile.am): Substitute them.
38400         * lib/sys_stat.in.h (futimens): Declare it.
38401         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38402         * doc/posix-functions/futimens.texi (futimens): Likewise.
38403         * modules/futimens-tests: New test.
38404         * tests/test-futimens.c: Likewise.
38405
38406         utimens: introduce fdutimens
38407         * lib/utimens.h (fdutimens): New prototype.
38408         * lib/utimens.c (gl_futimens): Move guts...
38409         (fdutimens): ...to new interface.
38410         * tests/test-utimens.c (do_fdutimens): Use it.
38411
38412         utimens: add UTIME_NOW and UTIME_OMIT support
38413         * lib/utimens.c (validate_timespec, update_timespec): New helper
38414         functions.
38415         (gl_futimens, lutimens): Use them.
38416         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38417         stdbool, sys_stat.
38418         (Link): Mention resulting library dependency.
38419         * modules/utimecmp (Link): Likewise.
38420         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38421         (Makefile.am): Pick up library dependency.
38422         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38423         definition.
38424         * tests/test-sys_stat.c: Test the definitions.
38425         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38426         * NEWS: Document library dependency.
38427
38428         utimecmp: support symlink timestamps
38429         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38430         hashing when possible.  Use pathconf when available.
38431         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38432         * modules/utimecmp (Depends-on): Add lstat.
38433
38434         utimens: add lutimens interface
38435         * lib/utimens.c (lutimens): New function.
38436         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
38437         * lib/utimens.h (lutimens): Declare new interface.
38438         * tests/test-utimens.c (main): Enhance test.
38439         * tests/test-lutimens.h (test_lutimens): New file.
38440         * modules/utimens-tests (Files): Distribute it.
38441         (Depends-on): Add symlink.
38442         (configure.ac): Check for usleep.
38443
38444         utimens: validate futimens usage
38445         * lib/utimens.c (gl_futimens): Require valid fd up front, using
38446         fewer syscalls on failure later on.  Avoid compiler warning on
38447         mingw.
38448         * modules/utimens (Depends-on): Add dup2.
38449
38450         utimens: add test
38451         * modules/utimens-tests: New test.
38452         * tests/test-utimens.h: New file.
38453         * tests/test-futimens.h: Likewise.
38454         * tests/test-utimens.c: Likewise.
38455
38456         doc: mention timestamp portability issues
38457         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
38458         instead.
38459         * doc/posix-functions/utime.texi (utime): Likewise.
38460         * doc/posix-functions/utimes.texi (utimes): Likewise.
38461         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
38462         instead.
38463         * doc/posix-functions/futimens.texi (futimens): Mention utimens
38464         module.
38465         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38466         Mention weakness with symlink timestamps.
38467         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
38468         to utimensat/futimens instead.
38469         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
38470
38471         test-dup2: enhance test
38472         * tests/test-dup2.c (main): Also check AT_FDCWD.
38473
38474         test-stat-time: avoid more spurious failures
38475         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
38476         xfs; and avoid race if the two timestamps cross quantization edge.
38477
38478         relocatable: prefer 'file system' over 'filesystem'
38479         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
38480         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
38481         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
38482         * doc/relocatable.texi (Enabling Relocatability): Likewise.
38483         * lib/relocatable.c (compute_curr_prefix): Likewise.
38484
38485 2009-10-10  Jim Meyering  <meyering@redhat.com>
38486
38487         stat-time-tests: check for the usleep function
38488         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
38489
38490 2009-10-10  Bruno Haible  <bruno@clisp.org>
38491
38492         * modules/xnanosleep: Put the Link section after the Include section.
38493
38494 2009-10-09  Eric Blake  <ebb9@byu.net>
38495
38496         dup2: work around FreeBSD 6.1 bug
38497         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
38498         * doc/posix-functions/dup2.texi (dup2): Document it.
38499         Reported by Nelson H. F. Beebe and Jim Meyering.
38500
38501         test-stat-time: port to buggy NFS clients
38502         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
38503         (test_ctime): Also skip test if mtime and ctime are skewed.
38504
38505         maint: prefer 'file system' over 'filesystem'
38506         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
38507         * doc/posix-functions/lstat.texi (lstat): Likewise.
38508         * lib/file-has-acl.c (file_has_acl): Likewise.
38509         * lib/fwriteerror.c [TEST]: Likewise.
38510         * tests/test-areadlink.h (test_areadlink): Likewise.
38511         * tests/test-areadlinkat-with-size.c (main): Likewise.
38512         * tests/test-areadlinkat.c (main): Likewise.
38513         * tests/test-canonicalize-lgpl.c (main): Likewise.
38514         * tests/test-canonicalize.c (main): Likewise.
38515         * tests/test-fstatat.c (main): Likewise.
38516         * tests/test-linkat.c (main): Likewise.
38517         * tests/test-lstat.h (test_lstat_func): Likewise.
38518         * tests/test-mkdir.h (test_mkdir): Likewise.
38519         * tests/test-readlink.h (test_readlink): Likewise.
38520         * tests/test-remove.c (main): Likewise.
38521         * tests/test-rename.h (test_rename): Likewise.
38522         * tests/test-renameat.c (main): Likewise.
38523         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38524         * tests/test-symlink.h (test_symlink): Likewise.
38525         * tests/test-symlinkat.c (main): Likewise.
38526         * tests/test-unlink.h (test_unlink_func): Likewise.
38527         * tests/test-unlinkat.c (main): Likewise.
38528
38529         maint: make realtime library usage explicit
38530         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
38531         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
38532         * modules/settime (Link): Likewise.
38533         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
38534
38535         test-stat-time: speed up execution
38536         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
38537         warning on mingw.
38538         (nap): New helper function.
38539         (prepare_test): Use it to reduce sleep time.
38540         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
38541         execution.
38542         * modules/stat-time-tests (configure.ac): Check for usleep.
38543
38544 2009-10-09  Jim Meyering  <meyering@redhat.com>
38545
38546         selinux-h: always use getfilecon wrappers
38547         * lib/getfilecon.c: New file.
38548         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
38549         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
38550         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
38551         (fgetfilecon): Provide a stub.
38552         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
38553         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
38554         file unconditionally.
38555         When <selinux/selinux.h> is found, arrange to use wrappers.
38556         * modules/selinux-h (Files): Add getfilecon.c.
38557         (Makefile.am): Substitute include-next-related bits
38558         into the now-always-generated selinux/selinux.h file.
38559         * doc/glibc-functions/lgetfilecon.texi: New file.
38560         * doc/glibc-functions/fgetfilecon.texi: New file.
38561         * doc/glibc-functions/getfilecon.texi: New file.
38562         * doc/glibc-functions/getfilecon-desc.texi: New file.
38563         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
38564         which to pull in the new files.
38565         * MODULES.html.sh (Misc): Add selinux-h.
38566
38567 2009-10-08  Jim Meyering  <meyering@redhat.com>
38568
38569         unistd: fix comment typo
38570         * lib/unistd.in.h (euidaccess): Fix a comment typo.
38571
38572 2009-10-08  Eric Blake  <ebb9@byu.net>
38573
38574         areadlink: use SIZE_MAX consistently
38575         * modules/areadlink (Depends-on): Add stdint.
38576         * modules/areadlink-with-size (Depends-on): Likewise.
38577         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
38578         gives NULL; drop sys/types, since unistd gives size_t; and add
38579         stdint for SIZE_MAX.
38580         (SIZE_MAX): Rely on headers.
38581         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
38582         and add stdint.
38583         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
38584         (SIZE_MAX): Likewise.
38585         (INITIAL_BUF_SIZE): Turn into enum.
38586         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
38587
38588 2009-10-08  Jim Meyering  <meyering@redhat.com>
38589
38590         areadlinkat: avoid compilation failure
38591         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
38592         Fix typo in comment.
38593
38594 2009-10-07  Eric Blake  <ebb9@byu.net>
38595
38596         areadlinkat-with-size: new module
38597         * modules/areadlinkat-with-size: New module.
38598         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
38599         * lib/areadlink.h (areadlinkat): Declare it.
38600         * MODULES.html.sh (File system functions): Mention it.
38601         * modules/areadlinkat-with-size-tests: New test.
38602         * tests/test-areadlinkat-with-size.c: New file.
38603
38604         xreadlinkat: new module
38605         * modules/xreadlinkat: New module.
38606         * lib/xreadlinkat.c (xreadlinkat): New file.
38607         * lib/xreadlink.h (xreadlinkat): Declare it.
38608         * MODULES.html.sh (File system functions): Mention it.
38609
38610         areadlinkat: new module
38611         * lib/at-func.c (FUNC_FAIL): New define.
38612         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
38613         * modules/areadlinkat: New module.
38614         * lib/linkat.c (areadlinkat): Move...
38615         * lib/areadlinkat.c (areadlinkat): ...to new file.
38616         * lib/areadlink.h (areadlinkat): Declare it.
38617         * modules/linkat (Depends-on): Add areadlinkat.
38618         * MODULES.html.sh (File system functions): Mention it.
38619         * modules/areadlinkat-tests: New test.
38620         * tests/test-areadlinkat.c: New file.
38621
38622         areadlink, areadlink-with-size: add tests
38623         * modules/areadlink-tests: New test.
38624         * modules/areadlink-with-size-tests: Likewise.
38625         * tests/test-areadlink.h: New file.
38626         * tests/test-areadlink.c: Likewise.
38627         * tests/test-areadlink-with-size.c: Likewise.
38628
38629         maint: minor cleanups
38630         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
38631         _UNUSED_PARAMETER_ instead.
38632         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
38633         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
38634         * modules/linkat-tests (Files): Distribute test-link.h.
38635
38636         openat, utimens: whitespace cleanup
38637         * lib/openat.c: Prefer space throughout, rather than mix of 8
38638         spaces vs. tabs.
38639         * lib/at-func.c: Likewise.
38640         * lib/utimens.c: Likewise.
38641
38642         openat: avoid using wrong fd
38643         * lib/openat.c (openat_permissive): Reject user's fd if saving the
38644         working directory chooses same fd.
38645         * lib/at-func.c (AT_FUNC_NAME): Likewise.
38646
38647         mkdir, mkdirat: fix cygwin 1.5.x bug
38648         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
38649         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
38650         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
38651         bug.
38652         (gl_PREREQ_MKDIR): Delete unused macro.
38653         * modules/mkdir (Files): Track file rename.
38654         (configure.ac): Update macro name.
38655         * modules/openat (Depends-on): Add mkdir.
38656         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
38657
38658         mkdir, mkdirat: add tests
38659         * modules/mkdir-tests: New test.
38660         * tests/test-mkdir.h: New file.
38661         * tests/test-mkdir.c: Likewise.
38662         * tests/test-mkdirat.c: Likewise.
38663         * modules/openat-tests (Files): Add new files.
38664         (Makefile.am): Run new test.
38665
38666 2009-10-06  Eric Blake  <ebb9@byu.net>
38667
38668         doc: tweak *at function documentation
38669         * doc/posix-functions/faccessat.texi (faccessat): Mention
38670         known issue with replacement.
38671         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
38672         * doc/posix-functions/linkat.texi (linkat): Likewise.
38673         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
38674         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
38675         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
38676         * doc/posix-functions/renameat.texi (renameat): Likewise.
38677         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38678
38679         openat: fix GNU/Hurd bug in unlinkat
38680         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
38681         broken.
38682         * doc/posix-functions/unlink.texi (unlink): Document this.
38683         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
38684
38685         fdopendir: fix GNU/Hurd bug
38686         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
38687         allowing non-directory fds.
38688         * lib/fdopendir.c (rpl_fdopendir): Work around it.
38689         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
38690         * modules/dirent (Makefile.am): Substitute it.
38691         * lib/dirent.in.h (fdopendir): Declare replacement.
38692         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
38693         * tests/test-fdopendir.c (main): Test something other than
38694         /dev/null, since on Hurd that behaves like a directory.
38695
38696         test-symlink: port to GNU/Hurd
38697         * tests/test-symlink.h (test_symlink): Relax expected errno.
38698
38699         doc: tweak more cygwin information
38700         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
38701         now compatible with glibc.
38702         * doc/posix-functions/getopt.texi (getopt): Likewise.
38703
38704         getopt-gnu: add another test
38705         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
38706         guarantee behavior relied on by m4.
38707         * tests/test-getopt.c (main): Use it.
38708         * modules/getopt-posix-tests (Depends-on): Add setenv.
38709         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
38710
38711         getopt: fix compilation on darwin
38712         * lib/getopt.in.h (includes): Leave breadcrumbs during system
38713         include.
38714         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
38715         Reported by Ludovic Courtès.
38716
38717 2009-10-06  Bruno Haible  <bruno@clisp.org>
38718
38719         * modules/size_max (Description): Discourage its use.
38720         Reported by Simon Josefsson.
38721
38722 2009-10-06  Jim Meyering  <meyering@redhat.com>
38723
38724         linkat: avoid compilation failure
38725         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
38726
38727 2009-10-05  Eric Blake  <ebb9@byu.net>
38728
38729         linkat: support Linux 2.6.17
38730         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
38731         linkat on Linux, but allow cache variable override.
38732         * lib/linkat.c (rpl_linkat): Define override.
38733         * modules/linkat (Depends-on): Add symlinkat.
38734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
38735         * modules/unistd (Makefile.am): Substitute it.
38736         * lib/unistd.in.h (linkat): Declare replacement.
38737         Reported by Pádraig Brady.
38738
38739         quotearg: port test to systems with C.UTF-8 locale
38740         * tests/test-quotearg.c (struct result_strings): Add another
38741         member, differentiating between C.ASCII and C.UTF-8 handling.
38742         (compare_strings): Add parameter.
38743         (main): Adjust all callers.
38744
38745         getopt: avoid clash with FreeBSD _getopt_internal
38746         * lib/getopt.in.h (_getopt_internal): Override the name.
38747         * lib/getopt_int.h (includes): Pick up any overrides.
38748         Reported by Reuben Thomas.
38749
38750         hash: allow C89 compilation
38751         * lib/hash.c (check_tuning): Move declaration before statement.
38752         Reported by Reuben Thomas.
38753
38754 2009-10-05  Karl Berry  <karl@gnu.org>
38755
38756         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
38757
38758 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
38759             Bruno Haible  <bruno@clisp.org>
38760
38761         * lib/uname.c (uname): Use a table-driven algorithm to compute
38762         Windows NT versions.
38763
38764 2009-10-04  Bruno Haible  <bruno@clisp.org>
38765
38766         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
38767         program_invocation_short_name.
38768         * modules/progname (configure.ac): Test for presence of
38769         program_invocation_short_name.
38770         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38771
38772 2009-10-04  Bruno Haible  <bruno@clisp.org>
38773
38774         * lib/progname.c (set_program_name): Fix comment.
38775         Reported by Jim Meyering.
38776
38777 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38778             Bruno Haible  <bruno@clisp.org>
38779
38780         * lib/uname.c: Include <string.h>.
38781         (uname): Do only one call to GetVersionEx in the common case.
38782
38783 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
38784             Bruno Haible  <bruno@clisp.org>
38785
38786         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
38787         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
38788         (uname): Add support for Windows CE and various non-x86 CPU types.
38789
38790 2009-10-03  Bruno Haible  <bruno@clisp.org>
38791
38792         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
38793         invocation to tests/configure.ac.
38794         Reported by Ian Beckwith <ianb@erislabs.net>.
38795
38796 2009-10-02  Eric Blake  <ebb9@byu.net>
38797
38798         fchdir: avoid compiler warning
38799         * lib/fchdir.c (canonicalize_file_name)
38800         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
38801
38802         test-open: support mingw errno values
38803         * tests/test-open.h (test_open): Relax test.
38804         * tests/test-fopen.h (test_fopen): Likewise.
38805         * tests/test-openat-safer.c (main): Likewise.
38806
38807         open: fix opening directory on mingw
38808         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
38809
38810         test-open: on GNU/Hurd, /dev/null is a directory
38811         * tests/test-fopen.h (main): Rename...
38812         (test_fopen): ...to this.  Use a guaranteed non-directory when
38813         confirming open behavior on trailing slash.
38814         * tests/test-openat-safer.c (main): Likewise.
38815         * tests/test-open.h (main): Likewise....
38816         (test_open): ...to this.
38817         * tests/test-fopen.c (main): Adjust caller.
38818         * tests/test-fopen-safer.c (main): Likewise.
38819         * tests/test-open.c (main): Likewise.
38820         * tests/test-fcntl-safer.c (main): Likewise.
38821         Reported by Samuel Thibault.
38822
38823         rename, fchdir: don't ignore chdir failure
38824         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
38825         * lib/rename.c (rpl_rename) [W32]: Likewise.
38826         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
38827         an empty destination directory if source cannot be renamed,
38828         although there is still possibility for failure.
38829         * doc/posix-functions/rename.texi (rename): Document the race.
38830         Reported by Jim Meyering.
38831
38832         maint: cleanup whitespace in recent commits
38833         * lib/rename.c (rpl_rename): Remove tabs.
38834         * tests/test-link.h (test_link): Likewise.
38835         * lib/fchdir.c (get_name): Likewise.
38836         Reported by Jim Meyering.
38837
38838 2009-10-02  Ben Pfaff  <blp@gnu.org>
38839
38840         relocatable-prog-wrapper: Add missing dependency on
38841         double-slash-root.
38842         * modules/relocatable-prog-wrapper: Add dependency.
38843         Reported by Ian Beckwith <ianb@erislabs.net>.
38844
38845 2009-10-02  Eric Blake  <ebb9@byu.net>
38846
38847         renameat: fix Solaris bugs
38848         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
38849         needed fixing.
38850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
38851         * modules/stdio (Makefile.am): Substitute it.
38852         * lib/stdio.in.h (renameat): Declare replacement.
38853         * lib/renameat.c (rpl_renameat): Implement fix.
38854
38855         renameat: new module
38856         * modules/renameat: New file.
38857         * lib/renameat.c (renameat): Likewise.
38858         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
38859         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
38860         * modules/stdio (Makefile.am): Substitute them.
38861         * lib/stdio.in.h (renameat): Declare it.
38862         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38863         * doc/posix-functions/renameat.texi (renameat): Likewise.
38864         * modules/renameat-tests: New test.
38865         * tests/test-renameat.c: Likewise.
38866
38867         rename: fix mingw bugs
38868         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
38869         directory overwrite bugs.
38870
38871         rename: fix another cygwin 1.5 bug
38872         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
38873         checks.
38874         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
38875         unnecessary cygwin workarounds.  Also work around bug with moving
38876         full directory onto an empty one.
38877         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
38878
38879         rename-dest-slash: merge into rename module
38880         * modules/rename-dest-slash (Status): Mark obsolete.
38881         (Depends-on): Add rename.
38882         (Files): Let rename do it all.
38883         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
38884         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
38885         * m4/rename-dest-slash.m4: ...so this file can be deleted.
38886         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
38887         * lib/rename.c (rpl_rename): Update comments.
38888
38889         rename: fix cygwin 1.5.x bugs
38890         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
38891         * lib/rename.c (rpl_rename): Work around them.
38892         * modules/rename (Depends-on): Add same-inode.
38893
38894         rename: fix Solaris 10 bug
38895         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38896         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
38897         was the only bug.
38898
38899         rename: fix Solaris 9 bug
38900         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
38901         on non-directory.  Avoid calling exit.
38902         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
38903         strdup.
38904         * modules/rename-tests (Depends-on): Drop lstat.
38905         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
38906         (gl_PREREQ_RENAME): Delete unused macro.
38907
38908         rename-dest-slash: fix NetBSD bug
38909         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
38910         links.
38911         * modules/rename-dest-slash (Depends-on): Add same-inode.
38912
38913         rename-tests: new test, exposes several platform bugs
38914         * modules/rename-tests: New file.
38915         * tests/test-rename.h: Likewise.
38916         * tests/test-rename.c: Likewise.
38917         * doc/posix-functions/rename.texi (rename): Improve documentation,
38918         including bugs that will eventually be fixed in gnulib.
38919
38920 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
38921
38922         * lib/uname.c: Include <stdlib.h>
38923         (uname): Assume version info is available.
38924
38925 2009-10-02  Jim Meyering  <meyering@redhat.com>
38926
38927         gnu-web-doc-update: correct --help output
38928         * build-aux/gnu-web-doc-update: Make --help output relevant.
38929
38930         gnu-web-doc-update: add standard options
38931         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
38932
38933         gnu-web-doc-update: New module.
38934         Use this script to automatically update the on-line web documentation
38935         for your GNU project at http://www.gnu.org/software/$pkg/manual/
38936         * modules/gnu-web-doc-update: New file, from coreutils.
38937         * build-aux/gnu-web-doc-update: New script.
38938
38939 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
38940
38941         link: LoadLibrary is not needed.
38942         * lib/link.c: Use GetModuleHandle.
38943
38944 2009-10-01  Eric Blake  <ebb9@byu.net>
38945
38946         getopt: bump serial number
38947         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
38948         change.
38949
38950         tests: tighten link, rmdir, and remove tests
38951         * tests/test-link.h (includes): No need to use <config.h> here.
38952         Clean up if directory hard link was created, otherwise test for
38953         trailing '.'.
38954         * tests/test-linkat.c (main): Simplify.
38955         * tests/test-remove.c (main): Enhance test for trailing '.'.
38956         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38957
38958 2009-10-01  Jim Meyering  <meyering@redhat.com>
38959
38960         maint.mk: requiring "make major" was annoying, for a "minor" release.
38961         What is intended is "stable", to contrast with alpha and beta,
38962         so require "make stable", not "make major".
38963         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
38964         (get_tool_versions): Likewise.
38965         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
38966
38967 2009-09-30  Ben Pfaff  <blp@gnu.org>
38968
38969         Fix broken build of replacement for Windows tmpfile().
38970         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
38971         flags argument added along with the 'mkostemp' module.
38972
38973 2009-09-28  Bruno Haible  <bruno@clisp.org>
38974
38975         Avoid identifier clash with POSIX function 'remove' defined as a macro.
38976         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
38977         to 'remove_elt'.
38978         (gl_list_remove): Update.
38979         * lib/gl_list.c (gl_list_remove): Update.
38980         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
38981         to 'remove_elt'.
38982         (gl_oset_remove): Update.
38983         * lib/gl_list.c (gl_oset_remove): Update.
38984         Reported by Eric Blake.
38985
38986 2009-09-28  Eric Blake  <ebb9@byu.net>
38987
38988         doc: mention yet more cygwin 1.7 status
38989         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
38990         cygwin.
38991         * doc/glibc-functions/execvpe.texi (execvpe): New file.
38992         * doc/gnulib.texi (Glibc unistd.h): Mention it.
38993
38994         argp: fix test failure
38995         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
38996         that are not upper-case.  Pass correct range to tolower.
38997
38998 2009-09-27  Jim Meyering  <meyering@redhat.com>
38999
39000         test-yesno: work around sparc-dash here-document infelicity
39001         Without this change, the literal \177 byte in a here document
39002         would make dash 0.5.5.1-3 access uninitialized memory.
39003         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39004         Instead, use a marker, "@", and filter through tr to create the desired
39005         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39006
39007 2009-09-27  Bruno Haible  <bruno@clisp.org>
39008
39009         Disable untested support for new flavours of ACLs on AIX.
39010         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39011         progress.
39012         * lib/set-mode-acl.c (qset_acl): Likewise.
39013
39014 2008-12-07  Bruno Haible  <bruno@clisp.org>
39015
39016         Add support for new flavours of ACLs on AIX. (Untested.)
39017         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39018         (file_has_acl): Add support for newer AIX.
39019         * lib/set-mode-acl.c (qset_acl): Likewise.
39020         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39021         Rainer Tammer <tammer@tammer.net>.
39022
39023 2009-09-26  Eric Blake  <ebb9@byu.net>
39024
39025         argp: fix compilation of getopt
39026         * lib/getopt.in.h (includes): Use different guard than glibc.
39027         Reported by Sergey Poznyakoff.
39028
39029         doc: mention more cygwin 1.7 status
39030         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39031         bug.
39032         * doc/posix-functions/execl.texi (execl): Likewise.
39033         * doc/posix-functions/execle.texi (execle): Likewise.
39034         * doc/posix-functions/execlp.texi (execlp): Likewise.
39035         * doc/posix-functions/execv.texi (execv): Likewise.
39036         * doc/posix-functions/execve.texi (execve): Likewise.
39037         * doc/posix-functions/execvp.texi (execvp): Likewise.
39038         * doc/glibc-functions/canonicalize_file_name.texi
39039         (canonicalize_file_name): Cygwin 1.7 now provides this.
39040         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39041         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39042         on AT_SYMLINK_NOFOLLOW.
39043
39044 2009-09-24  Eric Blake  <ebb9@byu.net>
39045
39046         test-linkat: make test more robust
39047         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39048
39049         getopt: fix inclusion guards for cygwin
39050         * modules/getopt-posix (Depends-on): Add include-next.
39051         (Makefile.am): Substitute more items in replacement header.
39052         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39053         <getopt.h>.
39054         * lib/getopt.in.h (includes): Use split inclusion guard, and
39055         prefer <getopt.h> over include <unistd.h> when one is present.
39056         (option): Also override name of 'struct option'.
39057
39058         same-inode: revert prior change; it is not yet ready
39059         * NEWS: Undo mention of this change.
39060         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39061         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39062         * lib/cycle-check.c (cycle_check): Likewise.
39063         * lib/same.c (same_name): Likewise.
39064         * lib/at-func2.c (at_func2): Likewise.
39065
39066 2009-09-23  Eric Blake  <ebb9@byu.net>
39067
39068         linkat: new module
39069         * modules/linkat: New file.
39070         * lib/at-func2.c (at_func2): Likewise.
39071         * lib/linkat.c (linkat): Likewise.
39072         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39073         * lib/openat-priv.h (at_func2): Add declaration.
39074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39075         * modules/unistd (Makefile.am): Substitute them.
39076         * lib/unistd.in.h (linkat): Declare it.
39077         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39078         * doc/posix-functions/linkat.texi (linkat): Likewise.
39079         * doc/posix-functions/link.texi (link): Tweak wording.
39080         * tests/test-link.c (main): Move guts...
39081         * tests/test-link.h (test_link): ...into new file.
39082         * modules/linkat-tests: New test.
39083         * tests/test-linkat.c: Likewise.
39084         * modules/link-tests (Files): Ship new file.
39085         (Depends-on): Add stdbool.
39086
39087         dirname: add library-safe mdir_name
39088         * lib/dirname.h (mdir_name): New prototype.
39089         * lib/dirname.c (dir_name): Move guts...
39090         (mdir_name): ...to new function that avoids xalloc_die.
39091
39092         fchdir: another mingw fix
39093         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39094         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39095         on mingw (where it has not yet been ported), and make it optional
39096         elsewhere.
39097         (_gl_register_fd): Use it.
39098
39099         same-inode: make SAME_INODE tri-state, to port to mingw
39100         * NEWS: Mention this change.
39101         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39102         st_ino always being 0.
39103         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39104         * lib/cycle-check.c (cycle_check): Likewise.
39105         * lib/same.c (same_name): Likewise.
39106
39107         lstat: avoid mingw compilation error
39108         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39109         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39110         lstat ourselves.
39111         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39112         was adequate.
39113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39114         the checks for lstat.
39115         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39116
39117         link: fix test failure on Solaris 9
39118         * lib/link.c (rpl_link): Don't assume link will catch bogus
39119         trailing slash on source.
39120
39121         test-symlinkat: enhance test
39122         * tests/test-readlink.c (main): Move guts...
39123         * tests/test-readlink.h (test_readlink): ...into new file.
39124         * tests/test-symlink.c (main): Move guts...
39125         * tests/test-symlink.h (test_symlink): ...into new file.
39126         * tests/test-symlinkat.c (main): Use new files for further
39127         coverage.
39128         (do_symlink, do_readlink): New helper functions.
39129         * modules/symlink-tests (Files): Ship new file.
39130         (Depends-on): Add stdbool.
39131         * modules/readlink-tests (Files): Ship new file.
39132         (Depends-on): Add stdbool.
39133         * modules/symlinkat-tests (Files): Use new files.
39134
39135 2009-09-23  Eric Blake  <ebb9@byu.net>
39136
39137         readlink: document portability issue with symlink length
39138         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39139         systems have bogus st_size on symlinks, and mention the
39140         areadlink-with-size module.
39141         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39142         * doc/posix-functions/readlink.texi (readlink): Mention the
39143         areadlink module, and ERANGE failure.
39144         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39145         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39146
39147         readlink: fix Solaris 9 bug with trailing slash
39148         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39149         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39150         * doc/posix-functions/readlink.texi (readlink): Document this.
39151         * modules/readlink-tests: New test.
39152         * tests/test-readlink.c: Likewise.
39153
39154         readlink: fix cygwin 1.5.x bug with return type
39155         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39156         * lib/unistd.in.h (readlink): Use ssize_t.
39157         * lib/readlink.c (readlink): Likewise.
39158         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39159         * modules/unistd (Makefile.am): Substitute it.
39160         * lib/unistd.in.h (readlink): Declare replacement.
39161         * doc/posix-functions/readlink.texi (readlink): Document this.
39162
39163         symlink: use throughout gnulib
39164         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39165         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39166         symlink is not used.
39167         * modules/symlinkat (Depends-on): Add symlink.
39168         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39169         * modules/canonicalize-tests (Depends-on): Likewise.
39170         * modules/lstat-tests (Depends-on): Likewise.
39171         * modules/openat-tests (Depends-on): Likewise.
39172         * modules/remove-tests (Depends-on): Likewise.
39173         * modules/rmdir-tests (Depends-on): Likewise.
39174         * modules/unlink-tests (Depends-on): Likewise.
39175         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39176         * tests/test-canonicalize.c (symlink): Likewise.
39177         * tests/test-fstatat.c (symlink): Likewise.
39178         * tests/test-lstat.c (symlink): Likewise.
39179         * tests/test-remove.c (symlink): Likewise.
39180         * tests/test-rmdir.c (symlink): Likewise.
39181         * tests/test-unlink.c (symlink): Likewise.
39182         * tests/test-unlinkat.c (symlink): Likewise.
39183
39184         symlink: new module, for Solaris 9 bug
39185         * modules/symlink: New file.
39186         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39187         * lib/symlink.c: Likewise.
39188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39189         * modules/unistd (Makefile.am): Substitute them.
39190         * lib/unistd.in.h (symlink): Declare replacement.
39191         * MODULES.html.sh (File system functions): Mention it.
39192         * doc/posix-functions/symlink.texi (symlink): Likewise.
39193         * modules/symlink-tests: New test.
39194         * tests/test-symlink.c: Likewise.
39195
39196 2009-09-23  Bruno Haible  <bruno@clisp.org>
39197
39198         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39199         when needed.
39200         Test case: gnulib-tool --import --with-tests atexit inttypes.
39201         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39202
39203 2009-09-23  Bruno Haible  <bruno@clisp.org>
39204
39205         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39206         subcommand, not in a subshell.
39207
39208 2009-09-22  Eric Blake  <ebb9@byu.net>
39209
39210         unistd: sort replacement declarations
39211         * lib/unistd.in.h: Sort declarations.
39212
39213         open, openat: minor optimization
39214         * lib/open.c (open): If open succeeded, len is non-zero.
39215         * lib/openat.c (rpl_openat): Likewise.
39216
39217         link-follow: ensure correct result
39218         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39219         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39220         distinguish between possible failures.
39221
39222 2009-09-21  Eric Blake  <ebb9@byu.net>
39223
39224         fts: avoid compiler warning
39225         * lib/fts.c (dirent_inode_sort_may_be_useful)
39226         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39227
39228 2009-09-19  Bruno Haible  <bruno@clisp.org>
39229
39230         * lib/progreloc.c (canonicalize_file_name): New declaration.
39231
39232 2009-09-19  Eric Blake  <ebb9@byu.net>
39233
39234         link: fix quoting
39235         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39236
39237         openat: fix openat bugs on Solaris 9
39238         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39239         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39240         * modules/openat (Depends-on): Add open.
39241         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39242         * modules/fcntl-h (Makefile.am): Substitute it.
39243         * lib/fcntl.in.h (openat): Declare replacement.
39244         * doc/posix-functions/openat.texi (openat): Document this.
39245
39246         openat: move fstatat and unlinkat into correct files
39247         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39248         compiled.
39249         * lib/openat.c (fstatat, unlinkat): Move...
39250         * lib/fstatat.c (fstatat): ...into correct files.
39251         * lib/unlinkat.c (unlinkat): Likewise.
39252
39253         openat: fix unlinkat bugs on Solaris 9
39254         * lib/unlinkat.c (unlinkat): New file.
39255         * modules/openat (Depends-on): Add unlink.
39256         (Files): Distribute it.
39257         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39258         trailing slash behavior is broken.
39259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39260         * modules/unistd (Makefile.am): Substitute it.
39261         * lib/unistd.in.h (unlinkat): Declare replacement.
39262         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39263
39264         openat: fix fstatat bugs on Solaris 9
39265         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39266         stat.
39267         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39268
39269         test-unlinkat: enhance test, to expose Solaris 9 bug
39270         * tests/test-unlink.c (main): Factor guts...
39271         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39272         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39273         * tests/test-rmdir.c (main): Adjust caller.
39274         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39275         (unlinker): New helper function.
39276         (rmdirat): Enhance check.
39277         * modules/rmdir-tests (Depends-on): Add stdbool.
39278         * modules/unlink-tests (Depends-on): Likewise.
39279         (Files): Add test-unlink.h.
39280         * modules/openat-tests (Files): Likewise.
39281         (Depends-on): Add unlinkdir.
39282
39283         test-fstatat: new test, to expose Solaris 9 bugs
39284         * tests/test-stat.c (main): Factor guts...
39285         * tests/test-stat.h (test_stat_func): ...into new file.
39286         * tests/test-lstat.c (main): Factor guts...
39287         * tests/test-lstat.h (test_lstat_func): ...into new file.
39288         * tests/test-fstatat.c: New file.
39289         * modules/stat-tests (Files): Add test-stat.h.
39290         * modules/lstat-tests (Files): Add test-lstat.h.
39291         (Depends-on): Add stdbool.
39292         * modules/openat-tests (Depends-on): Add pathmax.
39293         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39294         (Makefile.am): Run new test.
39295
39296         remove: new module, for mingw and Solaris 9 bugs
39297         * modules/remove: New file.
39298         * lib/remove.c: Likewise.
39299         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39300         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39301         * modules/stdio (Makefile.am): Use them.
39302         * lib/stdio.in.h (remove): Declare replacement.
39303         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39304         * doc/posix-functions/remove.texi (remove): Likewise.
39305         * modules/remove-tests: New test.
39306         * tests/test-remove.c: Likewise.
39307
39308         unlink: new module, for Solaris 9 bug
39309         * modules/unlink: New file.
39310         * lib/unlink.c: Likewise.
39311         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39313         * modules/unistd (Makefile.am): Use them.
39314         * lib/unistd.in.h (stat): Declare replacement.
39315         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39316         * doc/posix-functions/unlink.texi (unlink): Likewise.
39317         * modules/unlink-tests: New test.
39318         * tests/test-unlink.c: Likewise.
39319
39320         lstat: fix Solaris 9 bug
39321         * lib/lstat.c (lstat): Also check for trailing slash on
39322         non-symlink, non-directories.  Use stat module to simplify logic.
39323         * doc/posix-functions/lstat.texi (lstat): Document it.
39324         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39325         (configure.ac): Check for symlink.
39326         * tests/test-lstat.c (main): Add more tests.
39327
39328         stat: add as dependency to other modules
39329         * modules/chown (Depends-on): Add stat.
39330         * modules/euidaccess (Depends-on): Likewise.
39331         * modules/fchdir (Depends-on): Likewise.
39332         * modules/isdir (Depends-on): Likewise.
39333         * modules/link (Depends-on): Likewise.
39334         * modules/lstat (Depends-on): Likewise.
39335         * modules/mkdir-p (Depends-on): Likewise.
39336         * modules/modechange (Depends-on): Likewise.
39337         * modules/open (Depends-on): Likewise.
39338         * modules/readlink (Depends-on): Likewise.
39339         * modules/same (Depends-on): Likewise.
39340
39341         stat: fix Solaris 9 bug
39342         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39343         slash.
39344         * lib/stat.c (rpl_stat): Work around it.
39345         * doc/posix-functions/stat.texi (stat): Update documentation.
39346
39347         stat: new module, for mingw bug
39348         * modules/stat: New file.
39349         * lib/stat.c: Likewise.
39350         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39352         * modules/sys_stat (Makefile.am): Use them.
39353         * lib/sys_stat.in.h (stat): Declare replacement.
39354         * lib/openat.c (fstatat): Deal with lstat and stat being function
39355         macros.
39356         * modules/openat (Depends-on): Add inline.
39357         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39358         * doc/posix-functions/stat.texi (stat): Likewise.
39359         * modules/stat-tests: New test.
39360         * tests/test-stat.c: Likewise.
39361
39362 2009-09-19  Jim Meyering  <meyering@redhat.com>
39363
39364         syntax-check: detect unnecessary inclusion of canonicalize.h
39365         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39366
39367 2009-09-19  Eric Blake  <ebb9@byu.net>
39368
39369         canonicalize-lgpl: adjust clients to use correct header
39370         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39371         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39372         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39373         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39374         * lib/progreloc.c (includes): Likewise.
39375
39376 2009-09-19  Jim Meyering  <meyering@redhat.com>
39377
39378         test-posixtm.c: correct a comment
39379         * tests/test-posixtm.c: Correct first-line comment.
39380         Spotted by Eric Blake.
39381
39382 2009-09-16  Jim Meyering  <meyering@redhat.com>
39383
39384         posixtm-tests: make T const-correct; add a test case
39385         * tests/test-posixtm.c (T): Declare const.
39386         Add a test for -(2^31+1).
39387         Remove useless can-succeed-only-in-2002 test.
39388
39389         posixtm-tests: adjust the sole failing test
39390         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39391         expected output matches what mktime now produces.  Cross-checked via
39392         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39393
39394         posixtm: move #ifdef'd tests into a new module
39395         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39396         * tests/test-posixtm.c: ... this new file.
39397         * modules/posixtm-tests: New module.
39398
39399 2009-09-19  Eric Blake  <ebb9@byu.net>
39400
39401         openat: simplify use of at-func.c
39402         * lib/at-func.c (includes): Include prerequisites here, to
39403         simplify requirements on client files.
39404         * lib/openat-priv.h: Add double-inclusion guard.
39405         * lib/faccessat.c (includes): Simplify.
39406         * lib/fchmodat.c (includes): Likewise.
39407         * lib/fchownat.c (includes): Likewise.
39408         * lib/mkdirat.c (includes): Likewise.
39409         * lib/mkfifoat.c (includes): Likewise.
39410         * lib/symlinkat.c (includes): Likewise.
39411
39412         openat: allow return of fd 0
39413         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39414         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39415         unistd-safer.
39416         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39417         <fcntl.h>; this module does not leak fds.
39418         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39419         must be allowed to return 0, leaving openat_safer to add the
39420         safety.
39421         (openat_permissive): Avoid writing to just-opened fd 2 if
39422         restoring the current directory fails.
39423         * lib/openat-die.c (openat_restore_fail): Add comment.
39424         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39425         (save_cwd): Guarantee safe fd, but without use of open_safer.
39426         * tests/test-openat.c: New test.
39427         * modules/openat-tests (Files, Makefile.am): Distribute and build
39428         new file.
39429
39430         relocatable-prog-wrapper: fix build
39431         * modules/relocatable-prog-wrapper (Files): Update name of
39432         canonicalize m4 file, broken on 2009-09-17.
39433         Reported by emad hajjar <aleppos@hotmail.com>.
39434
39435 2009-09-19  Bruno Haible  <bruno@clisp.org>
39436
39437         * lib/safe-alloc.h: Use the standard header with GPL copyright.
39438         * lib/safe-alloc.c: Likewise.
39439         Reported by Ian Beckwith <ianb@erislabs.net>.
39440
39441 2009-09-18  Bruno Haible  <bruno@clisp.org>
39442
39443         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
39444         Reported by <erobles@sensacd.com.mx>.
39445
39446 2009-09-17  Eric Blake  <ebb9@byu.net>
39447
39448         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
39449         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
39450         slashes when checking if last component is missing.
39451         * tests/test-canonicalize.c (main): Test this.
39452
39453         canonicalize, canonicalize-lgpl: honor // if distinct from /
39454         * modules/canonicalize (Files): Add double-slash-root.m4.
39455         * modules/canonicalize-lgpl (Files): Likewise.
39456         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39457         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
39458         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
39459         fallback definition.
39460         (canonicalize_filename_mode): Use it to protect //.
39461         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
39462         (__realpath): Likewise.
39463         * tests/test-canonicalize.c (main): Test this.
39464         * tests/test-canonicalize-lgpl.c (main): Likewise.
39465         * modules/canonicalize-tests (Depends-on): Add same-inode.
39466         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39467
39468         canonicalize-lgpl: fix glibc bug with trailing slash
39469         * m4/canonicalize-lgpl.m4: Move contents...
39470         * m4/canonicalize.m4: ...here.
39471         (gl_CANONICALIZE_LGPL): Factor realpath check...
39472         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
39473         glibc 2.3.5 bug, fixed 2005-04-27.
39474         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
39475         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
39476         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
39477         * modules/canonicalize-lgpl (Files): Manage file rename.
39478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39479         * modules/stdlib (Makefile.am): Substitute witness.
39480         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
39481         is needed.
39482         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
39483         replacement is required.
39484         * lib/canonicalize.c (canonicalize_file_name): Likewise.
39485         * doc/glibc-functions/canonicalize_file_name.texi
39486         (canonicalize_file_name): Document this.
39487         * doc/posix-functions/realpath.texi (realpath): Likewise.
39488
39489         canonicalize-lgpl: reject non-directory with trailing slash
39490         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
39491         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
39492         catches failures in glibc 2.3.5.
39493         * tests/test-canonicalize.c (main): Likewise.
39494
39495         canonicalize-lgpl: use native realpath if it works
39496         * lib/canonicalize-lgpl.c (realpath): Guard with
39497         FUNC_REALPATH_WORKS.
39498         * lib/stdlib.in.h (realpath): Make declaration optional based on
39499         HAVE_REALPATH.
39500         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
39501         native realpath works.
39502         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
39503         * modules/stdlib (Makefile.am): Substitute witness.
39504
39505         canonicalize, canonicalize-lgpl: use <stdlib.h>
39506         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
39507         (Include): Mention <stdlib.h>.
39508         (configure.ac): Mention functions we provide.
39509         * modules/canonicalize (configure.ac): Likewise.
39510         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
39511         realpath if canonicalize_file_name is missing.
39512         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
39513         * modules/stdlib (Makefile.am): Substitute witnesses.
39514         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
39515         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
39516         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
39517         * NEWS: Document this.
39518         * doc/glibc-functions/canonicalize_file_name.texi
39519         (canonicalize_file_name): Likewise.
39520         * doc/posix-functions/realpath.texi (realpath): Likewise.
39521         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
39522
39523         test-canonicalize: consolidate into single C program
39524         * tests/test-canonicalize.sh: Delete; move setup into...
39525         * tests/test-canonicalize.c (main): ...the program, making it
39526         easier to run in debugger.  Add some tests.
39527         * modules/canonicalize-tests (Files): Remove unused file.
39528         (Depends-on): Add progname.
39529         (configure.ac, Makefile.am): Simplify.
39530
39531         test-canonicalize-lgpl: consolidate into single C program
39532         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
39533         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
39534         easier to run in debugger.  Add some tests.
39535         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
39536         (configure.ac, Makefile.am): Simplify.
39537
39538         canonicalize: avoid resolvepath
39539         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
39540         unnecessary checks.
39541         * lib/canonicalize.c (includes): Simplify.
39542         (canonicalize_file_name): Drop resolvepath implementation.
39543         * modules/canonicalize (Depends-on): Drop filenamecat.
39544
39545         canonicalize: don't lose errno
39546         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
39547         over calls to free.
39548
39549         canonicalize: simplify errno handling
39550         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
39551         assignment.
39552
39553         canonicalize, canonicalize-lgpl: update module dependencies
39554         * modules/canonicalize (Depends-on): Add extensions, lstat,
39555         pathmax, stdlib.
39556         (Files): Drop pathmax.h.
39557         (configure.ac): Adjust macro name.
39558         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
39559         lstat, stdlib, sys_stat.
39560         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
39561         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
39562         extensions.
39563         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
39564         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
39565         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
39566         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
39567         declaration, if available.
39568         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
39569         we can rely on the readlink module.
39570         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
39571         (includes): Use <unistd.h> unconditionally.
39572
39573 2009-09-17  Eric Blake  <ebb9@byu.net>
39574
39575         maint: make Include sections of modules consistent
39576         * modules/alloca: Use only header name; no need to list #include.
39577         * modules/alloca-opt: Likewise.
39578         * modules/arpa_inet: Likewise.
39579         * modules/canon-host: Likewise.
39580         * modules/configmake: Likewise.
39581         * modules/dirent: Likewise.
39582         * modules/eealloc: Likewise.
39583         * modules/environ: Likewise.
39584         * modules/fchdir: Likewise.
39585         * modules/fcntl: Likewise.
39586         * modules/fcntl-h: Likewise.
39587         * modules/gethrxtime: Likewise.
39588         * modules/gettime: Likewise.
39589         * modules/ignore-value: Likewise.
39590         * modules/inet_ntop: Likewise.
39591         * modules/inet_pton: Likewise.
39592         * modules/inttypes: Likewise.
39593         * modules/isnand-nolibm: Likewise.
39594         * modules/isnanf-nolibm: Likewise.
39595         * modules/mbchar: Likewise.
39596         * modules/mbfile: Likewise.
39597         * modules/mbiter: Likewise.
39598         * modules/mbuiter: Likewise.
39599         * modules/netdb: Likewise.
39600         * modules/netinet_in: Likewise.
39601         * modules/nproc: Likewise.
39602         * modules/pagealign_alloc: Likewise.
39603         * modules/poll: Likewise.
39604         * modules/printf-frexp: Likewise.
39605         * modules/pthread: Likewise.
39606         * modules/putenv: Likewise.
39607         * modules/random_r: Likewise.
39608         * modules/relocatable-prog: Likewise.
39609         * modules/search: Likewise.
39610         * modules/select: Likewise.
39611         * modules/selinux-h: Likewise.
39612         * modules/settime: Likewise.
39613         * modules/signal: Likewise.
39614         * modules/size_max: Likewise.
39615         * modules/socklen: Likewise.
39616         * modules/ssize_t: Likewise.
39617         * modules/stdarg: Likewise.
39618         * modules/stdbool: Likewise.
39619         * modules/stddef: Likewise.
39620         * modules/stdint: Likewise.
39621         * modules/stdio: Likewise.
39622         * modules/stdlib: Likewise.
39623         * modules/string: Likewise.
39624         * modules/strings: Likewise.
39625         * modules/sys_file: Likewise.
39626         * modules/sys_ioctl: Likewise.
39627         * modules/sys_select: Likewise.
39628         * modules/sys_socket: Likewise.
39629         * modules/sys_stat: Likewise.
39630         * modules/sys_time: Likewise.
39631         * modules/sys_times: Likewise.
39632         * modules/sys_utsname: Likewise.
39633         * modules/sys_wait: Likewise.
39634         * modules/sysexits: Likewise.
39635         * modules/time: Likewise.
39636         * modules/times: Likewise.
39637         * modules/tmpfile: Likewise.
39638         * modules/trim: Likewise.
39639         * modules/unistd: Likewise.
39640         * modules/wchar: Likewise.
39641         * modules/wctype: Likewise.
39642
39643 2009-09-17  Bruno Haible  <bruno@clisp.org>
39644
39645         Make getdate.y compile on QNX and NetBSD 5 / i386.
39646         * m4/getdate.m4 (gl_GETDATE): Conditionally define
39647         TIME_T_FITS_IN_LONG_INT.
39648         * lib/getdate.y (long_time_t): New type.
39649         (relative_time): Change type of 'seconds' field to long_time_t.
39650         (get_date): Update types of local variables. Check against overflow
39651         during conversion from long_time_t to time_t.
39652         Reported by Matt Kraai <kraai@ftbfs.org>
39653         and Hasso Tepper <hasso@netbsd.org>.
39654
39655 2009-09-17  Bruno Haible  <bruno@clisp.org>
39656
39657         * modules/COPYING: Update copyright years.
39658         * modules/README: Likeiwse.
39659         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
39660         Reported by Ian Beckwith <ianb@erislabs.net>.
39661
39662 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39663
39664         * users.txt: Update references for gnuit package.
39665
39666 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
39667
39668         * m4/getdelim.m4: Fix typo in copyright line.
39669
39670 2009-09-17  Bruno Haible  <bruno@clisp.org>
39671
39672         * lib/atoll.c: Use the standard header with GPL copyright.
39673         * lib/argz.in.h: Likewise.
39674         * lib/glob.c: Likewise.
39675         * lib/glob-libc.h: Likewise.
39676         * lib/random_r.c: Likewise.
39677         * lib/siglist.h: Likewise.
39678         * lib/strsignal.c: Likewise.
39679         Reported by Ian Beckwith <ianb@erislabs.net>.
39680
39681 2009-09-17  Eric Blake  <ebb9@byu.net>
39682
39683         rmdir: ensure correct dependency order
39684         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
39685
39686 2009-09-17  Bruno Haible  <bruno@clisp.org>
39687
39688         Disable assertion that fails on NetBSD 5 / i386.
39689         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
39690         Reported by Sam Steingold <sds@gnu.org>
39691         and Hasso Tepper <hasso@netbsd.org>.
39692
39693 2009-09-16  Eric Blake  <ebb9@byu.net>
39694
39695         unlinkdir: port to mingw
39696         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
39697         on which no one can unlink a directory.
39698
39699         stdlib: sort witness names
39700         * modules/stdlib (Makefile.am): Sort replacements.
39701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
39702         * lib/stdlib.in.h: Likewise.
39703
39704         parse-duration-tests: avoid link failure
39705         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
39706         LIBINTL.
39707         Reported by Tom G. Christensen.
39708
39709         openat-tests: ensure unlinkat behaves like rmdir
39710         * tests/test-rmdir.c (main): Factor guts...
39711         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
39712         * modules/rmdir-tests (Files): Ship new file.
39713         * modules/openat-tests: New test.
39714         * tests/test-unlinkat.c: Likewise.
39715
39716         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
39717         * modules/rmdir-errno (Status, Notice): Now obsolete.
39718
39719         rmdir: work around cygwin 1.5.x and mingw bugs
39720         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
39721         * lib/rmdir.c (rmdir): Work around it.
39722         * modules/rmdir (Status, Notice): No longer obsolete.
39723         (Files): Add dos.m4.
39724         (Depends-on): Add unistd.
39725         (configure.ac): Set witnesses.
39726         (License): Relax to LGPLv2+.
39727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
39728         * modules/unistd (Makefile.am): Substitute witnesses.
39729         * lib/unistd.in.h (rmdir): Declare replacement.
39730         * doc/posix-functions/rmdir.texi (rmdir): Document this.
39731         * modules/rmdir-tests: New tests.
39732         * tests/test-rmdir.c: Likewise.
39733
39734 2009-09-15  Eric Blake  <ebb9@byu.net>
39735
39736         fchdir: improve use of replacement functions
39737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
39738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
39739         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
39740         REPLACE_CLOSEDIR.
39741         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
39742         * modules/sys_stat (Makefile.am): Substitute correct witness.
39743         * modules/dirent (Makefile.am): Likewise.
39744         * modules/unistd (Makefile.am): Likewise.
39745         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
39746         * lib/unistd.in.h (dup): Likewise.
39747         * lib/sys_stat.in.h (fstat): Likewise.
39748
39749         maint: ignore gnulib-tool temp files
39750         * .gitignore: Ignore files created during gnulib-tool --test.
39751
39752 2009-09-13  Jim Meyering  <meyering@redhat.com>
39753
39754         posixtm: don't reject a time that specify "60" as the number of seconds
39755         * lib/posixtm.c (posixtime): The code to reject invalid dates
39756         would also reject a time specified with the .60 suffix.
39757         But POSIX allows that, in order to accommodate leap seconds.
39758         So don't reject it.
39759         (main): Adjust tests accordingly.
39760         * modules/posixtm (Depends-on): Add stpcpy.
39761
39762 2009-09-11  Jim Meyering  <meyering@redhat.com>
39763
39764         announce-gen: include [$release_type] in emitted Subject:
39765         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
39766         e.g., [stable] in the emitted Subject: line.
39767
39768 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39769
39770         Remove obsolete macros from several modules.
39771         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
39772         obsolete Autoconf macros with their modern counterparts.
39773         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
39774         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
39775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
39776         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
39777         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
39778         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39779         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
39780         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
39781         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
39782         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
39783         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
39784         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
39785         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
39786         * m4/sockets.m4 (gl_SOCKETS): Likewise.
39787         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
39788         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
39789         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39790         * m4/time_r.m4 (gl_TIME_R): Likewise.
39791         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
39792         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
39793         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39794
39795         Fix copyright header in build-aux scripts.
39796         * build-aux/git-version-gen: Fix copyright header to match GPLv3
39797         recommendation.
39798         * build-aux/ncftpput-ftp: Likewise.
39799         * build-aux/update-copyright: Likewise.
39800
39801 2009-09-09  Eric Blake  <ebb9@byu.net>
39802
39803         test-link: allow Linux choice of errno
39804         * tests/test-link.c (main): Relax test for alternate error.
39805
39806         strndup: fix improper m4 caching
39807         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
39808         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
39809         (gl_PREREQ_STRNDUP): Delete.
39810         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
39811         * modules/string (Makefile.am): Substitute it.
39812         * lib/string.in.h (strndup): Modernize prototype.
39813
39814         getcwd: port to mingw
39815         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
39816         different from the POSIX assumptions made throughout the getcwd
39817         module; fortunately, the mingw getcwd does not need replacement.
39818         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
39819         * modules/getcwd-tests: New test.
39820         * tests/test-getcwd.c: Likewise.
39821
39822         link: fix platform bugs
39823         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
39824         * lib/link.c (link): Work around them.  Fix related mingw bug.
39825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
39826         * modules/unistd (Makefile.am): Substitute it.
39827         * lib/unistd.in.h (link): Declare replacement.
39828         * doc/posix-functions/link.texi (link): Document this.
39829         * modules/link (Depends-on): Add strdup-posix, sys_stat.
39830
39831         test-link: consolidate into single C program, test more cases
39832         * tests/test-link.sh: Delete.
39833         * tests/test-link.c: Test more error conditions.  Exposes bugs on
39834         at least Cygwin and Solaris.
39835         * modules/link-tests (Files): Remove unused file.
39836         (Depends-on): Add errno, sys_stat.
39837         (Makefile.am): Simplify.
39838
39839 2009-09-08  Bruno Haible  <bruno@clisp.org>
39840
39841         Work around towlower, towupper bug on mingw.
39842         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
39843         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
39844         * doc/posix-functions/towlower.texi: Mention the mingw bug.
39845         * doc/posix-functions/towupper.texi: Likewise.
39846         Reported by Eric Blake.
39847
39848 2009-09-08  Jim Meyering  <meyering@redhat.com>
39849
39850         build: don't try to run autoheader if we don't use it
39851         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
39852         is not used in configure.ac.
39853
39854 2009-09-08  Eric Blake  <ebb9@byu.net>
39855
39856         euidaccess: fix compilation error
39857         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
39858
39859         rawmemchr: relax license
39860         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
39861         okay.
39862         Reported by Jim Meyering.
39863
39864         mkfifoat: new module
39865         * modules/mkfifoat: New file.
39866         * lib/mkfifoat.c: Likewise.
39867         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
39868         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39869         * modules/sys_stat (Makefile.am): Use them.
39870         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
39871         * MODULES.html.sh (File system functions): Mention module.
39872         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39873         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39874         * modules/mkfifoat-tests: New test.
39875         * tests/test-mkfifoat.c: Likewise.
39876
39877         strchrnul: relax license
39878         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
39879         okay.
39880         Reported by Jim Meyering.
39881
39882 2009-09-08  Eric Blake  <ebb9@byu.net>
39883
39884         fstatat: fix compilation on Solaris
39885         * lib/fstatat.c (includes): Add fcntl.h.
39886         Reported by Pádraig Brady.
39887
39888 2009-09-07  Eric Blake  <ebb9@byu.net>
39889
39890         rename: modernize replacement
39891         * modules/rename (Depends-on): Add stdio.
39892         (configure.ac): Declare witness.
39893         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
39894         stdio take care of replacement.
39895         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
39896         * modules/stdio (Makefile.am): Substitute them.
39897         * lib/stdio.in.h (rename): Declare replacement.
39898         * lib/rename.c (includes): Allow cross-compilation to non-windows
39899         machines.
39900         * doc/posix-functions/rename.texi (rename): Improve
39901         documentation.
39902
39903         stdio: sort witness names
39904         * modules/stdio (Makefile.am): Sort replacements.
39905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
39906         * lib/stdio.in.h: Likewise.
39907
39908         getcwd: minor cleanups
39909         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
39910         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
39911
39912         openat: provide more convenience names
39913         * modules/faccessat (configure.ac): Add C witness.
39914         * lib/unistd.in.h (readlinkat): Fix typo.
39915         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
39916         convenience wrappers.
39917         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
39918         wrappers in syntax checks.
39919
39920 2009-09-06  Eric Blake  <ebb9@byu.net>
39921
39922         doc: fix comments in recent patches
39923         * lib/faccessat.c: Mention correct function.
39924         * lib/fchmodat.c: Likewise.
39925         * lib/fchownat.c: Likewise.
39926         * lib/symlinkat.c: Likewise.
39927         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
39928         constants.
39929
39930         faccessat, symlinkat: continue cleanup of previous patch
39931         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
39932         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
39933         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
39934         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
39935         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
39936         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
39937         set.
39938
39939 2009-09-06  Bruno Haible  <bruno@clisp.org>
39940
39941         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
39942         (fstatat): Declare if GNULIB_FSTATAT is set.
39943         (mkdirat): Declare if GNULIB_MKDIRAT is set.
39944         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
39945         (unlinkat): Declare if GNULIB_UNLINKAT is set.
39946         * modules/fcntl-h (Files): Remove m4/openat.m4.
39947         * modules/sys_stat (Files): Remove m4/openat.m4.
39948         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
39949         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
39950         * modules/unistd (Files): Remove m4/openat.m4.
39951         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
39952         GNULIB_OPENAT.
39953         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
39954         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
39955         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
39956         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
39957         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
39958         gl_OPENAT_DEFAULTS.
39959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
39960         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
39961         Don't require gl_OPENAT_DEFAULTS.
39962         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
39963         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
39964         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
39965         (gl_OPENAT_DEFAULTS): Remove macro.
39966
39967 2009-09-06  Bruno Haible  <bruno@clisp.org>
39968
39969         * modules/openat (configure.ac): Remove unneeded witness.
39970
39971 2009-09-06  Bruno Haible  <bruno@clisp.org>
39972
39973         Set errno to ENOSYS when a function is entirely unsupported.
39974         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
39975         EOPNOTSUPP.
39976         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
39977         * modules/chown (Depends-on): Remove errno.
39978
39979 2009-09-06  Bruno Haible  <bruno@clisp.org>
39980
39981         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
39982
39983 2009-09-06  Bruno Haible  <bruno@clisp.org>
39984
39985         * lib/sys_stat.in.h: Fix preprocessor command indentation.
39986
39987 2009-09-06  Ben Pfaff  <blp@gnu.org>
39988             Bruno Haible  <bruno@clisp.org>
39989
39990         Work around a glibc bug in strtok_r.
39991         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
39992         Undefine if UNDEFINE_STRTOK_R is set.
39993         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
39994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
39995         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
39996         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
39997         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
39998         UNDEFINE_STRTOK_R.
39999         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40000
40001 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40002
40003         exclude: minor fix
40004         * lib/exclude.c: Include wctype.h
40005
40006 2009-09-06  Akim Demaille  <demaille@gostai.com>
40007
40008         bootstrap: improve error message
40009         * build-aux/bootstrap (find_tool): Upon failure, report the list
40010         of candidates.
40011         Honor the initial value of the envvar.
40012
40013 2009-09-05  Eric Blake  <ebb9@byu.net>
40014
40015         symlinkat: new module
40016         * modules/symlinkat: New file.
40017         * lib/symlinkat.c: Likewise.
40018         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40019         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40020         * modules/unistd (Makefile.am): Use them.
40021         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40022         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40023         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40024         * MODULES.html.sh (File system functions): Mention module.
40025         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40026         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40027         * modules/symlinkat-tests: New test.
40028         * tests/test-symlinkat.c: Likewise.
40029
40030         test-openat-safer: add more checks
40031         * tests/test-openat-safer.c (main): Check more code paths.
40032
40033 2009-09-05  Jim Meyering  <meyering@redhat.com>
40034
40035         syntax-check: detect unnecessary inclusion of openat.h
40036         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40037
40038 2009-09-05  Bruno Haible  <bruno@clisp.org>
40039
40040         Support towlower, towupper.
40041         * doc/posix-functions/towlower.texi: Mention module wctype.
40042         * doc/posix-functions/towupper.texi: Likewise.
40043         * lib/wctype.in.h (towlower, towupper): New functions.
40044         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40045         (ASSERT): New macro.
40046         (e): New variable.
40047         (main): Test also towlower, towupper. Test WEOF argument.
40048         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40049
40050 2009-09-05  Bruno Haible  <bruno@clisp.org>
40051
40052         Fix conversion behaviour when the input is invalid.
40053         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40054         mark occurring in first pass of indirect conversion.
40055         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40056         input.
40057         Found by clang's static analyzer.
40058
40059 2009-09-05  Bruno Haible  <bruno@clisp.org>
40060
40061         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40062         where direct conversion is possible.
40063
40064 2009-09-04  Eric Blake  <ebb9@byu.net>
40065
40066         openat: fail with ENOENT on empty name
40067         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40068         buffer.
40069
40070         link-follow: fix logic bug in prior patch
40071         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40072         reversed sense of yes and no in prior patch.  Avoid confusing
40073         compilation failure with desired semantics.
40074
40075         link-follow: accomodate mingw and cross-compilation
40076         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40077         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40078         cross-compilation results to -1, to make linkat easier to
40079         implement when cross-compiling.  Trivially support mingw.
40080         * modules/link-follow (configure.ac): Call new name.
40081         * NEWS: Mention this.
40082
40083 2009-09-03  Eric Blake  <ebb9@byu.net>
40084
40085         faccessat: compile replacement
40086         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40087         needed.
40088
40089         fts: fix compilation error
40090         * lib/fts.c (includes): Re-add "openat.h", for
40091         openat_needs_fchdir.
40092
40093         faccessat: new module
40094         * modules/faccessat: New file.
40095         * lib/faccessat.c: Likewise.
40096         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40097         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40098         * modules/unistd (Makefile.am): Use it.
40099         * lib/unistd.in.h (faccessat): Declare it.
40100         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40101         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40102         * MODULES.html.sh (File system functions): Mention it.
40103         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40104         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40105
40106         euidaccess: prefer POSIX over non-standard implementation
40107         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40108         * lib/euidaccess.c (euidaccess): Use it if available.
40109
40110         openat: make template easier to use
40111         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40112         AT_FUNC_F2 to be undefined.
40113         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40114         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40115         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40116         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40117         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40118         Likewise.
40119         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40120         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40121         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40122         Likewise.
40123
40124         openat: declare in POSIX headers
40125         * NEWS: Mention this.
40126         * modules/openat (configure.ac): Declare witnesses.
40127         (Depends-on): Add fcntl-h, sys_stat, unistd.
40128         (Include): Mention correct headers.
40129         * modules/fcntl-h (Depends-on): Add link-warning.
40130         (Files): Add openat.m4.
40131         (Makefile.am): Substitute witnesses.
40132         * modules/sys_stat (Files, Makefile.am): Likewise.
40133         * modules/unistd (Files, Makefile.am): Likewise.
40134         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40135         (gl_OPENAT_DEFAULTS): New macro.
40136         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40138         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40139         (SYS_STAT_H): Remove unused variable.
40140         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40141         * lib/fcntl--.h (includes): Remove unneeded header.
40142         * lib/openat-safer.c (includes): Likewise.
40143         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40144         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40145         appropriate headers.
40146         (__OPENAT_PREFIX): Delete.
40147         * lib/fcntl.in.h (openat): Provide declaration.
40148         (AT_FDCWD): Fix Solaris bug.
40149         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40150         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40151         * lib/fchmodat.c (includes):  Adjust to find declaration.
40152         * lib/fchownat.c (includes): Likewise.
40153         * lib/mkdirat.c (includes): Likewise.
40154         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40155         still visible.
40156
40157 2009-09-02  Eric Blake  <ebb9@byu.net>
40158
40159         errno: use consistently
40160         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40161         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40162         * lib/canonicalize.c (ELOOP): Likewise.
40163         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40164         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40165         * lib/lchown.c (EOPNOTSUPP): Likewise.
40166         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40167         * lib/savewd.c (ESTALE): Likewise.
40168         * lib/settime.c (ENOSYS): Likewise.
40169         * lib/utimens.c (ENOSYS): Likewise.
40170         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40171         * lib/chdir-safer.c (ELOOP): Likewise.
40172         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40173         * modules/c-stack (Depends-on): Add errno.
40174         * modules/canonicalize (Depends-on): Likewise.
40175         * modules/chdir-safer (Depends-on): Likewise.
40176         * modules/fdopendir (Depends-on): Likewise.
40177         * modules/inet_ntop (Depends-on): Likewise.
40178         * modules/inet_pton (Depends-on): Likewise.
40179         * modules/lchown (Depends-on): Likewise.
40180         * modules/openat (Depends-on): Likewise.
40181         * modules/savewd (Depends-on): Likewise.
40182         * modules/settime (Depends-on): Likewise.
40183         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40184
40185         fts: avoid leaking fds
40186         * modules/fts (Depends-on): Add cloexec.
40187         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40188         flag.
40189
40190         fts: make directory fds more robust
40191         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40192         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40193
40194         backupfile, chdir-long, fts, savedir: make safer
40195         * lib/backupfile.c (includes): Use "dirent--.h", since
40196         numbered_backup can write to stderr during readdir.
40197         * lib/savedir.c (includes): Likewise.
40198         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40199         emulation can write to stderr on failure.
40200         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40201         * lib/getcwd.c: Document why opendir_safer is unused.
40202         * lib/glob.c: Likewise.
40203         * lib/scandir.c: Likewise.
40204         * lib/openat-proc.c: Likewise, for open_safer.
40205         * modules/backupfile (Depends-on): Add dirent-safer.
40206         * modules/savedir (Depends-on): Likewise.
40207         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40208         * modules/chdir-long (Depends-on): Add openat-safer.
40209
40210         openat-safer: new module
40211         * modules/openat-safer: New file.
40212         * lib/openat-safer.c: Likewise.
40213         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40214         * lib/fcntl-safer.h (openat_safer): Declare.
40215         * lib/fcntl--.h (openat): Override.
40216         * MODULES.html.sh (File descriptor based I/O): Mention it.
40217         * lib/openat.h: Add double-inclusion guards.
40218         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40219         "fcntl--.h", so we can implement openat.
40220         * modules/openat-safer-tests: New test.
40221         * tests/test-openat-safer.c: New file.
40222
40223         dirent-safer: new module
40224         * modules/dirent-safer: New file.
40225         * lib/dirent--.h: Likewise.
40226         * lib/dirent-safer.h: Likewise.
40227         * lib/opendir-safer.c: Likewise.
40228         * m4/dirent-safer.m4: Likewise.
40229         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40230         * modules/dirent-safer-tests: New test.
40231         * tests/test-dirent-safer.c: New file.
40232         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40233
40234         fdopendir: optimize on mingw
40235         * lib/unistd.in.h (_gl_directory_name): New prototype.
40236         * lib/fchdir.c (_gl_directory_name): Implement it.
40237         (fchdir): Use it to simplify implementation.
40238         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40239         fchdir, when available, to avoid calling [f]chdir().
40240
40241         fdopendir: split into its own module
40242         * lib/openat.c (fdopendir): Move...
40243         * lib/fdopendir.c: ...into new file.
40244         * modules/fdopendir: New module.
40245         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40246         * modules/openat (Depends-on): Add fdopendir.
40247         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40248         fdopendir here.
40249         * modules/savedir (Depends-on): Only need fdopendir, not full
40250         openat.
40251         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40252         * lib/openat.h (fdopendir): Drop prototype.
40253         * lib/dirent.in.h (fdopendir): Provide prototype.
40254         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40255         * modules/dirent (Makefile.am): Substitute them.
40256         * MODULES.html.sh (File system functions): Mention it.
40257         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40258         * modules/fdopendir-tests: New file.
40259         * tests/test-fdopendir.c: Likewise.
40260
40261         fchdir: use more consistent macro convention
40262         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40263         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40264         REPLACE_FCHDIR, rather than relying on config.h macros.
40265         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40266         inside a single make-time REPLACE_FCHDIR block, rather than using
40267         the config.h FCHDIR_REPLACEMENT.
40268         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40269         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40270         Manage fstat replacement.
40271         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40272         REPLACE_FCHDIR.
40273         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40274         (Makefile.am): Substitute REPLACE_FCHDIR.
40275         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40276         FCHDIR_REPLACEMENT.
40277         * lib/dup-safer.c (dup_safer): Likewise.
40278         * lib/dup2.c (rpl_dup2): Likewise.
40279         * lib/dup3.c (rpl_dup3): Likewise.
40280         * lib/open.c (rpl_open): Likewise.
40281
40282         fchdir: simplify error handling, and support dup3
40283         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40284         stdbool, malloc-posix, realloc-posix.
40285         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40286         (ensure_dirs_slot): Return false on allocation failure.
40287         (rpl_dup2): Delete.
40288         (_gl_register_dup): New function.
40289         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40290         (_gl_register_fd): Close fd on allocation failure.
40291         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40292         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40293         prototype.
40294         (rpl_dup2_fchdir): Delete prototype.
40295         * lib/open.c (open): Update caller.
40296         * lib/dup2.c (dup2): Track fchdir metadata.
40297         * lib/dup3.c (dup3): Likewise.
40298         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40299         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40300
40301 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40302
40303         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40304         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40305         don't pass arguments to AC_OUTPUT.
40306
40307 2009-09-02  Bruno Haible  <bruno@clisp.org>
40308
40309         * modules/mkdtemp (License): Relicense under LGPLv2+.
40310         Reported by Paolo Bonzini.
40311
40312 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40313
40314         Replace uses of obsolete autoconf macros in Jim's modules.
40315         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40316         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40317         can evoke a warning from autoconf when run with -Wobsolete
40318         enabled.  They were declared obsolete for good reasons (see
40319         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40320         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40321         should not continue using the deprecated macros.
40322         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40323         obsolete Autoconf macros with modern counterparts.
40324         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40325         * m4/dos.m4 (gl_AC_DOS): Likewise.
40326         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40327         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40328         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40329         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40330         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40331         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40332         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40333         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40334         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40335         Likewise.
40336         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40337         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40338         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40339         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40340         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40341         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40342
40343 2009-09-01  Eric Blake  <ebb9@byu.net>
40344
40345         fchdir: fix off-by-one bug in previous patch
40346         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40347         (_gl_unregister_fd): Delete useless if.
40348
40349 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40350
40351         maint.mk: sort the list of syntax-check rules
40352         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40353         easier to get a sense of progress when the rules are run sequentially
40354         and take a long time.
40355
40356 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40357
40358         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40359         * modules/netinet_in: Likewise.
40360         * modules/sys_file: Likewise.
40361         * modules/sys_ioctl: Likewise.
40362         * modules/sys_select: Likewise.
40363         * modules/sys_socket: Likewise.
40364         * modules/sys_stat: Likewise.
40365         * modules/sys_time: Likewise.
40366         * modules/sys_times: Likewise.
40367         * modules/sys_utsname: Likewise.
40368         * modules/sys_wait: Likewise.
40369
40370 2009-09-01  Jim Meyering  <meyering@redhat.com>
40371
40372         fts: help ensure that return values are not ignored
40373         * lib/fts_.h (__GNUC_PREREQ): Define.
40374         (__attribute_warn_unused_result__): Define.
40375         (fts_children, fts_close, fts_open, fts_read): Declare with
40376         __attribute_warn_unused_result__.
40377
40378         fts: fts_close now fails also when closing a dir file descriptor fails
40379         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40380         and propagate to caller, along with errno.
40381
40382         announce-gen: correct formatting in --help output
40383         * build-aux/announce-gen (usage): Move the one-line description in
40384         --help output "up", to where it belongs, just after Usage:.
40385
40386 2009-08-31  Eric Blake  <ebb9@byu.net>
40387
40388         fchdir: port to mingw
40389         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40390         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40391         opened, then use a substitute.
40392         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40393         replacement.
40394         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40395         (_gl_register_fd): No need to check stat if open already filters
40396         all directories.
40397         (fchdir): Fix error condition to match POSIX.
40398         * modules/fchdir (Depends-on): Add sys_stat.
40399         * doc/posix-functions/open.texi (open): Document the limitation.
40400         * modules/fchdir-tests: New file.
40401         * tests/test-fchdir.c: Likewise.
40402
40403         canonicalize: allow cross-testing from cygwin to mingw
40404         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40405         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40406         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40407         Likewise.
40408         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40409         target does not support symlinks.
40410         * tests/test-canonicalize-lgpl.sh: Likewise.
40411
40412         chown: avoid compilation warning on mingw
40413         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40414         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40415         mingw.
40416         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40417         * modules/chown (Depends-on): Add errno.
40418
40419 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40420
40421         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40422         command.
40423
40424 2009-08-31  Jim Meyering  <meyering@redhat.com>
40425
40426         canonicalize: remove useless initialization
40427         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40428         initialization of local, "end".
40429
40430 2009-08-30  Bruno Haible  <bruno@clisp.org>
40431
40432         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40433         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40434         ENOSYS.
40435
40436 2009-08-30  Bruno Haible  <bruno@clisp.org>
40437
40438         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
40439         /usr/xpg4/bin/tr when it exists.
40440         * tests/test-pipe-filter-gi1.sh: Likewise.
40441
40442 2009-08-30  Bruno Haible  <bruno@clisp.org>
40443
40444         Work around deficient /usr/bin/id program on Solaris.
40445         * tests/test-file-has-acl.sh (ID): New variable.
40446         * tests/test-set-mode-acl.sh (ID): Likewise.
40447         * tests/test-copy-acl.sh (ID): Likewise.
40448         * tests/test-copy-file.sh (ID): Likewise.
40449
40450 2009-08-30  Bruno Haible  <bruno@clisp.org>
40451
40452         New module 'xstriconveh'.
40453         * lib/xstriconveh.h: New file.
40454         * lib/xstriconveh.c: New file.
40455         * modules/xstriconveh: New file.
40456
40457 2009-08-30  Bruno Haible  <bruno@clisp.org>
40458
40459         Make it easier to use mem_cd_iconveh.
40460         * lib/striconveh.h (iconveh_t): New type.
40461         (iconveh_open, iconveh_close): New declarations.
40462         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40463         with a single 'const iconveh_t *' argument.
40464         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
40465         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
40466         with a single 'const iconveh_t *' argument.
40467         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
40468         * tests/test-striconveh.c (main): Update.
40469         * NEWS: Mention the change.
40470
40471 2009-08-30  Bruno Haible  <bruno@clisp.org>
40472
40473         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
40474         problem.
40475
40476 2009-08-30  Bruno Haible  <bruno@clisp.org>
40477
40478         Work around iconv_open problem on Solaris.
40479         * lib/iconv_open-solaris.gperf: New file.
40480         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
40481         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
40482         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
40483         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
40484         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
40485         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
40486
40487 2009-08-29  Jim Meyering  <meyering@redhat.com>
40488
40489         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
40490         * top/maint.mk (cvs-check): Remove target; it was just an alias
40491         to the better-named vc-diff-check.
40492         (maintainer-distcheck): Remove rule.  It was used only from
40493         the (alpha/beta/major) target, and all of its commands but one
40494         were coreutils-specific.
40495         (vc-dist): Remove rule.
40496         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
40497         Run vc-diff-check, not vc-dist.
40498         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
40499
40500 2009-08-27  Bruno Haible  <bruno@clisp.org>
40501
40502         * tests/test-bitrotate.c (main): Remove test that uses a shift count
40503         of 0.
40504
40505 2009-08-27  Bruno Haible  <bruno@clisp.org>
40506
40507         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
40508         compilers.
40509         * doc/func.texi: Document the SunPRO C bug.
40510
40511 2009-08-27  Bruno Haible  <bruno@clisp.org>
40512
40513         Fix link error on Solaris.
40514         * tests/test-parse-duration.c (xstrdup): Remove function.
40515
40516 2009-08-26  Pádraig Brady  <P@draigbrady.com>
40517
40518         ignore-value: handle pointer types, too
40519         * lib/ignore-value.h (__attribute__): Remove definition.
40520         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
40521         of a more concise and more-often effective "(void) i" statement.
40522         (ignore_ptr): New function to suppress warnings from functions that
40523         return pointers, and to make it explicit that one function doesn't
40524         handle all cases.
40525
40526 2009-08-25  Bruno Haible  <bruno@clisp.org>
40527
40528         dup2: work around a Linux bug.
40529         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
40530         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
40531         * doc/posix-functions/dup2.texi: Mention the Linux bug.
40532         Reported by Simon Josefsson.
40533
40534 2009-08-25  Jim Meyering  <meyering@redhat.com>
40535
40536         libguestfs uses gnulib
40537         * users.txt: Add libguestfs.
40538
40539 2009-08-24  Eric Blake  <ebb9@byu.net>
40540
40541         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
40542         * lib/pipe2.c (includes): Add binary-io.h.
40543         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
40544
40545 2009-08-24  Bruno Haible  <bruno@clisp.org>
40546
40547         Tolerate declared but missing accept4 syscall.
40548         * lib/accept4.c (accept4): Invoke original accept4 function first, if
40549         available.
40550         * lib/sys_socket.in.h (accept4): If the function is already present,
40551         override it.
40552         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
40553         * modules/accept4 (Makefile.am): Compile accept4.c always.
40554         Reported by Paolo Bonzini and Eric Blake.
40555
40556 2009-08-23  Bruno Haible  <bruno@clisp.org>
40557
40558         New module 'accept4'.
40559         * lib/sys_socket.in.h (accept4): New declaration.
40560         * lib/accept4.c: New file.
40561         * m4/accept4.m4: New file.
40562         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
40563         GNULIB_ACCEPT4, HAVE_ACCEPT4.
40564         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
40565         HAVE_ACCEPT4.
40566         * modules/accept4: New file.
40567         * doc/glibc-functions/accept4.texi: Mention the new module.
40568
40569 2009-08-24  Jim Meyering  <meyering@redhat.com>
40570
40571         progname: also set global program_invocation_name, when possible
40572         Before this change, a libtool-enabled program that calls glibc's
40573         error function would report the program name as
40574         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
40575         * modules/progname (configure.ac): Check for a declaration of
40576         program_invocation_name.
40577         * lib/progname.c:  Include <errno.h>.
40578         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
40579         Set program_invocation_name.
40580
40581 2009-08-23  Bruno Haible  <bruno@clisp.org>
40582
40583         * lib/dup3.c: Include <string.h>.
40584
40585 2009-08-23  Bruno Haible  <bruno@clisp.org>
40586
40587         * lib/dup3.c (dup3): Test only once whether the system actually exists.
40588         * lib/pipe2.c (pipe2): Likewise.
40589         Suggested by Eric Blake.
40590
40591 2009-08-23  Bruno Haible  <bruno@clisp.org>
40592
40593         Tolerate declared but missing dup3 syscall.
40594         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
40595         * lib/unistd.in.h (dup3): If the function is already present,
40596         override it.
40597         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
40598         * modules/dup3 (Makefile.am): Compile dup3.c always.
40599         Reported by Paolo Bonzini.
40600
40601 2009-08-23  Bruno Haible  <bruno@clisp.org>
40602
40603         Tolerate declared but missing pipe2 syscall.
40604         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
40605         available.
40606         * lib/unistd.in.h (pipe2): If the function is already present,
40607         override it.
40608         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
40609         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
40610         Reported by Paolo Bonzini.
40611
40612 2009-08-23  Bruno Haible  <bruno@clisp.org>
40613
40614         * lib/pipe2.c (pipe2): Move #ifs inside function.
40615
40616 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40617
40618         quotearg: document limitations of quote_these_too
40619         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
40620         those limitations are created.
40621         * lib/quotearg.h (set_char_quoting): Document that digits and
40622         letters that are special after backslash are not permitted.
40623         (quotearg_char): Cross-reference set_char_quoting documentation.
40624
40625 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
40626
40627         quotearg: implement custom_quoting_style
40628         * lib/quotearg.c: (struct quoting_options): Add left_quote and
40629         right_quote fields.
40630         (set_custom_quoting): New public function.
40631         (quotearg_buffer_restyled): Add left_quote and right_quote
40632         arguments, handle them very much like locale quoting, and update
40633         all uses.
40634         (quotearg_n_custom): New public function.
40635         (quotearg_n_custom_mem): New public function.
40636         (quotearg_custom): New public function.
40637         (quotearg_custom_mem): New public function.
40638         * lib/quotearg.h: Prototype and document new public functions.
40639         (enum quoting_style): For escape_quoting_style and
40640         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
40641         ignored even though they're otherwise like c_quoting_style.
40642         Add custom_quoting_style member and document with comparison to
40643         clocale_quoting_style.
40644         * tests/test-quotearg.c (custom_quotes): New array.
40645         (custom_results): New array.
40646         (main): Extend to test custom quoting.
40647
40648 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40649
40650         quotearg: fix right quote escaping when it's in quote_these_too
40651         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
40652         quote, be sure to prepend only one backslash.
40653         * tests/test-quotearg.c (use_quote_double_quotes): New function.
40654         (main): Test it.
40655
40656 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
40657
40658         quotearg-tests: test escaping of embedded locale quotes
40659         * tests/test-quotearg.c (struct result_strings): Add member for
40660         new input.
40661         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
40662         (inputs): Add new input.
40663         (results_g): Add expected results.
40664         (flag_results): Likewise.
40665         (locale_results): Likewise.
40666         (compare_strings): Check those.
40667
40668 2009-08-23  Bruno Haible  <bruno@clisp.org>
40669
40670         Tests for module 'dup3'.
40671         * modules/dup3-tests: New file.
40672         * tests/test-dup3.c: New file.
40673
40674         New module 'dup3'.
40675         * lib/unistd.in.h (dup3): New declaration.
40676         * lib/dup3.c: New file.
40677         * m4/dup3.m4: New file.
40678         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
40679         HAVE_DUP3.
40680         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
40681         * modules/dup3: New file.
40682         * doc/glibc-functions/dup3.texi: Mention the new module.
40683
40684 2009-08-23  Bruno Haible  <bruno@clisp.org>
40685
40686         Tweak the dup2 test.
40687         * tests/test-dup2.c (main): Create the test file empty. Verify that an
40688         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
40689         the test file is still empty. Fix argument order of lseek.
40690
40691 2009-08-23  Bruno Haible  <bruno@clisp.org>
40692
40693         Avoid test link errors when the modules getopt-gnu, gettext are used.
40694         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
40695         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40696
40697 2009-08-23  Bruno Haible  <bruno@clisp.org>
40698
40699         Fix getdtablesize() on mingw.
40700         * lib/getdtablesize.c (getdtablesize): Implement differently.
40701         * lib/unistd.in.h (getdtablesize): Improve comment.
40702
40703 2009-08-23  Bruno Haible  <bruno@clisp.org>
40704
40705         New module 'mkostemp'.
40706         Based on Ulrich Drepper's 2007-08-10 change in glibc.
40707         * lib/stdlib.in.h (mksotemp): New declaration.
40708         * lib/mkostemp.c: New file, from glibc with modifications.
40709         * lib/tempname.h (GT_FILE): Remove outdated comment.
40710         (gen_tempname): Add flags argument.
40711         * lib/tempname.c (__GT_BIGFILE): Remove macro.
40712         (__GT_FILE): Map to 1.
40713         (small_open, large_open): Remove macros.
40714         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
40715         * lib/mkstemp.c (mkstemp): Update.
40716         * lib/mkdtemp.c (mkdtemp): Likewise.
40717         * m4/mkostemp.m4: New file.
40718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
40719         HAVE_MKOSTEMP.
40720         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
40721         HAVE_MKOSTEMP.
40722         * modules/mkostemp: New file, based on modules/mkstemp.
40723         * doc/glibc-functions/mkostemp.texi: Mention the new module.
40724         * NEWS: Mention the change.
40725
40726 2009-08-23  Bruno Haible  <bruno@clisp.org>
40727
40728         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
40729         Reported by Eric Blake.
40730
40731 2009-08-23  Bruno Haible  <bruno@clisp.org>
40732
40733         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
40734         Reported by Eric Blake.
40735
40736 2009-08-23  Bruno Haible  <bruno@clisp.org>
40737
40738         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
40739         * modules/pipe2 (Depends-on): Likewise.
40740
40741 2009-08-23  Eric Blake  <ebb9@byu.net>
40742
40743         fcntl-h: add O_TTY_INIT support
40744         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
40745         * tests/test-fcntl-h.c (o): Test it.
40746         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40747
40748         fcntl-h: rename from fcntl, in preparation for fcntl(2)
40749         * modules/fcntl: Move <fcntl.h> header replacement...
40750         * modules/fcntl-h: ...to new name, so as not to collide with
40751         like-named function.
40752         * tests/test-fcntl.c: Rename...
40753         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
40754         * modules/fcntl-tests: Rename...
40755         * modules/fcntl-h-tests: ...to this.  Update test file name.
40756         * modules/chdir-long (Depends-on): Update clients.
40757         * modules/chdir-safer (Depends-on): Likewise.
40758         * modules/fcntl-safer (Depends-on): Likewise.
40759         * modules/fts (Depends-on): Likewise.
40760         * modules/mkancesdirs (Depends-on): Likewise.
40761         * modules/mkdir-p (Depends-on): Likewise.
40762         * modules/open (Depends-on): Likewise.
40763         * modules/savewd (Depends-on): Likewise.
40764         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
40765         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40766
40767 2009-08-22  Bruno Haible  <bruno@clisp.org>
40768
40769         * modules/binary-io (License): Relicense under LGPL.
40770         * modules/pipe2 (License): Likewise.
40771
40772 2009-08-22  Bruno Haible  <bruno@clisp.org>
40773
40774         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
40775         return value.
40776         * lib/pipe-filter-gi.c (filter_init): Likewise.
40777         Reported by Eric Blake.
40778
40779 2009-08-22  Bruno Haible  <bruno@clisp.org>
40780
40781         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
40782         * modules/pipe (Depends-on): Add pipe2.
40783
40784 2009-08-22  Bruno Haible  <bruno@clisp.org>
40785
40786         Tests for module 'pipe2'.
40787         * modules/pipe2-tests: New file.
40788         * tests/test-pipe2.c: New file.
40789
40790         New module 'pipe2'.
40791         * lib/unistd.in.h (pipe2): New declaration.
40792         * lib/pipe2.c: New file.
40793         * m4/pipe2.m4: New file.
40794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
40795         HAVE_PIPE2.
40796         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
40797         * modules/pipe2: New file.
40798         * doc/glibc-functions/pipe2.texi: Mention the new module.
40799
40800 2009-08-22  Bruno Haible  <bruno@clisp.org>
40801
40802         Reference some new glibc functions.
40803         * doc/glibc-functions/accept4.texi: New file.
40804         * doc/glibc-functions/dup3.texi: New file.
40805         * doc/glibc-functions/mkostemp.texi: New file.
40806         * doc/glibc-functions/pipe2.texi: New file.
40807         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
40808         (Glibc sys/socket.h): Refer to accept4.
40809         (Glibc unistd.h): Refer to dup3, pipe2.
40810         Reported by Eric Blake.
40811
40812 2009-08-22  Jim Meyering  <meyering@redhat.com>
40813             Bruno Haible  <bruno@clisp.org>
40814
40815         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
40816         This makes it so packages using automake-1.11's silent-rules option
40817         can print e.g., a single "GEN    configmake.h" line, rather than
40818         the 30+ statements that perform the job.  If you want to see the
40819         actual commands, you can still run "make V=1".
40820         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
40821         so that make output is abbreviated when those variables are defined
40822         appropriately.
40823         * modules/argz: Likewise.
40824         * modules/arpa_inet: Likewise.
40825         * modules/byteswap: Likewise.
40826         * modules/configmake: Likewise.
40827         * modules/dirent: Likewise.
40828         * modules/errno: Likewise.
40829         * modules/fcntl: Likewise.
40830         * modules/float: Likewise.
40831         * modules/fnmatch: Likewise.
40832         * modules/getopt-posix: Likewise.
40833         * modules/glob: Likewise.
40834         * modules/iconv_open: Likewise.
40835         * modules/inttypes: Likewise.
40836         * modules/localcharset: Likewise.
40837         * modules/locale: Likewise.
40838         * modules/math: Likewise.
40839         * modules/netdb: Likewise.
40840         * modules/netinet_in: Likewise.
40841         * modules/poll: Likewise.
40842         * modules/posix_spawnp-tests: Likewise.
40843         * modules/sched: Likewise.
40844         * modules/search: Likewise.
40845         * modules/selinux-h: Likewise.
40846         * modules/signal: Likewise.
40847         * modules/spawn: Likewise.
40848         * modules/stdarg: Likewise.
40849         * modules/stdbool: Likewise.
40850         * modules/stddef: Likewise.
40851         * modules/stdint: Likewise.
40852         * modules/stdio: Likewise.
40853         * modules/stdlib: Likewise.
40854         * modules/string: Likewise.
40855         * modules/strings: Likewise.
40856         * modules/sys_file: Likewise.
40857         * modules/sys_ioctl: Likewise.
40858         * modules/sys_select: Likewise.
40859         * modules/sys_socket: Likewise.
40860         * modules/sys_stat: Likewise.
40861         * modules/sys_time: Likewise.
40862         * modules/sys_times: Likewise.
40863         * modules/sys_utsname: Likewise.
40864         * modules/sys_wait: Likewise.
40865         * modules/sysexits: Likewise.
40866         * modules/time: Likewise.
40867         * modules/unistd: Likewise.
40868         * modules/wchar: Likewise.
40869         * modules/wctype: Likewise.
40870
40871 2009-08-22  Jim Meyering  <meyering@redhat.com>
40872
40873         announce-gen: detect write failure
40874         * build-aux/announce-gen: Add Coda at end.
40875         Remove equivalent-but-more-verbose block at top.
40876
40877 2009-08-19  Akim Demaille  <demaille@gostai.com>
40878
40879         bootstrap: --help to stdout.
40880         * bootstrap (usage): Don't send --help to stderr.
40881         Use a here doc instead of a long string.
40882
40883 2009-08-21  Eric Blake  <ebb9@byu.net>
40884
40885         test-popen-safer: split from test-popen
40886         * tests/test-popen.c (main): Move...
40887         * tests/test-popen.h: ...into new file.
40888         * tests/test-popen-safer2.c: New file.
40889         * modules/popen-tests (Files): Add test-popen.h.
40890         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
40891         Suggested by Bruno Haible.
40892
40893         test-fcntl-safer: split from test-open
40894         * tests/test-open.c (main): Move...
40895         * tests/test-open.h: ...into new file.
40896         * tests/test-fcntl-safer.c: New file.
40897         * modules/open-tests (Files): Add test-open.h.
40898         * modules/fcntl-safer-tests: New file.
40899         Suggested by Bruno Haible.
40900
40901         test-fopen-safer: split from test-fopen
40902         * tests/test-fopen.c (main): Move...
40903         * tests/test-fopen.h: ...into new file.
40904         * tests/test-fopen-safer.c: New file.
40905         * modules/fopen-tests (Files): Add test-fopen.h.
40906         * modules/fopen-safer-tests: New file.
40907         Suggested by Bruno Haible.
40908
40909 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40910
40911         popen-safer: test O_CLOEXEC at run-time.
40912         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
40913
40914 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
40915
40916         fcntl: move more flags to the header
40917         * lib/cloexec.c: Do not define FD_CLOEXEC here.
40918         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
40919         * lib/fcntl.in.h: Do both things here.
40920
40921 2009-08-21  Jim Meyering  <meyering@redhat.com>
40922
40923         consistently remove $@-t before redirecting to it
40924         * modules/argz: Remove $@-t and $@ before redirecting to the former.
40925         * modules/alloca-opt: Likewise.
40926         * modules/byteswap: Likewise.
40927         * modules/fnmatch: Likewise.
40928         * modules/getopt-posix: Likewise.
40929         * modules/glob: Likewise.
40930         * modules/poll: Likewise.
40931         * modules/posix_spawnp-tests: Likewise.
40932         * modules/sys_socket: Likewise.
40933         * modules/sysexits: Likewise.
40934
40935 2009-08-21  Eric Blake  <ebb9@byu.net>
40936
40937         popen: simplify access to original popen
40938         * lib/popen.c (rpl_popen): No need to worry about popen being a
40939         macro.
40940         Reported by Bruno Haible.
40941
40942 2009-08-20  Eric Blake  <ebb9@byu.net>
40943
40944         build: avoid some compiler warnings
40945         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
40946         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
40947         type.
40948         (new_exclude_segment, excluded_file_pattern_p)
40949         (excluded_file_name_p): Reduce scope.
40950         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
40951         old-style declaration.
40952
40953 2009-08-20  Simon Josefsson  <simon@josefsson.org>
40954
40955         * tests/test-exclude1.sh: Handle Windows EOL.
40956         * tests/test-exclude2.sh: Likewise.
40957         * tests/test-exclude3.sh: Likewise.
40958         * tests/test-exclude4.sh: Likewise.
40959         * tests/test-exclude5.sh: Likewise.
40960         * tests/test-exclude6.sh: Likewise.
40961         * tests/test-exclude7.sh: Likewise.
40962
40963 2009-08-19  Akim Demaille  <demaille@gostai.com>
40964
40965         bootstrap: find sha1sum when named gsha1sum.
40966         * bootstrap (find_tool): New.
40967         ($SHA1SUM): New.
40968         Use it.
40969
40970 2009-08-20  Jim Meyering  <meyering@redhat.com>
40971
40972         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
40973         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
40974         expression that converts "." in a file name to "\." in the resulting
40975         regexp.  Start with a dummy statement, so that prior shell variable
40976         definitions are expanded portably.  Reported by Simon Josefsson.
40977
40978 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
40979
40980         Fix polling for writeability of a screen buffer.
40981         * lib/poll.c: Distinguish input and screen buffers for the
40982         Win32 implementation.
40983         * lib/select.c: Likewise.
40984
40985 2009-08-19  Eric Blake  <ebb9@byu.net>
40986
40987         popen-safer: prevent popen from clobbering std descriptors
40988         * modules/popen-safer: New file.
40989         * lib/popen-safer.c: Likewise.
40990         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
40991         * lib/stdio--.h (popen): Provide override.
40992         * lib/stdio-safer.h (popen_safer): Provide declaration.
40993         * tests/test-popen.c (includes): Partially test this.
40994         * modules/popen-safer-tests: New file, for more tests.
40995         * tests/test-popen-safer.c: Likewise.
40996         * MODULES.html.sh (file stream based Input/Output): Mention it.
40997
40998         tests: test some of the *-safer modules
40999         * modules/fopen-safer (Depends-on): Add fopen.
41000         * modules/fcntl-safer (Depends-on): Add fcntl.
41001         * modules/stdlib-safer (Depends-on): Add stdlib.
41002         (configure.ac): Set indicator.
41003         * modules/unistd-safer (configure.ac): Likewise.
41004         * modules/tmpfile-safer (configure.ac): Likewise.
41005         (Depends-on): Add tmpfile.
41006         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41007         active.
41008         * tests/test-fopen.c (includes): Test safer versions when they are
41009         in use.
41010         * tests/test-open.c (includes): Likewise.
41011
41012         popen: fix cygwin 1.5 bug when stdin closed
41013         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41014         * modules/popen: New file.
41015         * modules/popen-tests: Likewise.
41016         * tests/test-popen.c: Likewise.
41017         * m4/popen.m4: Likewise.
41018         * lib/popen.c: Likewise.
41019         * lib/stdio.in.h (popen): New declaration.
41020         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41021         * modules/stdio (Makefile.am): Likewise.
41022         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41023
41024 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41025
41026         maint.mk: give full control over update-copyright exclusions
41027         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41028         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41029         (update-copyright): Don't force inclusion of top-level
41030         ChangeLog.  Don't force exclusion of all COPYING files, but make
41031         them the default exclusion instead.
41032
41033 2009-08-16  Bruno Haible  <bruno@clisp.org>
41034
41035         Fix test failures on Solaris 10.
41036         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41037         tests when Solaris iconv() is used.
41038         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41039         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41040         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41041         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41042         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41043
41044 2009-08-16  Bruno Haible  <bruno@clisp.org>
41045
41046         Fix test failures on Solaris 10.
41047         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41048         'tr' program and pass it as first argument.
41049         * tests/test-pipe-filter-gi1.sh: Likewise.
41050         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41051         program as first argument.
41052         * tests/test-pipe-filter-gi1.c (main): Likewise.
41053
41054 2009-08-16  Eric Blake  <ebb9@byu.net>
41055
41056         fpurge: fix previous commits
41057         * modules/fpurge (Makefile.am): Make replacement conditional,
41058         partially reverting 2007-04-29 change; missed in previous
41059         attempt.
41060         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41061         is missing.
41062
41063 2009-08-16  Bruno Haible  <bruno@clisp.org>
41064
41065         Clarify fpurge's effect on the file position.
41066         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41067         * tests/test-fpurge.c (main): Make a second pass for checking the file
41068         position.
41069
41070 2009-08-16  Bruno Haible  <bruno@clisp.org>
41071
41072         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41073         declaration of fpurge is missing.
41074         * tests/test-fpurge.c (main): Check that the file has not more contents
41075         than expected. Close the file before removing it.
41076
41077 2009-08-15  Eric Blake  <ebb9@byu.net>
41078
41079         fpurge: don't wrap working cygwin implementation
41080         * lib/fpurge.c (fpurge): Fix comment typo.
41081         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41082         1.7 to avoid replacement.
41083         * tests/test-fpurge.c (main): Enhance test.
41084
41085 2009-08-15  Eric Blake  <ebb9@byu.net>
41086         and Jim Meyering  <meyering@redhat.com>
41087
41088         test-update-copyright: skip if perl is insufficient
41089         * tests/test-update-copyright.sh: Failure to run maintainer tool
41090         should not cause testsuite failure on cygwin 1.5.
41091
41092 2009-08-14  Eric Blake  <ebb9@byu.net>
41093
41094         doc: mention more functions added in cygwin 1.7.0
41095         * doc/posix-headers/limits.texi (limits.h): Update for recent
41096         cygwin additions.
41097         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41098         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41099         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41100         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41101         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41102
41103 2009-08-14  Eric Blake  <ebb9@byu.net>
41104
41105         maint.mk: simplify update-copyright rule
41106         * top/maint.mk (update-copyright-local): Delete, and document how
41107         to do it in cfg.mk instead.
41108         (update-copyright-exclude-regexp): Delete, and document how to do
41109         it in .x-update-copyright instead.
41110         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41111         exclude ChangeLog.
41112
41113 2009-08-14  Bruno Haible  <bruno@clisp.org>
41114
41115         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41116
41117 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41118
41119         maint.mk: support update-copyright-env
41120         * top/maint.mk (update-copyright-env): Define place-holder.
41121         (update-copyright): Expand $(update-copyright-env) before
41122         invoking update-copyright.
41123
41124 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41125
41126         update-copyright: implement forced reformatting
41127         * build-aux/update-copyright: Implement and document
41128         UPDATE_COPYRIGHT_FORCE.
41129         * tests/test-update-copyright.sh: Test it.
41130
41131 2009-08-14  Eric Blake  <ebb9@byu.net>
41132         and Bruno Haible  <bruno@clisp.org>
41133
41134         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41135         * tests/test-locale.c: Revert previous patch related to NULL.
41136         * tests/test-stdio.c: Likewise.
41137         * tests/test-stdlib.c: Likewise.
41138         * tests/test-string.c: Likewise.
41139         * tests/test-unistd.c: Likewise.
41140         * modules/time-tests (Depends-on): Add verify.
41141         * modules/wchar-tests (Depends-on): Likewise.
41142         * tests/test-time.c: Test for NULL compliance.
41143         * tests/test-wchar.c: Likewise.
41144         * modules/locale (Depends-on): Add stddef.
41145         * modules/stdio (Depends-on): Likewise.
41146         * modules/stdlib (Depends-on): Likewise.
41147         * modules/string (Depends-on): Likewise.
41148         * modules/time (Depends-on): Likewise.
41149         * modules/unistd (Depends-on): Likewise.
41150         * modules/wchar (Depends-on): Likewise.
41151         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41152         * lib/stdlib.in.h (includes): Likewise.
41153         * lib/string.in.h (includes): Likewise.
41154         * lib/time.in.h (includes): Likewise.
41155         * lib/unistd.in.h (includes): Likewise.
41156         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41157         replaced.
41158         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41159         * m4/stddef_h.m4: New file.
41160         * modules/stddef: Likewise.
41161         * lib/stddef.in.h: Likewise.
41162         * modules/stddef-tests: Likewise.
41163         * tests/test-stddef.c: Likewise.
41164         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41165         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41166         * doc/posix-headers/locale.texi (locale.h): Likewise.
41167         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41168         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41169         * doc/posix-headers/string.texi (string.h): Likewise.
41170         * doc/posix-headers/time.texi (time.h): Likewise.
41171         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41172         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41173
41174 2009-08-14  Eric Blake  <ebb9@byu.net>
41175
41176         doc: improve git diff of texinfo files
41177         * .gitattributes: Add rule for *.texi files, with hint on how to
41178         use it.
41179         Copied from m4, and based on a report by Bruno Haible.
41180
41181 2009-08-14  Bruno Haible  <bruno@clisp.org>
41182
41183         Disable multithread support by default on Cygwin 1.5.x for real.
41184         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41185
41186 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41187
41188         update-copyright: much ado about intervals
41189         * build-aux/update-copyright: Implement and document
41190         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41191         of copyright year intervals.
41192         Also, document UPDATE_COPYRIGHT_YEAR.
41193         * tests/test-update-copyright.sh: Test it.
41194
41195         update-copyright: convert 2-digit to 4-digit years
41196         * build-aux/update-copyright: Implement and document.
41197         * tests/test-update-copyright.sh: Update.
41198
41199 2009-08-14  Jim Meyering  <meyering@redhat.com>
41200
41201         test-exclude: avoid coreutils "make check" failure
41202         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41203         just as in test-argmatch.c.
41204
41205 2009-08-13  Eric Blake  <ebb9@byu.net>
41206
41207         test-dup2: fix bad assumption
41208         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41209         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41210
41211         test-version-etc: fix CRLF portability issue
41212         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41213         recognize \r.
41214         * tests/test-argp-version-etc-1.sh: Likewise.
41215
41216         getopt: update client modules
41217         * modules/argp (Depends-on): Use getopt-gnu.
41218         * modules/git-merge-changelog (Depends-on): Likewise.
41219         * modules/long-options (Depends-on): Likewise.
41220         * modules/xstrtol (Depends-on): Likewise.
41221
41222 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41223
41224         * tests/test-version-etc.sh: Don't fail on different
41225         project/version.  Don't fail on CRLF differences.  Rewrite to use
41226         multiple -e instead of multiple sed forks, suggested by Eric Blake
41227         <ebb9@byu.net>.
41228         * tests/test-argp-version-etc-1.sh: Likewise.
41229
41230 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41231
41232         * tests/test-version-etc.sh: Don't fail on different
41233         project/version.
41234
41235 2009-08-12  Bruno Haible  <bruno@clisp.org>
41236
41237         Tests for modules 'getopt-posix', 'getopt-gnu'.
41238         * modules/getopt-posix-tests: New file.
41239         * tests/test-getopt.c: New file.
41240         * tests/test-getopt.h: New file.
41241         * tests/test-getopt_long.h: New file.
41242
41243         New modules 'getopt-posix', 'getopt-gnu'.
41244         * modules/getopt-gnu: New file, renamed from modules/getopt.
41245         * modules/getopt-posix: New file.
41246         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41247         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41248         (gl_GETOPT): Remove macro.
41249         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41250         Disable the test against BSD systems that declare optreset. Test
41251         against mingw bug. Test against lack of support of optional arguments
41252         on many platforms.
41253         * doc/glibc-headers/getopt.texi: Update module name and list of
41254         relevant platforms.
41255         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41256         'getopt-gnu' and more portability problems.
41257         * NEWS: Mention the changes.
41258
41259 2009-08-12  Bruno Haible  <bruno@clisp.org>
41260
41261         Ensure that optarg etc. get declared by <unistd.h>.
41262         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41263         AC_USE_SYSTEM_EXTENSIONS.
41264         * modules/getopt (Depends-on): Add 'extensions'.
41265
41266 2009-08-12  Bruno Haible  <bruno@clisp.org>
41267
41268         Avoid test link errors.
41269         * modules/pipe-filter-ii-tests (Makefile.am): Define
41270         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41271         * modules/pipe-filter-gi-tests (Makefile.am): Define
41272         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41274
41275 2009-08-12  Bruno Haible  <bruno@clisp.org>
41276
41277         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41278         gl_GETOPT_SUBSTITUTE before.
41279         (gl_GETOPT): Use it.
41280         * m4/argp.m4 (gl_ARGP): Update.
41281         Reported by Sergey Poznyakoff.
41282
41283         * m4/getopt.m4: Reorder macros.
41284         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41285         (gl_GETOPT_SUBSTITUTE): Remove macro.
41286
41287 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41288
41289         Minor improvement in gitlog-to-changelog
41290
41291         * build-aux/gitlog-to-changelog: New option `--format' makes
41292         output format string configurable.
41293
41294 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41295
41296         Optimize exclude: use hash tables for non-wildcard patterns.
41297
41298         * lib/exclude.c: Include hash.h and mbuiter.h
41299         (struct exclude_pattern, exclude_segment): New data types.
41300         (struct exclude): Rewrite.
41301         (fnmatch_pattern_has_wildcards): New function.
41302         (new_exclude_segment, free_exclude_segment): New functions.
41303         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41304         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41305         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41306         * modules/exclude: Depend on hash and mbuiter.
41307
41308         * modules/exclude-tests: New file.
41309         * tests/test-exclude.c: New file.
41310         * tests/test-exclude1.sh: New file.
41311         * tests/test-exclude2.sh: New file.
41312         * tests/test-exclude3.sh: New file.
41313         * tests/test-exclude4.sh: New file.
41314         * tests/test-exclude5.sh: New file.
41315         * tests/test-exclude6.sh: New file.
41316         * tests/test-exclude7.sh: New file.
41317
41318 2009-08-12  Bruno Haible  <bruno@clisp.org>
41319
41320         Ensure that getopt() gets declared by <unistd.h>.
41321         * lib/unistd.in.h: Conditionally include getopt.h.
41322         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41323         Set GNULIB_UNISTD_H_GETOPT.
41324         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41325         GNULIB_UNISTD_H_GETOPT.
41326         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41327
41328 2009-08-12  Bruno Haible  <bruno@clisp.org>
41329
41330         Clarify logic.
41331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41332         gl_replace_getopt instead of GETOPT_H.
41333
41334 2009-08-12  Bruno Haible  <bruno@clisp.org>
41335
41336         * m4/getopt.m4: Add comments.
41337
41338 2009-08-12  Bruno Haible  <bruno@clisp.org>
41339
41340         Disable multithread support by default on Cygwin 1.5.x.
41341         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41342         set gl_use_threads=no if not specified otherwise.
41343
41344 2009-08-11  Bruno Haible  <bruno@clisp.org>
41345
41346         Avoid compilation error on NetBSD 5.0.
41347         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41348         * tests/test-stdio.c: Likewise.
41349         * tests/test-stdlib.c: Likewise.
41350         * tests/test-string.c: Likewise.
41351         * tests/test-unistd.c: Likewise.
41352         Reported by Greg Troxel <gdt@ir.bbn.com>
41353         at <https://savannah.gnu.org/support/?106973>.
41354
41355 2009-08-11  Bruno Haible  <bruno@clisp.org>
41356
41357         * modules/dup2-tests (Depends-on): Remove close.
41358
41359         Undo 2009-07-19 commit.
41360         * modules/acl-tests (Depends-on): Remove close.
41361         * modules/binary-io-tests (Depends-on): Likewise.
41362         * modules/closein-tests (Depends-on): Likewise.
41363         * modules/flock-tests (Depends-on): Likewise.
41364         * modules/fsync-tests (Depends-on): Likewise.
41365         * modules/lseek-tests (Depends-on): Likewise.
41366         * modules/pipe-tests (Depends-on): Likewise.
41367         * modules/posix_spawn-tests (Depends-on): Likewise.
41368         * modules/posix_spawnp-tests (Depends-on): Likewise.
41369         * modules/stat-time-tests (Depends-on): Likewise.
41370         * modules/yesno-tests (Depends-on): Likewise.
41371
41372 2009-08-10  Bruno Haible  <bruno@clisp.org>
41373
41374         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41375
41376 2009-08-10  Bruno Haible  <bruno@clisp.org>
41377
41378         Fix a gcc warning.
41379         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41380
41381 2009-08-10  Bruno Haible  <bruno@clisp.org>
41382
41383         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41384         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41385         not only the first time.
41386         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41387         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41388         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41389         is 1, not only the the first time.
41390
41391 2009-08-10  Bruno Haible  <bruno@clisp.org>
41392
41393         Make it possible to use module 'gethostname' without module 'close'.
41394         * lib/unistd.in.h (close): Evoke a link error only if
41395         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41397         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41398         * modules/unistd (Makefile.am): Substitute
41399         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41400         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41401         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41402         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41403         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41404         * modules/sys_ioctl (Makefile.am): Substitute
41405         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41406         * modules/socket (configure.ac): On native Windows, set
41407         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41408         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41409         Reported by Sam Steingold <sds@gnu.org>.
41410
41411 2009-08-10  Bruno Haible  <bruno@clisp.org>
41412
41413         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41414         * modules/ioctl (configure.ac): Likewise.
41415
41416 2009-08-10  Bruno Haible  <bruno@clisp.org>
41417
41418         Avoid collision between gnulib wrapper and libintl wrapper.
41419         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41420         already defined in intl/printf.c.
41421         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41422         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41423
41424 2009-08-09  Bruno Haible  <bruno@clisp.org>
41425
41426         Make <sys/select.h> really self-contained, also on Solaris 10.
41427         * lib/sys_select.in.h: Include <string.h>.
41428         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41429         Solaris 10 problem.
41430         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41431         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41432         Reported by Jim Meyering.
41433
41434 2009-08-09  Bruno Haible  <bruno@clisp.org>
41435
41436         Avoid warnings from 'aclocal' that are due to a use of macro name
41437         AM_XGETTEXT_OPTION that is not defined in automake.
41438         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
41439         automake.
41440         * modules/error (configure.ac): Likewise.
41441         * modules/propername (configure.ac): Likewise.
41442         * modules/vasprintf (configure.ac): Likewise.
41443         * modules/verror (configure.ac): Likewise.
41444         * modules/xprintf (configure.ac): Likewise.
41445         * modules/xvasprintf (configure.ac): Likewise.
41446
41447 2009-08-08  Bruno Haible  <bruno@clisp.org>
41448
41449         Avoid compilation error in C++ mode.
41450         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
41451         Reported by Sam Steingold <sds@gnu.org>.
41452
41453 2009-08-08  Bruno Haible  <bruno@clisp.org>
41454
41455         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
41456         for the various Unix platforms.
41457         * doc/posix-headers/limits.texi: Update platforms list regarding
41458         HOST_NAME_MAX.
41459         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41460
41461 2009-08-07  Jim Meyering  <meyering@redhat.com>
41462
41463         selinux-at: fix typo in a comment
41464         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
41465         Spotted by Paolo Bonzini.
41466
41467         selinux-at: remove redundant m4 code, add documentation
41468         * modules/selinux-at (configure.ac): Remove redundant code.
41469         LIB_SELINUX is already set via the dependent module, selinux-h.
41470         (Include): Add quotes around selinux-at.h.
41471         * lib/selinux-at.h: Add documentation.
41472         Reported by Bruno Haible in
41473         http://marc.info/?l=gnulib-bug&m=124958988300749
41474
41475 2009-08-07  Bruno Haible  <bruno@clisp.org>
41476
41477         Avoid link error on MacOS X 10.3 and 10.4.
41478         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
41479         on non-ELF systems.
41480         * lib/argp-pv.c (argp_program_version): Likewise.
41481         Reported by Simon Josefsson.
41482
41483 2009-08-07  Simon Josefsson  <simon@josefsson.org>
41484
41485         * tests/test-version-etc.sh: Use $EXEEXT.
41486
41487 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
41488
41489         update-copyright: update documentation to point to maint.mk
41490         * build-aux/update-copyright: Here.
41491
41492 2009-08-06  Jim Meyering  <meyering@redhat.com>
41493
41494         maint.mk: support update-copyright-local
41495         * top/maint.mk (update-copyright-local): Define place-holder.
41496         (update-copyright): Depend on $(update-copyright-local).
41497
41498 2009-08-06  Jim Meyering  <meyering@redhat.com>
41499
41500         selinux-at: new module
41501         Initially written for coreutils, this module will soon be
41502         used by findutils, too.
41503         * MODULES.html.sh [Misc]: Add selinux-at.
41504         * lib/selinux-at.h: New file, from coreutils.
41505         * lib/selinux-at.c: Likewise.
41506         * modules/selinux-at: Likewise.
41507         (License): Change from LGPL to GPL, since it depends
41508         on the GPL'd openat module.
41509
41510         doc: update README
41511         * README: Remove references to cogito.
41512         Remove cvs-repo-updating instructions from 2007.
41513         Don't imply that CVS is better if you have limited disk space.
41514
41515 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41516
41517         update-copyright: support C-style comments
41518         * build-aux/update-copyright: Implement and document.
41519         * tests/test-update-copyright.sh: Test.
41520
41521 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41522
41523         update-copyright: support omitted "(C)"
41524         * build-aux/update-copyright: Implement and document.  Also,
41525         allow variable whitespace before "(C)".
41526         * tests/test-update-copyright.sh: Test.
41527
41528 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41529
41530         update-copyright: don't trip on non-FSF copyright statements
41531         * build-aux/update-copyright: Fix so that the first correctly
41532         formatted FSF copyright statement is recognized no matter what
41533         appears before it.  Update documentation.
41534         * tests/test-update-copyright.sh: Test that.
41535
41536 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41537
41538         update-copyright: clean up code a little
41539         * build-aux/update-copyright: Append "_re" to the name of any
41540         variable holding a regular expression.
41541         Replace "old" and "new" with "stmt" in variable names.
41542         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
41543         handled correctly.
41544         Format code more consistently.
41545
41546 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
41547
41548         update-copyright-tests: improve portability
41549         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
41550         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
41551
41552 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41553
41554         update-copyright: support @copyright{} and &copy;
41555         * build-aux/update-copyright: Implement and document.
41556         * tests/test-update-copyright.sh: Test.
41557
41558 2009-08-04  Jim Meyering  <meyering@redhat.com>
41559
41560         update-copyright-tests: correctly test EOL=\r\n handling
41561         * tests/test-update-copyright.sh: Put \r at the end of some lines
41562         for the dos-eol tests.  Based on a patch by Joel E. Denny.
41563
41564         maint.mk: make update-copyright exclusion list more configurable
41565         * top/maint.mk (update-copyright): Default to excluding COPYING,
41566         but allow an override, in case someone does want to update that file.
41567
41568         maint.mk: don't update copyright date in COPYING
41569         * top/maint.mk (update-copyright): Exclude COPYING.
41570
41571         maint.mk: add a copyright-updating rule
41572         * top/maint.mk (update-copyright): New rule.
41573         Derived from coreutils/Makefile.am.
41574
41575         update-copyright: rename some variables
41576         * build-aux/update-copyright: Rename a few variables for clarity.
41577         Tweak syntax.  List Joel E. Denny as coauthor.
41578
41579 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
41580
41581         update-copyright: fix bug for 2-digit last year and add tests
41582         * build-aux/update-copyright: Fix bug.
41583         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
41584         specified.
41585         * modules/update-copyright-tests: New
41586         * tests/test-update-copyright.sh: New.
41587
41588 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41589
41590         update-copyright: handle leading tabs in line prefix
41591         * build-aux/update-copyright: Count leading tabs as 8 spaces
41592         when computing margin.  This helps with the formatting of
41593         ChangeLogs, for example.
41594         Fix documentation a little.
41595
41596 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41597
41598         update-copyright: support EOL=\r\n
41599         * build-aux/update-copyright: Implement that.
41600
41601 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
41602
41603         update-copyright: automatically format copyright statements
41604         * build-aux/update-copyright: Implement that.
41605         Also, be a little more predictable and safer by always failing
41606         when the full copyright format is not perfectly recognized as an
41607         unbroken whole.  Discussed at
41608         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
41609         Rewrite documentation.
41610
41611 2009-08-03  Bruno Haible  <bruno@clisp.org>
41612
41613         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
41614
41615 2009-08-02  Bruno Haible  <bruno@clisp.org>
41616
41617         Tests for module 'uname'.
41618         * modules/uname-tests: New file.
41619         * tests/test-uname.c: New file.
41620
41621         New module 'uname'.
41622         * lib/uname.c: New file.
41623         * m4/uname.m4: New file.
41624         * modules/uname: New file.
41625         * doc/posix-functions/uname.texi: Mention the new module.
41626
41627 2009-08-02  Bruno Haible  <bruno@clisp.org>
41628
41629         Tests for module 'sys_utsname'.
41630         * modules/sys_utsname-tests: New file.
41631         * tests/test-sys_utsname.c: New file.
41632
41633         New module 'sys_utsname'.
41634         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
41635         * m4/sys_utsname_h.m4: New file.
41636         * modules/sys_utsname: New file.
41637         * doc/posix-headers/sys_utsname.texi: Mention the new module.
41638
41639 2009-08-02  Bruno Haible  <bruno@clisp.org>
41640
41641         Implicitly initialize the sockets library.
41642         * lib/gethostname.c: Include sockets.h.
41643         (rpl_gethostname): Invoke gl_sockets_startup.
41644         * lib/socket.c: Include sockets.h.
41645         (rpl_socket): Invoke gl_sockets_startup.
41646         * modules/gethostname (Depends-on): Add sockets.
41647         * modules/socket (Depends-on): Likewise.
41648         * tests/test-poll.c: Don't include sockets.h.
41649         (main): Don't invoke gl_sockets_startup.
41650         * tests/test-select.c: Don't include sockets.h.
41651         (main): Don't invoke gl_sockets_startup.
41652
41653 2009-08-02  Bruno Haible  <bruno@clisp.org>
41654
41655         Allow multiple calls to gl_sockets_startup.
41656         * lib/sockets.c (initialized_sockets_version): New variable.
41657         (gl_sockets_startup): Do nothing if already called for this or a higher
41658         version.
41659         (gl_sockets_cleanup): Reset initialized_sockets_version.
41660
41661 2009-08-03  Simon Josefsson  <simon@josefsson.org>
41662
41663         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
41664         different project/version.
41665
41666 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
41667             Bruno Haible  <bruno@clisp.org>
41668
41669         Tests for module 'pipe-filter-gi'.
41670         * modules/pipe-filter-gi-tests: New file.
41671         * tests/test-pipe-filter-gi1.sh: New file.
41672         * tests/test-pipe-filter-gi1.c: New file.
41673         * tests/test-pipe-filter-gi2.sh: New file.
41674         * tests/test-pipe-filter-gi2-main.c: New file.
41675         * tests/test-pipe-filter-gi2-child.c: New file.
41676
41677         New module 'pipe-filter-gi'.
41678         * lib/pipe-filter-gi.c: New file.
41679         * modules/pipe-filter-gi: New file.
41680
41681 2009-08-02  Bruno Haible  <bruno@clisp.org>
41682             Paolo Bonzini  <bonzini@gnu.org>
41683
41684         Tests for module 'pipe-filter-ii'.
41685         * modules/pipe-filter-ii-tests: New file.
41686         * tests/test-pipe-filter-ii1.sh: New file.
41687         * tests/test-pipe-filter-ii1.c: New file.
41688         * tests/test-pipe-filter-ii2.sh: New file.
41689         * tests/test-pipe-filter-ii2-main.c: New file.
41690         * tests/test-pipe-filter-ii2-child.c: New file.
41691
41692         New module 'pipe-filter-ii'.
41693         * lib/pipe-filter.h: New file.
41694         * lib/pipe-filter-ii.c: New file.
41695         * lib/pipe-filter-aux.h: New file.
41696         * modules/pipe-filter-ii: New file.
41697
41698 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41699
41700         * lib/gc-libgcrypt.c: Change copyright to FSF.
41701         * lib/gc-gnulib.c: Likewise.
41702
41703 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
41704
41705         * lib/gethostname.c: Include limits.h.
41706
41707 2009-08-02  Simon Josefsson  <simon@josefsson.org>
41708             Bruno Haible  <bruno@clisp.org>
41709
41710         Ensure HOST_NAME_MAX as part of the gethostname module.
41711         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
41712         define also HOST_NAME_MAX.
41713         * tests/test-gethostname.c: Include <limits.h>.
41714         (main): Check also HOST_NAME_MAX.
41715         * doc/posix-headers/limits.texi: Document the mingw problem.
41716
41717 2009-08-02  Bruno Haible  <bruno@clisp.org>
41718
41719         * lib/gethostname.c (gethostname): Fix handling of large len argument.
41720         Add comments.
41721
41722 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41723
41724         * lib/gethostname.c: Add Windows wrapper.
41725         * m4/gethostname.m4: Look for gethostname in -lws2_32.
41726         * modules/gethostname: Depend on sys_socket & errno, for also
41727         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
41728         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
41729
41730 2009-07-31  Jim Meyering  <meyering@redhat.com>
41731
41732         getloadavg: fix symbol name in comment
41733         * lib/getloadavg.c: Correct a typo I introduced when adding
41734         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
41735         Matt Kraai spotted the problem.
41736
41737 2009-07-29  Matt Kraai  <mkraai@beckman.com>
41738
41739         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
41740         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
41741         code also if ! defined N_NAME_POINTER.
41742         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
41743         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
41744         but the n_name member is a 12-byte array.
41745
41746 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
41747
41748         update-copyright: generalize comment handling
41749         * build-aux/update-copyright: Handle copyright statements
41750         within more comment styles.
41751         Document usage.
41752         Report any file with an external copyright holder or parse failure.
41753
41754 2009-07-29  Jim Meyering  <meyering@redhat.com>
41755
41756         mktime: correct setting of REPLACE_MKTIME
41757         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
41758
41759         update-copyright: new module
41760         * modules/update-copyright: New file.
41761         * build-aux/update-copyright: New file.
41762         * MODULES.html.sh (maint+release support): Add update-copyright.
41763
41764 2009-07-27  Bruno Haible  <bruno@clisp.org>
41765
41766         Fix compilation error when <ctime> is used and mktime is replaced.
41767         * lib/time.in.h (mktime): New declaration.
41768         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
41769         REPLACE_MKTIME instead of defining mktime in config.h.
41770         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
41771         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
41772         Reported by Ross McFarland <rwmcfa1@neces.com>.
41773
41774 2009-07-27  Bruno Haible  <bruno@clisp.org>
41775
41776         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
41777         Reported by Matt Kraai <mkraai@beckman.com>.
41778
41779 2009-07-25  Jim Meyering  <meyering@redhat.com>
41780
41781         maint.mk: avoid warnings about missing files
41782         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
41783         diagnostic when .prev-version does not exist.
41784         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
41785         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
41786         nonexistent cfg.mk.
41787         Suggestions from Simon Josefsson.
41788
41789 2009-07-25  Bruno Haible  <bruno@clisp.org>
41790
41791         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
41792         defined as macros. Needed on QNX 6.4.1.
41793         Reported by Matt Kraai <mkraai@beckman.com>.
41794
41795 2009-07-23  Jim Meyering  <meyering@redhat.com>
41796
41797         maint.mk: invoke "make dist" with a working value of XZ_OPT
41798         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
41799
41800 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
41801
41802         Make fseeko.c compile on QNX.
41803         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
41804
41805 2009-07-22  Peter Simons  <simons@cryp.to>
41806
41807         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
41808         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
41809         * lib/md4.h: Likewise.
41810         * lib/md5.h: Likewise.
41811         * lib/sha1.h: Likewise.
41812         * lib/sha256.h: Likewise.
41813         * lib/sha512.h: Likewise.
41814
41815         tests-sha1: don't assign literal string to 'char *' variable
41816         * tests/test-sha1.c (main): Declare locals with "const" to match
41817         attributes of the right hand side.
41818
41819 2009-07-21  Eric Blake  <ebb9@byu.net>
41820
41821         dup2: fix more mingw problems
41822         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
41823         fd to itself.
41824         * doc/posix-functions/dup2.texi (dup2): Document the bug.
41825         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
41826         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
41827         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
41828         care of mingw bugs.
41829
41830 2009-07-21  Jim Meyering  <meyering@redhat.com>
41831
41832         vc-list-files: avoid failure when /bin/sh is dash
41833         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
41834         On some Debian based systems, /bin/sh is a symlink to dash, and running
41835         this command would omit the "/" following each 'tests' prefix:
41836           dash -x build-aux/vc-list-files -C . tests
41837         That is because bash and dash work differently:
41838           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
41839           bash ok
41840           dash odd
41841
41842 2009-07-21  Eric Blake  <ebb9@byu.net>
41843
41844         dup2-tests: test previous patch
41845         * modules/dup2-tests: New file.
41846         * tests/test-dup2.c: Likewise.
41847         * tests/test-open.c (main): Avoid unspecified behavior.
41848         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
41849         test.
41850
41851         dup2: work around mingw and cygwin 1.5 bug
41852         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
41853         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41854         * modules/unistd (Makefile.am): Substitute it.
41855         * lib/unistd.in.h (dup2): Declare the replacement.
41856         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
41857         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
41858         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
41859         * modules/execute (Depends-on): Add dup2.
41860         * modules/fseterr (Depends-on): Likewise.
41861         * modules/pipe (Depends-on): Likewise.
41862         * modules/posix_spawn-internal (Depends-on): Likewise.
41863
41864 2009-07-21  Bruno Haible  <bruno@clisp.org>
41865
41866         * modules/.gitattributes: New file.
41867
41868 2009-07-20  Bruno Haible  <bruno@clisp.org>
41869
41870         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
41871         (main): Use it.
41872
41873 2009-07-20  Eric Blake  <ebb9@byu.net>
41874
41875         test-pipe: make a bit more robust.
41876         * tests/test-pipe.c (myerr): Allow error messages regardless of
41877         what we do to stderr.
41878         (test_pipe): Rearrange to avoid deadlock.
41879         (child_main): Try a larger read, to ensure we avoided deadlock.
41880         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
41881         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
41882         if misused.
41883
41884 2009-07-19  Jim Meyering  <meyering@redhat.com>
41885
41886         fts: avoid false-positive cycle-detection
41887         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
41888         for each new command line argument.
41889
41890 2009-07-19  Bruno Haible  <bruno@clisp.org>
41891
41892         Fix build error on mingw with the modules sys_select and unistd.
41893         * modules/acl-tests (Depends-on): Add close.
41894         * modules/binary-io-tests (Depends-on): Likewise.
41895         * modules/closein-tests (Depends-on): Likewise.
41896         * modules/flock-tests (Depends-on): Likewise.
41897         * modules/fsync-tests (Depends-on): Likewise.
41898         * modules/lseek-tests (Depends-on): Likewise.
41899         * modules/pipe-tests (Depends-on): Likewise.
41900         * modules/posix_spawn-tests (Depends-on): Likewise.
41901         * modules/posix_spawnp-tests (Depends-on): Likewise.
41902         * modules/stat-time-tests (Depends-on): Likewise.
41903         * modules/yesno-tests (Depends-on): Likewise.
41904
41905 2009-07-19  Bruno Haible  <bruno@clisp.org>
41906
41907         Unify conditionals.
41908         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
41909         macros, not at the compiler macros.
41910         * lib/pipe.c: Likewise.
41911         * lib/execute.c: Likewise.
41912         * lib/spawni.c: Likewise.
41913
41914 2009-07-19  Bruno Haible  <bruno@clisp.org>
41915
41916         Fix handling of closed stdin/stdout/stderr on mingw.
41917         * lib/w32spawn.h: Include unistd.h.
41918         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
41919         file descriptor with O_NOINHERIT flag.
41920         (fd_safer_noinherit): New function, based on fd-safer.c.
41921         (dup_safer_noinherit): New function, based on dup-safer.c.
41922         (undup_safer_noinherit): New function.
41923         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
41924         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
41925         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
41926         instead of fd_safer.
41927         * tests/test-pipe.c: Include <windows.h>.
41928         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
41929         result.
41930
41931         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
41932         from main.
41933         (test_pipe): Pass an extra argument for disambiguation.
41934         (main): Invoke parent_main or child_main.
41935
41936         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
41937         consistently.
41938
41939 2009-07-18  Eric Blake  <ebb9@byu.net>
41940
41941         test-pipe: fix mingw build
41942         * tests/test-pipe.c (main): Avoid fcntl on mingw.
41943
41944 2009-07-18  Bruno Haible  <bruno@clisp.org>
41945
41946         * modules/pipe-tests (Makefile.am): Fix typo.
41947
41948 2009-07-18  Eric Blake  <ebb9@byu.net>
41949
41950         error: fix mingw build
41951         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
41952         Reported by Bruno Haible.
41953
41954         error: avoid undefined use of stdout
41955         * lib/error.c (error, error_at_line): Check that fd 1 is open
41956         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
41957         is handling faults and the close_stdout module wants to report the
41958         detection of closed stdout as an error.
41959
41960 2009-07-17  Eric Blake  <ebb9@byu.net>
41961
41962         pipe: be robust in face of closed fds
41963         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
41964         should cause child to misbehave.
41965         * modules/pipe-tests: New module.
41966         * tests/test-pipe.c: New file.
41967         * tests/test-pipe.sh: New file.
41968         Reported by Akim Demaille.
41969
41970 2009-07-14  Bruno Haible  <bruno@clisp.org>
41971
41972         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
41973         Reported by anonymous kc.
41974
41975 2009-07-07  Jim Meyering  <meyering@redhat.com>
41976
41977         maint.mk: don't look for translatable strings in *.m4 or *.mk
41978         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
41979         when searching for translatable strings.
41980
41981 2009-07-05  Jim Meyering  <meyering@redhat.com>
41982
41983         remove superfluous parentheses in STREQ definition
41984         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
41985         * lib/getugroups.c (STREQ): Likewise.
41986         * lib/fnmatch.c (STREQ): Likewise.
41987         Spotted by Bruno Haible.
41988
41989 2009-07-04  Jim Meyering  <meyering@redhat.com>
41990
41991         argv-iter: new module
41992         * MODULES.html.sh: Add argv-iter.
41993         * lib/argv-iter.c, lib/argv-iter.h: New files.
41994         * modules/argv-iter: New file.
41995         * modules/argv-iter-tests: New file.
41996         * tests/test-argv-iter.c: Test it.
41997
41998 2009-07-04  Bruno Haible  <bruno@clisp.org>
41999
42000         Fix assertion.
42001         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42002         contains more exact copies of a given entry than file2, leave the extra
42003         copies unpaired rather than aborting.
42004         Reported by Eric Blake.
42005
42006 2009-07-02  Bruno Haible  <bruno@clisp.org>
42007
42008         Speedup git-merge-changelog for git cherry-pick.
42009         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42010         (entries_mapping_get): New function, extracted from compute_mapping.
42011         (entries_mapping_reverse_get): New function.
42012         (compute_mapping): Add a 'full' argument. Return the result in a
42013         'struct entries_mapping'.
42014         (main): Update. Access the mappings through entries_mapping_get.
42015         Reported by Eric Blake.
42016
42017 2009-07-02  Bruno Haible  <bruno@clisp.org>
42018
42019         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42020         best_i.
42021
42022 2009-07-02  Bruno Haible  <bruno@clisp.org>
42023
42024         Speed up approximate search for matching ChangeLog entries.
42025         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42026         argument. Call fstrcmp_bounded instead of fstrcmp.
42027         (compute_mapping, try_split_merged_entry, main): Update callers.
42028
42029 2009-07-02  Bruno Haible  <bruno@clisp.org>
42030
42031         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42032
42033 2009-06-30  Bruno Haible  <bruno@clisp.org>
42034
42035         Reduce the number of uc_is_cased calls.
42036         * lib/unicase.h (casing_suffix_context_t): Add
42037         'first_char_except_ignorable' field.
42038         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42039         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42040         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42041         Update initializer.
42042         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42043         case-ignorable characters.
42044         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42045         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42046         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42047         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42048         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42049
42050 2009-06-30  Bruno Haible  <bruno@clisp.org>
42051
42052         Tests for module 'unicase/ignorable'.
42053         * modules/unicase/ignorable-tests: New file.
42054         * tests/unicase/test-ignorable.c: New file, generated by
42055         gen-uni-tables.
42056
42057         Tests for module 'unicase/cased'.
42058         * modules/unicase/cased-tests: New file.
42059         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42060         * tests/unicase/test-predicate-part1.h: New file, derived from
42061         tests/unictype/test-predicate-part1.h.
42062         * tests/unicase/test-predicate-part2.h: New file, same as
42063         tests/unictype/test-predicate-part2.h.
42064
42065         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42066         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42067         (output_casing_properties): New function.
42068         (main): Call it.
42069         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42070         * lib/unicase/cased.c: Include unictype/bitmap.h.
42071         (uc_is_cased): Define through a bitmap lookup.
42072         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42073         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42074         (uc_is_case_ignorable): Define through a bitmap lookup.
42075         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42076         lib/unictype/bitmap.h.
42077         (Depends-on): Add inline. Clean up.
42078         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42079         lib/unictype/bitmap.h.
42080         (Depends-on): Add inline. Clean up.
42081         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42082         recognition.
42083         * tests/unicase/test-u16-tolower.c (main): Likewise.
42084         * tests/unicase/test-u32-tolower.c (main): Likewise.
42085
42086 2009-06-30  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42089         * lib/unicase/u16-casemap.c: Likewise.
42090         * lib/unicase/u32-casemap.c: Likewise.
42091
42092 2009-06-29  Bruno Haible  <bruno@clisp.org>
42093
42094         Define u32_casefold as a wrapper around u32_ct_casefold.
42095         * lib/unicase/u32-casefold.c: Update.
42096         * modules/unicase/u32-casefold (Depends-on): Add
42097         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42098         unicase/empty-suffix-context. Clean up.
42099
42100         Define u16_casefold as a wrapper around u16_ct_casefold.
42101         * lib/unicase/u16-casefold.c: Update.
42102         * modules/unicase/u16-casefold (Depends-on): Add
42103         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42104         unicase/empty-suffix-context. Clean up.
42105
42106         Define u8_casefold as a wrapper around u8_ct_casefold.
42107         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42108         * lib/unicase/u8-casefold.c: Update.
42109         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42110         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42111
42112         Define u32_totitle as a wrapper around u32_ct_totitle.
42113         * lib/unicase/u32-totitle.c: Update.
42114         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42115         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42116
42117         Define u16_totitle as a wrapper around u16_ct_totitle.
42118         * lib/unicase/u16-totitle.c: Update.
42119         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42120         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42121
42122         Define u8_totitle as a wrapper around u8_ct_totitle.
42123         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42124         functions.
42125         (FUNC): Delegate to U_CT_TOTITLE.
42126         * lib/unicase/u8-totitle.c: Update.
42127         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42128         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42129
42130         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42131         invocation.
42132         * modules/unicase/u32-tolower (Depends-on): Add
42133         unicase/empty-prefix-context, unicase/empty-suffix-context.
42134
42135         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42136         invocation.
42137         * modules/unicase/u16-tolower (Depends-on): Add
42138         unicase/empty-prefix-context, unicase/empty-suffix-context.
42139
42140         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42141         * modules/unicase/u8-tolower (Depends-on): Add
42142         unicase/empty-prefix-context, unicase/empty-suffix-context.
42143
42144         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42145         invocation.
42146         * modules/unicase/u32-toupper (Depends-on): Add
42147         unicase/empty-prefix-context, unicase/empty-suffix-context.
42148
42149         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42150         invocation.
42151         * modules/unicase/u16-toupper (Depends-on): Add
42152         unicase/empty-prefix-context, unicase/empty-suffix-context.
42153
42154         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42155         * modules/unicase/u8-toupper (Depends-on): Add
42156         unicase/empty-prefix-context, unicase/empty-suffix-context.
42157
42158         New module 'unicase/u32-ct-casefold'.
42159         * lib/unicase/u32-ct-casefold.c: New file.
42160         * modules/unicase/u32-ct-casefold: New file.
42161
42162         New module 'unicase/u16-ct-casefold'.
42163         * lib/unicase/u16-ct-casefold.c: New file.
42164         * modules/unicase/u16-ct-casefold: New file.
42165
42166         New module 'unicase/u8-ct-casefold'.
42167         * lib/unicase/u8-ct-casefold.c: New file.
42168         * lib/unicase/u-ct-casefold.h: New file, derived from
42169         lib/unicase/u-casefold.h.
42170         * modules/unicase/u8-ct-casefold: New file.
42171
42172         New module 'unicase/u32-ct-totitle'.
42173         * lib/unicase/u32-ct-totitle.c: New file.
42174         * modules/unicase/u32-ct-totitle: New file.
42175
42176         New module 'unicase/u16-ct-totitle'.
42177         * lib/unicase/u16-ct-totitle.c: New file.
42178         * modules/unicase/u16-ct-totitle: New file.
42179
42180         New module 'unicase/u8-ct-totitle'.
42181         * lib/unicase/u8-ct-totitle.c: New file.
42182         * lib/unicase/u-ct-totitle.h: New file, derived from
42183         lib/unicase/u-totitle.h.
42184         * modules/unicase/u8-ct-totitle: New file.
42185
42186         New module 'unicase/u32-ct-tolower'.
42187         * lib/unicase/u32-ct-tolower.c: New file.
42188         * modules/unicase/u32-ct-tolower: New file.
42189
42190         New module 'unicase/u16-ct-tolower'.
42191         * lib/unicase/u16-ct-tolower.c: New file.
42192         * modules/unicase/u16-ct-tolower: New file.
42193
42194         New module 'unicase/u8-ct-tolower'.
42195         * lib/unicase/u8-ct-tolower.c: New file.
42196         * modules/unicase/u8-ct-tolower: New file.
42197
42198         New module 'unicase/u32-ct-toupper'.
42199         * lib/unicase/u32-ct-toupper.c: New file.
42200         * modules/unicase/u32-ct-toupper: New file.
42201
42202         New module 'unicase/u16-ct-toupper'.
42203         * lib/unicase/u16-ct-toupper.c: New file.
42204         * modules/unicase/u16-ct-toupper: New file.
42205
42206         New module 'unicase/u8-ct-toupper'.
42207         * lib/unicase/u8-ct-toupper.c: New file.
42208         * modules/unicase/u8-ct-toupper: New file.
42209
42210         Add context arguments to u*_casemap functions.
42211         * lib/unicase/unicasemap.h: Include unicase.h.
42212         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42213         suffix_context arguments.
42214         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42215         functions.
42216         (FUNC): Add prefix_context and suffix_context arguments. Use
42217         uc_is_cased and uc_is_case_ignorable.
42218         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42219         * lib/unicase/u16-casemap.c: Likewise.
42220         * lib/unicase/u32-casemap.c: Likewise.
42221         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42222         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42223         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42224         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42225         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42226         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42227
42228         New module 'unicase/u32-suffix-context'.
42229         * lib/unicase/u32-suffix-context.c: New file.
42230         * modules/unicase/u32-suffix-context: New file.
42231
42232         New module 'unicase/u16-suffix-context'.
42233         * lib/unicase/u16-suffix-context.c: New file.
42234         * modules/unicase/u16-suffix-context: New file.
42235
42236         New module 'unicase/u8-suffix-context'.
42237         * lib/unicase/u8-suffix-context.c: New file.
42238         * lib/unicase/u-suffix-context.h: New file.
42239         * modules/unicase/u8-suffix-context: New file.
42240
42241         New module 'unicase/empty-suffix-context'.
42242         * lib/unicase/empty-suffix-context.c: New file.
42243         * modules/unicase/empty-suffix-context: New file.
42244
42245         New module 'unicase/u32-prefix-context'.
42246         * lib/unicase/u32-prefix-context.c: New file.
42247         * modules/unicase/u32-prefix-context: New file.
42248
42249         New module 'unicase/u16-prefix-context'.
42250         * lib/unicase/u16-prefix-context.c: New file.
42251         * modules/unicase/u16-prefix-context: New file.
42252
42253         New module 'unicase/u8-prefix-context'.
42254         * lib/unicase/u8-prefix-context.c: New file.
42255         * lib/unicase/u-prefix-context.h: New file.
42256         * lib/unicase/context.h: New file.
42257         * modules/unicase/u8-prefix-context: New file.
42258
42259         New module 'unicase/empty-prefix-context'.
42260         * lib/unicase/empty-prefix-context.c: New file.
42261         * modules/unicase/empty-prefix-context: New file.
42262
42263         New module 'unicase/ignorable'.
42264         * lib/unicase/ignorable.c: New file.
42265         * modules/unicase/ignorable: New file.
42266
42267         New module 'unicase/cased'.
42268         * lib/unicase/caseprop.h: New file.
42269         * lib/unicase/cased.c: New file.
42270         * modules/unicase/cased: New file.
42271
42272         New functions for case mapping of substrings.
42273         * lib/unicase.h (casing_prefix_context_t): New type.
42274         (unicase_empty_prefix_context): New variable.
42275         (u8_casing_prefix_context, u16_casing_prefix_context,
42276         u32_casing_prefix_context, u8_casing_prefixes_context,
42277         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42278         declarations.
42279         (casing_suffix_context_t): New type.
42280         (unicase_empty_suffix_context): New variable.
42281         (u8_casing_suffix_context, u16_casing_suffix_context,
42282         u32_casing_suffix_context, u8_casing_suffixes_context,
42283         u16_casing_suffixes_context, u32_casing_suffixes_context,
42284         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42285         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42286         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42287         declarations.
42288
42289 2009-06-28  Jim Meyering  <meyering@redhat.com>
42290
42291         boostrap: indent only with spaces
42292         * build-aux/bootstrap: Indent only with spaces, never TABs.
42293
42294         bootstrap: split long lines
42295         * build-aux/bootstrap: Keep line length < 80.
42296
42297         bootstrap: sync from coreutils
42298         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42299         just as autoreconf does.  Verify a list of prerequisite
42300         package-name,version-number pairs if defined in bootstrap.conf.
42301         Refer to README-prereq, if prerequisites are not satisfied.
42302
42303 2009-06-27  Eric Blake  <ebb9@byu.net>
42304
42305         tests: add test for bogus NULL definition
42306         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42307         * tests/test-stdlib.c: Likewise.
42308         * tests/test-string.c: Likewise.
42309         * tests/test-locale.c: Likewise.
42310         * tests/test-unistd.c: Likewise.
42311         * modules/stdio-tests (Depends-on): Add verify.
42312         * modules/stdlib-tests (Depends-on): Likewise.
42313         * modules/string-tests (Depends-on): Likewise.
42314         * modules/locale-tests (Depends-on): Likewise.
42315         * modules/unistd-tests (Depends-on): Likewise.
42316
42317 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42318
42319         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42320         self-explaining comment.
42321         * m4/selinux-selinux-h: Update serial.
42322         (gl_LIBSELINUX): New macro, adding a warning for missing development
42323         packages to code extracted from...
42324         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42325         Add warning for missing development packages here, too.
42326
42327 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42328
42329         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42330
42331 2009-06-25  Eric Blake  <ebb9@byu.net>
42332
42333         version-etc: fix regression
42334         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42335         gcc.
42336         (version_etc): Use it, to catch bugs with trailing NULL.
42337         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42338         (version_etc_va): Fix logic bug.
42339         * modules/version-etc-tests: Add test.
42340         * tests/test-version-etc.c: New file.
42341         * tests/test-version-etc.sh: Likewise.
42342
42343 2009-06-25  Sam Steingold  <sds@gnu.org>
42344
42345         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42346         mbtowc declaration.
42347
42348 2009-06-25  Eric Blake  <ebb9@byu.net>
42349
42350         fpurge: migrate into <stdio.h>
42351         * lib/fpurge.h: Delete...
42352         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42353         * lib/fpurge.c (fpurge): Change declaring header.
42354         * modules/fpurge (Files): Drop deleted file.
42355         (Depends-on): Add stdio.
42356         (configure.ac): Set witness.
42357         * modules/stdio (Makefile.am): Support fpurge macros.
42358         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42359         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42360         * lib/fflush.c: Update client.
42361         * tests/test-fpurge.c: Likewise.
42362         * NEWS: Mention the change.
42363
42364 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42365
42366         * lib/argp-version-etc.c (program_authors): Add const
42367         qualifier.
42368         * lib/version-etc.c: Fix typos in the comments.
42369         * modules/argp-version-etc: Depends on version-etc.
42370
42371 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42372
42373         argp-version-etc: new module.
42374
42375         * lib/argp-version-etc.c: New file.
42376         * lib/argp-version-etc.h: New file.
42377         * modules/argp-version-etc: New file.
42378         * modules/argp-version-etc-tests: New file.
42379         * tests/test-argp-version-etc.c: New test.
42380         * tests/test-argp-version-etc-1.sh: New test.
42381
42382 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42383
42384         Provide additional interfaces and documentation for version-etc
42385         module.
42386
42387         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42388         interfaces.
42389         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42390         prototypes.
42391
42392 2009-06-24  Bruno Haible  <bruno@clisp.org>
42393
42394         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42395         HAVE_LIB${NAME} macro.
42396         Reported by Sam Steingold <sds@gnu.org>.
42397
42398 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42399
42400         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42401         needed.
42402
42403 2009-06-21  Bruno Haible  <bruno@clisp.org>
42404
42405         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42406         work.
42407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42408         together with LIB${NAME}, LTLIB${NAME}.
42409         Reported by Sam Steingold <sds@gnu.org>.
42410
42411 2009-06-20  Jim Meyering  <meyering@redhat.com>
42412
42413         tests: make sc_require_test_exit_idiom more generic
42414         * top/maint.mk (Exit_witness_file): New overridable variable.
42415         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42416         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42417
42418 2009-06-19  Jim Meyering  <meyering@redhat.com>
42419
42420         hash: reverse order of src/dst parameters in an internal interface
42421         * lib/hash.c (transfer_entries): Reverse order of parameters to
42422         put DST before SRC.  Adjust callers.
42423
42424         tests: test-hash: avoid wholesale duplication
42425         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42426         Instead, use a loop and add a single conditional.
42427
42428         tests: test-hash: allow seed selection via a command line argument
42429         * tests/test-hash.c (get_seed): New function.
42430         (main): Use it.
42431
42432 2009-06-19  Eric Blake  <ebb9@byu.net>
42433
42434         hash: avoid memory leak on allocation failure
42435         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42436         failure.  Factor repeated algorithm...
42437         (transfer_entries): ...into new helper routine.
42438         (hash_delete): React to hash_rehash return value.
42439
42440         hash: reduce memory pressure in hash_rehash no-op case
42441         * lib/hash.c (next_prime): Avoid overflow.
42442         (hash_initialize): Factor bucket size computation...
42443         (compute_bucket_size): ...into new helper function.
42444         (hash_rehash): Use new function and open coding to reduce memory
42445         pressure, and avoid a memory leak in USE_OBSTACK code.
42446         Reported by Jim Meyering.
42447
42448 2009-06-18  Eric Blake  <ebb9@byu.net>
42449
42450         hash: make rotation more obvious
42451         * modules/hash (Depends-on): Add bitrotate and stdint.
42452         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
42453         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
42454         (SIZE_MAX): Rely on headers for definition.
42455         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
42456         (raw_hasher): Use rotr_sz.
42457         Suggested by Jim Meyering.
42458
42459         hash: fix memory leak in last patch
42460         * lib/hash.c (hash_rehash): Avoid memory leak.
42461
42462         hash: avoid no-op rehashing
42463         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
42464
42465         hash: provide default callback functions
42466         * lib/hash.c (raw_hasher, raw_comparator): New functions.
42467         (hash_initialize): Use them as defaults.
42468         * tests/test-hash.c (main): Test this.
42469
42470         hash: minor optimization
42471         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
42472         when possible.
42473         (hash_initialize): Document this promise.
42474         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
42475         * tests/test-hash.c (hash_compare_strings): Test this.
42476
42477 2009-06-18  Bruno Haible  <bruno@clisp.org>
42478
42479         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
42480         going to be replaced anyway.
42481
42482 2009-06-18  Bruno Haible  <bruno@clisp.org>
42483
42484         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
42485         in one place.
42486         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
42487         be replaced anyway.
42488
42489 2009-06-18  Eric Blake  <ebb9@byu.net>
42490
42491         hash: check for resize before insertion
42492         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
42493         threshold before insertion, so that a pathological hash_rehash
42494         that fills every bucket can still trigger another rehash.
42495
42496 2009-06-18  Jim Meyering  <meyering@redhat.com>
42497
42498         hash-tests: add a loop around the small tests
42499         * tests/test-hash.c (main): Repeat small tests with selected
42500         small initial table sizes.
42501
42502 2009-06-17  Eric Blake  <ebb9@byu.net>
42503
42504         hash: minor cleanups
42505         * lib/hash.h (hash_entry): Make opaque, by moving...
42506         * lib/hash.c (hash_entry): ...here.
42507         (hash_insert): Clarify restrictions on what can be inserted.
42508         (hash_get_next): Clarify when it is safe to remove an element
42509         during traversal.
42510         (check_tuning): Skip verification when tuning is known safe.
42511         (hash_initialize): Clarify restrictions on tuning.
42512
42513 2009-06-17  Jim Meyering  <jim@meyering.net>
42514         and Eric Blake  <ebb9@byu.net>
42515
42516         hash-tests: new module
42517         * modules/hash-tests: New file.
42518         * tests/test-hash.c: New file.
42519
42520 2009-06-17  Eric Blake  <ebb9@byu.net>
42521
42522         strstr-simple: document new module
42523         * MODULES.html.sh: Document new module.
42524
42525         strstr, strcasestr: replace on platforms with broken memchr
42526         * modules/strstr: Split into...
42527         * modules/strstr-simple: ...new module that does not care about
42528         performance, but does care about glibc bug.
42529         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
42530         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
42531         if platform memchr is broken, per Debian bug 521737.
42532         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
42533         memchr.
42534         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
42535         * doc/posix-functions/strstr.texi (strstr): Document the fix.
42536         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
42537         * modules/mountlist (Depends-on): Add strstr-simple.
42538         * modules/gen-uni-tables (Depends-on): Likewise.
42539         * modules/argz (Depends-on): Add strstr.
42540
42541 2009-06-17  Bruno Haible  <bruno@clisp.org>
42542
42543         * modules/posix_spawn-internal (Depends-on): Add errno.
42544
42545 2009-06-17  Bruno Haible  <bruno@clisp.org>
42546
42547         Define missing ESTALE on Interix 3.5.
42548         * lib/errno.in.h (ESTALE): Assign a value if missing.
42549         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
42550         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
42551         missing.
42552         * doc/posix-headers/errno.texi: Mention the Interix bug.
42553         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
42554
42555 2009-06-15  Eric Blake  <ebb9@byu.net>
42556
42557         memchr, memchr2: add valgrind exception
42558         * lib/memchr.valgrind: New file.
42559         * lib/memchr2.valgrind: New file.
42560         * modules/memchr (Files): Distribute valgrind file.
42561         * modules/memchr2 (Files): Likewise.
42562
42563         docs: memchr is no longer obsolete
42564         * MODULES.html.sh: Move memchr from obsolete to string.h section.
42565         * lib/string.in.h (memchr): Simplify logic.
42566
42567 2009-06-14  Jim Meyering  <meyering@redhat.com>
42568
42569         link-follow: fix the "checking..." message to not mention trailing slash
42570         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
42571         never considered trailing slashes.
42572
42573 2009-06-14  Bruno Haible  <bruno@clisp.org>
42574
42575         * m4/memchr.m4: Mention also the bug on IA-64.
42576         * doc/posix-functions/memchr.texi: Likewise.
42577
42578 2009-06-12  Eric Blake  <ebb9@byu.net>
42579
42580         memchr: detect broken x86_64 and alpha implementations
42581         * modules/memchr-tests (Depends-on): Move mmap detection...
42582         * modules/memchr (Depends-on): ...here.
42583         (configure.ac): Set indicator.
42584         * lib/string.in.h (memchr): Declare replacement.
42585         * modules/string (Makefile.am): Trigger replacement.
42586         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
42587         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
42588         bugs.
42589         * doc/posix-functions/memchr.texi (memchr): Document the bug.
42590         * modules/getpagesize (License): Relax license.
42591
42592 2009-06-11  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/idpriv.h: Add more references.
42595
42596 2009-06-08  Bruno Haible  <bruno@clisp.org>
42597
42598         Tests for module 'idpriv-droptemp'.
42599         * modules/idpriv-droptemp-tests: New file.
42600         * tests/test-idpriv-droptemp.sh: New file.
42601         * tests/test-idpriv-droptemp.su.sh: New file.
42602         * tests/test-idpriv-droptemp.c: New file.
42603
42604         New module 'idpriv-droptemp'.
42605         * lib/idpriv-droptemp.c: New file.
42606         * modules/idpriv-droptemp: New file.
42607
42608 2009-06-08  Bruno Haible  <bruno@clisp.org>
42609
42610         Tests for module 'idpriv-drop'.
42611         * modules/idpriv-drop-tests: New file.
42612         * tests/test-idpriv-drop.sh: New file.
42613         * tests/test-idpriv-drop.su.sh: New file.
42614         * tests/test-idpriv-drop.c: New file.
42615
42616         New module 'idpriv-drop'.
42617         * lib/idpriv.h: New file.
42618         * lib-idpriv-drop.c: New file.
42619         * m4/idpriv.m4: New file.
42620         * modules/idpriv-drop: New file.
42621
42622 2009-06-08  Bruno Haible  <bruno@clisp.org>
42623
42624         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
42625         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
42626         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
42627         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
42628         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
42629         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
42630         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
42631
42632 2009-06-08  Eric Blake  <ebb9@byu.net>
42633
42634         test-strstr: use memory fence, when possible
42635         * tests/test-strstr.c (main): Use memory fence, in order to be
42636         more likely to trigger Debian bug 521737.
42637         * modules/strstr-tests (Files): Pull in additional files.
42638
42639         memchr: no longer obsolete, for wider field testing
42640         * modules/memchr (Status, Notice): Delete, this module is no
42641         longer obsolete.
42642         * modules/vasnprintf (Depends-on): Add memchr.
42643
42644 2009-06-07  Jim Meyering  <meyering@redhat.com>
42645
42646         hash: declare some functions with the warn_unused_result attribute
42647         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
42648
42649 2009-06-07  Bruno Haible  <bruno@clisp.org>
42650
42651         * tests/test-alignof.c: Don't test int64_t if it does not exist.
42652         Reported by Eric Blake.
42653
42654 2009-06-06  Eric Blake  <ebb9@byu.net>
42655
42656         test-alignof: fix typo with long double
42657         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
42658         compiler error.
42659
42660 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
42661
42662         Escape non-texinfo { and }s.
42663         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
42664         markup error.
42665
42666 2009-06-04  Jim Meyering  <meyering@redhat.com>
42667
42668         gitlog-to-changelog: don't infloop on an empty commit log
42669         * build-aux/gitlog-to-changelog: Warn about an empty log message.
42670         Reported by Boris Petersen <transacid@centerim.org>.
42671
42672 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
42673
42674         version-etc: extend for packagers
42675         Add three new configure options, intended for packagers:
42676           --with-packager="packager name"
42677           --with-packager-version="packager-specific version"
42678           --with-packager-bug-reports="packager bug reporting"
42679         An example with coreutils:
42680           $ ./configure \
42681             --with-packager=Gentoo \
42682             --with-packager-bug-report=http://bugs.gentoo.org/ \
42683             --with-packager-version="patchset 1.6"
42684           $ ./src/ls --version | head -n2
42685           ls (GNU coreutils) 7.1-dirty
42686           Packaged by Gentoo (patchset 1.6)
42687         Note that the bug reporting info via --help doesn't show up because
42688         coreutils uses its own custom emit_bug_reporting_address() implementation
42689         in src/system.h.  If it didn't, it'd look like:
42690           $ ./src/ls --help | tail -n4
42691           Report bugs to <bug-coreutils@gnu.org>.
42692           Report Gentoo bugs to <http://bugs.gentoo.org/>.
42693           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
42694           General help using GNU software: <http://www.gnu.org/gethelp/>.
42695         * lib/version-etc.c: Print new information, if provided.
42696         * m4/version-etc.m4: New file.
42697         * modules/version-etc (Files): Add m4/version-etc.m4.
42698         (configure.ac): Add gl_VERSION_ETC.
42699
42700 2009-05-31  Bruno Haible  <bruno@clisp.org>
42701
42702         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
42703         and 'int64_t'.
42704         * modules/alignof-tests (Dependencies): Add stdint.
42705         Reported by Eric Blake.
42706
42707 2009-05-31  Bruno Haible  <bruno@clisp.org>
42708
42709         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
42710         restriction due to compiler bugs.
42711         Reported by Eric Blake.
42712
42713 2009-05-31  Simon Josefsson  <simon@josefsson.org>
42714             Bruno Haible  <bruno@clisp.org>
42715
42716         Fix test-alignof failure.
42717         * lib/alignof.h (alignof_slot): New macro.
42718         (alignof_type): New macro, with the same semantics as the previous
42719         'alignof'.
42720         (alignof): Alias to alignof_slot.
42721         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
42722         check that the results are usable as constant expressions.
42723
42724 2009-05-31  Bruno Haible  <bruno@clisp.org>
42725
42726         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
42727         * tests/test-memchr.c (main): Check that memchr does not read past the
42728         first occurrence of the byte.
42729         * tests/test-strstr.c (main): Update comment.
42730         Suggested by Eric Blake.
42731
42732 2009-05-30  Bruno Haible  <bruno@clisp.org>
42733
42734         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
42735         detail how to use dumpbin.
42736         Reported by David Byron <dbyron@dbyron.com>.
42737
42738 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42739
42740         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
42741
42742 2009-06-02  Simon Josefsson  <simon@josefsson.org>
42743
42744         * m4/manywarnings.m4: Add GCC 4.4 warnings.
42745
42746 2009-05-28  Bruno Haible  <bruno@clisp.org>
42747
42748         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
42749         build-aux/ files.
42750
42751 2009-05-28  Simon Josefsson  <simon@josefsson.org>
42752
42753         * gnulib-tool (func_import): Transform license on build-aux/ files too.
42754
42755 2009-05-27  Simon Josefsson  <simon@josefsson.org>
42756
42757         * gnulib-tool (sed_transform_main_lib_file)
42758         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
42759         regexps.
42760
42761 2009-05-26  Simon Josefsson  <simon@josefsson.org>
42762
42763         * tests/test-strstr.c: Add another self-test.
42764         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
42765         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
42766
42767 2009-05-23  Bruno Haible  <bruno@clisp.org>
42768
42769         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
42770         change.
42771
42772 2009-05-21  Bruno Haible  <bruno@clisp.org>
42773
42774         Simplify use of mode_t varargs.
42775         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
42776         uses 'mode_t' or 'int'.
42777         * lib/openat.c (openat): Likewise.
42778         * lib/open-safer.c (open_safer): Likewise.
42779         * m4/mode_t.m4: New file.
42780         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
42781         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
42782         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
42783         * modules/open (Files): Add m4/mode_t.m4.
42784         * modules/openat (Files): Likewise.
42785         * modules/fcntl-safer (Files): Likewise.
42786         Suggested by Eric Blake.
42787
42788 2009-05-21  Pádraig Brady  <P@draigbrady.com>
42789
42790         * doc/glibc-functions/fallocate.texi: New file.
42791         * doc/gnulib.texi: Include it.
42792
42793 2009-05-21  Eric Blake  <ebb9@byu.net>
42794             Bruno Haible  <bruno@clisp.org>
42795
42796         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
42797         invocations.
42798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
42799
42800 2009-05-21  Eric Blake  <ebb9@byu.net>
42801             Bruno Haible  <bruno@clisp.org>
42802
42803         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
42804         include_next. Fix of 2008-11-20 commit.
42805         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
42806         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
42807         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
42808         NEXT_MATH_H.
42809         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
42810         instead of NEXT_MATH_H.
42811
42812 2009-05-21  Bruno Haible  <bruno@clisp.org>
42813
42814         Avoid redefinition warnings for SIZE_MAX.
42815         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
42816         Reported by Simon Josefsson.
42817
42818 2009-05-21  Bruno Haible  <bruno@clisp.org>
42819
42820         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
42821         AC_CACHE_VAL.
42822
42823 2009-05-20  Bruno Haible  <bruno@clisp.org>
42824
42825         Make zeroptr.h work on mingw.
42826         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
42827         mprotect.
42828         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
42829         * modules/memchr2-tests (configure.ac): Likewise.
42830         * modules/memcmp-tests (configure.ac): Likewise.
42831         * modules/memmem-tests (configure.ac): Likewise.
42832         * modules/memrchr-tests (configure.ac): Likewise.
42833         Reported by Simon Josefsson.
42834
42835 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42836
42837         * tests/test-glob.c: Include string.h for strcmp prototype.
42838
42839 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42840
42841         * modules/getdelim (Depends-on): Add explicit stdint, although it
42842         was implicitly already pulled in via realloc-posix.
42843         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
42844
42845 2009-05-20  Simon Josefsson  <simon@josefsson.org>
42846
42847         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
42848         G. Christensen" <tgc@jupiterrise.com>.
42849         * m4/sys_socket_h.m4: Check for sa_family_t.
42850         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
42851         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
42852         * tests/test-sys_socket.c: Check that sa_family_t works.
42853
42854 2009-05-18  Eric Blake  <ebb9@byu.net>
42855
42856         maint.mk: allow gnulib_dir in VPATH build
42857         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
42858
42859 2009-05-15  Jim Meyering  <meyering@redhat.com>
42860
42861         maint.mk: Give gnulib_dir a default definition.
42862         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
42863         Thus, most packages no longer need to specify this variable in cfg.mk
42864
42865 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
42866
42867         rename.m4: fix typos that would make non-mingw cross-configure fail
42868         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
42869
42870 2009-05-13  Eric Blake  <ebb9@byu.net>
42871
42872         mmap-anon: avoid out-of-order autoconf expansion
42873         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
42874         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
42875         * modules/memchr-tests (Depends-on): Add extensions.
42876         * modules/memchr2-tests (Depends-on): Add extensions.
42877         * modules/memcmp-tests (Depends-on): Add extensions.
42878         * modules/memmem-tests (Depends-on): Add extensions.
42879         * modules/memrchr-tests (Depends-on): Add extensions.
42880
42881 2009-05-13  Bruno Haible  <bruno@clisp.org>
42882
42883         Make some tests ISO C 99 compliant.
42884         * tests/zerosize-ptr.h: New file.
42885         * tests/test-memchr.c: Include zerosize-ptr.h.
42886         (main): Use a zero-size object pointer instead of NULL.
42887         * tests/test-memchr2.c: Include zerosize-ptr.h.
42888         (main): Use a zero-size object pointer instead of NULL.
42889         * tests/test-memcmp.c: Include zerosize-ptr.h.
42890         (main): Use a zero-size object pointer instead of NULL.
42891         * tests/test-memmem.c: Include zerosize-ptr.h.
42892         (main): Use a zero-size object pointer instead of NULL.
42893         * tests/test-memrchr.c: Include zerosize-ptr.h.
42894         (main): Use a zero-size object pointer instead of NULL.
42895         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
42896         m4/mmap-anon.m4.
42897         (Depends-on): Add getpagesize.
42898         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42899         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
42900         m4/mmap-anon.m4.
42901         (Depends-on): Add getpagesize.
42902         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42903         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
42904         m4/mmap-anon.m4.
42905         (Depends-on): Add getpagesize.
42906         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42907         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
42908         m4/mmap-anon.m4.
42909         (Depends-on): Add getpagesize.
42910         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
42911         * modules/memrchr-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
42916 2009-05-12  Bruno Haible  <bruno@clisp.org>
42917
42918         Tests for module 'alignof'.
42919         * modules/alignof-tests: New file.
42920         * tests/test-alignof.c: New file.
42921
42922 2009-05-12  Bruno Haible  <bruno@clisp.org>
42923
42924         Fix alignof macro.
42925         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
42926         vendor compilers that are always correct.
42927
42928 2009-05-12  Bruno Haible  <bruno@clisp.org>
42929
42930         Make the MAP_ANONYMOUS detection work on HP-UX 11.
42931         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
42932         not whether its fully works.
42933
42934 2009-05-12  Bruno Haible  <bruno@clisp.org>
42935
42936         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
42937
42938 2009-05-12  Jim Meyering  <meyering@redhat.com>
42939
42940         * top/maint.mk: Adjust backslash alignment.
42941
42942 2009-05-11  Simon Josefsson  <simon@josefsson.org>
42943
42944         * top/maint.mk: Make $(srcdir)/build-aux configurable.
42945
42946 2009-05-11  Eric Blake  <ebb9@byu.net>
42947
42948         argp: avoid undefined behavior
42949         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
42950         macros.
42951
42952 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42953
42954         * tests/test-vc-list-files-git.sh: Do git config of user.email and
42955         user.name to prevent git commit from complaining.
42956
42957 2009-05-10  Bruno Haible  <bruno@clisp.org>
42958
42959         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
42960         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
42961         it rewrites every file name only once.
42962         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
42963
42964 2009-05-08  Bruno Haible  <bruno@clisp.org>
42965
42966         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
42967         instead of 'max'.
42968
42969 2009-05-08  Simon Josefsson  <simon@josefsson.org>
42970
42971         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
42972         sockaddr_storage test.
42973
42974 2009-05-07  Simon Josefsson  <simon@josefsson.org>
42975
42976         * modules/sys_socket (Makefile.am): Substitute
42977         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
42978         * m4/sys_socket_h.m4: Check for sockaddr_storage.
42979         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
42980         * tests/test-sys_socket.c: Check sockaddr_storage.
42981
42982 2009-05-08  Bruno Haible  <bruno@clisp.org>
42983
42984         New module 'alignof'.
42985         * lib/alignof.h: New file.
42986         * modules/alignof: New file.
42987
42988 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
42989             Bruno Haible  <bruno@clisp.org>
42990
42991         Fix test-file-has-acl on FreeBSD.
42992         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
42993         mask is implicitly added.
42994         * tests/test-file-has-acl.c: Include <signal.h>.
42995         (main): Terminate the test after 5 seconds.
42996         * modules/acl-tests (configure.ac): Check for alarm function.
42997
42998 2009-05-04  Bruno Haible  <bruno@clisp.org>
42999
43000         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43001         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43002         * modules/errno (configure.ac): Drop AC_REQUIRE.
43003         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43004         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43005
43006 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43007
43008         * modules/glob-tests: New module.
43009         * tests/test-glob.c: Add.
43010
43011 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43012
43013         * modules/fnmatch-tests: New module.
43014         * tests/test-fnmatch.c: Add.
43015
43016 2009-05-04  Eric Blake  <ebb9@byu.net>
43017
43018         maint: make the new no-submodule-changes rule VPATH-safe
43019         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43020
43021 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43022             Bruno Haible  <bruno@clisp.org>
43023
43024         acl: Fix infinite loop on FreeBSD.
43025         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43026         of return value from acl_get_entry.
43027         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43028         Likewise.
43029
43030 2009-05-03  Bruno Haible  <bruno@clisp.org>
43031
43032         * lib/acl-internal.h (acl_entries): Clarify return value.
43033         * lib/acl_entries.c (acl_entries): Likewise.
43034
43035 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43036
43037         Bug fix in acl module.
43038         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43039
43040 2009-05-03  Bruno Haible  <bruno@clisp.org>
43041
43042         Create gperf-generated file in the source dir, not in the build dir.
43043         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43044         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43045         * modules/unicase/locale-language (unicase/locale-languages.h):
43046         Likewise.
43047         * modules/unicase/special-casing (unicase/special-casing-table.h):
43048         Likewise.
43049         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43050         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43051         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43052         Reported by Ralf Wildenhues.
43053
43054 2009-05-03  Bruno Haible  <bruno@clisp.org>
43055
43056         * modules/fnmatch (Description, configure.ac): Taken from
43057         fnmatch-posix.
43058         * modules/fnmatch-posix: Turn into a symbolic reference to the
43059         'fnmatch' module, and deprecate.
43060         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43061
43062 2009-05-03  Bruno Haible  <bruno@clisp.org>
43063
43064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43065         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43066         Reported by Ralf Wildenhues.
43067
43068 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43069
43070         * m4/fnmatch.m4: Fix fnmatch re-define.
43071
43072 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43073
43074         priv-set: new module and tests; adapt write-any-file
43075         * lib/priv-set.c: New file.
43076         * lib/priv-set.h: New file.
43077         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43078         * lib/write-any-file.c: Simplify by using priv-set module.
43079         * m4/priv-set.m4: New file.
43080         * modules/priv-set: New file.
43081         * modules/unlinkdir: Add dependency on priv-set module.
43082         * modules/write-any-file: Likewise.
43083
43084         Tests for module 'priv-set'.
43085         * modules/priv-set-tests: New file.
43086         * tests/test-priv-set.c: New file.
43087
43088 2009-05-03  Jim Meyering  <meyering@redhat.com>
43089             Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43092         use the converted UTF-8 variant of the name instead.
43093
43094 2009-05-03  Jim Meyering  <meyering@redhat.com>
43095
43096         tests: tighten some getdate tests
43097         * tests/test-getdate.c (main): Tighten tests: require equality,
43098         not just greater than.  Set TZ envvar to UTC0.
43099
43100 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43101
43102         getdate: correctly interpret "next monday" when run on a Monday
43103         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43104         that e.g., "next tues" (when run on a tuesday) results in a date
43105         that is one week in the future, and not today's date.
43106         I.e., add a week when the wday is the same as the current one.
43107         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43108         and earlier by Martin Bernreuther and Jan Minář.
43109         * tests/test-getdate.c (main): Check that "next DAY" is always in
43110         the future and that "last DAY" is always in the past.
43111
43112 2009-05-02  Jim Meyering  <meyering@redhat.com>
43113
43114         build: ensure that a release build fails when a submodule is unclean
43115         * top/maint.mk (no-submodule-changes): New rule.
43116         (alpha beta major): Depend on it.
43117
43118 2009-05-02  Bruno Haible  <bruno@clisp.org>
43119
43120         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43121         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43122         shell variable gl_fnmatch_required to detect which variant is
43123         requested.
43124         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43125         gl_FUNC_FNMATCH_POSIX.
43126         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43127         exclude fnmatch-posix.
43128
43129 2009-05-02  Bruno Haible  <bruno@clisp.org>
43130
43131         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43132         * modules/mbsrtowcs (License): Change to LGPLv2+.
43133         * modules/strnlen1 (License): Likewise.
43134         Reported by Simon Josefsson.
43135
43136 2009-05-02  Bruno Haible  <bruno@clisp.org>
43137
43138         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43139         "cross".
43140         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43141         gnulib-tool was called with option --source-base=lib.
43142
43143 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43144
43145         Use automake *-local hooks without commands, for extensibility.
43146         * modules/localcharset (Makefile.am): Rename install-exec-local
43147         rule to install-exec-localcharset, and make it a prerequisite of
43148         install-exec-local.  Likewise, rename the uninstall-local rule to
43149         uninstall-localcharset, and make it a prerequisite of the former.
43150
43151 2009-05-01  Bruno Haible  <bruno@clisp.org>
43152
43153         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43154         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43155         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43156         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43157         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43158         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43159         m4/locale-zh.m4, m4/codeset.m4.
43160
43161         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43162         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43163         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43164         m4/locale-zh.m4.
43165
43166         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43167         REPLACE_WCRTOMB if mbstate_t must be replaced.
43168         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43169         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43170
43171 2009-05-01  Bruno Haible  <bruno@clisp.org>
43172
43173         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43174         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43175         dngettext, dcngettext, textdomain, bindtextdomain,
43176         bind_textdomain_codeset): Undefine before redefining.
43177
43178 2009-04-30  Bruno Haible  <bruno@clisp.org>
43179
43180         Fix bug introduced on 2009-04-25.
43181         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43182         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43183         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43184         is defined.
43185         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43186         is defined.
43187         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43188         is defined.
43189         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43190
43191 2009-04-28  Bruno Haible  <bruno@clisp.org>
43192
43193         Comment tweaks.
43194         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43195         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43196         * lib/unicase.h (u*_casexfrm): Likewise.
43197         Reported by Paolo Bonzini.
43198
43199 2009-04-28  Bruno Haible  <bruno@clisp.org>
43200
43201         Fix a compilation error.
43202         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43203         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43204         Reported by Jim Meyering.
43205
43206 2009-04-27  Bruno Haible  <bruno@clisp.org>
43207
43208         New module 'libunistring'.
43209         * modules/libunistring: New file.
43210         * m4/libunistring.m4: New file.
43211         * MODULES.html.sh (Unicode string functions): Add it.
43212
43213 2009-04-27  Eric Blake  <ebb9@byu.net>
43214
43215         maint.mk: allow package-specific header to provide <config.h>
43216         * top/maint.mk (sc_require_config_h): New variable.
43217         (sc_require_config_h, sc_require_config_h_first): Use it.
43218
43219 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43220
43221         * top/maint.mk (sc_avoid_if_before_free): Except
43222         useless-if-before-free script.
43223
43224 2009-04-27  Eric Blake  <ebb9@byu.net>
43225
43226         maintainer-makefile: depend on all required helper scripts
43227         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43228         useless-if-before-free.
43229         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43230         version, rather than assuming gnulib checkout is available.
43231         Reported by Simen Josefsson.
43232
43233 2009-04-26  Bruno Haible  <bruno@clisp.org>
43234
43235         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43236         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43237         "../" or "..".
43238
43239 2009-04-26  Bruno Haible  <bruno@clisp.org>
43240
43241         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43242         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43243         AC_LIB_HAVE_LINKFLAGS.
43244
43245 2009-04-26  Bruno Haible  <bruno@clisp.org>
43246
43247         Simplify calling convention of u*_conv_from_encoding.
43248         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43249         u32_conv_from_encoding): Expect a resultbuf argument and return the
43250         result directly as a pointer.
43251         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43252         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43253         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43254         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43255         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43256         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43257         Update.
43258         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43259         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43260         * lib/vasnprintf.c (VASNPRINTF): Update.
43261         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43262         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43263         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43264         * NEWS: Mention the change.
43265
43266 2009-04-26  Bruno Haible  <bruno@clisp.org>
43267
43268         Simplify calling convention of u*_conv_to_encoding.
43269         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43270         u32_conv_to_encoding): Expect a resultbuf argument and return the
43271         result directly as a pointer.
43272         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43273         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43274         freeing scaled_offsets if mem_iconveha failed.
43275         * lib/unicase/u-casexfrm.h (FUNC): Update.
43276         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43277         * lib/vasnprintf.c (VASNPRINTF): Update.
43278         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43279         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43280         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43281         * NEWS: Mention the change.
43282
43283 2009-04-26  Bruno Haible  <bruno@clisp.org>
43284
43285         Avoid test failures on AIX and OSF/1.
43286         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43287         malloc(0).
43288         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43289         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43290         Likewise.
43291         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43292         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43293         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43294         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43295         * doc/posix-functions/malloc.texi: Document the portability problem
43296         related to malloc(0).
43297
43298 2009-04-26  Bruno Haible  <bruno@clisp.org>
43299
43300         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43301         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43302         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43303
43304 2009-04-25  Bruno Haible  <bruno@clisp.org>
43305
43306         Avoid link error when creating a namespace clean library.
43307         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43308         as macro with arguments if already defined as an alias.
43309         * lib/signbitf.c (gl_signbitf): Don't undefine.
43310         * lib/signbitd.c (gl_signbitd): Don't undefine.
43311         * lib/signbitl.c (gl_signbitl): Don't undefine.
43312
43313 2009-04-25  Jim Meyering  <meyering@redhat.com>
43314
43315         vc-list-files: fix another quoting bug
43316         * build-aux/vc-list-files: Avoid sed backslash expansion
43317         of pathological directory names.
43318
43319 2009-04-25  Eric Blake  <ebb9@byu.net>
43320
43321         vc-list-files: fix shell quoting error
43322         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43323         timestamp.
43324
43325 2009-04-25  Jim Meyering  <meyering@redhat.com>
43326
43327         vc-list-files: restore lost functionality with subdir argument
43328         * build-aux/vc-list-files: When given a non-"." sub-directory
43329         argument, substitute the $dir/ prefix back onto each resulting name.
43330         Otherwise, coreutils' root_tests check would fail.
43331
43332 2009-04-24  Eric Blake  <ebb9@byu.net>
43333
43334         vc-list-files: ignore git symlinks
43335         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43336         than ls-files, to ignore git symlinks.
43337
43338         maint.mk: import improvements from m4
43339         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43340         (move_if_change): Delete unused macro.
43341         (news-date-check, vc-diff-check): Support VPATH builds.
43342         (announcement): Likewise.  Split --bootstrap-tools list...
43343         (boostrap-tools): ...into separate list, which can be overridden
43344         in cfg.mk.
43345         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43346         requiring dependency on useless-if-before-free module.
43347         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43348         Support VPATH builds.
43349
43350 2009-04-24  Jim Meyering  <meyering@redhat.com>
43351
43352         maint.mk: remove coreutils-specific rules and variables
43353         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43354         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43355         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43356
43357         maint.mk: remove obsolete rule
43358         * top/maint.mk (rel-check): Remove rule.
43359         (WGET, WGETFLAGS): Remove now-unused variables.
43360
43361 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43362
43363         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43364         consistency.
43365
43366         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43367         '$(PATH_SEPARATOR)' instead of ':'.
43368
43369 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43370
43371         * lib/getopt1.c (main): Use 'const' for static array.
43372
43373 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43374
43375         * top/maint.mk: Sync with coreutils.
43376         * NEWS: Explain incompatibilities.
43377
43378 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43379             Bruno Haible  <bruno@clisp.org>
43380
43381         Fix cross-compilation results.
43382         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43383         statement, as third argument of AC_TRY_RUN.
43384         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43385         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43386         Likewise.
43387         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43388         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43389         Likewise.
43390         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43391         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43392         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43393
43394 2009-04-20  Bruno Haible  <bruno@clisp.org>
43395
43396         Avoid test failure on mingw.
43397         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43398
43399 2009-04-20  Bruno Haible  <bruno@clisp.org>
43400
43401         Avoid compilation error on mingw.
43402         * modules/localename-tests (Depends-on): Add locale.
43403
43404 2009-04-19  Bruno Haible  <bruno@clisp.org>
43405
43406         Support for building a shared library on Windows platforms.
43407         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43408         (main): Test the presence of UNINORM_NFC here.
43409         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43410         (main): Test the presence of UNINORM_NFD here.
43411         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43412         (main): Test the presence of UNINORM_NFKC here.
43413         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43414         (main): Test the presence of UNINORM_NFKD here.
43415
43416 2009-04-19  Bruno Haible  <bruno@clisp.org>
43417
43418         Avoid a compiler warning.
43419         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43420         Change type of variable 'sequence'.
43421
43422 2009-04-19  Bruno Haible  <bruno@clisp.org>
43423
43424         * modules/configmake (Makefile.am): When the contents of configmake.h
43425         does not change, arrange to preserve its modification time.
43426
43427 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43428
43429         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43430         gettext domain.
43431
43432 2009-04-16  Jim Meyering  <meyering@redhat.com>
43433
43434         useless-if-before-free: improve conversion code
43435         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43436         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
43437
43438 2009-04-14  Bruno Haible  <bruno@clisp.org>
43439
43440         * modules/fcntl (Depends-on): Add extensions.
43441         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
43442
43443 2009-04-12  Ben Pfaff  <blp@gnu.org>
43444
43445         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
43446         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
43447
43448 2009-03-20  Ben Pfaff  <blp@gnu.org>
43449
43450         Make rename replace existing destinations on Windows.
43451         * m4/rename.m4: Add test for Mingw.
43452         * lib/rename.c: Add rename replacement that uses MoveFileEx with
43453         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
43454         * doc/posix-functions/rename.texi: Document.
43455
43456 2009-04-10  Bruno Haible  <bruno@clisp.org>
43457
43458         New include file "iconveh.h".
43459         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
43460         * lib/striconveh.h: Include it.
43461         (enum iconv_ilseq_handler): Remove definition.
43462         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
43463         striconveh.h.
43464         * lib/striconveha.c: Include striconveh.h.
43465         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
43466         * modules/striconveh (Files): Add lib/iconveh.h.
43467         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
43468         lib/striconveh.h.
43469
43470 2009-04-10  Bruno Haible  <bruno@clisp.org>
43471
43472         * lib/uniconv.h: Update comment.
43473
43474 2009-04-10  Bruno Haible  <bruno@clisp.org>
43475
43476         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
43477         always.
43478         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
43479         * lib/unistr/u16-mbtouc-aux.c: Likewise.
43480         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
43481         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
43482         "unistring-notinline.h", so that the function gets defined always.
43483         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
43484         * lib/unistr/u8-uctomb.c: Likewise.
43485         * lib/unistr/u16-mbtouc.c: Likewise.
43486         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
43487         * lib/unistr/u16-uctomb.c: Likewise.
43488         * lib/unistr/u32-mbtouc.c: Likewise.
43489         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
43490         * lib/unistr/u32-uctomb.c: Likewise.
43491
43492 2009-04-10  Bruno Haible  <bruno@clisp.org>
43493
43494         Mark 'utime' obsolete.
43495         * modules/utime (Status, Notice): New sections.
43496         Suggested by Jim Meyering.
43497
43498         Fix cross-compile guess for utime test.
43499         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
43500         autoconf.
43501         * doc/posix-functions/utime.texi: Give more precisions.
43502         Reported by Jan <ipif@ymail.com>.
43503
43504 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
43505
43506         filevercmp: correct today's change
43507         * lib/filevercmp.c: Also handle coreutils' test inputs.
43508         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
43509
43510         Fix regression in 'filevercmp' module. Thanks Sven Joachim
43511         for reporting it.
43512         * lib/filevercmp.c: Special handle for "", "." and "..".
43513         * tests/test-filevercmp.c: Enlarge the set suite.
43514
43515 2009-04-07  Jim Meyering  <meyering@redhat.com>
43516
43517         useless-if-before-free: show how to remove braced useless free, too
43518         * build-aux/useless-if-before-free: still only in a comment, though.
43519
43520 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
43521
43522         maint.mk: import changes to syntax-check macros from coreutils
43523         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
43524         Use them in the relevant macros.
43525
43526 2009-04-06  Bruno Haible  <bruno@clisp.org>
43527
43528         Fix unportable use of bit-fields.
43529         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
43530         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
43531         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
43532
43533 2009-04-06  Bruno Haible  <bruno@clisp.org>
43534
43535         Avoid test failures on AIX and OSF/1.
43536         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
43537         that malloc(0) = NULL.
43538         * tests/unicase/test-u8-tolower.c (check): Likewise.
43539         * tests/unicase/test-u8-totitle.c (check): Likewise.
43540         * tests/unicase/test-u8-toupper.c (check): Likewise.
43541         * tests/unicase/test-u16-casefold.c (check): Likewise.
43542         * tests/unicase/test-u16-tolower.c (check): Likewise.
43543         * tests/unicase/test-u16-totitle.c (check): Likewise.
43544         * tests/unicase/test-u16-toupper.c (check): Likewise.
43545         * tests/unicase/test-u32-casefold.c (check): Likewise.
43546         * tests/unicase/test-u32-tolower.c (check): Likewise.
43547         * tests/unicase/test-u32-totitle.c (check): Likewise.
43548         * tests/unicase/test-u32-toupper.c (check): Likewise.
43549         * tests/uninorm/test-u8-nfc.c (check): Likewise.
43550         * tests/uninorm/test-u8-nfd.c (check): Likewise.
43551         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
43552         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
43553         * tests/uninorm/test-u16-nfc.c (check): Likewise.
43554         * tests/uninorm/test-u16-nfd.c (check): Likewise.
43555         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
43556         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
43557         * tests/uninorm/test-u32-nfc.c (check): Likewise.
43558         * tests/uninorm/test-u32-nfd.c (check): Likewise.
43559         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
43560         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
43561
43562 2009-04-05  Bruno Haible  <bruno@clisp.org>
43563
43564         Work around an autoconf limitation.
43565         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
43566         comment line if it would be longer than 3 KB.
43567
43568 2009-04-05  Bruno Haible  <bruno@clisp.org>
43569
43570         Avoid test failure with libiconv-1.13.
43571         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
43572         of the expected test results.
43573
43574 2009-04-05  Bruno Haible  <bruno@clisp.org>
43575
43576         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
43577         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
43578         that it should be installed.
43579
43580 2009-04-05  Bruno Haible  <bruno@clisp.org>
43581
43582         * gnulib-tool: New option --copy-file.
43583         (func_usage): Document it.
43584         (func_dest_tmpfilename): Moved out of func_import.
43585         (func_add_file, func_update_file): New functions, extracted from
43586         func_import.
43587         (func_import): Update.
43588
43589 2009-04-05  Karl Berry  <karl@gnu.org>
43590
43591         * README: prominently mention gnulib-tool.
43592         Rearrange sections so getting the code is near the top.
43593
43594 2009-04-05  Bruno Haible  <bruno@clisp.org>
43595
43596         * lib/unicase.h: Mention u*_cmp2.
43597         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43598         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
43599         * lib/unicase/ulc-casecmp.c: Likewise.
43600         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
43601         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
43602         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
43603         unistr/u8-cmp.
43604         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
43605         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
43606         unistr/u16-cmp.
43607         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
43608         unistr/u32-cmp.
43609
43610         * lib/uninorm.h: Mention u*_cmp2.
43611         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
43612         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
43613         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
43614         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
43615         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
43616         unistr/u8-cmp.
43617         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
43618         unistr/u16-cmp.
43619         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
43620         unistr/u32-cmp.
43621
43622         New module 'unistr/u32-cmp2'.
43623         * lib/unistr/u32-cmp2.c: New file.
43624         * modules/unistr/u32-cmp2: New file.
43625
43626         New module 'unistr/u16-cmp2'.
43627         * lib/unistr/u16-cmp2.c: New file.
43628         * modules/unistr/u16-cmp2: New file.
43629
43630         New module 'unistr/u8-cmp2'.
43631         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
43632         * lib/unistr/u8-cmp2.c: New file.
43633         * lib/unistr/u-cmp2.h: New file.
43634         * modules/unistr/u8-cmp2: New file.
43635
43636 2009-04-05  Bruno Haible  <bruno@clisp.org>
43637
43638         * lib/unictype.h (uc_property_is_valid): New macro.
43639         * tests/unictype/test-pr_byname.c (main): Use it.
43640
43641         * lib/unistr.h: Doc fixes.
43642         * lib/uniconv.h: Doc fixes.
43643         * lib/unictype.h: Doc fixes.
43644
43645 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
43646
43647         Port coreutils 7.2 to Solaris 8.
43648
43649         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
43650         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
43651         for Solaris 8.  This is a bit of a hack, as it means it's the
43652         caller's responsibility to add -lnsl if needed, but most likely it
43653         won't be needed since only getaddrinfo uses this and getaddrinfo
43654         isn't needed on Solaris 8.
43655
43656         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
43657         problem to Solaris 8 encountered with coreutils 7.2, which
43658         resulted in a message "fnmatch.c:292: warning: passing argument 4
43659         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
43660         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
43661
43662 2009-04-03  Simon Josefsson  <simon@josefsson.org>
43663
43664         * m4/ld-version-script.m4: Add FIXME comment.
43665
43666 2009-04-02  Simon Josefsson  <simon@josefsson.org>
43667
43668         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
43669         SOVERSION variable.
43670
43671 2009-04-02  Bruno Haible  <bruno@clisp.org>
43672
43673         * Makefile (info, html, dvi, pdf): Combine the rules.
43674         Suggested by Jim Meyering.
43675
43676 2009-04-01  Bruno Haible  <bruno@clisp.org>
43677
43678         * Makefile (info, html, dvi, pdf): New targets.
43679         Reported by Reuben Thomas <rrt@sc3d.org>.
43680
43681 2009-04-01  Bruno Haible  <bruno@clisp.org>
43682
43683         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
43684         can be put into PATH.
43685         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
43686
43687 2009-04-01  Bruno Haible  <bruno@clisp.org>
43688
43689         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
43690
43691 2009-04-01  Bruno Haible  <bruno@clisp.org>
43692
43693         Rename module 'visibility'.
43694         * modules/lib-symbol-visibility: Renamed from modules/visibility.
43695         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
43696         * doc/gnulib.texi: Update.
43697         * MODULES.html.sh (Misc): Update.
43698         * NEWS: Mention the change.
43699
43700 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43701
43702         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
43703         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
43704         Eric Blake <ebb9@byu.net> for review.
43705         * MODULES.html.sh: Add lib-msvc-compat.
43706         * doc/gnulib.texi: Link to new section.
43707         * m4/ld-output-def.m4: New file.
43708         * doc/ld-output-def.texi: New file.
43709
43710 2009-04-01  Simon Josefsson  <simon@josefsson.org>
43711
43712         Rename ld-version-script to lib-symbol-versions.  Suggested by
43713         Bruno Haible <bruno@clisp.org>.
43714         * modules/ld-version-script: Renamed to lib-symbol-versions.
43715         * doc/ld-version-script.texi: Fix module name.
43716         * MODULES.html.sh: Add lib-symbol-versions.
43717
43718 2009-03-31  Simon Josefsson  <simon@josefsson.org>
43719
43720         * modules/u64-tests: New file.
43721         * tests/test-u64.c: New file.
43722
43723 2009-03-04  Simon Josefsson  <simon@josefsson.org>
43724
43725         * MODULES.html.sh: Mention u64.
43726         * modules/u64: New module.
43727         * modules/crypto/sha512: Depend on u64 module instead of providing
43728         u64.h.
43729
43730 2009-03-27  Eric Blake  <ebb9@byu.net>
43731
43732         test-strerror: make debugging EAI_SYSTEM easier
43733         * modules/getaddrinfo-tests (Depends-on): Add strerror.
43734         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
43735         failure was EAI_SYSTEM.
43736
43737 2009-03-25  Bruno Haible  <bruno@clisp.org>
43738
43739         Fix a problem with --enable-relocatable on Solaris 7.
43740         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
43741         since 2008-02-24.
43742
43743 2009-03-25  Eric Blake  <ebb9@byu.net>
43744
43745         test-sockets: avoid gcc warning
43746         * tests/test-sockets.c (main): Silence compiler warning.
43747
43748 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
43749
43750         New modules nproc, pthread, contributed by Glen Lenker.
43751
43752         * MODULES.html.sh: Add pthread, nproc.
43753         * lib/nproc.c: New file.
43754         * lib/nproc.h: New file.
43755         * lib/pthread.in.h: New file.
43756         * m4/pthread.m4: New file.
43757         * modules/nproc: New file.
43758         * modules/pthread: New file.
43759
43760 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43761
43762         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
43763         New variable.
43764
43765 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
43766
43767         filevercmp: handle simple~ and numbered.~3~ backup suffixes
43768         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
43769         * tests/test-filevercmp.c: Add tests for backup suffixes.
43770
43771 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43772
43773         * modules/stdlib (Depends-on): Add stdint, needed when defining
43774         struct random_data on, for example, HP-UX 10.20.  Reported by
43775         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43776
43777 2009-03-24  Simon Josefsson  <simon@josefsson.org>
43778
43779         * lib/readline.c (readline): Call fflush on stdout after printing
43780         prompt.
43781
43782 2009-03-20  Bruno Haible  <bruno@clisp.org>
43783
43784         Remove dependency from 'close' module to -lws2_32 on native Windows.
43785         * lib/close-hook.h: New file.
43786         * lib/close-hook.c: New file.
43787         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
43788         w32sock.h.
43789         (_gl_close_fd_maybe_socket): Remove function.
43790         (rpl_close): Invoke execute_all_close_hooks instead of
43791         _gl_close_fd_maybe_socket.
43792         * lib/sockets.c: Include close-hook.h, w32sock.h.
43793         (close_fd_maybe_socket): New function, essentially from lib/close.c.
43794         (close_sockets_hook): New variable.
43795         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
43796         (gl_sockets_cleanup): Unregister it.
43797         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
43798         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
43799         * modules/close-hook: New file.
43800         * modules/close (Files): Remove lib/w32sock.h.
43801         (Depends-on): Add close-hook.
43802         (Link): Remove section.
43803         * modules/sockets (Files): Add lib/w32sock.h.
43804         (Depends-on): Add close-hook.
43805         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
43806         invocation.
43807         * NEWS: Mention that LIB_CLOSE is gone.
43808
43809 2009-03-23  Eric Blake  <ebb9@byu.net>
43810
43811         signal-tests: test previous patch
43812         * tests/test-signal.c: New file.
43813         * modules/signal-tests: Likewise.
43814
43815         signal.h: always support 'volatile sig_atomic_t'
43816         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
43817         (gl_SIGNAL_H_DEFAULTS): Add a default.
43818         * modules/signal (Makefile.am): Substitute if needed.
43819         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
43820         users can blindly add volatile.
43821         * doc/posix-headers/signal.texi (signal.h): Document it.
43822         Reported by Matthew Woehlke.
43823
43824 2009-03-23  Jim Meyering  <meyering@redhat.com>
43825
43826         pathmax: PATH_MAX: use pathconf only when available
43827         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
43828         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
43829         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
43830         This avoids a link failure in a PSP cross-compilation environment
43831         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
43832
43833         * lib/vasnprintf.c (divide): Fix typo in comment.
43834
43835 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43836
43837         * gnulib-tool (func_filter_filelist): Fix comment.
43838
43839 2009-03-20  Bruno Haible  <bruno@clisp.org>
43840
43841         Make sockets.h self-contained.
43842         * lib/sockets.c: Include sockets.h first.
43843         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
43844
43845 2009-03-19  Eric Blake  <ebb9@byu.net>
43846
43847         doc: mention more functions added in cygwin 1.7.0
43848         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
43849         addition.
43850         * doc/posix-functions/log2f.texi: Likewise.
43851
43852 2009-03-19  Jim Meyering  <meyering@redhat.com>
43853
43854         fsusage: avoid syntax error due to statement-before-declaration
43855         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
43856         after all declarations.  Reported by Matthew Woehlke in
43857         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
43858
43859 2009-03-18  Eric Blake  <ebb9@byu.net>
43860
43861         build-aux/compile: sync from automake
43862         * build-aux/compile: New file, from automake.
43863         * config/srclist.txt: Mention build-aux/compile.
43864
43865 2009-03-17  Bruno Haible  <bruno@clisp.org>
43866
43867         * lib/git-merge-changelog.c: Fix typo in comment.
43868         Reported by Reuben Thomas <rrt@sc3d.org>.
43869
43870 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
43871
43872         * m4/regex.m4: update and improve help for
43873         --without-included-regex.
43874
43875 2009-03-17  Simon Josefsson  <simon@josefsson.org>
43876
43877         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
43878         failure on missing include files.
43879
43880 2009-03-17  Eric Blake  <ebb9@byu.net>
43881
43882         doc: mention more functions added in cygwin 1.7.0
43883         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
43884         addition.
43885         * doc/posix-functions/fwscanf.texi: Likewise.
43886         * doc/posix-functions/swprintf.texi: Likewise.
43887         * doc/posix-functions/swscanf.texi: Likewise.
43888         * doc/posix-functions/vfwprintf.texi: Likewise.
43889         * doc/posix-functions/vfwscanf.texi: Likewise.
43890         * doc/posix-functions/vswprintf.texi: Likewise.
43891         * doc/posix-functions/vswscanf.texi: Likewise.
43892         * doc/posix-functions/vwprintf.texi: Likewise.
43893         * doc/posix-functions/vwscanf.texi: Likewise.
43894         * doc/posix-functions/wcscasecmp.texi: Likewise.
43895         * doc/posix-functions/wcsdup.texi: Likewise.
43896         * doc/posix-functions/wcsftime.texi: Likewise.
43897         * doc/posix-functions/wcsncasecmp.texi: Likewise.
43898         * doc/posix-functions/wprintf.texi: Likewise.
43899         * doc/posix-functions/wscanf.texi: Likewise.
43900         * doc/glibc-functions/gethostbyname2.texi: Likewise.
43901
43902 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43903
43904         maint.mk: really add $(AM_MAKEFLAGS)
43905         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
43906         was inadvertently omitted in the last commit.
43907         Spotted by Bruno Haible.
43908
43909         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
43910         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
43911         $(AM_MAKEFLAGS)' rather than plain `make'.
43912
43913         gnulib-tool: execute $MAKE not make
43914         * gnulib-tool: Default $MAKE to 'make'.
43915         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
43916         than make.  Initialize $MAKE in the do-autobuild script.
43917
43918         gnulib-tool: use $MAKE not make in generated files
43919         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
43920         make, in generated files.  Initialize $MAKE in the do-autobuild
43921         script.
43922
43923         * top/GNUmakefile (_have-git-version-gen): Fix typo.
43924
43925         GNUmakefile: disable parallelism only for multiple, recursive targets
43926         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
43927         additions in the Makefile.
43928         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
43929         by Automake.
43930         (.NOTPARALLEL): Only disable parallel builds if multiple targets
43931         are listed on the command line and at least one of them is
43932         listed in $(ALL_RECURSIVE_TARGETS).
43933
43934 2009-03-14  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
43937         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
43938         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
43939         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
43940         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
43941         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
43942         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
43943         unistr/u8-uctomb.
43944         * modules/unistr/u8-strchr (Depends-on): Likewise.
43945         * modules/unistr/u8-strrchr (Depends-on): Likewise.
43946         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
43947         unistr/u16-uctomb.
43948         * modules/unistr/u16-strchr (Depends-on): Likewise.
43949         * modules/unistr/u16-strrchr (Depends-on): Likewise.
43950
43951 2009-03-12  Bruno Haible  <bruno@clisp.org>
43952
43953         Work around select() bug on Interix 3.5.
43954         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
43955         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
43956         * m4/select.m4: New file.
43957         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
43958         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
43959         * modules/select (Files): Add m4/select.m4.
43960         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
43961         * modules/nanosleep (Depends-on): Add select.
43962         * modules/poll (Depends-on): Likewise.
43963         * doc/posix-functions/select.texi: Mention the Interix bug.
43964         Reported by Markus Duft <mduft@gentoo.org>.
43965
43966         * lib/select.c: Renamed from lib/winsock-select.c.
43967         * modules/select (Files): Add lib/select.c, remove
43968         lib/winsock-select.c.
43969         (configure.ac): Update.
43970
43971 2009-03-12  Jim Meyering  <meyering@redhat.com>
43972
43973         avoid gcc warnings about unused macro definitions
43974         * lib/readtokens.c (STREQ): Remove unused definition.
43975         * lib/xmalloc.c (SIZE_MAX): Likewise.
43976         * lib/openat-die.c (N_): Likewise.
43977         * lib/mountlist.c (SIZE_MAX): Remove definition.
43978         Instead, include <stdint.h>.
43979         * lib/readutmp.c: Likewise.
43980         * modules/readutmp (Depends-on): Add stdint.
43981         * modules/mountlist (Depends-on): Add stdint.
43982         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
43983
43984 2009-03-10  Bruno Haible  <bruno@clisp.org>
43985
43986         Tests for module 'mbmemcasecoll'.
43987         * modules/mbmemcasecoll-tests: New file.
43988         * tests/test-mbmemcasecoll1.sh: New file.
43989         * tests/test-mbmemcasecoll2.sh: New file.
43990         * tests/test-mbmemcasecoll3.sh: New file.
43991         * tests/test-mbmemcasecoll.c: New file.
43992
43993         New module 'mbmemcasecoll'.
43994         * lib/mbmemcasecoll.h: New file.
43995         * lib/mbmemcasecoll.c: New file.
43996         * modules/mbmemcasecoll: New file.
43997
43998         * tests/test-mbmemcasecmp.h: New file, extracted from
43999         tests/test-mbmemcasecmp.c.
44000         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44001         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44002         (main): Update.
44003         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44004
44005 2009-03-09  Bruno Haible  <bruno@clisp.org>
44006
44007         Tests for module 'mbmemcasecmp'.
44008         * modules/mbmemcasecmp-tests: New file.
44009         * tests/test-mbmemcasecmp1.sh: New file.
44010         * tests/test-mbmemcasecmp2.sh: New file.
44011         * tests/test-mbmemcasecmp3.sh: New file.
44012         * tests/test-mbmemcasecmp.c: New file.
44013
44014         New module 'mbmemcasecmp'.
44015         * lib/mbmemcasecmp.h: New file.
44016         * lib/mbmemcasecmp.c: New file.
44017         * modules/mbmemcasecmp: New file.
44018
44019 2009-03-09  Bruno Haible  <bruno@clisp.org>
44020
44021         Tests for module 'unicase/ulc-casecoll'.
44022         * modules/unicase/ulc-casecoll-tests: New file.
44023         * tests/unicase/test-ulc-casecoll1.sh: New file.
44024         * tests/unicase/test-ulc-casecoll2.sh: New file.
44025         * tests/unicase/test-ulc-casecoll.c: New file.
44026
44027         New module 'unicase/ulc-casecoll'.
44028         * lib/unicase.h (ulc_casecoll): New declaration.
44029         * lib/unicase/ulc-casecoll.c: New file.
44030         * modules/unicase/ulc-casecoll: New file.
44031
44032         New module 'unicase/ulc-casexfrm'.
44033         * lib/unicase.h (ulc_casexfrm): New declaration.
44034         * lib/unicase/ulc-casexfrm.c: New file.
44035         * modules/unicase/ulc-casexfrm: New file.
44036
44037 2009-03-09  Bruno Haible  <bruno@clisp.org>
44038
44039         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44040         invocations.
44041
44042         * m4/mbscasecmp.m4: Remove file.
44043         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44044         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44045
44046         * m4/mbscasestr.m4: Remove file.
44047         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44048         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44049
44050         * m4/mbschr.m4: Remove file.
44051         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44052         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44053
44054         * m4/mbscspn.m4: Remove file.
44055         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44056         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44057
44058         * m4/mbslen.m4: Remove file.
44059         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44060         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44061
44062         * m4/mbsncasecmp.m4: Remove file.
44063         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44064         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44065
44066         * m4/mbsnlen.m4: Remove file.
44067         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44068         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44069
44070         * m4/mbspbrk.m4: Remove file.
44071         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44072         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44073
44074         * m4/mbspcasecmp.m4: Remove file.
44075         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44076         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44077
44078         * m4/mbsrchr.m4: Remove file.
44079         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44080         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44081
44082         * m4/mbssep.m4: Remove file.
44083         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44084         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44085
44086         * m4/mbsspn.m4: Remove file.
44087         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44088         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44089
44090         * m4/mbsstr.m4: Remove file.
44091         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44092         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44093
44094         * m4/mbstok_r.m4: Remove file.
44095         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44096         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44097
44098         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44099
44100         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44101         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44102
44103         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44104
44105 2009-03-08  Bruno Haible  <bruno@clisp.org>
44106
44107         Tests for module 'unicase/ulc-casecmp'.
44108         * modules/unicase/ulc-casecmp-tests: New file.
44109         * tests/unicase/test-ulc-casecmp1.sh: New file.
44110         * tests/unicase/test-ulc-casecmp2.sh: New file.
44111         * tests/unicase/test-ulc-casecmp.c: New file.
44112
44113         New module 'unicase/ulc-casecmp'.
44114         * lib/unicase.h (ulc_casecmp): New declaration.
44115         * lib/unicase/ulc-casecmp.c: New file.
44116         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44117         'const SRC_UNIT *'.
44118         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44119         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44120         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44121         * modules/unicase/ulc-casecmp: New file.
44122
44123         Tests for module 'unicase/u32-is-cased'.
44124         * modules/unicase/u32-is-cased-tests: New file.
44125         * tests/unicase/test-u32-is-cased.c: New file.
44126
44127         Tests for module 'unicase/u16-is-cased'.
44128         * modules/unicase/u16-is-cased-tests: New file.
44129         * tests/unicase/test-u16-is-cased.c: New file.
44130
44131         Tests for module 'unicase/u8-is-cased'.
44132         * modules/unicase/u8-is-cased-tests: New file.
44133         * tests/unicase/test-u8-is-cased.c: New file.
44134         * tests/unicase/test-is-cased.h: New file.
44135
44136         New module 'unicase/u32-is-cased'.
44137         * lib/unicase/u32-is-cased.c: New file.
44138         * modules/unicase/u32-is-cased: New file.
44139
44140         New module 'unicase/u16-is-cased'.
44141         * lib/unicase/u16-is-cased.c: New file.
44142         * modules/unicase/u16-is-cased: New file.
44143
44144         New module 'unicase/u8-is-cased'.
44145         * lib/unicase/u8-is-cased.c: New file.
44146         * lib/unicase/u-is-cased.h: New file.
44147         * modules/unicase/u8-is-cased: New file.
44148
44149         Tests for module 'unicase/u32-is-casefolded'.
44150         * modules/unicase/u32-is-casefolded-tests: New file.
44151         * tests/unicase/test-u32-is-casefolded.c: New file.
44152
44153         Tests for module 'unicase/u16-is-casefolded'.
44154         * modules/unicase/u16-is-casefolded-tests: New file.
44155         * tests/unicase/test-u16-is-casefolded.c: New file.
44156
44157         Tests for module 'unicase/u8-is-casefolded'.
44158         * modules/unicase/u8-is-casefolded-tests: New file.
44159         * tests/unicase/test-u8-is-casefolded.c: New file.
44160         * tests/unicase/test-is-casefolded.h: New file.
44161
44162         New module 'unicase/u32-is-casefolded'.
44163         * lib/unicase/u32-is-casefolded.c: New file.
44164         * modules/unicase/u32-is-casefolded: New file.
44165
44166         New module 'unicase/u16-is-casefolded'.
44167         * lib/unicase/u16-is-casefolded.c: New file.
44168         * modules/unicase/u16-is-casefolded: New file.
44169
44170         New module 'unicase/u8-is-casefolded'.
44171         * lib/unicase/u8-is-casefolded.c: New file.
44172         * modules/unicase/u8-is-casefolded: New file.
44173
44174         Tests for module 'unicase/u32-is-titlecase'.
44175         * modules/unicase/u32-is-titlecase-tests: New file.
44176         * tests/unicase/test-u32-is-titlecase.c: New file.
44177
44178         Tests for module 'unicase/u16-is-titlecase'.
44179         * modules/unicase/u16-is-titlecase-tests: New file.
44180         * tests/unicase/test-u16-is-titlecase.c: New file.
44181
44182         Tests for module 'unicase/u8-is-titlecase'.
44183         * modules/unicase/u8-is-titlecase-tests: New file.
44184         * tests/unicase/test-u8-is-titlecase.c: New file.
44185         * tests/unicase/test-is-titlecase.h: New file.
44186
44187         New module 'unicase/u32-is-titlecase'.
44188         * lib/unicase/u32-is-titlecase.c: New file.
44189         * modules/unicase/u32-is-titlecase: New file.
44190
44191         New module 'unicase/u16-is-titlecase'.
44192         * lib/unicase/u16-is-titlecase.c: New file.
44193         * modules/unicase/u16-is-titlecase: New file.
44194
44195         New module 'unicase/u8-is-titlecase'.
44196         * lib/unicase/u8-is-titlecase.c: New file.
44197         * modules/unicase/u8-is-titlecase: New file.
44198
44199         Tests for module 'unicase/u32-is-lowercase'.
44200         * modules/unicase/u32-is-lowercase-tests: New file.
44201         * tests/unicase/test-u32-is-lowercase.c: New file.
44202
44203         Tests for module 'unicase/u16-is-lowercase'.
44204         * modules/unicase/u16-is-lowercase-tests: New file.
44205         * tests/unicase/test-u16-is-lowercase.c: New file.
44206
44207         Tests for module 'unicase/u8-is-lowercase'.
44208         * modules/unicase/u8-is-lowercase-tests: New file.
44209         * tests/unicase/test-u8-is-lowercase.c: New file.
44210         * tests/unicase/test-is-lowercase.h: New file.
44211
44212         New module 'unicase/u32-is-lowercase'.
44213         * lib/unicase/u32-is-lowercase.c: New file.
44214         * modules/unicase/u32-is-lowercase: New file.
44215
44216         New module 'unicase/u16-is-lowercase'.
44217         * lib/unicase/u16-is-lowercase.c: New file.
44218         * modules/unicase/u16-is-lowercase: New file.
44219
44220         New module 'unicase/u8-is-lowercase'.
44221         * lib/unicase/u8-is-lowercase.c: New file.
44222         * modules/unicase/u8-is-lowercase: New file.
44223
44224         Tests for module 'unicase/u32-is-uppercase'.
44225         * modules/unicase/u32-is-uppercase-tests: New file.
44226         * tests/unicase/test-u32-is-uppercase.c: New file.
44227
44228         Tests for module 'unicase/u16-is-uppercase'.
44229         * modules/unicase/u16-is-uppercase-tests: New file.
44230         * tests/unicase/test-u16-is-uppercase.c: New file.
44231
44232         Tests for module 'unicase/u8-is-uppercase'.
44233         * modules/unicase/u8-is-uppercase-tests: New file.
44234         * tests/unicase/test-u8-is-uppercase.c: New file.
44235         * tests/unicase/test-is-uppercase.h: New file.
44236
44237         New module 'unicase/u32-is-uppercase'.
44238         * lib/unicase/u32-is-uppercase.c: New file.
44239         * modules/unicase/u32-is-uppercase: New file.
44240
44241         New module 'unicase/u16-is-uppercase'.
44242         * lib/unicase/u16-is-uppercase.c: New file.
44243         * modules/unicase/u16-is-uppercase: New file.
44244
44245         New module 'unicase/u8-is-uppercase'.
44246         * lib/unicase/u8-is-uppercase.c: New file.
44247         * modules/unicase/u8-is-uppercase: New file.
44248
44249         New module 'unicase/u32-is-invariant'.
44250         * lib/unicase/u32-is-invariant.c: New file.
44251         * modules/unicase/u32-is-invariant: New file.
44252
44253         New module 'unicase/u16-is-invariant'.
44254         * lib/unicase/u16-is-invariant.c: New file.
44255         * modules/unicase/u16-is-invariant: New file.
44256
44257         New module 'unicase/u8-is-invariant'.
44258         * lib/unicase/u8-is-invariant.c: New file.
44259         * lib/unicase/invariant.h: New file.
44260         * lib/unicase/u-is-invariant.h: New file.
44261         * modules/unicase/u8-is-invariant: New file.
44262
44263         Tests for module 'unicase/u32-casecoll'.
44264         * modules/unicase/u32-casecoll-tests: New file.
44265         * tests/unicase/test-u32-casecoll.c: New file.
44266
44267         Tests for module 'unicase/u16-casecoll'.
44268         * modules/unicase/u16-casecoll-tests: New file.
44269         * tests/unicase/test-u16-casecoll.c: New file.
44270
44271         Tests for module 'unicase/u8-casecoll'.
44272         * modules/unicase/u8-casecoll-tests: New file.
44273         * tests/unicase/test-u8-casecoll.c: New file.
44274
44275         New module 'unicase/u32-casecoll'.
44276         * lib/unicase/u32-casecoll.c: New file.
44277         * modules/unicase/u32-casecoll: New file.
44278
44279         New module 'unicase/u16-casecoll'.
44280         * lib/unicase/u16-casecoll.c: New file.
44281         * modules/unicase/u16-casecoll: New file.
44282
44283         New module 'unicase/u8-casecoll'.
44284         * lib/unicase/u8-casecoll.c: New file.
44285         * lib/unicase/u-casecoll.h: New file.
44286         * modules/unicase/u8-casecoll: New file.
44287
44288         New module 'unicase/u32-casexfrm'.
44289         * lib/unicase/u32-casexfrm.c: New file.
44290         * modules/unicase/u32-casexfrm: New file.
44291
44292         New module 'unicase/u16-casexfrm'.
44293         * lib/unicase/u16-casexfrm.c: New file.
44294         * modules/unicase/u16-casexfrm: New file.
44295
44296         New module 'unicase/u8-casexfrm'.
44297         * lib/unicase/u8-casexfrm.c: New file.
44298         * lib/unicase/u-casexfrm.h: New file.
44299         * modules/unicase/u8-casexfrm: New file.
44300
44301         Tests for module 'unicase/u32-casecmp'.
44302         * modules/unicase/u32-casecmp-tests: New file.
44303         * tests/unicase/test-u32-casecmp.c: New file.
44304
44305         Tests for module 'unicase/u16-casecmp'.
44306         * modules/unicase/u16-casecmp-tests: New file.
44307         * tests/unicase/test-u16-casecmp.c: New file.
44308
44309         Tests for module 'unicase/u8-casecmp'.
44310         * modules/unicase/u8-casecmp-tests: New file.
44311         * tests/unicase/test-u8-casecmp.c: New file.
44312         * tests/unicase/test-casecmp.h: New file.
44313
44314         New module 'unicase/u32-casecmp'.
44315         * lib/unicase/u32-casecmp.c: New file.
44316         * modules/unicase/u32-casecmp: New file.
44317
44318         New module 'unicase/u16-casecmp'.
44319         * lib/unicase/u16-casecmp.c: New file.
44320         * modules/unicase/u16-casecmp: New file.
44321
44322         New module 'unicase/u8-casecmp'.
44323         * lib/unicase/u8-casecmp.c: New file.
44324         * lib/unicase/u-casecmp.h: New file.
44325         * modules/unicase/u8-casecmp: New file.
44326
44327         Tests for module 'unicase/u32-casefold'.
44328         * modules/unicase/u32-casefold-tests: New file.
44329         * tests/unicase/test-u32-casefold.c: New file.
44330
44331         Tests for module 'unicase/u16-casefold'.
44332         * modules/unicase/u16-casefold-tests: New file.
44333         * tests/unicase/test-u16-casefold.c: New file.
44334
44335         Tests for module 'unicase/u8-casefold'.
44336         * modules/unicase/u8-casefold-tests: New file.
44337         * tests/unicase/test-u8-casefold.c: New file.
44338
44339         New module 'unicase/u32-casefold'.
44340         * lib/unicase/u32-casefold.c: New file.
44341         * modules/unicase/u32-casefold: New file.
44342
44343         New module 'unicase/u16-casefold'.
44344         * lib/unicase/u16-casefold.c: New file.
44345         * modules/unicase/u16-casefold: New file.
44346
44347         New module 'unicase/u8-casefold'.
44348         * lib/unicase/u8-casefold.c: New file.
44349         * lib/unicase/u-casefold.h: New file.
44350         * modules/unicase/u8-casefold: New file.
44351
44352         New module 'unicase/tocasefold'.
44353         * lib/unicase/casefold.h: New file.
44354         * lib/unicase/tocasefold.c: New file.
44355         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44356         * modules/unicase/tocasefold: New file.
44357
44358         Tests for module 'unicase/u32-totitle'.
44359         * modules/unicase/u32-totitle-tests: New file.
44360         * tests/unicase/test-u32-totitle.c: New file.
44361
44362         Tests for module 'unicase/u16-totitle'.
44363         * modules/unicase/u16-totitle-tests: New file.
44364         * tests/unicase/test-u16-totitle.c: New file.
44365
44366         Tests for module 'unicase/u8-totitle'.
44367         * modules/unicase/u8-totitle-tests: New file.
44368         * tests/unicase/test-u8-totitle.c: New file.
44369
44370         New module 'unicase/u32-totitle'.
44371         * lib/unicase/u32-totitle.c: New file.
44372         * modules/unicase/u32-totitle: New file.
44373
44374         New module 'unicase/u16-totitle'.
44375         * lib/unicase/u16-totitle.c: New file.
44376         * modules/unicase/u16-totitle: New file.
44377
44378         New module 'unicase/u8-totitle'.
44379         * lib/unicase/u8-totitle.c: New file.
44380         * lib/unicase/u-totitle.h: New file.
44381         * modules/unicase/u8-totitle: New file.
44382
44383         Tests for module 'unicase/u32-tolower'.
44384         * modules/unicase/u32-tolower-tests: New file.
44385         * tests/unicase/test-u32-tolower.c: New file.
44386
44387         Tests for module 'unicase/u16-tolower'.
44388         * modules/unicase/u16-tolower-tests: New file.
44389         * tests/unicase/test-u16-tolower.c: New file.
44390
44391         Tests for module 'unicase/u8-tolower'.
44392         * modules/unicase/u8-tolower-tests: New file.
44393         * tests/unicase/test-u8-tolower.c: New file.
44394
44395         New module 'unicase/u32-tolower'.
44396         * lib/unicase/u32-tolower.c: New file.
44397         * modules/unicase/u32-tolower: New file.
44398
44399         New module 'unicase/u16-tolower'.
44400         * lib/unicase/u16-tolower.c: New file.
44401         * modules/unicase/u16-tolower: New file.
44402
44403         New module 'unicase/u8-tolower'.
44404         * lib/unicase/u8-tolower.c: New file.
44405         * modules/unicase/u8-tolower: New file.
44406
44407         Tests for module 'unicase/u32-toupper'.
44408         * modules/unicase/u32-toupper-tests: New file.
44409         * tests/unicase/test-u32-toupper.c: New file.
44410
44411         Tests for module 'unicase/u16-toupper'.
44412         * modules/unicase/u16-toupper-tests: New file.
44413         * tests/unicase/test-u16-toupper.c: New file.
44414
44415         Tests for module 'unicase/u8-toupper'.
44416         * modules/unicase/u8-toupper-tests: New file.
44417         * tests/unicase/test-u8-toupper.c: New file.
44418
44419         New module 'unicase/u32-toupper'.
44420         * lib/unicase/u32-toupper.c: New file.
44421         * modules/unicase/u32-toupper: New file.
44422
44423         New module 'unicase/u16-toupper'.
44424         * lib/unicase/u16-toupper.c: New file.
44425         * modules/unicase/u16-toupper: New file.
44426
44427         New module 'unicase/u8-toupper'.
44428         * lib/unicase/u8-toupper.c: New file.
44429         * modules/unicase/u8-toupper: New file.
44430
44431         New module 'unicase/u32-casemap'.
44432         * lib/unicase/u32-casemap.c: New file.
44433         * modules/unicase/u32-casemap: New file.
44434
44435         New module 'unicase/u16-casemap'.
44436         * lib/unicase/u16-casemap.c: New file.
44437         * modules/unicase/u16-casemap: New file.
44438
44439         New module 'unicase/u8-casemap'.
44440         * lib/unicase/unicasemap.h: New file.
44441         * lib/unicase/u8-casemap.c: New file.
44442         * lib/unicase/u-casemap.h: New file.
44443         * modules/unicase/u8-casemap: New file.
44444
44445         New module 'unicase/special-casing'.
44446         * lib/unicase/special-casing.h: New file.
44447         * lib/unicase/special-casing.c: New file.
44448         * lib/unicase/special-casing-table.gperf: New file, generated by
44449         gen-uni-tables.c.
44450         * modules/unicase/special-casing: New file.
44451
44452         Tests for module 'unicase/locale-language'.
44453         * modules/unicase/locale-language-tests: New file.
44454         * tests/unicase/test-locale-language.sh: New file.
44455         * tests/unicase/test-locale-language.c: New file.
44456
44457         New module 'unicase/locale-language'.
44458         * lib/unicase/locale-language.c: New file.
44459         * lib/unicase/locale-languages.gperf: New file.
44460         * modules/unicase/locale-language: New file.
44461
44462         Generate more tables for case conversion and case folding.
44463         * lib/gen-uni-tables.c (SCC_*): New enum items.
44464         (struct special_casing_rule): New type.
44465         (casing_rules, num_casing_rules, allocated_casing_rules): New
44466         variables.
44467         (add_casing_rule, fill_casing_rules): New functions.
44468         (struct casefold_rule): New type.
44469         (casefolding_rules, num_casefolding_rules,
44470         allocated_casefolding_rules): New variables.
44471         (fill_casefolding_rules): New function.
44472         (unicode_casefold): New variable.
44473         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
44474         sort_casing_rules, output_casing_rules): New functions.
44475         (main): Accept to more arguments: SpecialCasing.txt and
44476         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
44477         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
44478         Output mapping for casefolding.
44479
44480         * lib/unicase.h: Include stdbool.h, uninorm.h.
44481         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
44482         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
44483         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
44484         arguments.
44485         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
44486         resultp arguments.
44487         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
44488         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
44489         resultp arguments.
44490         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
44491         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
44492         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
44493         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
44494         declarations.
44495         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
44496
44497 2009-03-08  Bruno Haible  <bruno@clisp.org>
44498
44499         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44500         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
44501         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
44502         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44503
44504 2009-03-07  Bruno Haible  <bruno@clisp.org>
44505
44506         Adjust u*_normcmp, u*_normcoll API.
44507         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
44508         u16_normcoll, u32_normcoll): Change failure conventions.
44509         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
44510         errno and return -1.
44511         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
44512
44513 2009-03-07  Bruno Haible  <bruno@clisp.org>
44514
44515         Tests for module 'uninorm/u32-normcoll'.
44516         * modules/uninorm/u32-normcoll-tests: New file.
44517         * tests/uninorm/test-u32-normcoll.c: New file.
44518
44519         Tests for module 'uninorm/u16-normcoll'.
44520         * modules/uninorm/u16-normcoll-tests: New file.
44521         * tests/uninorm/test-u16-normcoll.c: New file.
44522
44523         Tests for module 'uninorm/u8-normcoll'.
44524         * modules/uninorm/u8-normcoll-tests: New file.
44525         * tests/uninorm/test-u8-normcoll.c: New file.
44526
44527 2009-03-07  Bruno Haible  <bruno@clisp.org>
44528
44529         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
44530         tests/uninorm/test-u32-normcmp.c.
44531         * tests/uninorm/test-u32-normcmp.c: Include it.
44532         (test_nonascii): New function, extracted from main. Add some more
44533         tests.
44534         (main): Invoke test_ascii and test_nonascii.
44535         * modules/uninorm/u32-normcmp-tests (Files): Add
44536         tests/uninorm/test-u32-normcmp.h.
44537         (Depends-on): Remove uninorm/u32-normcmp.
44538
44539         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
44540         tests/uninorm/test-u16-normcmp.c.
44541         * tests/uninorm/test-u16-normcmp.c: Include it.
44542         (test_nonascii): New function, extracted from main. Add some more
44543         tests.
44544         (main): Invoke test_ascii and test_nonascii.
44545         * modules/uninorm/u16-normcmp-tests (Files): Add
44546         tests/uninorm/test-u16-normcmp.h.
44547         (Depends-on): Remove uninorm/u16-normcmp.
44548
44549         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
44550         tests/uninorm/test-u8-normcmp.c.
44551         * tests/uninorm/test-u8-normcmp.c: Include it.
44552         (test_nonascii): New function, extracted from main. Add some more
44553         tests.
44554         (main): Invoke test_ascii and test_nonascii.
44555         * modules/uninorm/u8-normcmp-tests (Files): Add
44556         tests/uninorm/test-u8-normcmp.h.
44557         (Depends-on): Remove uninorm/u8-normcmp.
44558
44559 2009-03-07  Bruno Haible  <bruno@clisp.org>
44560
44561         New module 'uninorm/u32-normcoll'.
44562         * lib/uninorm/u32-normcoll.c: New file.
44563         * modules/uninorm/u32-normcoll: New file.
44564
44565         New module 'uninorm/u16-normcoll'.
44566         * lib/uninorm/u16-normcoll.c: New file.
44567         * modules/uninorm/u16-normcoll: New file.
44568
44569         New module 'uninorm/u8-normcoll'.
44570         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
44571         declarations.
44572         * lib/uninorm/u8-normcoll.c: New file.
44573         * lib/uninorm/u-normcoll.h: New file.
44574         * modules/uninorm/u8-normcoll: New file.
44575
44576         New module 'uninorm/u32-normxfrm'.
44577         * lib/uninorm/u32-normxfrm.c: New file.
44578         * modules/uninorm/u32-normxfrm: New file.
44579
44580         New module 'uninorm/u16-normxfrm'.
44581         * lib/uninorm/u16-normxfrm.c: New file.
44582         * modules/uninorm/u16-normxfrm: New file.
44583
44584         New module 'uninorm/u8-normxfrm'.
44585         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
44586         declarations.
44587         * lib/uninorm/u8-normxfrm.c: New file.
44588         * lib/uninorm/u-normxfrm.h: New file.
44589         * modules/uninorm/u8-normxfrm: New file.
44590
44591 2009-03-07  Bruno Haible  <bruno@clisp.org>
44592
44593         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
44594         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
44595         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
44596
44597 2009-03-07  Bruno Haible  <bruno@clisp.org>
44598
44599         New module 'memxfrm'.
44600         * lib/memxfrm.h: New file.
44601         * lib/memxfrm.c: New file.
44602         * modules/memxfrm: New file.
44603
44604 2009-03-07  Bruno Haible  <bruno@clisp.org>
44605
44606         New module 'memcmp2'.
44607         * lib/memcmp2.h: New file.
44608         * lib/memcmp2.c: New file.
44609         * modules/memcmp2: New file.
44610
44611 2009-03-07  Bruno Haible  <bruno@clisp.org>
44612
44613         Tests for module 'uninorm/decomposing-form'.
44614         * modules/uninorm/decomposing-form-tests: New file.
44615         * tests/uninorm/test-decomposing-form.c: New file.
44616
44617         New module 'uninorm/decomposing-form'.
44618         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
44619         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
44620         Add 'decomposing_variant' field.
44621         * lib/uninorm/decomposing-form.c: New file.
44622         * lib/uninorm/nfc.c (uninorm_nfc): Update.
44623         * lib/uninorm/nfd.c (uninorm_nfd): Update.
44624         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
44625         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
44626         * modules/uninorm/decomposing-form: New file.
44627         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
44628         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
44629
44630 2009-03-07  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
44633         strings.
44634
44635 2009-03-06  Bruno Haible  <bruno@clisp.org>
44636
44637         Tests for module 'uninorm/u32-normcmp'.
44638         * tests/uninorm/test-u32-normcmp.c: New file.
44639         * modules/uninorm/u32-normcmp-tests: New file.
44640
44641         Tests for module 'uninorm/u16-normcmp'.
44642         * tests/uninorm/test-u16-normcmp.c: New file.
44643         * modules/uninorm/u16-normcmp-tests: New file.
44644
44645         Tests for module 'uninorm/u8-normcmp'.
44646         * tests/uninorm/test-u8-normcmp.c: New file.
44647         * modules/uninorm/u8-normcmp-tests: New file.
44648
44649         New module 'uninorm/u32-normcmp'.
44650         * lib/uninorm/u32-normcmp.c: New file.
44651         * modules/uninorm/u32-normcmp: New file.
44652
44653         New module 'uninorm/u16-normcmp'.
44654         * lib/uninorm/u16-normcmp.c: New file.
44655         * modules/uninorm/u16-normcmp: New file.
44656
44657         New module 'uninorm/u8-normcmp'.
44658         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
44659         declarations.
44660         * lib/uninorm/u8-normcmp.c: New file.
44661         * lib/uninorm/u-normcmp.h: New file.
44662         * modules/uninorm/u8-normcmp: New file.
44663
44664 2009-03-06  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
44667         Reported by Eric Blake.
44668
44669 2009-03-06  Eric Blake  <ebb9@byu.net>
44670             Bruno Haible  <bruno@clisp.org>
44671
44672         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
44673         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
44674         condition.
44675         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44676         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
44677         condition.
44678         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
44679
44680 2009-03-06  Eric Blake  <ebb9@byu.net>
44681
44682         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
44683         to avoid compiler warnings.
44684         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
44685
44686 2009-03-05  Bruno Haible  <bruno@clisp.org>
44687
44688         * tests/test-ftell.c (main): Disable test beyond end of file on
44689         FreeMiNT.
44690         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44691
44692 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
44693
44694         * lib/filevercmp.c: Move hidden files up in ordering.
44695         * tests/test-filevercmp.c: Add tests for hidden files.
44696
44697 2009-03-04  Bruno Haible  <bruno@clisp.org>
44698
44699         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
44700         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
44701         AM_CFLAGS.
44702         Reported by Simon Josefsson.
44703
44704 2009-03-03  Bruno Haible  <bruno@clisp.org>
44705
44706         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
44707         Reported by Simon Josefsson.
44708
44709         * doc/ld-version-script.texi: Update node reference.
44710
44711 2009-03-03  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/visibility (License): Change to 'unlimited'.
44714         Suggested by Simon Josefsson.
44715
44716 2009-03-03  Jim Meyering  <meyering@redhat.com>
44717
44718         unlinkdir: cannot_unlink_dir may modify process state
44719         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
44720         it's neither thread-safe nor appropriate for use in a library.
44721
44722 2009-03-03  Eric Blake  <ebb9@byu.net>
44723
44724         test-closein: silence test under Darwin
44725         * tests/test-closein.sh: Ignore stderr from cat, since we don't
44726         care if it dies from EPIPE or EBADF.
44727
44728 2009-03-03  Bruno Haible  <bruno@clisp.org>
44729
44730         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
44731         earlier.
44732         * doc/visibility.texi: Fix @node and @section.
44733
44734 2009-03-03  Simon Josefsson  <simon@josefsson.org>
44735
44736         * doc/gnulib.texi: Link to sections for ld version script and
44737         visibility.
44738         * doc/visibility.texi: Add @node and @section.
44739         * modules/ld-version-script: New module.
44740         * m4/ld-version-script.m4: New file.
44741         * doc/ld-version-script.texi: New file.
44742
44743 2009-03-02  David Lutterkort  <lutter@redhat.com>
44744
44745         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
44746         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44747
44748 2009-03-02  Bruno Haible  <bruno@clisp.org>
44749
44750         * doc/visibility.texi: Mention libtool's -export-symbols option.
44751
44752 2009-03-02  Jim Meyering  <meyering@redhat.com>
44753
44754         announce-gen: new option: --no-print-checksums
44755         * build-aux/announce-gen (usage): Describe it.
44756         (print_checksums): Print a newline here, not in the [*] footnote.
44757         (main): Honor it.
44758
44759 2009-03-01  Bruno Haible  <bruno@clisp.org>
44760
44761         Use socklen_t in the native Windows replacements prototypes.
44762         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
44763         instead of 'int'.
44764         * lib/getsockopt.c (rpl_getsockopt): Likewise.
44765         * lib/setsockopt.c (rpl_setsockopt): Likewise.
44766         * modules/getsockopt (Depends-on): Add socklen.
44767         * modules/setsockopt (Depends-on): Add socklen.
44768
44769 2009-03-01  Bruno Haible  <bruno@clisp.org>
44770
44771         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
44772         least 4.2.
44773
44774 2009-03-01  Eric Blake  <ebb9@byu.net>
44775             Bruno Haible  <bruno@clisp.org>
44776
44777         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
44778         error messages.
44779         * lib/wait-process.c (wait_subprocess): Omit error message about
44780         deadly signal sent to the child of termsigp != NULL.
44781
44782 2009-03-01  Eric Blake  <ebb9@byu.net>
44783
44784         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
44785
44786 2009-03-01  Bruno Haible  <bruno@clisp.org>
44787
44788         Avoid a gcc warning.
44789         * tests/test-sched.c (b): Make global.
44790         Reported by Eric Blake.
44791
44792 2009-01-19  Martin Lambers  <marlam@marlam.de>
44793
44794         Provide POSIX semantics for socket timeout options on W32.
44795         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
44796         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
44797         * modules/setsockopt: Depend on sys_time module for struct timeval.
44798         * modules/getsockopt: Depend on sys_time module for struct timeval.
44799
44800 2009-03-01  Simon Josefsson  <simon@josefsson.org>
44801
44802         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
44803         __USE_GNU, for consistency with netdb.in.h.
44804         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44805
44806 2009-03-01  Bruno Haible  <bruno@clisp.org>
44807
44808         More support for FreeMiNT.
44809         * lib/fseeko.c (rpl_fseeko): Complete last commit.
44810         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44811
44812 2009-03-01  Bruno Haible  <bruno@clisp.org>
44813
44814         More support for FreeMiNT.
44815         * lib/fpurge.c (fpurge): Correct last commit.
44816         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44817
44818 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44819
44820         Fix unportable awk script in vc-list-files.
44821         * build-aux/vc-list-files: In the replacement awk script, use
44822         substr with a second argument of 1, not zero.
44823         Report by Simon Josefsson.
44824
44825 2009-02-28  Bruno Haible  <bruno@clisp.org>
44826
44827         More support for FreeMiNT.
44828         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
44829         to FreeMiNT today.
44830         * lib/fwriting.c (fwriting): Likewise.
44831         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
44832
44833 2009-02-28  Bruno Haible  <bruno@clisp.org>
44834
44835         * tests/test-freadseek.c (main): Disable test beyond end of file on
44836         FreeMiNT.
44837         * tests/test-ftello.c (main): Likewise.
44838         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
44839
44840 2009-02-28  Bruno Haible  <bruno@clisp.org>
44841
44842         Add tentative support for FreeMiNT.
44843         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
44844         * lib/fpurge.c (fpurge): Likewise.
44845         * lib/freadable.c (freadable): Likewise.
44846         * lib/freading.c (freading): Likewise.
44847         * lib/freadptr.c (freadptr): Likewise.
44848         * lib/freadseek.c (freadptrinc): Likewise.
44849         * lib/fseeko.c (rpl_fseeko): Likewise.
44850         * lib/fseterr.c (fseterr): Likewise.
44851         * lib/fwritable.c (fwritable): Likewise.
44852         * lib/fwriting.c (fwriting): Likewise.
44853         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
44854         Hourihane.
44855         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44856
44857 2009-02-28  Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
44860         SIGCHLD.
44861         Reported by Jim Meyering.
44862
44863 2009-02-28  Bruno Haible  <bruno@clisp.org>
44864
44865         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
44866         Mention the results of these tests on various platforms.
44867         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
44868         order.
44869         * doc/posix-functions/printf.texi: Likewise.
44870         * doc/posix-functions/snprintf.texi: Likewise.
44871         * doc/posix-functions/sprintf.texi: Likewise.
44872         * doc/posix-functions/vfprintf.texi: Likewise.
44873         * doc/posix-functions/vprintf.texi: Likewise.
44874         * doc/posix-functions/vsnprintf.texi: Likewise.
44875         * doc/posix-functions/vsprintf.texi: Likewise.
44876         * doc/glibc-functions/obstack_printf.texi: Likewise.
44877         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
44878
44879 2009-02-28  Bruno Haible  <bruno@clisp.org>
44880
44881         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
44882         Reported by Loïc Minier <lool@dooz.org>.
44883
44884 2009-02-27  Bruno Haible  <bruno@clisp.org>
44885
44886         * gnulib-tool (func_import): Make the sed expression used to create the
44887         sed script for updating the .gitignore file POSIX compliant.
44888         Reported by Eric Blake.
44889
44890 2009-02-27  Bruno Haible  <bruno@clisp.org>
44891
44892         * gnulib-tool (sed): Don't alias as "sed --posix".
44893         Reported by Eric Blake.
44894
44895 2009-02-27  Bruno Haible  <bruno@clisp.org>
44896
44897         Avoid test link errors.
44898         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
44899         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
44900         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
44901         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
44902         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44903
44904 2009-02-27  Bruno Haible  <bruno@clisp.org>
44905
44906         Avoid spurious "(cached)" in configure output.
44907         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
44908         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
44909         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
44910         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
44911         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
44912         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
44913         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
44914         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
44915         Reported by Eric Blake.
44916
44917 2009-02-27  Eric Blake  <ebb9@byu.net>
44918
44919         printf: fix regression in previous patch
44920         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
44921
44922 2009-02-27  Bruno Haible  <bruno@clisp.org>
44923
44924         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
44925         value.
44926         * lib/stdint.in.h: Likewise.
44927         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
44928
44929 2009-02-27  Eric Blake  <ebb9@byu.net>
44930
44931         doc: mention more functions added in cygwin 1.7.0
44932         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
44933         addition.
44934         * doc/posix-functions/open_wmemstream.texi: Likewise.
44935         * doc/posix-functions/wcsnlen.texi: Likewise.
44936         * doc/posix-functions/wcsnrtombs.texi: Likewise.
44937         * doc/posix-functions/wcstod.texi: Likewise.
44938         * doc/posix-functions/wcstof.texi: Likewise.
44939         * doc/posix-functions/wcstoimax.texi: Likewise.
44940         * doc/posix-functions/wcstok.texi: Likewise.
44941         * doc/posix-functions/wcstoumax.texi: Likewise.
44942
44943         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
44944         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
44945         * doc/posix-functions/fprintf.texi: Update.
44946         * doc/posix-functions/printf.texi: Update.
44947         * doc/posix-functions/snprintf.texi: Update.
44948         * doc/posix-functions/sprintf.texi: Update.
44949         * doc/posix-functions/vfprintf.texi: Update.
44950         * doc/posix-functions/vprintf.texi: Update.
44951         * doc/posix-functions/vsnprintf.texi: Update.
44952         * doc/posix-functions/vsprintf.texi: Update.
44953         * doc/glibc-functions/obstack_printf.texi: Update.
44954         * doc/glibc-functions/obstack_vprintf.texi: Update.
44955
44956 2009-02-26  Eric Blake  <ebb9@byu.net>
44957
44958         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
44959         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
44960         compilation bug by using runtime conversion.
44961         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
44962         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
44963         * modules/ceill-tests (Files): Use nan.h.
44964         * modules/floorl-tests (Files): Likewise.
44965         * modules/frexpl-tests (Files): Likewise.
44966         * modules/isnanl-tests (Files): Likewise.
44967         * modules/ldexpl-tests (Files): Likewise.
44968         * modules/roundl-tests (Files): Likewise.
44969         * modules/truncl-tests (Files): Likewise.
44970         * tests/test-ceill.c (main): Use a working NaN.
44971         * tests/test-floorl.c (main): Likewise.
44972         * tests/test-frexpl.c (main): Likewise.
44973         * tests/test-isnan.c (test_long_double): Likewise.
44974         * tests/test-isnanl.h (main): Likewise.
44975         * tests/test-ldexpl.h (main): Likewise.
44976         * tests/test-roundl.h (main): Likewise.
44977         * tests/test-truncl.h (main): Likewise.
44978         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
44979
44980 2009-02-26  Eric Blake  <ebb9@byu.net>
44981             Bruno Haible  <bruno@clisp.org>
44982
44983         Work around a *printf bug with %ls on Solaris.
44984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
44985         precision is specified, sprintf stops converting the wide string
44986         argument when the number of bytes that have been produced by this
44987         conversion equals or exceeds the precision.
44988         * doc/posix-functions/fprintf.texi: Update.
44989         * doc/posix-functions/printf.texi: Update.
44990         * doc/posix-functions/snprintf.texi: Update.
44991         * doc/posix-functions/sprintf.texi: Update.
44992         * doc/posix-functions/vfprintf.texi: Update.
44993         * doc/posix-functions/vprintf.texi: Update.
44994         * doc/posix-functions/vsnprintf.texi: Update.
44995         * doc/posix-functions/vsprintf.texi: Update.
44996         * doc/glibc-functions/obstack_printf.texi: Update.
44997         * doc/glibc-functions/obstack_vprintf.texi: Update.
44998
44999 2009-02-26  Eric Blake  <ebb9@byu.net>
45000
45001         stdlib: favor compiler check of random.h
45002         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45003         to avoid an ObjC random.h installed by Swarm.
45004
45005 2009-02-26  Bruno Haible  <bruno@clisp.org>
45006
45007         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45008         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45009         Reported by Gary V. Vaughan <gary@gnu.org>.
45010
45011 2009-02-26  Bruno Haible  <bruno@clisp.org>
45012
45013         Fix *printf behaviour regarding the %ls directive.
45014         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45015         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45016         NEED_PRINTF_DIRECTIVE_LS.
45017         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45018         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45020         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45021         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45022         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45023         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45024         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45025         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45026         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45028         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45032         * doc/posix-functions/fprintf.texi: Update.
45033         * doc/posix-functions/printf.texi: Update.
45034         * doc/posix-functions/snprintf.texi: Update.
45035         * doc/posix-functions/sprintf.texi: Update.
45036         * doc/posix-functions/vfprintf.texi: Update.
45037         * doc/posix-functions/vprintf.texi: Update.
45038         * doc/posix-functions/vsnprintf.texi: Update.
45039         * doc/posix-functions/vsprintf.texi: Update.
45040         * doc/glibc-functions/obstack_printf.texi: Update.
45041         * doc/glibc-functions/obstack_vprintf.texi: Update.
45042         Reported by Eric Blake.
45043
45044 2009-02-25  Bruno Haible  <bruno@clisp.org>
45045
45046         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45047         with known value.
45048         Reported by Gary V. Vaughan <gary@gnu.org>.
45049
45050 2009-02-25  Bruno Haible  <bruno@clisp.org>
45051
45052         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45053         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45054         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45055         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45056         Reported by Gary V. Vaughan <gary@gnu.org>.
45057
45058 2009-02-25  Bruno Haible  <bruno@clisp.org>
45059
45060         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45061         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45062         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45063         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45064         Reported by Gary V. Vaughan <gary@gnu.org>.
45065
45066 2009-02-25  Eric Blake  <ebb9@byu.net>
45067
45068         tests: skip fseek/ftell tests if ungetc is broken
45069         * m4/ungetc.m4: New file.
45070         * modules/fseek-tests: Split test, so ungetc dependency is
45071         separate from rest of test.
45072         * modules/fseeko-tests: Likewise.
45073         * modules/ftell-tests: Likewise.
45074         * modules/ftello-tests: Likewise.
45075         * tests/test-fseek.c (main): Isolate ungetc dependency.
45076         * tests/test-fseeko.c (main): Likewise.
45077         * tests/test-ftell.c (main): Likewise.
45078         * tests/test-ftello.c (main): Likewise.
45079         * tests/test-fseek2.sh: New file.
45080         * tests/test-fseeko2.sh: Likewise.
45081         * tests/test-ftell2.sh: Likewise.
45082         * tests/test-ftello2.sh: Likewise.
45083
45084 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
45085
45086         test-getaddrinfo: fix usage of skip return code 77
45087         * tests/test-gettaddrinfo.c: Return skip code 77 only
45088         for first occurance of skip (4x77 is not 77)
45089
45090 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45091
45092         strtod: avoid C99 decl-after-statement
45093         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45094
45095 2009-02-24  Eric Blake  <ebb9@byu.net>
45096
45097         strtod: detect HP-UX 11.31 bug
45098         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45099         Reported by Gary V. Vaughan.
45100
45101 2009-02-23  Bruno Haible  <bruno@clisp.org>
45102
45103         Fix invalid read past end of memory block.
45104         * lib/vasnprintf.c (DCHAR_SET): Define.
45105         (local_wcslen): Define only when needed.
45106         (local_strnlen, local_wcsnlen): New functions.
45107         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45108         directives that involve a conversion ourselves.
45109         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45110         wcsnlen, mbrtowc, wcrtomb.
45111         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45112         * tests/test-vasprintf-posix.c (test_function): Likewise.
45113         * tests/test-snprintf-posix.h (test_function): Likewise.
45114         * tests/test-sprintf-posix.h (test_function): Likewise.
45115         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45116
45117 2009-02-22  Bruno Haible  <bruno@clisp.org>
45118
45119         Implement new clarified decomposition of Hangul syllables.
45120         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45121         of type LTV, return only a pairwise decomposition.
45122         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45123         Likewise.
45124         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45125         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45126         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45127
45128 2009-02-22  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45131         zero-length results and shrink excess allocated memory.
45132         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45133         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45134         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45135         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45136         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45137         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45138         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45139         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45140         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45141         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45142         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45143         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45144
45145 2009-02-21  Bruno Haible  <bruno@clisp.org>
45146
45147         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45148         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45149         spaces after a period. Put a space between a macro name and its
45150         argument list. Trivial rewordings.
45151         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45152         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45153         (main): Return 0 explicitly.
45154
45155 2009-02-21  Bruno Haible  <bruno@clisp.org>
45156
45157         Tests for module 'uninorm/filter'.
45158         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45159         * modules/uninorm/filter-tests: New file.
45160
45161         New module 'uninorm/filter'.
45162         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45163         uninorm_filter_flush, uninorm_filter_free): New declarations.
45164         * lib/uninorm/uninorm-filter.c: New file.
45165         * modules/uninorm/filter: New file.
45166
45167 2009-02-21  Bruno Haible  <bruno@clisp.org>
45168
45169         Tests for module 'uninorm/nfkc'.
45170         * tests/uninorm/test-nfkc.c: New file.
45171         * tests/uninorm/test-u8-nfkc.c: New file.
45172         * tests/uninorm/test-u16-nfkc.c: New file.
45173         * tests/uninorm/test-u32-nfkc.c: New file.
45174         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45175         * tests/uninorm/test-u32-nfkc-big.c: New file.
45176         * modules/uninorm/nfkc-tests: New file.
45177
45178         New module 'uninorm/nfkc'.
45179         * lib/uninorm/nfkc.c: New file.
45180         * modules/uninorm/nfkc: New file.
45181
45182         Tests for module 'uninorm/nfkd'.
45183         * tests/uninorm/test-nfkd.c: New file.
45184         * tests/uninorm/test-u8-nfkd.c: New file.
45185         * tests/uninorm/test-u16-nfkd.c: New file.
45186         * tests/uninorm/test-u32-nfkd.c: New file.
45187         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45188         * tests/uninorm/test-u32-nfkd-big.c: New file.
45189         * modules/uninorm/nfkd-tests: New file.
45190
45191         New module 'uninorm/nfkd'.
45192         * lib/uninorm/nfkd.c: New file.
45193         * modules/uninorm/nfkd: New file.
45194
45195         Tests for module 'uninorm/nfc'.
45196         * tests/uninorm/test-nfc.c: New file.
45197         * tests/uninorm/test-u8-nfc.c: New file.
45198         * tests/uninorm/test-u16-nfc.c: New file.
45199         * tests/uninorm/test-u32-nfc.c: New file.
45200         * tests/uninorm/test-u32-nfc-big.sh: New file.
45201         * tests/uninorm/test-u32-nfc-big.c: New file.
45202         * modules/uninorm/nfc-tests: New file.
45203
45204         New module 'uninorm/nfc'.
45205         * lib/uninorm/nfc.c: New file.
45206         * modules/uninorm/nfc: New file.
45207
45208         Tests for module 'uninorm/nfd'.
45209         * tests/uninorm/test-nfd.c: New file.
45210         * tests/uninorm/test-u8-nfd.c: New file.
45211         * tests/uninorm/test-u16-nfd.c: New file.
45212         * tests/uninorm/test-u32-nfd.c: New file.
45213         * tests/uninorm/test-u32-nfd-big.sh: New file.
45214         * tests/uninorm/test-u32-nfd-big.c: New file.
45215         * tests/uninorm/test-u32-normalize-big.h: New file.
45216         * tests/uninorm/test-u32-normalize-big.c: New file.
45217         * tests/uninorm/NormalizationTest.txt: New file, created from
45218         Unicode 5.1.0 NormalizationTest.txt.
45219         * modules/uninorm/nfd-tests: New file.
45220
45221         New module 'uninorm/nfd'.
45222         * lib/uninorm/nfd.c: New file.
45223         * modules/uninorm/nfd: New file.
45224
45225         New module 'uninorm/u32-normalize'.
45226         * lib/uninorm/u32-normalize.c: New file.
45227         * modules/uninorm/u32-normalize: New file.
45228
45229         New module 'uninorm/u16-normalize'.
45230         * lib/uninorm/u16-normalize.c: New file.
45231         * modules/uninorm/u16-normalize: New file.
45232
45233         New module 'uninorm/u8-normalize'.
45234         * lib/uninorm/u8-normalize.c: New file.
45235         * lib/uninorm/normalize-internal.h: New file.
45236         * lib/uninorm/u-normalize-internal.h: New file.
45237         * modules/uninorm/u8-normalize: New file.
45238
45239         New module 'uninorm/decompose-internal'.
45240         * lib/uninorm/decompose-internal.c: New file.
45241         * modules/uninorm/decompose-internal: New file.
45242
45243         Tests for module 'uninorm/composition'.
45244         * tests/uninorm/test-composition.c: New file.
45245         * modules/uninorm/composition-tests: New file.
45246
45247         New module 'uninorm/composition'.
45248         * lib/uninorm/composition.c: New file.
45249         * lib/uninorm/composition-table.gperf: New file, generated by
45250         gen-uni-tables.
45251         * modules/uninorm/composition: New file.
45252
45253         Tests for module 'uninorm/compat-decomposition'.
45254         * tests/uninorm/test-compat-decomposition.c: New file.
45255         * modules/uninorm/compat-decomposition-tests: New file.
45256
45257         New module 'uninorm/compat-decomposition'.
45258         * lib/uninorm/decompose-internal.h: New file.
45259         * lib/uninorm/compat-decomposition.c: New file.
45260         * modules/uninorm/compat-decomposition: New file.
45261
45262         Tests for module 'uninorm/canonical-decomposition'.
45263         * tests/uninorm/test-canonical-decomposition.c: New file.
45264         * modules/uninorm/canonical-decomposition-tests: New file.
45265
45266         New module 'uninorm/canonical-decomposition'.
45267         * lib/uninorm/canonical-decomposition.c: New file.
45268         * modules/uninorm/canonical-decomposition: New file.
45269
45270         Tests for module 'uninorm/decomposition'.
45271         * tests/uninorm/test-decomposition.c: New file.
45272         * modules/uninorm/decomposition-tests: New file.
45273
45274         New module 'uninorm/decomposition'.
45275         * lib/uninorm/decomposition.c: New file.
45276         * modules/uninorm/decomposition: New file.
45277
45278         New module 'uninorm/decomposition-table'.
45279         * lib/uninorm/decomposition-table.h: New file.
45280         * lib/uninorm/decomposition-table.c: New file.
45281         * lib/uninorm/decomposition-table1.h: New file, generated by
45282         gen-uni-tables.
45283         * lib/uninorm/decomposition-table2.h: New file, generated by
45284         gen-uni-tables.
45285         * modules/uninorm/decomposition-table: New file.
45286
45287         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45288         (UC_DECOMP_*): New enumeration items.
45289         (get_decomposition): New function.
45290         (struct decomp_table): New type.
45291         (output_decomposition, output_decomposition_tables): New functions.
45292         (unicode_composition_exclusions): New variable.
45293         (fill_composition_exclusions, debug_output_composition_tables): New
45294         functions.
45295         (main): Accept one more argument. Invoke fill_composition_exclusions.
45296         Output decomposition and composition tables.
45297
45298         New module 'uninorm/base'.
45299         * lib/uninorm.h: New file.
45300         * lib/unictype.h: Update comment.
45301         * modules/uninorm/base: New file.
45302
45303 2009-02-21  David Lutterkort  <lutter@redhat.com>
45304
45305         Tests for module 'safe-alloc'.
45306         * tests/test-safe-alloc.c: New file.
45307         * modules/safe-alloc-tests: New file.
45308
45309         New module 'safe-alloc'.
45310         * lib/safe-alloc.h: New file.
45311         * lib/safe-alloc.c: New file.
45312         * m4/safe-alloc.m4: New file.
45313         * modules/safe-alloc: New file.
45314         * doc/safe-alloc.texi: New file.
45315         * doc/gnulib.texi: Include it.
45316         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45317         safe-alloc.
45318
45319 2009-02-18  Bruno Haible  <bruno@clisp.org>
45320
45321         Fix link error on non-glibc systems.
45322         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45323         variable.
45324         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45325
45326 2009-02-18  Jim Meyering  <meyering@redhat.com>
45327
45328         fts: avoid used-uninitialized error due to recent change
45329         * lib/fts.c (fts_read): Guard uses of the new member,
45330         parent->fts_n_dirs_remaining, since it's not relevant for
45331         the parent of a directory specified on the command-line.
45332
45333 2009-02-17  James Youngman  <jay@gnu.org>
45334             Bruno Haible  <bruno@clisp.org>
45335
45336         * m4/include_next.m4: Reformulate comment.
45337
45338 2009-02-16  Jim Meyering  <meyering@redhat.com>
45339
45340         fts: add #if guards so that the fts_lgpl module still builds
45341         * lib/fts.c: Guard just-added hash-table-using parts with
45342         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45343         Reported by Simon Josefsson.
45344
45345 2009-02-15  Bruno Haible  <bruno@clisp.org>
45346
45347         * modules/array-mergesort-tests: New file.
45348         * tests/test-array-mergesort.c: New file.
45349
45350         New module 'array-mergesort'.
45351         * modules/array-mergesort: New file.
45352         * lib/array-mergesort.h: New file.
45353
45354 2009-02-15  Bruno Haible  <bruno@clisp.org>
45355
45356         Fix 2009-02-07 commit.
45357         * lib/gen-uni-tables.c (output_predicate, output_category,
45358         output_combclass, output_bidi_category, output_decimal_digit,
45359         output_digit, output_numeric, output_mirror, output_scripts,
45360         output_ident_category, output_simple_mapping): Fix format directives.
45361         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45362
45363 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45364
45365         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45366         fixes are available from IBM.
45367
45368 2009-02-13  Jim Meyering  <meyering@redhat.com>
45369
45370         fts: arrange not to stat non-directories in more cases
45371         This makes GNU find (when it doesn't need to stat each file)
45372         *much* more efficient at traversing reiserfs file systems.
45373         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45374         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45375         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45376         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45377         (leaf_optimization_applies): New function.
45378         (LCO_hash, LCO_compare): New helper functions.
45379         (link_count_optimize_ok): New function.
45380         (fts_stat): Initialize new member (if dir).
45381         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45382         we've just stat'ed a directory.  Skip the stat call when possible.
45383         ---
45384         Note this AFS-related exchange:
45385         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45386         and note find's pioctl call in find/fstype.c.
45387         But that is necessary only if you want to enable the
45388         optimization for AFS, and for now, I don't.
45389
45390         fts: move a function definition "up" (no semantic change)
45391         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45392         "up" to precede upcoming use of a related function.
45393
45394 2009-02-11  Jim Meyering  <meyering@redhat.com>
45395
45396         fts: correct internal computation of nlinks (optimization-related)
45397         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45398         whether the current entry is a directory, so don't test it.
45399
45400 2009-02-10  Bruno Haible  <bruno@clisp.org>
45401
45402         Tests for module 'uniwbrk/ulc-wordbreaks'.
45403         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45404         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45405         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45406
45407         Tests for module 'uniwbrk/u32-wordbreaks'.
45408         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45409         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45410
45411         Tests for module 'uniwbrk/u16-wordbreaks'.
45412         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45413         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45414
45415         Tests for module 'uniwbrk/u8-wordbreaks'.
45416         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45417         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45418
45419 2009-02-10  Bruno Haible  <bruno@clisp.org>
45420
45421         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45422         property.
45423         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45424         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45425         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45426
45427 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45428
45429         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45430         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45431
45432 2009-02-10  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45435         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45436         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
45437         * lib/unilbrk/u8-possible-linebreaks.c: Update.
45438         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
45439         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
45440
45441 2009-02-09  Simon Josefsson  <simon@josefsson.org>
45442
45443         * lib/sockets.h (gl_fd_to_handle): New function.
45444
45445         * tests/test-sockets.c: Call gl_fd_to_handle.
45446
45447 2009-02-09  Bruno Haible  <bruno@clisp.org>
45448
45449         * doc/havelib.texi: Document the conventions on bi-arch systems.
45450
45451 2009-02-08  Bruno Haible  <bruno@clisp.org>
45452
45453         Document the AC_LIB_LINKFLAGS macro.
45454         * doc/havelib.texi: New file, mostly written on 2005-05-24.
45455         * doc/gnulib.texi: Include it.
45456
45457 2009-02-08  Bruno Haible  <bruno@clisp.org>
45458
45459         Fix wrong order of sections, compared to TOC.
45460         * doc/gnulib.texi: Include relocatable-maint.texi after the
45461         "Regular expressions" node, not before.
45462
45463 2009-02-08  Bruno Haible  <bruno@clisp.org>
45464
45465         Tests for module 'unicase/totitle'.
45466         * modules/unicase/totitle-tests: New file.
45467
45468         Tests for module 'unicase/tolower'.
45469         * modules/unicase/tolower-tests: New file.
45470
45471         Tests for module 'unicase/toupper'.
45472         * modules/unicase/toupper-tests: New file.
45473         * tests/unicase/test-mapping-part1.h: New file.
45474         * tests/unicase/test-mapping-part2.h: New file.
45475
45476         New module 'unicase/totitle'.
45477         * modules/unicase/totitle: New file.
45478         * lib/unicase/totitle.c: New file.
45479
45480         New module 'unicase/tolower'.
45481         * modules/unicase/tolower: New file.
45482         * lib/unicase/tolower.c: New file.
45483
45484         New module 'unicase/toupper'.
45485         * modules/unicase/toupper: New file.
45486         * lib/unicase/toupper.c: New file.
45487         * lib/unicase/simple-mapping.h: New file.
45488
45489         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
45490         (mapping_table): New structure.
45491         (output_simple_mapping): New function.
45492         (main): Invoke output_simple_mapping_test and output_simple_mapping.
45493         * modules/gen-uni-tables (Description): Update.
45494         * lib/unicase/toupper.h: New file, automatically generated by
45495         gen-uni-tables.
45496         * lib/unicase/tolower.h: New file, automatically generated by
45497         gen-uni-tables.
45498         * lib/unicase/totitle.h: New file, automatically generated by
45499         gen-uni-tables.
45500         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
45501         gen-uni-tables.
45502         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
45503         gen-uni-tables.
45504         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
45505         gen-uni-tables.
45506
45507         New module 'unicase/base'.
45508         * modules/unicase/base: New file.
45509         * lib/unicase.h: New file.
45510
45511 2009-02-08  Bruno Haible  <bruno@clisp.org>
45512
45513         New module 'uniwbrk/ulc-wordbreaks'.
45514         * modules/uniwbrk/ulc-wordbreaks: New file.
45515         * lib/uniwbrk/ulc-wordbreaks.c: New file.
45516
45517         New module 'uniwbrk/u32-wordbreaks'.
45518         * modules/uniwbrk/u32-wordbreaks: New file.
45519         * lib/uniwbrk/u32-wordbreaks.c: New file.
45520
45521         New module 'uniwbrk/u16-wordbreaks'.
45522         * modules/uniwbrk/u16-wordbreaks: New file.
45523         * lib/uniwbrk/u16-wordbreaks.c: New file.
45524
45525         New module 'uniwbrk/u8-wordbreaks'.
45526         * modules/uniwbrk/u8-wordbreaks: New file.
45527         * lib/uniwbrk/u8-wordbreaks.c: New file.
45528         * lib/uniwbrk/u-wordbreaks.h: New file.
45529
45530         New module 'uniwbrk/table'.
45531         * modules/uniwbrk/table: New file.
45532         * lib/uniwbrk/wbrktable.h: New file.
45533         * lib/uniwbrk/wbrktable.c: New file.
45534
45535         New module 'uniwbrk/wordbreak-property'.
45536         * modules/uniwbrk/wordbreak-property: New file.
45537         * lib/uniwbrk/wordbreak-property.c: New file.
45538
45539         * lib/gen-uni-tables.c (WBP_*): New enum items.
45540         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
45541         (unicode_org_wbp): New variable.
45542         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
45543         New functions.
45544         (wbp_table): New structure.
45545         (output_wbp, output_wbrk_tables): New functions.
45546         (main): Accept additional argument. Invoke fill_org_wbp,
45547         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
45548         output_wbrk_tables.
45549         * modules/gen-uni-tables (Description): Update.
45550         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
45551         gen-uni-tables.
45552
45553         New module 'uniwbrk/base'.
45554         * modules/uniwbrk/base: New file.
45555         * lib/uniwbrk.h: New file.
45556
45557 2009-02-08  Bruno Haible  <bruno@clisp.org>
45558
45559         Update to Unicode 5.1.0.
45560         * lib/gen-uni-tables.c (is_property_alphabetic): Include
45561         U+2185..U+2188.
45562         (is_property_default_ignorable_code_point): Don't include characters
45563         of category Cc or Cs and not-a-characters.
45564         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
45565         U+0D79, U+109E, U+109F, U+A60C.
45566         * lib/unictype/bidi_of.h: Regenerated.
45567         * lib/unictype/blocks.h: Regenerated.
45568         * lib/unictype/categ_C.h: Regenerated.
45569         * lib/unictype/categ_Cf.h: Regenerated.
45570         * lib/unictype/categ_Cn.h: Regenerated.
45571         * lib/unictype/categ_L.h: Regenerated.
45572         * lib/unictype/categ_Ll.h: Regenerated.
45573         * lib/unictype/categ_Lm.h: Regenerated.
45574         * lib/unictype/categ_Lo.h: Regenerated.
45575         * lib/unictype/categ_Lu.h: Regenerated.
45576         * lib/unictype/categ_M.h: Regenerated.
45577         * lib/unictype/categ_Mc.h: Regenerated.
45578         * lib/unictype/categ_Me.h: Regenerated.
45579         * lib/unictype/categ_Mn.h: Regenerated.
45580         * lib/unictype/categ_N.h: Regenerated.
45581         * lib/unictype/categ_Nd.h: Regenerated.
45582         * lib/unictype/categ_Nl.h: Regenerated.
45583         * lib/unictype/categ_No.h: Regenerated.
45584         * lib/unictype/categ_P.h: Regenerated.
45585         * lib/unictype/categ_Pd.h: Regenerated.
45586         * lib/unictype/categ_Pe.h: Regenerated.
45587         * lib/unictype/categ_Pf.h: Regenerated.
45588         * lib/unictype/categ_Pi.h: Regenerated.
45589         * lib/unictype/categ_Po.h: Regenerated.
45590         * lib/unictype/categ_Ps.h: Regenerated.
45591         * lib/unictype/categ_S.h: Regenerated.
45592         * lib/unictype/categ_Sk.h: Regenerated.
45593         * lib/unictype/categ_Sm.h: Regenerated.
45594         * lib/unictype/categ_So.h: Regenerated.
45595         * lib/unictype/categ_of.h: Regenerated.
45596         * lib/unictype/combining.h: Regenerated.
45597         * lib/unictype/ctype_alnum.h: Regenerated.
45598         * lib/unictype/ctype_alpha.h: Regenerated.
45599         * lib/unictype/ctype_graph.h: Regenerated.
45600         * lib/unictype/ctype_lower.h: Regenerated.
45601         * lib/unictype/ctype_print.h: Regenerated.
45602         * lib/unictype/ctype_punct.h: Regenerated.
45603         * lib/unictype/ctype_upper.h: Regenerated.
45604         * lib/unictype/decdigit.h: Regenerated.
45605         * lib/unictype/digit.h: Regenerated.
45606         * lib/unictype/mirror.h: Regenerated.
45607         * lib/unictype/numeric.h: Regenerated.
45608         * lib/unictype/pr_alphabetic.h: Regenerated.
45609         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
45610         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
45611         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
45612         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
45613         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
45614         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
45615         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
45616         * lib/unictype/pr_combining.h: Regenerated.
45617         * lib/unictype/pr_dash.h: Regenerated.
45618         * lib/unictype/pr_decimal_digit.h: Regenerated.
45619         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
45620         * lib/unictype/pr_deprecated.h: Regenerated.
45621         * lib/unictype/pr_diacritic.h: Regenerated.
45622         * lib/unictype/pr_extender.h: Regenerated.
45623         * lib/unictype/pr_format_control.h: Regenerated.
45624         * lib/unictype/pr_grapheme_base.h: Regenerated.
45625         * lib/unictype/pr_grapheme_extend.h: Regenerated.
45626         * lib/unictype/pr_grapheme_link.h: Regenerated.
45627         * lib/unictype/pr_id_continue.h: Regenerated.
45628         * lib/unictype/pr_id_start.h: Regenerated.
45629         * lib/unictype/pr_ideographic.h: Regenerated.
45630         * lib/unictype/pr_ignorable_control.h: Regenerated.
45631         * lib/unictype/pr_lowercase.h: Regenerated.
45632         * lib/unictype/pr_math.h: Regenerated.
45633         * lib/unictype/pr_numeric.h: Regenerated.
45634         * lib/unictype/pr_other_alphabetic.h: Regenerated.
45635         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
45636         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
45637         * lib/unictype/pr_other_id_continue.h: Regenerated.
45638         * lib/unictype/pr_other_lowercase.h: Regenerated.
45639         * lib/unictype/pr_other_math.h: Regenerated.
45640         * lib/unictype/pr_punctuation.h: Regenerated.
45641         * lib/unictype/pr_sentence_terminal.h: Regenerated.
45642         * lib/unictype/pr_soft_dotted.h: Regenerated.
45643         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
45644         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
45645         * lib/unictype/pr_unified_ideograph.h: Regenerated.
45646         * lib/unictype/pr_uppercase.h: Regenerated.
45647         * lib/unictype/pr_xid_continue.h: Regenerated.
45648         * lib/unictype/pr_xid_start.h: Regenerated.
45649         * lib/unictype/pr_zero_width.h: Regenerated.
45650         * lib/unictype/scripts.h: Regenerated.
45651         * lib/unictype/scripts_byname.gperf: Regenerated.
45652         * lib/unictype/sy_java_ident.h: Regenerated.
45653         * lib/unilbrk/lbrkprop1.h: Regenerated.
45654         * lib/unilbrk/lbrkprop2.h: Regenerated.
45655         * tests/unictype/test-categ_C.c: Regenerated.
45656         * tests/unictype/test-categ_Cf.c: Regenerated.
45657         * tests/unictype/test-categ_Cn.c: Regenerated.
45658         * tests/unictype/test-categ_L.c: Regenerated.
45659         * tests/unictype/test-categ_Ll.c: Regenerated.
45660         * tests/unictype/test-categ_Lm.c: Regenerated.
45661         * tests/unictype/test-categ_Lo.c: Regenerated.
45662         * tests/unictype/test-categ_Lu.c: Regenerated.
45663         * tests/unictype/test-categ_M.c: Regenerated.
45664         * tests/unictype/test-categ_Mc.c: Regenerated.
45665         * tests/unictype/test-categ_Me.c: Regenerated.
45666         * tests/unictype/test-categ_Mn.c: Regenerated.
45667         * tests/unictype/test-categ_N.c: Regenerated.
45668         * tests/unictype/test-categ_Nd.c: Regenerated.
45669         * tests/unictype/test-categ_Nl.c: Regenerated.
45670         * tests/unictype/test-categ_No.c: Regenerated.
45671         * tests/unictype/test-categ_P.c: Regenerated.
45672         * tests/unictype/test-categ_Pd.c: Regenerated.
45673         * tests/unictype/test-categ_Pe.c: Regenerated.
45674         * tests/unictype/test-categ_Pf.c: Regenerated.
45675         * tests/unictype/test-categ_Pi.c: Regenerated.
45676         * tests/unictype/test-categ_Po.c: Regenerated.
45677         * tests/unictype/test-categ_Ps.c: Regenerated.
45678         * tests/unictype/test-categ_S.c: Regenerated.
45679         * tests/unictype/test-categ_Sk.c: Regenerated.
45680         * tests/unictype/test-categ_Sm.c: Regenerated.
45681         * tests/unictype/test-categ_So.c: Regenerated.
45682         * tests/unictype/test-ctype_alnum.c: Regenerated.
45683         * tests/unictype/test-ctype_alpha.c: Regenerated.
45684         * tests/unictype/test-ctype_graph.c: Regenerated.
45685         * tests/unictype/test-ctype_lower.c: Regenerated.
45686         * tests/unictype/test-ctype_print.c: Regenerated.
45687         * tests/unictype/test-ctype_punct.c: Regenerated.
45688         * tests/unictype/test-ctype_upper.c: Regenerated.
45689         * tests/unictype/test-decdigit.h: Regenerated.
45690         * tests/unictype/test-digit.h: Regenerated.
45691         * tests/unictype/test-numeric.h: Regenerated.
45692         * tests/unictype/test-pr_alphabetic.c: Regenerated.
45693         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
45694         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
45695         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
45696         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
45697         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
45698         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
45699         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
45700         * tests/unictype/test-pr_combining.c: Regenerated.
45701         * tests/unictype/test-pr_dash.c: Regenerated.
45702         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
45703         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
45704         * tests/unictype/test-pr_deprecated.c: Regenerated.
45705         * tests/unictype/test-pr_diacritic.c: Regenerated.
45706         * tests/unictype/test-pr_extender.c: Regenerated.
45707         * tests/unictype/test-pr_format_control.c: Regenerated.
45708         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
45709         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
45710         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
45711         * tests/unictype/test-pr_id_continue.c: Regenerated.
45712         * tests/unictype/test-pr_id_start.c: Regenerated.
45713         * tests/unictype/test-pr_ideographic.c: Regenerated.
45714         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
45715         * tests/unictype/test-pr_lowercase.c: Regenerated.
45716         * tests/unictype/test-pr_math.c: Regenerated.
45717         * tests/unictype/test-pr_numeric.c: Regenerated.
45718         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
45719         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
45720         Regenerated.
45721         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
45722         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
45723         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
45724         * tests/unictype/test-pr_other_math.c: Regenerated.
45725         * tests/unictype/test-pr_punctuation.c: Regenerated.
45726         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
45727         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
45728         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
45729         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
45730         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
45731         * tests/unictype/test-pr_uppercase.c: Regenerated.
45732         * tests/unictype/test-pr_xid_continue.c: Regenerated.
45733         * tests/unictype/test-pr_xid_start.c: Regenerated.
45734         * tests/unictype/test-pr_zero_width.c: Regenerated.
45735
45736         Update to Unicode 5.1.0.
45737         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
45738         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
45739         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
45740         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
45741         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
45742         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
45743         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
45744         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
45745         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
45746         (nonspacing_table_ind): Update.
45747         * tests/uniwidth/test-uc_width2.sh: Update expected result.
45748
45749         Update to Unicode 5.1.0.
45750         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
45751         code transform.
45752         * lib/uniname/uniname.c (unicode_character_name,
45753         unicode_name_character): Add the range 0x1Fxxx to the code transform.
45754         * lib/uniname/uninames.h: Regenerated.
45755         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
45756
45757 2009-02-07  Bruno Haible  <bruno@clisp.org>
45758
45759         Merge gen-ctype and gen-lbrk into a single program.
45760         * lib/gen-uni-tables.c: New file, incorporating
45761         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
45762         Add directory prefixes to the names of the generated files.
45763         * lib/unictype/gen-ctype.c: Remove file.
45764         * lib/unilbrk/gen-lbrk.c: Remove file.
45765         * modules/gen-uni-tables: New file.
45766         * modules/unictype/gen-ctype: Remove file.
45767         * modules/unilbrk/gen-lbrk: Remove file.
45768
45769 2009-02-07  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
45772
45773         New module 'unistr/u32-strcoll'.
45774         * modules/unistr/u32-strcoll: New file.
45775         * lib/unistr/u32-strcoll.c: New file.
45776
45777         New module 'unistr/u16-strcoll'.
45778         * modules/unistr/u16-strcoll: New file.
45779         * lib/unistr/u16-strcoll.c: New file.
45780
45781         New module 'unistr/u8-strcoll'.
45782         * modules/unistr/u8-strcoll: New file.
45783         * lib/unistr/u8-strcoll.c: New file.
45784         * lib/unistr/u-strcoll.h: New file.
45785
45786 2009-02-07  Bruno Haible  <bruno@clisp.org>
45787
45788         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
45789         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45790         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
45791         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
45792         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
45793         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
45794
45795 2009-02-07  Bruno Haible  <bruno@clisp.org>
45796
45797         Make 64-bit clean.
45798         * lib/unictype/gen-ctype.c (output_predicate, output_category,
45799         output_combclass, output_bidi_category, output_decimal_digit,
45800         output_digit, output_numeric, output_mirror, output_scripts,
45801         output_ident_category): Use proper width specifier in format strings.
45802
45803 2009-02-07  Bruno Haible  <bruno@clisp.org>
45804
45805         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
45806         failure behaviour.
45807
45808 2009-02-07  Jim Meyering  <meyering@redhat.com>
45809
45810         regex: avoid compilation failure with upcoming gcc-4.4
45811         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
45812         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
45813         "... error: integer overflow in preprocessor expression".
45814
45815 2009-02-05  Ben Pfaff  <blp@gnu.org>
45816
45817         Fix link errors on Windows when close module is used.
45818         * modules/close: Add $(LIB_CLOSE) to Link section.
45819         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
45820         $(LIB_CLOSE) on Windows.
45821
45822 2009-02-05  Jim Meyering  <meyering@redhat.com>
45823
45824         still avoid unused-parameter warnings, but do it cleanly
45825         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
45826         (get_fs_usage): Cast to void instead.
45827         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
45828         (dev_from_mount_options, read_file_system_list): Cast to void.
45829         Prompted by Bruno Haible.
45830
45831 2009-02-04  Jim Meyering  <meyering@redhat.com>
45832
45833         fsusage.c: correct copyright year
45834         * lib/fsusage.c: Reflect year in which the change is pushed into
45835
45836         avoid misc. warnings
45837         * lib/fsusage.c (UNUSED_PARAM): Define.
45838         (get_fs_usage): Mark parameter "disk" as unused.
45839         * lib/getugroups.c (getgrent): Use "void" in prototype.
45840         * lib/mountlist.c: Mark unused parameters.
45841         (read_file_system_list): Declare a local with "const".
45842         * lib/nanosleep.c (getnow): Declare static.
45843         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
45844
45845         dirfd: set errno upon failure
45846         * lib/dirfd.c: Include <errno.h>.
45847         Set errno to ENOTSUP when returning -1.
45848         * modules/dirfd (Depends-on): Add errno.
45849         Suggested by John Kodis <kodis@comcast.net>.
45850
45851 2009-02-01  Bruno Haible  <bruno@clisp.org>
45852
45853         Don't assume sizeof (long) >= sizeof (void *).
45854         * lib/memcmp.c: Include stdint.h.
45855         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
45856         srcp2 to 'const byte *'.
45857         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
45858         types to uintptr_t.
45859         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
45860         * modules/memcmp (Depends-on): Add stdint.
45861         Reported by Ozkan Sezer <sezeroz@gmail.com>.
45862
45863 2009-01-30  Eric Blake  <ebb9@byu.net>
45864
45865         fix more require-before-expand issues
45866         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
45867         expand, AC_PROG_AWK.
45868         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
45869
45870 2009-01-28  Eric Blake  <ebb9@byu.net>
45871
45872         version-etc: use consistent URL formatting
45873         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
45874         Improve formatting.  Use fputs for string without %.
45875
45876 2009-01-28  Jim Meyering  <meyering@redhat.com>
45877
45878         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
45879         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
45880         "underquoted definition of NAME" from autoconf-2.59.
45881
45882 2009-01-28  Bruno Haible  <bruno@clisp.org>
45883
45884         * doc/gnulib.texi: Add "Obsolete modules" to index.
45885
45886 2009-01-28  Jim Meyering  <meyering@redhat.com>
45887
45888         useless-if-before-free: recognize more variants
45889         * build-aux/useless-if-before-free: Also recognize e.g.,
45890         if (NULL != p) free (p);
45891
45892 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
45893
45894         test-getaddrinfo: skip (don't fail) this test when there's no network
45895         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
45896         on the presumption that it means you lack network access.
45897
45898 2009-01-26  Jim Meyering  <meyering@redhat.com>
45899
45900         fflush: avoid warnings on modern systems
45901         * lib/fflush.c (rpl_fflush): Move declarations of locals,
45902         pos and result, into scopes where they're used.
45903
45904 2009-01-26  Eric Blake  <ebb9@byu.net>
45905
45906         Silence warning reintroduced by recent extensions patch.
45907         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
45908         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
45909         autoconf.
45910
45911         Backport improved autoconf semantics of AC_DEFUN_ONCE.
45912         * m4/00gnulib.m4: New file.
45913         * gnulib-tool (func_get_filelist): Always use it.
45914         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
45915         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
45916
45917 2009-01-25  Bruno Haible  <bruno@clisp.org>
45918
45919         Make test-quotearg work on MacOS X and AIX.
45920         * tests/test-quotearg.sh: New file.
45921         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
45922         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
45923         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
45924         include <libintl.h>.
45925         (fake_locale): Remove variable.
45926         (gettext, dgettext, dcgettext): Remove functions.
45927         (main): Instead of setting a fake locale, set a real locale. Call
45928         textdomain and bindtextdomain.
45929         * modules/quotearg-tests (Files): Add the new files.
45930         (Depends-on): Add gettext, setenv, unsetenv.
45931         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
45932         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
45933         Augment TESTS_ENVIRONMENT.
45934
45935 2009-01-25  Bruno Haible  <bruno@clisp.org>
45936
45937         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
45938         fr_FR.ISO8859-1 locale on MacOS X.
45939         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
45940         ja_JP.eucJP locale on MacOS X.
45941         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
45942         zh_CN.GB18030 locale on MacOS X.
45943
45944 2009-01-25  Bruno Haible  <bruno@clisp.org>
45945
45946         Avoid link errors on MacOS X 10.3.
45947         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
45948         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
45949
45950 2009-01-25  Bruno Haible  <bruno@clisp.org>
45951
45952         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45953         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
45954         * modules/pipe (Files): Remove m4/posix_spawn.m4.
45955         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45956         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
45957         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45958         posix_spawnattr_init, posix_spawnattr_setsigmask,
45959         posix_spawnattr_setflags, posix_spawnattr_destroy.
45960
45961         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
45962         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
45963         * modules/execute (Files): Remove m4/posix_spawn.m4.
45964         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
45965         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
45966         posix_spawnattr_init, posix_spawnattr_setsigmask,
45967         posix_spawnattr_setflags, posix_spawnattr_destroy.
45968
45969 2009-01-25  Bruno Haible  <bruno@clisp.org>
45970
45971         * lib/glthread/threadlib.c: Include <stdlib.h>.
45972
45973 2009-01-25  Bruno Haible  <bruno@clisp.org>
45974
45975         * lib/glthread/threadlib.c (dummy): New declaration.
45976
45977 2009-01-25  Bruno Haible  <bruno@clisp.org>
45978
45979         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
45980         multibyte characters also for the GB18030 encoding. Don't crash when
45981         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
45982
45983 2009-01-25  Bruno Haible  <bruno@clisp.org>
45984
45985         Avoid redefining 'struct random_data' on OSF/1 5.1.
45986         * lib/stdlib.in.h: Include <random.h> if it exists.
45987         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
45988         HAVE_RANDOM_H. Include <random.h> when testing whether
45989         'struct random_data' exists.
45990         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
45991
45992 2009-01-25  Bruno Haible  <bruno@clisp.org>
45993
45994         Don't install charset.alias on MacOS X >= 10.3.
45995         * lib/localcharset.c (DARWIN7): New macro.
45996         (get_charset_aliases): Hardcode the result for Darwin7.
45997         * modules/localcharset (install-exec-local): Don't install
45998         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
45999
46000 2009-01-25  Bruno Haible  <bruno@clisp.org>
46001
46002         Don't install charset.alias on mingw and Cygwin.
46003         * modules/localcharset (install-exec-local): Don't install
46004         charset.alias on mingw and Cygwin, if the file does not yet exist.
46005         The result for these platforms is hardcoded in localcharset.c.
46006
46007 2009-01-25  Bruno Haible  <bruno@clisp.org>
46008
46009         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46011         before requiring AC_USE_SYSTEM_EXTENSIONS.
46012
46013 2009-01-25  Jim Meyering  <meyering@redhat.com>
46014
46015         c-strtod: avoid warnings
46016         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46017         "assignment discards qualifiers from pointer target type" warnings.
46018
46019 2009-01-24  Bruno Haible  <bruno@clisp.org>
46020
46021         Add support for non-UTF-8 locales on MacOS X.
46022         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46023         canonical encodings. For Darwin 7 and newer, don't map traditional
46024         encodings to UTF-8.
46025         Reported by Vincent Lefevre <vincent@vinc17.org>
46026         at <http://savannah.gnu.org/bugs/?25235>.
46027
46028 2009-01-24  Bruno Haible  <bruno@clisp.org>
46029
46030         * doc/gnulib.texi (Obsolete modules): New section.
46031         Reported by Mike Frysinger <vapier@gentoo.org>.
46032
46033 2009-01-24  Bruno Haible  <bruno@clisp.org>
46034
46035         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46036         (%.dvi): New rule.
46037
46038 2009-01-24  Bruno Haible  <bruno@clisp.org>
46039
46040         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46041         Reported by Eric Blake.
46042
46043 2009-01-24  Bruno Haible  <bruno@clisp.org>
46044
46045         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46046         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46047         Reported by Gary V. Vaughan <gary@gnu.org>.
46048
46049 2009-01-24  Bruno Haible  <bruno@clisp.org>
46050
46051         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46052
46053 2009-01-23  Bruno Haible  <bruno@clisp.org>
46054
46055         Make c-strtod, c-strtold usable in libraries.
46056         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46057         (C_STRTOD): Call strdup instead of xstrdup.
46058         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46059         * modules/c-strtold (Depends-on): Likewise.
46060         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46061         * NEWS: Mention the change.
46062         Reported by Michael Gold <mgold@ncf.ca>.
46063
46064 2009-01-23  Jim Meyering  <meyering@redhat.com>
46065
46066         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46067         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46068         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46069
46070 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46071
46072         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46073         GNU CoreUtils.
46074         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46075         * modules/version-etc (Description): Update.
46076
46077 2009-01-22  Bruno Haible  <bruno@clisp.org>
46078
46079         Cache the C locale object.
46080         * lib/c-strtod.c (c_locale_cache): New variable.
46081         (c_locale): New function.
46082         (C_STRTOD): Use it, and don't call freelocale.
46083         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46084         Suggested by Paolo Bonzini.
46085
46086 2009-01-21  Bruno Haible  <bruno@clisp.org>
46087
46088         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46089         conditions other than overflow.
46090
46091 2009-01-21  Bruno Haible  <bruno@clisp.org>
46092
46093         * lib/c-strtod.c: Include errno.h.
46094         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46095         value from STRTOD_L and STRTOD.
46096
46097 2009-01-21  Bruno Haible  <bruno@clisp.org>
46098         and Jim Meyering  <meyering@redhat.com>
46099
46100         nanosleep: skip configure test (fail it) for apple universal builds
46101         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46102         universal builds, assume that nanosleep does not work.
46103         * modules/nanosleep (Depends-on): Add multiarch.
46104
46105         mktime: skip configure test (fail it) for apple universal builds
46106         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46107         universal builds, assume that mktime does not work.
46108         * modules/mktime (Depends-on): Add multiarch.
46109
46110 2009-01-21  Eric Blake  <ebb9@byu.net>
46111
46112         multiarch: avoid expand-before-require warning
46113         * modules/multiarch (configure.ac): Require, rather than expand,
46114         gl_MULTIARCH.
46115         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46116         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46117         enforce that all clients require it.  Partial reversion of
46118         2008-12-29 patch.
46119
46120         error: avoid expand-before-require warning
46121         * modules/errno (configure.ac): Require, rather than expand,
46122         gl_HEADER_ERRNO_H.
46123         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46124         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46125         enforce that all clients require it.
46126
46127         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46128         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46129         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46130         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46131
46132 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46133
46134         Revert:
46135         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46136
46137         regex: do not depend on obsolete modules.
46138         * modules/regex: Remove memcmp and memmove.
46139
46140 2009-01-20  Bruno Haible  <bruno@clisp.org>
46141
46142         Make the 'link' module link on Windows NT 4.
46143         * lib/link.c (_WIN32_WINNT): Don't define.
46144         (CreateHardLinkFuncType): New type.
46145         (CreateHardLinkFunc, initialized): New variables.
46146         (initialize): New function.
46147         (link): Invoke CreateHardLink indirectly through the function pointer.
46148
46149 2009-01-20  Bruno Haible  <bruno@clisp.org>
46150
46151         Fix compilation failure on mingw.
46152         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46153
46154 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46155
46156         * doc/c-strtod.texi: Mention a couple of restrictions.
46157
46158 2009-01-20  Jim Meyering  <meyering@redhat.com>
46159
46160         gettimeofday: move more declarations out of functions
46161         * lib/gettimeofday.c: Move extern declarations of tzset and
46162         gmtime out of containing functions.  Prompted by Bruno Haible.
46163
46164 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46165
46166         regex: do not depend on obsolete modules.
46167         * modules/regex: Remove memcmp and memmove.
46168
46169 2009-01-19  Bruno Haible  <bruno@clisp.org>
46170
46171         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46172         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46173         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46174         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46175         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46176
46177 2009-01-19  Bruno Haible  <bruno@clisp.org>
46178
46179         * tests/test-link.c: Include <errno.h>.
46180         (main): Exit with code 77 when a hard link cannot be created due to
46181         the file system.
46182         * tests/test-link.sh: Skip test when a hard link cannot be created due
46183         to the file system.
46184         Suggested by Eric Blake.
46185
46186 2009-01-19  Martin Lambers  <marlam@marlam.de>
46187
46188         * modules/link-tests: New file.
46189         * tests/test-link.sh: New file.
46190         * tests/test-link.c: New file.
46191
46192 2009-01-19  Eric Blake  <ebb9@byu.net>
46193
46194         doc: mention another function added in cygwin 1.7.0
46195         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46196         Another new function in cygwin 1.7.
46197
46198 2009-01-19  Bruno Haible  <bruno@clisp.org>
46199
46200         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46201         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46202         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46203         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46204         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46205         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46206         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46207         * m4/md4.m4 (gl_MD4): Likewise.
46208         * m4/md5.m4 (gl_MD5): Likewise.
46209         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46210         * m4/sha1.m4 (gl_SHA1): Likewise.
46211         * m4/sha256.m4 (gl_SHA256): Likewise.
46212         * m4/sha512.m4 (gl_SHA512): Likewise.
46213
46214 2009-01-19  Bruno Haible  <bruno@clisp.org>
46215
46216         * modules/uniname/uniname-tests (Depends-on): Add progname.
46217         * tests/uniname/test-uninames.c: Include progname.h.
46218         (main): Call set_program_name.
46219
46220         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46221         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46222         (main): Call set_program_name.
46223
46224         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46225         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46226         (main): Call set_program_name.
46227
46228         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46229         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46230         (main): Call set_program_name.
46231
46232         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46233         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46234         (main): Call set_program_name.
46235
46236         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46237         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46238         (main): Call set_program_name.
46239
46240         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46241         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46242         (main): Call set_program_name.
46243
46244         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46245         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46246         (main): Call set_program_name.
46247
46248         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46249         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46250         (main): Call set_program_name.
46251
46252 2009-01-19  Eric Blake  <ebb9@byu.net>
46253
46254         test-unistd: test previous patch
46255         * tests/test-unistd.c: Test *_FILENO macros.
46256
46257         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46258         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46259         Guarantee a definition.
46260         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46261         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46262         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46263         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46264         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46265         Likewise.
46266         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46267         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46268         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46269         Likewise.
46270         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46271         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46272         (STDERR_FILENO): Likewise.
46273         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46274         (STDERR_FILENO): Likewise.
46275         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46276         (STDERR_FILENO): Likewise.
46277         Reported by Elbert Pol.
46278
46279 2009-01-19  Eric Blake  <ebb9@byu.net>
46280
46281         doc: mention more functions added in cygwin 1.7.0
46282         * doc/posix-functions/abort.texi (abort): Update wording related
46283         to cygwin.
46284         * doc/posix-functions/daylight.texi (daylight): Likewise.
46285         * doc/posix-functions/optarg.texi (optarg): Likewise.
46286         * doc/posix-functions/optarg.texi (opterr): Likewise.
46287         * doc/posix-functions/optarg.texi (optind): Likewise.
46288         * doc/posix-functions/optarg.texi (optopt): Likewise.
46289         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46290         worked in 1.5.x, and was withdrawn in 1.7.
46291         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46292         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46293         cygwin versions.
46294         * doc/posix-functions/perror.texi (perror): Likewise.
46295         * doc/posix-functions/printf.texi (printf): Likewise.
46296         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46297         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46298         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46299         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46300         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46301         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46302         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46303         Likewise.
46304         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46305         Likewise.
46306         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46307         this function.
46308         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46309         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46310         Likewise.
46311         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46312         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46313         * doc/posix-functions/confstr.texi (confstr): Likewise.
46314         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46315         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46316         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46317         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46318         * doc/posix-functions/fputws.texi (fputws): Likewise.
46319         * doc/posix-functions/fwide.texi (fwide): Likewise.
46320         * doc/posix-functions/getwc.texi (getwc): Likewise.
46321         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46322         * doc/posix-functions/putwc.texi (putwc): Likewise.
46323         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46324         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46325         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46326         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46327         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46328         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46329         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46330         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46331         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46332         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46333         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46334
46335 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46336
46337         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46338         * lib/ioctl.c: Include <sys/ioctl.h>.
46339
46340 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46341
46342         * modules/getdate-tests (Depends-on): Add progname.
46343         * tests/test-getdate.c: Use progname module, to avoid link errors
46344         on non-glibc systems.
46345
46346 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46347
46348         * modules/filenamecat-tests (Depends-on): Add progname.
46349         * modules/fstrcmp-tests (Depends-on): Likewise.
46350
46351         * tests/test-filenamecat.c: Use progname module, to avoid link
46352         errors on non-glibc systems.
46353         * tests/test-fstrcmp.c: Likewise.
46354
46355 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46356
46357         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46358         * lib/gettimeofday.c: Move extern declaration out of function.
46359
46360 2009-01-18  Bruno Haible  <bruno@clisp.org>
46361
46362         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46363         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46364         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46365
46366 2009-01-18  Bruno Haible  <bruno@clisp.org>
46367
46368         * lib/strftime.c (MEMPCPY): Remove unused macro.
46369         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46370
46371 2009-01-18  Martin Lambers  <marlam@marlam.de>
46372
46373         New module 'link'.
46374         * lib/unistd.in.h (link): New declaration.
46375         * lib/link.c: New file.
46376         * m4/link.m4: New file.
46377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46378         HAVE_LINK.
46379         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46380         * modules/link: New file.
46381         * doc/posix-functions/link.texi: Mention the new module.
46382
46383 2009-01-18  Bruno Haible  <bruno@clisp.org>
46384
46385         * tests/test-avltree_list.c (main): Call set_program_name.
46386         * tests/test-avltree_oset.c (main): Likewise.
46387         * tests/test-obstack-printf.c: Include progname.h.
46388         (main): Call set_program_name.
46389         * tests/test-quotearg.c: Include progname.h.
46390         (main): Call set_program_name.
46391         * tests/test-xmemdup0.c: Include progname.h.
46392         (main): Call set_program_name.
46393
46394 2009-01-18  Bruno Haible  <bruno@clisp.org>
46395
46396         New module 'alphasort'.
46397         * lib/dirent.in.h (alphasort): New declaration.
46398         * lib/alphasort.c: New file, from glibc with modifications.
46399         * m4/alphasort.m4: New file.
46400         * modules/alphasort: New file.
46401         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46402         HAVE_ALPHASORT.
46403         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46404         HAVE_ALPHASORT.
46405         * doc/posix-functions/alphasort.texi: Mention the new module and the
46406         portability problems.
46407
46408 2009-01-18  Bruno Haible  <bruno@clisp.org>
46409
46410         New module 'scandir'.
46411         * lib/dirent.in.h (scandir): New declaration.
46412         * lib/scandir.c: New file, from glibc with modifications.
46413         * m4/scandir.m4: New file.
46414         * modules/scandir: New file.
46415         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46416         HAVE_SCANDIR.
46417         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46418         HAVE_SCANDIR.
46419         * doc/posix-functions/scandir.texi: Mention the new module and the
46420         portability problems.
46421
46422 2009-01-17  Bruno Haible  <bruno@clisp.org>
46423
46424         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46425         Update documentation.
46426         (func_remove_suffix): Escape all dots in the suffix. Update
46427         documentation.
46428         (func_filter_filelist): Update documentation.
46429         Reported by Ralf Wildenhues.
46430
46431 2009-01-17  Bruno Haible  <bruno@clisp.org>
46432
46433         * modules/dprintf-posix-tests: New file.
46434         * tests/test-dprintf-posix.sh: New file.
46435         * tests/test-dprintf-posix.c: New file.
46436
46437         New modules 'dprintf', 'dprintf-posix'.
46438         * lib/stdio.in.h (dprintf): New declaration.
46439         * lib/dprintf.c: New file.
46440         * m4/dprintf.m4: New file.
46441         * m4/dprintf-posix.m4: New file.
46442         * modules/dprintf: New file.
46443         * modules/dprintf-posix: New file.
46444         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
46445         HAVE_DPRINTF, REPLACE_DPRINTF.
46446         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
46447         HAVE_DPRINTF, REPLACE_DPRINTF.
46448         * doc/posix-functions/dprintf.texi: Mention the new modules.
46449
46450 2009-01-17  Bruno Haible  <bruno@clisp.org>
46451
46452         * modules/vdprintf-posix-tests: New file.
46453         * tests/test-vdprintf-posix.sh: New file.
46454         * tests/test-vdprintf-posix.c: New file.
46455
46456         New modules 'vdprintf', 'vdprintf-posix'.
46457         * lib/stdio.in.h (vdprintf): New declaration.
46458         * lib/vdprintf.c: New file.
46459         * m4/vdprintf.m4: New file.
46460         * m4/vdprintf-posix.m4: New file.
46461         * modules/vdprintf: New file.
46462         * modules/vdprintf-posix: New file.
46463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
46464         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46465         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
46466         HAVE_VDPRINTF, REPLACE_VDPRINTF.
46467         * doc/posix-functions/vdprintf.texi: Mention the new modules.
46468
46469 2009-01-17  Bruno Haible  <bruno@clisp.org>
46470
46471         Fix replacement of fopen on mingw.
46472         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
46473         mingw.
46474
46475 2009-01-17  Bruno Haible  <bruno@clisp.org>
46476
46477         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
46478         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
46479
46480 2009-01-17  Bruno Haible  <bruno@clisp.org>
46481
46482         Avoid test-fflush2.sh failure on mingw.
46483         * tests/test-fflush2.c: Include binary-io.h.
46484         (main): Put standard input into binary mode.
46485         * modules/fflush-tests (Depends-on): Add binary-io.
46486
46487 2009-01-17  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/wchar.in.h: In another particular situation, include only the
46490         system's <wchar.h> file.
46491         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
46492         Reported by Albert Chin-A-Young <china@thewrittenword.com>
46493         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
46494
46495 2009-01-17  Bruno Haible  <bruno@clisp.org>
46496
46497         Support for stripping executables in --enable-relocatable.
46498         * build-aux/install-reloc: Expect one more argument, or an environment
46499         variable RELOC_STRIP_PROG. If set, strip the destination program and
46500         its wrapper.
46501         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
46502         RELOC_STRIP_PROG.
46503         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
46504         to set RELOCATABLE_STRIP.
46505         * NEWS: Mention the new Makefile requirement.
46506
46507 2009-01-17  Bruno Haible  <bruno@clisp.org>
46508
46509         * build-aux/install-reloc: Remove debugging information left over by
46510         C compiler on MacOS X.
46511
46512 2009-01-17  Bruno Haible  <bruno@clisp.org>
46513
46514         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
46515         * lib/progreloc.c (find_executable): Fix type of pointer passed to
46516         _NSGetExecutablePath.
46517
46518 2009-01-16  Jim Meyering  <meyering@redhat.com>
46519
46520         strerror: avoid warnings about discarding "const"
46521         * lib/strerror.c (rpl_strerror): Instead of returning a const
46522         string from each and every "case", use a variable, and add a single
46523         cast after the switch.
46524
46525 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
46526
46527         * lib/arpa_inet.in.h: Add extern "C" block for C++.
46528
46529 2009-01-16  Bruno Haible  <bruno@clisp.org>
46530
46531         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
46532         array initializer syntax that also works in C++ mode.
46533         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46534
46535 2009-01-16  Jim Meyering  <meyering@redhat.com>
46536
46537         poll: suppress a warning
46538         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
46539         to ignore "...unsigned expression < 0 is always false" warnings.
46540
46541 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
46542
46543         poll: remove declarations of unused variables
46544         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
46545         sockbuf and optlen.
46546
46547 2009-01-15  Bruno Haible  <bruno@clisp.org>
46548
46549         Make fflush-after-ungetc POSIX compliant on BSD systems.
46550         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
46551         (clear_ungetc_buffer): Implement also for other systems.
46552         (rpl_fflush): On glibc systems, invoke
46553         clear_ungetc_buffer_preserving_position. Otherwise, invoke
46554         clear_ungetc_buffer after fetching the stream's position, not before.
46555
46556 2009-01-15  Bruno Haible  <bruno@clisp.org>
46557
46558         Make fflush-after-ungetc POSIX compliant on glibc systems.
46559         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
46560         after ungetc.
46561         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
46562         (rpl_fflush): On glibc systems, simply call the system's fflush
46563         function after clearing the ungetc buffer.
46564         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
46565         Instead, lseek only to the end of file, then use the system's fseeko
46566         for the rest. On glibc systems, reset the EOF indicator bit.
46567
46568 2009-01-15  Jim Meyering  <meyering@redhat.com>
46569
46570         openmp.m4: revert quote-adding change, for portability to older autoconf
46571         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
46572         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
46573         Simon Josefsson noticed the problem when using autoconf-2.61.
46574
46575 2009-01-15  Bruno Haible  <bruno@clisp.org>
46576
46577         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
46578         * tests/test-fflush2.c (ASSERT): Always fail.
46579         (main): Add two tests for fflush() after ungetc(), taking into account
46580         the Austin Group's clarification.
46581         Suggested by Eric Blake.
46582
46583 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
46584
46585         mktime.m4: remove K&R-style function prototypes
46586         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
46587         for the Sun C++ compiler.
46588
46589 2009-01-14  Bruno Haible  <bruno@clisp.org>
46590
46591         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
46592         while including <wchar.h>.
46593         * lib/wchar.in.h: In two particular situations on HP-UX, include only
46594         the system's <wchar.h> file.
46595         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46596
46597 2009-01-14  Bruno Haible  <bruno@clisp.org>
46598
46599         * m4/csharp.m4: Don't mention gettext on the serial number line.
46600         * m4/csharpexec.m4: Likewise.
46601         * m4/eaccess.m4: Likewise.
46602         * m4/javaexec.m4: Likewise.
46603         * m4/sig_atomic_t.m4: Likewise.
46604         * m4/tmpdir.m4: Likewise.
46605         * m4/intldir.m4: Bump gettext version.
46606         * m4/lib-ld.m4: Likewise.
46607
46608 2009-01-14  Bruno Haible  <bruno@clisp.org>
46609
46610         * lib/progname.c (set_program_name): Add more comments.
46611         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
46612
46613 2009-01-14  Simon Josefsson  <simon@josefsson.org>
46614
46615         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
46616         were sys/stat.h does not define it.
46617
46618 2009-01-14  Jim Meyering  <meyering@redhat.com>
46619
46620         many *.m4 files: improve m4 quoting
46621         99% of this change was performed by running the following commands:
46622         git ls-files | grep '\.m4$' | xargs perl -pi \
46623           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
46624           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46625           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
46626           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
46627         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
46628         The remainder were to add Copyright dates, increment serial numbers,
46629         undo some changes in comments, exclude m4/intl.m4, and add quotes
46630         around the "1" in ",1" where the unusual spacing prohibited the
46631         above regexps from doing the job.  For more details, see
46632         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
46633         * m4/acl.m4: Modified.
46634         * m4/afs.m4: Likewise.
46635         * m4/alloca.m4: Likewise.
46636         * m4/argp.m4: Likewise.
46637         * m4/argz.m4: Likewise.
46638         * m4/atexit.m4: Likewise.
46639         * m4/bison-i18n.m4: Likewise.
46640         * m4/bison.m4: Likewise.
46641         * m4/byteswap.m4: Likewise.
46642         * m4/c-stack.m4: Likewise.
46643         * m4/c-strtod.m4: Likewise.
46644         * m4/calloc.m4: Likewise.
46645         * m4/canonicalize-lgpl.m4: Likewise.
46646         * m4/chown.m4: Likewise.
46647         * m4/clock_time.m4: Likewise.
46648         * m4/codeset.m4: Likewise.
46649         * m4/copy-file.m4: Likewise.
46650         * m4/csharp.m4: Likewise.
46651         * m4/csharpcomp.m4: Likewise.
46652         * m4/csharpexec.m4: Likewise.
46653         * m4/d-ino.m4: Likewise.
46654         * m4/d-type.m4: Likewise.
46655         * m4/dirfd.m4: Likewise.
46656         * m4/double-slash-root.m4: Likewise.
46657         * m4/eaccess.m4: Likewise.
46658         * m4/eealloc.m4: Likewise.
46659         * m4/environ.m4: Likewise.
46660         * m4/errno_h.m4: Likewise.
46661         * m4/euidaccess.m4: Likewise.
46662         * m4/execute.m4: Likewise.
46663         * m4/fatal-signal.m4: Likewise.
46664         * m4/fchdir.m4: Likewise.
46665         * m4/fcntl_h.m4: Likewise.
46666         * m4/fileblocks.m4: Likewise.
46667         * m4/filenamecat.m4: Likewise.
46668         * m4/findprog.m4: Likewise.
46669         * m4/flexmember.m4: Likewise.
46670         * m4/fnmatch.m4: Likewise.
46671         * m4/fopen.m4: Likewise.
46672         * m4/fpending.m4: Likewise.
46673         * m4/fprintf-posix.m4: Likewise.
46674         * m4/free.m4: Likewise.
46675         * m4/frexp.m4: Likewise.
46676         * m4/frexpl.m4: Likewise.
46677         * m4/fsusage.m4: Likewise.
46678         * m4/ftruncate.m4: Likewise.
46679         * m4/gc-camellia.m4: Likewise.
46680         * m4/gc-random.m4: Likewise.
46681         * m4/gc.m4: Likewise.
46682         * m4/getaddrinfo.m4: Likewise.
46683         * m4/getcwd-abort-bug.m4: Likewise.
46684         * m4/getcwd-path-max.m4: Likewise.
46685         * m4/getdate.m4: Likewise.
46686         * m4/getdomainname.m4: Likewise.
46687         * m4/getgroups.m4: Likewise.
46688         * m4/gethostname.m4: Likewise.
46689         * m4/gethrxtime.m4: Likewise.
46690         * m4/getline.m4: Likewise.
46691         * m4/getloadavg.m4: Likewise.
46692         * m4/getndelim2.m4: Likewise.
46693         * m4/getpass.m4: Likewise.
46694         * m4/gettext.m4: Likewise.
46695         * m4/gettime.m4: Likewise.
46696         * m4/gettimeofday.m4: Likewise.
46697         * m4/gnulib-common.m4: Likewise.
46698         * m4/group-member.m4: Likewise.
46699         * m4/host-os.m4: Likewise.
46700         * m4/iconv.m4: Likewise.
46701         * m4/iconv_open.m4: Likewise.
46702         * m4/inet_ntop.m4: Likewise.
46703         * m4/inet_pton.m4: Likewise.
46704         * m4/inline.m4: Likewise.
46705         * m4/intldir.m4: Likewise.
46706         * m4/intlmacosx.m4: Likewise.
46707         * m4/intmax.m4: Likewise.
46708         * m4/intmax_t.m4: Likewise.
46709         * m4/inttypes.m4: Likewise.
46710         * m4/inttypes_h.m4: Likewise.
46711         * m4/inttypes-pri.m4: Likewise.
46712         * m4/isapipe.m4: Likewise.
46713         * m4/isnand.m4: Likewise.
46714         * m4/isnanf.m4: Likewise.
46715         * m4/isnanl.m4: Likewise.
46716         * m4/javacomp.m4: Likewise.
46717         * m4/javaexec.m4: Likewise.
46718         * m4/jm-winsz1.m4: Likewise.
46719         * m4/jm-winsz2.m4: Likewise.
46720         * m4/lchown.m4: Likewise.
46721         * m4/lcmessage.m4: Likewise.
46722         * m4/ldexpl.m4: Likewise.
46723         * m4/lib-ld.m4: Likewise.
46724         * m4/lib-link.m4: Likewise.
46725         * m4/libsigsegv.m4: Likewise.
46726         * m4/link-follow.m4: Likewise.
46727         * m4/localcharset.m4: Likewise.
46728         * m4/locale-fr.m4: Likewise.
46729         * m4/locale-ja.m4: Likewise.
46730         * m4/locale-tr.m4: Likewise.
46731         * m4/locale-zh.m4: Likewise.
46732         * m4/lock.m4: Likewise.
46733         * m4/longlong.m4: Likewise.
46734         * m4/ls-mntd-fs.m4: Likewise.
46735         * m4/lstat.m4: Likewise.
46736         * m4/malloc.m4: Likewise.
46737         * m4/mathl.m4: Likewise.
46738         * m4/mbrtowc.m4: Likewise.
46739         * m4/mbstate_t.m4: Likewise.
46740         * m4/mbswidth.m4: Likewise.
46741         * m4/memchr.m4: Likewise.
46742         * m4/memcmp.m4: Likewise.
46743         * m4/memcpy.m4: Likewise.
46744         * m4/memmem.m4: Likewise.
46745         * m4/memmove.m4: Likewise.
46746         * m4/mempcpy.m4: Likewise.
46747         * m4/memrchr.m4: Likewise.
46748         * m4/memset.m4: Likewise.
46749         * m4/minmax.m4: Likewise.
46750         * m4/mkdir-slash.m4: Likewise.
46751         * m4/mkdtemp.m4: Likewise.
46752         * m4/mktime.m4: Likewise.
46753         * m4/mmap-anon.m4: Likewise.
46754         * m4/mountlist.m4: Likewise.
46755         * m4/nanosleep.m4: Likewise.
46756         * m4/nls.m4: Likewise.
46757         * m4/nocrash.m4: Likewise.
46758         * m4/open.m4: Likewise.
46759         * m4/openat.m4: Likewise.
46760         * m4/openmp.m4: Likewise.
46761         * m4/pathmax.m4: Likewise.
46762         * m4/perl.m4: Likewise.
46763         * m4/physmem.m4: Likewise.
46764         * m4/pipe.m4: Likewise.
46765         * m4/po.m4: Likewise.
46766         * m4/poll.m4: Likewise.
46767         * m4/posixtm.m4: Likewise.
46768         * m4/posixver.m4: Likewise.
46769         * m4/printf-frexp.m4: Likewise.
46770         * m4/printf-frexpl.m4: Likewise.
46771         * m4/printf-posix.m4: Likewise.
46772         * m4/printf-posix-rpl.m4: Likewise.
46773         * m4/printf.m4: Likewise.
46774         * m4/progtest.m4: Likewise.
46775         * m4/putenv.m4: Likewise.
46776         * m4/readline.m4: Likewise.
46777         * m4/readlink.m4: Likewise.
46778         * m4/readutmp.m4: Likewise.
46779         * m4/realloc.m4: Likewise.
46780         * m4/regex.m4: Likewise.
46781         * m4/relocatable.m4: Likewise.
46782         * m4/relocatable-lib.m4: Likewise.
46783         * m4/rename-dest-slash.m4: Likewise.
46784         * m4/rename.m4: Likewise.
46785         * m4/rmdir-errno.m4: Likewise.
46786         * m4/rmdir.m4: Likewise.
46787         * m4/roundf.m4: Likewise.
46788         * m4/roundl.m4: Likewise.
46789         * m4/rpmatch.m4: Likewise.
46790         * m4/save-cwd.m4: Likewise.
46791         * m4/selinux-selinux-h.m4: Likewise.
46792         * m4/setenv.m4: Likewise.
46793         * m4/settime.m4: Likewise.
46794         * m4/sig2str.m4: Likewise.
46795         * m4/sig_atomic_t.m4: Likewise.
46796         * m4/signalblocking.m4: Likewise.
46797         * m4/signbit.m4: Likewise.
46798         * m4/sigpipe.m4: Likewise.
46799         * m4/sockets.m4: Likewise.
46800         * m4/sockpfaf.m4: Likewise.
46801         * m4/st_dm_mode.m4: Likewise.
46802         * m4/stat-time.m4: Likewise.
46803         * m4/stdbool.m4: Likewise.
46804         * m4/stdint.m4: Likewise.
46805         * m4/stdint_h.m4: Likewise.
46806         * m4/stpcpy.m4: Likewise.
46807         * m4/stpncpy.m4: Likewise.
46808         * m4/strcase.m4: Likewise.
46809         * m4/strchrnul.m4: Likewise.
46810         * m4/strcspn.m4: Likewise.
46811         * m4/strdup.m4: Likewise.
46812         * m4/strftime.m4: Likewise.
46813         * m4/strndup.m4: Likewise.
46814         * m4/strnlen.m4: Likewise.
46815         * m4/strpbrk.m4: Likewise.
46816         * m4/strptime.m4: Likewise.
46817         * m4/strsep.m4: Likewise.
46818         * m4/strtod.m4: Likewise.
46819         * m4/strtoimax.m4: Likewise.
46820         * m4/strtok_r.m4: Likewise.
46821         * m4/strtol.m4: Likewise.
46822         * m4/strtoll.m4: Likewise.
46823         * m4/strtoul.m4: Likewise.
46824         * m4/strtoull.m4: Likewise.
46825         * m4/strtoumax.m4: Likewise.
46826         * m4/strverscmp.m4: Likewise.
46827         * m4/threadlib.m4: Likewise.
46828         * m4/timegm.m4: Likewise.
46829         * m4/tm_gmtoff.m4: Likewise.
46830         * m4/tmpdir.m4: Likewise.
46831         * m4/tmpfile.m4: Likewise.
46832         * m4/tzset.m4: Likewise.
46833         * m4/uintmax_t.m4: Likewise.
46834         * m4/unlinkdir.m4: Likewise.
46835         * m4/unlocked-io.m4: Likewise.
46836         * m4/uptime.m4: Likewise.
46837         * m4/userspec.m4: Likewise.
46838         * m4/utimbuf.m4: Likewise.
46839         * m4/utime.m4: Likewise.
46840         * m4/utimes-null.m4: Likewise.
46841         * m4/utimes.m4: Likewise.
46842         * m4/vararrays.m4: Likewise.
46843         * m4/vasnprintf.m4: Likewise.
46844         * m4/vfprintf-posix.m4: Likewise.
46845         * m4/vprintf-posix.m4: Likewise.
46846         * m4/wait-process.m4: Likewise.
46847         * m4/wchar_t.m4: Likewise.
46848         * m4/wint_t.m4: Likewise.
46849         * m4/write-any-file.m4: Likewise.
46850         * m4/yield.m4: Likewise.
46851
46852 2009-01-13  Bruno Haible  <bruno@clisp.org>
46853
46854         Avoid test-copy-file.sh failures when ACL support insufficient.
46855         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
46856         TESTS_ENVIRONMENT.
46857         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
46858         Reported by Jim Meyering.
46859
46860 2009-01-13  Bruno Haible  <bruno@clisp.org>
46861
46862         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
46863         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
46864         * modules/unistdio/u8-printf-parse (Files): Likewise.
46865         * modules/unistdio/u32-printf-parse (Files): Likewise.
46866         * modules/unistdio/ulc-printf-parse (Files): Likewise.
46867
46868 2009-01-13  Simon Josefsson  <simon@josefsson.org>
46869
46870         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
46871         and m4/inttypes_h.m4 too.
46872
46873 2009-01-12  Eric Blake  <ebb9@byu.net>
46874
46875         tests: IRIX 6.2 cc can't compile -0.0 into .data
46876         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
46877         rather than at compile-time.
46878         * tests/test-floorl.c (minus_zero): Likewise.
46879         * tests/test-frexpl.c (minus_zero): Likewise.
46880         * tests/test-isnan.c (minus_zerol): Likewise.
46881         * tests/test-isnanl.h (minus_zero): Likewise.
46882         * tests/test-ldexpl.c (minus_zero): Likewise.
46883         * tests/test-roundl.c (minus_zero): Likewise.
46884         * tests/test-signbit.c (minus_zerol): Likewise.
46885         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
46886         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
46887         * tests/test-truncl.c (minus_zero): Likewise.
46888         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
46889         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
46890         Reported by Tom G. Christensen and Nelson H. F. Beebe.
46891
46892 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46893
46894         regex: fix glibc bug 9697
46895         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
46896         handling.
46897
46898 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46899
46900         regex: fix glibc bug 697
46901         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
46902         being NULL also if there are no backreferences.
46903
46904 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
46905
46906         regex: merge glibc changes
46907         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
46908         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
46909         re_string_skip_chars, re_string_reconstruct): Likewise.
46910         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
46911
46912 2009-01-07  Jim Meyering  <meyering@redhat.com>
46913
46914         poll: filter through cppi
46915         * lib/poll.c: Indent cpp directives to reflect nesting.
46916
46917 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
46918
46919         poll: don't return uninitialized
46920         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
46921
46922 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
46923
46924         avoid compile failure on AIX 6.1
46925         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
46926         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
46927
46928 2009-01-04  Jim Meyering  <meyering@redhat.com>
46929
46930         remove duplicate inclusion of <stdio.h>
46931         * tests/test-fprintf-posix.c: Likewise.
46932         * tests/test-printf-posix.c: Likewise.
46933         * tests/test-snprintf-posix.c: Likewise.
46934         * tests/test-sprintf-posix.c: Likewise.
46935         * tests/test-vasprintf-posix.c: Likewise.
46936         * tests/test-vfprintf-posix.c: Likewise.
46937         * tests/test-vprintf-posix.c: Likewise.
46938         * tests/test-vsnprintf-posix.c: Likewise.
46939         * tests/test-vsprintf-posix.c: Likewise.
46940
46941 2009-01-03  Jim Meyering  <meyering@redhat.com>
46942
46943         gnulib-tool: fix sed-based filtering
46944         * gnulib-tool (func_filter_filelist): Remove extra backslash
46945         in sed_fff_filter definition.
46946
46947 2009-01-02  Jim Meyering  <meyering@redhat.com>
46948
46949         strftime: avoid compilation failure on Solaris 2.6
46950         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
46951         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
46952         Don't #define mbrlen or mbsinit, since now they're guaranteed to
46953         be available.  Reported by Tom G. Christensen.  Details in
46954         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
46955
46956 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46957             Bruno Haible  <bruno@clisp.org>
46958
46959         Speed up gnulib-tool by doing more string processing through shell
46960         built-ins.
46961         * gnulib-tool (fast_func_append): New variable.
46962         (func_remove_prefix, func_remove_suffix): New functions.
46963         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
46964         (func_filter_filelist): New function.
46965         (func_get_dependencies): Use func_remove_suffix instead of sed.
46966         (func_get_automake_snippet): Use func_filter_filelist instead of a
46967         subshell and sed invocation.
46968
46969 2009-01-01  Bruno Haible  <bruno@clisp.org>
46970
46971         Fix a security bug.
46972         * gnulib-tool (func_import, import, update): Don't allow the characters
46973         '"', '$', '`', '\' in macro arguments that become part of commands that
46974         are evaluated.
46975
46976 2009-01-01  Bruno Haible  <bruno@clisp.org>
46977
46978         * gnulib-tool (func_reset_sigpipe): Add more comments.
46979
46980 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46981
46982         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
46983         func_emit_tests_Makefile_am, func_import): Abort loops early if we
46984         already know the answer.
46985
46986 2009-01-01  Jim Meyering  <meyering@redhat.com>
46987
46988         * lib/version-etc.c (version_etc_va): Update copyright year.
46989
46990 2008-12-30  Bruno Haible  <bruno@clisp.org>
46991
46992         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
46993         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
46994         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
46995
46996 2008-12-29  Eric Blake  <ebb9@byu.net>
46997
46998         multiarch: avoid autoconf AC_REQUIRE bug
46999         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47000         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47001         2.63 and older.
47002         Reported by Bruno Haible, and analyzed in
47003         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47004
47005 2008-12-29  Bruno Haible  <bruno@clisp.org>
47006
47007         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47008         files in subdirectories correctly.
47009         Reported by Ralf Wildenhues.
47010
47011 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47012
47013         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47014         rather than 'join FILE -', for Solaris join.
47015
47016 2008-12-29  Bruno Haible  <bruno@clisp.org>
47017
47018         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47019         quoting.
47020         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47021         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47022         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47023         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47024         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47025         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47026         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47027         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47028         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47029         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47030         * m4/nls.m4 (AM_NLS): Likewise.
47031         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47032         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47033         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47034         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47035         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47036         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47037         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47038         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47039         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47040         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47041         * m4/xsize.m4 (gl_XSIZE): Likewise.
47042         Suggested by Jim Meyering.
47043
47044 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47045
47046         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47047         * lib/parse-duration.c: use a switch instead of cascading if's.
47048
47049 2008-12-29  Eric Blake  <ebb9@byu.net>
47050
47051         wchar.h: supply WEOF on Irix 5.3
47052         * lib/wchar.in.h (wint_t): Also supply WEOF.
47053         * lib/wctype.in.h (wint_t): Likewise.
47054         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47055         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47056         Reported by Tom G. Christensen.
47057
47058 2008-12-26  Bruno Haible  <bruno@clisp.org>
47059
47060         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47061         i486, i586, i686.
47062
47063 2008-12-26  Bruno Haible  <bruno@clisp.org>
47064
47065         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47066
47067 2008-12-26  Bruno Haible  <bruno@clisp.org>
47068
47069         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47070         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47071         not __STDC_CONSTANT_MACROS.
47072         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47073
47074 2008-12-25  Bruno Haible  <bruno@clisp.org>
47075
47076         Add support for universal builds to vasnprintf.
47077         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47078         universal builds, guess no.
47079         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47080         * modules/vasprintf-posix (Depends-on): Likewise.
47081         * modules/fprintf-posix (Depends-on): Likewise.
47082         * modules/vfprintf-posix (Depends-on): Likewise.
47083         * modules/snprintf-posix (Depends-on): Likewise.
47084         * modules/vsnprintf-posix (Depends-on): Likewise.
47085         * modules/sprintf-posix (Depends-on): Likewise.
47086         * modules/vsprintf-posix (Depends-on): Likewise.
47087         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47088         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47089         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47090         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47091         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47092         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47093         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47094
47095         Add support for universal builds to <inttypes.h>.
47096         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47097         _SCNu64_PREFIX): In Apple
47098         universal builds, define directly, using _LP64.
47099         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47100         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47101         * modules/inttypes (Depends-on): Add multiarch.
47102         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47103
47104         Add support for universal builds to <stdint.h>.
47105         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47106         universal builds, define directly, using _LP64.
47107         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47108         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47109         and size_t.
47110         * modules/stdint (Depends-on): Add multiarch.
47111         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47112
47113         New module 'multiarch'.
47114         * modules/multiarch: New file.
47115         * m4/multiarch.m4: New file.
47116
47117 2008-12-25  Bruno Haible  <bruno@clisp.org>
47118
47119         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47120
47121 2008-12-25  Bruno Haible  <bruno@clisp.org>
47122
47123         * modules/btowc (License): Relicense under LGPLv2+.
47124         * modules/mbsinit (License): Likewise.
47125         * modules/mbrtowc (License): Likewise.
47126         * modules/wcrtomb (License): Likewise.
47127         * modules/streq (License): Likewise.
47128         Reported by David Lutterkort <lutter@redhat.com>.
47129
47130 2008-12-23  Bruno Haible  <bruno@clisp.org>
47131
47132         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47133
47134 2008-12-23  Bruno Haible  <bruno@clisp.org>
47135
47136         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47137         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47138         GETADDRINFO_LIB, not in LIBS.
47139         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47140         * modules/canon-host (Link): Likewise.
47141         * NEWS: Mention the change.
47142         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47143         GETADDRINFO_LIB.
47144
47145 2008-12-22  Bruno Haible  <bruno@clisp.org>
47146
47147         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47148         * doc/posix-functions/iswalpha_l.texi: Likewise.
47149         * doc/posix-functions/iswblank_l.texi: Likewise.
47150         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47151         * doc/posix-functions/iswctype_l.texi: Likewise.
47152         * doc/posix-functions/iswdigit_l.texi: Likewise.
47153         * doc/posix-functions/iswgraph_l.texi: Likewise.
47154         * doc/posix-functions/iswlower_l.texi: Likewise.
47155         * doc/posix-functions/iswprint_l.texi: Likewise.
47156         * doc/posix-functions/iswpunct_l.texi: Likewise.
47157         * doc/posix-functions/iswspace_l.texi: Likewise.
47158         * doc/posix-functions/iswupper_l.texi: Likewise.
47159         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47160         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47161         * doc/posix-functions/open_wmemstream.texi: Likewise.
47162         * doc/posix-functions/swscanf.texi: Likewise.
47163         * doc/posix-functions/towctrans_l.texi: Likewise.
47164         * doc/posix-functions/towlower.texi: Likewise.
47165         * doc/posix-functions/towlower_l.texi: Likewise.
47166         * doc/posix-functions/towupper.texi: Likewise.
47167         * doc/posix-functions/towupper_l.texi: Likewise.
47168         * doc/posix-functions/vfwprintf.texi: Likewise.
47169         * doc/posix-functions/vfwscanf.texi: Likewise.
47170         * doc/posix-functions/vswscanf.texi: Likewise.
47171         * doc/posix-functions/vwprintf.texi: Likewise.
47172         * doc/posix-functions/vwscanf.texi: Likewise.
47173         * doc/posix-functions/wcpcpy.texi: Likewise.
47174         * doc/posix-functions/wcpncpy.texi: Likewise.
47175         * doc/posix-functions/wcscasecmp.texi: Likewise.
47176         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47177         * doc/posix-functions/wcscoll_l.texi: Likewise.
47178         * doc/posix-functions/wcsdup.texi: Likewise.
47179         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47180         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47181         * doc/posix-functions/wcsnlen.texi: Likewise.
47182         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47183         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47184         * doc/posix-functions/wctrans_l.texi: Likewise.
47185         * doc/posix-functions/wctype_l.texi: Likewise.
47186         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47187         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47188         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47189         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47190         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47191         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47192         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47193         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47194         * doc/glibc-functions/wcschrnul.texi: Likewise.
47195         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47196         * doc/glibc-functions/wcstod_l.texi: Likewise.
47197         * doc/glibc-functions/wcstof_l.texi: Likewise.
47198         * doc/glibc-functions/wcstol_l.texi: Likewise.
47199         * doc/glibc-functions/wcstold_l.texi: Likewise.
47200         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47201         * doc/glibc-functions/wcstoq.texi: Likewise.
47202         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47203         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47204         * doc/glibc-functions/wcstouq.texi: Likewise.
47205         * doc/glibc-functions/wmempcpy.texi: Likewise.
47206
47207 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47208             Eric Blake  <ebb9@byu.net>
47209             Paolo Bonzini  <bonzini@gnu.org>
47210             Bruno Haible  <bruno@clisp.org>
47211
47212         Make c-stack work on Haiku.
47213         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47214         (c_stack_action): Use SA_ONSTACK flag.
47215
47216 2008-12-22  Bruno Haible  <bruno@clisp.org>
47217
47218         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47219
47220 2008-12-22  Bruno Haible  <bruno@clisp.org>
47221
47222         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47223         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47224         being overridden.
47225         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47226         New macros.
47227         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47228         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47229         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47230         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47231
47232 2008-12-22  Bruno Haible  <bruno@clisp.org>
47233
47234         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47235         from test code.
47236
47237 2008-12-22  Eric Blake  <ebb9@byu.net>
47238
47239         Avoid gcc warnings on cygwin.
47240         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47241         Avoid unused variable.
47242         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47243         Likewise.
47244
47245 2008-12-22  Bruno Haible  <bruno@clisp.org>
47246
47247         Remove HAVE_MBRTOWC conditionals.
47248         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47249         (mbscasecmp): Assume mbrtowc function.
47250         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47251         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47252         * lib/mbschr.c: Include mbuiter.h unconditionally.
47253         (mbschr): Assume mbrtowc function.
47254         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47255         (mbscspn): Assume mbrtowc function.
47256         * lib/mbslen.c: Include mbuiter.h unconditionally.
47257         (mbslen): Assume mbrtowc function.
47258         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47259         (mbsncasecmp): Assume mbrtowc function.
47260         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47261         (mbsnlen): Assume mbrtowc function.
47262         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47263         (mbspbrk): Assume mbrtowc function.
47264         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47265         (mbspcasecmp): Assume mbrtowc function.
47266         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47267         (mbsrchr): Assume mbrtowc function.
47268         * lib/mbssep.c: Include mbuiter.h unconditionally.
47269         (mbssep): Assume mbrtowc function.
47270         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47271         (mbsspn): Assume mbrtowc function.
47272         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47273         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47274         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47275         (mbstok_r): Assume mbrtowc function.
47276         * lib/propername.c: Include mbuiter.h unconditionally.
47277         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47278         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47279         (trim2): Assume mbrtowc function.
47280         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47281         (mbsnwidth): Assume mbrtowc function.
47282         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47283         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47284         fallback definitions.
47285         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47286
47287 2008-12-22  Bruno Haible  <bruno@clisp.org>
47288
47289         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47290
47291 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47292
47293         * modules/regex: Request emulations for the mb*/wc* functions we need.
47294         * m4/regex.m4: Don't look for those functions here.
47295         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47296
47297 2008-12-22  Bruno Haible  <bruno@clisp.org>
47298
47299         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47300
47301 2008-12-21  Bruno Haible  <bruno@clisp.org>
47302
47303         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47304         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47305         (Include): Remove conditionalization.
47306         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47307         (Include): Remove conditionalization.
47308         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47309         (Include): Remove conditionalization.
47310         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47311         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47312         * NEWS: Mention the change.
47313         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47314         via Sergey Poznyakoff <gray@gnu.org.ua>.
47315
47316 2008-12-21  Bruno Haible  <bruno@clisp.org>
47317
47318         * MODULES.html.sh (Extended multibyte and wide character utilities
47319         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47320         wcrtomb, wcsrtombs.
47321         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47322         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47323         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47324         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47325
47326 2008-12-21  Bruno Haible  <bruno@clisp.org>
47327
47328         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47329
47330 2008-12-21  Bruno Haible  <bruno@clisp.org>
47331
47332         * modules/wcsnrtombs-tests: New file.
47333         * tests/test-wcsnrtombs1.sh: New file.
47334         * tests/test-wcsnrtombs2.sh: New file.
47335         * tests/test-wcsnrtombs3.sh: New file.
47336         * tests/test-wcsnrtombs4.sh: New file.
47337         * tests/test-wcsnrtombs.c: New file.
47338
47339         New module 'wcsnrtombs'.
47340         * lib/wchar.in.h (wcsnrtombs): New declaration.
47341         * lib/wcsnrtombs.c: New file.
47342         * lib/wcsrtombs-state.c: New file.
47343         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47344         (internal_state): Remove variable.
47345         * m4/wcsnrtombs.m4: New file.
47346         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47347         compilation units.
47348         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47349         HAVE_WCSNRTOMBS.
47350         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47351         HAVE_WCSNRTOMBS.
47352         * modules/wcsnrtombs: New file.
47353         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47354         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47355
47356 2008-12-21  Bruno Haible  <bruno@clisp.org>
47357
47358         * modules/wcsrtombs-tests: New file.
47359         * tests/test-wcsrtombs1.sh: New file.
47360         * tests/test-wcsrtombs2.sh: New file.
47361         * tests/test-wcsrtombs3.sh: New file.
47362         * tests/test-wcsrtombs4.sh: New file.
47363         * tests/test-wcsrtombs.c: New file.
47364
47365         New module 'wcsrtombs'.
47366         * lib/wchar.in.h (wcsrtombs): New declaration.
47367         * lib/wcsrtombs.c: New file.
47368         * m4/wcsrtombs.m4: New file.
47369         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47370         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47371         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47372         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47373         * modules/wcsrtombs: New file.
47374         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47375         bugs.
47376
47377 2008-12-21  Bruno Haible  <bruno@clisp.org>
47378
47379         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47380         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47381         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47382         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47383         if not correct.
47384         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47385         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47386         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47387         m4/locale-zh.m4, m4/codeset.m4.
47388         * doc/posix-functions/wcrtomb.texi: Document the bug.
47389
47390 2008-12-21  Bruno Haible  <bruno@clisp.org>
47391
47392         Work around a btowc() bug on IRIX 6.5.
47393         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47394         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47395         REPLACE_WTOBC if not.
47396         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47397         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47398         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47399
47400 2008-12-21  Bruno Haible  <bruno@clisp.org>
47401
47402         * modules/wcrtomb-tests: New file.
47403         * tests/test-wcrtomb.sh: New file.
47404         * tests/test-wcrtomb.c: New file.
47405
47406         New module 'wcrtomb'.
47407         * lib/wchar.in.h (wcrtomb): New declaration.
47408         * lib/wcrtomb.c: New file.
47409         * m4/wcrtomb.m4: New file.
47410         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47411         HAVE_WCRTOMB.
47412         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47413         HAVE_WCRTOMB.
47414         * modules/wcrtomb: New file.
47415         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47416
47417 2008-12-21  Bruno Haible  <bruno@clisp.org>
47418
47419         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47420         * modules/mbsrtowcs (Files): Likewise.
47421         * modules/wctob (Files): Likewise.
47422         * modules/c-strcase-tests (Files): Likewise.
47423         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47424         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47425         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47426         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47427         * modules/vasnprintf-posix-tests (Files): Likewise.
47428
47429 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47430
47431         gitlog-to-changelog: pass all command-line arguments to git-log
47432         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47433         it is sometimes convenient to filter the commits in various ways.
47434         gitlog-to-changelog only allows --since to specify a start date,
47435         but git-log itself supports many other filtering mechanisms.
47436         At the moment, I want to filter by branch name.  Rather than
47437         adding a --branch option to gitlog-to-changelog, it seems more
47438         flexible to simply pass all options directly to git-log and let
47439         git do the work.  Notice that this effectively makes --since a
47440         redundant option for gitlog-to-changelog, but removing it would
47441         require current usage to change since calls would then require
47442         an additional '--'.
47443
47444 2008-12-21  Bruno Haible  <bruno@clisp.org>
47445
47446         * modules/mbsnrtowcs-tests: New file.
47447         * tests/test-mbsnrtowcs1.sh: New file.
47448         * tests/test-mbsnrtowcs2.sh: New file.
47449         * tests/test-mbsnrtowcs3.sh: New file.
47450         * tests/test-mbsnrtowcs4.sh: New file.
47451         * tests/test-mbsnrtowcs.c: New file.
47452
47453         New module 'mbsnrtowcs'.
47454         * lib/wchar.in.h (mbsnrtowcs): New declaration.
47455         * lib/mbsnrtowcs.c: New file.
47456         * lib/mbsrtowcs-state.c: New file.
47457         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
47458         (internal_state): Remove variable.
47459         * m4/mbsnrtowcs.m4: New file.
47460         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
47461         compilation units.
47462         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
47463         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47464         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
47465         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
47466         * modules/mbsnrtowcs: New file.
47467         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
47468         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
47469         portability problem.
47470
47471 2008-12-21  Bruno Haible  <bruno@clisp.org>
47472
47473         Work around mbsrtowcs bug.
47474         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
47475         (gl_FUNC_MBSRTOWCS): Invoke it.
47476         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47477         m4/locale-zh.m4.
47478         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
47479
47480 2008-12-21  Bruno Haible  <bruno@clisp.org>
47481
47482         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
47483
47484 2008-12-21  Bruno Haible  <bruno@clisp.org>
47485
47486         Update doc for AIX.
47487         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
47488         16-bit wchar_t type.
47489         * doc/posix-functions/btowc.texi: Likewise.
47490         * doc/posix-functions/fgetwc.texi: Likewise.
47491         * doc/posix-functions/fgetws.texi: Likewise.
47492         * doc/posix-functions/fputwc.texi: Likewise.
47493         * doc/posix-functions/fputws.texi: Likewise.
47494         * doc/posix-functions/fwide.texi: Likewise.
47495         * doc/posix-functions/fwprintf.texi: Likewise.
47496         * doc/posix-functions/fwscanf.texi: Likewise.
47497         * doc/posix-functions/getwchar.texi: Likewise.
47498         * doc/posix-functions/getwc.texi: Likewise.
47499         * doc/posix-functions/iswalnum.texi: Likewise.
47500         * doc/posix-functions/iswalpha.texi: Likewise.
47501         * doc/posix-functions/iswblank.texi: Likewise.
47502         * doc/posix-functions/iswcntrl.texi: Likewise.
47503         * doc/posix-functions/iswctype.texi: Likewise.
47504         * doc/posix-functions/iswdigit.texi: Likewise.
47505         * doc/posix-functions/iswgraph.texi: Likewise.
47506         * doc/posix-functions/iswlower.texi: Likewise.
47507         * doc/posix-functions/iswprint.texi: Likewise.
47508         * doc/posix-functions/iswpunct.texi: Likewise.
47509         * doc/posix-functions/iswspace.texi: Likewise.
47510         * doc/posix-functions/iswupper.texi: Likewise.
47511         * doc/posix-functions/iswxdigit.texi: Likewise.
47512         * doc/posix-functions/mbrtowc.texi: Likewise.
47513         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47514         * doc/posix-functions/mbstowcs.texi: Likewise.
47515         * doc/posix-functions/mbtowc.texi: Likewise.
47516         * doc/posix-functions/putwchar.texi: Likewise.
47517         * doc/posix-functions/putwc.texi: Likewise.
47518         * doc/posix-functions/swprintf.texi: Likewise.
47519         * doc/posix-functions/tolower.texi: Likewise.
47520         * doc/posix-functions/toupper.texi: Likewise.
47521         * doc/posix-functions/towctrans.texi: Likewise.
47522         * doc/posix-functions/ungetwc.texi: Likewise.
47523         * doc/posix-functions/vswprintf.texi: Likewise.
47524         * doc/posix-functions/wcrtomb.texi: Likewise.
47525         * doc/posix-functions/wcscat.texi: Likewise.
47526         * doc/posix-functions/wcschr.texi: Likewise.
47527         * doc/posix-functions/wcscmp.texi: Likewise.
47528         * doc/posix-functions/wcscoll.texi: Likewise.
47529         * doc/posix-functions/wcscpy.texi: Likewise.
47530         * doc/posix-functions/wcscspn.texi: Likewise.
47531         * doc/posix-functions/wcsftime.texi: Likewise.
47532         * doc/posix-functions/wcslen.texi: Likewise.
47533         * doc/posix-functions/wcsncat.texi: Likewise.
47534         * doc/posix-functions/wcsncmp.texi: Likewise.
47535         * doc/posix-functions/wcsncpy.texi: Likewise.
47536         * doc/posix-functions/wcspbrk.texi: Likewise.
47537         * doc/posix-functions/wcsrchr.texi: Likewise.
47538         * doc/posix-functions/wcsrtombs.texi: Likewise.
47539         * doc/posix-functions/wcsspn.texi: Likewise.
47540         * doc/posix-functions/wcsstr.texi: Likewise.
47541         * doc/posix-functions/wcstod.texi: Likewise.
47542         * doc/posix-functions/wcstof.texi: Likewise.
47543         * doc/posix-functions/wcstoimax.texi: Likewise.
47544         * doc/posix-functions/wcstok.texi: Likewise.
47545         * doc/posix-functions/wcstold.texi: Likewise.
47546         * doc/posix-functions/wcstoll.texi: Likewise.
47547         * doc/posix-functions/wcstol.texi: Likewise.
47548         * doc/posix-functions/wcstombs.texi: Likewise.
47549         * doc/posix-functions/wcstoull.texi: Likewise.
47550         * doc/posix-functions/wcstoul.texi: Likewise.
47551         * doc/posix-functions/wcstoumax.texi: Likewise.
47552         * doc/posix-functions/wcswidth.texi: Likewise.
47553         * doc/posix-functions/wcsxfrm.texi: Likewise.
47554         * doc/posix-functions/wctob.texi: Likewise.
47555         * doc/posix-functions/wctomb.texi: Likewise.
47556         * doc/posix-functions/wctrans.texi: Likewise.
47557         * doc/posix-functions/wctype.texi: Likewise.
47558         * doc/posix-functions/wcwidth.texi: Likewise.
47559         * doc/posix-functions/wmemchr.texi: Likewise.
47560         * doc/posix-functions/wmemcmp.texi: Likewise.
47561         * doc/posix-functions/wmemcpy.texi: Likewise.
47562         * doc/posix-functions/wmemmove.texi: Likewise.
47563         * doc/posix-functions/wmemset.texi: Likewise.
47564         * doc/posix-functions/wprintf.texi: Likewise.
47565         * doc/posix-functions/wscanf.texi: Likewise.
47566
47567 2008-12-21  Bruno Haible  <bruno@clisp.org>
47568
47569         Update doc for HP-UX 11.11.
47570         * doc/posix-functions/btowc.texi: Clarify that the function is missing
47571         in HP-UX version 11.00, not in all versions of HP-UX 11.
47572         * doc/posix-functions/fwide.texi: Likewise.
47573         * doc/posix-functions/fwprintf.texi: Likewise.
47574         * doc/posix-functions/fwscanf.texi: Likewise.
47575         * doc/posix-functions/inet_ntop.texi: Likewise.
47576         * doc/posix-functions/inet_pton.texi: Likewise.
47577         * doc/posix-functions/mbrlen.texi: Likewise.
47578         * doc/posix-functions/mbrtowc.texi: Likewise.
47579         * doc/posix-functions/mbsinit.texi: Likewise.
47580         * doc/posix-functions/mbsrtowcs.texi: Likewise.
47581         * doc/posix-functions/swprintf.texi: Likewise.
47582         * doc/posix-functions/swscanf.texi: Likewise.
47583         * doc/posix-functions/towctrans.texi: Likewise.
47584         * doc/posix-functions/vfwprintf.texi: Likewise.
47585         * doc/posix-functions/vswprintf.texi: Likewise.
47586         * doc/posix-functions/vwprintf.texi: Likewise.
47587         * doc/posix-functions/wcrtomb.texi: Likewise.
47588         * doc/posix-functions/wcsrtombs.texi: Likewise.
47589         * doc/posix-functions/wcsstr.texi: Likewise.
47590         * doc/posix-functions/wctob.texi: Likewise.
47591         * doc/posix-functions/wctrans.texi: Likewise.
47592         * doc/posix-functions/wmemchr.texi: Likewise.
47593         * doc/posix-functions/wmemcmp.texi: Likewise.
47594         * doc/posix-functions/wmemcpy.texi: Likewise.
47595         * doc/posix-functions/wmemmove.texi: Likewise.
47596         * doc/posix-functions/wmemset.texi: Likewise.
47597         * doc/posix-functions/wprintf.texi: Likewise.
47598         * doc/posix-functions/wscanf.texi: Likewise.
47599
47600 2008-12-21  Bruno Haible  <bruno@clisp.org>
47601
47602         Work around a portability problem.
47603         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
47604         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
47605
47606 2008-12-20  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
47609         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
47610         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
47611         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
47612         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
47613
47614         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
47615         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
47616         set.
47617         (GNULIB_defined_mbstate_t): New macro.
47618         (mbsinit): Redefine if REPLACE_MBSINIT is set.
47619         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
47620         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
47621         reuses the system's mbrtowc function but works around the bugs.
47622         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
47623         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
47624         macros.
47625         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
47626         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
47627         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
47628         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
47629         REPLACE_MBSINIT if mbsinit needs to be overridden.
47630         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
47631         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47632         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
47633         REPLACE_MBSINIT, REPLACE_MBRTOWC.
47634         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47635         m4/locale-zh.m4.
47636         (Depends): Add mbsinit.
47637         * modules/mbsinit (Depends): Add mbrtowc.
47638         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
47639
47640 2008-12-20  Bruno Haible  <bruno@clisp.org>
47641
47642         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
47643         so that there are no conversion errors on AIX.
47644         * tests/test-mbsrtowcs.c (main): LIkewise.
47645
47646 2008-12-20  Bruno Haible  <bruno@clisp.org>
47647
47648         Work around wctob bug on Solaris <= 9.
47649         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
47650         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
47651         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
47652         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
47653         * modules/wctob (Files): Add m4/locale-fr.m4.
47654         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
47655
47656 2008-12-20  Bruno Haible  <bruno@clisp.org>
47657
47658         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
47659         /dev/null.
47660         * tests/test-select-in.sh: Likewise.
47661         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47662
47663 2008-12-20  Bruno Haible  <bruno@clisp.org>
47664
47665         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
47666         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
47667         Cygwin 1.5.x.
47668
47669 2008-12-20  Bruno Haible  <bruno@clisp.org>
47670
47671         Ensure mbstate_t is defined on HP-UX 11.11.
47672         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
47673         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
47674         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
47675         AC_USE_SYSTEM_EXTENSIONS.
47676         * modules/fnmatch (Depends-on): Add extensions.
47677         * modules/mbrlen (Depends-on): Likewise.
47678         * modules/mbrtowc (Depends-on): Likewise.
47679         * modules/mbsinit (Depends-on): Likewise.
47680         * modules/mbsrtowcs (Depends-on): Likewise.
47681         * modules/mbswidth (Depends-on): Likewise.
47682         * modules/quotearg (Depends-on): Likewise.
47683         * modules/strftime (Depends-on): Likewise.
47684
47685 2008-12-20  Bruno Haible  <bruno@clisp.org>
47686
47687         Ensure wctob is declared on IRIX 6.5.
47688         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
47689         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
47690         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
47691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
47692         of HAVE_WCTOB.
47693         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
47694         HAVE_WCTOB.
47695         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
47696
47697 2008-12-19  Bruno Haible  <bruno@clisp.org>
47698
47699         * modules/mbsrtowcs-tests: New file.
47700         * tests/test-mbsrtowcs1.sh: New file.
47701         * tests/test-mbsrtowcs2.sh: New file.
47702         * tests/test-mbsrtowcs3.sh: New file.
47703         * tests/test-mbsrtowcs4.sh: New file.
47704         * tests/test-mbsrtowcs.c: New file.
47705
47706         New module 'mbsrtowcs'.
47707         * lib/wchar.in.h (mbsrtowcs): New declaration.
47708         * lib/mbsrtowcs.c: New file.
47709         * m4/mbsrtowcs.m4: New file.
47710         * modules/mbsrtowcs: New file.
47711         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
47712         HAVE_MBSRTOWCS.
47713         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
47714         HAVE_MBSRTOWCS.
47715         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
47716
47717 2008-12-19  Bruno Haible  <bruno@clisp.org>
47718
47719         New module 'mbrlen'.
47720         * lib/wchar.in.h (mbrlen): New declaration.
47721         * lib/mbrlen.c: New file.
47722         * m4/mbrlen.m4: New file.
47723         * modules/mbrlen: New file.
47724         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
47725         HAVE_MBRLEN.
47726         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
47727         HAVE_MBRLEN.
47728         * doc/posix-functions/mbrlen.texi: Document the new module.
47729
47730 2008-12-19  Bruno Haible  <bruno@clisp.org>
47731
47732         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
47733         * modules/mbrtowc (Depends-on): Add verify.
47734         Suggested by Paul Eggert.
47735
47736 2008-12-18  Bruno Haible  <bruno@clisp.org>
47737
47738         * modules/mbsinit-tests: New file.
47739         * tests/test-mbsinit.sh: New file.
47740         * tests/test-mbsinit.c: New file.
47741
47742 2008-12-18  Bruno Haible  <bruno@clisp.org>
47743
47744         * modules/mbrtowc-tests: New file.
47745         * tests/test-mbrtowc1.sh: New file.
47746         * tests/test-mbrtowc2.sh: New file.
47747         * tests/test-mbrtowc3.sh: New file.
47748         * tests/test-mbrtowc4.sh: New file.
47749         * tests/test-mbrtowc.c: New file.
47750
47751         New module 'mbrtowc'.
47752         * lib/wchar.in.h (mbstate_t): Override when the system does not have
47753         mbsinit and mbrtowc.
47754         (mbrtowc): New declaration.
47755         * lib/mbrtowc.c: New file.
47756         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
47757         * modules/mbrtowc: New file.
47758         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
47759         HAVE_MBRTOWC.
47760         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
47761         HAVE_MBRTOWC.
47762         * doc/posix-functions/mbrtowc.texi: Document the new module.
47763
47764 2008-12-18  Bruno Haible  <bruno@clisp.org>
47765
47766         New module 'wctob'.
47767         * lib/wchar.in.h (wctob): New declaration.
47768         * lib/wctob.c: New file.
47769         * m4/wctob.m4: New file.
47770         * modules/wctob: New file.
47771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
47772         HAVE_WCTOB.
47773         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
47774         * doc/posix-functions/wctob.texi: Document the new module.
47775
47776 2008-12-18  Bruno Haible  <bruno@clisp.org>
47777
47778         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
47779         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
47780
47781 2008-12-18  Simon Josefsson  <simon@josefsson.org>
47782
47783         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
47784         G. Christensen" <tgc@jupiterrise.com>.
47785
47786         * lib/flock.c: Need to include errno.h.  Reported by "Tom
47787         G. Christensen" <tgc@jupiterrise.com>.
47788
47789         * lib/flock.c: Need to include string.h.  Reported by "Tom
47790         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
47791         <ebb9@byu.net>.
47792
47793 2008-12-18  Bruno Haible  <bruno@clisp.org>
47794
47795         * m4/locale-ja.m4: New file, from GNU gettext.
47796
47797 2008-12-17  Bruno Haible  <bruno@clisp.org>
47798
47799         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
47800         Suggested by Eric Blake.
47801
47802 2008-12-17  Bruno Haible  <bruno@clisp.org>
47803
47804         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
47805
47806 2008-12-17  Bruno Haible  <bruno@clisp.org>
47807
47808         * lib/mbsinit.c: Include verify.h. Verify an assumption.
47809         * modules/mbsinit (Depends-on): Add verify.
47810         Suggested by Paul Eggert.
47811
47812 2008-12-17  Bruno Haible  <bruno@clisp.org>
47813
47814         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
47815         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
47816         gl_FUNC_MBRTOWC.
47817         * m4/mbiter.m4 (gl_MBITER): LIkewise.
47818         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
47819         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
47820         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
47821         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
47822         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
47823         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
47824         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
47825         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
47826         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
47827         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
47828         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
47829         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
47830         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
47831         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
47832         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
47833         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
47834         * modules/trim (configure.ac): Likewise.
47835
47836 2008-12-17  Bruno Haible  <bruno@clisp.org>
47837
47838         * modules/btowc-tests: New file.
47839         * tests/test-btowc1.sh: New file.
47840         * tests/test-btowc2.sh: New file.
47841         * tests/test-btowc.c: New file.
47842
47843         New module 'btowc'.
47844         * lib/wchar.in.h (btowc): New declaration.
47845         * lib/btowc.c: New file.
47846         * m4/btowc.m4: New file.
47847         * modules/btowc: New file.
47848         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
47849         HAVE_BTOWC.
47850         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
47851         * doc/posix-functions/btowc.texi: Document the new module.
47852
47853 2008-12-17  Bruno Haible  <bruno@clisp.org>
47854
47855         New module 'mbsinit'.
47856         * lib/wchar.in.h (mbsinit): New declaration.
47857         * lib/mbsinit.c: New file.
47858         * m4/mbsinit.m4: New file.
47859         * modules/mbsinit: New file.
47860         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
47861         HAVE_MBSINIT.
47862         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
47863         HAVE_MBSINIT.
47864         * doc/posix-functions/mbsinit.texi: Document the new module.
47865
47866 2008-12-16  Bruno Haible  <bruno@clisp.org>
47867
47868         * lib/unistd.in.h: Add comment.
47869         * tests/test-environ.c: Don't include <stdlib.h>.
47870
47871 2008-12-16  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/parse-duration.h (parse_duration): Document return value
47874         convention.
47875         * lib/parse-duration.c: Include specification header first. Add
47876         comments.
47877         (_): Remove macro.
47878         (parse_year_month_day, parse_hour_minute_second): Move side effects
47879         outside of strchr call.
47880         (parse_non_iso8601): Move side effects outside of isspace call.
47881         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
47882         call.
47883
47884 2008-12-16  Bruno Haible  <bruno@clisp.org>
47885
47886         * tests/test-parse-duration.sh: Produce no output when the test
47887         succeeds.
47888
47889 2008-12-16  Bruno Haible  <bruno@clisp.org>
47890
47891         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
47892         expressions.
47893
47894 2008-12-15  Bruno Haible  <bruno@clisp.org>
47895
47896         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
47897         * doc/glibc-functions/flistxattr.texi: Likewise.
47898         * doc/glibc-functions/fopencookie.texi: Likewise.
47899         * doc/glibc-functions/fremovexattr.texi: Likewise.
47900         * doc/glibc-functions/fsetxattr.texi: Likewise.
47901         * doc/glibc-functions/getxattr.texi: Likewise.
47902         * doc/glibc-functions/lgetxattr.texi: Likewise.
47903         * doc/glibc-functions/listxattr.texi: Likewise.
47904         * doc/glibc-functions/llistxattr.texi: Likewise.
47905         * doc/glibc-functions/lremovexattr.texi: Likewise.
47906         * doc/glibc-functions/lsetxattr.texi: Likewise.
47907         * doc/glibc-functions/removexattr.texi: Likewise.
47908         * doc/glibc-functions/setxattr.texi: Likewise.
47909         * doc/posix-functions/open_memstream.texi: Likewise.
47910
47911 2008-12-15  Eric Blake  <ebb9@byu.net>
47912
47913         Update doc for cygwin 1.7.
47914         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
47915         functions.
47916         * doc/posix-functions/fchmodat.texi: Likewise.
47917         * doc/posix-functions/fchownat.texi: Likewise.
47918         * doc/posix-functions/fdopendir.texi: Likewise.
47919         * doc/posix-functions/fmemopen.texi: Likewise.
47920         * doc/posix-functions/freeaddrinfo.texi: Likewise.
47921         * doc/posix-functions/fstatat.texi: Likewise.
47922         * doc/posix-functions/futimens.texi: Likewise.
47923         * doc/posix-functions/gai_strerror.texi: Likewise.
47924         * doc/posix-functions/getaddrinfo.texi: Likewise.
47925         * doc/posix-functions/getnameinfo.texi: Likewise.
47926         * doc/posix-functions/if_freenameindex.texi: Likewise.
47927         * doc/posix-functions/if_indextoname.texi: Likewise.
47928         * doc/posix-functions/if_nameindex.texi: Likewise.
47929         * doc/posix-functions/if_nametoindex.texi: Likewise.
47930         * doc/posix-functions/insque.texi: Likewise.
47931         * doc/posix-functions/linkat.texi: Likewise.
47932         * doc/posix-functions/llrint.texi: Likewise.
47933         * doc/posix-functions/llrintf.texi: Likewise.
47934         * doc/posix-functions/llrintl.texi: Likewise.
47935         * doc/posix-functions/lockf.texi: Likewise.
47936         * doc/posix-functions/lrintl.texi: Likewise.
47937         * doc/posix-functions/mkdirat.texi: Likewise.
47938         * doc/posix-functions/mkfifoat.texi: Likewise.
47939         * doc/posix-functions/mknodat.texi: Likewise.
47940         * doc/posix-functions/mq_close.texi: Likewise.
47941         * doc/posix-functions/mq_getattr.texi: Likewise.
47942         * doc/posix-functions/mq_notify.texi: Likewise.
47943         * doc/posix-functions/mq_open.texi: Likewise.
47944         * doc/posix-functions/mq_receive.texi: Likewise.
47945         * doc/posix-functions/mq_send.texi: Likewise.
47946         * doc/posix-functions/mq_setattr.texi: Likewise.
47947         * doc/posix-functions/mq_timedreceive.texi: Likewise.
47948         * doc/posix-functions/mq_timedsend.texi: Likewise.
47949         * doc/posix-functions/mq_unlink.texi: Likewise.
47950         * doc/posix-functions/open_memstream.texi: Likewise.
47951         * doc/posix-functions/openat.texi: Likewise.
47952         * doc/posix-functions/posix_fadvise.texi: Likewise.
47953         * doc/posix-functions/posix_fallocate.texi: Likewise.
47954         * doc/posix-functions/posix_madvise.texi: Likewise.
47955         * doc/posix-functions/posix_memalign.texi: Likewise.
47956         * doc/posix-functions/posix_openpt.texi: Likewise.
47957         * doc/posix-functions/readlinkat.texi: Likewise.
47958         * doc/posix-functions/remque.texi: Likewise.
47959         * doc/posix-functions/renameat.texi: Likewise.
47960         * doc/posix-functions/rintl.texi: Likewise.
47961         * doc/posix-functions/sem_unlink.texi: Likewise.
47962         * doc/posix-functions/shm_open.texi: Likewise.
47963         * doc/posix-functions/shm_unlink.texi: Likewise.
47964         * doc/posix-functions/signgam.texi: Likewise.
47965         * doc/posix-functions/sigset.texi: Likewise.
47966         * doc/posix-functions/stpcpy.texi: Likewise.
47967         * doc/posix-functions/stpncpy.texi: Likewise.
47968         * doc/posix-functions/strerror.texi: Likewise.
47969         * doc/posix-functions/strtod.texi: Likewise.
47970         * doc/posix-functions/symlinkat.texi: Likewise.
47971         * doc/posix-functions/unlinkat.texi: Likewise.
47972         * doc/posix-functions/utimensat.texi: Likewise.
47973         * doc/glibc-functions/bindresvport.texi: Likewise.
47974         * doc/glibc-functions/dn_expand.texi: Likewise.
47975         * doc/glibc-functions/exp10.texi: Likewise.
47976         * doc/glibc-functions/exp10f.texi: Likewise.
47977         * doc/glibc-functions/fgetxattr.texi: Likewise.
47978         * doc/glibc-functions/flistxattr.texi: Likewise.
47979         * doc/glibc-functions/fopencookie.texi: Likewise.
47980         * doc/glibc-functions/freeifaddrs.texi: Likewise.
47981         * doc/glibc-functions/fremovexattr.texi: Likewise.
47982         * doc/glibc-functions/fsetxattr.texi: Likewise.
47983         * doc/glibc-functions/getifaddrs.texi: Likewise.
47984         * doc/glibc-functions/getxattr.texi: Likewise.
47985         * doc/glibc-functions/lgetxattr.texi: Likewise.
47986         * doc/glibc-functions/listxattr.texi: Likewise.
47987         * doc/glibc-functions/llistxattr.texi: Likewise.
47988         * doc/glibc-functions/lremovexattr.texi: Likewise.
47989         * doc/glibc-functions/lsetxattr.texi: Likewise.
47990         * doc/glibc-functions/pow10.texi: Likewise.
47991         * doc/glibc-functions/pow10f.texi: Likewise.
47992         * doc/glibc-functions/rcmd_af.texi: Likewise.
47993         * doc/glibc-functions/removexattr.texi: Likewise.
47994         * doc/glibc-functions/res_init.texi: Likewise.
47995         * doc/glibc-functions/res_mkquery.texi: Likewise.
47996         * doc/glibc-functions/res_query.texi: Likewise.
47997         * doc/glibc-functions/res_querydomain.texi: Likewise.
47998         * doc/glibc-functions/res_send.texi: Likewise.
47999         * doc/glibc-functions/rresvport_af.texi: Likewise.
48000         * doc/glibc-functions/setxattr.texi: Likewise.
48001         * doc/glibc-functions/strcasestr.texi: Likewise.
48002
48003 2008-12-15  Bruno Haible  <bruno@clisp.org>
48004
48005         Fix compilation error on OSF/1 4.0.
48006         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48007         <sys/time.h>, simply delegate to the system header.
48008         Reported by Daniel Richard G. <oss@teragram.com>.
48009
48010 2008-12-15  Bruno Haible  <bruno@clisp.org>
48011
48012         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48013         * doc/posix-functions/fchmodat.texi: Likewise.
48014         * doc/posix-functions/fchownat.texi: Likewise.
48015         * doc/posix-functions/fdopendir.texi: Likewise.
48016         * doc/posix-functions/fstatat.texi: Likewise.
48017         * doc/posix-functions/mkdirat.texi: Likewise.
48018         * doc/posix-functions/unlinkat.texi: Likewise.
48019
48020 2008-12-14  Bruno Haible  <bruno@clisp.org>
48021
48022         Update doc for POSIX:2008.
48023         * doc/posix-functions/faccessat.texi: New file.
48024         * doc/posix-functions/fchmodat.texi: New file.
48025         * doc/posix-functions/fchownat.texi: New file.
48026         * doc/posix-functions/fdopendir.texi: New file.
48027         * doc/posix-functions/fstatat.texi: New file.
48028         * doc/posix-functions/futimens.texi: New file.
48029         * doc/posix-functions/linkat.texi: New file.
48030         * doc/posix-functions/mkdirat.texi: New file.
48031         * doc/posix-functions/mkfifoat.texi: New file.
48032         * doc/posix-functions/mknodat.texi: New file.
48033         * doc/posix-functions/open_wmemstream.texi: New file.
48034         * doc/posix-functions/openat.texi: New file.
48035         * doc/posix-functions/psiginfo.texi: New file.
48036         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48037         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48038         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48039         * doc/posix-functions/readlinkat.texi: New file.
48040         * doc/posix-functions/renameat.texi: New file.
48041         * doc/posix-functions/strerror_l.texi: New file.
48042         * doc/posix-functions/symlinkat.texi: New file.
48043         * doc/posix-functions/unlinkat.texi: New file.
48044         * doc/posix-functions/utimensat.texi: New file.
48045         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48046
48047 2008-12-14  Bruno Haible  <bruno@clisp.org>
48048
48049         Update doc for POSIX:2008.
48050         * doc/posix-functions/alphasort.texi: Renamed from
48051         doc/glibc-functions/alphasort.texi.
48052         * doc/posix-functions/dirfd.texi: Renamed from
48053         doc/glibc-functions/dirfd.texi.
48054         * doc/posix-functions/dprintf.texi: Renamed from
48055         doc/glibc-functions/dprintf.texi.
48056         * doc/posix-functions/duplocale.texi: Renamed from
48057         doc/glibc-functions/duplocale.texi.
48058         * doc/posix-functions/fexecve.texi: Renamed from
48059         doc/glibc-functions/fexecve.texi.
48060         * doc/posix-functions/fmemopen.texi: Renamed from
48061         doc/glibc-functions/fmemopen.texi.
48062         * doc/posix-functions/freelocale.texi: Renamed from
48063         doc/glibc-functions/freelocale.texi.
48064         * doc/posix-functions/getdate_err.texi: Renamed from
48065         doc/glibc-functions/getdate_err.texi.
48066         * doc/posix-functions/isalnum_l.texi: Renamed from
48067         doc/glibc-functions/isalnum_l.texi.
48068         * doc/posix-functions/isalpha_l.texi: Renamed from
48069         doc/glibc-functions/isalpha_l.texi.
48070         * doc/posix-functions/isblank_l.texi: Renamed from
48071         doc/glibc-functions/isblank_l.texi.
48072         * doc/posix-functions/iscntrl_l.texi: Renamed from
48073         doc/glibc-functions/iscntrl_l.texi.
48074         * doc/posix-functions/isdigit_l.texi: Renamed from
48075         doc/glibc-functions/isdigit_l.texi.
48076         * doc/posix-functions/isgraph_l.texi: Renamed from
48077         doc/glibc-functions/isgraph_l.texi.
48078         * doc/posix-functions/islower_l.texi: Renamed from
48079         doc/glibc-functions/islower_l.texi.
48080         * doc/posix-functions/isprint_l.texi: Renamed from
48081         doc/glibc-functions/isprint_l.texi.
48082         * doc/posix-functions/ispunct_l.texi: Renamed from
48083         doc/glibc-functions/ispunct_l.texi.
48084         * doc/posix-functions/isspace_l.texi: Renamed from
48085         doc/glibc-functions/isspace_l.texi.
48086         * doc/posix-functions/isupper_l.texi: Renamed from
48087         doc/glibc-functions/isupper_l.texi.
48088         * doc/posix-functions/iswalnum_l.texi: Renamed from
48089         doc/glibc-functions/iswalnum_l.texi.
48090         * doc/posix-functions/iswalpha_l.texi: Renamed from
48091         doc/glibc-functions/iswalpha_l.texi.
48092         * doc/posix-functions/iswblank_l.texi: Renamed from
48093         doc/glibc-functions/iswblank_l.texi.
48094         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48095         doc/glibc-functions/iswcntrl_l.texi.
48096         * doc/posix-functions/iswctype_l.texi: Renamed from
48097         doc/glibc-functions/iswctype_l.texi.
48098         * doc/posix-functions/iswdigit_l.texi: Renamed from
48099         doc/glibc-functions/iswdigit_l.texi.
48100         * doc/posix-functions/iswgraph_l.texi: Renamed from
48101         doc/glibc-functions/iswgraph_l.texi.
48102         * doc/posix-functions/iswlower_l.texi: Renamed from
48103         doc/glibc-functions/iswlower_l.texi.
48104         * doc/posix-functions/iswprint_l.texi: Renamed from
48105         doc/glibc-functions/iswprint_l.texi.
48106         * doc/posix-functions/iswpunct_l.texi: Renamed from
48107         doc/glibc-functions/iswpunct_l.texi.
48108         * doc/posix-functions/iswspace_l.texi: Renamed from
48109         doc/glibc-functions/iswspace_l.texi.
48110         * doc/posix-functions/iswupper_l.texi: Renamed from
48111         doc/glibc-functions/iswupper_l.texi.
48112         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48113         doc/glibc-functions/iswxdigit_l.texi.
48114         * doc/posix-functions/isxdigit_l.texi: Renamed from
48115         doc/glibc-functions/isxdigit_l.texi.
48116         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48117         doc/glibc-functions/mbsnrtowcs.texi.
48118         * doc/posix-functions/mkdtemp.texi: Renamed from
48119         doc/glibc-functions/mkdtemp.texi.
48120         * doc/posix-functions/newlocale.texi: Renamed from
48121         doc/glibc-functions/newlocale.texi.
48122         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48123         doc/glibc-functions/nl_langinfo_l.texi.
48124         * doc/posix-functions/open_memstream.texi: Renamed from
48125         doc/glibc-functions/open_memstream.texi.
48126         * doc/posix-functions/opterr.texi: Renamed from
48127         doc/glibc-functions/opterr.texi.
48128         * doc/posix-functions/optind.texi: Renamed from
48129         doc/glibc-functions/optind.texi.
48130         * doc/posix-functions/optopt.texi: Renamed from
48131         doc/glibc-functions/optopt.texi.
48132         * doc/posix-functions/psignal.texi: Renamed from
48133         doc/glibc-functions/psignal.texi.
48134         * doc/posix-functions/scandir.texi: Renamed from
48135         doc/glibc-functions/scandir.texi.
48136         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48137         doc/glibc-functions/sched_get_priority_min.texi.
48138         * doc/posix-functions/signgam.texi: Renamed from
48139         doc/glibc-functions/signgam.texi.
48140         * doc/posix-functions/stpcpy.texi: Renamed from
48141         doc/glibc-functions/stpcpy.texi.
48142         * doc/posix-functions/stpncpy.texi: Renamed from
48143         doc/glibc-functions/stpncpy.texi.
48144         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48145         doc/glibc-functions/strcasecmp_l.texi.
48146         * doc/posix-functions/strcoll_l.texi: Renamed from
48147         doc/glibc-functions/strcoll_l.texi.
48148         * doc/posix-functions/strfmon_l.texi: Renamed from
48149         doc/glibc-functions/strfmon_l.texi.
48150         * doc/posix-functions/strftime_l.texi: Renamed from
48151         doc/glibc-functions/strftime_l.texi.
48152         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48153         doc/glibc-functions/strncasecmp_l.texi.
48154         * doc/posix-functions/strndup.texi: Renamed from
48155         doc/glibc-functions/strndup.texi.
48156         * doc/posix-functions/strnlen.texi: Renamed from
48157         doc/glibc-functions/strnlen.texi.
48158         * doc/posix-functions/strsignal.texi: Renamed from
48159         doc/glibc-functions/strsignal.texi.
48160         * doc/posix-functions/strxfrm_l.texi: Renamed from
48161         doc/glibc-functions/strxfrm_l.texi.
48162         * doc/posix-functions/timer_gettime.texi: Renamed from
48163         doc/glibc-functions/timer_gettime.texi.
48164         * doc/posix-functions/tolower_l.texi: Renamed from
48165         doc/glibc-functions/tolower_l.texi.
48166         * doc/posix-functions/toupper_l.texi: Renamed from
48167         doc/glibc-functions/toupper_l.texi.
48168         * doc/posix-functions/towctrans_l.texi: Renamed from
48169         doc/glibc-functions/towctrans_l.texi.
48170         * doc/posix-functions/towlower_l.texi: Renamed from
48171         doc/glibc-functions/towlower_l.texi.
48172         * doc/posix-functions/towupper_l.texi: Renamed from
48173         doc/glibc-functions/towupper_l.texi.
48174         * doc/posix-functions/uselocale.texi: Renamed from
48175         doc/glibc-functions/uselocale.texi.
48176         * doc/posix-functions/vdprintf.texi: Renamed from
48177         doc/glibc-functions/vdprintf.texi.
48178         * doc/posix-functions/wcpcpy.texi:
48179         Renamed from doc/glibc-functions/wcpcpy.texi.
48180         * doc/posix-functions/wcpncpy.texi: Renamed from
48181         doc/glibc-functions/wcpncpy.texi.
48182         * doc/posix-functions/wcscasecmp.texi: Renamed from
48183         doc/glibc-functions/wcscasecmp.texi.
48184         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48185         doc/glibc-functions/wcscasecmp_l.texi.
48186         * doc/posix-functions/wcscoll_l.texi: Renamed from
48187         doc/glibc-functions/wcscoll_l.texi.
48188         * doc/posix-functions/wcsdup.texi: Renamed from
48189         doc/glibc-functions/wcsdup.texi.
48190         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48191         doc/glibc-functions/wcsncasecmp.texi.
48192         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48193         doc/glibc-functions/wcsncasecmp_l.texi.
48194         * doc/posix-functions/wcsnlen.texi: Renamed from
48195         doc/glibc-functions/wcsnlen.texi.
48196         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48197         doc/glibc-functions/wcsnrtombs.texi.
48198         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48199         doc/glibc-functions/wcsxfrm_l.texi.
48200         * doc/posix-functions/wctrans_l.texi: Renamed from
48201         doc/glibc-functions/wctrans_l.texi.
48202         * doc/posix-functions/wctype_l.texi: Renamed from
48203         doc/glibc-functions/wctype_l.texi.
48204         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48205         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48206         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48207         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48208         these subsections.
48209         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48210         Remove sections.
48211
48212 2008-12-14  Bruno Haible  <bruno@clisp.org>
48213
48214         Update doc for POSIX:2008.
48215         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48216
48217 2008-12-14  Bruno Haible  <bruno@clisp.org>
48218
48219         Update doc for POSIX:2008.
48220         * doc/pastposix-functions/bcmp.texi: Renamed from
48221         doc/posix-functions/bcmp.texi.
48222         * doc/pastposix-functions/bcopy.texi: Renamed from
48223         doc/posix-functions/bcopy.texi.
48224         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48225         doc/posix-functions/bsd_signal.texi.
48226         * doc/pastposix-functions/bzero.texi: Renamed from
48227         doc/posix-functions/bzero.texi.
48228         * doc/pastposix-functions/ecvt.texi: Renamed from
48229         doc/posix-functions/ecvt.texi.
48230         * doc/pastposix-functions/fcvt.texi: Renamed from
48231         doc/posix-functions/fcvt.texi.
48232         * doc/pastposix-functions/ftime.texi: Renamed from
48233         doc/posix-functions/ftime.texi.
48234         * doc/pastposix-functions/gcvt.texi: Renamed from
48235         doc/posix-functions/gcvt.texi.
48236         * doc/pastposix-functions/getcontext.texi: Renamed from
48237         doc/posix-functions/getcontext.texi.
48238         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48239         doc/posix-functions/gethostbyaddr.texi.
48240         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48241         doc/posix-functions/gethostbyname.texi.
48242         * doc/pastposix-functions/getwd.texi: Renamed from
48243         doc/posix-functions/getwd.texi.
48244         * doc/pastposix-functions/h_errno.texi: Renamed from
48245         doc/posix-functions/h_errno.texi.
48246         * doc/pastposix-functions/index.texi: Renamed from
48247         doc/posix-functions/index.texi.
48248         * doc/pastposix-functions/makecontext.texi: Renamed from
48249         doc/posix-functions/makecontext.texi.
48250         * doc/pastposix-functions/mktemp.texi: Renamed from
48251         doc/posix-functions/mktemp.texi.
48252         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48253         doc/posix-functions/pthread_attr_getstackaddr.texi.
48254         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48255         doc/posix-functions/pthread_attr_setstackaddr.texi.
48256         * doc/pastposix-functions/rindex.texi: Renamed from
48257         doc/posix-functions/rindex.texi.
48258         * doc/pastposix-functions/scalb.texi: Renamed from
48259         doc/posix-functions/scalb.texi.
48260         * doc/pastposix-functions/setcontext.texi: Renamed from
48261         doc/posix-functions/setcontext.texi.
48262         * doc/pastposix-functions/swapcontext.texi: Renamed from
48263         doc/posix-functions/swapcontext.texi.
48264         * doc/pastposix-functions/ualarm.texi: Renamed from
48265         doc/posix-functions/ualarm.texi.
48266         * doc/pastposix-functions/usleep.texi: Renamed from
48267         doc/posix-functions/usleep.texi.
48268         * doc/pastposix-functions/vfork.texi: Renamed from
48269         doc/posix-functions/vfork.texi.
48270         * doc/pastposix-functions/wcswcs.texi: Renamed from
48271         doc/posix-functions/wcswcs.texi.
48272         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48273         (Function Substitutes): Update.
48274
48275 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48276
48277         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48278         m4/strerror.m4.
48279
48280 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48281             Bruno Haible  <bruno@clisp.org>
48282
48283         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48284
48285 2008-12-13  Bruno Haible  <bruno@clisp.org>
48286
48287         * modules/strtoull (Depends-on): Remove unistd.
48288
48289 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48290
48291         * modules/strtoull (Depends-on): Add stdlib.
48292
48293 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48294
48295         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48296
48297 2008-12-10  Jim Meyering  <meyering@redhat.com>
48298
48299         gl_ASSERT: don't say assertions are disabled when they're not
48300         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48301         "checking whether to enable assertions... no", when they are in
48302         fact enabled.  This is solely a bug in the output of configure.
48303         In spite of saying "no", NDEBUG was not defined in that case.
48304         Also, as noted by Eric Blake, leave assertions enabled upon
48305         --enable-assert=INVALID.
48306
48307 2008-12-10  Bruno Haible  <bruno@clisp.org>
48308
48309         Change MODULES.html to refer to POSIX:2008 where possible.
48310         * MODULES.html.sh (POSIX2008_URL): New variable.
48311         (posix_headers): Remove sys/timeb, ucontext.
48312         (posix2001_headers): New variable.
48313         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48314         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48315         index, makecontext, mktemp, pthread_attr_getstackaddr,
48316         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48317         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48318         (posix2001_functions): New variable.
48319         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48320         otherwise.
48321
48322 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48323
48324         add missing include to parse-duration.c
48325         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48326         * modules/parse-duration (Depends-on): Add xalloc.
48327
48328         fix sed script reading maint.mk
48329         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48330         (syntax-check-rules): Use it.
48331
48332 2008-12-09  Bruno Haible  <bruno@clisp.org>
48333
48334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48335         MacOS X 10.4/PowerPC.
48336         Reported by Simon Josefsson.
48337
48338 2008-12-08  Jim Meyering  <meyering@redhat.com>
48339
48340         work around mingw's lack of some S_IF definitions
48341         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48342         Reported by Simon Josefsson.
48343
48344 2008-12-08  Bruno Haible  <bruno@clisp.org>
48345
48346         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48347         applied to variables. Needed on MacOS X 10.4/PowerPC.
48348         Reported by Simon Josefsson.
48349
48350 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48351         and Eric Blake  <ebb9@byu.net>
48352
48353         assert: honor --enable-assert
48354         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48355         order to honor --enable-assert, rather than treating it as a
48356         synonym for --disable-assert.
48357
48358 2008-12-08  Jim Meyering  <meyering@redhat.com>
48359
48360         * lib/posixtm.c: Remove now-useless declaration of mktime.
48361
48362         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48363
48364 2008-12-07  Bruno Haible  <bruno@clisp.org>
48365
48366         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48367         test_once): Mark functions as static.
48368         * tests/test-tls.c (test_tls): Likewise.
48369
48370 2008-12-07  Bruno Haible  <bruno@clisp.org>
48371
48372         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48373         iconv_register_autodetect.
48374
48375 2008-12-07  Jim Meyering  <meyering@redhat.com>
48376
48377         posixtm.c: avoid a warning
48378         * lib/posixtm.c (posixtime): Don't initialize tm0.
48379         It's no longer needed to placate gcc4's -Wuninitialized,
48380         and the attempt to placate would elicit a new warning.
48381
48382         unicodeio.c: mark unused parameters
48383         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48384         (fallback_failure_callback): Likewise.
48385
48386 2008-12-07  Bruno Haible  <bruno@clisp.org>
48387
48388         * gnulib-tool (func_create_testdir): When building the tests
48389         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48390         Reported by Simon Josefsson.
48391
48392 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48393
48394         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48395
48396 2008-12-06  Bruno Haible  <bruno@clisp.org>
48397
48398         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48399         Suggested by Eric Blake.
48400
48401 2008-12-06  Bruno Haible  <bruno@clisp.org>
48402
48403         Fix a c-stack test failure on MacOS X.
48404         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48405         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48406         handler for SIGBUS as well.
48407         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48408         install a signal handler for SIGBUS as well.
48409         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48410
48411 2008-12-06  Bruno Haible  <bruno@clisp.org>
48412
48413         Advocacy documentation.
48414         * doc/gnulib-intro.texi (Benefits): New section.
48415         * doc/gnulib.texi: Update.
48416
48417 2008-12-06  Bruno Haible  <bruno@clisp.org>
48418
48419         Document the 'manywarnings' module.
48420         * doc/manywarnings.texi: New file.
48421         * doc/gnulib.texi: Include it.
48422
48423 2008-12-05  Eric Blake  <ebb9@byu.net>
48424
48425         tests: silence some gcc warnings
48426         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48427         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48428         type mismatches.
48429
48430 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48431             Bruno Haible  <bruno@clisp.org>
48432
48433         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48434
48435 2008-11-29  Jim Meyering  <meyering@redhat.com>
48436
48437         unicodeio.c: mark unused parameters
48438         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48439         (fallback_failure_callback): Likewise.
48440
48441         fts: fix a thinko
48442         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
48443         (set_stat_type): Return S_IF*-valued "type" directly.
48444         Prompted by James Youngman's spotting a related bug.
48445         Confirmed by further testing through find.
48446
48447         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
48448         * lib/fts.c (D_TYPE): Define.
48449         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
48450         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
48451         (s_ifmt_shift_bits): New function.
48452         (set_stat_type): New function.
48453         (fts_build): When not calling fts_stat, call set_stat_type
48454         to propagate dirent.d_type info to fts_read caller.
48455         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
48456         fts_statp->st_mode type information may be valid.
48457
48458 2008-11-28  Simon Josefsson  <simon@josefsson.org>
48459
48460         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
48461         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
48462         <sds@gnu.org>.
48463
48464 2008-11-20  Bruno Haible  <bruno@clisp.org>
48465
48466         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
48467         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
48468         INCLUDE_NEXT.
48469         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
48470         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
48471         * modules/math (Makefile.am): Substitute
48472         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
48473         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48474
48475 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
48476             Bruno Haible  <bruno@clisp.org>
48477
48478         * lib/stdint.in.h: Define all type macros so that their expansion is
48479         a single typedef'ed token. Fixes a compilation failure in Boost which
48480         does "using ::int8_t;".
48481
48482 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48483
48484         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
48485         gl_MANYWARN_ALL_GCC.
48486         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
48487         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
48488         * modules/manywarnings: New file.
48489         * MODULES.html.sh: Mention manywarnings module.
48490
48491 2008-11-18  Bruno Haible  <bruno@clisp.org>
48492
48493         * doc/gnulib-tool.texi (Unit tests): New section.
48494
48495 2008-11-18  Simon Josefsson  <simon@josefsson.org>
48496
48497         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
48498         paths like 'lib/po/foo.po'.
48499
48500 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48501
48502         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
48503         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
48504
48505 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48506
48507         * m4/warnings.m4: Use CPPFLAGS to really check whether the
48508         parameter works.
48509
48510 2008-11-17  Simon Josefsson  <simon@josefsson.org>
48511
48512         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
48513
48514 2008-11-17  Bruce Korb  <bkorb@gnu.org>
48515
48516         * modules/parse-duration-tests: New file.
48517         * tests/test-parse-duration.sh: New file.
48518         * tests/test-parse-duration.c: New file.
48519
48520         New module 'parse-duration'.
48521         * lib/parse-duration.h: New file.
48522         * lib/parse-duration.c: New file.
48523         * modules/parse-duration: New file.
48524
48525 2008-11-17  Bruno Haible  <bruno@clisp.org>
48526
48527         * tests/test-select-out.sh: Comment out the first pipe test.
48528         Reported by Simon Josefsson.
48529
48530 2008-11-17  Bruno Haible  <bruno@clisp.org>
48531
48532         * modules/getaddrinfo (Depends-on): Add servent, hostent.
48533         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
48534         gl_HOSTENT.
48535
48536 2008-11-17  Bruno Haible  <bruno@clisp.org>
48537
48538         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
48539         -lnetwork and -lnet. Needed for Haiku and BeOS.
48540
48541 2008-11-16  Bruno Haible  <bruno@clisp.org>
48542
48543         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
48544
48545 2008-11-16  Bruno Haible  <bruno@clisp.org>
48546
48547         Avoid test failure on Haiku.
48548         * tests/test-fsync.c: Include <errno.h>.
48549         (main): Don't require that fsync (0) fails.
48550
48551 2008-11-15  Bruno Haible  <bruno@clisp.org>
48552
48553         New module 'hostent'.
48554         * modules/hostent: New file.
48555         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
48556
48557 2008-11-15  Bruno Haible  <bruno@clisp.org>
48558
48559         New module 'servent'.
48560         * modules/servent: New file.
48561         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
48562
48563 2008-11-15  Bruno Haible  <bruno@clisp.org>
48564
48565         Avoid generating same test program with two different rules.
48566         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
48567         test-frexp to test-frexp-nolibm.
48568         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
48569         test-frexpl to test-frexpl-nolibm.
48570
48571 2008-11-15  Bruno Haible  <bruno@clisp.org>
48572
48573         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
48574         $(FREXPL_LIBM).
48575
48576 2008-11-15  Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/netdb.in.h: Activate the definitions also when the system's
48579         <netdb.h> has 'struct addrinfo'.
48580         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
48581         EAI_OVERFLOW or AI_NUMERICSERV.
48582         * doc/posix-headers/netdb.texi: Document the problem.
48583
48584 2008-11-15  Bruno Haible  <bruno@clisp.org>
48585
48586         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
48587
48588         Make the 'sched' module work on platforms where <sched.h> exists but
48589         is incomplete (such as Haiku).
48590         * lib/sched.in.h; Include the system's <sched.h> if it exists.
48591         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
48592         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
48593         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
48594         HAVE_STRUCT_SCHED_PARAM.
48595         * modules/sched (Depends-on): Add include_next.
48596         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
48597         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
48598         * doc/posix-headers/sched.texi: Document the issue.
48599
48600 2008-11-13  Jim Meyering  <meyering@redhat.com>
48601
48602         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
48603         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
48604         test would fail due to the difference in the Report bugs to ...
48605         line.  The expected address is empty, "<>", while the actual
48606         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
48607
48608 2008-11-12  Bruno Haible  <bruno@clisp.org>
48609
48610         lstat: don't compile lstat.c on systems lacking lstat
48611         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
48612         which don't have lstat; this is handled by lib/sys_stat.in.h already.
48613         Reported by Daniel P. Berrange via Jim Meyering.
48614
48615 2008-11-12  Jim Meyering  <meyering@redhat.com>
48616
48617         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
48618
48619 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48620
48621         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
48622         instead.
48623
48624 2008-11-12  Bruno Haible  <bruno@clisp.org>
48625
48626         * lib/unicodeio.c: Include unistr.h.
48627         (utf8_wctomb): Remove function.
48628         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
48629
48630 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48631
48632         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
48633         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
48634         <bruno@clisp.org>.
48635         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
48636
48637 2008-11-12  Simon Josefsson  <simon@josefsson.org>
48638
48639         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
48640         * doc/gnulib.texi: Add section for warnings.
48641
48642 2008-11-11  Bruno Haible  <bruno@clisp.org>
48643
48644         * lib/sockets.h: Add a comment.
48645
48646 2008-11-11  Karl Berry  <karl@gnu.org>
48647
48648         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
48649
48650 2008-11-11  Eric Blake  <ebb9@byu.net>
48651
48652         fdl.texi: avoid git symlinks
48653         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
48654
48655 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48656
48657         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
48658
48659 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48660
48661         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
48662         (gl_WARN_ADD): Substitute $2 if literal.
48663
48664 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48665
48666         * m4/warning.m4: Remove.
48667
48668 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
48669
48670         * m4/warnings.m4: Almost complete rewrite. :-)
48671
48672 2008-11-10  Simon Josefsson  <simon@josefsson.org>
48673
48674         * modules/warnings: New module.
48675         * m4/warnings.m4: New file.
48676         * MODULES.html.sh: Mention warnings module.
48677         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
48678         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48679
48680 2008-11-10  Eric Blake  <ebb9@byu.net>
48681
48682         fdl.texi: make a symlink to the latest version
48683         * doc/standards.texi: Revert today's earlier change.
48684         * doc/fdl-1.2.texi: Rename from old fdl.texi...
48685         * doc/fdl.texi: ...and replace this with a symlink to the newer
48686         fdl-1.3.texi.
48687
48688 2008-11-10  Bruno Haible  <bruno@clisp.org>
48689
48690         * tests/test-select-fd.c (main): Accept the result file name as fourth
48691         argument.
48692         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
48693         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
48694
48695 2008-11-10  Bruno Haible  <bruno@clisp.org>
48696
48697         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
48698         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
48699         as autoconf-substituted macros.
48700         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
48701         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
48702         gl_NETDB_H_DEFAULTS. Set these variables.
48703         * modules/netdb (Makefile.am): Substitute these variables.
48704
48705 2008-11-10  Eric Blake  <ebb9@byu.net>
48706
48707         standards.texi: include correct file for FDL 1.3
48708         * doc/standards.texi (GNU Free Documentation License): Change
48709         include file to pull in FDL 1.3, not 1.2.
48710
48711         fdl.texi: revert accidental change to license
48712         * doc/fdl.texi: This is FDL 1.2, not 1.3.
48713
48714 2008-11-10  Bruno Haible  <bruno@clisp.org>
48715
48716         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
48717         cross-compiling guesses also when the native compile gives no result.
48718
48719 2008-11-10  Bruno Haible  <bruno@clisp.org>
48720
48721         * lib/spawni.c (__spawni): Force variable into the stack.
48722
48723 2008-11-10  Bruno Haible  <bruno@clisp.org>
48724
48725         Add support for Haiku.
48726         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
48727         glibc and BeOS, but also on Haiku.
48728         * lib/fpurge.c (fpurge): Likewise.
48729         * lib/freadable.c (freadable): Likewise.
48730         * lib/freadahead.c (freadahead): Likewise.
48731         * lib/freading.c (freading): Likewise.
48732         * lib/freadptr.c (freadptr): Likewise.
48733         * lib/freadseek.c (freadptrinc): Likewise.
48734         * lib/fseeko.c (rpl_fseeko): Likewise.
48735         * lib/fseterr.c (fseterr): Likewise.
48736         * lib/fwritable.c (fwritable): Likewise.
48737         * lib/fwriting.c (fwriting): Likewise.
48738         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
48739
48740 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48741
48742         * lib/config.charset: Treat Haiku like BeOS.
48743
48744 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
48745
48746         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
48747         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
48748
48749 2008-11-08  Bruno Haible  <bruno@clisp.org>
48750
48751         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
48752         AC_CACHE_CHECK.
48753
48754 2008-11-08  Bruno Haible  <bruno@clisp.org>
48755
48756         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
48757
48758 2008-11-08  Bruno Haible  <bruno@clisp.org>
48759
48760         * tests/test-select-fd.c: New file.
48761         * tests/test-select-in.sh: New file.
48762         * tests/test-select-out.sh: New file.
48763         * tests/test-select-stdin.c: New file.
48764         * modules/select-tests (Files): Add the new files.
48765         (Depends-on): Add gettimeofday.
48766         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
48767         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
48768         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
48769
48770 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
48771             Bruno Haible  <bruno@clisp.org>
48772
48773         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
48774
48775 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
48776
48777         * build-aux/pmccabe2html: Added support for C++ source files.
48778
48779 2008-11-05  Ben Pfaff  <blp@gnu.org>
48780
48781         Fix lib/close.c build on Windows.
48782         * modules/close (Files): Add lib/w32sock.h.
48783
48784 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
48785
48786         Accept Bison's NEWS format.
48787         * build-aux/announce-gen (print_news_deltas): Tweak
48788         $re_prefix.
48789
48790 2008-11-04  Bruno Haible  <bruno@clisp.org>
48791
48792         * modules/random_r (Maintainer): Add glibc.
48793
48794 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48795
48796         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
48797         by karl@freefriends.org (Karl Berry).
48798         * doc/alloca.texi: Likewise.
48799         * doc/c-ctype.texi: Likewise.
48800         * doc/c-strcase.texi: Likewise.
48801         * doc/c-strcaseeq.texi: Likewise.
48802         * doc/c-strcasestr.texi: Likewise.
48803         * doc/c-strstr.texi: Likewise.
48804         * doc/c-strtod.texi: Likewise.
48805         * doc/c-strtold.texi: Likewise.
48806         * doc/ctime.texi: Likewise.
48807         * doc/error.texi: Likewise.
48808         * doc/fdl.texi: Likewise.
48809         * doc/gcd.texi: Likewise.
48810         * doc/getdate.texi: Likewise.
48811         * doc/gnulib-intro.texi: Likewise.
48812         * doc/gnulib-tool.texi: Likewise.
48813         * doc/gnulib.texi: Likewise.
48814         * doc/inet_ntoa.texi: Likewise.
48815         * doc/maintain.texi: Likewise.
48816         * doc/make-stds.texi: Likewise.
48817         * doc/quote.texi: Likewise.
48818         * doc/regexprops-generic.texi: Likewise.
48819         * doc/standards.texi: Likewise.
48820         * doc/verify.texi: Likewise.
48821         * doc/visibility.texi: Likewise.
48822         * doc/gnulib.texi (GNU Free Documentation License): Include
48823         fdl-1.3.texi instead of fdl.texi.
48824
48825 2008-11-04  Simon Josefsson  <simon@josefsson.org>
48826
48827         * doc/fdl-1.3.texi: New file, from
48828         <http://www.gnu.org/licenses/fdl-1.3.texi>.
48829         * modules/fdl-1.3: Add.
48830         * MODULES.html.sh: Add fdl-1.3.
48831
48832 2008-11-03  Bruno Haible  <bruno@clisp.org>
48833
48834         Make determination of absolute name of header file work with AIX xlc.
48835         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
48836         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
48837         preprocessing.
48838         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48839         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
48840
48841 2008-11-03  Simon Josefsson  <simon@josefsson.org>
48842
48843         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
48844         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
48845         <ludo@gnu.org>.
48846
48847 2008-11-02  Bruno Haible  <bruno@clisp.org>
48848
48849         Mark 'strpbrk' obsolete.
48850         * modules/strpbrk (Status, Notice): New sections.
48851         * modules/strtok_r (Depends-on): Add strpbrk.
48852
48853 2008-11-02  Bruno Haible  <bruno@clisp.org>
48854
48855         Mark 'strdup' obsolete.
48856         * modules/strdup (Status, Notice): New sections.
48857         * modules/findprog (Depends-on): Add strdup.
48858         * modules/getaddrinfo (Depends-on): Likewise.
48859         * modules/localename (Depends-on): Likewise.
48860         * modules/relocatable-lib (Depends-on): Likewise.
48861         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
48862         * modules/relocatable-prog (Depends-on): Likewise.
48863         * modules/trim (Depends-on): Likewise.
48864         * modules/unictype/gen-ctype (Depends-on): Likewise.
48865         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48866
48867 2008-11-02  Bruno Haible  <bruno@clisp.org>
48868
48869         Mark 'strcspn' obsolete.
48870         * modules/strcspn (Status, Notice): New sections.
48871
48872 2008-11-02  Bruno Haible  <bruno@clisp.org>
48873
48874         Mark 'rmdir' obsolete.
48875         * modules/rmdir (Status, Notice): New sections.
48876         * modules/clean-temp (Depends-on): Add rmdir.
48877         * modules/openat (Depends-on): Likewise.
48878
48879 2008-11-02  Bruno Haible  <bruno@clisp.org>
48880
48881         Mark 'raise' obsolete.
48882         * modules/raise (Status, Notice): New sections.
48883         (Include): Specify <signal.h>.
48884         * modules/stdio (Depends-on): Add raise.
48885         * modules/write (Depends-on): Likewise.
48886
48887 2008-11-02  Bruno Haible  <bruno@clisp.org>
48888
48889         Mark 'memset' obsolete.
48890         * modules/memset (Status, Notice): New sections.
48891
48892 2008-11-02  Bruno Haible  <bruno@clisp.org>
48893
48894         Mark 'memmove' obsolete.
48895         * modules/memmove (Status, Notice): New sections.
48896         * modules/argp (Depends-on): Add memmove.
48897         * modules/argz (Depends-on): Likewise.
48898         * modules/canonicalize (Depends-on): Likewise.
48899         * modules/canonicalize-lgpl (Depends-on): Likewise.
48900         * modules/fts (Depends-on): Likewise.
48901         * modules/getcwd (Depends-on): Likewise.
48902         * modules/human (Depends-on): Likewise.
48903         * modules/regex (Depends-on): Likewise.
48904         * modules/striconveh (Depends-on): Likewise.
48905         * modules/trim (Depends-on): Likewise.
48906         * modules/unistr/u8-move (Depends-on): Likewise.
48907         * modules/unistr/u16-move (Depends-on): Likewise.
48908         * modules/unistr/u32-move (Depends-on): Likewise.
48909
48910 2008-11-02  Bruno Haible  <bruno@clisp.org>
48911
48912         Mark 'memcpy' obsolete.
48913         * modules/memcpy (Status, Notice): New sections.
48914
48915 2008-11-02  Bruno Haible  <bruno@clisp.org>
48916
48917         Mark 'memcmp' obsolete.
48918         * modules/memcmp (Status, Notice): New sections.
48919         * modules/argmatch (Depends-on): Add memchr.
48920         * modules/backupfile (Depends-on): Likewise.
48921         * modules/c-strcasestr (Depends-on): Likewise.
48922         * modules/crypto/des (Depends-on): Likewise.
48923         * modules/csharpcomp (Depends-on): Likewise.
48924         * modules/fnmatch (Depends-on): Likewise.
48925         * modules/git-merge-changelog (Depends-on): Likewise.
48926         * modules/isnand (Depends-on): Likewise.
48927         * modules/isnand-nolibm (Depends-on): Likewise.
48928         * modules/isnanf (Depends-on): Likewise.
48929         * modules/isnanf-nolibm (Depends-on): Likewise.
48930         * modules/isnanl (Depends-on): Likewise.
48931         * modules/isnanl-nolibm (Depends-on): Likewise.
48932         * modules/mbchar (Depends-on): Likewise.
48933         * modules/memcoll (Depends-on): Likewise.
48934         * modules/quotearg (Depends-on): Likewise.
48935         * modules/regex (Depends-on): Likewise.
48936         * modules/relocatable-prog (Depends-on): Likewise.
48937         * modules/same (Depends-on): Likewise.
48938         * modules/signbit (Depends-on): Likewise.
48939         * modules/strcasestr-simple (Depends-on): Likewise.
48940         * modules/unictype/gen-ctype (Depends-on): Likewise.
48941         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
48942         * modules/uniname/uniname (Depends-on): Likewise.
48943         * modules/unistr/u8-cmp (Depends-on): Likewise.
48944
48945 2008-11-02  Bruno Haible  <bruno@clisp.org>
48946
48947         Mark 'memchr' obsolete.
48948         * modules/memchr (Status, Notice): New sections.
48949         * modules/argp (Depends-on): Add memchr.
48950         * modules/base64 (Depends-on): Likewise.
48951         * modules/c-strcasestr (Depends-on): Likewise.
48952         * modules/chdir-long (Depends-on): Likewise.
48953         * modules/fnmatch (Depends-on): Likewise.
48954         * modules/getsubopt (Depends-on): Likewise.
48955         * modules/git-merge-changelog (Depends-on): Likewise.
48956         * modules/glob (Depends-on): Likewise.
48957         * modules/strcasestr-simple (Depends-on): Likewise.
48958         * modules/strnlen (Depends-on): Likewise.
48959
48960 2008-11-02  Bruno Haible  <bruno@clisp.org>
48961
48962         Mark 'atexit' obsolete.
48963         * modules/atexit (Status, Notice): New sections.
48964         * modules/chdir-long (Depends-on): Add atexit.
48965         * modules/wait-process (Depends-on): Likewise.
48966
48967 2008-11-02  Bruno Haible  <bruno@clisp.org>
48968
48969         * gnulib-tool: New option --with-obsolete.
48970         (func_usage): Document it.
48971         (func_modules_transitive_closure): Drop obsolete dependencies if
48972         incobsolete is not true.
48973         (func_import): Read and save the incobsolete variable to the cache.
48974
48975 2008-11-02  Bruno Haible  <bruno@clisp.org>
48976
48977         * modules/TEMPLATE-EXTENDED: New field 'Status'.
48978         * gnulib-tool: New option --extract-status.
48979         (func_usage): Document it.
48980         (sed_extract_prog): Recognize it.
48981         (func_get_status): New function.
48982
48983 2008-10-30  Simon Josefsson  <simon@josefsson.org>
48984
48985         * modules/sockets (License): Change from LGPL to LGPLv2+.
48986
48987 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48988
48989         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
48990
48991 2008-10-28  Simon Josefsson  <simon@josefsson.org>
48992
48993         * MODULES.html.sh (Support for systems lacking POSIX:2001):
48994         Mention times and sys_times.
48995         * modules/sys_times, modules/sys_times-tests: New modules.
48996         * modules/times, modules/times-tests: Likewise
48997         * m4/sys_times_h.m4: New file.
48998         * lib/sys_times.in.h: Likewise
48999         * lib/times.c: Likewise.
49000         * tests/test-sys_times.c: Likewise.
49001         * tests/test-times.c: Likewise.
49002         * doc/posix-headers/sys_times.texi: Update.
49003         * doc/posix-functions/times.texi: Update.
49004
49005 2008-10-28  Jim Meyering  <meyering@redhat.com>
49006
49007         * modules/tempname (Depends-on): Add lstat.
49008
49009         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49010
49011 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49012
49013         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49014         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49015         using idiom used elsewhere in gnulib.
49016
49017 2008-10-27  Jim Meyering  <meyering@redhat.com>
49018
49019         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49020
49021 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49022
49023         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49024         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49025         programs.
49026         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49027
49028 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49029
49030         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49031
49032 2008-10-27  Bruno Haible  <bruno@clisp.org>
49033
49034         * tests/test-lstat.c: Include <stdio.h>.
49035
49036 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49037
49038         * modules/lstat-tests: New module.
49039         * tests/test-lstat.c: New file.
49040
49041 2008-10-26  Jim Meyering  <meyering@redhat.com>
49042
49043         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49044
49045 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49046             Bruno Haible  <bruno@clisp.org>
49047
49048         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49049         * modules/configmake (Include): Add a note that the include must come
49050         after all system headers.
49051         * lib/javaversion.c: Include configmake.h after all other includes.
49052
49053 2008-10-26  Bruno Haible  <bruno@clisp.org>
49054
49055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49056         HAVE_STRUCT_RANDOM_DATA to 1.
49057         (gl_STDLIB_H): Simplify.
49058
49059 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49060
49061         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49062         substitute HAVE_STRUCT_RANDOM_DATA.
49063         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49064         random_data.
49065         * modules/stdlib (Makefile.am): Substitute
49066         HAVE_STRUCT_RANDOM_DATA.
49067
49068 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49069
49070         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49071         * doc/gnulib-intro.texi (Copyright): Likewise.
49072
49073 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49074
49075         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49076         findings.
49077
49078 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49079             Bruno Haible  <bruno@clisp.org>
49080
49081         * lib/unistd.in.h: Include <winsock2.h>.
49082         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49083         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49084         Provide dummy declarations.
49085         (gethostname): Override.
49086         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49087         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49088         gl_PREREQ_SYS_H_WINSOCK2.
49089         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49090         * doc/posix-functions/gethostname.texi: More details.
49091
49092 2008-10-25  Bruno Haible  <bruno@clisp.org>
49093
49094         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49095         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49096         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49097
49098         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49099         here ...
49100         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49101         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49102         gl_UNISTD_H_DEFAULTS.
49103
49104 2008-10-25  Eric Blake  <ebb9@byu.net>
49105
49106         signbit: avoid spurious compiler failure
49107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49108         declarations inside function.
49109
49110 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49111             Bruno Haible  <bruno@clisp.org>
49112
49113         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49114         * modules/random_r (Depends-on): Add stdint.
49115
49116 2008-10-24  Bruno Haible  <bruno@clisp.org>
49117
49118         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49119         Eggert.
49120         * modules/strerror (License): Likewise.
49121
49122 2008-10-24  Jim Meyering  <meyering@redhat.com>
49123
49124         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49125         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49126
49127 2008-10-24  Eric Blake  <ebb9@byu.net>
49128
49129         getgroups: fix compilation when getgroups is available
49130         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49131         but with <config.h> override of getgroups disabled.
49132
49133 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49134
49135         * doc/gnulib.texi (Header files): Add note about C++ problems.
49136         Explained by Bruno Haible <bruno@clisp.org>.
49137
49138 2008-10-23  Bruno Haible  <bruno@clisp.org>
49139
49140         Define a dummy SA_NODEFER macro on Interix.
49141         * lib/signal.in.h (SA_NODEFER): Define fallback.
49142         Reported by Aleksey Cheusov <cheusov@tut.by> via
49143         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49144
49145 2008-10-23  Bruno Haible  <bruno@clisp.org>
49146
49147         * modules/freadahead (License): Change to LGPLv2+.
49148         Suggested by Simon Josefsson.
49149
49150 2008-10-23  Jim Meyering  <meyering@redhat.com>
49151
49152         random_r: new module
49153         * modules/random_r: New file.
49154         * m4/random_r.m4: New file.
49155         * lib/random_r.c: New file, from glibc.
49156         * modules/random_r-tests: New file.
49157         * tests/test-random_r.c: New file.
49158         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49159          Declare.
49160         (RAND_MAX): Define.
49161         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49162         * modules/stdlib: Substitute them, too.
49163         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49164         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49165         * doc/glibc-functions/random_r.texi: Likewise.
49166         * doc/glibc-functions/setstate_r.texi: Likewise.
49167         * doc/glibc-functions/srandom_r.texi: Likewise.
49168         * config/srclist.txt: Mention it.
49169
49170 2008-10-23  David Lutterkort  <lutter@redhat.com>
49171
49172         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49173         link requirement
49174
49175 2008-10-23  Jim Meyering  <meyering@redhat.com>
49176
49177         selinux-h: mark parameters of stub functions as intentionally unused
49178         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49179         * lib/se-context.in.h: Likewise.
49180
49181 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49182
49183         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49184
49185 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49186
49187         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49188
49189 2008-10-22  Eric Blake  <ebb9@byu.net>
49190
49191         glthread/thread: avoid compiler warning
49192         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49193         Add unreachable abort to silence compiler.
49194
49195 2008-10-22  Eric Blake  <ebb9@byu.net>
49196
49197         netdb: also supply struct addrinfo for cygwin 1.5.x
49198         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49199         older cygwin.
49200         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49201         cygwin.
49202         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49203
49204 2008-10-22  Bruno Haible  <bruno@clisp.org>
49205
49206         * users.txt: Update entry about pspp.
49207
49208 2008-10-21  Bruno Haible  <bruno@clisp.org>
49209
49210         Simplification.
49211         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49212         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49213
49214         Simplification.
49215         * lib/ioctl.c (ioctl): Don't undefine.
49216         * lib/socket.c (socket): Don't undefine.
49217
49218         Remove unused module indicator macros.
49219         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49220         GNULIB_$1 as a C macro.
49221
49222         * doc/posix-functions/close.texi: Undo last change.
49223         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49224         Windows platforms.
49225
49226 2008-10-21  Bruno Haible  <bruno@clisp.org>
49227
49228         Add gethostname() declaration to <unistd.h>.
49229         * lib/unistd.in.h (gethostname): New declaration.
49230         * lib/gethostname.c: Include <unistd.h>.
49231         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49232         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49234         and HAVE_GETHOSTNAME.
49235         * modules/gethostname (Depends-on): Add unistd.
49236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49237         (Include): Specify <unistd.h>.
49238         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49239         HAVE_GETHOSTNAME.
49240         * tests/test-gethostname.c: Include <unistd.h> first.
49241
49242 2008-10-21  Bruno Haible  <bruno@clisp.org>
49243
49244         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49245         * modules/select-tests (Depends-on): Likewise.
49246         Reported by Simon Josefsson.
49247
49248 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49249
49250         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49251         * lib/accept.c: New file, based on winsock.c.
49252         * lib/bind.c: New file, based on winsock.c.
49253         * lib/connect.c: New file, based on winsock.c.
49254         * lib/getpeername.c: New file, based on winsock.c.
49255         * lib/getsockname.c: New file, based on winsock.c.
49256         * lib/getsockopt.c: New file, based on winsock.c.
49257         * lib/ioctl.c: New file, based on winsock.c.
49258         * lib/listen.c: New file, based on winsock.c.
49259         * lib/recv.c: New file, based on winsock.c.
49260         * lib/recvfrom.c: New file, based on winsock.c.
49261         * lib/send.c: New file, based on winsock.c.
49262         * lib/sendto.c: New file, based on winsock.c.
49263         * lib/setsockopt.c: New file, based on winsock.c.
49264         * lib/shutdown.c: New file, based on winsock.c.
49265         * lib/socket.c: New file, based on winsock.c.
49266         * lib/w32sock.h: New file, based on winsock.c.
49267         * lib/winsock.c: Remove file.
49268         * modules/accept: Likewise.
49269         * modules/bind: Likewise.
49270         * modules/connect: Likewise.
49271         * modules/getpeername: Likewise.
49272         * modules/getsockname: Likewise.
49273         * modules/getsockopt: Likewise.
49274         * modules/ioctl: Likewise.
49275         * modules/listen: Likewise.
49276         * modules/recv: Likewise.
49277         * modules/recvfrom: Likewise.
49278         * modules/send: Likewise.
49279         * modules/sendto: Likewise.
49280         * modules/setsockopt: Likewise.
49281         * modules/shutdown: Likewise.
49282         * modules/socket: Use socket.c instead of winsock.c.
49283         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49284         * doc/posix-functions/accept.texi: Doc fix.
49285         * doc/posix-functions/bind.texi: Doc fix.
49286         * doc/posix-functions/close.texi: Doc fix.
49287         * doc/posix-functions/connect.texi: Doc fix.
49288         * doc/posix-functions/getpeername.texi: Doc fix.
49289         * doc/posix-functions/getsockname.texi: Doc fix.
49290         * doc/posix-functions/getsockopt.texi: Doc fix.
49291         * doc/posix-functions/ioctl.texi: Doc fix.
49292         * doc/posix-functions/listen.texi: Doc fix.
49293         * doc/posix-functions/recv.texi: Doc fix.
49294         * doc/posix-functions/recvfrom.texi: Doc fix.
49295         * doc/posix-functions/send.texi: Doc fix.
49296         * doc/posix-functions/sendto.texi: Doc fix.
49297         * doc/posix-functions/setsockopt.texi: Doc fix.
49298         * doc/posix-functions/shutdown.texi: Doc fix.
49299         * doc/posix-functions/socket.texi: Doc fix.
49300
49301 2008-10-20  Bruno Haible  <bruno@clisp.org>
49302
49303         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49304         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49305         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49306         as an alias for SIGABRT.
49307         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49308         (sigaction): Map it to SIGABRT.
49309         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49310
49311 2008-10-20  Bruno Haible  <bruno@clisp.org>
49312
49313         * lib/fts.c: Don't include lstat.h.
49314         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49315
49316         Move the lstat() declaration to <sys/stat.h>.
49317         * lib/lstat.h: Remove file.
49318         * lib/sys_stat.in.h: Add special invocation convention.
49319         (lstat): New declaration.
49320         * lib/lstat.c (orig_lstat): New function.
49321         (rpl_lstat): Use orig_lstat instead of lstat.
49322         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49323         AC_C_INLINE. Set REPLACE_LSTAT.
49324         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49325         and REPLACE_LSTAT.
49326         * modules/lstat (Files): Remove lib/lstat.h.
49327         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49328         (Include): Specify <sys/stat.h> instead of lstat.h.
49329         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49330         REPLACE_LSTAT.
49331         * NEWS: Mention the change.
49332
49333 2008-10-20  Bruno Haible  <bruno@clisp.org>
49334
49335         * modules/posix_spawn-tests: New file.
49336         * tests/test-posix_spawn3.c: New file.
49337
49338 2008-10-20  Bruno Haible  <bruno@clisp.org>
49339
49340         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49341         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49342         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49343         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49344         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49345
49346 2008-10-20  Bruno Haible  <bruno@clisp.org>
49347
49348         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49349         of posix_spawn on AIX 5.3.
49350
49351 2008-10-20  Bruno Haible  <bruno@clisp.org>
49352
49353         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49354
49355 2008-10-20  Bruno Haible  <bruno@clisp.org>
49356
49357         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49358         of AC_LANG_PROGRAM.
49359
49360 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49361
49362         * lib/netdb.in.h: Don't define GNU specific constants until they
49363         are supported or needed.  Reported by Bruno Haible
49364         <bruno@clisp.org>.
49365
49366 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49367
49368         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49369
49370 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49371
49372         * lib/getaddrinfo.h: Remove file.
49373         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49374         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49375         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49376         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49377         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49378         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49379         * tests/test-getaddrinfo.c: Likewise.
49380         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49381         * NEWS: Mention change.
49382
49383 2008-10-19  Bruno Haible  <bruno@clisp.org>
49384
49385         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49386
49387 2008-10-19  Bruno Haible  <bruno@clisp.org>
49388
49389         * lib/wait-process.c: Include simply <sys/wait.h>.
49390         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49391         WIFSTOPPED): Remove fallback definitions.
49392         * modules/wait-process (Depends-on): Add sys_wait.
49393
49394         New module 'sys_wait'.
49395         * modules/sys_wait: New file.
49396         * lib/sys_wait.in.h: New file, partially copied from
49397         lib/wait-process.c.
49398         * m4/sys_wait_h.m4: New file.
49399         * doc/posix-headers/sys_wait.texi: Mention the new module.
49400
49401 2008-10-19  Bruno Haible  <bruno@clisp.org>
49402
49403         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49404
49405 2008-10-19  Bruno Haible  <bruno@clisp.org>
49406
49407         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49408         * lib/wait-process.c (WAIT_T): Remove type.
49409         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49410         (wait_subprocess): Update.
49411
49412 2008-10-19  Bruno Haible  <bruno@clisp.org>
49413
49414         New module 'atoll'.
49415         * modules/atoll: New file.
49416         * lib/stdlib.in.h (atoll): New declaration.
49417         * lib/atoll.c: New file, from glibc with modifications.
49418         * m4/atoll.m4: New file.
49419         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49420         HAVE_ATOLL.
49421         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49422         * doc/posix-functions/atoll.texi: Mention the new module.
49423
49424 2008-10-19  Bruno Haible  <bruno@clisp.org>
49425
49426         Add strtoull() declaration to <stdlib.h>.
49427         * lib/stdlib.in.h (strtoull): New declaration.
49428         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49429         Set HAVE_STRTOULL.
49430         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49431         HAVE_STRTOULL.
49432         * modules/strtoull (Depends-on): Add stdlib.
49433         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49434         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49435         HAVE_STRTOULL.
49436
49437 2008-10-19  Bruno Haible  <bruno@clisp.org>
49438
49439         Add strtoll() declaration to <stdlib.h>.
49440         * lib/stdlib.in.h (strtoll): New declaration.
49441         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49442         Set HAVE_STRTOLL.
49443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
49444         HAVE_STRTOLL.
49445         * modules/strtoll (Depends-on): Add stdlib.
49446         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49447         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
49448
49449 2008-10-19  Bruno Haible  <bruno@clisp.org>
49450
49451         * modules/bcopy (Depends-on): Add strings.
49452         (Include): Specify <strings.h>.
49453
49454 2008-10-19  Bruno Haible  <bruno@clisp.org>
49455
49456         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
49457
49458 2008-10-19  Bruno Haible  <bruno@clisp.org>
49459
49460         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
49461         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
49462         mingw.
49463
49464 2008-10-19  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/atanl.c: Don't include isnanl.h.
49467         * lib/cosl.c: Likewise.
49468         * lib/ldexpl.c: Likewise.
49469         * lib/logl.c: Likewise.
49470         * lib/sinl.c: Likewise.
49471         * lib/sqrtl.c: Likewise.
49472         * lib/tanl.c: Likewise.
49473
49474         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
49475         * lib/isnanf.h: Remove file.
49476         * lib/isnand.h: Remove file.
49477         * lib/isnanl.h: Remove file.
49478         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
49479         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
49480         macros.
49481         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
49482         HAVE_ISNANF, don't define it as a C macro.
49483         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
49484         HAVE_ISNAND, don't define it as a C macro.
49485         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
49486         HAVE_ISNANL, don't define it as a C macro.
49487         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
49488         HAVE_ISNAN[FDL].
49489         * modules/isnanf (Files): Remove lib/isnanf.h.
49490         (Depends-on): Add math.
49491         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49492         (Include): Specify <math.h> instead of isnanf.h.
49493         * modules/isnand (Files): Remove lib/isnand.h.
49494         (Depends-on): Add math.
49495         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49496         (Include): Specify <math.h> instead of isnand.h.
49497         * modules/isnanl (Files): Remove lib/isnanl.h.
49498         (Depends-on): Add math.
49499         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
49500         (Include): Specify <math.h> instead of isnanl.h.
49501         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
49502         HAVE_ISNAN[FDL].
49503         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
49504         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
49505         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
49506         * NEWS: Mention the change.
49507
49508 2008-10-18  Bruno Haible  <bruno@clisp.org>
49509
49510         Add getusershell(), setusershell(), endusershell() declarations to
49511         <unistd.h>.
49512         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
49513         declarations.
49514         * lib/getusershell.c: Include unistd.h.
49515         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
49516         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49517         HAVE_GETUSERSHELL.
49518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
49519         and HAVE_GETUSERSHELL.
49520         * modules/getusershell (Depends-on): Add unistd, extensions.
49521         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49522         (Include): Specify <unistd.h>.
49523         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
49524         HAVE_GETUSERSHELL.
49525
49526 2008-10-18  Bruno Haible  <bruno@clisp.org>
49527
49528         Add a getloadavg() declaration to <stdlib.h>.
49529         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
49530         getloadavg declaration.
49531         (getloadavg): New declaration.
49532         * lib/getloadavg.c: Include <stdlib.h> first.
49533         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
49534         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
49535         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
49536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
49537         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49538         * modules/getloadavg (Depends-on): Add stdlib, extensions.
49539         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49540         (Include): Specify <stdlib.h>.
49541         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
49542         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
49543
49544 2008-10-18  Bruno Haible  <bruno@clisp.org>
49545
49546         * lib/dirchownmod.c: Don't include lchmod.h.
49547
49548         Move the lchmod() declaration to <sys/stat.h>.
49549         * lib/lchmod.h: Remove file.
49550         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
49551         (lchmod): New declaration, moved here from lib/lchown.h.
49552         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
49553         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
49554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
49555         and HAVE_LCHMOD.
49556         * modules/lchmod (Files): Remove lib/lchmod.h.
49557         (Depends-on): Add sys_stat, extensions.
49558         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49559         (Include): Specify <sys/stat.h> instead of lchmod.h.
49560         * modules/sys_stat (Depends-on): Add link-warning.
49561         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
49562         definition of GL_LINK_WARNING.
49563         * NEWS: Mention the change.
49564
49565 2008-10-18  Bruno Haible  <bruno@clisp.org>
49566
49567         * lib/fchdir.c: Don't include dirfd.h.
49568         * lib/fts.c: Likewise.
49569         * lib/getcwd.c: Likewise.
49570         * lib/glob.c: Likewise.
49571
49572         Move the dirfd() declaration to <dirent.h>.
49573         * lib/dirfd.h: Remove file.
49574         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
49575         (dirfd): New declaration.
49576         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
49577         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
49578         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
49579         HAVE_DECL_DIRFD.
49580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
49581         HAVE_DECL_DIRFD.
49582         * modules/dirfd (Files): Remove lib/dirfd.h.
49583         (Depends-on): Add dirent, extensions.
49584         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
49585         (Include): Specify <dirent.h> instead of dirfd.h.
49586         * modules/dirent (Depends-on): Add link-warning.
49587         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
49588         definition of GL_LINK_WARNING.
49589         * NEWS: Mention the change.
49590
49591 2008-10-18  Bruno Haible  <bruno@clisp.org>
49592
49593         Move the euidaccess() declaration to <unistd.h>.
49594         * lib/euidaccess.h: Remove file.
49595         * lib/unistd.in.h (euidaccess): New declaration.
49596         * lib/euidaccess.c: Don't include euidaccess.h.
49597         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
49598         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
49599         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
49600         and HAVE_EUIDACCESS.
49601         * modules/euidaccess (Files): Remove lib/euidaccess.h.
49602         (Depends-on): Add unistd.
49603         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49604         (Include): Specify <unistd.h> instead of euidaccess.h.
49605         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
49606         HAVE_EUIDACCESS.
49607         * NEWS: Mention the change.
49608
49609 2008-10-18  Bruno Haible  <bruno@clisp.org>
49610
49611         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
49612
49613         Move the getdomainname() declaration to <unistd.h>.
49614         * lib/getdomainname.h: Remove file.
49615         * lib/unistd.in.h (getdomainname): New declaration.
49616         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
49617         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
49618         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
49619         HAVE_GETDOMAINNAME.
49620         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49621         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
49622         * modules/getdomainname (Files): Remove lib/getdomainname.h.
49623         (Depends-on): Add unistd, extensions.
49624         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49625         (Includes): Specify <unistd.h> instead of getdomainname.h.
49626         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
49627         HAVE_GETDOMAINNAME.
49628         * NEWS: Mention the change.
49629
49630 2008-10-18  Bruno Haible  <bruno@clisp.org>
49631
49632         * modules/dirent: New file.
49633         * m4/dirent_h.m4: New file.
49634         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
49635         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
49636         * modules/fchdir (Files): Remove lib/dirent.in.h.
49637         (Depends-on): Add dirent.
49638         (Makefile.am): Move rules to modules/dirent.
49639         * doc/posix-headers/dirent.texi: Mention the new module.
49640
49641 2008-10-18  Bruno Haible  <bruno@clisp.org>
49642
49643         Avoid -Wunused-parameter warnings in public gnulib header files.
49644         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
49645         macro.
49646         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
49647
49648 2008-10-18  Bruno Haible  <bruno@clisp.org>
49649
49650         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
49651         * doc/glibc-functions/error.texi: Mention the module 'error'.
49652         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
49653         * doc/glibc-functions/getdomainname.texi: Mention the module
49654         'getdomainname'.
49655         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
49656         * doc/glibc-functions/getpagesize.texi: Mention the module
49657         'getpagesize'.
49658         * doc/glibc-functions/getusershell.texi: Mention the module
49659         'getusershell'.
49660         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
49661         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
49662         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
49663         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
49664         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
49665         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
49666         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
49667         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
49668         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
49669         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
49670         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
49671         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
49672         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
49673         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
49674
49675 2008-10-17  Bruno Haible  <bruno@clisp.org>
49676
49677         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
49678         HP-UX and IRIX, use -0.0L.
49679         * tests/test-ceill.c (minus_zero): Likewise.
49680         * tests/test-floorl.c (minus_zero): Likewise.
49681         * tests/test-frexpl.c (minus_zero): Likewise.
49682         * tests/test-isnan.c (minus_zerol): Likewise.
49683         * tests/test-isnanl.h (minus_zero): Likewise.
49684         * tests/test-ldexpl.c (minus_zero): Likewise.
49685         * tests/test-roundl.c (minus_zero): Likewise.
49686         * tests/test-signbit.c (minus_zerol): Likewise.
49687         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49688         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49689         * tests/test-truncl.c (minus_zero): Likewise.
49690         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49691         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49692         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
49693         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
49694
49695 2008-10-17  Bruno Haible  <bruno@clisp.org>
49696
49697         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
49698         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
49699         that it gets activated only for gcc >= 3.0.
49700         * lib/dirent.in.h: Likewise.
49701         * lib/errno.in.h: Likewise.
49702         * lib/fcntl.in.h: Likewise.
49703         * lib/float.in.h: Likewise.
49704         * lib/iconv.in.h: Likewise.
49705         * lib/inttypes.in.h: Likewise.
49706         * lib/locale.in.h: Likewise.
49707         * lib/math.in.h: Likewise.
49708         * lib/netdb.in.h: Likewise.
49709         * lib/netinet_in.in.h: Likewise.
49710         * lib/search.in.h: Likewise.
49711         * lib/signal.in.h: Likewise.
49712         * lib/spawn.in.h: Likewise.
49713         * lib/stdarg.in.h: Likewise.
49714         * lib/stdint.in.h: Likewise.
49715         * lib/stdio.in.h: Likewise.
49716         * lib/stdlib.in.h: Likewise.
49717         * lib/string.in.h: Likewise.
49718         * lib/strings.in.h: Likewise.
49719         * lib/sys_file.in.h: Likewise.
49720         * lib/sys_ioctl.in.h: Likewise.
49721         * lib/sys_select.in.h: Likewise.
49722         * lib/sys_socket.in.h: Likewise.
49723         * lib/sys_stat.in.h: Likewise.
49724         * lib/sys_time.in.h: Likewise.
49725         * lib/sysexits.in.h: Likewise.
49726         * lib/time.in.h: Likewise.
49727         * lib/unistd.in.h: Likewise.
49728         * lib/wchar.in.h: Likewise.
49729         * lib/wctype.in.h: Likewise.
49730         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49731
49732 2008-10-17  Jim Meyering  <meyering@redhat.com>
49733
49734         ignore-value: don't depend on inline module
49735         * modules/ignore-value (Depends-on): Remove 'inline'.
49736         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
49737         Suggestion from Bruno Haible.
49738
49739 2008-10-17  Bruno Haible  <bruno@clisp.org>
49740
49741         New implementation of condition variables for Win32.
49742         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
49743         (gl_linked_waitqueue_t): New type.
49744         (gl_cond_t): Use it.
49745         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
49746         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
49747         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
49748         (glthread_cond_init_func, glthread_cond_wait_func,
49749         glthread_cond_timedwait_func, glthread_cond_signal_func,
49750         glthread_cond_broadcast_func, glthread_cond_destroy_func):
49751         Reimplemented on the basis of gl_linked_waitqueue_t.
49752         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
49753         gl_waitqueue_t.
49754         (gl_rwlock_t): Update.
49755         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
49756
49757 2008-10-17  Simon Josefsson  <simon@josefsson.org>
49758
49759         * modules/recvfrom (Depends-on): Add dependency on getpeername.
49760         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49761
49762 2008-10-17  Jim Meyering  <meyering@redhat.com>
49763
49764         ignore-value: new module
49765         * modules/ignore-value: New file.
49766         * lib/ignore-value.h: New file.
49767         * MODULES.html.sh (Compiler warning management): New section,
49768         just for this module.  More to come.
49769
49770 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49771
49772         open-safer.c: avoid 'signed and unsigned in conditional...' warning
49773         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
49774         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
49775
49776 2008-10-16  Jim Meyering  <meyering@redhat.com>
49777
49778         openat-die.c: avoid 'no previous prototype' warning
49779         * lib/openat-die.c: Include "openat.h".
49780         Reported by Reuben Thomas <rrt@sc3d.org>.
49781
49782 2008-10-16  Simon Josefsson  <simon@josefsson.org>
49783
49784         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
49785         * lib/netdb.in.h: Fix typo.
49786         Reported by Bruno Haible  <bruno@clisp.org>
49787
49788         * lib/netdb.in.h: Include sys/socket.h for platforms without
49789         netdb.h, to get structures like hostent on MinGW.
49790         * modules/netdb (Depends-on): Add sys_socket.
49791
49792 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49793
49794         * modules/netdb, modules/netdb-tests: New file.
49795         * m4/netdb_h.m4: New file.
49796         * lib/netdb.in.h: Add, currently just an empty file pending
49797         definitions.
49798         * tests/test-netdb.c: New file.
49799         * doc/posix-headers/netdb.texi: Mention that we replace it if
49800         needed.
49801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49802         netdb.
49803
49804 2008-10-15  Simon Josefsson  <simon@josefsson.org>
49805
49806         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
49807         with code.
49808
49809 2008-10-13  Bruno Haible  <bruno@clisp.org>
49810
49811         * lib/glthread/cond.c (glthread_cond_wait_func,
49812         glthread_cond_timedwait_func): Add a comment.
49813
49814 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49815
49816         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
49817         * tests/test-select.c: Likewise,
49818
49819 2008-10-13  Bruno Haible  <bruno@clisp.org>
49820
49821         * lib/glthread/cond.c (glthread_cond_wait_func,
49822         glthread_cond_timedwait_func): Fix variable name.
49823         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
49824
49825 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
49826
49827         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
49828         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
49829         struct sockaddr.sa_len.
49830         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
49831
49832 2008-10-13  Simon Josefsson  <simon@josefsson.org>
49833
49834         * build-aux/pmccabe2html: Add css and css_url parameters.
49835
49836 2008-10-12  Bruno Haible  <bruno@clisp.org>
49837
49838         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
49839         calling aclx_get.
49840         Reported by Rainer Tammer <tammer@tammer.net>.
49841
49842 2008-10-12  Bruno Haible  <bruno@clisp.org>
49843
49844         Use msvcrt aware primitives for creation/termination of Win32 threads.
49845         * lib/glthread/thread.c: Include <process.h>.
49846         (glthread_create_func): Use _beginthreadex instead of CreateThread.
49847         (wrapper_func): Update signature.
49848         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
49849
49850 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
49851             Bruno Haible  <bruno@clisp.org>
49852
49853         Provide a Win32 implementation of the 'cond' module.
49854         * lib/glthread/cond.h [USE_WIN32]: New implementation.
49855         * lib/glthread/cond.c (glthread_cond_init_func,
49856         glthread_cond_wait_func, glthread_cond_timedwait_func,
49857         glthread_cond_signal_func, glthread_cond_broadcast_func,
49858         glthread_cond_destroy_func) [USE_WIN32]: New functions.
49859         * modules/cond (Dependencies): Add gettimeofday.
49860
49861 2008-10-11  Bruno Haible  <bruno@clisp.org>
49862
49863         Make sleep work on older versions of mingw.
49864         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
49865         only whether it exists.
49866         * doc/posix-functions/sleep.texi: Mention the problem with older
49867         versions of mingw.
49868
49869 2008-10-11  Bruno Haible  <bruno@clisp.org>
49870
49871         New module 'shutdown'.
49872         * modules/shutdown: New file.
49873         * lib/sys_socket.in.h (shutdown): New declaration.
49874         * lib/winsock.c (shutdown): New function.
49875         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
49876         GNULIB_SHUTDOWN.
49877         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
49878         * doc/posix-functions/shutdown.texi: Document the new module.
49879
49880 2008-10-11  Jim Meyering  <meyering@redhat.com>
49881
49882         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
49883
49884 2008-10-11  Bruno Haible  <bruno@clisp.org>
49885
49886         New module 'fclose'.
49887         * modules/fclose: New file.
49888         * lib/stdio.in.h (fclose): New declaration.
49889         * lib/fclose.c: New file.
49890         * m4/fclose.m4: New file.
49891         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
49892         REPLACE_FCLOSE.
49893         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
49894         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
49895         REPLACE_FCLOSE.
49896         * modules/close (Depends-on): fclose.
49897         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
49898
49899 2008-10-11  Bruno Haible  <bruno@clisp.org>
49900
49901         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
49902         set errno and don't call _close.
49903
49904 2008-10-10  Bruno Haible  <bruno@clisp.org>
49905
49906         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
49907         ACL, not afterwards. Fixes test failure on Cygwin.
49908
49909 2008-10-09  Ben Pfaff  <blp@gnu.org>
49910
49911         * build-aux/announce-gen: Fix gnulib version related part of usage
49912         message.  Die with a useful error message if no tarballs are
49913         found.
49914
49915 2008-10-10  Jim Meyering  <meyering@redhat.com>
49916
49917         bootstrap: use git's --depth=N option only if it's supported
49918         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
49919         recognize the --depth option.  Reported by Pádraig Brady.
49920
49921 2008-10-09  Bruno Haible  <bruno@clisp.org>
49922
49923         New module 'ioctl'.
49924         * modules/ioctl: New file.
49925         * lib/sys_socket.in.h (ioctl): Remove declaration.
49926         * lib/winsock.c: Include <sys/ioctl.h>.
49927         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
49928         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49929         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
49930         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
49931         * doc/posix-functions/ioctl.texi: Mention the new module.
49932
49933 2008-10-09  Bruno Haible  <bruno@clisp.org>
49934
49935         New module 'sys_ioctl'.
49936         * lib/sys_ioctl.in.h: New file.
49937         * m4/sys_ioctl_h.m4: New file.
49938         * modules/sys_ioctl: New file.
49939         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
49940
49941 2008-10-09  Bruno Haible  <bruno@clisp.org>
49942
49943         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
49944         * lib/winsock.c: Include <stdarg.h>.
49945         (rpl_ioctl): Change to second argument 'int' and then varargs.
49946
49947 2008-10-09  Bruno Haible  <bruno@clisp.org>
49948
49949         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
49950         when the sys_socket module is present and the system has <winsock2.h>.
49951
49952 2008-10-09  Bruno Haible  <bruno@clisp.org>
49953
49954         * doc/posix-functions/close.texi: Mention module 'close' instead of
49955         module 'sys_socket'.
49956
49957 2008-10-09  Bruno Haible  <bruno@clisp.org>
49958
49959         * doc/glibc-headers/sys_ioctl.texi: New file.
49960         * doc/gnulib.texi: Include it.
49961
49962 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49963             Bruno Haible  <bruno@clisp.org>
49964
49965         Combine the two replacements of 'close'.
49966         * lib/sys_socket.in.h (close): Define to a reminder to include
49967         <unistd.h>.
49968         (_gl_close_fd_maybe_socket): New declaration.
49969         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
49970         * lib/winsock.c (close): Remove undefinition.
49971         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
49972         needed for the gnulib module 'close'.
49973         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
49974         define to an error symbol or to a warning, if suitable.
49975         * lib/close.c: Include <sys/socket.h>.
49976         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
49977         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
49978         UNISTD_H_HAVE_WINSOCK2_H.
49979         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
49980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49981         UNISTD_H_HAVE_WINSOCK2_H.
49982         * modules/sys_socket (Files): Add m4/unistd_h.m4.
49983         (configure.ac): Set a module indicator.
49984         (Makefile.am): Substitute GNULIB_CLOSE.
49985         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
49986         * modules/poll-tests (Depends-on): Add close.
49987         * modules/select-tests (Depends-on): Likewise.
49988
49989 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
49990             Bruno Haible  <bruno@clisp.org>
49991
49992         New module 'close'.
49993         * modules/close: New file.
49994         * lib/unistd.in.h (close): Move declaration out of the
49995         FCHDIR_REPLACEMENT scope.
49996         (_gl_unregister_fd): New declaration.
49997         * lib/close.c: New file.
49998         * lib/fchdir.c (rpl_close): Remove function.
49999         * m4/close.m4: New file.
50000         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50001         close.
50002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50003         REPLACE_CLOSE.
50004         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50005         REPLACE_CLOSE.
50006         * modules/fchdir (Depends-on): Add close.
50007
50008 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50009             Bruno Haible  <bruno@clisp.org>
50010
50011         * lib/fcntl.in.h (open): Simplify conditionals.
50012         (_gl_register_fd): New declaration.
50013         * lib/fchdir.c (rpl_open): Remove function.
50014         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50015         also.
50016         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50017         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50018         open.
50019
50020 2008-10-09  Jim Meyering  <meyering@redhat.com>
50021
50022         GNUmakefile: use the more name-space-friendly "_version"
50023         * top/GNUmakefile (_dummy): Update.
50024         (_version): Rename from "version".
50025
50026 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50027             Bruno Haible  <bruno@clisp.org>
50028
50029         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50030         rpl_close.
50031         (_gl_register_fd): New function, extracted from rpl_open.
50032         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50033         (rpl_open, rpl_opendir): Use _gl_register_fd.
50034
50035 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50036
50037         Fix organization of 'open' replacement.
50038         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50039         (gl_FUNC_OPEN): Use it.
50040         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50041
50042 2008-10-08  Bruno Haible  <bruno@clisp.org>
50043
50044         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50045
50046 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50047
50048         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50049         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50050         listen).
50051
50052 2008-10-08  Eric Blake  <ebb9@byu.net>
50053
50054         GNUmakefile: add 'make version' target
50055         * top/GNUmakefile (_curr-ver): Split version update rules...
50056         (version): ...into a target.
50057
50058 2008-10-07  Bruno Haible  <bruno@clisp.org>
50059
50060         Use a more portable replacement expression for -0.0L.
50061         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50062         instead of -0.0L. Fix m4 quotation.
50063
50064         * tests/test-signbit.c: Include <float.h>.
50065         (minus_zero): New variable.
50066         (test_signbitl): Use minus_zero instead of -zero.
50067         * modules/signbit-tests (Depends-on): Add float.
50068
50069         * tests/test-ceill.c: Include <float.h>.
50070         (zero): Remove variable.
50071         (minus_zero): New variable.
50072         (main): Use minus_zero instead of -zero.
50073         * modules/ceill-tests (Depends-on): Add float.
50074
50075         * tests/test-floorl.c: Include <float.h>.
50076         (zero): Remove variable.
50077         (minus_zero): New variable.
50078         (main): Use minus_zero instead of -zero.
50079         * modules/floorl-tests (Depends-on): Add float.
50080
50081         * tests/test-roundl.c: Include <float.h>.
50082         (zero): Remove variable.
50083         (minus_zero): New variable.
50084         (main): Use minus_zero instead of -zero.
50085         * modules/roundl-tests (Depends-on): Add float.
50086
50087         * tests/test-truncl.c: Include <float.h>.
50088         (zero): Remove variable.
50089         (minus_zero): New variable.
50090         (main): Use minus_zero instead of -zero.
50091         * modules/truncl-tests (Depends-on): Add float.
50092
50093         * tests/test-frexpl.c (zero): Remove variable.
50094         (minus_zero): New variable.
50095         (main): Use minus_zero instead of -zero.
50096         * modules/frexpl-tests (Depends-on): Add float.
50097
50098         * tests/test-isnan.c (zerol): Remove variable.
50099         (minus_zerol): New variable.
50100         (test_long_double): Use minus_zerol instead of -zerol.
50101         * modules/isnan-tests (Depends-on): Add float.
50102
50103         * tests/test-isnanl.h (zero): Remove variable.
50104         (minus_zero): New variable.
50105         (main): Use minus_zero instead of -zero.
50106         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50107         * modules/isnanl-tests (Depends-on): Add float.
50108
50109         * tests/test-ldexpl.c (zero): Remove variable.
50110         (minus_zero): New variable.
50111         (main): Use minus_zero instead of -zero.
50112         * modules/ldexpl-tests (Depends-on): Add float.
50113
50114         * tests/test-snprintf-posix.h (zerol): Remove variable.
50115         (minus_zerol): New variable.
50116         (test_function): Use minus_zerol instead of -zerol.
50117         * modules/snprintf-posix-tests (Depends-on): Add float.
50118         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50119
50120         * tests/test-sprintf-posix.h (zerol): Remove variable.
50121         (minus_zerol): New variable.
50122         (test_function): Use minus_zerol instead of -zerol.
50123         * modules/sprintf-posix-tests (Depends-on): Add float.
50124         * modules/vsprintf-posix-tests (Depends-on): Add float.
50125
50126         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50127         (minus_zerol): New variable.
50128         (test_function): Use minus_zerol instead of -zerol.
50129         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50130
50131         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50132         (minus_zerol): New variable.
50133         (test_function): Use minus_zerol instead of -zerol.
50134         * modules/vasprintf-posix-tests (Depends-on): Add float.
50135
50136 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50137
50138         * MODULES.html.sh (Support for building documentation): Mention
50139         pmccabe2html.  Sort entries.
50140
50141         Add pmccabe2html module, from gnupdf.
50142         * build-aux/pmccabe.css: New file.
50143         * build-aux/pmccabe2html: New file.
50144         * m4/pmccabe2html.m4: New file.
50145         * modules/pmccabe2html: New file.
50146
50147 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50148
50149         flock: new module
50150         * MODULES.html.sh: Add to list of modules.
50151         * lib/flock.c: flock implementation for Windows and Unix systems
50152         which have fcntl.
50153         * doc/glibc-functions/flock.texi: Update documentation.
50154         * lib/sys_file.in.h: <sys/file.h> header file.
50155         * m4/flock.m4: M4 macros.
50156         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50157         * modules/flock: flock module.
50158         * modules/flock-tests: flock tests module.
50159         * modules/sys_file: sys/file.h module.
50160         * tests/test-flock.c: test suite for flock.
50161
50162 2008-10-06  Jim Meyering  <meyering@redhat.com>
50163
50164         bootstrap: check for LT_INIT more portably still ;-)
50165         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50166         Spotted by Bruno Haible.
50167
50168 2008-10-06  Eric Blake  <ebb9@byu.net>
50169
50170         test-signbit: avoid tripping Irix cc bug on -0.0L
50171         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50172         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50173         entire testsuite consistent and avoids an Irix 6.2 bug.
50174
50175 2008-10-05  Bruno Haible  <bruno@clisp.org>
50176             Jim Meyering  <jim@meyering.net>
50177
50178         Add an option for ignoring EPIPE during close_stdout.
50179         * lib/closeout.h: Include <stdbool.h>.
50180         (close_stdout_set_ignore_EPIPE): New declaration.
50181         * lib/closeout.c: Include <stdbool.h>.
50182         (ignore_EPIPE): New variable.
50183         (close_stdout_set_ignore_EPIPE): New function.
50184         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50185         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50186         failure.
50187         * modules/closeout (Depends-on): Add stdbool.
50188
50189 2008-10-05  Bruno Haible  <bruno@clisp.org>
50190
50191         * modules/accept: New file.
50192         * modules/bind: New file.
50193         * modules/connect: New file.
50194         * modules/getpeername: New file.
50195         * modules/getsockname: New file.
50196         * modules/getsockopt: New file.
50197         * modules/listen: New file.
50198         * modules/recv: New file.
50199         * modules/recvfrom: New file.
50200         * modules/send: New file.
50201         * modules/sendto: New file.
50202         * modules/setsockopt: New file.
50203         * modules/socket: New file.
50204         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50205         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50206         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50207         the particular module is requested. Add a link warning when the
50208         particular module is not requested.
50209         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50210         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50211         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50212         the particular module is requested.
50213         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50214         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50215         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50216         * modules/sys_socket (Depends-on): Add link-warning.
50217         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50218         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50219         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50220         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50221         GL_LINK_WARNING.
50222         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50223         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50224         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50225         * doc/posix-functions/getpeername.texi: Mention the new module
50226         'getpeername'.
50227         * doc/posix-functions/getsockname.texi: Mention the new module
50228         'getsockname'.
50229         * doc/posix-functions/getsockopt.texi: Mention the new module
50230         'getsockopt'.
50231         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50232         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50233         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50234         * doc/posix-functions/send.texi: Mention the new module 'send'.
50235         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50236         * doc/posix-functions/setsockopt.texi: Mention the new module
50237         'setsockopt'.
50238         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50239         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50240         listen, connect, accept.
50241         * modules/select-tests (Depends-on): Likewise.
50242
50243 2008-10-05  Bruno Haible  <bruno@clisp.org>
50244
50245         * lib/winsock.c (strerror): Remove unused #undef.
50246         (rpl_close): Remove unused local variable.
50247
50248         * modules/sys_socket (Depends-on); Add errno.
50249
50250 2008-10-05  Bruno Haible  <bruno@clisp.org>
50251
50252         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50253         (select): Add a link warning when the 'select' module is not used.
50254         * modules/sys_select (Depends-on): Add link-warning.
50255         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50256         Suggested by Paolo Bonzini.
50257
50258 2008-10-05  Jim Meyering  <meyering@redhat.com>
50259
50260         bootstrap: check for LT_INIT more portably
50261         * build-aux/bootstrap: Avoid using grep -E, since it's not
50262         portable enough.  Suggestion from Bruno Haible.
50263
50264 2008-10-05  Bruno Haible  <bruno@clisp.org>
50265
50266         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50267         as being fixed by gnulib.
50268
50269 2008-10-05  Bruno Haible  <bruno@clisp.org>
50270
50271         * modules/select-tests: New file, mostly copied from
50272         modules/sys_select-tests.
50273         * tests/test-select.c: New file, mostly copied from
50274         tests/test-sys_select.c.
50275         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50276         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50277         (Makefile.am): Remove test_sys_select_LDADD.
50278
50279         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50280         to an undefined symbol, for an error message.
50281         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50282         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50283         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50284         winsock-select.c here.
50285         * modules/sys_select (Files): Remove lib/winsock-select.c.
50286         (Depends-on): Remove alloca.
50287         (Makefile.am): Substitute GNULIB_SELECT.
50288         * modules/select: New file.
50289         * doc/posix-functions/select.texi: Update.
50290
50291 2008-10-05  Bruno Haible  <bruno@clisp.org>
50292
50293         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50294         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50295         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50296         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50297         getdtablesize.
50298         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50299         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50300
50301 2008-10-05  Bruno Haible  <bruno@clisp.org>
50302
50303         * modules/getdtablesize-tests: New file.
50304         * tests/test-getdtablesize.c: New file.
50305
50306         New module 'getdtablesize'.
50307         * lib/unistd.in.h (getdtablesize): New declaration.
50308         * lib/getdtablesize.c: New file.
50309         * m4/getdtablesize.m4: New file.
50310         * modules/getdtablesize: New file.
50311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50312         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50313         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50314         HAVE_GETDTABLESIZE.
50315         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50316
50317 2008-10-05  Bruno Haible  <bruno@clisp.org>
50318
50319         * modules/sched (Makefile.am): Fix typo.
50320         Reported by Simon Josefsson.
50321
50322 2008-10-05  Jim Meyering  <meyering@redhat.com>
50323
50324         bootstrap: check for LT_INIT, too
50325         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50326         are deprecated.  Suggestion from Ralf Wildenhues.
50327
50328 2008-10-05  Bruno Haible  <bruno@clisp.org>
50329
50330         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50331         overriding them by ours.
50332         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50333
50334 2008-10-05  Jim Meyering  <meyering@redhat.com>
50335
50336         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50337         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50338         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50339
50340 2008-10-04  Bruno Haible  <bruno@clisp.org>
50341
50342         * modules/dup2 (License): Change to LGPLv2+.
50343         * modules/sleep (License): Likewise.
50344         * modules/perror (License): Likewise.
50345         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50346         Blake.
50347         * modules/signal (License): Likewise.
50348         * modules/sigprocmask (License): Likewise.
50349         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50350         Meyering.
50351
50352 2008-10-04  Bruno Haible  <bruno@clisp.org>
50353
50354         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50355         Reported by Rainer Tammer <tammer@tammer.net>.
50356
50357 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50358             Bruno Haible  <bruno@clisp.org>
50359
50360         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50361         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50362         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50363
50364 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50365
50366         filevercmp: new module
50367         * lib/filevercmp.h: New function filevercmp comparing version strings.
50368         * lib/filevercmp.c: Implementation of filevercmp function.
50369         * modules/filevercmp: Module metadata.
50370         * tests/test-filevercmp.c: Unit test for new module.
50371         * modules/filevercmp-tests: Unit test metadata.
50372         * MODULES.html.sh: Add filevercmp module.
50373
50374 2008-10-03  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/c-ctype.h: Add comment.
50377         Reported by Jim Meyering.
50378
50379 2008-10-02  Bruno Haible  <bruno@clisp.org>
50380
50381         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50382
50383 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50384
50385         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50386         name of bootstrap.conf accordingly.
50387
50388 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50389
50390         * build-aux/bootstrap: Install git-merge-changelog configuration
50391         items into .gitconfig if needed.
50392
50393 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50394
50395         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50396         git repository, and initialize/update it accordingly.
50397
50398 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50399
50400         * modules/fsync-tests: New file.
50401         * tests/test-fsync.c: New file.
50402
50403         New module 'fsync'.
50404         * lib/fsync.c: New file.
50405         * m4/fsync.m4: New file.
50406         * modules/fsync: New file.
50407         * lib/unistd.in.h (fsync): New declaration.
50408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50409         GNULIB_FSYNC and HAVE_FSYNC.
50410         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50411         * MODULES.html.sh (posix_functions): Add fsync.
50412         * doc/posix-functions/fsync.texi: Mention the new module.
50413
50414 2008-10-02  Jim Meyering  <meyering@redhat.com>
50415
50416         fts.c: sync with similar code from coreutils' remove.c
50417         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50418         Guard also with "#if defined __linux__", since for now at least,
50419         this code is Linux-kernel-specific.
50420
50421 2008-10-02  Jim Meyering  <meyering@redhat.com>
50422
50423         fts: bug fixes
50424         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50425         Include <sys/vfs.h>, not <sys/statfs.h>.
50426
50427         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50428         Include <sys/vfs.h>, not <sys/statfs.h>.
50429
50430 2008-10-01  Bruno Haible  <bruno@clisp.org>
50431
50432         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50434         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50435         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50436         * doc/posix-functions/posix_spawnp.texi: Likewise.
50437         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
50438         whether posix_spawn actually works.
50439         * m4/pipe.m4 (gl_PIPE): Likewise.
50440         * modules/execute (Files): Add m4/posix_spawn.m4.
50441         * modules/pipe (Files): Add m4/posix_spawn.m4.
50442         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
50443
50444 2008-10-01  Jim Meyering  <meyering@redhat.com>
50445
50446         remove trailing spaces
50447         * NEWS: Likewise.
50448         * lib/poll.c (poll): Likewise.
50449         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
50450         * lib/winsock.c (rpl_close): Likewise.
50451         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
50452         * modules/yield: Likewise.
50453         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
50454         * tests/test-sys_select.c (connect_to_socket): Likewise.
50455
50456         fts.c: adjust a new interface to be more generally useful
50457         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
50458         (fts_build): Adjust caller.
50459
50460 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50461
50462         * modules/cond-tests: New file.
50463         * tests/test-cond.c: New file.
50464
50465 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50466             Bruno Haible  <bruno@clisp.org>
50467
50468         * modules/cond (Dependencies): Add errno, time.
50469         * lib/glthread/cond.h: Include <time.h>.
50470         (gl_cond_define, gl_cond_define_initialized): Use the same definition
50471         across platforms.
50472
50473 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50474             Bruno Haible  <bruno@clisp.org>
50475
50476         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
50477
50478 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50479             Bruno Haible  <bruno@clisp.org>
50480
50481         * modules/tls-tests (Depends-on): Add thread, yield.
50482         (configure.ac): Remove all checks.
50483         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
50484         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50485         gl_thread_self): Remove definitions. Include glthread/thread.h and
50486         glthread/yield.h instead.
50487         (test_tls): Pass an additional NULL argument to gl_thread_join.
50488
50489 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50490             Bruno Haible  <bruno@clisp.org>
50491
50492         * modules/lock-tests (Depends-on): Add thread, yield.
50493         (configure.ac): Remove all checks.
50494         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
50495         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
50496         gl_thread_self): Remove definitions. Include glthread/thread.h and
50497         glthread/yield.h instead.
50498         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
50499         additional NULL argument to gl_thread_join.
50500
50501 2008-09-30  Bruno Haible  <bruno@clisp.org>
50502
50503         Fix the Win32 implementation of the 'thread' module.
50504         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
50505         pointer type.
50506         (gl_thread_self): Invoke gl_thread_self_func.
50507         (gl_thread_self_func): New declaration.
50508         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
50509         (do_init_self_key, init_self_key): New functions.
50510         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
50511         Remove some fields.
50512         (running_threads, running_lock): Remove variables.
50513         (get_current_thread_handle): New function.
50514         (gl_thread_self_func, wrapper_func, glthread_create_func,
50515         glthread_join_func, gl_thread_exit_func): Largely rewritten and
50516         simplified.
50517
50518 2008-09-30  Bruno Haible  <bruno@clisp.org>
50519
50520         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
50521         files.
50522
50523 2008-09-30  Jim Meyering  <meyering@redhat.com>
50524
50525         fts.m4: correct the test for statfs.f_type
50526         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
50527         when checking for statfs.f_type.
50528
50529 2008-09-15  Simon Josefsson  <simon@josefsson.org>
50530
50531         tests: avoid some compiler warnings
50532         * tests/test-memchr.c (main): Pass NULL indirectly.
50533         * tests/test-getdate.c (main): Remove unused variable 'ret'.
50534
50535 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
50536
50537         getdate.y: disallow countable dayshifts like "4 yesterday ago"
50538         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
50539         exactly specified dayshifts.
50540         (dayshift): New rule.
50541         (rel): Add dayshift.
50542         (relative_time_table) [tomorrow, yesterday, today, now]:
50543         Use tDAY_SHIFT in place of tDAY_UNIT.
50544         * tests/test-getdate.c: Add tests for now-disallowed countable
50545         dayshifts, e.g., "4 yesterday ago".
50546
50547 2008-09-29  Bruno Haible  <bruno@clisp.org>
50548
50549         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
50550         * tests/test-posix_spawn1.in.sh: Renamed from
50551         tests/test-posix_spawn.in.sh.
50552         * tests/test-posix_spawn2.c: New file.
50553         * tests/test-posix_spawn2.in.sh: New file.
50554         * modules/posix_spawnp-tests (Files): Update.
50555         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
50556
50557 2008-09-29  Bruno Haible  <bruno@clisp.org>
50558
50559         Propagate effects of putenv/setenv/unsetenv to child processes.
50560         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
50561         * lib/pipe.c (create_pipe): Likewise.
50562
50563 2008-09-29  Bruno Haible  <bruno@clisp.org>
50564
50565         Enable use of shell scripts as executables in mingw.
50566         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
50567         run the program as a shell script.
50568         * lib/pipe.c (create_pipe): Likewise.
50569         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
50570         resulting array.
50571
50572 2008-09-29  Eric Blake  <ebb9@byu.net>
50573
50574         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
50575
50576 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
50577
50578         * doc/posix-functions/accept.texi: Update mingw problems.
50579         * doc/posix-functions/bind.texi: Update mingw problems.
50580         * doc/posix-functions/close.texi: Update mingw problems.
50581         * doc/posix-functions/connect.texi: Update mingw problems.
50582         * doc/posix-functions/getpeername.texi: Update mingw problems.
50583         * doc/posix-functions/getsockname.texi: Update mingw problems.
50584         * doc/posix-functions/getsockopt.texi: Update mingw problems.
50585         * doc/posix-functions/ioctl.texi: Update mingw problems.
50586         * doc/posix-functions/listen.texi: Update mingw problems.
50587         * doc/posix-functions/recv.texi: Update mingw problems.
50588         * doc/posix-functions/recvfrom.texi: Update mingw problems.
50589         * doc/posix-functions/select.texi: Update mingw problems.
50590         * doc/posix-functions/send.texi: Update mingw problems.
50591         * doc/posix-functions/sendto.texi: Update mingw problems.
50592         * doc/posix-functions/setsockopt.texi: Update mingw problems.
50593         * doc/posix-functions/socket.texi: Update mingw problems.
50594
50595 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
50596             Bruno Haible  <bruno@clisp.org>
50597
50598         * lib/sys_select.in.h: Include sys/time.h.
50599         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
50600         * modules/sys_select: Depend on sys_time.
50601         * tests/test-sys_select.c: Test that sys/select.h defines struct
50602         timeval fully.
50603
50604 2008-09-29  Bruno Haible  <bruno@clisp.org>
50605
50606         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
50607         * lib/sys_select.in.h: Likewise.
50608
50609 2008-09-29  Bruno Haible  <bruno@clisp.org>
50610
50611         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
50612
50613 2008-09-29  Bruno Haible  <bruno@clisp.org>
50614
50615         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
50616         Set LIBSOCKET instead of augmenting LIBS.
50617         * modules/sockets (Link): New section.
50618         * modules/sockets-tests (test_sockets_LDADD): New variable.
50619         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
50620         * modules/poll-tests (test_poll_LDADD): New variable.
50621         * NEWS: Document the change.
50622
50623 2008-09-29  Bruno Haible  <bruno@clisp.org>
50624
50625         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
50626         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
50627         ARPA_INET_H directly.
50628         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
50629
50630 2008-09-28  Bruno Haible  <bruno@clisp.org>
50631
50632         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
50633         from gl_HEADER_SYS_SOCKET.
50634         (gl_HEADER_SYS_SOCKET): Invoke it.
50635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
50636
50637 2008-09-28  Bruno Haible  <bruno@clisp.org>
50638
50639         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
50640         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
50641         Needed on OSF/1 4.0.
50642
50643 2008-09-28  Bruno Haible  <bruno@clisp.org>
50644
50645         Override open more carefully.
50646         * lib/open.c (orig_open): New function.
50647         (rpl_open): Use orig_open instead of open.
50648         * lib/fcntl.in.h: Add special invocation convention.
50649         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
50650         (gl_FUNC_OPEN): Invoke it.
50651
50652         Override freopen more carefully.
50653         * lib/freopen.c (orig_freopen): New function.
50654         (rpl_freopen): Use orig_freopen instead of freopen.
50655         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
50656         (gl_FUNC_FREOPEN): Invoke it.
50657
50658         Override fopen more carefully.
50659         * lib/fopen.c (orig_fopen): New function.
50660         (rpl_fopen): Use orig_fopen instead of fopen.
50661         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
50662         (gl_FUNC_FOPEN): Invoke it.
50663         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
50664
50665 2008-09-28  Bruno Haible  <bruno@clisp.org>
50666
50667         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
50668         SIGPIPE.
50669
50670 2008-09-28  Bruno Haible  <bruno@clisp.org>
50671
50672         * tests/test-sigaction.c (handler, main): Disable the check whether
50673         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
50674         glibc systems with LinuxThreads.
50675
50676 2008-09-28  Bruno Haible  <bruno@clisp.org>
50677
50678         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
50679
50680         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
50681         with AIX xlc.
50682         * lib/fcntl.in.h (open): Likewise.
50683         Reported by Rainer Tammer <tammer@tammer.net>.
50684
50685 2008-09-28  Bruno Haible  <bruno@clisp.org>
50686
50687         * modules/posix_spawnp-tests: New file.
50688         * tests/test-posix_spawn.c: New file.
50689         * tests/test-posix_spawn.in.sh: New file.
50690
50691         New module 'posix_spawnp'.
50692         * modules/posix_spawnp: New file.
50693         * lib/spawnp.c: New file, from GNU libc with modifications.
50694         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
50695
50696         New module 'posix_spawn'.
50697         * modules/posix_spawn: New file.
50698         * lib/spawn.c: New file, from GNU libc with modifications.
50699         * doc/posix-functions/posix_spawn.texi: Mention the new module.
50700
50701         New module 'posix_spawnattr_destroy'.
50702         * modules/posix_spawnattr_destroy: New file.
50703         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
50704         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
50705         module.
50706
50707         New module 'posix_spawnattr_setsigmask'.
50708         * modules/posix_spawnattr_setsigmask: New file.
50709         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
50710         modifications.
50711         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
50712         new module.
50713
50714         New module 'posix_spawnattr_getsigmask'.
50715         * modules/posix_spawnattr_getsigmask: New file.
50716         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
50717         modifications.
50718         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
50719         new module.
50720
50721         New module 'posix_spawnattr_setsigdefault'.
50722         * modules/posix_spawnattr_setsigdefault: New file.
50723         * lib/spawnattr_setdefault.c: New file, from GNU libc with
50724         modifications.
50725         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
50726         new module.
50727
50728         New module 'posix_spawnattr_getsigdefault'.
50729         * modules/posix_spawnattr_getsigdefault: New file.
50730         * lib/spawnattr_getdefault.c: New file, from GNU libc with
50731         modifications.
50732         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
50733         new module.
50734
50735         New module 'posix_spawnattr_setschedpolicy'.
50736         * modules/posix_spawnattr_setschedpolicy: New file.
50737         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
50738         modifications.
50739         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
50740         new module.
50741
50742         New module 'posix_spawnattr_getschedpolicy'.
50743         * modules/posix_spawnattr_getschedpolicy: New file.
50744         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
50745         modifications.
50746         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
50747         new module.
50748
50749         New module 'posix_spawnattr_setschedparam'.
50750         * modules/posix_spawnattr_setschedparam: New file.
50751         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
50752         modifications.
50753         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
50754         new module.
50755
50756         New module 'posix_spawnattr_getschedparam'.
50757         * modules/posix_spawnattr_getschedparam: New file.
50758         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
50759         modifications.
50760         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
50761         new module.
50762
50763         New module 'posix_spawnattr_setpgroup'.
50764         * modules/posix_spawnattr_setpgroup: New file.
50765         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
50766         modifications.
50767         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
50768         module.
50769
50770         New module 'posix_spawnattr_getpgroup'.
50771         * modules/posix_spawnattr_getpgroup: New file.
50772         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
50773         modifications.
50774         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
50775         module.
50776
50777         New module 'posix_spawnattr_setflags'.
50778         * modules/posix_spawnattr_setflags: New file.
50779         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
50780         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
50781         module.
50782
50783         New module 'posix_spawnattr_getflags'.
50784         * modules/posix_spawnattr_getflags: New file.
50785         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
50786         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
50787         module.
50788
50789         New module 'posix_spawnattr_init'.
50790         * modules/posix_spawnattr_init: New file.
50791         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
50792         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
50793         module.
50794
50795         New module 'posix_spawn_file_actions_destroy'.
50796         * modules/posix_spawn_file_actions_destroy: New file.
50797         * lib/spawn_faction_destroy.c: New file, from GNU libc with
50798         modifications.
50799         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
50800         the new module.
50801
50802         New module 'posix_spawn_file_actions_addopen'.
50803         * modules/posix_spawn_file_actions_addopen: New file.
50804         * lib/spawn_faction_addopen.c: New file, from GNU libc with
50805         modifications.
50806         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
50807         the new module.
50808
50809         New module 'posix_spawn_file_actions_adddup2'.
50810         * modules/posix_spawn_file_actions_adddup2: New file.
50811         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
50812         modifications.
50813         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
50814         the new module.
50815
50816         New module 'posix_spawn_file_actions_addclose'.
50817         * modules/posix_spawn_file_actions_addclose: New file.
50818         * lib/spawn_faction_addclose.c: New file, from GNU libc with
50819         modifications.
50820         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
50821         the new module.
50822
50823         New module 'posix_spawn_file_actions_init'.
50824         * modules/posix_spawn_file_actions_init: New file.
50825         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
50826         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
50827         new module.
50828
50829         New module 'posix_spawn-internal'.
50830         * modules/posix_spawn-internal: New file.
50831         * lib/spawn_int.h: New file, from GNU libc with modifications.
50832         * lib/spawni.c: New file, from GNU libc with modifications.
50833         * m4/posix_spawn.m4: New file.
50834
50835         New module 'spawn'.
50836         * modules/spawn: New file.
50837         * lib/spawn.in.h: New file, from GNU libc with modifications.
50838         * m4/spawn_h.m4: New file.
50839         * doc/posix-headers/spawn.texi: Mention the new module.
50840
50841 2008-09-28  Bruno Haible  <bruno@clisp.org>
50842
50843         * modules/sched-tests: New file.
50844         * tests/test-sched.c: New file.
50845
50846         New module 'sched'.
50847         * modules/sched: New file.
50848         * lib/sched.in.h: New file.
50849         * m4/sched_h.m4: New file.
50850         * doc/posix-headers/sched.texi: Mention the new module.
50851
50852 2008-09-27  Eric Blake  <ebb9@byu.net>
50853
50854         Fix previous patch, and tweak references to $0.
50855         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
50856         (func_version, func_gnulib_dir): Don't call this program
50857         gnulib-tool.
50858         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
50859         with using $0 in function.
50860         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
50861         (func_fatal_error): Reuse the name the user invoked us with.
50862
50863 2008-09-27  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
50866         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
50867         (gl_ICONV_H): Not here.
50868         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
50869         instead of assigning ICONV_H directly.
50870
50871         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
50872         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
50873         WCHAR_H directly.
50874
50875 2008-09-27  Bruno Haible  <bruno@clisp.org>
50876
50877         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
50878         * modules/arpa_inet (Depends-on): Add link-warning.
50879         (Makefile.am): Insert the definition of GL_LINK-WARNING.
50880         * modules/unistd (Makefile.am): Likewise.
50881
50882 2008-09-26  Bruno Haible  <bruno@clisp.org>
50883
50884         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
50885         variables.
50886         (func_version): Essentially copied from gnulib-tool.
50887         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
50888         func_readlink): Copied from gnulib-tool.
50889
50890 2008-09-26  Bruno Haible  <bruno@clisp.org>
50891
50892         * gnulib-tool (func_version): Change directory to $gnulib_dir before
50893         invoking git-version-gen.
50894
50895 2008-09-26  Bruno Haible  <bruno@clisp.org>
50896
50897         * posix-modules: Update to directory names changed on 2008-01-19.
50898         Remove commas in output before splitting into words. No more need to
50899         avoid 'ftruncate' since 2007-02-19.
50900
50901 2008-09-26  Bruno Haible  <bruno@clisp.org>
50902
50903         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
50904
50905 2008-09-26  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
50908         * modules/fwriteerror (Depends-on): Add errno.
50909
50910 2008-09-26  Bruno Haible  <bruno@clisp.org>
50911
50912         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
50913         * tests/test-vc-list-files-cvs.sh: Likewise.
50914
50915 2008-09-26  Bruno Haible  <bruno@clisp.org>
50916
50917         * doc/posix-headers/sys_resource.texi: Reorder items.
50918
50919 2008-09-26  Jim Meyering  <meyering@redhat.com>
50920
50921         fts: tweak inode comparison function
50922         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
50923         inode numbers, as documented.
50924
50925         fts: sort dirent entries on inode number before traversing
50926         This avoids a quadratic, seek-related performance penalty when
50927         operating on a directory containing many entries (measurable at 10k;
50928         3.5 hours at 2 million entries with a cold cache) on certain types
50929         of file systems, including ext3 and ext4, but not tmpfs.
50930         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
50931         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
50932         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
50933         (fs_handles_readdir_ordered_dirents_efficiently): New function.
50934         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
50935         (fts_build): Set the stat.st_ino member from D_INO.
50936         If it is likely to be useful, sort dirent entries on inode number.
50937
50938         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
50939         and the struct statfs.f_type member.
50940         * modules/fts (Depends-on): Add d-ino.
50941
50942 2008-09-26  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/sigpipe-die (Depends-on): Add sigpipe.
50945
50946         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
50947         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
50948         and GNULIB_STDIO_H_SIGPIPE are set.
50949         * lib/stdio-write.c: New file.
50950         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
50951         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50952         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50953         REPLACE_STDIO_WRITE_FUNCS.
50954         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
50955         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50956         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50957         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50958         * modules/stdio (Files): Add lib/stdio-write.c.
50959         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
50960         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
50961         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
50962         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
50963         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
50964         REPLACE_FPRINTF_POSIX.
50965         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
50966         REPLACE_PRINTF_POSIX.
50967         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
50968         REPLACE_VFPRINTF_POSIX.
50969         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
50970         REPLACE_VPRINTF_POSIX.
50971         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
50972         SIGPIPE issue.
50973         * doc/posix-functions/fputc.texi: Likewise.
50974         * doc/posix-functions/fputs.texi: Likewise.
50975         * doc/posix-functions/fwrite.texi: Likewise.
50976         * doc/posix-functions/printf.texi: Likewise.
50977         * doc/posix-functions/putc.texi: Likewise.
50978         * doc/posix-functions/putchar.texi: Likewise.
50979         * doc/posix-functions/puts.texi: Likewise.
50980         * doc/posix-functions/vfprintf.texi: Likewise.
50981         * doc/posix-functions/vprintf.texi: Likewise.
50982
50983         * modules/safe-write (Depends-on): Add write.
50984
50985         * modules/sigpipe-tests: New file.
50986         * tests/test-sigpipe.c: New file.
50987         * tests/test-sigpipe.sh: New file.
50988
50989         * modules/write: New file.
50990         * lib/unistd.in.h: Include <sys/types.h>.
50991         (write): New declaration.
50992         * lib/write.c: New file.
50993         * m4/write.m4: New file.
50994         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50995         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
50996         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
50997         GNULIB_WRITE, REPLACE_WRITE.
50998         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
50999         and the SIGPIPE issue.
51000
51001         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51002         (raise): New declaration.
51003         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51004         (ext_signal): New function.
51005         (rpl_raise): New function.
51006         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51007         GNULIB_SIGNAL_H_SIGPIPE.
51008         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51009         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51010
51011         * modules/sigpipe: New file.
51012         * m4/sigpipe.m4: New file.
51013
51014 2008-09-25  Derek Price  <derek@ximbiot.com>
51015             Bruno Haible  <bruno@clisp.org>
51016
51017         * gnulib-tool (func_import): Report all license incompatibilities, not
51018         just the first one.
51019
51020 2008-09-25  Bruno Haible  <bruno@clisp.org>
51021
51022         * gnulib-tool (func_import): When computing the edits, consider not
51023         only the Makefile.ams that exist but also those that will be generated.
51024
51025 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51026
51027         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51028         fixes gnulib-tool --test warning about duplicate dependency.
51029
51030 2008-09-25  Bruno Haible  <bruno@clisp.org>
51031
51032         * gnulib-tool: Don't ask the user to perform edits in the generated
51033         Makefile.ams.
51034         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51035         apply to the Makefile.am being generated.
51036         (func_emit_tests_Makefile_am): Execute edits that apply to the
51037         Makefile.am being generated.
51038         (func_import): Setup list of Makefile.am edits before emitting the
51039         Makefile.ams, not at the end.
51040         (func_create_testdir): Update.
51041         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51042
51043 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51044
51045         * gnulib-tool (func_import): Store the --tests-base option in the
51046         comment in gnulib-cache.m4.
51047
51048 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51049
51050         * NEWS: Document increased portability that sys_select now provides.
51051
51052         * lib/sys_select.in.h: Install select wrapper.
51053         * lib/sys_socket.in.h: Use more descriptive name when there is no
51054         select wrapper.
51055         * lib/winsock-select.c: New.
51056         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51057         Require gl_HEADER_SYS_SOCKET.
51058         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51059         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51060         * tests/test-sys_select.c: Add functional tests.
51061
51062 2008-09-24  Eric Blake  <ebb9@byu.net>
51063
51064         open, fopen: close fd leak in last patch
51065         * lib/open.c (rpl_open): Close fd before returning error.
51066         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51067         * doc/posix-functions/open.texi (open): Document that Irix also
51068         has the bug.
51069         * doc/posix-functions/fopen.texi (fopen): Likewise.
51070         Reported by Paolo Bonzini.
51071
51072 2008-09-24  Bruno Haible  <bruno@clisp.org>
51073
51074         Ensure that a filename ending in a slash cannot be used to access a
51075         non-directory.
51076         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51077         to check whether it's really a directory.
51078         * lib/fopen.c: Include fcntl.h, unistd.h.
51079         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51080         and fdopen().
51081         * modules/fopen (Depends-on): Add unistd.
51082         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51083         * tests/test-fopen.c (main): Likewise.
51084         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51085         * doc/posix-functions/fopen.texi: Likewise.
51086         Reported by Eric Blake.
51087
51088 2008-09-23  Eric Blake  <ebb9@byu.net>
51089
51090         c-stack: avoid compiler optimizations when provoking overflow
51091         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51092         recursion harder to optimize, to ensure a stack overflow occurs.
51093         * tests/test-c-stack.c (recurse): Likewise.
51094         Borrowed from libsigsegv.
51095
51096         c-stack: work around Irix sigaltstack bug
51097         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51098         whether sigaltstack uses wrong end of stack_t (copied in part from
51099         libsigsegv).
51100         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51101         Irix bug, without requiring an over-allocation.
51102         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51103         bug.
51104
51105         fopen: document mingw bug on directories
51106         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51107         not allowing a stream visiting a directory, even though reading
51108         from such a stream is not portable.
51109
51110 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51111
51112         * lib/poll.c: Rewrite.
51113         * modules/poll: Depend on alloca.
51114
51115 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51116
51117         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51118         instead define prototypes for a full set of wrappers.  Ensure
51119         that Cygwin does not use the compatibility code, which is only
51120         for MinGW.
51121         * lib/winsock.c: New.
51122         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51123         * modules/sys_socket: Add lib/winsock.c.
51124
51125         * modules/poll-tests: Add errno and perror.
51126         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51127
51128 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51129
51130         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51131
51132 2008-09-23  Bruno Haible  <bruno@clisp.org>
51133
51134         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51135         * doc/glibc-functions/*: Likewise.
51136
51137 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51138
51139         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51140         success.
51141
51142 2008-09-22  Eric Blake  <ebb9@byu.net>
51143             Bruno Haible  <bruno@clisp.org>
51144
51145         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51146         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51147         supply %A but mishandle pseudo-NaN.
51148         Reported by Simon Josefsson.
51149
51150 2008-09-21  Bruno Haible  <bruno@clisp.org>
51151
51152         * tests/test-lock.c (main): Tweak skip message.
51153         * tests/test-tls.c (main): Likewise.
51154
51155 2008-09-21  Bruno Haible  <bruno@clisp.org>
51156
51157         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51158         whether 'struct sigaction' has sa_sigaction here...
51159         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51160         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51161
51162 2008-09-21  Bruno Haible  <bruno@clisp.org>
51163
51164         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51165         section.
51166         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51167         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51168         the new section.
51169         (Support for obsolete systems lacking POSIX:2001): New section.
51170         (String handling <string.h>): Move strdup to the new section.
51171         Suggested by Simon Josefsson and Paolo Bonzini.
51172
51173 2008-09-21  Bruno Haible  <bruno@clisp.org>
51174
51175         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51176         exponents in %e and %g results on 'long double'. Needed for mingw's
51177         improved *printf functions.
51178         * tests/test-vasprintf-posix.c (test_function): Likewise.
51179         * tests/test-snprintf-posix.h (test_function): Likewise.
51180         * tests/test-sprintf-posix.h (test_function): Likewise.
51181         Reported by Eric Blake.
51182
51183 2008-09-21  Bruno Haible  <bruno@clisp.org>
51184
51185         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51186         * tests/test-sprintf-posix.h (test_function): Likewise.
51187
51188 2008-09-21  Bruno Haible  <bruno@clisp.org>
51189
51190         * modules/getpass (Depends-on): Add strdup-posix.
51191
51192         New module 'strdup-posix'.
51193         * modules/strdup-posix: New file.
51194         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51195         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51197         REPLACE_STRDUP.
51198         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51199         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51200         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51201         strdup-posix.
51202
51203         * modules/strdup (Depends-on): Remove malloc-posix.
51204
51205 2008-09-20  Bruno Haible  <bruno@clisp.org>
51206
51207         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51208         Wildenhues.
51209
51210 2008-09-20  Bruno Haible  <bruno@clisp.org>
51211
51212         Ensure that wint_t gets defined on IRIX 5.3.
51213         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51214         * lib/wctype.in.h (wint_t): Likewise.
51215         (__wctype_wint_t): Remove type.
51216         (isw*): Use wint_t instead of __wctype_wint_t.
51217         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51218         * modules/wchar (Files): Add m4/wint_t.m4.
51219         (Makefile.am): Substitute HAVE_WINT_T.
51220         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51221         * tests/test-wctype.c: Check that wint_t is defined.
51222         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51223         * doc/posix-headers/wctype.texi: Likewise.
51224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51225
51226 2008-09-18  Bruno Haible  <bruno@clisp.org>
51227
51228         * gnulib-tool (func_exit): Update comment.
51229
51230 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51231
51232         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51233         assumes strdup exists and does not depend on strdup to return
51234         ENOMEM on out of memory conditions.
51235
51236 2008-09-18  Bruno Haible  <bruno@clisp.org>
51237
51238         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
51239         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51240         digits for the exponent.
51241
51242 2008-09-18  Jim Meyering  <meyering@redhat.com>
51243             Bruno Haible  <bruno@clisp.org>
51244
51245         * lib/vasnprintf.c (decimal_point_char): Define also if
51246         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51247
51248 2008-09-16  Bruno Haible  <bruno@clisp.org>
51249         and Eric Blake  <ebb9@byu.net>
51250
51251         vasnprintf: support Irix 5.3
51252         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51253         that mishandle long double infinity.
51254         Reported by Tom G. Christensen.
51255
51256 2008-09-16  Bruno Haible  <bruno@clisp.org>
51257
51258         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51259         Solaris 9.
51260         * doc/glibc-functions/alphasort.texi: Likewise.
51261         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51262
51263 2008-09-16  Jim Meyering  <meyering@redhat.com>
51264
51265         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51266         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51267         a umask modification leak out of a subshell.  Otherwise, the
51268         opensolaris /bin/sh would be accepted and thus cause unwarranted
51269         failures in the coreutils test suite.
51270
51271 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51272
51273         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51274         to succeed.
51275
51276 2008-09-16  Jim Meyering  <meyering@redhat.com>
51277
51278         avoid spurious test failure when library is built without ACL support
51279         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51280         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51281         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51282         * tests/test-copy-acl.sh: Likewise.
51283
51284 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51285
51286         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51287         based on character occurrence counts.
51288
51289 2008-09-15  Eric Blake  <ebb9@byu.net>
51290
51291         tests: avoid some compiler warnings
51292         * tests/test-memchr.c (main): Pass NULL indirectly.
51293         * tests/test-closein.c (main): Avoid unused variable.
51294
51295 2008-09-15  Bruno Haible  <bruno@clisp.org>
51296
51297         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51298         are missing on OpenBSD 4.0 individually.
51299         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51300
51301 2008-09-15  Bruno Haible  <bruno@clisp.org>
51302
51303         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51304         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51305         * doc/posix-functions/perror.texi: Likewise.
51306         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51307         is missing.
51308         Reported by Eric Blake.
51309
51310         * lib/errno.in.h: Use replacement values >= 2000.
51311         Reported by Eric Blake.
51312
51313 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51314
51315         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51316         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51317         limit.
51318         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51319         compareseq was aborted.
51320
51321 2008-09-14  Bruno Haible  <bruno@clisp.org>
51322
51323         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51324         yvec_edit_count.
51325         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51326         (fstrcmp_bounded): Simplify result computation accordingly.
51327
51328 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51329
51330         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51331         (fstrcmp): Define in terms of fstrcmp_bounded.
51332         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51333         lower_bound argument.
51334         Return quickly if the result is certainly < lower_bound.
51335         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51336
51337 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51338
51339         * lib/diffseq.h (EARLY_ABORT): New macro.
51340         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51341         evaluates to true.
51342
51343 2008-09-14  Bruno Haible  <bruno@clisp.org>
51344
51345         * modules/perror-tests: New file.
51346         * tests/test-perror.sh: New file.
51347         * tests/test-perror.c: New file.
51348
51349         New module 'perror'.
51350         * lib/stdio.in.h (perror): New declaration.
51351         * lib/perror.c: New file.
51352         * m4/perror.m4: New file.
51353         * modules/perror: New file.
51354         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51355         * doc/posix-functions/perror.texi: Mention the perror module.
51356         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51357         REPLACE_PERROR.
51358         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51359         REPLACE_PERROR.
51360
51361 2008-09-14  Bruno Haible  <bruno@clisp.org>
51362
51363         * modules/stdio (Makefile.am): Reorder to match the order in
51364         lib/stdio.in.h.
51365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51366
51367 2008-09-13  Bruno Haible  <bruno@clisp.org>
51368
51369         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51370
51371 2008-09-13  Bruno Haible  <bruno@clisp.org>
51372
51373         Extend strerror to cover the added errno values.
51374         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51375         (rpl_strerror): Provide error messages for the added errno values and
51376         for the WSA* values.
51377         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51378         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51379         strerror.
51380         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51381         * modules/strerror (Depends-on): Add errno.
51382         * doc/posix-functions/strerror.texi: Document the change.
51383         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51384         and EOVERFLOW.
51385
51386 2008-09-13  Bruno Haible  <bruno@clisp.org>
51387
51388         * modules/EOVERFLOW: Remove file.
51389         * m4/eoverflow.m4: Remove file.
51390         * modules/EOVERFLOW-tests: Remove file.
51391         * tests/test-EOVERFLOW.c: Remove file.
51392         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51393         * modules/ftell (Depends-on): Likewise.
51394         * modules/getdelim (Depends-on): Likewise.
51395         * modules/getugroups (Depends-on): Likewise.
51396         * modules/poll (Depends-on): Likewise.
51397         * modules/snprintf (Depends-on): Likewise.
51398         * modules/sprintf-posix (Depends-on): Likewise.
51399         * modules/vasnprintf (Depends-on): Likewise.
51400         * modules/vasprintf (Depends-on): Likewise.
51401         * modules/vfprintf-posix (Depends-on): Likewise.
51402         * modules/vsnprintf (Depends-on): Likewise.
51403         * modules/vsprintf-posix (Depends-on): Likewise.
51404         * modules/xvasprintf (Depends-on): Likewise.
51405         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51406         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51407         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51408         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51409         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51410         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51411         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51412         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51413         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51414         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51415         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51416         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51417         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51418         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51419         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51420         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51421         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51422         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51423         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51424         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51425         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51426         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51427         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51428         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51429         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51430         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51431         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51432         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51433         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51434         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51435         * MODULES.html.sh: Remove EOVERFLOW.
51436         * NEWS: Mention the change.
51437
51438 2008-09-13  Bruno Haible  <bruno@clisp.org>
51439
51440         * modules/errno-tests: New file.
51441         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
51442
51443         * lib/errno.in.h: New file.
51444         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
51445         * modules/errno: New file.
51446         * doc/posix-headers/errno.texi: Update documentation.
51447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
51448
51449 2008-09-13  Bruno Haible  <bruno@clisp.org>
51450
51451         * tests/test-poll.c: Use #if for native Windows, rather than testing
51452         __MSVCRT__.
51453
51454 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51455             Bruno Haible  <bruno@clisp.org>
51456
51457         * lib/glob.c: Don't include <pwd.h> on native Windows.
51458         (WINDOWS32): New macro.
51459         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
51460
51461 2008-09-13  Bruno Haible  <bruno@clisp.org>
51462
51463         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
51464         (ETIMEDOUT): Remove macro.
51465         (glthread_cond_timedwait_multithreaded): New declaration.
51466         (glthread_cond_timedwait): Use it.
51467         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
51468         (glthread_cond_timedwait_multithreaded): New function.
51469
51470 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51471
51472         * modules/poll-tests: Do not check for io.h.
51473         * tests/test-poll.c: Check for __MSVCRT__ instead.
51474
51475 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51476
51477         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
51478         * modules/poll-tests: Add inet_pton, stdbool, sockets.
51479         * tests/test-poll.c: Use them.  Use _pipe on Windows.
51480
51481 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
51482
51483         * modules/poll-tests: New.
51484         * tests/test-poll.c: New.
51485
51486 2008-09-12  Eric Blake  <ebb9@byu.net>
51487
51488         frexp: test for NetBSD failure on -0.0
51489         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
51490         not all, bugs from NetBSD 3.0 have been fixed.
51491         * doc/posix-functions/frexp.texi (frexp): Document bug.
51492         Reported by Thomas Klausner.
51493
51494         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
51495         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
51496         literal -0.0.
51497         Reported by Jonathan C. Patschke <jp@centtech.com>.
51498
51499 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51500
51501         * lib/glthread/cond.h: Use dummy implementation also if
51502         USE_WIN32_THREADS.
51503
51504 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51505
51506         * modules/fnmatch-posix (License): Change to LGPLv2+.
51507         * modules/fnmatch-gnu (License): Likewise.
51508
51509 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51510
51511         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
51512
51513 2008-09-11  Jim Meyering  <meyering@redhat.com>
51514
51515         * users.txt: Add gtk-vnc.
51516
51517 2008-09-08  Simon Josefsson  <simon@josefsson.org>
51518
51519         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
51520         rotate amounts.
51521
51522         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
51523         required for 16-bit and 8-bit rotates.
51524         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
51525         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
51526         UINT8_MAX instead of hard-coded constants.
51527         Suggested by Paul Eggert.
51528
51529 2008-09-07  Bruno Haible  <bruno@clisp.org>
51530
51531         * tests/test-striconveh.c (main): Check behaviour when converting from
51532         UTF-7.
51533
51534         Make striconveh work better with stateful encodings.
51535         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
51536         that iconv does not increment the inptr when returning -1/EINVAL.
51537
51538 2008-09-07  Bruno Haible  <bruno@clisp.org>
51539
51540         * build-aux/config.rpath: Update according to libtool-2.2.6.
51541         * build-aux/config.libpath: Likewise.
51542
51543 2008-09-06  Bruno Haible  <bruno@clisp.org>
51544
51545         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
51546         * lib/freadptr.c (freadptr): Likewise.
51547         * lib/freadseek.c (freadptrinc): Likewise.
51548         Reported by Simon Josefsson.
51549
51550 2008-09-06  Bruno Haible  <bruno@clisp.org>
51551
51552         * modules/freadptr (License): Change to LGPLv2+.
51553         * modules/freadseek (License): Likewise.
51554         Suggested by Eric Blake.
51555
51556         * modules/memchr2 (License): Change to LGPLv2+.
51557         Approved by Eric Blake.
51558
51559 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51560             Bruno Haible  <bruno@clisp.org>
51561
51562         Make gnulib-tool work with native 'sed' on AIX.
51563         * gnulib-tool (sed_noop): New variable.
51564         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
51565         func_add_or_update, func_create_testdir): Use it to initialize sed
51566         script variables.
51567         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51568
51569 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
51570             Bruno Haible  <bruno@clisp.org>
51571
51572         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
51573         also works after #include directives.
51574
51575 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
51576
51577         getdate.y: reject an out-of-range timezone value
51578         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
51579         the range [-24...+24].  When specified with only one or two digits,
51580         * tests/test-getdate.c: Tests for the fix.
51581         * doc/getdate.texi: Document this change.
51582
51583 2008-09-03  Bruno Haible  <bruno@clisp.org>
51584
51585         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
51586
51587 2008-09-02  Simon Josefsson  <simon@josefsson.org>
51588
51589         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
51590         <bruce.korb@gmail.com> with ideas from Ben Pfaff
51591         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
51592         Blake <ebb9@byu.net>.
51593
51594         * tests/test-bitrotate.c: Add more test vectors.
51595
51596 2008-09-02  Eric Blake  <ebb9@byu.net>
51597
51598         vasnprintf-posix: handle large precision via %.*d
51599         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
51600         when handling it ourselves.
51601         * tests/test-vasnprintf-posix.c (test_function): Add test.
51602         * tests/test-snprintf-posix.h (test_function): Likewise.
51603         * tests/test-sprintf-posix.h (test_function): Likewise.
51604         * tests/test-vasprintf-posix.c (test_function): Likewise.
51605         Reported by Alain Guibert.
51606
51607 2008-09-01  Eric Blake  <ebb9@byu.net>
51608
51609         c-stack: make configure-time check more robust
51610         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
51611         successful sigaction call.
51612         Reported by Tom G. Christensen.
51613
51614 2008-09-01  Bruno Haible  <bruno@clisp.org>
51615
51616         New module 'findprog-lgpl'.
51617         * modules/findprog-lgpl: New file.
51618         * lib/findprog-lgpl.c: New file.
51619         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
51620         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
51621         to decide whether to use strdup or xstrdup, concatenated_filename or
51622         xconcatenated_filename.
51623
51624 2008-09-01  Bruno Haible  <bruno@clisp.org>
51625
51626         Split module 'concat-filename' into 'concat-filename' (LGPL) and
51627         'xconcat-filename' (GPL).
51628         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
51629         (License): Change to LGPLv2+.
51630         * modules/xconcat-filename: New file.
51631         * lib/concat-filename.h (concatenated_filename): Change specification.
51632         (xconcatenated_filename): New declaration.
51633         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
51634         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
51635         memory situations.
51636         * lib/xconcat-filename.c: New file.
51637         * NEWS: Mention the change.
51638         * lib/findprog.c: Include concat-filename.h, not filename.h.
51639         (find_in_path): Use xconcatenated_filename instead of
51640         concatenated_filename.
51641         * lib/javacomp.c: Include concat-filename.h, not filename.h.
51642         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
51643         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
51644         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
51645         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
51646         instead of concatenated_filename.
51647         * lib/javaexec.c: Include concat-filename.h, not filename.h.
51648         (execute_java_class): Use xconcatenated_filename instead of
51649         concatenated_filename.
51650         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
51651         * modules/javacomp (Depends-on): Likewise.
51652         * modules/javaexec (Depends-on): Likewise.
51653
51654 2008-09-01  Bruno Haible  <bruno@clisp.org>
51655
51656         Split module 'filename' into 'filename' and 'concat-filename'.
51657         * modules/filename: Keep only lib/filename.h.
51658         (License): Change to LGPLv2+.
51659         * modules/concat-filename: New file, extracted from modules/filename.
51660         * lib/filename.h (concatenated_filename): Remove declaration.
51661         * lib/concat-filename.h: New file, extracted from lib/filename.h.
51662         * lib/concat-filename.c: Include concat-filename.h.
51663         * NEWS: Mention the change.
51664
51665 2008-09-01  Simon Josefsson  <simon@josefsson.org>
51666
51667         * lib/bitrotate.h (rotl8, rotr8): Add.
51668
51669         * modules/bitrotate (configure.ac): Need
51670         AC_REQUIRE([AC_C_INLINE]).
51671         (Description): Mention stdint.h.  Reported by Bruno Haible
51672         <bruno@clisp.org>.
51673
51674         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
51675         Paolo Bonzini <bonzini@gnu.org>.
51676
51677 2008-08-31  Bruno Haible  <bruno@clisp.org>
51678
51679         Assume Solaris specific bi-arch conventions on Solaris systems.
51680         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
51681         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
51682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
51683         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
51684         like acl_libdirstem.
51685         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
51686         acl_libdirstem.
51687         * NEWS: Mention the change.
51688         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
51689
51690 2008-08-31  Jim Meyering  <meyering@redhat.com>
51691
51692         * lib/strftime.h: Add comments describing the two added arguments.
51693
51694         remove duplicate #include directives
51695         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
51696         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
51697
51698 2008-08-31  Bruno Haible  <bruno@clisp.org>
51699
51700         New module 'sigpipe-die'.
51701         * modules/sigpipe-die: New file.
51702         * lib/sigpipe-die.h: New file.
51703         * lib/sigpipe-die.c: New file.
51704         * MODULES.html.sh (Signal handling): Add sigpipe-die.
51705
51706 2008-08-31  Bruno Haible  <bruno@clisp.org>
51707
51708         Don't override previously installed signal handlers.
51709         * lib/fatal-signal.c (saved_sigactions): New variable.
51710         (uninstall_handlers): Reset the signal to the saved handler, not
51711         to SIG_DFL (except when ignored).
51712         (install_handlers): Save the previous handlers.
51713
51714 2008-08-30  Bruno Haible  <bruno@clisp.org>
51715
51716         * gnulib-tool (func_reset_sigpipe): New function.
51717         (func_get_automake_snippet, func_modules_transitive_closure,
51718         func_import): Invoke it before a join command that reads from stdin,
51719         to avoid "echo: write error: Broken pipe" error messages on stderr.
51720         Reported by Sam Steingold <sds@gnu.org>.
51721
51722 2008-08-30  Bruno Haible  <bruno@clisp.org>
51723
51724         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
51725         Code copied from m4/open.m4.
51726         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
51727         access and the filename ends in a slash. Code copied from lib/open.c.
51728         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
51729         * tests/test-fopen.c (main): Check against bug with trailing slash.
51730
51731 2008-08-29  Bruno Haible  <bruno@clisp.org>
51732
51733         Avoid some "gcc -pedantic" warnings.
51734         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
51735         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
51736         * lib/dirent.in.h: Likewise.
51737         * lib/fcntl.in.h: Likewise.
51738         * lib/float.in.h: Likewise.
51739         * lib/iconv.in.h: Likewise.
51740         * lib/inttypes.in.h: Likewise.
51741         * lib/locale.in.h: Likewise.
51742         * lib/math.in.h: Likewise.
51743         * lib/netinet_in.in.h: Likewise.
51744         * lib/search.in.h: Likewise.
51745         * lib/signal.in.h: Likewise.
51746         * lib/stdarg.in.h: Likewise.
51747         * lib/stdint.in.h: Likewise.
51748         * lib/stdio.in.h: Likewise.
51749         * lib/stdlib.in.h: Likewise.
51750         * lib/string.in.h: Likewise.
51751         * lib/strings.in.h: Likewise.
51752         * lib/sys_select.in.h: Likewise.
51753         * lib/sys_socket.in.h: Likewise.
51754         * lib/sys_stat.in.h: Likewise.
51755         * lib/sys_time.in.h: Likewise.
51756         * lib/sysexits.in.h: Likewise.
51757         * lib/time.in.h: Likewise.
51758         * lib/unistd.in.h: Likewise.
51759         * lib/wchar.in.h: Likewise.
51760         * lib/wctype.in.h: Likewise.
51761         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
51762         * modules/fchdir (Makefile.am): Likewise.
51763         * modules/fcntl (Makefile.am): Likewise.
51764         * modules/float (Makefile.am): Likewise.
51765         * modules/iconv_open (Makefile.am): Likewise.
51766         * modules/inttypes (Makefile.am): Likewise.
51767         * modules/locale (Makefile.am): Likewise.
51768         * modules/math (Makefile.am): Likewise.
51769         * modules/netinet_in (Makefile.am): Likewise.
51770         * modules/search (Makefile.am): Likewise.
51771         * modules/signal (Makefile.am): Likewise.
51772         * modules/stdarg (Makefile.am): Likewise.
51773         * modules/stdint (Makefile.am): Likewise.
51774         * modules/stdio (Makefile.am): Likewise.
51775         * modules/stdlib (Makefile.am): Likewise.
51776         * modules/string (Makefile.am): Likewise.
51777         * modules/strings (Makefile.am): Likewise.
51778         * modules/sys_select (Makefile.am): Likewise.
51779         * modules/sys_socket (Makefile.am): Likewise.
51780         * modules/sys_stat (Makefile.am): Likewise.
51781         * modules/sys_time (Makefile.am): Likewise.
51782         * modules/sysexits (Makefile.am): Likewise.
51783         * modules/time (Makefile.am): Likewise.
51784         * modules/unistd (Makefile.am): Likewise.
51785         * modules/wchar (Makefile.am): Likewise.
51786         * modules/wctype (Makefile.am): Likewise.
51787         Reported by Reuben Thomas <rrt@sc3d.org>.
51788
51789 2008-08-29  Bruno Haible  <bruno@clisp.org>
51790
51791         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
51792         any more.
51793
51794 2008-08-29  Simon Josefsson  <simon@josefsson.org>
51795
51796         * MODULES.html.sh (Misc): Add bitrotate.
51797
51798         * modules/bitrotate: New file.
51799
51800         * lib/bitrotate.h: New file.
51801
51802         * modules/bitrotate-tests: New file.
51803
51804         * tests/test-bitrotate.c: New file.
51805
51806         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
51807         on the bitrotate module.
51808
51809         * lib/arctwo.c: Use new bitrotate module.
51810
51811 2008-08-29  Jim Meyering  <meyering@redhat.com>
51812
51813         bootstrap: merge changes from coreutils
51814         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
51815         of copied files.  Remove a kludge, now that this is fixed.
51816         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
51817         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
51818         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
51819
51820 2008-08-29  Bruno Haible  <bruno@clisp.org>
51821
51822         * MODULES.html.sh: Remove --cvs-urls option.
51823
51824 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
51825
51826         maint.mk: adjust to file name change
51827         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
51828
51829 2008-08-28  Jim Meyering  <meyering@redhat.com>
51830
51831         * modules/getndelim2 (License): Relicense to LGPLv2+.
51832         Approved by Richard Stallman for the version of 1995, and by
51833         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
51834
51835 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
51836
51837         * lib/getdelim.c (flockfile, funlockfile): Make all of them
51838         dummy if one is not available.  Do not touch them if
51839         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
51840         (getc_maybe_unlocked): New.
51841         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
51842
51843 2008-08-26  Eric Blake  <ebb9@byu.net>
51844
51845         doc/INSTALL: resync from autoconf
51846         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
51847         (INSTALL_PRELUDE): Delete; this is done more efficiently by
51848         moving...
51849         * install.texi [!autoconf]: ...here.  Resync from autoconf.
51850         * INSTALL: Regenerate.
51851         * INSTALL.ISO: New file.
51852         * INSTALL.UTF-8: Likewise.
51853
51854 2008-08-26  Jim Meyering  <meyering@redhat.com>
51855
51856         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
51857         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
51858         these definitions conditional, so that they may be overridden, too.
51859
51860 2008-08-26  Bruno Haible  <bruno@clisp.org>
51861
51862         Generate INSTALL file variants with prettier quotes.
51863         * doc/Makefile (INSTALL_PRELUDE): New macro.
51864         (INSTALL): Use it.
51865         (INSTALL.ISO, INSTALL.UTF-8): New rules.
51866
51867 2008-08-26  Bruno Haible  <bruno@clisp.org>
51868
51869         Run makeinfo in an English locale.
51870         * doc/Makefile (MAKEINFO): New variable.
51871
51872 2008-08-26  Bruno Haible  <bruno@clisp.org>
51873
51874         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
51875         Suggested by Eric Blake.
51876
51877 2008-08-25  Bruno Haible  <bruno@clisp.org>
51878
51879         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
51880
51881 2008-08-25  Eric Blake  <ebb9@byu.net>
51882
51883         c-stack: test that stack overflow can be caught
51884         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
51885         that platform allows handling stack overflow; at least OS/2 EMX
51886         has sigaltstack, but crashes before transferring control to
51887         handler on stack overflow.
51888         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
51889         check for HAVE_STACK_OVERFLOW_HANDLING.
51890         Reported by Elbert Pol.
51891
51892 2008-08-25  Bruno Haible  <bruno@clisp.org>
51893
51894         * doc/posix-functions/strftime.texi: Fix description of strftime
51895         module.
51896
51897 2008-08-24  Bruno Haible  <bruno@clisp.org>
51898
51899         * tests/uniwidth/test-uc_width2.c: New file.
51900         * tests/uniwidth/test-uc_width2.sh: New file.
51901         * modules/uniwidth/width-tests (Files): Add the new files.
51902         (TESTS): Add uniwidth/test-uc_width2.sh.
51903         (TESTS_ENVIRONMENT): New variable.
51904         (check_PROGRAMS): Add test-uc_width2.
51905         (test_uc_width2_SOURCES): New variable.
51906
51907         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
51908         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
51909         not 0x00AB.
51910         Reported by Alexander V. Lukyanov <lav@netis.ru>.
51911
51912 2008-08-22  Eric Blake  <ebb9@byu.net>
51913
51914         test-lock, test-tls: mention why a test is skipped
51915         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
51916         skipped.
51917         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
51918
51919         count-one-bits: relax license
51920         * modules/count-one-bits (License): Relicense to LGPLv2+.
51921         Suggested by Ludovic Courtès, approved by Ben Pfaff.
51922
51923 2008-08-22  Andreas Schwab  <schwab@suse.de>
51924
51925         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
51926         Remove spurious space in assignment.
51927
51928 2008-08-21  Simon Josefsson  <simon@josefsson.org>
51929
51930         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
51931         Paul Eggert <eggert@CS.UCLA.EDU>.
51932
51933 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
51934
51935         * modules/gettext: Add m4/threadlib.m4.
51936
51937 2008-08-19  Eric Blake  <ebb9@byu.net>
51938
51939         test-c-stack: fix compilation failure on FreeBSD 5.0
51940         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
51941         headers before <sys/resource.h>.
51942         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
51943         the bug.
51944         Reported by Nelson H. F. Beebe.
51945
51946         strverscmp: migrate from "strverscmp.h" to <string.h>
51947         * modules/string (Makefile.am): Add new hooks.
51948         * modules/strverscmp (Files): Remove strverscmp.h.
51949         (Depends-on): Add string.
51950         (configure.ac): Add indicator.
51951         (Include): Mention new header.
51952         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
51953         defaults.
51954         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
51955         results.
51956         * lib/strverscmp.h: Delete.
51957         * lib/string.in.h (strverscmp): Provide declaration, when needed.
51958         * tests/test-strverscmp.c (includes): Adjust client.
51959         * lib/check-version.c (includes): Likewise.
51960         * NEWS: Document the change.
51961
51962         strverscmp: add unit test
51963         * modules/strverscmp-tests: New file.
51964         * tests/test-strverscmp.c: Likewise.
51965
51966 2008-08-19  Simon Josefsson  <simon@josefsson.org>
51967
51968         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
51969         regarding Windows crypto stuff, from Mono.
51970
51971 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
51972
51973         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
51974         if present, for intel RND.  Return error on failures.
51975
51976 2008-08-18  Ben Pfaff  <blp@gnu.org>
51977
51978         gitlog-to-changelog: give better diagnostic for failed pipe-open
51979         * build-aux/gitlog-to-changelog: Improve error message: suggest
51980         that the version of Git may be too old.
51981
51982 2008-08-18  Simon Josefsson  <simon@josefsson.org>
51983
51984         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
51985         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
51986
51987 2008-08-18  Bruno Haible  <bruno@clisp.org>
51988
51989         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
51990         pthread_in_use().
51991
51992 2008-08-18  Bruno Haible  <bruno@clisp.org>
51993
51994         * lib/glthread/threadlib.c: Include <pthread.h>.
51995
51996 2008-08-18  Bruno Haible  <bruno@clisp.org>
51997
51998         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
51999         glthread_recursive_lock_* macros.
52000         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52001         Fix syntax error.
52002
52003 2008-08-18  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/glthread/thread.c: Avoid forcing a context switch right after
52006         thread creation.
52007
52008 2008-08-17  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52011         * lib/glthread/thread.h: Provide Win32 specific implementation.
52012         * modules/thread (Files): Add lib/glthread/thread.c.
52013         (Depends-on): Add lock.
52014         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52015
52016 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52017
52018         New module 'yield'.
52019         * modules/yield: New file.
52020         * lib/glthread/yield.h: New file.
52021         * m4/yield.m4: New file.
52022         * MODULES.html.sh (Multithreading): Add yield.
52023
52024 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52025
52026         New module 'thread'.
52027         * modules/thread: New file.
52028         * lib/glthread/thread.h: New file.
52029         * m4/thread.m4: New file.
52030         * MODULES.html.sh (Multithreading): Add thread.
52031
52032 2008-08-17  Bruno Haible  <bruno@clisp.org>
52033
52034         * lib/glthread/lock.h: Include <stdlib.h> always.
52035         * lib/glthread/tls.h: Likewise.
52036         * lib/glthread/cond.h: Likewise.
52037
52038 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52039
52040         New module 'cond'.
52041         * modules/cond: New file.
52042         * lib/glthread/cond.h: New file.
52043         * lib/glthread/cond.c: New file.
52044         * m4/cond.m4: New file.
52045         * MODULES.html.sh (Multithreading): Add cond.
52046
52047 2008-08-16  Eric Blake  <ebb9@byu.net>
52048
52049         c-stack: fix regression on Irix 5.3 from 2008-06-21
52050         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52051         sa_sigaction...
52052         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52053         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52054         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52055         * modules/signal (Makefile.am): Use the value.
52056         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52057         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52058         * doc/posix-headers/signal.texi (signal.h): Document this
52059         portability issue.
52060         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52061         Reported by Tom G. Christensen.
52062
52063 2008-08-17  Bruno Haible  <bruno@clisp.org>
52064
52065         New module 'threadlib'.
52066         * modules/threadlib: New file.
52067         * lib/glthread/threadlib.c: New file, extracted from
52068         lib/glthread/lock.c.
52069         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52070         functions.
52071         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52072         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52073         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52074         macros.
52075         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52076         (gl_DISABLE_THREADS): Remove macro.
52077         * modules/lock (Files): Remove build-aux/config.rpath.
52078         (Depends-on): Remove havelib. Add threadlib.
52079         (configure.ac-early): Remove section.
52080         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52081         * modules/tls (Depends-on): Remove lock. Add threadlib.
52082         (Link): New section, copied from threadlib.
52083         * MODULES.html.sh (Multithreading): Add threadlib.
52084
52085 2008-08-14  Bruno Haible  <bruno@clisp.org>
52086
52087         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52088         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52089         glthread_rwlock_unlock, glthread_rwlock_destroy,
52090         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52091         glthread_recursive_lock_destroy): Define as macros always.
52092         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52093         glthread_lock_lock.
52094         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52095         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52096         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52097         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52098         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52099         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52100         (glthread_recursive_lock_lock_func): Renamed from
52101         glthread_recursive_lock_lock.
52102         (glthread_recursive_lock_unlock_func): Renamed from
52103         glthread_recursive_lock_unlock.
52104         (glthread_recursive_lock_destroy_func): Renamed from
52105         glthread_recursive_lock_destroy.
52106
52107 2008-08-14  Bruno Haible  <bruno@clisp.org>
52108
52109         * lib/glthread/lock.h: Renamed from lib/lock.h.
52110         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52111         * lib/glthread/tls.h: Renamed from lib/tls.h.
52112         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52113         * lib/fstrcmp.c: Update includes.
52114         * lib/strsignal.c: Update includes.
52115         * modules/lock (Files, Makefile.am): Update.
52116         (Include): Change to "glthread/lock.h".
52117         * modules/tls (Files, Makefile.am): Update.
52118         (Include): Change to "glthread/tls.h".
52119         * tests/test-lock.c: Update includes.
52120         * tests/test-tls.c: Update includes.
52121         * NEWS: Mention the renamed header files.
52122
52123 2008-08-11  Jim Meyering  <meyering@redhat.com>
52124
52125         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52126
52127 2008-08-11  Eric Blake  <ebb9@byu.net>
52128
52129         test-c-stack: avoid C99-ism
52130         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52131         before statement.
52132         Reported by Alain Guibert.
52133
52134 2008-08-10  Jim Meyering  <meyering@redhat.com>
52135
52136         ensure that return value of uinttostr et al are not ignored
52137         * lib/inttostr.h (__GNUC_PREREQ): Define.
52138         (__attribute_warn_unused_result__): Define.
52139         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52140
52141 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52142
52143         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52144         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52145
52146 2008-08-07  Jim Meyering  <meyering@redhat.com>
52147
52148         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52149
52150         * modules/mkstemp (License): Relicense under LGPLv2+.
52151         * modules/tempname (License): Likewise.
52152
52153 2008-08-06  Bruno Haible  <bruno@clisp.org>
52154
52155         * lib/poll.c (poll): Further micro-optimization.
52156
52157 2008-08-06  Jim Meyering  <meyering@redhat.com>
52158
52159         inet_pton.c: use locale-independent tolower
52160         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52161         (inet_pton6): Use c_tolower rather than tolower.
52162         * modules/inet_pton (Depends-on): Add c-ctype.
52163
52164 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52165
52166         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52167         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52168
52169 2008-08-06  Jim Meyering  <meyering@redhat.com>
52170
52171         * modules/inet_pton (License): Relicense under LGPLv2+.
52172
52173 2008-08-03  Bruno Haible  <bruno@clisp.org>
52174
52175         Additional non-aborting API for lock and tls.
52176         * lib/lock.h: Include <errno.h>.
52177         (glthread_lock_init): New macro/function.
52178         (gl_lock_init): Define as wrapper around glthread_lock_init.
52179         (glthread_lock_lock): New macro/function.
52180         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52181         (glthread_lock_unlock): New macro/function.
52182         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52183         (glthread_lock_destroy): New macro/function.
52184         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52185         (glthread_rwlock_init): New macro/function.
52186         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52187         (glthread_rwlock_rdlock): New macro/function.
52188         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52189         (glthread_rwlock_wrlock): New macro/function.
52190         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52191         (glthread_rwlock_unlock): New macro/function.
52192         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52193         (glthread_rwlock_destroy): New macro/function.
52194         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52195         (glthread_recursive_lock_init): New macro/function.
52196         (gl_recursive_lock_init): Define as wrapper around
52197         glthread_recursive_lock_init.
52198         (glthread_recursive_lock_lock): New macro/function.
52199         (gl_recursive_lock_lock): Define as wrapper around
52200         glthread_recursive_lock_lock.
52201         (glthread_recursive_lock_unlock): New macro/function.
52202         (gl_recursive_lock_unlock): Define as wrapper around
52203         glthread_recursive_lock_unlock.
52204         (glthread_recursive_lock_destroy): New macro/function.
52205         (gl_recursive_lock_destroy): Define as wrapper around
52206         glthread_recursive_lock_destroy.
52207         (glthread_once): New macro/function.
52208         (gl_once): Define as wrapper around glthread_once.
52209         Update function declarations.
52210         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52211         glthread_rwlock_init. Return error code.
52212         (glthread_rwlock_rdlock_multithreaded): Renamed from
52213         glthread_rwlock_rdlock. Return error code.
52214         (glthread_rwlock_wrlock_multithreaded): Renamed from
52215         glthread_rwlock_wrlock. Return error code.
52216         (glthread_rwlock_unlock_multithreaded): Renamed from
52217         glthread_rwlock_unlock. Return error code.
52218         (glthread_rwlock_destroy_multithreaded): Renamed from
52219         glthread_rwlock_destroy. Return error code.
52220         (glthread_recursive_lock_init_multithreaded): Renamed from
52221         glthread_recursive_lock_init. Return error code.
52222         (glthread_recursive_lock_lock_multithreaded): Renamed from
52223         glthread_recursive_lock_lock. Return error code.
52224         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52225         glthread_recursive_lock_unlock. Return error code.
52226         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52227         glthread_recursive_lock_destroy. Return error code.
52228         (glthread_once_call): Make static.
52229         (glthread_once_multithreaded): Renamed from glthread_once.
52230         * lib/tls.h: Include <errno.h>.
52231         (glthread_tls_key_init): New macro/function.
52232         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52233         (glthread_tls_set): New macro/function.
52234         (gl_tls_set): Define as wrapper around glthread_tls_set.
52235         (glthread_tls_key_destroy): New macro/function.
52236         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52237         Update function declarations.
52238         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52239         glthread_tls_get.
52240         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52241
52242 2008-08-04  Eric Blake  <ebb9@byu.net>
52243
52244         gnumakefile: use space, not TAB, outside of targets
52245         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52246
52247 2008-08-02  Jim Meyering  <meyering@redhat.com>
52248
52249         getdate.y: avoid locale-dependent date parsing failure
52250         In Turkish locales, getdate would fail to recognize keywords
52251         containing a lowercase "i".  The solution is not to rely on
52252         locale-sensitive case-conversion.
52253         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52254         (lookup_word): Use c_toupper in place of toupper.
52255         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52256         Reported by Vefa Bicakci <bicave@superonline.com> in
52257         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52258         * modules/getdate (Depends-on): Add c-ctype.
52259
52260 2008-08-02  Bruno Haible  <bruno@clisp.org>
52261
52262         * gnulib-tool (func_import): When updating or creating a .gitignore
52263         file, prepend each added line with a slash, and ignore leading slashes
52264         from the existing lines.
52265         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52266
52267 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52268
52269         Portability fix for GNU make 3.79.1.
52270         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52271         versions do not understand.
52272
52273 2008-08-01  Bruno Haible  <bruno@clisp.org>
52274
52275         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52276         * tests/test-isnanf.h (zero): New variable.
52277         (main): Avoid literal -0.0f.
52278         * tests/test-isnand.h (zero): New variable.
52279         (main): Avoid literal -0.0.
52280         * tests/test-isnanl.h (zero): New variable.
52281         (main): Avoid literal -0.0L.
52282         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52283         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52284         -0.0, -0.0L.
52285         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52286         (test_signbitd): Avoid literal -0.0.
52287         (test_signbitl): Avoid literal -0.0L.
52288         * tests/test-ceilf1.c (zero): New variable.
52289         (main): Avoid literal -0.0f.
52290         * tests/test-ceill.c (zero): New variable.
52291         (main): Avoid literal -0.0L.
52292         * tests/test-floorf1.c (zero): New variable.
52293         (main): Avoid literal -0.0f.
52294         * tests/test-floorl.c (zero): New variable.
52295         (main): Avoid literal -0.0L.
52296         * tests/test-roundf1.c (zero): New variable.
52297         (main): Avoid literal -0.0f.
52298         * tests/test-round1.c (zero): New variable.
52299         (main): Avoid literal -0.0.
52300         * tests/test-roundl.c (zero): New variable.
52301         (main): Avoid literal -0.0L.
52302         * tests/test-truncf1.c (zero): New variable.
52303         (main): Avoid literal -0.0f.
52304         * tests/test-trunc1.c (zero): New variable.
52305         (main): Avoid literal -0.0.
52306         * tests/test-truncl.c (zero): New variable.
52307         (main): Avoid literal -0.0L.
52308         * tests/test-frexp.c (zero): New variable.
52309         (main): Avoid literal -0.0.
52310         * tests/test-frexpl.c (zero): New variable.
52311         (main): Avoid literal -0.0L.
52312         * tests/test-ldexpl.c (zero): New variable.
52313         (main): Avoid literal -0.0L.
52314         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52315         (zerod, zerol): New variables.
52316         (test_function): Avoid literals -0.0, -0.0L.
52317         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52318         (zerod, zerol): New variables.
52319         (test_function): Avoid literals -0.0, -0.0L.
52320         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52321         (zerod, zerol): New variables.
52322         (test_function): Avoid literals -0.0, -0.0L.
52323         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52324         (zerod, zerol): New variables.
52325         (test_function): Avoid literals -0.0, -0.0L.
52326         * tests/test-strtod.c (zero): New variable.
52327         (main): Avoid literal -0.0.
52328         Reported by Jonathan C. Patschke <jp@centtech.com>.
52329
52330 2008-07-31  Jim Meyering  <meyering@redhat.com>
52331
52332         sha256.h: correct definition of SHA224_DIGEST_SIZE
52333         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52334         Reported by Paulie Pena IV <paulie4@gmail.com>.
52335         Define as 224 / 8, rather than as a literal.
52336         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52337         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52338         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52339
52340 2008-07-31  Bruno Haible  <bruno@clisp.org>
52341
52342         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52343         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52344         Reported by Jonathan Patschke <jp@centtech.com>.
52345
52346 2008-07-31  Bruno Haible  <bruno@clisp.org>
52347
52348         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52349         Reported by Paolo Bonzini <bonzini@gnu.org>.
52350
52351 2008-07-30  Eric Blake  <ebb9@byu.net>
52352
52353         test-strtod: allow compilation without -lm
52354         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52355         Reported by Dennis Clarke <blastwave@gmail.com>.
52356
52357 2008-07-28  Jim Meyering  <meyering@redhat.com>
52358
52359         bootstrap: work also when there are no .po files in po/
52360         * build-aux/bootstrap (update_po_files): Complete the change
52361         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52362
52363 2008-07-27  Jim Meyering  <meyering@redhat.com>
52364
52365         * users.txt: Add zile.
52366
52367 2008-07-26  Ben Pfaff  <blp@gnu.org>
52368
52369         Add missing dependencies on new m4/exponent[fdl].m4 files.
52370         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52371         * modules/isnand-nolibm: Add m4/exponentd.m4.
52372         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52373         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52374         m4/isnan[fdl].m4, because the macros actually used moved.
52375         Reported by Jim Meyering.
52376
52377 2008-07-14  Ben Pfaff  <blp@gnu.org>
52378
52379         Add isinf module.
52380         * lib/isinf.c: New file.
52381         * lib/math.in.h: Define isinf macro if we have decided to replace
52382         it.
52383         * m4/isinf.m4: New file.
52384         * m4/math_h.m4: Initialize and substitute variables for isinf
52385         module.
52386         * modules/isinf: New file.
52387         * modules/isinf-tests: New file.
52388         * modules/math: Add substitutions for new module.
52389         * tests/test-isinf.c: New file.
52390         * doc/posix-functions/isinf.texi: Mention new module.
52391         * MODULES.html.sh: Mention new module.
52392
52393 2008-07-14  Ben Pfaff  <blp@gnu.org>
52394
52395         Factor out some macros for use by additional modules.
52396         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52397         exponentf.m4.
52398         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52399         exponentd.m4.
52400         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52401         file exponentl.m4.
52402         * m4/exponentf.m4: New file.
52403         * m4/exponentd.m4: New file.
52404         * m4/exponentl.m4: New file.
52405         * modules/isnanf: Use new file m4/exponentf.m4.
52406         * modules/isnand: Use new file m4/exponentd.m4.
52407         * modules/isnanl: Use new file m4/exponentl.m4.
52408
52409 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52410
52411         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52412         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52413         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52414         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52415
52416         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52417         readlink on platforms without PATH_MAX.
52418
52419 2008-07-21  Eric Blake  <ebb9@byu.net>
52420
52421         Warn, not fail, on stale version.
52422         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52423
52424         Don't allow installation with stale devel version number.
52425         * top/GNUmakefile (_is-install-target): New macro.
52426         (_curr-ver): Forbid installation with stale version number.
52427
52428 2008-07-20  Bruno Haible  <bruno@clisp.org>
52429
52430         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52431         TESTS_ENVIRONMENT.
52432         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52433
52434 2008-07-20  Bruno Haible  <bruno@clisp.org>
52435
52436         * lib/c-stack.h (c_stack_action): Add documentation.
52437         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
52438
52439 2008-07-20  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
52442         * modules/readlink (License): Likewise.
52443
52444 2008-07-17  Eric Blake  <ebb9@byu.net>
52445
52446         * modules/c-stack (Link): Fix typo.
52447
52448         Make c-stack use libsigsegv, when available.
52449         * modules/c-stack (Depends-on): Add libsigsegv.
52450         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
52451         needed.
52452         * lib/c-stack.c (SIGSTKSZ): Define fallback.
52453         (segv_handler, overflow_handler, c_stack_action)
52454         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
52455         implementation when libsigsegv is available, but only when using
52456         the library is necessary.
52457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
52458         comment, explaining why XSI check fails on Linux.
52459         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
52460         * tests/test-c-stack2.sh: Tweak skip message.
52461         * NEWS: Document new link-time requirements.
52462
52463 2008-07-16  Eric Blake  <ebb9@byu.net>
52464
52465         c-stack: Expose false positives when not using libsigsegv.
52466         * modules/c-stack-tests (Files): Expand test.
52467         * tests/test-c-stack.c (main): Add means to conditionally trigger
52468         non-overflow SIGSEGV.
52469         * tests/test-c-stack2.sh: New file.
52470
52471 2008-07-14  Bruno Haible  <bruno@clisp.org>
52472
52473         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
52474         Reported by Eric Blake.
52475
52476 2008-07-14  Sam Steingold  <sds@gnu.org>
52477             Bruno Haible  <bruno@clisp.org>
52478
52479         New module libsigsegv.
52480         * modules/libsigsegv: New file.
52481         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
52482         modifications.
52483         * MODULES.html.sh (Signal handling): New section.
52484
52485 2008-07-14  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/unictype/ctype-* (Description): Add the word "function".
52488         Improves the resulting doc in MODULES.html.
52489
52490 2008-07-12  Ben Pfaff  <blp@gnu.org>
52491
52492         Add longlong module.
52493         * modules/longlong: New file.
52494
52495 2008-07-12  Bruno Haible  <bruno@clisp.org>
52496
52497         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
52498         to empty.
52499
52500 2008-07-10  Ben Pfaff  <blp@gnu.org>
52501
52502         Add isnan module.
52503         * doc/posix-functions/isnan.texi: Mention new module.
52504         * lib/math.in.h: Define isnan macro if we have decided to replace
52505         it.
52506         * m4/isnan.m4: New file.
52507         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
52508         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
52509         also.
52510         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
52511         redundancy.
52512         * m4/math_h.m4: Initialize and substitute variables for isnan
52513         module.
52514         * modules/isnan: New file.
52515         * modules/isnan-tests: New file.
52516         * modules/math: Add substitutions for new module.
52517         * tests/test-isnan.c: New file.
52518         * MODULES.html.sh: Mention new module.
52519
52520 2008-07-10  Ben Pfaff  <blp@gnu.org>
52521
52522         Add isnanf module.
52523         * lib/isnanf.m4: New file.
52524         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
52525         (gl_HAVE_ISNANF_IN_LIBM): New macro.
52526         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
52527         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
52528         * modules/isnanf: New file.
52529         * modules/isnanf-tests: New file.
52530         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
52531         files.
52532         * tests/test-isnanf-nolibm.c: factored most of its contents into
52533         new file tests/test-isnanf.h.
52534         * tests/test-isnanf.h: New file.
52535         * tests/test-isnanf.c: New file.
52536         * MODULES.html.sh: Mention new module.
52537         * doc/glibc-functions/isnanf.texi: Mention new module.
52538
52539 2008-07-10  Ben Pfaff  <blp@gnu.org>
52540
52541         Add isnand module.
52542         * lib/isnand.h: New file.
52543         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
52544         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
52545         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
52546         functionality also.
52547         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
52548         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
52549         (gl_HAVE_ISNAND_IN_LIBM): New macro.
52550         * modules/isnand: New file.
52551         * modules/isnand-tests: New file.
52552         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
52553         files.
52554         * tests/test-isnand-nolibm.c: factored most of its contents into
52555         new file tests/test-isnand.h.
52556         * tests/test-isnand.h: New file.
52557         * tests/test-isnand.c: New file.
52558         * MODULES.html.sh: Mention new module.
52559
52560 2008-07-10  Ben Pfaff  <blp@gnu.org>
52561
52562         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
52563         * lib/isnand.h: Rename lib/isnand-nolibm.h.
52564         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
52565         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
52566         * modules/isnanf-nolibm: Update references to renamed files.
52567         * modules/isnand-nolibm: Likewise.
52568         * modules/isnanf-nolibm-tests: Likewise.
52569         * modules/isnand-nolibm-tests: Likewise.
52570         * lib/frexp.c: Likewise.
52571         * lib/isfinite.c: Likewise.
52572         * lib/signbitd.c: Likewise.
52573         * lib/signbitf.c: Likewise.
52574         * lib/vasnprintf.c: Likewise.
52575         * tests/test-ceilf1.c: Likewise.
52576         * tests/test-ceilf2.c: Likewise.
52577         * tests/test-floorf1.c: Likewise.
52578         * tests/test-floorf2.c: Likewise.
52579         * tests/test-frexp.c: Likewise.
52580         * tests/test-round1.c: Likewise.
52581         * tests/test-round2.c: Likewise.
52582         * tests/test-roundf1.c: Likewise.
52583         * tests/test-strtod.c: Likewise.
52584         * tests/test-trunc1.c: Likewise.
52585         * tests/test-trunc2.c: Likewise.
52586         * tests/test-truncf1.c: Likewise.
52587         * tests/test-truncf2.c: Likewise.
52588         * NEWS: Mention the renamed header files.
52589
52590 2008-07-11  Jim Meyering  <meyering@redhat.com>
52591
52592         vc-list-files: make the last-resort awk code more portable
52593         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
52594         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
52595         does not support it.
52596
52597 2008-07-10  Eric Blake  <ebb9@byu.net>
52598
52599         Work with tar's bootstrap.
52600         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
52601         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
52602         an m4 comment.
52603
52604 2008-07-09  Jim Meyering  <meyering@redhat.com>
52605
52606         posix-shell.m4: fix typo that made this test malfunction
52607         * m4/posix-shell.m4: Remove capitalization in variable name.
52608
52609 2008-07-08  Bruno Haible  <bruno@clisp.org>
52610
52611         * m4/onceonly.m4: Update comments.
52612         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52613
52614 2008-07-04  Jim Meyering  <meyering@redhat.com>
52615
52616         * users.txt: Add vc-dwim.
52617         (bison, coreutils): Use the gitweb URL.
52618
52619 2008-07-03  Jim Meyering  <meyering@redhat.com>
52620
52621         * users.txt: Add libffcall.  From Sam Steingold.
52622
52623 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
52624
52625         getdate.y: do not ignore TZ with relative day, month or year offset
52626         * lib/getdate.y (get_date): Move the tz-handling block to follow the
52627         relative-date-handling, since otherwise, the latter would clobber the
52628         sole output (an updated Start value) of the tz-handling block.
52629         * tests/test-getdate.c: Tests for the fix
52630
52631 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52632
52633         Recognize 'foo_LIBRARIES += libgnu.a'.
52634         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
52635         makefile snippet has already specified an installation location,
52636         also using '+='.
52637
52638 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
52639
52640         getdate.y: factor out common actions
52641         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
52642         Use them in place of open-coded actions.
52643
52644 2008-07-01  Simon Josefsson  <simon@josefsson.org>
52645
52646         Add self-test for getdate module.
52647         * modules/getdate-tests: New file.
52648         * tests/test-getdate.c: New file.
52649
52650 2008-06-29  Bruno Haible  <bruno@clisp.org>
52651
52652         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
52653         .gitignore.
52654         Reported by Sylvain Beucler <beuc@beuc.net>.
52655
52656 2008-06-29  Bruno Haible  <bruno@clisp.org>
52657
52658         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
52659         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
52660
52661 2008-06-29  Bruno Haible  <bruno@clisp.org>
52662
52663         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
52664         EXTRA_DIST.
52665         Reported by Sylvain Beucler <beuc@beuc.net>.
52666
52667 2008-06-26  Jim Meyering  <meyering@redhat.com>
52668
52669         make several modules depend on the "open" module
52670         This provides slightly increased consistency when opening-for-write
52671         the name of a non-directory spelled with a trailing slash.
52672         * modules/chdir-safer: Likewise.
52673         * modules/chown: Likewise.
52674         * modules/clean-temp: Likewise.
52675         * modules/copy-file: Likewise.
52676         * modules/fchdir: Likewise.
52677         * modules/fcntl-safer: Likewise.
52678         * modules/pipe: Likewise.
52679         * modules/utime: Likewise.
52680         Prompted by Eric Blake and Bruno Haible.
52681
52682 2008-06-24  Andreas Schwab  <schwab@suse.de>
52683
52684         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
52685         literals can be used as initializers for global variables.
52686
52687 2008-06-23  Eric Blake  <ebb9@byu.net>
52688
52689         Make gnulib-cache.m4 easier to diff.
52690         * gnulib-tool (func_import): Allow newlines when reading cached
52691         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
52692
52693 2008-06-23  Bruno Haible  <bruno@clisp.org>
52694
52695         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
52696         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
52697         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
52698         m4/signalblocking.m4.
52699         (gl_PREREQ_SIGACTION): Don't invoke it.
52700         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
52701         gl_PREREQ_SIG_HANDLER_H.
52702         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52703         Don't check for sigaction here.
52704
52705 2008-06-23  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
52708         (install_handlers): Don't set the SA_RESETHAND flag.
52709
52710 2008-06-23  Bruno Haible  <bruno@clisp.org>
52711
52712         * m4/sigaction.m4: Comment fixes.
52713         * lib/signal.in.h: Likewise.
52714
52715 2008-06-23  Eric Blake  <ebb9@byu.net>
52716
52717         Fix typo.
52718         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
52719
52720         Avoid SA_ namespace.
52721         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
52722         Reported by Ralf Wildenhues.
52723
52724         Avoid test failure due to SA_RESTORER.
52725         * tests/test-sigaction.c (SA_MASK): New macro.
52726         (main): Avoid failing due to extension flags being set.
52727         Reported by Jim Meyering.
52728
52729         Revert use of sig-handler.h in sigprocmask.c.
52730         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
52731         it requires the existence of struct sigaction.
52732         * lib/sigprocmask.c (handler_t): Restore typedef.
52733         (rpl_signal, old_handlers): Use local type.
52734
52735 2008-06-22  Bruno Haible  <bruno@clisp.org>
52736
52737         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
52738         conditionally.
52739         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52740
52741 2008-06-22  Bruno Haible  <bruno@clisp.org>
52742
52743         * doc/posix-functions/siginterrupt.texi: Move note.
52744
52745         * lib/signal.in.h (SA_RESTART): New macro.
52746         * lib/sigaction.c: Update comment.
52747
52748         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
52749
52750         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
52751         (gl_PREREQ_SIGPROCMASK): Invoke it.
52752         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
52753
52754         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
52755
52756         * lib/sigprocmask.c: Update a comment.
52757
52758 2008-06-21  Eric Blake  <ebb9@byu.net>
52759
52760         Use sigaction module rather than signal().
52761         * modules/c-stack (Depends-on): Add sigaction.
52762         * modules/fatal-signal (Depends-on): Likewise.
52763         * modules/nanosleep (Depends-on): Likewise.
52764         * modules/sigprocmask (Files): Add sig-handler.h.
52765         * modules/sigaction (Files): Likewise.
52766         * lib/sig-handler.h (get_handler): New file, suggested by Paul
52767         Eggert.
52768         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
52769         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
52770         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
52771         (init_fatal_signals): Likewise.
52772         * lib/nanosleep.c (rpl_nanosleep): Likewise.
52773         (siginterrupt): Delete fallback.
52774         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
52775         instead.
52776         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
52777         siginterrupt.
52778
52779         New module sigaction, for mingw.
52780         * modules/sigaction: New module...
52781         * modules/sigaction-tests: ...and its test.
52782         * m4/sigaction.m4: New file.
52783         * lib/sigaction.c: Likewise.
52784         * tests/test-sigaction.c: Likewise.
52785         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
52786         * modules/signal (Makefile.am): Likewise.
52787         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
52788         needed.
52789         * doc/posix-headers/signal.texi (signal.h): Mention provided
52790         types.
52791         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
52792         that sigaction is preferable.
52793         * doc/posix-functions/sigaction.texi (sigaction): Mention new
52794         module.
52795         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52796         sigaction.
52797
52798         Improve robustness of sigprocmask by overriding signal.
52799         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
52800         is in use.
52801         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
52802         (SIGKILL, SIGSTOP): Provide fallbacks.
52803         (rpl_signal): Implement.
52804         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
52805         signal can be called inside handlers.
52806
52807         Fix nanosleep module on mingw.
52808         * modules/nanosleep (Depends-on): Add sys_select.
52809         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
52810
52811         Fix licensing of sigprocmask.
52812         * modules/raise (License): Relicense as LGPL.
52813
52814 2008-06-21  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/propername.c (proper_name_utf8): Don't use the transliterated
52817         result if it contains question marks.
52818         Reported by Michael Geng <linux@michaelgeng.de>.
52819
52820 2008-06-19  Bruno Haible  <bruno@clisp.org>
52821
52822         Fix CVS-ism.
52823         * doc/gnulib.texi: Include updated-stamp.texi.
52824         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
52825         (updated-stamp.texi): New rule.
52826         (gnulib.info): Depend on it.
52827         * doc/.gitignore: Add updated-stamp.texi.
52828         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
52829
52830 2008-06-19  Bruno Haible  <bruno@clisp.org>
52831
52832         * doc/Makefile (gnulib.info): Update and simplify dependencies.
52833         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
52834
52835 2008-06-19  Eric Blake  <ebb9@byu.net>
52836
52837         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
52838         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
52839         Reported by Stepan Kasal.
52840
52841 2008-06-18  Bruno Haible  <bruno@clisp.org>
52842
52843         * lib/fatal-signal.c (init_fatal_signals): Add comment.
52844         Reported by Eric Blake.
52845
52846 2008-06-18  Eric Blake  <ebb9@byu.net>
52847
52848         Work around cygwin 1.5.25 strsignal bug.
52849         * tests/test-strsignal.c: Allow for const char *.
52850         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
52851
52852 2008-06-18  Simon Josefsson  <simon@josefsson.org>
52853
52854         * users.txt: Update URL to article and add author/date
52855         information.
52856
52857 2008-06-17  Bruno Haible  <bruno@clisp.org>
52858
52859         New macro gl_DISABLE_THREADS.
52860         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
52861         if the user did not pass --enable-threads or --disable-threads option.
52862         (gl_DISABLE_THREADS): New macro.
52863         Reported by Eric Blake <ebb9@byu.net>.
52864
52865 2008-06-17  Bruno Haible  <bruno@clisp.org>
52866
52867         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
52868         when the macro ignores it.
52869         Based on a patch by Eric Blake <ebb9@byu.net>.
52870
52871 2008-06-17  Bruno Haible  <bruno@clisp.org>
52872
52873         * modules/tls (License): Change to LGPLv2+.
52874         Reported by Eric Blake.
52875
52876 2008-06-17  Eric Blake  <ebb9@byu.net>
52877
52878         Simplify c-stack prerequisites.
52879         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
52880         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
52881         no longer requires <ucontext.h> to exist.  Optimize setrlimit
52882         check.
52883         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
52884         <sys/resource.h>.
52885
52886         Move c-stack test into testsuite.
52887         * modules/c-stack-tests: New file.
52888         * lib/c-stack.c [DEBUG]: Move test program...
52889         * tests/test-c-stack.c: ...into this new file.  Skip rather than
52890         fail test if sigaltstack is lacking.
52891         * tests/test-c-stack.sh: New driver file.
52892
52893 2008-06-16  Eric Blake  <ebb9@byu.net>
52894
52895         Use raise module consistently.
52896         * modules/fatal-signal (Depends-on): Add raise.
52897         * modules/sigprocmask (Depends-on): Likewise.
52898         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
52899         * lib/sigprocmask.c (sigprocmask): Likewise.
52900         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
52901         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
52902
52903         Fix compliance bug in sigpending.
52904         * lib/sigprocmask.c (sigpending): Return pending array via
52905         parameter, not return value.
52906
52907 2008-06-14  Eric Blake  <ebb9@byu.net>
52908
52909         Improve obstack-printf test code.
52910         * tests/test-obstack-printf.c (test_function): Fix comment, and
52911         simplify usage of obstack_* in macros.  Add a test for coverage.
52912         Reported by Bruno Haible.
52913
52914 2008-06-14  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
52917         array size as a constant, not as a const variable.
52918         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
52919         AC_USE_SYSTEM_EXTENSIONS.
52920         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
52921         Test whether the obstack_printf function actually exists.
52922         * modules/obstack-printf (Depends-on): Add extensions.
52923         (Include): Remove obstack.h.
52924         * modules/obstack-printf-posix (Depends-on): Add extensions.
52925         (Include): Remove obstack.h.
52926
52927 2008-06-13  Eric Blake  <ebb9@byu.net>
52928
52929         Add obstack-printf and obstack-printf-posix modules.
52930         * modules/obstack-printf: New file.
52931         * modules/obstack-printf-posix: Likewise.
52932         * MODULES.html.sh (Misc): Mention them.
52933         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
52934         Likewise.
52935         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
52936         Likewise.
52937         * modules/stdio (Makefile.am): Accomodate new modules.
52938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52939         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
52940         Declare.
52941         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
52942         functions.
52943         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
52944         (gl_REPLACE_OBSTACK_PRINTF): New macros
52945         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
52946         * tests/test-obstack-printf.c: New file.
52947         * modules/obstack-printf-tests: Likewise.
52948         * modules/obstack-printf-posix-tests: Likewise.
52949
52950 2008-06-11  Bruno Haible  <bruno@clisp.org>
52951
52952         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
52953         * lib/open.c: Include errno.h.
52954         (open): Fail when attempting to write to a file that has a trailing
52955         slash.
52956         * tests/test-open.c (main): Test against trailing slash bug.
52957         * doc/posix-functions/open.texi: Mention the trailing slash bug.
52958
52959 2008-06-10  Bruno Haible  <bruno@clisp.org>
52960
52961         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
52962         for $? to work inside the trap command, with various /bin/sh-s.
52963         * tests/test-vc-list-files-cvs.sh: Likewise.
52964
52965 2008-06-10  Bruno Haible  <bruno@clisp.org>
52966
52967         * lib/acl-internal.h: Don't include gettext.h here.
52968         * lib/set-mode-acl.c: Include gettext.h here.
52969         * lib/copy-acl.c: Likewise.
52970
52971 2008-06-10  Bruno Haible  <bruno@clisp.org>
52972
52973         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
52974         * lib/wait-process.c (wait_subprocess): Likewise.
52975         * lib/execute.h (execute): Add termsigp argument.
52976         * lib/execute.c (execute): Likewise.
52977         * lib/csharpcomp.c (compile_csharp_using_pnet,
52978         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
52979         * lib/csharpexec.c (execute_csharp_using_pnet,
52980         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
52981         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
52982         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
52983         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
52984         is_jikes_present): Update.
52985         * lib/javaexec.c (execute_java_class): Update.
52986         * lib/javaversion.c (execute_and_read_line): Update.
52987         * NEWS: Document the changes.
52988         Reported by Eric Blake.
52989
52990 2008-06-10  Eric Blake  <ebb9@byu.net>
52991
52992         Add missing include.
52993         * tests/test-strstr.c (includes): Add <signal.h>.
52994         * tests/test-strcasestr.c (includes): Likewise.
52995         * tests/test-memmem.c (includes): Likewise.
52996
52997 2008-06-10  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/wait-process.c (wait_subprocess): Add an assertion.
53000
53001 2008-06-10  Bruno Haible  <bruno@clisp.org>
53002
53003         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53004
53005 2008-06-10  Bruno Haible  <bruno@clisp.org>
53006
53007         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53008         using alarm().
53009         * tests/test-strcasestr.c (main): Likewise.
53010         * tests/test-strstr.c (main): Likewise.
53011
53012 2008-06-09  Bruno Haible  <bruno@clisp.org>
53013
53014         Work around the Solaris 10 ACE ACLs ABI change.
53015         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53016         declare if ACL_NO_TRIVIAL is present.
53017         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53018         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53019         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53020         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53021         define if ACL_NO_TRIVIAL is present.
53022         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53023         and use the current ABI.
53024         (file_has_acl): Use same #if condition as elsewhere.
53025         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53026         in use, and use the current ABI.
53027         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53028         Reported by Jim Meyering.
53029
53030 2008-06-09  Eric Blake  <ebb9@byu.net>
53031
53032         Work around environments that (stupidly) ignore SIGALRM.
53033         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53034         before using alarm().
53035         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53036         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53037         Reported by Ian Beckwith <ianb@erislabs.net>.
53038
53039         Produce autobuild blurb earlier in log.
53040         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53041
53042 2008-06-09  Jim Meyering  <meyering@redhat.com>
53043         and Ondřej Vašík  <ovasik@redhat.com>
53044
53045         utimens.c: correct kernel bug work-around
53046         Ondřej Vašík found that the invalid return value of 280 indicates
53047         failure, not success, and the kernel bug we're trying to work
53048         around affects not just the utimensat call, but also the fallback
53049         futimens call.
53050         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53051         not success.
53052         [HAVE_FUTIMENS]: Use the same work-around, here.
53053
53054 2008-06-09  Jim Meyering  <meyering@redhat.com>
53055
53056         add more guards around definition of ACE_-related code
53057         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53058         ALLOW and ACE_OWNER are also defined.
53059
53060 2008-06-08  Bruno Haible  <bruno@clisp.org>
53061
53062         * lib/acl-internal.h: Add me as co-author.
53063         * lib/file-has-acl.c: Likewise.
53064         * lib/set-mode-acl.c: Likewise.
53065         * lib/copy-acl.c: Likewise.
53066
53067 2008-06-08  Bruno Haible  <bruno@clisp.org>
53068
53069         Add support for AIX ACLs.
53070         * lib/acl-internal.h (acl_nontrivial): New declaration.
53071         * lib/file-has-acl.c (acl_nontrivial): New function.
53072         (file_has_acl): Add implementation using AIX 4 ACL API.
53073         * lib/set-mode-acl.c (qset_acl): Likewise.
53074         * lib/copy-acl.c (qcopy_acl): Likewise.
53075
53076 2008-06-08  Bruno Haible  <bruno@clisp.org>
53077
53078         Add support for HP-UX ACLs.
53079         * lib/acl-internal.h (acl_nontrivial): New declaration.
53080         * lib/file-has-acl.c (acl_nontrivial): New function.
53081         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53082         * lib/set-mode-acl.c (qset_acl): Likewise.
53083         * lib/copy-acl.c (qcopy_acl): Likewise.
53084
53085 2008-06-08  Bruno Haible  <bruno@clisp.org>
53086
53087         Add support for Cygwin ACLs.
53088         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53089         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53090         the chmod_or_fchmod call.
53091         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53092
53093 2008-06-08  Bruno Haible  <bruno@clisp.org>
53094
53095         Fix bug with setuid modes in Solaris 10+ code.
53096         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53097         succeeded, when the mode contains some special bits.
53098
53099 2008-06-08  Bruno Haible  <bruno@clisp.org>
53100
53101         Add support for Solaris 7..10 ACLs.
53102         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53103         declarations.
53104         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53105         functions.
53106         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53107         * lib/set-mode-acl.c (qset_acl): Likewise.
53108         * lib/copy-acl.c (qcopy_acl): Likewise.
53109
53110 2008-06-08  Bruno Haible  <bruno@clisp.org>
53111
53112         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53113         declaration.
53114         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53115         (acl_access_nontrivial): Remove MacOS X case.
53116         (file_has_acl): Use acl_extended_nontrivial.
53117         * lib/copy-acl.c (qcopy_acl): Likewise.
53118
53119 2008-06-08  Bruno Haible  <bruno@clisp.org>
53120
53121         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53122
53123 2008-06-08  Jim Meyering  <meyering@redhat.com>
53124
53125         * modules/acl (Maintainer): Add Bruno Haible.
53126
53127 2008-06-07  Bruno Haible  <bruno@clisp.org>
53128
53129         Improve support for Tru64 ACLs.
53130         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53131         ACL on OSF/1.
53132
53133 2008-06-07  Bruno Haible  <bruno@clisp.org>
53134
53135         Add support for MacOS X ACLs.
53136         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53137         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53138         * lib/set-mode-acl.c (qset_acl): Likewise.
53139         * lib/copy-acl.c (qcopy_acl): Likewise.
53140
53141 2008-06-07  Bruno Haible  <bruno@clisp.org>
53142
53143         Fix memory leak introduced on 2008-05-22.
53144         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53145         use.
53146
53147 2008-06-07  Bruno Haible  <bruno@clisp.org>
53148
53149         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53150         to construct an empty ACL.
53151
53152 2008-06-07  Bruno Haible  <bruno@clisp.org>
53153
53154         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53155         precisely.
53156         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53157
53158 2008-06-07  Bruno Haible  <bruno@clisp.org>
53159
53160         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53161         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53162
53163 2008-06-07  Bruno Haible  <bruno@clisp.org>
53164
53165         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53166         regardless of POSIX.
53167         * doc/posix-functions/_longjmp.texi: Likewise.
53168         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53169         SystemV platform in this case.
53170
53171 2008-06-06  Eric Blake  <ebb9@byu.net>
53172
53173         Document abort() bugs.
53174         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53175
53176         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53177         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53178         sigsetjmp.
53179         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53180         siglongjmp, but only as a macro.
53181         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53182         is obsolete.
53183         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53184
53185         Tweak documentation to cover cygwin argz bugs.
53186         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53187         argz bug fix; no code change needed since no cygwin releases
53188         occurred between the last fix and the bug being tested.
53189         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53190         module and recently fixed cygwin bugs.
53191         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53192         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53193         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53194         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53195         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53196         Likewise.
53197         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53198         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53199         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53200         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53201         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53202         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53203         Likewise.
53204
53205         Avoid gcc warning on cygwin.
53206         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53207         !ACL_NO_TRIVIAL]: Avoid unused variable.
53208
53209 2008-06-05  Eric Blake  <ebb9@byu.net>
53210
53211         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53212         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53213         git-version-gen fails to come up with a version.
53214         Reported by Simon Josefsson.
53215
53216 2008-06-05  Jim Meyering  <meyering@redhat.com>
53217             Paul Eggert  <eggert@cs.ucla.edu>
53218
53219         utimens.c: work around a probable Linux kernel bug
53220         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53221         appears to be a kernel bug that causes utimensat to return 280
53222         instead of 0, indicating success.
53223
53224 2008-06-04  Bruno Haible  <bruno@clisp.org>
53225
53226         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53227         2008-06-01 commit.
53228
53229 2008-06-04  Bruno Haible  <bruno@clisp.org>
53230
53231         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53232         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53233         (file_has_acl): Use it. Save errno afterwards.
53234         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53235
53236 2008-06-03  Bruno Haible  <bruno@clisp.org>
53237
53238         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53239         draft code. Simplify #ifs.
53240         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53241         Put Solaris code after POSIX-draft code. Fix comments regarding
53242         Solaris 10, HP-UX. Mention Cygwin.
53243         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53244
53245 2008-06-03  Eric Blake  <ebb9@byu.net>
53246
53247         Provide fallback for older kernels.
53248         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53249         Provide runtime fallback if kernel lacks support.
53250         Reported by Mike Frysinger.
53251
53252 2008-06-02  Bruno Haible  <bruno@clisp.org>
53253
53254         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53255         it exists.
53256
53257 2008-06-02  Bruno Haible  <bruno@clisp.org>
53258
53259         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53260         * lib/copy-acl.c (qcopy_acl): Update comment.
53261
53262 2008-06-02  Bruno Haible  <bruno@clisp.org>
53263
53264         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53265         like ACL APIs.
53266
53267 2008-06-02  Bruno Haible  <bruno@clisp.org>
53268
53269         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53270         * tests/test-set-mode-acl.sh: Likewise.
53271         * tests/test-copy-acl.sh: Likewise.
53272         * tests/test-copy-file.sh: Likewise.
53273
53274 2008-06-02  Bruno Haible  <bruno@clisp.org>
53275
53276         * tests/test-file-has-acl.sh: Remove unused code.
53277
53278 2008-06-01  Bruno Haible  <bruno@clisp.org>
53279
53280         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53281         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53282         messages.
53283         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53284
53285 2008-06-01  Bruno Haible  <bruno@clisp.org>
53286
53287         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53288         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53289         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53290         APIs.
53291         * modules/acl-tests (configure.ac): Remove tests now contained in
53292         m4/acl.m4.
53293
53294 2008-06-02  Jim Meyering  <meyering@redhat.com>
53295
53296         announce-gen: use a better key-server host name
53297         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53298         it may be more consistently reliable.  Suggested by Werner Koch
53299         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53300
53301 2008-06-01  Bruno Haible  <bruno@clisp.org>
53302
53303         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53304         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53305
53306 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53307
53308         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53309
53310 2008-06-01  Bruno Haible  <bruno@clisp.org>
53311
53312         New ACL tests.
53313         * tests/test-file-has-acl.sh: New file.
53314         * tests/test-file-has-acl.c: New file.
53315         * tests/test-set-mode-acl.sh: New file.
53316         * tests/test-set-mode-acl.c: New file.
53317         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53318         * tests/test-copy-acl.c: New file.
53319         * modules/acl-tests: New file, based on modules/copy-file-tests.
53320         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53321         (Depends-on): Add acl-tests.
53322         (configure.ac): Remove checks.
53323         (Makefile.am): Don't create test-sameacls program here any more.
53324
53325 2008-06-01  Bruno Haible  <bruno@clisp.org>
53326
53327         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53328         * tests/test-sameacls.c: Include progname.h.
53329         (main): Invoke set_program_name. Portability fixes for MacOS X,
53330         Solaris, HP-UX.
53331
53332 2008-06-01  Bruno Haible  <bruno@clisp.org>
53333
53334         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53335         function.
53336         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53337
53338 2008-06-01  Bruno Haible  <bruno@clisp.org>
53339
53340         * modules/rpmatch (Depends-on): Add strdup.
53341
53342 2008-06-01  Bruno Haible  <bruno@clisp.org>
53343
53344         * lib/pipe.c: Include unistd-safer.h.
53345         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53346         * modules/pipe (Depends-on): Add unistd-safer.
53347
53348 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53349
53350         * modules/autobuild (configure.ac): Call AB_INIT.
53351
53352 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53353
53354         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53355         Suggested by Bruno Haible <bruno@clisp.org>.
53356
53357 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53358
53359         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53360         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53361         <bruno@clisp.org>.
53362
53363 2008-05-29  Eric Blake  <ebb9@byu.net>
53364
53365         Prefer new POSIX 200x interfaces over futimesat.
53366         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53367         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53368         when available.
53369         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53370
53371 2008-05-28  Bruno Haible  <bruno@clisp.org>
53372
53373         * modules/stpcpy (License): Change to LGPLv2+.
53374         Requested by David Lutterkort <dlutter@redhat.com>.
53375
53376 2008-05-27  Bruno Haible  <bruno@clisp.org>
53377
53378         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53379         current mingw.
53380         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53381
53382 2008-05-27  Bruno Haible  <bruno@clisp.org>
53383
53384         * modules/iconv_open (Link): New section, from module 'iconv'.
53385         * modules/striconv (Link): Likewise.
53386         * modules/striconveh (Link): Likewise.
53387         * modules/xstriconv (Link): Likewise.
53388         * modules/unicodeio (Link): Likewise.
53389         * modules/propername (Link): Likewise.
53390         Reported by Jim Meyering.
53391
53392 2008-05-26  Jim Meyering  <meyering@redhat.com>
53393
53394         sha256: do not artificially restrict buffer length to be < 2^32
53395         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53396         uint32_t to size_t.
53397         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53398         to match.
53399
53400         avoid unaligned access errors, e.g., on sparc
53401         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53402         direct access through a possibly-unaligned uint64* pointer.
53403         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53404         direct access through a possibly-unaligned uint32* pointer.
53405         Prompted by this patch from Tom "spot" Callaway:
53406         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53407
53408         sha512.c: fix typo in comment
53409         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53410
53411 2008-05-25  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53414         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53415         (Makefile.am): Update lib_SOURCES.
53416
53417 2008-05-25  Bruno Haible  <bruno@clisp.org>
53418
53419         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53420
53421 2008-05-25  Jim Meyering  <meyering@redhat.com>
53422
53423         useless-if-before-free: freed expr may have white-space differences
53424         * build-aux/useless-if-before-free: Recognize cases in which the
53425         freed expression differs from the tested one in embedded white
53426         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53427         $1 was used, so we can't make any regexp shy.  Improved tests now
53428         detect this.
53429
53430         useless-if-before-free: accept white space in the expression.
53431         * build-aux/useless-if-before-free: For now, any white space
53432         in the expression must be identical in the free argument.
53433
53434         useless-if-before-free: efficiency tweak
53435         * build-aux/useless-if-before-free: Make the expression-matching
53436         regexp "shy".
53437         Make the *outer* regexp shy, not the expr-matching one.
53438
53439         update code-in-comment to accept cast of free arg
53440         * build-aux/useless-if-before-free: Update regexp.
53441
53442 2008-05-25  Bruno Haible  <bruno@clisp.org>
53443
53444         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
53445         * modules/copy-file-tests (Files, Makefile.am): Update.
53446         * tests/test-copy-file.c (func_test_copy): Update.
53447
53448 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
53449
53450         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
53451
53452 2008-05-23  Bruno Haible  <bruno@clisp.org>
53453
53454         Improve support for ACLs on OSF/1.
53455         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
53456         Remove fallback for unknown flavors of ACLs.
53457
53458 2008-05-22  Bruno Haible  <bruno@clisp.org>
53459
53460         Add support for ACLs on OSF/1.
53461         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
53462         replacements.
53463         (acl_free_text): New macro fallback.
53464         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
53465         acl_free.
53466         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
53467         acl_free_text function. Require AC_C_INLINE.
53468
53469 2008-05-22  Bruno Haible  <bruno@clisp.org>
53470
53471         Make copy_acl work on MacOS X 10.5.
53472         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
53473         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
53474         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
53475         If MODE_INSIDE_ACL, don't assume that every system has the same text
53476         representation for ACLs as FreeBSD.
53477         * lib/copy-acl.c (copy_acl): Add support for platforms with
53478         !MODE_INSIDE_ACL.
53479         * lib/file-has-acl.c (file_has_acl): Likewise.
53480         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
53481         FreeBSD, MacOS X, or IRIX, respectively.
53482
53483 2008-05-22  Bruno Haible  <bruno@clisp.org>
53484
53485         * lib/acl.h: Don't include <sys/acl.h>.
53486         (GETACLCNT): Move fallback to lib/acl-internal.h.
53487         * lib/acl-internal.h: Include <sys/acl.h> here.
53488         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
53489
53490 2008-05-22  Bruno Haible  <bruno@clisp.org>
53491
53492         Split off copy_acl function to separate file.
53493         * lib/copy-acl.c: New file, extracted from lib/acl.c.
53494         * lib/acl.c (copy_acl): Moved function to separate file.
53495         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
53496         * modules/acl (Files): Add lib/copy-acl.c.
53497         (Makefiles.am): Augment lib_SOURCES.
53498
53499 2008-05-22  Bruno Haible  <bruno@clisp.org>
53500
53501         * modules/copy-file-tests: New file.
53502         * tests/test-copy-file.sh: New file.
53503         * tests/test-copy-file.c: New file.
53504         * tests/test-copy-file-sameacls.c: New file.
53505
53506 2008-05-22  Eric Blake  <ebb9@byu.net>
53507
53508         Avoid gcc warning.
53509         * tests/test-memcmp.c (main): Pass NULL indirectly.
53510
53511 2008-05-21  Bruno Haible  <bruno@clisp.org>
53512
53513         Add reference doc about ACLs.
53514         * doc/acl-resources.txt: New file.
53515         * doc/acl-cygwin.txt: New file.
53516
53517 2008-05-21  Bruno Haible  <bruno@clisp.org>
53518
53519         Avoid one more warning from gcc.
53520         * lib/vasnprintf.c (IF_LINT): Update comments.
53521         (VASNPRINTF): Use it also for the 'prefix' array initializer.
53522
53523 2008-05-21  Jim Meyering  <meyering@redhat.com>
53524
53525         avoid a warning from gcc
53526         * lib/vasnprintf.c (IF_LINT): Define.
53527         (scale10_round_decimal_long_double):
53528         Use it to avoid a "may be used uninitialized" warning.
53529         (scale10_round_decimal_double): Likewise.
53530
53531 2008-05-21  Simon Josefsson  <simon@josefsson.org>
53532
53533         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
53534         declared.
53535
53536 2008-05-20  Bruno Haible  <bruno@clisp.org>
53537
53538         * tests/test-memcmp.c (main): Test also the sign of the result. Test
53539         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
53540
53541 2008-05-20  Simon Josefsson  <simon@josefsson.org>
53542
53543         * modules/memcmp-tests: New file.
53544         * tests/test-memcmp.c: New file.
53545
53546 2008-05-19  Bruno Haible  <bruno@clisp.org>
53547
53548         * modules/propername (Notice, configure.ac): Put quoted "..." into
53549         --keyword option.
53550         * lib/propername.h: Update comments accordingly.
53551         Reported by Eric Blake.
53552
53553 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
53554
53555         * modules/getpass-gnu (Depends-on): Add fseeko.
53556
53557 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53558
53559         * modules/base64-tests: New file.
53560
53561 2008-05-19  Bo Borgerson <gigabo@gmail.com>
53562
53563         * lib/base64.c (base64_decode_ctx): If a decode context structure
53564         was passed in use it to ignore newlines.  If a context structure
53565         was _not_ passed in, continue to treat newlines as garbage (this
53566         is the historical behavior).  Formerly base64_decode.
53567         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53568         takes a decode context structure.
53569         * lib/base64.h (base64_decode): Macro for four-argument calls.
53570         (base64_decode_alloc): Likewise.
53571         * lib/base64.c (base64_decode_ctx): If a decode context structure
53572         was passed in use it to ignore newlines.  If a context structure
53573         was _not_ passed in, continue to treat newlines as garbage (this
53574         is the historical behavior).  Formerly base64_decode.
53575         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
53576         takes a decode context structure.
53577         * lib/base64.h (base64_decode): Macro for four-argument calls.
53578         (base64_decode_alloc): Likewise.
53579
53580 2008-05-19  Jim Meyering  <meyering@redhat.com>
53581
53582         avoid a warning from gcc
53583         * lib/trim.c (IF_LINT): Define.
53584         (trim2): Use it to avoid a "may be used uninitialized" warning.
53585
53586         Fix doc typo.
53587         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
53588
53589 2008-05-19  Bruno Haible  <bruno@clisp.org>
53590
53591         * doc/glibc-functions/getpass.texi: Document limits of other
53592         implementations.
53593
53594 2008-05-19  Simon Josefsson  <simon@josefsson.org>
53595             Bruno Haible <bruno@clisp.org>
53596
53597         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
53598
53599 2008-05-18  Bruno Haible  <bruno@clisp.org>
53600
53601         * modules/propername: New file, from GNU gettext.
53602         * lib/propername.h: New file, from GNU gettext.
53603         * lib/propername.c: New file, from GNU gettext.
53604         * MODULES.html.sh (Internationalization functions): Add propername.
53605
53606 2008-05-16  Jim Meyering  <meyering@redhat.com>
53607             Bruno Haible  <bruno@clisp.org>
53608
53609         Avoid some warnings from "gcc -Wshadow".
53610         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
53611
53612 2008-05-15  Eric Blake  <ebb9@byu.net>
53613
53614         Extend previous patch to cygwin 1.7.0.
53615         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
53616         fast implementation in cygwin >= 1.7.0.
53617         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53618         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53619
53620 2008-05-15  Bruno Haible  <bruno@clisp.org>
53621
53622         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
53623         implementation in glibc >= 2.9.
53624         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
53625         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53626
53627 2008-05-15  Bruno Haible  <bruno@clisp.org>
53628
53629         * MODULES.html.sh (Internationalization functions): Remove linebreak.
53630         (Unicode string functions): Add unilbrk/*.
53631         Reported by Karl Berry.
53632
53633 2008-05-15  Eric Blake  <ebb9@byu.net>
53634
53635         Fix violation of <stdbool.h> replacement in regex.
53636         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
53637         * lib/regexec.c (re_search_internal): Likewise.
53638         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
53639
53640 2008-05-15  Jim Meyering  <meyering@redhat.com>
53641
53642         avoid distracting test output when git or cvs is not found
53643         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
53644         * tests/test-vc-list-files-git.sh: Likewise.
53645
53646 2008-05-15  Eric Blake  <ebb9@byu.net>
53647
53648         Glibc finally accepted the memmem speedup code, bugzilla #5514.
53649         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
53650         glibc version.
53651         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
53652         * doc/posix-functions/strstr.texi (strstr): Likewise.
53653         * lib/str-two-way.h (MAX): Sychronize with glibc.
53654
53655 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
53656
53657         * lib/regcomp.c (optimize_utf8): Add a note on why we test
53658         opr.ctx_type.
53659         (calc_first): Initialize constraint field.
53660         (duplicate_node_closure): Use it instead of special casing ANCHORS.
53661         Fix grammar.
53662         (duplicate_node): Merge constraint field for all node types.
53663         (calc_eclosure_iter): Look at constraint field for all node types.
53664         * lib/regex_internal.c (create_cd_newstate): Don't look at
53665         opr.ctx_type.
53666
53667 2008-05-14  Bruno Haible  <bruno@clisp.org>
53668
53669         Help GCC to do better code generation.
53670         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
53671         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
53672         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
53673         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
53674         Declare with attribute 'malloc' if supported.
53675
53676 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
53677
53678         use "echo STR|wc -c" rather than unportable "expr length STR"
53679         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
53680         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
53681
53682 2008-05-14  Jim Meyering  <meyering@redhat.com>
53683
53684         use dd ibs=$n count=1 ... rather than less-portable head -c$n
53685         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
53686         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
53687         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
53688         via Collin Lasse.
53689
53690 2008-05-14  Eric Blake  <ebb9@byu.net>
53691
53692         Avoid quadratic growth in gl_LIBSOURCES.
53693         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
53694         Suggested by Bruno Haible.
53695
53696         Test xmemdup0.
53697         * modules/xmemdup0-tests: New file.
53698         * tests/test-xmemdup0.c: Likewise.
53699
53700 2008-05-13  Eric Blake  <ebb9@byu.net>
53701
53702         Split xmemdup0 into its own module.
53703         * modules/xmemdup0: New file.
53704         * lib/xmemdup0.h: Likewise.
53705         * lib/xmemdup0.c: Likewise.
53706         * MODULES.html.sh (Memory management functions): Add xmemdup0.
53707         * lib/xalloc.h (xmemdup0): Remove.
53708         * lib/xmalloc.c (xmemdup0): Likewise.
53709
53710 2008-05-13  Eric Blake  <ebb9@byu.net>
53711             Bruno Haible  <bruno@clisp.org>
53712
53713         Reduce number of forks required during autoconf.
53714         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
53715         and gl_LIBSOURCES_DIR.
53716         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
53717         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
53718         m4_syscmd per file.
53719         <m4_foreach_w>: Move...
53720         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
53721
53722 2008-05-13  Eric Blake  <ebb9@byu.net>
53723
53724         * gnulib-tool: Fix various comment typos.
53725
53726 2008-05-12  Bruno Haible  <bruno@clisp.org>
53727
53728         Tailor the linebreaking algorithm.
53729         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
53730
53731 2008-05-12  Bruno Haible  <bruno@clisp.org>
53732
53733         Update to Unicode 5.0.0.
53734         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53735         LBP_JV, LBP_JT. Redistribute values.
53736         (unilbrk_table): Change size.
53737         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
53738         Unicode TR#14 rev. 22.
53739         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
53740         LBP_JV, LBP_JT. Redistribute values.
53741         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
53742         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
53743         Update.
53744         * lib/unilbrk/lbrkprop1.h: Regenerated.
53745         * lib/unilbrk/lbrkprop2.h: Regenerated.
53746         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
53747         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
53748         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
53749         Likewise.
53750         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
53751         Likewise.
53752         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
53753         result.
53754         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
53755         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
53756         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
53757         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
53758         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
53759         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
53760
53761 2008-05-11  Bruno Haible  <bruno@clisp.org>
53762
53763         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
53764
53765 2008-05-11  Bruno Haible  <bruno@clisp.org>
53766
53767         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
53768         * modules/unilbrk/gen-lbrk: New file.
53769
53770 2008-05-11  Bruno Haible  <bruno@clisp.org>
53771
53772         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
53773         * m4/sha512.m4 (gl_SHA512): Likewise.
53774
53775 2008-05-11  Jim Meyering  <meyering@redhat.com>
53776
53777         New modules: crypto/sha256, crypto/sha512 (from coreutils)
53778         * modules/crypto/sha256: New file.
53779         * modules/crypto/sha512: Likewise.
53780         * lib/sha256.c: Likewise.
53781         * lib/sha256.h: Likewise.
53782         * lib/sha512.c: Likewise.
53783         * lib/sha512.h: Likewise.
53784         * lib/u64.h: Likewise.
53785         * m4/sha256.m4: Likewise.
53786         * m4/sha512.m4: Likewise.
53787         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
53788
53789 2008-05-10  Bruno Haible  <bruno@clisp.org>
53790
53791         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
53792         (Input/Output <stdio.h>): Add xprintf.
53793         (Signal handling <signal.h>): Add strsignal.
53794         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
53795         (Core language properties): Add func.
53796         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
53797         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
53798         strings.
53799         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
53800         (Input/output): New section.
53801         (File system functions): Add openat-die, stat-macros.
53802         (Networking functions): Add sockets.
53803         (Unicode string functions): Add unictype/*.
53804         (Support for building libraries and executables): Add gperf.
53805         (Support for building documentation): Add agpl-3.0.
53806         (Misc): Add nocrash.
53807
53808 2008-05-10  Bruno Haible  <bruno@clisp.org>
53809
53810         * modules/unictype/gen-ctype: New file.
53811
53812 2008-05-10  Jim Meyering  <meyering@redhat.com>
53813
53814         Make chdir-safer.c more efficient on a system with no symlinks.
53815         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
53816         also if ELOOP is zero.  Suggested by Bruno Haible.
53817
53818         Make chdir-safer.c slightly safer.
53819         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
53820         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
53821
53822         Avoid compile failure on systems without ELOOP (like mingw).
53823         * lib/chdir-safer.c (ELOOP): Define if not already defined.
53824         Reported by Bruno Haible.
53825
53826 2008-05-10  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
53829         (is_utf8_encoding): Use a case-insensitive comparison.
53830         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
53831         streq.
53832
53833 2008-05-10  Bruno Haible  <bruno@clisp.org>
53834
53835         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
53836         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
53837         * lib/unilbrk/ulc-common.h (iconv_string_length,
53838         iconv_string_keeping_offsets): Remove declarations.
53839         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
53840         Don't include <iconv.h>, streq.h, xsize.h.
53841         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
53842         conversion.
53843         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
53844         <iconv.h>, streq.h, xsize.h.
53845         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
53846         conversion.
53847         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
53848         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
53849         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
53850         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
53851
53852 2008-05-10  Bruno Haible  <bruno@clisp.org>
53853
53854         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
53855         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
53856
53857         * modules/unilbrk/u32-width-linebreaks-tests: New file.
53858         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
53859
53860         * modules/unilbrk/u16-width-linebreaks-tests: New file.
53861         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
53862
53863         * modules/unilbrk/u8-width-linebreaks-tests: New file.
53864         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
53865
53866         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
53867         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
53868
53869         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
53870         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
53871
53872         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
53873         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
53874
53875         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
53876         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
53877
53878 2008-05-10  Bruno Haible  <bruno@clisp.org>
53879
53880         Split up 'linebreak' module.
53881         * lib/unilbrk.h: New file, based on lib/linebreak.h.
53882         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
53883         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
53884         modifications.
53885         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
53886         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
53887         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
53888         lib/linebreak.c.
53889         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
53890         lib/linebreak.c.
53891         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
53892         lib/linebreak.c.
53893         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
53894         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
53895         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
53896         lib/linebreak.c.
53897         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
53898         lib/linebreak.c.
53899         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
53900         lib/linebreak.c.
53901         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
53902         lib/linebreak.c.
53903         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
53904         lib/linebreak.c.
53905         * modules/unilbrk/base: New file.
53906         * modules/unilbrk/tables: New file.
53907         * modules/unilbrk/u8-possible-linebreaks: New file.
53908         * modules/unilbrk/u16-possible-linebreaks: New file.
53909         * modules/unilbrk/u32-possible-linebreaks: New file.
53910         * modules/unilbrk/ulc-common: New file.
53911         * modules/unilbrk/ulc-possible-linebreaks: New file.
53912         * modules/unilbrk/u8-width-linebreaks: New file.
53913         * modules/unilbrk/u16-width-linebreaks: New file.
53914         * modules/unilbrk/u32-width-linebreaks: New file.
53915         * modules/unilbrk/ulc-width-linebreaks: New file.
53916         * lib/linebreak.h: Remove file.
53917         * lib/linebreak.c: Remove file.
53918         * m4/linebreak.m4: Remove file.
53919         * modules/linebreak: Remove file.
53920         * NEWS: Mention the changes.
53921
53922 2008-05-09  Eric Blake  <ebb9@byu.net>
53923
53924         Add xmemdup0.
53925         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
53926         implementation.
53927         * lib/xmalloc.c (xmemdup0): New C implementation.
53928
53929 2008-05-08  Bruno Haible  <bruno@clisp.org>
53930
53931         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
53932
53933 2008-05-07  Eric Blake  <ebb9@byu.net>
53934
53935         Support cross-compilation of <wctype.h>.
53936         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
53937         AC_CACHE_CHECK.
53938
53939 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
53940
53941         * build-aux/vc-list-files: Add support for bzr.
53942
53943 2008-05-03  Jim Meyering  <meyering@redhat.com>
53944
53945         avoid failed assertion with tight malloc
53946         * tests/test-getndelim2.c: Correct an off-by-one assertion.
53947
53948 2008-05-03  Simon Josefsson  <simon@josefsson.org>
53949
53950         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
53951         are needed from arpa/inet.h.
53952         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
53953         Reported by Bruno Haible.
53954
53955 2008-05-02  Jim Meyering  <meyering@redhat.com>
53956
53957         avoid compilation error on FreeBSD 6
53958         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
53959
53960 2008-05-01  Jim Meyering  <meyering@redhat.com>
53961
53962         useless-if-before-free: correct --help's exit status description
53963         * build-aux/useless-if-before-free (usage): Like grep, exit 0
53964         for one or more matches, etc.  Reported by Bruno Haible.
53965
53966         vc-list-files: make the stand-alone gnulib test work
53967         * modules/vc-list-files-tests (configure.ac):
53968         Define and AC_SUBST abs_aux_dir.
53969         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
53970         $(abs_top_srcdir) to each script and having each of them
53971         duplicate the work of setting PATH, set PATH here, using
53972         the new variable, abs_aux_dir instead.
53973         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
53974         * tests/test-vc-list-files-git.sh: Likewise.
53975         Reported by Bruno Haible.
53976
53977 2008-05-01  Bruno Haible  <bruno@clisp.org>
53978
53979         * lib/getndelim2.c (getndelim2): Fix newsize computation during
53980         reallocation. Rename 'done' to 'found_delimiter'.
53981
53982 2008-05-01  Jim Meyering  <meyering@redhat.com>
53983
53984         vc-list-files: accommodate /bin/sh like the one from Solaris 10
53985         * build-aux/vc-list-files: Use `...`, not $(...).
53986
53987 2008-04-30  Jim Meyering  <meyering@redhat.com>
53988
53989         add tests for vc-list-files
53990         * modules/vc-list-files-tests: New module.
53991         * tests/test-vc-list-files-cvs.sh: New file.
53992         * tests/test-vc-list-files-git.sh: New file.
53993
53994         avoid a warning from gcc
53995         * lib/getndelim2.c (IF_LINT): Define.
53996         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
53997
53998         vc-list-files: work properly with build-aux/cvsu, too
53999         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54000         to all cvs-based clauses.
54001
54002         vc-list-files: work properly in the CVS+awk case, too
54003         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54004
54005         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54006         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54007         take more than one file argument, so .  Add quotes, just in case $dir
54008         ever contains a shell meta-character.  Prompted by Soren Hansen in
54009         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54010
54011 2008-04-29  Eric Blake  <ebb9@byu.net>
54012
54013         Optimize getndelim2 to use block operations when possible.
54014         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54015         freadseek, and memchr2.
54016         * lib/getndelim2.c (getndelim2): Use them for block reads.
54017
54018 2008-04-29  Bruno Haible  <bruno@clisp.org>
54019
54020         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54021         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54022         * modules/inet_ntop (Depends-on): Add extensions.
54023         * modules/inet_pton (Depends-on): Likewise.
54024         Reported by Simon Josefsson.
54025
54026 2008-04-29  Jim Meyering  <meyering@redhat.com>
54027
54028         When the is more than one match in a block, match all of them.
54029         * build-aux/useless-if-before-free: Iterate through each block
54030         until there are no more matches.
54031
54032         Fix broken useless-if-before-free script.
54033         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54034         the expression to match cast of argument to free-like function.
54035
54036 2008-04-29  Eric Blake  <ebb9@byu.net>
54037
54038         Use new header.
54039         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54040
54041 2008-04-29  Jim Meyering  <meyering@redhat.com>
54042
54043         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54044         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54045         by gnulib to exist and to declare e.g., inet_ntop.
54046         Don't include "inet_ntop.h", now removed.
54047
54048         * m4/arpa_inet_h.m4: Remove trailing blanks.
54049
54050 2008-04-29  Eric Blake  <ebb9@byu.net>
54051
54052         Silence valgrind on safe reads beyond potential array bounds.
54053         * lib/rawmemchr.valgrind: New file.
54054         * lib/strchrnul.valgrind: Likewise.
54055         * modules/rawmemchr (Files): Distribute new file.
54056         * modules/strchrnul (Files): Likewise.
54057         Suggested by Bruno Haible.
54058
54059 2008-04-29  Bruno Haible  <bruno@clisp.org>
54060
54061         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54062         (inet_ntop, inet_pton): Change portability warning's wording.
54063         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54064         Invoke gl_CHECK_NEXT_HEADERS.
54065         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54066         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54067         set ARPA_INET_H.
54068         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54069         * modules/arpa_inet (Description): No longer only for systems that
54070         lack it.
54071         (Depends-on): Add include_next.
54072         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54073         HAVE_ARPA_INET_H.
54074
54075 2008-04-29  Jim Meyering  <meyering@redhat.com>
54076
54077         * modules/mkdir (License): Re-license as LGPLv2+.
54078
54079 2008-04-29  Bruno Haible  <bruno@clisp.org>
54080
54081         * modules/rawmemchr (Maintainer): Set to Eric.
54082         * modules/strchrnul (Maintainer): Likewise.
54083
54084 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54085
54086         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54087         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54088
54089         * modules/arpa_inet (arpa/inet.h): Use them.
54090
54091 2008-04-28  Eric Blake  <ebb9@byu.net>
54092
54093         Test getndelim2.
54094         * modules/getndelim2-tests: New file.
54095         * tests/test-getndelim2.c: Likewise.
54096         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54097         stream.
54098         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54099
54100         * MODULES.html.sh: Document new module.
54101
54102 2008-04-20  Bruno Haible  <bruno@clisp.org>
54103
54104         * lib/c-stack.c (die): Use raise.
54105         * modules/c-stack (Depends-on): Add raise.
54106
54107 2008-04-28  Bruno Haible  <bruno@clisp.org>
54108
54109         Expect rpmatch to be declared.
54110         * lib/yesno.c (rpmatch): Remove declaration.
54111
54112         Declare rpmatch.
54113         * lib/stdlib.in.h (rpmatch): New declaration.
54114         * lib/rpmatch.c: Include <stdlib.h> first.
54115         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54116         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54117         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54118         HAVE_RPMATCH.
54119         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54120         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54121         (Include): Set to <stdlib.h>.
54122         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54123         HAVE_RPMATCH.
54124         * NEWS: Document the change.
54125
54126 2008-04-28  Bruno Haible  <bruno@clisp.org>
54127
54128         Change rpmatch to use nl_langinfo when appropriate.
54129         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54130         (N_): New macro.
54131         (localized_pattern): New function/macro.
54132         (try): Remove match, nomatch arguments. Copy the pattern into safe
54133         memory before caching it.
54134         (rpmatch): Use localized_pattern. Add translator comments.
54135         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54136         Suggested by Eric Blake.
54137         * modules/rpmatch (Depends-on): Add stdbool.
54138
54139 2008-04-28  Eric Blake  <ebb9@byu.net>
54140
54141         Add rawmemchr module, matching glibc.
54142         * modules/string (Makefile.am): New indicator.
54143         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54144         * lib/string.in.h (rawmemchr): Declare when appropriate.
54145         * modules/rawmemchr: New file.
54146         * m4/rawmemchr.m4: Likewise.
54147         * lib/rawmemchr.c: Likewise.
54148         * modules/rawmemchr-tests: Likewise.
54149         * tests/test-rawmemchr.c: Likewise.
54150         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54151         module.
54152         * modules/strchrnul (Depends-on): Add rawmemchr.
54153         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54154
54155         Whitespace cleanup.
54156         * tests/test-strchrnul.c: Reindent.
54157         * lib/strchrnul.c: Likewise.
54158
54159         Optimize and test strchrnul.
54160         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54161         * modules/strchrnul-tests: New file.
54162         * tests/test-strchrnul.c: Likewise.
54163
54164         Remove intprops dependency.
54165         * modules/memchr (Depends-on): Remove intprops.
54166         * modules/memrchr (Depends-on): Likewise.
54167         * modules/memchr2 (Depends-on): Likewise.
54168         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54169         * lib/memrchr.c (__memrchr): Likewise.
54170         * lib/memrchr2.c (memchr2): Likewise.
54171         Reported by Simon Josefsson.
54172
54173 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54174
54175         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54176         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54177
54178 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54179
54180         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54181
54182         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54183
54184         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54185
54186         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54187         declarations.
54188         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54189
54190         * m4/inet_pton.m4: Don't check for header files.
54191
54192         * m4/inet_ntop.m4: Don't check for header files.
54193
54194 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54195
54196         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54197         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54198         trigger for cygwin).
54199         Reported by Bruno Haible  <bruno@clisp.org>.
54200
54201 2008-04-28  Bruno Haible  <bruno@clisp.org>
54202
54203         * doc/posix-functions/strdup.texi: Mention mingw problem.
54204
54205 2008-04-27  Bruno Haible  <bruno@clisp.org>
54206
54207         * modules/stat-time-tests (Depends-on): Add sleep.
54208         * tests/test-stat-time.c (force_unlink): New function.
54209         (cleanup): Use it.
54210         (test_mtime): Remove the ctime related tests.
54211         (test_ctime): New function, containing the ctime related tests.
54212         (main): Call test_ctime, except on native Windows platforms.
54213
54214 2008-04-27  Bruno Haible  <bruno@clisp.org>
54215
54216         * lib/rpmatch.c (rpmatch): Add some comments.
54217         Reported by James Youngman <jay@gnu.org>.
54218
54219 2008-04-27  Bruno Haible  <bruno@clisp.org>
54220
54221         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54222         quiet NaNs.
54223
54224 2008-04-27  Bruno Haible  <bruno@clisp.org>
54225
54226         Make test-yesno.sh work on mingw.
54227         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54228         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54229         (main): Set stdin to binary mode.
54230         * modules/yesno-tests (Depends-on): Add binary-io.
54231
54232 2008-04-27  Bruno Haible  <bruno@clisp.org>
54233
54234         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54235         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54236         argument that lie outside the IEEE 854 domain.
54237         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54238         (gl_ISFINITE): Use it.
54239         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54240
54241 2008-04-27  Bruno Haible  <bruno@clisp.org>
54242
54243         Allow local renaming in config.h.
54244         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54245
54246 2008-04-27  Bruno Haible  <bruno@clisp.org>
54247
54248         * lib/memchr.c (__memchr): Change type of 'i'.
54249         * lib/memchr2.c (memchr2): Likewise.
54250
54251 2008-04-26  Eric Blake  <ebb9@byu.net>
54252         and Bruno Haible  <bruno@clisp.org>
54253
54254         Optimize and test memrchr.
54255         * modules/memrchr (Depends-on): Add intprops.
54256         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54257         * modules/memrchr-tests: New file.
54258         * tests/test-memrchr.c: New file.
54259
54260 2008-04-26  Bruno Haible  <bruno@clisp.org>
54261
54262         Add tentative support for DragonFly BSD.
54263         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54264         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54265         fp.
54266         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54267         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54268         * lib/fpurge.c (fpurge): Likewise.
54269         * lib/freadable.c (freaadable): Likewise.
54270         * lib/freadahead.c (freadahead): Likewise.
54271         * lib/freading.c (freading): Likewise.
54272         * lib/freadptr.c (freadptr): Likewise.
54273         * lib/freadseek.c (freadptrinc): Likewise.
54274         * lib/fseeko.c (fseeko): Likewise.
54275         * lib/fseterr.c (fseterr): Likewise.
54276         * lib/fwritable.c (fwritable): Likewise.
54277         * lib/fwriting.c (fwriting): Likewise.
54278
54279 2008-04-26  Bruno Haible  <bruno@clisp.org>
54280
54281         * lib/stdio-impl.h: New file.
54282         * lib/fbufmode.c: Include stdio-impl.h.
54283         (fbufmode): Use fp_, remove redundant #defines.
54284         * lib/fflush.c: Include stdio-impl.h.
54285         (clear_ungetc_buffer): Remove redundant #defines.
54286         * lib/fpurge.c: Include stdio-impl.h.
54287         (fpurge): Remove redundant #defines.
54288         * lib/freadable.c: Include stdio-impl.h.
54289         (freadable): Remove redundant #defines.
54290         * lib/freadahead.c: Include stdio-impl.h.
54291         (freadahead): Remove redundant #defines.
54292         * lib/freading.c: Include stdio-impl.h.
54293         (freading): Remove redundant #defines.
54294         * lib/freadptr.c: Include stdio-impl.h.
54295         (freadptr): Remove redundant #defines.
54296         * lib/freadseek.c: Include stdio-impl.h.
54297         (freadptrinc): Remove redundant #defines.
54298         * lib/fseeko.c: Include stdio-impl.h.
54299         (rpl_fseeko): Remove redundant #defines.
54300         * lib/fseterr.c: Include stdio-impl.h.
54301         (fseterr): Remove redundant #defines.
54302         * lib/fwritable.c: Include stdio-impl.h.
54303         (fwritable: Remove redundant #defines.
54304         * lib/fwriting.c: Include stdio-impl.h.
54305         (fwriting): Remove redundant #defines.
54306         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54307         * modules/fflush (Files): Likewise.
54308         * modules/fpurge (Files): Likewise.
54309         * modules/freadable (Files): Likewise.
54310         * modules/freadahead (Files): Likewise.
54311         * modules/freading (Files): Likewise.
54312         * modules/freadptr (Files): Likewise.
54313         * modules/freadseek (Files): Likewise.
54314         * modules/fseeko (Files): Likewise.
54315         * modules/fseterr (Files): Likewise.
54316         * modules/fwritable (Files): Likewise.
54317         * modules/fwriting (Files): Likewise.
54318
54319 2008-04-26  Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54322         restore_seek_optimization, update_fpos_cache): New functions, extracted
54323         from rpl_fflush.
54324         (rpl_fflush): Use them.
54325         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54326         (gl_REPLACE_FFLUSH): Use it.
54327
54328 2008-04-26  Bruno Haible  <bruno@clisp.org>
54329
54330         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54331         on Solaris.
54332         * tests/test-xstrtoimax.sh: Likewise.
54333         * tests/test-xstrtoumax.sh: Likewise.
54334         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54335
54336 2008-04-26  Bruno Haible  <bruno@clisp.org>
54337
54338         * modules/memchr-tests: New file.
54339         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54340
54341 2008-04-26  Eric Blake  <ebb9@byu.net>
54342             Bruno Haible  <bruno@clisp.org>
54343
54344         * lib/memchr.c: Include intprops.h.
54345         (__memchr): Optimize parallel detection of matching bytes. Rename local
54346         variables. Add explanatory comments.
54347
54348 2008-04-26  Bruno Haible  <bruno@clisp.org>
54349
54350         Fix module 'memchr', broken since 2000-10-28.
54351         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54352
54353 2008-04-26  Bruno Haible  <bruno@clisp.org>
54354
54355         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54356         comments.
54357
54358 2008-04-25  Eric Blake  <ebb9@byu.net>
54359
54360         Use native fstatat on cygwin 1.7.0.
54361         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54362         first.
54363
54364 2008-04-23  Eric Blake  <ebb9@byu.net>
54365
54366         Improve memchr2 performance.
54367         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54368         NUL bytes.
54369         * modules/memchr2 (Depends-on): Use intprops.h.
54370
54371 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54372
54373         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54374         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54375         <blp@cs.stanford.edu>.
54376
54377 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54378
54379         * lib/arpa_inet.in.h: New file.
54380
54381         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54382         (Makefile.am): Sed in substitute header file.
54383
54384         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54385         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54386
54387         * modules/inet_ntop (configure.ac): Use
54388         gl_ARPA_INET_MODULE_INDICATOR.
54389
54390         * modules/inet_pton (configure.ac): Use
54391         gl_ARPA_INET_MODULE_INDICATOR.
54392
54393 2008-04-22  Jim Meyering  <meyering@redhat.com>
54394
54395         * modules/verify (License): Re-license as LGPLv2+.
54396
54397 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54398
54399         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54400         parameter to void* as per POSIX standard (MinGW uses char*).
54401
54402 2008-04-21  Bruno Haible  <bruno@clisp.org>
54403
54404         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54405         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54406         Define to replacements if REPLACE_ISWCNTRL is 1.
54407         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54408         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54409         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54410         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54411         what it fixes.
54412         * doc/posix-functions/iswalpha.texi: Likewise.
54413         * doc/posix-functions/iswblank.texi: Likewise.
54414         * doc/posix-functions/iswcntrl.texi: Likewise.
54415         * doc/posix-functions/iswdigit.texi: Likewise.
54416         * doc/posix-functions/iswgraph.texi: Likewise.
54417         * doc/posix-functions/iswlower.texi: Likewise.
54418         * doc/posix-functions/iswprint.texi: Likewise.
54419         * doc/posix-functions/iswpunct.texi: Likewise.
54420         * doc/posix-functions/iswspace.texi: Likewise.
54421         * doc/posix-functions/iswupper.texi: Likewise.
54422         * doc/posix-functions/iswxdigit.texi: Likewise.
54423         Reported by Alain Guibert.
54424
54425 2008-04-21  Bruno Haible  <bruno@clisp.org>
54426
54427         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54428         Patch by Alain Guibert.
54429
54430 2008-04-21  Bruno Haible  <bruno@clisp.org>
54431
54432         Fix test failures on mingw.
54433         * tests/test-xstrtol.c (print_no_progname): New function.
54434         (main): Install it in error_print_progname hook.
54435         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54436         * tests/test-xstrtoimax.sh: Likewise.
54437         * tests/test-xstrtoumax.sh: Likewise.
54438
54439 2008-04-21  Bruno Haible  <bruno@clisp.org>
54440
54441         Fix test failure on mingw.
54442         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
54443
54444 2008-04-21  Bruno Haible  <bruno@clisp.org>
54445
54446         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
54447         Actually assign a value.
54448
54449 2008-04-20  Bruno Haible  <bruno@clisp.org>
54450
54451         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
54452         take 2.
54453         * lib/canonicalize.c (canonicalize_file_name): Elide if the
54454         'canonicalize-lgpl' module is also used.
54455         * lib/canonicalize-lgpl.c: Undo last change.
54456         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
54457
54458 2008-04-20  Bruno Haible  <bruno@clisp.org>
54459
54460         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
54461         config.h. Provide _mkdir based fallback for mingw.
54462         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
54463         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
54464         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
54465         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
54466         rather than defining mkdir in config.h.
54467         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
54468         (gl_SYS_STAT_H_DEFAULTS): New macro.
54469         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
54470         HAVE_IO_H any more.
54471         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
54472         HAVE_DECL_MKDIR and HAVE_IO_H.
54473
54474 2008-04-20  Bruno Haible  <bruno@clisp.org>
54475
54476         * lib/isapipe.c: Port to native Windows platforms.
54477
54478 2008-04-20  Bruno Haible  <bruno@clisp.org>
54479
54480         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
54481
54482 2008-04-21  Eric Blake  <ebb9@byu.net>
54483
54484         Work around preprocessors that don't handle UINTMAX_MAX.
54485         * lib/memchr2.c (memchr2): Avoid embedded #if.
54486         Reported by Alain Guibert, fix suggested by Bruno Haible.
54487
54488 2008-04-21  Simon Josefsson  <simon@josefsson.org>
54489
54490         * doc/posix-functions/strftime.texi (strftime): Explain better
54491         Windows incompatibility.  Suggested by Micah Cowan
54492         <micah@cowan.name>.
54493
54494 2008-04-20  Bruno Haible  <bruno@clisp.org>
54495
54496         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
54497         unistr/u8-mblen.
54498
54499 2008-04-20  Bruno Haible  <bruno@clisp.org>
54500
54501         Fix test failure on platforms with non-GNU iconv.
54502         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
54503         (U_TO_U8): Use it, rather than u16_to_u8.
54504         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
54505         units at the end of the input string.
54506         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
54507
54508 2008-04-20  Bruno Haible  <bruno@clisp.org>
54509
54510         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
54511         when the resulting length is 0.
54512         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
54513
54514 2008-04-20  Bruno Haible  <bruno@clisp.org>
54515
54516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
54517         works.
54518         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
54519
54520 2008-04-20  Bruno Haible  <bruno@clisp.org>
54521
54522         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
54523         * modules/tsearch-tests (configure.ac): Test for initstate function.
54524
54525 2008-04-20  Bruno Haible  <bruno@clisp.org>
54526
54527         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
54528         for nlink_t if missing.
54529         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
54530
54531 2008-04-19  Bruno Haible  <bruno@clisp.org>
54532
54533         Work around snprintf bug on Linux libc5.
54534         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
54535         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
54536         gl_SNPRINTF_SIZE1.
54537         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54538         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
54539         that test failed.
54540         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
54541         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
54542         * modules/snprintf (Files): Add m4/printf.m4.
54543         * modules/vsnprintf (Files): Likewise.
54544         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
54545         * doc/posix-functions/vsnprintf.texi: Likewise.
54546
54547 2008-04-19  Bruno Haible  <bruno@clisp.org>
54548
54549         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
54550         from 0.0058 to less than 10^-7.
54551
54552 2008-04-19  Bruno Haible  <bruno@clisp.org>
54553
54554         Fix rounding when a precision is given.
54555         * lib/vasnprintf.c (is_borderline): New function.
54556         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
54557         9...9x.
54558         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
54559         %e, %g.
54560         * tests/test-vasprintf-posix.c (test_function): Likewise.
54561         * tests/test-snprintf-posix.h (test_function): Likewise.
54562         * tests/test-sprintf-posix.h (test_function): Likewise.
54563         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
54564         * tests/test-printf-posix.h (test_function): Likewise.
54565         * tests/test-printf-posix.output: Update.
54566         Reported by John Darrington <john@darrington.wattle.id.au> via
54567         Ben Pfaff <blp@cs.stanford.edu>.
54568
54569 2008-04-18  Simon Josefsson  <simon@josefsson.org>
54570
54571         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
54572         Suggested by Bruno Haible <bruno@clisp.org>.
54573
54574 2008-04-17  Bruno Haible  <bruno@clisp.org>
54575
54576         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
54577         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
54578         implementation.
54579         Patch by Bruce Merry <bmerry@gmail.com>.
54580
54581 2008-04-17  Simon Josefsson  <simon@josefsson.org>
54582
54583         * doc/posix-functions/strftime.texi (strftime): Mention that %e
54584         doesn't work under Windows.
54585
54586 2008-04-16  Bruno Haible  <bruno@clisp.org>
54587
54588         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
54589         New macros.
54590         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
54591         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
54592         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
54593         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
54594         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
54595         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
54596         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
54597         macros.
54598         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
54599         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
54600         Northern Sotho, Uighur.
54601
54602 2008-04-16  Bruno Haible  <bruno@clisp.org>
54603
54604         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
54605         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
54606         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
54607         Reported by Daniel Bergström <daniel@octocode.com>.
54608
54609 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
54610             Bruno Haible  <bruno@clisp.org>
54611
54612         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
54613         function.
54614         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
54615         New functions, mostly extracted from gl_locale_name_default.
54616         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
54617
54618 2008-04-16  Eric Blake  <ebb9@byu.net>
54619
54620         Adjust strtod detection to catch glibc 2.7 bug.
54621         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
54622         Reported by John Gatewood Ham.
54623
54624 2008-04-16  Bruno Haible  <bruno@clisp.org>
54625
54626         Add tentative support for Linux libc5.
54627         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
54628         * lib/fpurge.c (fpurge): Likewise.
54629         * lib/freadable.c (freadable): Likewise.
54630         * lib/freadahead.c (freadahead): Likewise.
54631         * lib/freading.c (freading): Likewise.
54632         * lib/freadptr.c (freadptr): Likewise.
54633         * lib/freadseek.c (freadptrinc): Likewise.
54634         * lib/fseeko.c (rpl_fseeko): Likewise.
54635         * lib/fseterr.c (fseterr): Likewise.
54636         * lib/fwritable.c (fwritable): Likewise.
54637         * lib/fwriting.c (fwriting): Likewise.
54638         Reported by Alain Guibert <alguibert+bts@free.fr>.
54639
54640 2008-04-15  Bruno Haible  <bruno@clisp.org>
54641
54642         * modules/mathl (configure.ac): Define module indicator.
54643
54644 2008-04-15  Bruno Haible  <bruno@clisp.org>
54645
54646         * lib/logl.c (logl): Remove unused variables.
54647
54648 2008-04-15  Bruno Haible  <bruno@clisp.org>
54649
54650         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
54651         fails.
54652
54653 2008-04-15  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/trim.c (trim2): Fix argument of isspace() macro.
54656
54657 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
54658
54659         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
54660         to 0.
54661         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
54662
54663 2008-04-14  Bruno Haible  <bruno@clisp.org>
54664
54665         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
54666         AC_LANG_PROGRAM argument.
54667         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
54668         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
54669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
54670         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54671         * m4/math_h.m4 (gl_MATH_H): Likewise.
54672         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
54673         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
54674         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54675         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
54676         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54677         * m4/regex.m4 (gl_REGEX): Likewise.
54678         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
54679         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
54680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54681         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
54682         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
54683         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54684         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54685         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54686
54687 2008-04-14  Jim Meyering  <meyering@redhat.com>
54688
54689         test-strtod: fix typos: s/abs/fabs/
54690         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
54691
54692 2008-04-13  Bruno Haible  <bruno@clisp.org>
54693
54694         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
54695         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
54696         module is also used and while not building the reloc-wrapper.
54697
54698 2008-04-13  Bruno Haible  <bruno@clisp.org>
54699
54700         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
54701
54702 2008-04-13  Bruno Haible  <bruno@clisp.org>
54703
54704         Fix AIX compilation failure introduced on 2008-04-02.
54705         * tests/test-frexp.c (exp): Undefine before redefining.
54706         * tests/test-frexpl.c (exp): Likewise.
54707
54708 2008-04-13  Bruno Haible  <bruno@clisp.org>
54709
54710         Work around a HP-UX stdio bug.
54711         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
54712         * tests/test-ftello.c (main): Likewise.
54713         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
54714         * doc/posix-functions/ftello.texi: Likewise.
54715
54716 2008-04-13  Bruno Haible  <bruno@clisp.org>
54717
54718         Make test-signbit pass on HP-UX/hppa.
54719         * tests/test-signbit.c (minus_zerol): New variable.
54720         (test_signbitl): Use it.
54721
54722 2008-04-13  Bruno Haible  <bruno@clisp.org>
54723
54724         Make truncl work on OSF/1 4.0.
54725         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
54726         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54727         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
54728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
54729         HAVE_DECL_TRUNCL.
54730         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
54731         HAVE_DECL_TRUNCL.
54732         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
54733
54734 2008-04-13  Bruno Haible  <bruno@clisp.org>
54735
54736         * lib/unictype.h: Remove trailing comma from enumeration definitions.
54737
54738 2008-04-13  Bruno Haible  <bruno@clisp.org>
54739
54740         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
54741         expression, so as to avoid HP-UX 11 cc compiler bug.
54742
54743 2008-04-13  Bruno Haible  <bruno@clisp.org>
54744
54745         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
54746
54747 2008-04-13  Bruno Haible  <bruno@clisp.org>
54748
54749         * lib/git-merge-changelog.c: Remove empty declaration outside of
54750         functions.
54751
54752 2008-04-13  Bruno Haible  <bruno@clisp.org>
54753
54754         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
54755
54756 2008-04-13  Bruno Haible  <bruno@clisp.org>
54757
54758         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
54759         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
54760         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
54761         also if it exists but lacks definitions of the SHUT_* macros.
54762         * modules/sys_socket (Description): Update.
54763         Reported by Elbert Pol <e.pol@chello.nl>.
54764
54765 2008-04-13  Bruno Haible  <bruno@clisp.org>
54766
54767         * lib/localcharset.c (OS2): Don't redefine if already defined.
54768         Reported by Elbert Pol <e.pol@chello.nl>.
54769
54770 2008-04-13  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/binary-io.h [__EMX__]: Include <io.h>.
54773         Reported by Elbert Pol <e.pol@chello.nl>.
54774
54775 2008-04-12  Bruno Haible  <bruno@clisp.org>
54776
54777         * lib/fpucw.h: Enable the definitions also for x86_64.
54778         Needed for NetBSD/x86_64.
54779         Reported by Thomas Klausner <tk@giga.or.at>.
54780
54781 2008-04-12  Bruno Haible  <bruno@clisp.org>
54782
54783         * tests/test-strtod.c: Include isnand.h.
54784         (main): Use isnand instead of isnan.
54785         Reported by Jim Meyering.
54786
54787 2008-04-12  Bruno Haible  <bruno@clisp.org>
54788
54789         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
54790         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
54791
54792 2008-04-12  Jim Meyering  <meyering@redhat.com>
54793
54794         * m4/math_h.m4 (gl_MATH_H): Fix typos.
54795
54796 2008-04-12  Bruno Haible  <bruno@clisp.org>
54797
54798         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
54799         Reported by Elbert Pol <e.pol@chello.nl>.
54800
54801 2008-04-12  Eric Blake  <ebb9@byu.net>
54802
54803         Work around Solaris 10 math.h bug.
54804         * m4/math_h.m4 (gl_MATH_H): Check for bug.
54805         (gl_MATH_H_DEFAULTS): Set up default.
54806         * modules/math (Makefile.am): Replace new indicators.
54807         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
54808         * tests/test-math.c (main): Test this.
54809         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
54810         * doc/posix-headers/math.texi (math.h): Mention bug.
54811         Reported by Nelson H. F. Beebe and Jim Meyering.
54812
54813 2008-04-11  Bruno Haible  <bruno@clisp.org>
54814
54815         Adapt to future versions of Apple GCC.
54816         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
54817         Reported by Peter O'Gorman <peter@pogma.com>.
54818
54819 2008-04-11  Bruno Haible  <bruno@clisp.org>
54820
54821         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
54822
54823 2008-04-11  Bruno Haible  <bruno@clisp.org>
54824
54825         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
54826
54827         * modules/getaddrinfo-tests (Makefile.am): Define
54828         test_getaddrinfo_LDADD.
54829
54830 2008-04-11  Bruno Haible  <bruno@clisp.org>
54831
54832         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
54833         (init): Fix syntax error.
54834         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
54835         is declared.
54836
54837 2008-04-11  Bruno Haible  <bruno@clisp.org>
54838
54839         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
54840         * modules/glob (Depends-on): Add stdbool.
54841
54842 2008-04-11  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/trim.c: Include <string.h>.
54845
54846 2008-04-11  Eric Blake  <ebb9@byu.net>
54847
54848         Avoid compile failure on OS/2.
54849         * lib/regex_internal.h (internal_function): Disable optimization
54850         on OS/2 (__EMX__), where it caused compiler error.
54851         Reported by Elbert Pol.
54852
54853 2008-04-11  Bruno Haible  <bruno@clisp.org>
54854
54855         Flush the standard error stream before aborting. Needed on mingw.
54856         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
54857         * tests/test-array_list.c (ASSERT): Likewise.
54858         * tests/test-array_oset.c (ASSERT): Likewise.
54859         * tests/test-avltree_list.c (ASSERT): Likewise.
54860         * tests/test-avltree_oset.c (ASSERT): Likewise.
54861         * tests/test-avltreehash_list.c (ASSERT): Likewise.
54862         * tests/test-binary-io.c (ASSERT): Likewise.
54863         * tests/test-byteswap.c (ASSERT): Likewise.
54864         * tests/test-c-ctype.c (ASSERT): Likewise.
54865         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
54866         * tests/test-c-strcasestr.c (ASSERT): Likewise.
54867         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
54868         * tests/test-c-strstr.c (ASSERT): Likewise.
54869         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
54870         * tests/test-canonicalize.c (ASSERT): Likewise.
54871         * tests/test-carray_list.c (ASSERT): Likewise.
54872         * tests/test-ceilf1.c (ASSERT): Likewise.
54873         * tests/test-ceilf2.c (ASSERT): Likewise.
54874         * tests/test-ceill.c (ASSERT): Likewise.
54875         * tests/test-count-one-bits.c (ASSERT): Likewise.
54876         * tests/test-fbufmode.c (ASSERT): Likewise.
54877         * tests/test-fflush2.c (ASSERT): Likewise.
54878         * tests/test-floorf1.c (ASSERT): Likewise.
54879         * tests/test-floorf2.c (ASSERT): Likewise.
54880         * tests/test-floorl.c (ASSERT): Likewise.
54881         * tests/test-fopen.c (ASSERT): Likewise.
54882         * tests/test-fpending.c (ASSERT): Likewise.
54883         * tests/test-fprintf-posix.c (ASSERT): Likewise.
54884         * tests/test-fpurge.c (ASSERT): Likewise.
54885         * tests/test-freadable.c (ASSERT): Likewise.
54886         * tests/test-freadahead.c (ASSERT): Likewise.
54887         * tests/test-freading.c (ASSERT): Likewise.
54888         * tests/test-freadptr.c (ASSERT): Likewise.
54889         * tests/test-freadptr2.c (ASSERT): Likewise.
54890         * tests/test-freadseek.c (ASSERT): Likewise.
54891         * tests/test-freopen.c (ASSERT): Likewise.
54892         * tests/test-frexp.c (ASSERT): Likewise.
54893         * tests/test-frexpl.c (ASSERT): Likewise.
54894         * tests/test-fseek.c (ASSERT): Likewise.
54895         * tests/test-fseeko.c (ASSERT): Likewise.
54896         * tests/test-fstrcmp.c (ASSERT): Likewise.
54897         * tests/test-ftell.c (ASSERT): Likewise.
54898         * tests/test-ftello.c (ASSERT): Likewise.
54899         * tests/test-func.c (ASSERT): Likewise.
54900         * tests/test-fwritable.c (ASSERT): Likewise.
54901         * tests/test-fwriting.c (ASSERT): Likewise.
54902         * tests/test-getdelim.c (ASSERT): Likewise.
54903         * tests/test-getline.c (ASSERT): Likewise.
54904         * tests/test-i-ring.c (ASSERT): Likewise.
54905         * tests/test-iconv-utf.c (ASSERT): Likewise.
54906         * tests/test-iconv.c (ASSERT): Likewise.
54907         * tests/test-isfinite.c (ASSERT): Likewise.
54908         * tests/test-isnand.c (ASSERT): Likewise.
54909         * tests/test-isnanf.c (ASSERT): Likewise.
54910         * tests/test-isnanl.h (ASSERT): Likewise.
54911         * tests/test-ldexpl.c (ASSERT): Likewise.
54912         * tests/test-linked_list.c (ASSERT): Likewise.
54913         * tests/test-linkedhash_list.c (ASSERT): Likewise.
54914         * tests/test-localename.c (ASSERT): Likewise.
54915         * tests/test-lseek.c (ASSERT): Likewise.
54916         * tests/test-mbscasecmp.c (ASSERT): Likewise.
54917         * tests/test-mbscasestr1.c (ASSERT): Likewise.
54918         * tests/test-mbscasestr2.c (ASSERT): Likewise.
54919         * tests/test-mbscasestr3.c (ASSERT): Likewise.
54920         * tests/test-mbscasestr4.c (ASSERT): Likewise.
54921         * tests/test-mbschr.c (ASSERT): Likewise.
54922         * tests/test-mbscspn.c (ASSERT): Likewise.
54923         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
54924         * tests/test-mbspbrk.c (ASSERT): Likewise.
54925         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
54926         * tests/test-mbsrchr.c (ASSERT): Likewise.
54927         * tests/test-mbsspn.c (ASSERT): Likewise.
54928         * tests/test-mbsstr1.c (ASSERT): Likewise.
54929         * tests/test-mbsstr2.c (ASSERT): Likewise.
54930         * tests/test-mbsstr3.c (ASSERT): Likewise.
54931         * tests/test-memchr2.c (ASSERT): Likewise.
54932         * tests/test-memmem.c (ASSERT): Likewise.
54933         * tests/test-open.c (ASSERT): Likewise.
54934         * tests/test-printf-frexp.c (ASSERT): Likewise.
54935         * tests/test-printf-frexpl.c (ASSERT): Likewise.
54936         * tests/test-printf-posix.c (ASSERT): Likewise.
54937         * tests/test-quotearg.c (ASSERT): Likewise.
54938         * tests/test-rbtree_list.c (ASSERT): Likewise.
54939         * tests/test-rbtree_oset.c (ASSERT): Likewise.
54940         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
54941         * tests/test-round1.c (ASSERT): Likewise.
54942         * tests/test-roundf1.c (ASSERT): Likewise.
54943         * tests/test-roundl.c (ASSERT): Likewise.
54944         * tests/test-signbit.c (ASSERT): Likewise.
54945         * tests/test-sleep.c (ASSERT): Likewise.
54946         * tests/test-snprintf-posix.c (ASSERT): Likewise.
54947         * tests/test-snprintf.c (ASSERT): Likewise.
54948         * tests/test-sprintf-posix.c (ASSERT): Likewise.
54949         * tests/test-stat-time.c (ASSERT): Likewise.
54950         * tests/test-strcasestr.c (ASSERT): Likewise.
54951         * tests/test-strerror.c (ASSERT): Likewise.
54952         * tests/test-striconv.c (ASSERT): Likewise.
54953         * tests/test-striconveh.c (ASSERT): Likewise.
54954         * tests/test-striconveha.c (ASSERT): Likewise.
54955         * tests/test-strsignal.c (ASSERT): Likewise.
54956         * tests/test-strstr.c (ASSERT): Likewise.
54957         * tests/test-strtod.c (ASSERT): Likewise.
54958         * tests/test-trunc1.c (ASSERT): Likewise.
54959         * tests/test-trunc2.c (ASSERT): Likewise.
54960         * tests/test-truncf1.c (ASSERT): Likewise.
54961         * tests/test-truncf2.c (ASSERT): Likewise.
54962         * tests/test-truncl.c (ASSERT): Likewise.
54963         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
54964         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
54965         * tests/test-vasnprintf.c (ASSERT): Likewise.
54966         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
54967         * tests/test-vasprintf.c (ASSERT): Likewise.
54968         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
54969         * tests/test-vprintf-posix.c (ASSERT): Likewise.
54970         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
54971         * tests/test-vsnprintf.c (ASSERT): Likewise.
54972         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
54973         * tests/test-wcwidth.c (ASSERT): Likewise.
54974         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
54975         * tests/test-xprintf-posix.c (ASSERT): Likewise.
54976         * tests/test-xvasprintf.c (ASSERT): Likewise.
54977         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
54978         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
54979         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
54980         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
54981         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
54982         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
54983         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
54984         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
54985         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
54986         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
54987         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
54988         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
54989         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
54990         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
54991         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
54992         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
54993         * tests/unictype/test-block_list.c (ASSERT): Likewise.
54994         * tests/unictype/test-block_of.c (ASSERT): Likewise.
54995         * tests/unictype/test-block_test.c (ASSERT): Likewise.
54996         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
54997         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
54998         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
54999         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55000         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55001         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55002         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55003         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55004         * tests/unictype/test-combining.c (ASSERT): Likewise.
55005         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55006         * tests/unictype/test-digit.c (ASSERT): Likewise.
55007         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55008         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55009         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55010         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55011         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55012         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55013         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55014         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55015         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55016         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55017         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55018         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55019         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55020         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55021         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55022         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55023         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55024         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55025         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55026         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55027         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55028         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55029         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55030         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55031         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55032         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55033         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55034         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55035         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55036         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55037         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55038         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55039         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55040         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55041         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55042         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55043         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55044         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55045         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55046         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55047         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55048         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55049         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55050         Reported by Eric Blake.
55051
55052 2008-04-11  Bruno Haible  <bruno@clisp.org>
55053
55054         * lib/wchar.in.h: Tweak comment.
55055
55056 2008-04-11  Bruno Haible  <bruno@clisp.org>
55057
55058         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55059         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55060         gl_COMMON.
55061         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55062
55063 2008-04-11  Bruno Haible  <bruno@clisp.org>
55064
55065         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55066
55067 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55068
55069         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55070         of attempting to use non-existing /dev/*random.  Based on patch
55071         from Adam Strzelecki <ono@java.pl> in
55072         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55073
55074 2008-04-08  Bruno Haible  <bruno@clisp.org>
55075
55076         Add tentative support for emx+gcc.
55077         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55078         * lib/fpurge.c (fpurge): Likewise.
55079         * lib/freadable.c (freadable): Likewise.
55080         * lib/freadahead.c (freadahead): Likewise.
55081         * lib/freading.c (freading): Likewise.
55082         * lib/freadptr.c (freadptr): Likewise.
55083         * lib/freadseek.c (freadptrinc): Likewise.
55084         * lib/fseeko.c (rpl_fseeko): Likewise.
55085         * lib/fseterr.c (fseterr): Likewise.
55086         * lib/fwritable.c (fwritable): Likewise.
55087         * lib/fwriting.c (fwriting): Likewise.
55088         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55089
55090 2008-04-09  Eric Blake  <ebb9@byu.net>
55091
55092         Avoid some autoconf warnings.
55093         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55094         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55095         * m4/afs.m4 (gl_AFS): Likewise.
55096         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55097         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55098         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55099         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55100         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55101         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55102         (AC_CHECK_DECLS_ONCE): Likewise.
55103         Rename file...
55104         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55105         gnulib-tool requires autoconf 2.59 or better.
55106         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55107
55108 2008-04-08  Eric Blake  <ebb9@byu.net>
55109
55110         Use 'git describe --match' if present (added in git 1.5.5).
55111         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55112         if possible.
55113
55114 2008-04-08  Bruno Haible  <bruno@clisp.org>
55115
55116         Add tentative support for OpenServer.
55117         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55118         _ptr, _cnt.
55119         * lib/fpurge.c (fpurge): Likewise.
55120         * lib/freadable.c (freadable): Likewise.
55121         * lib/freadahead.c (freadahead): Likewise.
55122         * lib/freading.c (freading): Likewise.
55123         * lib/freadptr.c (freadptr): Likewise.
55124         * lib/freadseek.c (freadptrinc): Likewise.
55125         * lib/fseeko.c (rpl_fseeko): Likewise.
55126         * lib/fseterr.c (fseterr): Likewise.
55127         * lib/fwritable.c (fwritable): Likewise.
55128         * lib/fwriting.c (fwriting): Likewise.
55129         Reported by Roger Cornelius <rac@tenzing.org> and
55130         Brian K. White <brian@aljex.com>.
55131
55132 2008-04-06  Jim Meyering  <meyering@redhat.com>
55133
55134         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55135
55136 2008-04-06  Bruno Haible  <bruno@clisp.org>
55137
55138         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55139         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55140         * tests/test-printf-posix.sh: Likewise.
55141         * tests/test-vfprintf-posix.sh: Likewise.
55142         * tests/test-vprintf-posix.sh: Likewise.
55143         * tests/test-xprintf-posix.sh: Likewise.
55144
55145 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55146
55147         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55148         hide error from 'ls', needed on OS/2.
55149         Report by Elbert Pol <elbert.pol@gmail.com>.
55150
55151 2008-04-04  Eric Blake  <ebb9@byu.net>
55152
55153         Make test-fseeko.c failures meaningful.
55154         * tests/test-fseeko.c: Print line number on failure.
55155         * tests/test-fseek.c: Likewise.
55156         Reported by Nelson H. F. Beebe.
55157
55158         Improve strtod bug detection check.
55159         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55160         required for Solaris 10.
55161         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55162
55163 2008-04-04  Bruno Haible  <bruno@clisp.org>
55164
55165         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55166         by m4/setenv.m4.
55167
55168 2008-04-03  Eric Blake  <ebb9@byu.net>
55169
55170         Ensure sane .version contents.
55171         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55172         version string.
55173         * build-aux/git-version-gen: Improve documentation.
55174
55175         Make GNU make output nicer.
55176         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55177         MAKECMDGOALS to enforce message for all command line targets.  Set
55178         srcdir for use in maint.mk.
55179
55180         Another maintainer tweak.
55181         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55182         a target that regenerates version.
55183
55184 2008-04-03  Jim Meyering  <meyering@redhat.com>
55185
55186         vc-list-files: don't cause coreutils "make po-check" failure
55187         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55188
55189 2008-04-03  Eric Blake  <ebb9@byu.net>
55190
55191         Allow VPATH usage of vc-list-files.
55192         * build-aux/vc-list-files (scriptversion): Add timestamp.
55193         (options): Add --help, --version, -C.
55194         (CVS): Support installed cvsu.
55195
55196 2008-04-02  Bruno Haible  <bruno@clisp.org>
55197
55198         Avoid some "statement with no effect" warnings from gcc.
55199         * tests/test-wctype.c (main): Explicitly ignore unused values.
55200         Reported by Jim Meyering.
55201
55202 2008-04-02  Jim Meyering  <meyering@redhat.com>
55203
55204         Avoid some warnings from "gcc -Wshadow".
55205         * tests/test-frexp.c (exp): Define to a different identifier.
55206         * tests/test-frexpl.c (exp): Likewise.
55207
55208 2008-04-03  Jim Meyering  <meyering@redhat.com>
55209
55210         bootstrap: remove dangling *.[ch] symlinks from lib
55211         * build-aux/bootstrap [dangling symlink removal]: Move find's
55212         -depth option to precede all others, to avoid a warning.
55213         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55214
55215 2008-04-02  Bruno Haible  <bruno@clisp.org>
55216
55217         Avoid some warnings from "gcc -Wshadow".
55218         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55219         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55220         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55221         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55222         Reported by Jim Meyering.
55223
55224 2008-04-01  Bruno Haible  <bruno@clisp.org>
55225
55226         Fix test to work on IRIX 6.5 with cc.
55227         * tests/test-math.c (numeric_equal): New function.
55228         (main): Use it.
55229
55230 2008-04-01  Bruno Haible  <bruno@clisp.org>
55231
55232         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55233
55234 2008-04-01  Bruno Haible  <bruno@clisp.org>
55235
55236         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55237         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55238         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55239         (Depends-on): Remove math.
55240
55241         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55242         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55243         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55244         (Depends-on): Remove math.
55245
55246         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55247         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55248         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55249         (Depends-on): Remove math.
55250         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55251         (Depends-on): Remove math.
55252
55253         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55254         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55255         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55256         (Depends-on): Remove math.
55257         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55258         (Depends-on): Remove math.
55259
55260         * tests/test-round1.c: Include nan.h.
55261         (main): Use NaNd instead of NAN.
55262         * modules/round-tests (Files): Add tests/nan.h.
55263
55264         * tests/test-trunc1.c: Include nan.h.
55265         (main): Use NaNd instead of NAN.
55266         * modules/trunc-tests (Files): Add tests/nan.h.
55267
55268         * tests/test-roundf1.c: Include nan.h.
55269         (main): Use NaNf instead of NAN.
55270         * modules/roundf-tests (Files): Add tests/nan.h.
55271
55272         * tests/test-truncf1.c: Include nan.h.
55273         (main): Use NaNf instead of NAN.
55274         * modules/truncf-tests (Files): Add tests/nan.h.
55275
55276         * tests/test-ceilf1.c: Include nan.h.
55277         (main): Use NaNf instead of NAN.
55278         * modules/ceilf-tests (Files): Add tests/nan.h.
55279
55280         * tests/test-floorf1.c: Include nan.h.
55281         (main): Use NaNf instead of NAN.
55282         * modules/floorf-tests (Files): Add tests/nan.h.
55283
55284         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55285         (main): Use NaNf instead of NAN.
55286         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55287
55288         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55289         (main): Use NaNd instead of NAN.
55290         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55291
55292         * tests/test-frexp.c: Include nan.h.
55293         (main): Use NaNd instead of NAN.
55294         * modules/frexp-tests (Files): Add tests/nan.h.
55295
55296         * lib/isnan.c: Don't include <math.h>.
55297         (FUNC): Don't use NAN macro.
55298         * modules/isnand-nolibm (Depends-on): Remove math.
55299         * modules/isnanf-nolibm (Depends-on): Remove math.
55300         * modules/isnanl (Depends-on): Remove math.
55301         * modules/isnanl-nolibm (Depends-on): Remove math.
55302
55303         * tests/nan.h: New file.
55304
55305 2008-04-01  Eric Blake  <ebb9@byu.net>
55306
55307         Fix typos.
55308         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55309         values to be the right type.
55310
55311         For now, cater to gnulib strtod inaccuracies.
55312         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55313         fractional results.  While not as nice from a QoI perspective, it
55314         is a quicker patch than correctly implementing decimal to binary
55315         rounding.
55316
55317 2008-03-31  Eric Blake  <ebb9@byu.net>
55318
55319         Guarantee a definition of NAN.
55320         * lib/math.in.h (NAN): Define if missing.
55321         * tests/test-math.c (main): Test it.
55322         * doc/posix-headers/math.texi (math.h): Document this.
55323         * lib/isnan.c (rpl_isnand): Use it.
55324         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55325         * tests/test-floorf1.c (NaN): Likewise.
55326         * tests/test-frexp.c (NaN): Likewise.
55327         * tests/test-isnand.c (NaN): Likewise.
55328         * tests/test-isnanf.c (NaN): Likewise.
55329         * tests/test-round1.c (NaN): Likewise.
55330         * tests/test-roundf1.c (NaN): Likewise.
55331         * tests/test-snprintf-posix.h (NaN): Likewise.
55332         * tests/test-sprintf-posix.h (NaN): Likewise.
55333         * tests/test-trunc1.c (NaN): Likewise.
55334         * tests/test-truncf1.c (NaN): Likewise.
55335         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55336         * tests/test-vasprintf-posix.c (NaN): Likewise.
55337         * modules/isnand-nolibm (Depends-on): Add math.
55338         * modules/isnanf-nolibm (Depends-on): Likewise.
55339         * modules/isnanl (Depends-on): Likewise.
55340         * modules/isnanl-nolibm (Depends-on): Likewise.
55341         * modules/snprintf-posix-tests (Depends-on): Likewise.
55342         * modules/sprintf-posix-tests (Depends-on): Likewise.
55343         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55344         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55345         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55346         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55347
55348 2008-03-31  Bruno Haible  <bruno@clisp.org>
55349
55350         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55351         * doc/posix-functions/strtod.texi: Likewise.
55352
55353 2008-03-31  Bruno Haible  <bruno@clisp.org>
55354
55355         * tests/test-strtod.c (main): Don't use C99 syntax.
55356
55357 2008-03-31  Bruno Haible  <bruno@clisp.org>
55358
55359         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55360         Reported by Eric Blake.
55361
55362 2008-03-31  Jim Meyering  <meyering@redhat.com>
55363
55364         Don't compare actual signbit return values.
55365         * tests/test-strtod.c (main): Rather, compare only their
55366         zero/non-zero nature.
55367
55368 2008-03-31  Eric Blake  <ebb9@byu.net>
55369
55370         More strtod documentation.
55371         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55372         failures as distinct bugs.
55373
55374 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55375
55376         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55377         Problem reported by Erik Benada in
55378         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55379
55380 2008-03-30  Bruno Haible  <bruno@clisp.org>
55381
55382         * tests/test-strtod.c: Add comments about which assertion fails on which
55383         platform.
55384         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55385
55386 2008-03-30  Eric Blake  <ebb9@byu.net>
55387
55388         Test signbit behavior on zeros.
55389         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55390         (test_signbitd, test_signbitl): Likewise.
55391
55392         More strtod touchups.
55393         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55394         sign of negative underflow, for now.  Use .5, not .1.
55395         * doc/posix-functions/strtod.texi (strtod): Mention these
55396         limitations.
55397         Reported by Jim Meyering.
55398
55399 2008-03-30  Bruno Haible  <bruno@clisp.org>
55400
55401         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55402         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55403
55404 2008-03-30  Bruno Haible  <bruno@clisp.org>
55405
55406         Avoid failure when attempting to return empty iconv results on some
55407         platforms.
55408         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55409         allocation, don't report ENOMEM when the resulting string is empty.
55410
55411 2008-03-30  Bruno Haible  <bruno@clisp.org>
55412
55413         Fix buffer overrun.
55414         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55415         Don't consider the width for tmp_length. Check count against tmp_length
55416         before doing the padding. Ensure enough allocation during padding.
55417
55418 2008-03-30  Eric Blake  <ebb9@byu.net>
55419
55420         strtod touchups.
55421         * lib/strtod.c (strtod): Avoid compiler warnings.
55422         Reported by Jim Meyering.
55423
55424 2008-03-30  Bruno Haible  <bruno@clisp.org>
55425
55426         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55427         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55428         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55429         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55430         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55431         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55432         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55433         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55434
55435         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55436         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
55437         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
55438         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
55439         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
55440         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
55441         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
55442         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
55443
55444         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
55445         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
55446         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
55447         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
55448         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
55449         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
55450         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
55451         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
55452
55453         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
55454         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
55455
55456         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
55457         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
55458
55459         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
55460         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
55461
55462         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
55463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
55464         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
55465
55466         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
55467         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
55468         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
55469
55470         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
55471         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
55472         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
55473
55474         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
55475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
55476         * modules/vasprintf (Depends-on): Add EOVERFLOW.
55477
55478         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
55479         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
55480         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
55481         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
55482         (Depends-on): Add EOVERFLOW.
55483         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
55484         (Depends-on): Add EOVERFLOW.
55485         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55486         (Depends-on): Add EOVERFLOW.
55487         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
55488         (Depends-on): Add EOVERFLOW.
55489         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55490         (Depends-on): Add EOVERFLOW.
55491         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
55492         (Depends-on): Add EOVERFLOW.
55493         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55494         (Depends-on): Add EOVERFLOW.
55495         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
55496         (Depends-on): Add EOVERFLOW.
55497
55498         * lib/sprintf.c (EOVERFLOW): Remove fallback.
55499         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
55500         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
55501
55502         * lib/snprintf.c (EOVERFLOW): Remove fallback.
55503         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
55504         * modules/snprintf (Depends-on): Add EOVERFLOW.
55505
55506         * lib/poll.c (EOVERFLOW): Remove fallback.
55507         * modules/poll (Depends-on): Add EOVERFLOW.
55508
55509         * lib/getugroups.c (EOVERFLOW): Remove fallback.
55510         * modules/getugroups (Depends-on): Add EOVERFLOW.
55511
55512         * lib/getdelim.c (EOVERFLOW): Remove fallback.
55513         * modules/getdelim (Depends-on): Add EOVERFLOW.
55514
55515         * lib/ftell.c (EOVERFLOW): Remove fallback.
55516         * modules/ftell (Depends-on): Add EOVERFLOW.
55517
55518         * lib/fprintf.c (EOVERFLOW): Remove fallback.
55519         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
55520         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
55521
55522         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
55523
55524         * modules/EOVERFLOW-tests: New file.
55525         * tests/test-EOVERFLOW.c: New file.
55526
55527         * modules/EOVERFLOW: New file.
55528         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
55529
55530 2008-03-30  Bruno Haible  <bruno@clisp.org>
55531
55532         Fix bug introduced on 2007-06-10.
55533         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
55534         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
55535
55536 2008-03-30  Bruno Haible  <bruno@clisp.org>
55537
55538         Improve freadseek's efficiency after ungetc.
55539         * lib/freadseek.c: Include freadahead.h.
55540         (freadptrinc): New function, extracted from freadseek.
55541         (freadseek): Use it in a loop. Use freadahead to determine the number
55542         of loop iterations.
55543         * modules/freadseek (Depends-on): Add freadahead.
55544         (configure.ac): Require AC_C_INLINE.
55545
55546 2008-03-30  Bruno Haible  <bruno@clisp.org>
55547
55548         * lib/freadseek.c (freadseek): Don't ignore the return value of
55549         freadptr.
55550
55551 2008-03-29  Eric Blake  <ebb9@byu.net>
55552
55553         Add hex float support.
55554         * modules/strtod (Depends-on): Add c-ctype.
55555         (Link): Mention POW_LIB.
55556         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
55557         whitespace between 'e' and exponent.
55558         * tests/test-strtod.c (main): Enable hex float tests.
55559         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
55560         now provides.
55561
55562         Document various strtod bugs, with some fixes.
55563         * doc/posix-functions/strtod.texi (strtod): Document bugs with
55564         "-0x", "inf", "nan", and hex constants.
55565         * doc/posix-functions/atof.texi (atof): Likewise.
55566         * modules/stdlib (Makefile.am): Support strtod.
55567         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
55568         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
55569         detect additional strtod bugs.
55570         * lib/stdlib.in.h (rpl_strtod): Add declarations.
55571         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
55572         bool where appropriate.  Parse 'inf' and 'nan'.
55573         * tests/test-strtod.c: New file.
55574         * modules/strtod (Depends-on): Add stdbool, stdlib.
55575         (configure.ac): Turn on module indicator.
55576         * modules/strtod-tests: New module.
55577
55578 2008-03-29  Eric Blake  <ebb9@byu.net>
55579
55580         Fix ftell on mingw.
55581         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
55582         * modules/ftell-tests (Depends-on): Add binary-io.
55583         * modules/ftello-tests (Depends-on): Likewise.
55584         * tests/test-ftell.c (main): Enhance test to cover behavior after
55585         ungetc.  Enforce binary mode.
55586         * tests/test-ftello.c (main): Likewise.
55587
55588         Pass test-freadseek on cygwin.
55589         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
55590         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
55591         ungetc buffer.
55592
55593         * tests/test-fflush2.c (main): Fix typo.
55594
55595 2008-03-29  Bruno Haible  <bruno@clisp.org>
55596
55597         * tests/test-fflush2.c (main): Temporarily disable the contents of
55598         this test.
55599         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
55600         Reported by Eric Blake.
55601
55602 2008-03-28  Simon Josefsson  <simon@josefsson.org>
55603
55604         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
55605         (GC_SHA224_DIGEST_SIZE): Add.
55606
55607         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
55608         (gc_hash_digest_length): Likewise.
55609         (gc_hash_buffer): Likewise.
55610
55611 2008-03-25  Bruno Haible  <bruno@clisp.org>
55612
55613         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
55614         detail which gettext release to use.
55615         Reported by Simon Josefsson.
55616
55617 2008-03-26  Jim Meyering  <meyering@redhat.com>
55618
55619         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
55620         * modules/gnumakefile (clean-GNUmakefile): Also, use
55621         test ... && ... || : syntax rather than if-then ... fi.
55622
55623         gnumakefile: Don't double-quote-expand $(VPATH) value.
55624         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
55625
55626 2008-03-24  Eric Blake  <ebb9@byu.net>
55627
55628         Alter GNUmakefile to install into top directory.
55629         * modules/maintainer-makefile: Split, and add dependency...
55630         * modules/gnumakefile: to this new module.
55631         * build-aux/GNUmakefile: Move...
55632         * top/GNUmakefile: ...here.
55633         * build-aux/maint.mk: Move...
55634         * top/maint.mk: ...here.
55635         * MODULES.html.sh (Support for maintaining...): Document new
55636         module.
55637
55638 2008-03-23  Bruno Haible  <bruno@clisp.org>
55639
55640         * gnulib-tool: New options --vc-files, --no-vc-files.
55641         (func_usage): Document them.
55642         (vc_files): New variable.
55643         (func_import): Consider vc_files.
55644         (func_create_testdir): Set vc_files to empty.
55645         Suggested by Jim Meyering and Karl Berry.
55646
55647 2008-03-23  Bruno Haible  <bruno@clisp.org>
55648
55649         Fix regex compilation error on HP-UX 11.
55650         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
55651         * modules/regex (Files): Add m4/mbstate_t.m4.
55652         Reported by Ton Voon <ton.voon@altinity.com>.
55653
55654 2008-03-23  Bruno Haible  <bruno@clisp.org>
55655
55656         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
55657
55658 2008-03-23  Eric Blake  <ebb9@byu.net>
55659             Bruno Haible  <bruno@clisp.org>
55660
55661         Install files from top/ in the destination directory.
55662         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
55663         augmentation also for the files from top/.
55664         (func_import, func_create_testdir): Rewrite file names:
55665         top/filename -> filename.
55666
55667 2008-03-23  Bruno Haible  <bruno@clisp.org>
55668
55669         Tweak "gnulib --version" output.
55670         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
55671
55672 2008-03-23  Bruno Haible  <bruno@clisp.org>
55673
55674         Tweak "gnulib --version" output.
55675         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
55676         rather than contents of ChangeLog, when possible.
55677
55678 2008-03-21  Eric Blake  <ebb9@byu.net>
55679
55680         More --version tweaks.
55681         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
55682         date of last ChangeLog entry.
55683
55684 2008-03-21  Jim Meyering  <meyering@redhat.com>
55685
55686         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
55687
55688 2008-03-20  Eric Blake  <ebb9@byu.net>
55689
55690         VPATH fix.
55691         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
55692
55693 2008-03-20  Simon Josefsson  <simon@josefsson.org>
55694
55695         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
55696         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
55697
55698 2008-03-20  Eric Blake  <ebb9@byu.net>
55699
55700         Sync GNUmakefile with coreutils.
55701         * build-aux/GNUmakefile (have-Makefile): Rename...
55702         (_have-Makefile): ...to this, for namespace consideration.
55703         (GNUmakefile.cfg): Include, if present.
55704         (_autoreconf): Define a default.
55705         (_is-dist-target): New rule for rebuilds to pick up intra-release
55706         version.
55707         (maint-cfg.mk): Rename...
55708         (cfg.mk): ...to this.
55709
55710 2008-03-18  Jim Meyering  <meyering@redhat.com>
55711
55712         New script and module: mktempd
55713         * MODULES.html.sh (maint+release support): Add mktempd.
55714         * build-aux/mktempd: New file.
55715         * modules/mktempd: New file.
55716
55717 2008-03-15  Jim Meyering  <meyering@redhat.com>
55718
55719         Undo last change.
55720         * lib/sha1.c, lib/md5.c: 63 != ~63.
55721         Reported by Andreas Schwab.
55722
55723         sha1.c, md5.c: Hoist a redundant expression.
55724         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
55725         "ctx->buflen" only once, before calling *_process_block.
55726         * lib/md5.c (md5_process_bytes): Likewise.
55727
55728 2008-03-14  Eric Blake  <ebb9@byu.net>
55729
55730         Bump copyright year in files generated by gnulib-tool.
55731         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
55732         gnulib-tool, rather than hard-coding it.
55733
55734         Fix 'gnulib-tool --version' output to work with git.
55735         * gnulib-tool (func_gnulib_dir): New function, extracted from...
55736         (startup): ...here.
55737         (func_version): Use it to invoke git-version-gen, rather than
55738         relying on CVS keyword expansion.  Modernize wording.
55739         (cvsdatestamp, last_checkin_date, version): Kill unused
55740         variables.
55741
55742 2008-03-12  Jim Meyering  <meyering@redhat.com>
55743
55744         Recognize optional cast of the argument to free.
55745         * build-aux/useless-if-before-free: Update regexps.
55746
55747         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
55748
55749 2008-03-11  Bruno Haible  <bruno@clisp.org>
55750
55751         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
55752         by a single package.
55753         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
55754         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
55755         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
55756         Reported by Sam Steingold <sds@gnu.org>.
55757
55758 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55759
55760         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
55761         repositories.
55762
55763 2008-03-11  Bruno Haible  <bruno@clisp.org>
55764
55765         Avoid conflicts between local macro definitions.
55766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
55767         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
55768
55769 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
55770             Bruno Haible  <bruno@clisp.org>
55771
55772         Make va_copy work with some version of xlc on AIX 5.1.
55773         * lib/stdarg.in.h: New file.
55774         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
55775         On AIX, use a <stdarg.h> file substitute.
55776         * modules/stdarg (Files): Add lib/stdarg.in.h.
55777         (Depends-on): Add include_next.
55778         (Makefile.am): Build a stdarg.h substitute if requested.
55779         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
55780
55781 2008-03-10  Bruno Haible  <bruno@clisp.org>
55782
55783         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
55784         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55785         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
55786
55787 2008-03-10  Bruno Haible  <bruno@clisp.org>
55788
55789         * modules/stdlib (Depends-on): Add include_next, remove
55790         absolute-header.
55791
55792 2008-03-09  Bruno Haible  <bruno@clisp.org>
55793
55794         * lib/freadahead.h (freadahead): Document more precisely.
55795         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
55796         the sum of both buffer sizes.
55797         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
55798         * NEWS: Document the change.
55799
55800 2008-03-09  Bruno Haible  <bruno@clisp.org>
55801
55802         Extend freadptr to return also the buffer size.
55803         * lib/freadptr.h (freadptr): Add sizep argument.
55804         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
55805         (freadptr): Add sizep argument. Determine buffer size like freadahead
55806         does.
55807         * tests/test-freadptr.c: Don't include freadahead.h.
55808         (main): Adapt for new calling convention of freadptr.
55809         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
55810         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
55811         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
55812         tests/test-freadptr2.sh.
55813         (Depends): Remove freadahead.
55814         (TESTS): Add test-freadptr2.sh.
55815         (check_PROGRAMS): Add test-freadptr2.
55816
55817 2008-03-09  Bruno Haible  <bruno@clisp.org>
55818
55819         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
55820         Report and solution by Simon Josefsson.
55821
55822 2008-03-06  Bruno Haible  <bruno@clisp.org>
55823
55824         Make fflush after ungetc work on BSD platforms.
55825         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
55826         * tests/test-fflush2.c: New file.
55827         * tests/test-fflush2.sh: New file.
55828         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
55829         tests/test-fflush2.c.
55830         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
55831         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
55832
55833 2008-03-06  Eric Blake  <ebb9@byu.net>
55834
55835         Likewise for ftello.
55836         * modules/ftello (Dependencies): Add extensions.
55837         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
55838
55839 2008-03-06  Bruno Haible  <bruno@clisp.org>
55840
55841         * modules/fseeko (Dependencies): Add extensions.
55842         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
55843         Needed on glibc systems.
55844
55845 2008-03-06  Bruno Haible  <bruno@clisp.org>
55846
55847         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
55848         email address.
55849         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55850
55851 2008-03-06  Bruno Haible  <bruno@clisp.org>
55852
55853         * users.txt: Add libgnupdf.
55854
55855 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55856
55857         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
55858         (Header File Substitutes, Function Substitutes,
55859         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
55860         (Build robot for gnulib): Fix typo.
55861
55862 2008-03-06  Bruno Haible  <bruno@clisp.org>
55863
55864         * doc/gnulib-tool.texi (VCS Issues): Small updates.
55865         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55866
55867 2008-03-06  Bruno Haible  <bruno@clisp.org>
55868
55869         * doc/func.texi: New file, extracted from doc/gnulib.texi.
55870         * doc/gnulib.texi: Include it.
55871
55872 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55873
55874         * modules/func (License): Change license to unlimited; there was
55875         no LGPL parts in the module anyway.
55876
55877 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55878
55879         * modules/__func__: Renamed to modules/func.
55880         * modules/__func__-tests: Renamed to modules/func-tests.
55881         * tests/test-__func__.c: Renamed to tests/test-func.c.
55882         * m4/__func__.m4: Renamed to m4/func.m4.
55883         * doc/gnulib.texi (__func__): Section renamed to func.
55884         Suggested by Eric Blake <ebb9@byu.net>.
55885
55886 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55887
55888         * doc/gnulib.texi (__func__): Use C99 terminology when talking
55889         about __func__.  Make example self-contained.  Suggested by Eric
55890         Blake <ebb9@byu.net>.
55891
55892         * tests/test-__func__.c (main): Avoid extraneous () around __func.
55893         Suggested by Eric Blake <ebb9@byu.net>.
55894
55895 2008-03-06  Simon Josefsson  <simon@josefsson.org>
55896
55897         * modules/__func__: New file.
55898         * modules/__func__-tests: New file.
55899         * tests/test-__func__.c: New file.
55900         * m4/__func__.m4: New file.
55901         * doc/gnulib.texi (__func__): Document __func__ module.
55902
55903 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55904
55905         * modules/byteswap (License): Re-license as LGPLv2+.
55906
55907 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55908
55909         * doc/Makefile: Add pdf target.
55910
55911 2008-03-05  Simon Josefsson  <simon@josefsson.org>
55912
55913         * modules/inline (License): Use 'unlimited', since there are only
55914         *.m4 files in this module.
55915
55916 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55917             Bruno Haible  <bruno@clisp.org>
55918
55919         Add support for HP C 7.1 on OpenVMS 8.3.
55920         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
55921
55922 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
55923
55924         Update VMS specifics.
55925         * lib/getopt.c [VMS]: Remove include of unixlib.h.
55926
55927 2008-03-02  Jim Meyering  <meyering@redhat.com>
55928
55929         Remove the last dependency on the "free" module.
55930         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
55931         Reported by Bob Proulx.
55932
55933         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
55934
55935         Remove useless "if" tests before free.  Deprecate "free" module.
55936         * doc/posix-functions/free.texi: Mention that this
55937         module is no longer useful.
55938         * modules/free (Notice): Say this module is obsolete.
55939         * modules/readutmp (Depends-on): Remove free.
55940         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
55941         * lib/putenv.c (putenv): Likewise.
55942         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
55943         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
55944         * tests/test-c-strcasestr.c (main): Likewise.
55945         * tests/test-c-strstr.c (main): Likewise.
55946         * tests/test-mbscasestr1.c (main): Likewise.
55947         * tests/test-mbscasestr2.c (main): Likewise.
55948         * tests/test-mbsstr1.c (main): Likewise.
55949         * tests/test-mbsstr2.c (main): Likewise.
55950         * tests/test-memmem.c (main): Likewise.
55951         * tests/test-strcasestr.c (main): Likewise.
55952         * tests/test-striconv.c (main): Likewise.
55953         * tests/test-striconveh.c (main): Likewise.
55954         * tests/test-striconveha.c (main): Likewise.
55955         * tests/test-strstr.c (main): Likewise.
55956
55957         * build-aux/git-version-gen: Adjust a comment and the Usage string.
55958
55959         bootstrap: sync from coreutils again
55960         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
55961
55962 2008-03-01  Jim Meyering  <meyering@redhat.com>
55963
55964         bootstrap: sync from coreutils
55965         * build-aux/bootstrap (update_po_files): Copy a .po file into place
55966         also when the target doesn't exist.
55967
55968 2008-03-01  Eric Blake  <ebb9@byu.net>
55969
55970         Fix bugs in last patch.
55971         * lib/memchr2.c (memchr2): Fix typo.
55972         * tests/test-memchr2.c: Test previous bug, and don't use GNU
55973         extension.
55974         Reported by Bruce Korb.
55975
55976         New module 'memchr2'.
55977         * modules/memchr2: New file.
55978         * modules/memchr2-tests: Likewise.
55979         * lib/memchr2.h: Likewise.
55980         * lib/memchr2.c: Likewise, based on memchr.c.
55981         * tests/test-memchr2.c: New test.
55982         * MODULES.html.sh (String handling): Add memchr2.
55983
55984 2008-02-29  Bruno Haible  <bruno@clisp.org>
55985
55986         * modules/freadseek-tests: New file.
55987         * tests/test-freadseek.sh: New file.
55988         * tests/test-freadseek.c: New file.
55989
55990         New module 'freadseek'.
55991         * modules/freadseek: New file.
55992         * lib/freadseek.h: New file.
55993         * lib/freadseek.c: New file.
55994         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
55995
55996 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55997
55998         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
55999         wydawca.
56000
56001         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56002         program_invocation_name and program_invocation_short_name are
56003         present.
56004
56005 2008-02-28  Bruno Haible  <bruno@clisp.org>
56006
56007         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56008         * tests/test-freadptr.sh: Also test non-seekable stdin.
56009
56010 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56011
56012         * build-aux/bootstrap (source_base, m4_base)
56013         (doc_base, tests_base): New variables.
56014         (gnulib_tool_options): Do not hardcode base directories, use
56015         the above variables instead.
56016
56017 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56018
56019         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56020
56021 2008-02-28  Bruno Haible  <bruno@clisp.org>
56022
56023         * modules/freadptr-tests: New file.
56024         * tests/test-freadptr.sh: New file.
56025         * tests/test-freadptr.c: New file.
56026
56027         New module 'freadptr'.
56028         * modules/freadptr: New file.
56029         * lib/freadptr.h: New file.
56030         * lib/freadptr.c: New file.
56031         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56032
56033 2008-02-26  Karl Berry  <karl@freefriends.org>
56034
56035         Sync from Libtool:
56036         * libltdl/argz.c (argz_add, argz_count): New functions.
56037         * libltdl/argz.in.h: Declare them.
56038         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56039
56040 2008-02-22  Bruno Haible  <bruno@clisp.org>
56041
56042         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56043         is a pointer type.  Needed for HP-UX 10.
56044         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56045         * doc/posix-functions/gmtime_r.texi: Likewise.
56046         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56047
56048 2008-02-24  Bruno Haible  <bruno@clisp.org>
56049
56050         * modules/environ-tests: New file.
56051         * tests/test-environ.c: New file.
56052
56053         New module 'environ'.
56054         * modules/environ: New file.
56055         * lib/unistd.in.h (environ): New declaration.
56056         * m4/environ.m4: New file.
56057         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56058         after use.
56059         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56060         HAVE_DECL_ENVIRON.
56061         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56062         HAVE_DECL_ENVIRON.
56063         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56064         wrong claim that 'environ' is missing on some systems.
56065         * modules/execute (Depends-on): Add environ.
56066         * lib/execute.c (environ): Remove fallback declaration.
56067         * modules/pipe (Depends-on): Add environ.
56068         * lib/pipe.c (environ): Remove fallback declaration.
56069         * modules/setenv (Depends-on): Add environ.
56070         * lib/setenv.c (environ): Remove fallback declaration.
56071         * modules/unsetenv (Depends-on): Add environ.
56072         * lib/unsetenv.c (environ): Remove fallback declaration.
56073         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56074         m4/environ.m4.
56075         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56076         (gl_PREREQ_UNSETENV): Likewise.
56077
56078 2008-02-24  Bruno Haible  <bruno@clisp.org>
56079
56080         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56081
56082 2008-02-20  Bob Proulx  <bob@proulx.com>
56083
56084         Enable use of older two part flavor 'git describe'.
56085         * build-aux/git-version-gen: If using the older two part flavor of
56086         git version then recreate the third part now present in the
56087         newer three part flavor of git describe.
56088
56089 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56090
56091         * lib/fts.c (fts_build): Typo correction to comment.
56092
56093 2008-02-17  Bruno Haible  <bruno@clisp.org>
56094
56095         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56096         generating no-op conflicts.
56097
56098 2008-02-17  Bruno Haible  <bruno@clisp.org>
56099
56100         Speed up by 10%.
56101         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56102         result_entries, rather than an index-based loop.
56103
56104 2008-02-17  Bruno Haible  <bruno@clisp.org>
56105
56106         Speed up by 25%.
56107         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56108         'hashcode_cached'.
56109         (entry_create): New function.
56110         (entry_hashcode): Use the cached hashcode if possible.
56111         (read_changelog_file, try_split_merged_entry): Use entry_create.
56112
56113 2008-02-17  Bruno Haible  <bruno@clisp.org>
56114
56115         Speed up from O(n^2) to O(n) for long ChangeLog files.
56116         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56117         (read_changelog_file): Change implementation of entries_reversed list
56118         to rbtreehash.
56119         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56120
56121 2008-02-17  Bruno Haible  <bruno@clisp.org>
56122
56123         New option --split-merged-entry.
56124         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56125         (find_paragraph_end, try_split_merged_entry): New functions.
56126         (long_options): Add option --split-merged-entry.
56127         (usage): Document option --split-merged-entry.
56128         (main): Implement option --split-merged-entry.
56129         Reported by Eric Blake.
56130
56131 2008-02-17  Bruno Haible  <bruno@clisp.org>
56132
56133         * lib/git-merge-changelog.c: Include c-strstr.h.
56134         (main): Support the "git pull --rebase" situation.
56135         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56136         Reported by Eric Blake.
56137
56138 2008-02-16  Eric Blake  <ebb9@byu.net>
56139
56140         Avoid doubling \ in common case of "c-maybe" quoting style.
56141         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56142         eliding outer quotes.
56143         * lib/quotearg.h: Document this.
56144         * tests/test-quotearg.c (result_strings, inputs, results_g)
56145         (flag_results, locale_results): Test it by adding a new string to
56146         each test group.
56147         (compare_strings): Test new string.
56148
56149 2008-02-13  Eric Blake  <ebb9@byu.net>
56150
56151         Avoid trigraph quoting in default output.
56152         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56153         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56154         unless explicitly requested.
56155         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56156
56157 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56158
56159         Don't rely on signed integer overflowing to negative value.
56160         * lib/getugroups.c (getugroups): Include <limits.h>.
56161         Instead, compare against INT_MAX, and increment only if the test passes.
56162
56163 2008-02-13  Jim Meyering  <meyering@redhat.com>
56164         and Eric Blake  <ebb9@byu.net>
56165
56166         Avoid shadowing warning and compile errors on Linux.
56167         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56168         forwarding macros on Linux.
56169         (dcgettext): Define a stub, for Linux.
56170         (results_g, main): Avoid warnings.
56171
56172 2008-02-12  Eric Blake  <ebb9@byu.net>
56173
56174         Silence warning in last patch.
56175         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56176
56177         Quotearg part 4: add tests, fix c-maybe colon quoting.
56178         * lib/quotearg.h: Improve documentation.
56179         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56180         escapes when adding outer quotes.  When quoting trigraphs, use
56181         valid C notation.  When quoting NUL, omit extra characters if next
56182         character is not digit.  Alter prototype.
56183         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56184         callers.
56185         * modules/quotearg-tests: New module.
56186         * tests/test-quotearg.c: New test.
56187
56188 2008-02-07  Eric Blake  <ebb9@byu.net>
56189
56190         Quotearg part 3: add flag to control outer quote elision.
56191         * lib/quotearg.h (c_maybe_quoting_style): New style.
56192         (enum quoting_flags): Better documentation of flags.
56193         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56194         c-maybe style.
56195         (quotearg_buffer_restyled): Handle new flag to elide outer
56196         quotes.
56197
56198         Quotearg part 2: add flag that can control NUL elision.
56199         * lib/quotearg.h (set_quoting_flags): New prototype.
56200         * lib/quotearg.c (struct quoting_options): Add flag field.
56201         (set_quoting_flags): New function.
56202         (quotearg_buffer_restyled): Add flags parameter.
56203         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56204         (quotearg_n_options): Set the flag, since length cannot be
56205         returned.
56206         (quoting_options_from_style): Default flags correctly.
56207
56208         Quotearg part 1: more wrappers, restore quotearg_char state.
56209         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56210         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56211         (quotearg_colon_mem): New wrappers.
56212         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56213         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56214         functions.
56215         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56216         (quotearg_colon_mem): New functions.
56217
56218 2008-02-11  Bruno Haible  <bruno@clisp.org>
56219
56220         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56221         library in the current directory: it does not work with parallel make.
56222         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56223
56224 2008-02-11  Bruno Haible  <bruno@clisp.org>
56225
56226         * .gitattributes: New file.
56227
56228 2008-02-11  Jim Meyering  <meyering@redhat.com>
56229
56230         useless-if-before-free: Fix reversed exit values.
56231         * build-aux/useless-if-before-free: Use correct values
56232         for EXIT_MATCH and EXIT_NO_MATCH.
56233
56234         * build-aux/useless-if-before-free: Close stdout carefully.
56235
56236 2008-02-10  Bruno Haible  <bruno@clisp.org>
56237
56238         New module 'git-merge-changelog'.
56239         * modules/git-merge-changelog: New file.
56240         * lib/git-merge-changelog.c: New file.
56241
56242 2008-02-10  Jim Meyering  <meyering@redhat.com>
56243
56244         useless-if-before-free: New option: --list (-l).
56245
56246         useless-if-before-free: Don't exit immediately upon open failure.
56247         * build-aux/useless-if-before-free: Exit 2 for errors.
56248         Upon failure to open a file, don't exit immediately.
56249         Rather, just warn and continue with any remaining files.
56250
56251 2008-02-10  Bruno Haible  <bruno@clisp.org>
56252
56253         New abstract list operation 'node_set_value'.
56254         * lib/gl_list.h (gl_list_node_set_value): New function.
56255         (struct gl_list_implementation): New field node_set_value.
56256         * lib/gl_list.c (gl_list_node_set_value): New function.
56257         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56258         (gl_array_list_implementation): Update.
56259         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56260         (gl_carray_list_implementation): Update.
56261         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56262         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56263         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56264         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56265         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56266         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56267         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56268         Update.
56269         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56270         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56271         (gl_sublist_list_implementation): Update.
56272
56273 2008-02-10  Bruno Haible  <bruno@clisp.org>
56274
56275         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56276         Needed when ELEMENT is #defined to 'some_type *'.
56277
56278 2008-02-10  Jim Meyering  <meyering@redhat.com>
56279
56280         New script and module: useless-if-before-free
56281         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56282         * build-aux/useless-if-before-free: New file.
56283         * modules/useless-if-before-free: New file.
56284
56285         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56286
56287         xstrtol_error: Fix typo.
56288         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56289         s/exit_failure/exit_status/.
56290
56291 2008-02-09  Jim Meyering  <meyering@redhat.com>
56292
56293         New script and module: gitlog-to-changelog
56294         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56295         * modules/gitlog-to-changelog: New file.
56296         * build-aux/gitlog-to-changelog: New file.
56297
56298 2008-02-08  Jim Meyering  <meyering@redhat.com>
56299
56300         Avoid two "parameter unused" warnings.
56301         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56302         Mark "st" as used.
56303
56304         Use "git COMMAND", not "git-COMMAND".
56305         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56306         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56307         * build-aux/git-version-gen: Use "git status", not "git-status".
56308
56309 2008-02-07  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56312         Avoids a crash on Windows Vista.
56313         Reported by Adam Strzelecki <ono@java.pl> via
56314         Simon Josefsson <simon@josefsson.org>.
56315
56316 2008-02-06  Bruno Haible  <bruno@clisp.org>
56317
56318         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56319         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56320         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56322         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56323         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56324         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56325         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56326         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56327         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56328         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56329         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56330         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56331         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56332         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56333         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56334         left-adjust flag.
56335         * tests/test-snprintf-posix.h (test_function): Likewise.
56336         * tests/test-sprintf-posix.h (test_function): Likewise.
56337         * tests/test-vasprintf-posix.c (test_function): Likewise.
56338         * doc/posix-functions/fprintf.texi: Update.
56339         * doc/posix-functions/printf.texi: Update.
56340         * doc/posix-functions/snprintf.texi: Update.
56341         * doc/posix-functions/sprintf.texi: Update.
56342         * doc/posix-functions/vfprintf.texi: Update.
56343         * doc/posix-functions/vprintf.texi: Update.
56344         * doc/posix-functions/vsnprintf.texi: Update.
56345         * doc/posix-functions/vsprintf.texi: Update.
56346         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56347
56348 2008-02-06  Bruno Haible  <bruno@clisp.org>
56349
56350         Fix bug introduced on 2008-01-26.
56351         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56352
56353 2008-02-06  Bruno Haible  <bruno@clisp.org>
56354
56355         Fix bug introduced on 2007-06-10.
56356         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56357         !NEED_PRINTF_FLAG_ZERO.
56358
56359 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56360
56361         getloadavg: use libperfstat on AIX5
56362         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56363
56364 2008-02-03  Bruno Haible  <bruno@clisp.org>
56365
56366         * lib/diffseq.h: Add comments about required #includes.
56367         Reported by Michael Biggs <gnulib@doubleplum.net>.
56368
56369 2008-02-01  Bruno Haible  <bruno@clisp.org>
56370
56371         * users.txt: Add gnuit.
56372
56373 2008-01-31  Bruno Haible  <bruno@clisp.org>
56374
56375         * lib/md4.c (set_uint32): Mark as inline.
56376         * lib/md5.c (set_uint32): Likewise.
56377         * lib/sha1.c (set_uint32): Likewise.
56378         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56379         * m4/md5.m4 (gl_MD5): Likewise.
56380         * m4/sha1.m4 (gl_SHA1): Likewise.
56381
56382 2008-01-31  Jim Meyering  <meyering@redhat.com>
56383
56384         Use "sizeof VAR", rather than a literal "4".
56385         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56386         * lib/md4.c (md4_read_ctx): Likewise.
56387         * lib/sha1.c (sha1_read_ctx): Likewise.
56388
56389 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56390
56391         * tests/test-sha1.c: New file, based on test-md5.c.
56392
56393         * modules/crypto/sha1-tests: New file.
56394
56395 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56396
56397         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56398
56399 2008-01-31  Jim Meyering  <meyering@redhat.com>
56400
56401         Prefer "sizeof v" over the equivalent "4".
56402         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56403         * lib/md5.c (set_uint32): Likewise.
56404         * lib/sha1.c (set_uint32): Likewise.
56405
56406 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56407
56408         * lib/sha1.c (set_uint32): Mark function as static.
56409
56410 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56411
56412         md2: clarify comments to say that alignment is not required.
56413         * lib/md2.h: Remove warning about alignment in comment.
56414         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56415         never been required.
56416
56417 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56418
56419         md4: adapt alignment constraint fix from sha1.
56420         * lib/md4.c (set_uint32): New function, from sha1.c
56421         (md4_read_ctx): Use it.
56422         (md4_finish_ctx): Doc fix.
56423         * lib/md4.h: Doc fix.
56424
56425 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56426
56427         md5: adapt alignment constraint fix from sha1.
56428         * lib/md5.c (set_uint32): New function, from sha1.c
56429         (md5_read_ctx): Use it.
56430         (md5_finish_ctx): Doc fix.
56431         * lib/md5.h: Doc fix.
56432
56433 2008-01-30  Peter Palfrader  <weasel@debian.org>
56434
56435         sha1: remove the result buffer alignment constraint
56436         * lib/sha1.c (set_uint32): New function.
56437         (sha1_read_ctx): Rewrite to remove the result buffer alignment
56438         constraint.
56439         (sha1_finish_ctx): Remove comment warning about alignment constraint.
56440         * lib/sha1.h: Likewise.
56441
56442 2008-01-30  Andreas Schwab  <schwab@suse.de>
56443             Bruno Haible  <bruno@clisp.org>
56444
56445         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
56446         correct definition of LDBL_MIN_EXP.
56447
56448 2008-01-30  Karl Berry  <karl@gnu.org>
56449
56450         * config/srclist-update: try to preserve x bit on updates.
56451         * config/srclistvars.sh: update for karl.
56452
56453 2008-01-29  Jim Meyering  <meyering@redhat.com>
56454
56455         vasnprintf.c: Avoid warning about unused label
56456         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
56457         "overflow" label definition and associated code with the
56458         same cpp condition that guards the sole use of that label.
56459
56460 2008-01-26  Bruno Haible  <bruno@clisp.org>
56461
56462         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
56463         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
56464         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
56465         * lib/isnanl-nolibm.h (isnanl): Likewise.
56466         Reported by Paul Eggert <eggert@cs.ucla.edu>.
56467
56468 2008-01-26  Bruno Haible  <bruno@clisp.org>
56469
56470         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
56471         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
56472
56473 2008-01-26  Bruno Haible  <bruno@clisp.org>
56474
56475         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
56476         GCC >= 4.0 built-in.
56477         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
56478
56479 2008-01-26  Bruno Haible  <bruno@clisp.org>
56480
56481         Rename isnan, applicable to 'double' only, to isnand.
56482         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
56483         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
56484         (configure.ac): Update.
56485         (Include): Replace "isnan.h" with "isnand.h".
56486         * m4/isnand.m4: Renamed from m4/isnan.m4.
56487         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
56488         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
56489         instead of isnan.c.
56490         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
56491         instead of HAVE_ISNAN_IN_LIBC.
56492         (isnand): Renamed from isnan.
56493         * lib/isnand.c: New file.
56494         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
56495         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
56496         (Makefile.am): Update.
56497         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
56498         Include isnand.h instead of isnan.h.
56499         (main): Test isnand instead of isnan.
56500         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
56501         isnan-nolibm.
56502         * modules/frexp (Depends-on): Likewise.
56503         * modules/frexp-tests (Depends-on): Likewise.
56504         * modules/frexp-nolibm (Depends-on): Likewise.
56505         * modules/frexp-nolibm-tests (Depends-on): Likewise.
56506         * modules/isfinite (Depends-on): Likewise.
56507         * modules/round-tests (Depends-on): Likewise.
56508         * modules/signbit (Depends-on): Likewise.
56509         * modules/signbit-tests (Depends-on): Likewise.
56510         * modules/snprintf-posix (Depends-on): Likewise.
56511         * modules/sprintf-posix (Depends-on): Likewise.
56512         * modules/trunc-tests (Depends-on): Likewise.
56513         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56514         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56515         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56516         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56517         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56518         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56519         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56520         * modules/vasnprintf-posix (Depends-on): Likewise.
56521         * modules/vasprintf-posix (Depends-on): Likewise.
56522         * modules/vfprintf-posix (Depends-on): Likewise.
56523         * modules/vsnprintf-posix (Depends-on): Likewise.
56524         * modules/vsprintf-posix (Depends-on): Likewise.
56525         * lib/frexp.c: Include isnand.h instead of isnan.h.
56526         (ISNAN): Set to isnand instead of isnan.
56527         * lib/isfinite.c: Include isnand.h instead of isnan.h.
56528         (gl_isfinited): Use isnand instead of isnan.
56529         * lib/signbitd.c: Include isnand.h instead of isnan.h.
56530         (gl_signbitd): Use isnand instead of isnan.
56531         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
56532         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
56533         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
56534         (main): Use isnand instead of isnan.
56535         * tests/test-round1.c: Include isnand.h.
56536         (main): Use isnand instead of isnan.
56537         * tests/test-round2.c: Include isnand.h instead of isnan.h.
56538         (ISNAN): Set to isnand instead of isnan.
56539         * tests/test-trunc1.c: Include isnand.h.
56540         (main): Use isnand instead of isnan.
56541         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
56542         (equal): Use isnand instead of isnan.
56543         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
56544         isnand-nolibm.
56545         * NEWS: Mention the change.
56546
56547 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
56548             Bruno Haible  <bruno@clisp.org>
56549
56550         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
56551         the GCC builtins for signbits are present and set
56552         REPLACE_SIGNBIT_USING_GCC if so.
56553         * lib/math.in.h (signbit): Define using GCC builtins if
56554         REPLACE_SIGNBIT_USING_GCC is set.
56555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
56556         REPLACE_SIGNBIT_USING_GCC.
56557         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
56558
56559 2008-01-25  Jim Meyering  <meyering@redhat.com>
56560
56561         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
56562         * lib/poll.c: Include <config.h>, not "config.h".
56563         * tests/test-getaddrinfo.c: Likewise.
56564
56565 2008-01-25  Simon Josefsson  <simon@josefsson.org>
56566
56567         * modules/sockets-tests: New file.
56568
56569 2008-01-24  Simon Josefsson  <simon@josefsson.org>
56570
56571         * modules/sockets: New module, can be used to call WSA_Startup and
56572         WSA_Cleanup when needed.
56573
56574         * lib/sockets.h, lib/sockets.c: New files.
56575
56576         * m4/sockets.m4: New file.
56577
56578         * tests/test-sockets.c: New file.
56579
56580 2008-01-19  Bruno Haible  <bruno@clisp.org>
56581
56582         * doc/posix-headers: Renamed from doc/headers.
56583         * doc/posix-functions: Renamed from doc/functions.
56584         * doc/gnulib.texi: Update.
56585
56586 2008-01-19  Bruno Haible  <bruno@clisp.org>
56587
56588         * doc/glibc-functions/strcasestr.texi: Include contents of
56589         doc/functions/strcasestr.texi, fixing the list of platforms.
56590         * doc/functions/strcasestr.texi: Remove file.
56591
56592 2008-01-19  Bruno Haible  <bruno@clisp.org>
56593
56594         * doc/glibc-functions/memmem.texi: Include contents of
56595         doc/functions/memmem.texi.
56596         * doc/functions/memmem.texi: Remove file.
56597
56598 2008-01-18  Bruno Haible  <bruno@clisp.org>
56599
56600         * doc/glibc-functions/*.texi: New files.
56601         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
56602         to use the new files.
56603
56604 2008-01-17  Bruno Haible  <bruno@clisp.org>
56605
56606         * tests/test-gethostname.c (main): Fix printf statement.
56607
56608 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56609
56610         * modules/gethostname-tests: New file.
56611
56612         * tests/test-gethostname.c: New file.
56613
56614 2008-01-17  Simon Josefsson  <simon@josefsson.org>
56615
56616         * lib/gethostname.c: Include string.h unconditionally, strncpy is
56617         used by the UNAME case.  Reported by Bruno Haible
56618         <bruno@clisp.org>.
56619
56620 2008-01-17  Eric Blake  <ebb9@byu.net>
56621
56622         Convert c-strcasestr to be more efficient.
56623         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
56624         (Depends-on): Add c-strcase, remove malloca, strnlen.
56625         * tests/test-c-strcasestr.c (main): Enhance test.
56626         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
56627
56628 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
56629
56630         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
56631         Use it in creating po/Makevars.
56632
56633 2008-01-15  Simon Josefsson  <simon@josefsson.org>
56634
56635         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
56636         Applications that requires it should initialize libgcrypt
56637         manually.
56638
56639 2008-01-16  Simon Josefsson  <simon@josefsson.org>
56640
56641         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
56642
56643 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
56644
56645         Fix problem with getdate on mingw32 reported by Simon Josefsson
56646         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
56647         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
56648         tzname", when deciding whether to declare tzname.
56649         * lib/strftime.c (tzname): Likewise.
56650
56651 2008-01-15  Bruno Haible  <bruno@clisp.org>
56652
56653         Work around a MacOS X 10.5 bug in frexpl().
56654         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
56655         * doc/functions/frexpl.texi: Document the bug.
56656         Reported by Elias Pipping <pipping@gentoo.org>.
56657
56658 2008-01-14  Eric Blake  <ebb9@byu.net>
56659
56660         Touch up previous patch.
56661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
56662         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
56663
56664         Convert strcasestr module to use Two-Way algorithm.
56665         * modules/strcasestr-simple: New module, based on the old
56666         strcasestr, but with Two-Way rather than KMP.
56667         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
56668         * lib/string.in.h (rpl_strcasestr): Declare.
56669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
56670         performance.
56671         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
56672         * modules/string (Makefile.am): Support strcasestr.
56673         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
56674         * modules/strcasestr-tests (Depends-on): Check for alarm.
56675         * tests/test-strcasestr.c: Augment test.
56676         * lib/str-two-way.h: Clean up stray macro.
56677         * NEWS: Document new module.
56678         * MODULES.html.sh (string handling): Likewise.
56679         * doc/functions/strcasestr.texi: New file.
56680         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
56681         here, since it is not a POSIX function.
56682
56683 2008-01-14  Colin Watson  <cjwatson@debian.org>
56684             Bruno Haible  <bruno@clisp.org>
56685
56686         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
56687         works fine; if not, set REPLACE_STRSIGNAL.
56688         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
56689         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56690         REPLACE_STRSIGNAL.
56691         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
56692         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
56693         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
56694
56695 2008-01-14  Bruno Haible  <bruno@clisp.org>
56696
56697         * modules/strsignal (Include): Change to <string.h>.
56698
56699 2008-01-14  Colin Watson  <cjwatson@debian.org>
56700
56701         * modules/argp (Notice): Add a notice recommending to change
56702         XGETTEXT_OPTIONS.
56703         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
56704
56705 2008-01-13  Colin Watson  <cjwatson@debian.org>
56706
56707         * modules/strsignal-tests: New file.
56708         * tests/test-strsignal.c: New file.
56709
56710         * lib/strsignal.c: New file, from glibc with modifications.
56711         * lib/siglist.h: New file, from glibc with modifications.
56712         * lib/string.in.h (strsignal): New declaration.
56713         * m4/strsignal.m4: New file.
56714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56715         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
56716         * modules/strsignal: New file.
56717         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
56718         HAVE_DECL_STRSIGNAL.
56719
56720 2008-01-13  Bruno Haible  <bruno@clisp.org>
56721
56722         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
56723         locale encoding is not ASCII. Needed for OpenBSD 4.0.
56724         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
56725         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
56726
56727 2008-01-13  Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
56730         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
56731         * lib/argp.h (__attribute__): Likewise.
56732         * lib/c-stack.c (__attribute__): Likewise.
56733         * lib/error.h (__attribute__): Likewise.
56734         * lib/fts.c (__attribute__): Likewise.
56735         * lib/openat.h (__attribute__): Likewise.
56736         * lib/stdio.in.h (__attribute__): Likewise.
56737         * lib/string.in.h (__attribute__): Likewise.
56738         * lib/utimens.c (__attribute__): Likewise.
56739         * lib/vasnprintf.h (__attribute__): Likewise.
56740         * lib/xalloc.h (__attribute__): Likewise.
56741         * lib/xprintf.h (__attribute__): Likewise.
56742         * lib/xstrtol.h (__attribute__): Likewise.
56743         * lib/xvasprintf.h (__attribute__): Likewise.
56744
56745 2008-01-12  Bruno Haible  <bruno@clisp.org>
56746
56747         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
56748         * doc/glibc-headers/a.out.texi: New file.
56749         * doc/glibc-headers/aliases.texi: New file.
56750         * doc/glibc-headers/alloca.texi: New file.
56751         * doc/glibc-headers/ar.texi: New file.
56752         * doc/glibc-headers/argp.texi: New file.
56753         * doc/glibc-headers/argz.texi: New file.
56754         * doc/glibc-headers/byteswap.texi: New file.
56755         * doc/glibc-headers/crypt.texi: New file.
56756         * doc/glibc-headers/endian.texi: New file.
56757         * doc/glibc-headers/envz.texi: New file.
56758         * doc/glibc-headers/err.texi: New file.
56759         * doc/glibc-headers/error.texi: New file.
56760         * doc/glibc-headers/execinfo.texi: New file.
56761         * doc/glibc-headers/fpu_control.texi: New file.
56762         * doc/glibc-headers/fstab.texi: New file.
56763         * doc/glibc-headers/fts.texi: New file.
56764         * doc/glibc-headers/getopt.texi: New file.
56765         * doc/glibc-headers/ieee754.texi: New file.
56766         * doc/glibc-headers/ifaddrs.texi: New file.
56767         * doc/glibc-headers/libintl.texi: New file.
56768         * doc/glibc-headers/mcheck.texi: New file.
56769         * doc/glibc-headers/mntent.texi: New file.
56770         * doc/glibc-headers/obstack.texi: New file.
56771         * doc/glibc-headers/paths.texi: New file.
56772         * doc/glibc-headers/printf.texi: New file.
56773         * doc/glibc-headers/pty.texi: New file.
56774         * doc/glibc-headers/resolv.texi: New file.
56775         * doc/glibc-headers/shadow.texi: New file.
56776         * doc/glibc-headers/sysexits.texi: New file.
56777         * doc/glibc-headers/ttyent.texi: New file.
56778
56779 2008-01-12  Jim Meyering  <meyering@redhat.com>
56780
56781         announce-gen: emit Gnulib's git-based version string.
56782         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
56783         New option --gnulib-version=V, where V is expected to be
56784         the output of running git describe in the gnulib directory.
56785         (get_tool_versions): Request feedback on xdelta.  I suspect it's
56786         not useful, and plan to stop publishing an xdelta file with each
56787         coreutils release.
56788
56789         * build-aux/announce-gen: Also check for lzma-compressed files.
56790
56791 2008-01-11  Bruno Haible  <bruno@clisp.org>
56792
56793         * tests/test-memmem.c (main): Increase maximum allowed time.
56794         * tests/test-strstr.c (main): Likewise.
56795
56796 2008-01-11  Bruno Haible  <bruno@clisp.org>
56797
56798         * doc/functions/memmem.texi: Add more precisions about platforms.
56799         * doc/functions/strstr.texi: Likewise.
56800
56801 2008-01-10  Eric Blake  <ebb9@byu.net>
56802
56803         * m4/strstr.m4: Delete cruft from copy-n-paste.
56804         Reported by Bruno Haible.
56805
56806 2008-01-10  Bruno Haible  <bruno@clisp.org>
56807
56808         Make c-strstr rely on strstr.
56809         * lib/c-strstr.c: Don't include str-kmp.h.
56810         (c_strstr): Define in terms of strstr.
56811         * modules/c-strstr (Files): Remove lib/str-kmp.h.
56812         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
56813
56814 2008-01-10  Bruno Haible  <bruno@clisp.org>
56815
56816         * doc/gnulib.texi (String Functions in C Locale): New section.
56817         * doc/c-ctype.texi: New file.
56818         * doc/c-strcase.texi: New file.
56819         * doc/c-strcaseeq.texi: New file.
56820         * doc/c-strcasestr.texi: New file.
56821         * doc/c-strstr.texi: New file.
56822         * doc/c-strtod.texi: New file.
56823         * doc/c-strtold.texi: New file.
56824
56825 2008-01-10  Eric Blake  <ebb9@byu.net>
56826
56827         * lib/relocatable.h: Fix a comment.
56828
56829 2008-01-10  Eric Blake  <ebb9@byu.net>
56830
56831         Share two-way algorithm.
56832         * lib/str-two-way.h: New file, merged from...
56833         * lib/memmem.c: ...here...
56834         * lib/strstr.c: ...and here.
56835         * modules/memmem (Files): Use it.
56836         * modules/strstr (Files): Likewise.
56837
56838         Avoid quadratic strstr implementations.
56839         * lib/strstr.c: New file.
56840         * m4/strstr.m4: Likewise.
56841         * modules/strstr: Likewise.
56842         * modules/strstr-tests: Likewise.
56843         * tests/test-strstr.c: Likewise.
56844         * lib/string.in.h (rpl_strstr): Declare.
56845         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
56846         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
56847         * modules/string (Makefile.am): Likewise.
56848         * MODULES.html.sh (string handling): Mention new module.
56849         * doc/functions/strstr.texi (strstr): Document the bug.
56850
56851 2008-01-10  Bruno Haible  <bruno@clisp.org>
56852
56853         * lib/relocatable.h (relocate): State whether result is freshly
56854         allocated or not.
56855         * lib/relocatable.c (relocate): Return a freshly allocated string
56856         instead of a pointer to a privately held string.
56857         Reported by Sylvain Beucler <beuc@gnu.org>.
56858
56859 2008-01-10  Colin Watson  <cjwatson@debian.org>
56860
56861         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
56862         s/S_ISNLK/S_ISLNK/.
56863
56864 2008-01-09  Bruno Haible  <bruno@clisp.org>
56865
56866         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
56867         and other files.
56868         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
56869         if it's only a guess.
56870         * modules/memmem: Simplify by depending on memmem-simple.
56871
56872 2008-01-09  Bruno Haible  <bruno@clisp.org>
56873
56874         Work around OpenBSD 4.0 tdelete() bug.
56875         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
56876         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
56877         macros and don't redefine the enum values.
56878         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
56879         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
56880         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
56881
56882 2008-01-09  Bruno Haible  <bruno@clisp.org>
56883
56884         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
56885         (main): Don't perform the tests if setlocale did not install a UTF-8
56886         locale. Needed on OpenBSD 4.0.
56887         * modules/wcwidth-tests (Depends-on): Add localcharset.
56888
56889 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56890
56891         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
56892         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
56893         * NEWS: announce this.
56894         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
56895
56896 2008-01-09  Simon Josefsson  <simon@josefsson.org>
56897         and Eric Blake  <ebb9@byu.net>
56898
56899         Add memmem-simple module.
56900         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
56901         (gl_FUNC_MEMMEM): Separate performance from presence checks.
56902         * modules/memmem-simple: New file.
56903         * modules/memmem (Description): Tweak.
56904         * MODULES.html.sh (string handling): Mention new module.
56905         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
56906         addressed by memmem-simple.
56907         * NEWS: Document the difference.
56908
56909 2008-01-09  Eric Blake  <ebb9@byu.net>
56910
56911         Give gcc some memmem optimization hints.
56912         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
56913         (strcasestr): Declare as pure.
56914         * modules/memmem (Maintainer): Claim my implementation.
56915
56916 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56917
56918         Support AIX 6.1 and higher.
56919         * build-aux/config.libpath: Likewise.
56920         * build-aux/config.rpath: Likewise.
56921
56922 2008-01-08  Jim Meyering  <meyering@redhat.com>
56923             Bruno Haible  <bruno@clisp.org>
56924
56925         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
56926         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
56927         Reported by Peter Fales in
56928         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
56929
56930 2008-01-08  Bruno Haible  <bruno@clisp.org>
56931
56932         * modules/unictype/category-of (Depends-on): Add
56933         unictype/category-none.
56934         * modules/unictype/category-and-tests (Depends-on): Add
56935         unictype/category-{L,N,Lu,Nd}.
56936         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
56937         * modules/unictype/category-or-tests (Depends-on): Add
56938         unictype/category-{L,N}.
56939         * modules/unictype/category-name-tests (Depends-on): Add
56940         unictype/category-{Z,Nl}.
56941         Reported by Simon Josefsson.
56942
56943 2008-01-08  Bruno Haible  <bruno@clisp.org>
56944
56945         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
56946         convention better.
56947         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
56948         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
56949         Reported by Peter Miller <millerp@canb.auug.org.au>.
56950
56951 2008-01-08  Eric Blake  <ebb9@byu.net>
56952
56953         Rewrite memmem to guarantee linear complexity without malloc.
56954         * lib/memmem.c (memmem): Use Two-Way rather than
56955         Knuth-Morris-Pratt, to allow O(1) space usage.
56956         (critical_factorization, two_way_short_needle)
56957         (two_way_long_needle): New functions.
56958         (knuth_morris_pratt): Delete.
56959         * modules/memmem (Depends-on): No longer need malloca or stdbool.
56960         Add stdint.
56961         * tests/test-memmem.c (main): Add tests for periodic needle and
56962         sublinear performance.
56963         * doc/functions/memmem.texi (memmem): Document other deficiencies
56964         in cygwin and older glibc.
56965
56966 2008-01-08  Bruno Haible  <bruno@clisp.org>
56967
56968         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
56969         augmentation.
56970
56971 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
56972
56973         Add a configure time option: --disable-acl.
56974         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
56975         AC_ARG_ENABLE(acl).
56976
56977 2008-01-06  Simon Josefsson  <simon@josefsson.org>
56978
56979         * tests/test-localename.c: Don't include obsolete "setenv.h".
56980
56981         * modules/localename-tests (Depends-on): Need unsetenv.
56982
56983 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56984
56985         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
56986
56987 2008-01-06  Colin Watson  <cjwatson@debian.org>
56988
56989         * users.txt: Add man-db.
56990
56991 2008-01-07  Bruno Haible  <bruno@clisp.org>
56992
56993         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
56994         previous section name.
56995
56996 2008-01-07  Bruno Haible  <bruno@clisp.org>
56997
56998         * lib/progname.c (set_program_name): Don't strip off a leading
56999         "lt-" prefix outside a .libs directory.
57000         Suggested by Paul Eggert.
57001
57002 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57003             Bruno Haible  <bruno@clisp.org>
57004
57005         Improve memory cleanup in 'relocatable' module.
57006         * lib/relocatable.h (compute_curr_prefix): Change return type to
57007         'char *'.
57008         * lib/relocatable.c (compute_curr_prefix): Change return type to
57009         'char *'. Free curr_installdir after use.
57010         (relocate): Free curr_prefix_better after use.
57011         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57012
57013 2008-01-01  Bruno Haible  <bruno@clisp.org>
57014
57015         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57016         failure on older glibc systems.
57017         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57018
57019 2008-01-05  Eric Blake  <ebb9@byu.net>
57020
57021         Avoid quadratic system memmem.
57022         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57023         Reported by Ralf Wildenhues.
57024
57025         Fix memmem test for mingw.
57026         * modules/memmem-tests (configure.ac): Check for alarm.
57027         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57028         it.
57029         * doc/functions/memmem.texi: New file.
57030         * doc/gnulib.texi (Function Substitutes): Add memmem.
57031         Reported by Bruno Haible.
57032
57033 2008-01-04  Bruno Haible  <bruno@clisp.org>
57034
57035         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57036         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57037         gl_HEADER_STRING_H_DEFAULTS.
57038
57039 2008-01-04  Eric Blake  <ebb9@byu.net>
57040
57041         Shorten duration of memmem test.
57042         * tests/test-memmem.c (main): Use alarm to declare failure if test
57043         is taking too long.
57044         Reported by Ralf Wildenhues.
57045
57046 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57047
57048         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57049         string, needed by strerror.
57050
57051 2008-01-03  Colin Watson  <cjwatson@debian.org>
57052             Bruno Haible  <bruno@clisp.org>
57053
57054         * doc/gnulib-tool.texi (Localization): New section.
57055
57056 2008-01-02  Bruno Haible  <bruno@clisp.org>
57057
57058         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57059         variables to 'unsigned char *' type.
57060         Reported by Paul Eggert.
57061
57062 2008-01-02  Jim Meyering  <jim@meyering.net>
57063
57064         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57065
57066 2007-12-31  Jim Meyering  <jim@meyering.net>
57067
57068         Avoid use of private FTS type name.
57069         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57070
57071 2007-12-30  Karl Berry  <karl@gnu.org>
57072
57073         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57074         work around defect in Texinfo and/or the standalone Info browser.
57075
57076 2007-12-30  Bruno Haible  <bruno@clisp.org>
57077
57078         Unify 5 copies of the KMP code.
57079         * lib/str-kmp.h: New file.
57080         * lib/c-strcasestr.c: Include str-kmp.h.
57081         (knuth_morris_pratt): Remove function.
57082         (c_strcasestr): Update.
57083         * lib/c-strstr.c: Include str-kmp.h.
57084         (knuth_morris_pratt): Remove function.
57085         (c_strcasestr): Update.
57086         * lib/mbscasestr.c: Include str-kmp.h.
57087         (knuth_morris_pratt_unibyte): Remove function.
57088         * lib/mbsstr.c: Include str-kmp.h.
57089         (knuth_morris_pratt_unibyte): Remove function.
57090         * lib/strcasestr.c: Include str-kmp.h.
57091         (knuth_morris_pratt): Remove function.
57092         (strcasestr): Update.
57093         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57094         * modules/c-strstr (Files): Likewise.
57095         * modules/mbscasestr (Files): Likewise.
57096         * modules/mbsstr (Files): Likewise.
57097         * modules/strcasestr (Files): Likewise.
57098         Suggested by Paul Eggert.
57099
57100 2007-12-30  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57103         defined.
57104
57105 2007-12-30  Bruno Haible  <bruno@clisp.org>
57106
57107         * lib/xmalloca.h: Include xalloc.h.
57108         (xnmalloca): New macro.
57109
57110 2007-12-30  Bruno Haible  <bruno@clisp.org>
57111
57112         * lib/malloca.h (nmalloca): New macro.
57113         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57114         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57115         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57116         knuth_morris_pratt_multibyte): Likewise.
57117         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57118         knuth_morris_pratt_multibyte): Likewise.
57119         * lib/memmem.c (knuth_morris_pratt): Likewise.
57120         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57121
57122 2007-12-25  Bruno Haible  <bruno@clisp.org>
57123
57124         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57125         * lib/glob.c: Don't include openat.h.
57126         (link_exists2_p): Add back the code that deals with the
57127         !GLOB_ALTDIRFUNC case.
57128         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57129         let it do the filename concatenation.
57130         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57131         * modules/glob (Depends-on): Remove openat.
57132
57133 2007-12-31  Bruno Haible  <bruno@clisp.org>
57134
57135         * modules/dirfd (License): Change to LGPLv2+.
57136         Approved by Jim Meyering.
57137
57138 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57139
57140         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57141         when multiplying M by sizeof (size_t).
57142
57143 2007-12-10  Martin Lambers  <marlam@marlam.de>
57144
57145         Override getpagesize on mingw.
57146         * lib/getpagesize.c: New file.
57147         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57148         * modules/getpagesize (Files): Add lib/getpagesize.c.
57149         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57150         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57151         REPLACE_GETPAGESIZE.
57152         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57153
57154 2007-12-25  Bruno Haible  <bruno@clisp.org>
57155
57156         * modules/localcharset (Notice): New field.
57157         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57158         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57159
57160 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57161             Bruno Haible  <bruno@clisp.org>
57162
57163         Avoid using the syntax symbol() in formatted documentation.
57164         * MODULES.html.sh (func_module): When replacing symbol() with a
57165         hyperlink, remove the parentheses. Show an error if some remain.
57166         Recognize and render the '...' syntax.
57167         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57168         Rework. Add paragraph about GCC's inlining.
57169         * doc/alloca.texi: Likewise.
57170         * doc/error.texi: Remove parentheses from symbol reference.
57171         * doc/gnulib-intro.texi: Likewise.
57172         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57173         * modules/fnmatch (Description): Reword to say "the ... function".
57174         * modules/full-read (Description): Likewise.
57175         * modules/full-write (Description): Likewise.
57176         * modules/safe-read (Description): Likewise.
57177         * modules/safe-write (Description): Likewise.
57178         * modules/strchrnul (Description): Likewise.
57179         * modules/trim (Description): Likewise.
57180         * modules/error (Description): Remove parentheses from symbol
57181         references.
57182         * modules/verror (Description): Likewise.
57183         Reported by Karl Berry.
57184
57185 2007-12-25  Bruno Haible  <bruno@clisp.org>
57186
57187         Fixup after 2007-10-16 commit.
57188         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57189
57190 2007-12-24  Bruno Haible  <bruno@clisp.org>
57191
57192         Make --enable-relocatable work with DESTDIR.
57193         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57194         to compute installdir from destprog.
57195         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57196         also set the RELOC_DESTDIR variable.
57197         Reported by Левашев Иван <octagram@bluebottle.com>.
57198
57199 2007-12-24  Bruno Haible  <bruno@clisp.org>
57200
57201         Fix link error due to xalloc_die().
57202         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57203         of xreadlink.
57204         * lib/relocwrapper.c: Update comments.
57205         * build-aux/install-reloc: Remove xreadlink.c from file list.
57206         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57207         xreadlink.c.
57208         Reported by Левашев Иван <octagram@bluebottle.com>.
57209
57210 2007-12-24  Bruno Haible  <bruno@clisp.org>
57211
57212         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57213         * lib/setenv.h: Remove file.
57214         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57215         lib/setenv.h.
57216         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57217         (Depends-on): Add stdlib.
57218         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57219         gl_FUNC_UNSETENV.
57220         (Include): Replace setenv.h with <stdlib.h>.
57221         * modules/unsetenv: New file.
57222         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57223         * lib/unsetenv.c: Include <stdlib.h> first.
57224         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57225         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57226         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57227         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57228         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57229         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57230         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57231         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57232         * doc/functions/unsetenv.texi: Update.
57233         * modules/xsetenv (Depends-on): Add unsetenv.
57234         * modules/getdate (Depends-on): Likewise.
57235         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57236         * lib/xsetenv.c: Don't include setenv.h.
57237         * lib/getdate.y: Likewise.
57238         * lib/relocwrapper.c: Likewise.
57239         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57240         (Depends-on): Add stdlib.
57241         * NEWS: Mention the changes.
57242         Reported by Левашев Иван <octagram@bluebottle.com>.
57243
57244 2007-12-23  Bruno Haible  <bruno@clisp.org>
57245
57246         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57247         indentation.
57248
57249 2007-12-23  Bruno Haible  <bruno@clisp.org>
57250
57251         * lib/c-strcasestr.c: Add more comments.
57252         * lib/c-strstr.c: Likewise.
57253         * lib/mbscasestr.c: Likewise.
57254         * lib/mbsstr.c: Likewise.
57255         * lib/strcasestr.c: Likewise.
57256         * lib/memmem.c: Likewise.
57257
57258 2007-12-23  Bruno Haible  <bruno@clisp.org>
57259
57260         * tests/test-memmem.c: Include <string.h> first.
57261
57262 2007-12-22  Bruno Haible  <bruno@clisp.org>
57263
57264         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57265         the contents of $testsbase.
57266         Reported by Ralf Wildenhues.
57267
57268 2007-12-22  Bruno Haible  <bruno@clisp.org>
57269
57270         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57271         two variables local_ldadd_before, local_ldadd_last.
57272
57273 2007-12-20  Eric Blake  <ebb9@byu.net>
57274
57275         Work around circular library issue when cross-compiling.
57276         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57277         that progname.o does not need to pull in rpl_memcmp.
57278
57279 2007-12-19  Eric Blake  <ebb9@byu.net>
57280
57281         Fix memmem to avoid O(n^2) worst-case complexity.
57282         * lib/memmem.c (knuth_morris_pratt): New function.
57283         (memmem): Use it if first few naive iterations fail.
57284         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57285         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57286         * modules/memchr (License): Likewise.
57287         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57288         malloca.
57289         * tests/test-memmem.c: Rewrite, borrowing ideas from
57290         test-mbsstr1.c; the old version wouldn't even compile!
57291         * modules/memmem-tests: New file.
57292         * lib/string.in.h (rpl_memmem): Add declaration.
57293         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57295         REPLACE_MEMMEM.
57296
57297 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57298
57299         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57300         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57301         before any system include files, and undef after them all.  This
57302         should fix a problem on VMS reported by John E. Malmberg in
57303         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57304
57305 2007-12-17  Eric Blake  <ebb9@byu.net>
57306
57307         Revert addition of verify, for BSD/OS.
57308         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57309         can't handle large files, for the sake of obsolete platforms.
57310         * modules/fseeko (Depends-on): Remove verify.
57311         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57312         * doc/functions/ftello.texi (ftello): Likewise.
57313         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57314         Reported by Larry Jones.
57315
57316 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57317
57318         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57319         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57320
57321 2007-12-17  Jim Meyering  <meyering@redhat.com>
57322
57323         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57324         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57325         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57326         * modules/getcwd (Depends-on): Add openat.
57327         Reported by Petr Salinger.
57328
57329 2007-12-17  Bruno Haible  <bruno@clisp.org>
57330
57331         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57332         avoid a segmentation fault of the configure test on x86_64 systems.
57333
57334 2007-12-15  Jim Meyering  <meyering@redhat.com>
57335
57336         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57337
57338 2007-12-13  Eric Blake  <ebb9@byu.net>
57339
57340         Another fseek test.
57341         * tests/test-fseek.c (main): Also test ungetc handling.
57342         * tests/test-fseeko.c (main): Likewise.
57343         * modules/fseeko (Depends-on): Add verify.
57344         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57345         large.
57346         Reported by Larry Jones.
57347
57348         Fix fseeko on mingw.
57349         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57350         seek.
57351
57352         Beef up fseek tests.
57353         * tests/test-fseek.c (main): Also test eof handling.
57354         * tests/test-fseeko.c (main): Likewise.
57355         Reported by Larry Jones.
57356
57357 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57358
57359         Fix fseeko on BSD-based platforms.
57360         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57361         successful seek.
57362
57363 2007-12-12  Eric Blake  <ebb9@byu.net>
57364
57365         Allow circular dependency of separate libtests.a
57366         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57367         when use_libtests.
57368
57369 2007-12-11  Eric Blake  <ebb9@byu.net>
57370
57371         Fix bug with -0.0L in previous patch.
57372         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57373         * tests/test-isnan.c (main): Also test on zeroes.
57374         * tests/test-isnanf.c (main): Likewise.
57375         * tests/test-isnanl.h (main): Likewise.
57376
57377         Detect pseudo-denormals on x86 even when cross-compiling.
57378         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57379         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57380         invalid bit patterns that happen to satisfy ==.
57381
57382         Avoid link failures with separate libtests.a.
57383         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57384         last, to satisfy circular dependencies.
57385
57386 2007-12-11  Eric Blake  <ebb9@byu.net>
57387         and Bruno Haible  <bruno@clisp.org>
57388
57389         Fix OpenBSD 4.0 <float.h> handling of long double.
57390         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57391         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57392         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57393
57394 2007-12-11  Jim Meyering  <meyering@redhat.com>
57395
57396         * users.txt: Add libvirt.
57397
57398         Support versions of autoconf prior to 2.59c.
57399         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57400         if it is not already defined.
57401
57402 2007-12-09  Bruno Haible  <bruno@clisp.org>
57403
57404         Let 'gnulib-tool --import' collect sources needed for the tests in
57405         tests/ rather than in lib/.
57406         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57407         argument. If true, add rules to generate libtests.a, and put libtests.a
57408         into $(LDADD). Consider source files in subdirectories and set
57409         uses_subdirs.
57410         (func_emit_initmacro_start, func_emit_initmacro_end,
57411         func_emit_initmacro_done): Pass all arguments explicitly.
57412         (func_import): Determine two module lists main_modules,
57413         testsrelated_modules. Determine use_libtests. Determine two variables
57414         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57415         instead of just sed_transform_lib_file. Determine two variables
57416         main_files and testsrelated_files. Compute 'files' as the union of
57417         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57418         func_add_or_update. In the generated gnulib-comp.m4, collect the
57419         object files for tests/ in different variables than those for lib/.
57420         Substitute LIBTESTS_LIBDEPS.
57421         (func_create_testdir): Combine the uses_subdirs results from
57422         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57423
57424 2007-12-09  Bruno Haible  <bruno@clisp.org>
57425
57426         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57427         the build-aux directory.
57428
57429 2007-12-09  Bruno Haible  <bruno@clisp.org>
57430
57431         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57432         introduced on 2006-09-09.
57433
57434 2007-12-07  Jim Meyering  <meyering@redhat.com>
57435
57436         Let these macros work also with autoconf-2.59.
57437         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
57438         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
57439         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
57440
57441 2007-12-06  Jim Meyering  <meyering@redhat.com>
57442
57443         Avoid a configure-time syntax error in gl_FUNC_ACL.
57444         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
57445         function in each branch, before testing the cache variable.
57446
57447 2007-12-04  Eric Blake  <ebb9@byu.net>
57448
57449         Make scripts executable.
57450         * build-aux/config.guess: Add execute permissions.
57451         * build-aux/config.sub: Likewise.
57452         * build-aux/gendocs.sh: Likewise.
57453
57454         Fix frexp on mingw.
57455         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
57456         cross-compiling.
57457         * doc/functions/frexp.texi (frexp): Document the bug.
57458
57459         Make cygwin fseeko check more reliable.
57460         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
57461         version numbers, rather than unrelated feature check.
57462         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
57463         * doc/functions/ftello.texi (ftello): Likewise.
57464         Reported by Bruno Haible.
57465
57466         * m4/strerror.m4: Bump version number.
57467
57468 2007-12-03  Bruno Haible  <bruno@clisp.org>
57469
57470         * doc/functions/mprotect.texi: Mention the mingw problem.
57471
57472 2007-12-03  Eric Blake  <ebb9@byu.net>
57473
57474         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
57475         REPLACE_STRERROR is initialized before this macro.
57476
57477 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
57478
57479         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
57480         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
57481         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
57482         put -lsec in even for programs other than 'ls'.  This fixes a problem
57483         for gettext reported by Bruno Haible in
57484         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
57485         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
57486         Add support for Solaris 10.  This isn't efficient, but should get the
57487         job done for now.
57488
57489 2007-12-03  James Youngman  <jay@gnu.org>
57490
57491         * doc/regexprops-generic.texi: change "an close-group" to "a
57492         close-group" and "illegal" to "not allowed".
57493
57494 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57495
57496         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
57497         pr_byname.h. Needed for the rare case when the maintainer has done
57498         "make maintainer-clean" in the source directory and then attempts a
57499         build outside the source directory.
57500         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
57501         scripts_byname.h.
57502
57503 2007-12-02  Martin Lambers <marlam@marlam.de>
57504             Bruno Haible  <bruno@clisp.org>
57505
57506         * lib/getpagesize.h: Remove file.
57507         * lib/unistd.in.h: Include declaration of getpagesize here.
57508         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
57509         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
57510         HAVE_SYS_PARAM_H.
57511         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
57512         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57513         * modules/getpagesize (Files): Remove lib/getpagesize.h.
57514         (Depends-on): Add unistd.
57515         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
57516         (Include): Use <unistd.h> instead of getpagesize.h.
57517         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
57518         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
57519         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
57520         gl_GETPAGESIZE invocation, already handled by module dependency.
57521         * lib/pagealign_alloc.c: Don't include getpagesize.h.
57522
57523 2007-12-02  Bruno Haible  <bruno@clisp.org>
57524
57525         * modules/strings-tests: New file.
57526         * tests/test-strings.c: New file.
57527
57528         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
57529         * lib/strings.in.h: New file.
57530         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
57531         * m4/strings_h.m4: New file.
57532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
57533         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
57534         * modules/strings: New file.
57535         * modules/string (Makefile.am): Update.
57536         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
57537         Reported by Karl Berry.
57538
57539 2007-12-01  Eric Blake  <ebb9@byu.net>
57540
57541         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
57542         accomodate fix in cygwin 1.5.25.
57543
57544 2007-12-01  Jim Meyering  <meyering@redhat.com>
57545
57546         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
57547         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
57548         that would inhibit utf8-optimization of a regexp containing line-
57549         or buffer-anchors, e.g., `^', `$'.
57550
57551 2007-11-30  Bruno Haible  <bruno@clisp.org>
57552
57553         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
57554         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
57555         glthread_recursive_lock_init.
57556         * lib/lock.c (glthread_recursive_lock_init)
57557         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
57558         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57559
57560 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
57561
57562         New function qset_acl, like set_acl but with syscall semantics.
57563         * lib/acl.h (qset_acl): New decl.
57564         * lib/acl.c (qset_acl): New function.
57565         (set_acl): Use new function.  Use more-consistent diagnostics.
57566
57567 2007-11-28  Jim Meyering  <meyering@redhat.com>
57568
57569         * modules/physmem (License): Change from GPL to LGPLv2+.
57570
57571 2007-11-26  Bruno Haible  <bruno@clisp.org>
57572
57573         * lib/vasnprintf.c (decode_long_double): Don't abort if the
57574         'long double' type has excess precision.
57575         Reported by Jim Meyering in
57576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
57577
57578 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57579
57580         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
57581         Sync from <http://gnu.org/licenses>.
57582         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
57583         with license text from same location.
57584         * doc/maintain.texi, doc/standards.texi:  Sync from
57585         <http://savannah.gnu.org/projects/gnustandards>.
57586
57587 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
57588         and Jim Meyering  <meyering@redhat.com>
57589
57590         Adjust getdate' grammar to accept a slightly more regular language.
57591         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
57592         Before, the former was rejected.
57593         * lib/getdate.y (digits_to_date_time): New function, factored
57594         out of ...
57595         (number): ...here.  Just call digits_to_date_time.
57596         (hybrid): New non-terminal to handle an <unsigned number,
57597         signed relative offset> sequence consistently.
57598
57599 2007-11-18  Jim Meyering  <meyering@redhat.com>
57600
57601         Pull my changes from coreutils:
57602         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
57603         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
57604         use of $gnulib_tool_option_extras, so that it's separated from the
57605         preceding argument.
57606
57607         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
57608         * build-aux/bootstrap (cp_mark_as_generated): Create any required
57609         parent destination directories before copying a file into place.
57610
57611 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
57612
57613         bootstrap: work also with 4-argument variant of AC_INIT
57614         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
57615
57616 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
57617
57618         Port test-getaddrinfo to Solaris.
57619         Problem reported by Bruno Haible in
57620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
57621         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
57622         explanation of setting 'hints'.
57623         Don't reject an implementation merely because it returns EAI_SERVICE.
57624         (EAI_SERVICE): Define to 0 if not defined.
57625
57626 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
57627
57628         The license of gnu-make and posix-shell is now "GPLed build tool".
57629         * modules/gnu-make (License): Likewise.
57630         * modules/posix-shell (License): Likewise.
57631
57632         New module posix-shell, for determining a POSIX shell
57633         or perhaps something that is close enough to a POSIX shell.
57634         * m4/posix-shell.m4: New file.
57635         * modules/posix-shell: New file.
57636
57637         * MODULES.html.sh: Mention new module.
57638
57639         New module gnu-make, for determining whether we're using GNU Make.
57640         * m4/gnu-make.m4: New file.
57641         * modules/gnu-make: New file.
57642         * MODULES.html.sh: Mention new module.
57643
57644 2007-11-14  Jim Meyering  <meyering@redhat.com>
57645
57646         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
57647         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
57648         use this macro to create a function _definition_.
57649         Remove useless "#undef ARGMATCH_DIE".
57650
57651 2007-11-14  Bruno Haible  <bruno@clisp.org>
57652
57653         * lib/config.charset: Update for OpenBSD 4.1.
57654         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
57655
57656 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
57657
57658         Document 64-bit #if problems in stdint.texi.
57659         * doc/headers/stdint.texi (stdint.h): Mention problems with
57660         64-bit-#if, and how to work around them.
57661
57662         Don't insist on 'long long int' support in the preprocessor.  It
57663         breaks too many things.  For example, PRIdMAX still uses a 'long
57664         long int' format with the latest Sun compiler, even though
57665         HAVE_LONG_LONG_INT isn't defined due to that compiler's
57666         preprocessor problem.  This causes the latest coreutils to dump
57667         core on Solaris 10 sparc with the Sun C compiler.
57668         Instead, fix the 2007-10-16 problem in a different way, by evaluating
57669         the troublesome expressions at configure-time, not at #if-time.
57670         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
57671         preprocessor.
57672         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
57673         compile-time C checks, done at 'configure'-time.
57674         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
57675         * modules/inttypes (Makefile): Substitute the new symbols that
57676         gl_INTTYPES_H now generates.
57677         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
57678
57679 2007-11-12  Bruno Haible  <bruno@clisp.org>
57680
57681         Tests for Unicode character classification functions.
57682
57683         * modules/unictype/bidicategory-byname-tests: New file.
57684         * modules/unictype/bidicategory-name-tests: New file.
57685         * modules/unictype/bidicategory-of-tests: New file.
57686         * modules/unictype/bidicategory-test-tests: New file.
57687         * modules/unictype/block-list-tests: New file.
57688         * modules/unictype/block-of-tests: New file.
57689         * modules/unictype/block-test-tests: New file.
57690         * modules/unictype/category-C-tests: New file.
57691         * modules/unictype/category-Cc-tests: New file.
57692         * modules/unictype/category-Cf-tests: New file.
57693         * modules/unictype/category-Cn-tests: New file.
57694         * modules/unictype/category-Co-tests: New file.
57695         * modules/unictype/category-Cs-tests: New file.
57696         * modules/unictype/category-L-tests: New file.
57697         * modules/unictype/category-Ll-tests: New file.
57698         * modules/unictype/category-Lm-tests: New file.
57699         * modules/unictype/category-Lo-tests: New file.
57700         * modules/unictype/category-Lt-tests: New file.
57701         * modules/unictype/category-Lu-tests: New file.
57702         * modules/unictype/category-M-tests: New file.
57703         * modules/unictype/category-Mc-tests: New file.
57704         * modules/unictype/category-Me-tests: New file.
57705         * modules/unictype/category-Mn-tests: New file.
57706         * modules/unictype/category-N-tests: New file.
57707         * modules/unictype/category-Nd-tests: New file.
57708         * modules/unictype/category-Nl-tests: New file.
57709         * modules/unictype/category-No-tests: New file.
57710         * modules/unictype/category-P-tests: New file.
57711         * modules/unictype/category-Pc-tests: New file.
57712         * modules/unictype/category-Pd-tests: New file.
57713         * modules/unictype/category-Pe-tests: New file.
57714         * modules/unictype/category-Pf-tests: New file.
57715         * modules/unictype/category-Pi-tests: New file.
57716         * modules/unictype/category-Po-tests: New file.
57717         * modules/unictype/category-Ps-tests: New file.
57718         * modules/unictype/category-S-tests: New file.
57719         * modules/unictype/category-Sc-tests: New file.
57720         * modules/unictype/category-Sk-tests: New file.
57721         * modules/unictype/category-Sm-tests: New file.
57722         * modules/unictype/category-So-tests: New file.
57723         * modules/unictype/category-Z-tests: New file.
57724         * modules/unictype/category-Zl-tests: New file.
57725         * modules/unictype/category-Zp-tests: New file.
57726         * modules/unictype/category-Zs-tests: New file.
57727         * modules/unictype/category-and-not-tests: New file.
57728         * modules/unictype/category-and-tests: New file.
57729         * modules/unictype/category-byname-tests: New file.
57730         * modules/unictype/category-name-tests: New file.
57731         * modules/unictype/category-none-tests: New file.
57732         * modules/unictype/category-of-tests: New file.
57733         * modules/unictype/category-or-tests: New file.
57734         * modules/unictype/category-test-withtable-tests: New file.
57735         * modules/unictype/combining-class-tests: New file.
57736         * modules/unictype/ctype-alnum-tests: New file.
57737         * modules/unictype/ctype-alpha-tests: New file.
57738         * modules/unictype/ctype-blank-tests: New file.
57739         * modules/unictype/ctype-cntrl-tests: New file.
57740         * modules/unictype/ctype-digit-tests: New file.
57741         * modules/unictype/ctype-graph-tests: New file.
57742         * modules/unictype/ctype-lower-tests: New file.
57743         * modules/unictype/ctype-print-tests: New file.
57744         * modules/unictype/ctype-punct-tests: New file.
57745         * modules/unictype/ctype-space-tests: New file.
57746         * modules/unictype/ctype-upper-tests: New file.
57747         * modules/unictype/ctype-xdigit-tests: New file.
57748         * modules/unictype/decimal-digit-tests: New file.
57749         * modules/unictype/digit-tests: New file.
57750         * modules/unictype/mirror-tests: New file.
57751         * modules/unictype/numeric-tests: New file.
57752         * modules/unictype/property-alphabetic-tests: New file.
57753         * modules/unictype/property-ascii-hex-digit-tests: New file.
57754         * modules/unictype/property-bidi-arabic-digit-tests: New file.
57755         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
57756         * modules/unictype/property-bidi-block-separator-tests: New file.
57757         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
57758         * modules/unictype/property-bidi-common-separator-tests: New file.
57759         * modules/unictype/property-bidi-control-tests: New file.
57760         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
57761         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
57762         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
57763         * modules/unictype/property-bidi-european-digit-tests: New file.
57764         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
57765         * modules/unictype/property-bidi-left-to-right-tests: New file.
57766         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
57767         * modules/unictype/property-bidi-other-neutral-tests: New file.
57768         * modules/unictype/property-bidi-pdf-tests: New file.
57769         * modules/unictype/property-bidi-segment-separator-tests: New file.
57770         * modules/unictype/property-bidi-whitespace-tests: New file.
57771         * modules/unictype/property-byname-tests: New file.
57772         * modules/unictype/property-combining-tests: New file.
57773         * modules/unictype/property-composite-tests: New file.
57774         * modules/unictype/property-currency-symbol-tests: New file.
57775         * modules/unictype/property-dash-tests: New file.
57776         * modules/unictype/property-decimal-digit-tests: New file.
57777         * modules/unictype/property-default-ignorable-code-point-tests: New file.
57778         * modules/unictype/property-deprecated-tests: New file.
57779         * modules/unictype/property-diacritic-tests: New file.
57780         * modules/unictype/property-extender-tests: New file.
57781         * modules/unictype/property-format-control-tests: New file.
57782         * modules/unictype/property-grapheme-base-tests: New file.
57783         * modules/unictype/property-grapheme-extend-tests: New file.
57784         * modules/unictype/property-grapheme-link-tests: New file.
57785         * modules/unictype/property-hex-digit-tests: New file.
57786         * modules/unictype/property-hyphen-tests: New file.
57787         * modules/unictype/property-id-continue-tests: New file.
57788         * modules/unictype/property-id-start-tests: New file.
57789         * modules/unictype/property-ideographic-tests: New file.
57790         * modules/unictype/property-ids-binary-operator-tests: New file.
57791         * modules/unictype/property-ids-trinary-operator-tests: New file.
57792         * modules/unictype/property-ignorable-control-tests: New file.
57793         * modules/unictype/property-iso-control-tests: New file.
57794         * modules/unictype/property-join-control-tests: New file.
57795         * modules/unictype/property-left-of-pair-tests: New file.
57796         * modules/unictype/property-line-separator-tests: New file.
57797         * modules/unictype/property-logical-order-exception-tests: New file.
57798         * modules/unictype/property-lowercase-tests: New file.
57799         * modules/unictype/property-math-tests: New file.
57800         * modules/unictype/property-non-break-tests: New file.
57801         * modules/unictype/property-not-a-character-tests: New file.
57802         * modules/unictype/property-numeric-tests: New file.
57803         * modules/unictype/property-other-alphabetic-tests: New file.
57804         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
57805         * modules/unictype/property-other-grapheme-extend-tests: New file.
57806         * modules/unictype/property-other-id-continue-tests: New file.
57807         * modules/unictype/property-other-id-start-tests: New file.
57808         * modules/unictype/property-other-lowercase-tests: New file.
57809         * modules/unictype/property-other-math-tests: New file.
57810         * modules/unictype/property-other-uppercase-tests: New file.
57811         * modules/unictype/property-paired-punctuation-tests: New file.
57812         * modules/unictype/property-paragraph-separator-tests: New file.
57813         * modules/unictype/property-pattern-syntax-tests: New file.
57814         * modules/unictype/property-pattern-white-space-tests: New file.
57815         * modules/unictype/property-private-use-tests: New file.
57816         * modules/unictype/property-punctuation-tests: New file.
57817         * modules/unictype/property-quotation-mark-tests: New file.
57818         * modules/unictype/property-radical-tests: New file.
57819         * modules/unictype/property-sentence-terminal-tests: New file.
57820         * modules/unictype/property-soft-dotted-tests: New file.
57821         * modules/unictype/property-space-tests: New file.
57822         * modules/unictype/property-terminal-punctuation-tests: New file.
57823         * modules/unictype/property-test-tests: New file.
57824         * modules/unictype/property-titlecase-tests: New file.
57825         * modules/unictype/property-unassigned-code-value-tests: New file.
57826         * modules/unictype/property-unified-ideograph-tests: New file.
57827         * modules/unictype/property-uppercase-tests: New file.
57828         * modules/unictype/property-variation-selector-tests: New file.
57829         * modules/unictype/property-white-space-tests: New file.
57830         * modules/unictype/property-xid-continue-tests: New file.
57831         * modules/unictype/property-xid-start-tests: New file.
57832         * modules/unictype/property-zero-width-tests: New file.
57833         * modules/unictype/scripts-tests: New file.
57834         * modules/unictype/syntax-c-ident-tests: New file.
57835         * modules/unictype/syntax-c-whitespace-tests: New file.
57836         * modules/unictype/syntax-java-ident-tests: New file.
57837         * modules/unictype/syntax-java-whitespace-tests: New file.
57838         * tests/unictype/test-bidi_byname.c: New file.
57839         * tests/unictype/test-bidi_name.c: New file.
57840         * tests/unictype/test-bidi_of.c: New file.
57841         * tests/unictype/test-bidi_test.c: New file.
57842         * tests/unictype/test-block_list.c: New file.
57843         * tests/unictype/test-block_of.c: New file.
57844         * tests/unictype/test-block_test.c: New file.
57845         * tests/unictype/test-categ_and.c: New file.
57846         * tests/unictype/test-categ_and_not.c: New file.
57847         * tests/unictype/test-categ_byname.c: New file.
57848         * tests/unictype/test-categ_name.c: New file.
57849         * tests/unictype/test-categ_none.c: New file.
57850         * tests/unictype/test-categ_of.c: New file.
57851         * tests/unictype/test-categ_or.c: New file.
57852         * tests/unictype/test-categ_test_withtable.c: New file.
57853         * tests/unictype/test-combining.c: New file.
57854         * tests/unictype/test-decdigit.c: New file.
57855         * tests/unictype/test-digit.c: New file.
57856         * tests/unictype/test-mirror.c: New file.
57857         * tests/unictype/test-numeric.c: New file.
57858         * tests/unictype/test-pr_byname.c: New file.
57859         * tests/unictype/test-pr_test.c: New file.
57860         * tests/unictype/test-predicate-part1.h: New file.
57861         * tests/unictype/test-predicate-part2.h: New file.
57862         * tests/unictype/test-scripts.c: New file.
57863         * tests/unictype/test-sy_c_ident.c: New file.
57864         * tests/unictype/test-sy_java_ident.c: New file.
57865
57866         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
57867         for Unicode 5.0.0.
57868         * tests/unictype/test-categ_Cc.c: Likewise.
57869         * tests/unictype/test-categ_Cf.c: Likewise.
57870         * tests/unictype/test-categ_Cn.c: Likewise.
57871         * tests/unictype/test-categ_Co.c: Likewise.
57872         * tests/unictype/test-categ_Cs.c: Likewise.
57873         * tests/unictype/test-categ_L.c: Likewise.
57874         * tests/unictype/test-categ_Ll.c: Likewise.
57875         * tests/unictype/test-categ_Lm.c: Likewise.
57876         * tests/unictype/test-categ_Lo.c: Likewise.
57877         * tests/unictype/test-categ_Lt.c: Likewise.
57878         * tests/unictype/test-categ_Lu.c: Likewise.
57879         * tests/unictype/test-categ_M.c: Likewise.
57880         * tests/unictype/test-categ_Mc.c: Likewise.
57881         * tests/unictype/test-categ_Me.c: Likewise.
57882         * tests/unictype/test-categ_Mn.c: Likewise.
57883         * tests/unictype/test-categ_N.c: Likewise.
57884         * tests/unictype/test-categ_Nd.c: Likewise.
57885         * tests/unictype/test-categ_Nl.c: Likewise.
57886         * tests/unictype/test-categ_No.c: Likewise.
57887         * tests/unictype/test-categ_P.c: Likewise.
57888         * tests/unictype/test-categ_Pc.c: Likewise.
57889         * tests/unictype/test-categ_Pd.c: Likewise.
57890         * tests/unictype/test-categ_Pe.c: Likewise.
57891         * tests/unictype/test-categ_Pf.c: Likewise.
57892         * tests/unictype/test-categ_Pi.c: Likewise.
57893         * tests/unictype/test-categ_Po.c: Likewise.
57894         * tests/unictype/test-categ_Ps.c: Likewise.
57895         * tests/unictype/test-categ_S.c: Likewise.
57896         * tests/unictype/test-categ_Sc.c: Likewise.
57897         * tests/unictype/test-categ_Sk.c: Likewise.
57898         * tests/unictype/test-categ_Sm.c: Likewise.
57899         * tests/unictype/test-categ_So.c: Likewise.
57900         * tests/unictype/test-categ_Z.c: Likewise.
57901         * tests/unictype/test-categ_Zl.c: Likewise.
57902         * tests/unictype/test-categ_Zp.c: Likewise.
57903         * tests/unictype/test-categ_Zs.c: Likewise.
57904         * tests/unictype/test-ctype_alnum.c: Likewise.
57905         * tests/unictype/test-ctype_alpha.c: Likewise.
57906         * tests/unictype/test-ctype_blank.c: Likewise.
57907         * tests/unictype/test-ctype_cntrl.c: Likewise.
57908         * tests/unictype/test-ctype_digit.c: Likewise.
57909         * tests/unictype/test-ctype_graph.c: Likewise.
57910         * tests/unictype/test-ctype_lower.c: Likewise.
57911         * tests/unictype/test-ctype_print.c: Likewise.
57912         * tests/unictype/test-ctype_punct.c: Likewise.
57913         * tests/unictype/test-ctype_space.c: Likewise.
57914         * tests/unictype/test-ctype_upper.c: Likewise.
57915         * tests/unictype/test-ctype_xdigit.c: Likewise.
57916         * tests/unictype/test-decdigit.h: Likewise.
57917         * tests/unictype/test-digit.h: Likewise.
57918         * tests/unictype/test-numeric.h: Likewise.
57919         * tests/unictype/test-pr_alphabetic.c: Likewise.
57920         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
57921         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
57922         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
57923         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
57924         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
57925         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
57926         * tests/unictype/test-pr_bidi_control.c: Likewise.
57927         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
57928         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
57929         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
57930         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
57931         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
57932         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
57933         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
57934         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
57935         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
57936         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
57937         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
57938         * tests/unictype/test-pr_combining.c: Likewise.
57939         * tests/unictype/test-pr_composite.c: Likewise.
57940         * tests/unictype/test-pr_currency_symbol.c: Likewise.
57941         * tests/unictype/test-pr_dash.c: Likewise.
57942         * tests/unictype/test-pr_decimal_digit.c: Likewise.
57943         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
57944         * tests/unictype/test-pr_deprecated.c: Likewise.
57945         * tests/unictype/test-pr_diacritic.c: Likewise.
57946         * tests/unictype/test-pr_extender.c: Likewise.
57947         * tests/unictype/test-pr_format_control.c: Likewise.
57948         * tests/unictype/test-pr_grapheme_base.c: Likewise.
57949         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
57950         * tests/unictype/test-pr_grapheme_link.c: Likewise.
57951         * tests/unictype/test-pr_hex_digit.c: Likewise.
57952         * tests/unictype/test-pr_hyphen.c: Likewise.
57953         * tests/unictype/test-pr_id_continue.c: Likewise.
57954         * tests/unictype/test-pr_id_start.c: Likewise.
57955         * tests/unictype/test-pr_ideographic.c: Likewise.
57956         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
57957         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
57958         * tests/unictype/test-pr_ignorable_control.c: Likewise.
57959         * tests/unictype/test-pr_iso_control.c: Likewise.
57960         * tests/unictype/test-pr_join_control.c: Likewise.
57961         * tests/unictype/test-pr_left_of_pair.c: Likewise.
57962         * tests/unictype/test-pr_line_separator.c: Likewise.
57963         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
57964         * tests/unictype/test-pr_lowercase.c: Likewise.
57965         * tests/unictype/test-pr_math.c: Likewise.
57966         * tests/unictype/test-pr_non_break.c: Likewise.
57967         * tests/unictype/test-pr_not_a_character.c: Likewise.
57968         * tests/unictype/test-pr_numeric.c: Likewise.
57969         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
57970         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
57971         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
57972         * tests/unictype/test-pr_other_id_continue.c: Likewise.
57973         * tests/unictype/test-pr_other_id_start.c: Likewise.
57974         * tests/unictype/test-pr_other_lowercase.c: Likewise.
57975         * tests/unictype/test-pr_other_math.c: Likewise.
57976         * tests/unictype/test-pr_other_uppercase.c: Likewise.
57977         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
57978         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
57979         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
57980         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
57981         * tests/unictype/test-pr_private_use.c: Likewise.
57982         * tests/unictype/test-pr_punctuation.c: Likewise.
57983         * tests/unictype/test-pr_quotation_mark.c: Likewise.
57984         * tests/unictype/test-pr_radical.c: Likewise.
57985         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
57986         * tests/unictype/test-pr_soft_dotted.c: Likewise.
57987         * tests/unictype/test-pr_space.c: Likewise.
57988         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
57989         * tests/unictype/test-pr_titlecase.c: Likewise.
57990         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
57991         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
57992         * tests/unictype/test-pr_uppercase.c: Likewise.
57993         * tests/unictype/test-pr_variation_selector.c: Likewise.
57994         * tests/unictype/test-pr_white_space.c: Likewise.
57995         * tests/unictype/test-pr_xid_continue.c: Likewise.
57996         * tests/unictype/test-pr_xid_start.c: Likewise.
57997         * tests/unictype/test-pr_zero_width.c: Likewise.
57998         * tests/unictype/test-sy_c_whitespace.c: Likewise.
57999         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58000
58001 2007-11-12  Bruno Haible  <bruno@clisp.org>
58002
58003         Unicode character classification functions.
58004         * lib/unictype.h: New file.
58005         * modules/unictype/base: New file.
58006         * modules/unictype/category-L: New file.
58007         * modules/unictype/category-Lu: New file.
58008         * modules/unictype/category-Ll: New file.
58009         * modules/unictype/category-Lt: New file.
58010         * modules/unictype/category-Lm: New file.
58011         * modules/unictype/category-Lo: New file.
58012         * modules/unictype/category-M: New file.
58013         * modules/unictype/category-Mn: New file.
58014         * modules/unictype/category-Mc: New file.
58015         * modules/unictype/category-Me: New file.
58016         * modules/unictype/category-N: New file.
58017         * modules/unictype/category-Nd: New file.
58018         * modules/unictype/category-Nl: New file.
58019         * modules/unictype/category-No: New file.
58020         * modules/unictype/category-P: New file.
58021         * modules/unictype/category-Pc: New file.
58022         * modules/unictype/category-Pd: New file.
58023         * modules/unictype/category-Ps: New file.
58024         * modules/unictype/category-Pe: New file.
58025         * modules/unictype/category-Pi: New file.
58026         * modules/unictype/category-Pf: New file.
58027         * modules/unictype/category-Po: New file.
58028         * modules/unictype/category-S: New file.
58029         * modules/unictype/category-Sm: New file.
58030         * modules/unictype/category-Sc: New file.
58031         * modules/unictype/category-Sk: New file.
58032         * modules/unictype/category-So: New file.
58033         * modules/unictype/category-Z: New file.
58034         * modules/unictype/category-Zs: New file.
58035         * modules/unictype/category-Zl: New file.
58036         * modules/unictype/category-Zp: New file.
58037         * modules/unictype/category-C: New file.
58038         * modules/unictype/category-Cc: New file.
58039         * modules/unictype/category-Cf: New file.
58040         * modules/unictype/category-Cs: New file.
58041         * modules/unictype/category-Co: New file.
58042         * modules/unictype/category-Cn: New file.
58043         * modules/unictype/category-or: New file.
58044         * modules/unictype/category-of: New file.
58045         * modules/unictype/category-test: New file.
58046         * modules/unictype/category-test-withtable: New file.
58047         * modules/unictype/category-byname: New file.
58048         * modules/unictype/category-none: New file.
58049         * modules/unictype/category-and: New file.
58050         * modules/unictype/category-and-not: New file.
58051         * modules/unictype/category-name: New file.
58052         * modules/unictype/combining-class: New file.
58053         * modules/unictype/category-all: New file.
58054         * modules/unictype/bidicategory-all: New file.
58055         * modules/unictype/bidicategory-byname: New file.
58056         * modules/unictype/bidicategory-name: New file.
58057         * modules/unictype/bidicategory-of: New file.
58058         * modules/unictype/bidicategory-test: New file.
58059         * modules/unictype/decimal-digit: New file.
58060         * modules/unictype/digit: New file.
58061         * modules/unictype/numeric: New file.
58062         * modules/unictype/mirror: New file.
58063         * modules/unictype/property-white-space: New file.
58064         * modules/unictype/property-alphabetic: New file.
58065         * modules/unictype/property-other-alphabetic: New file.
58066         * modules/unictype/property-not-a-character: New file.
58067         * modules/unictype/property-default-ignorable-code-point: New file.
58068         * modules/unictype/property-other-default-ignorable-code-point: New
58069         file.
58070         * modules/unictype/property-deprecated: New file.
58071         * modules/unictype/property-logical-order-exception: New file.
58072         * modules/unictype/property-variation-selector: New file.
58073         * modules/unictype/property-private-use: New file.
58074         * modules/unictype/property-unassigned-code-value: New file.
58075         * modules/unictype/property-uppercase: New file.
58076         * modules/unictype/property-other-uppercase: New file.
58077         * modules/unictype/property-lowercase: New file.
58078         * modules/unictype/property-other-lowercase: New file.
58079         * modules/unictype/property-titlecase: New file.
58080         * modules/unictype/property-soft-dotted: New file.
58081         * modules/unictype/property-id-start: New file.
58082         * modules/unictype/property-other-id-start: New file.
58083         * modules/unictype/property-id-continue: New file.
58084         * modules/unictype/property-other-id-continue: New file.
58085         * modules/unictype/property-xid-start: New file.
58086         * modules/unictype/property-xid-continue: New file.
58087         * modules/unictype/property-pattern-white-space: New file.
58088         * modules/unictype/property-pattern-syntax: New file.
58089         * modules/unictype/property-join-control: New file.
58090         * modules/unictype/property-grapheme-base: New file.
58091         * modules/unictype/property-grapheme-extend: New file.
58092         * modules/unictype/property-other-grapheme-extend: New file.
58093         * modules/unictype/property-grapheme-link: New file.
58094         * modules/unictype/property-bidi-control: New file.
58095         * modules/unictype/property-bidi-left-to-right: New file.
58096         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58097         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58098         * modules/unictype/property-bidi-european-digit: New file.
58099         * modules/unictype/property-bidi-eur-num-separator: New file.
58100         * modules/unictype/property-bidi-eur-num-terminator: New file.
58101         * modules/unictype/property-bidi-arabic-digit: New file.
58102         * modules/unictype/property-bidi-common-separator: New file.
58103         * modules/unictype/property-bidi-block-separator: New file.
58104         * modules/unictype/property-bidi-segment-separator: New file.
58105         * modules/unictype/property-bidi-whitespace: New file.
58106         * modules/unictype/property-bidi-non-spacing-mark: New file.
58107         * modules/unictype/property-bidi-boundary-neutral: New file.
58108         * modules/unictype/property-bidi-pdf: New file.
58109         * modules/unictype/property-bidi-embedding-or-override: New file.
58110         * modules/unictype/property-bidi-other-neutral: New file.
58111         * modules/unictype/property-hex-digit: New file.
58112         * modules/unictype/property-ascii-hex-digit: New file.
58113         * modules/unictype/property-ideographic: New file.
58114         * modules/unictype/property-unified-ideograph: New file.
58115         * modules/unictype/property-radical: New file.
58116         * modules/unictype/property-ids-binary-operator: New file.
58117         * modules/unictype/property-ids-trinary-operator: New file.
58118         * modules/unictype/property-zero-width: New file.
58119         * modules/unictype/property-space: New file.
58120         * modules/unictype/property-non-break: New file.
58121         * modules/unictype/property-iso-control: New file.
58122         * modules/unictype/property-format-control: New file.
58123         * modules/unictype/property-dash: New file.
58124         * modules/unictype/property-hyphen: New file.
58125         * modules/unictype/property-punctuation: New file.
58126         * modules/unictype/property-line-separator: New file.
58127         * modules/unictype/property-paragraph-separator: New file.
58128         * modules/unictype/property-quotation-mark: New file.
58129         * modules/unictype/property-sentence-terminal: New file.
58130         * modules/unictype/property-terminal-punctuation: New file.
58131         * modules/unictype/property-currency-symbol: New file.
58132         * modules/unictype/property-math: New file.
58133         * modules/unictype/property-other-math: New file.
58134         * modules/unictype/property-paired-punctuation: New file.
58135         * modules/unictype/property-left-of-pair: New file.
58136         * modules/unictype/property-combining: New file.
58137         * modules/unictype/property-composite: New file.
58138         * modules/unictype/property-decimal-digit: New file.
58139         * modules/unictype/property-numeric: New file.
58140         * modules/unictype/property-diacritic: New file.
58141         * modules/unictype/property-extender: New file.
58142         * modules/unictype/property-ignorable-control: New file.
58143         * modules/unictype/property-test: New file.
58144         * modules/unictype/property-byname: New file.
58145         * modules/unictype/property-all: New file.
58146         * modules/unictype/scripts: New file.
58147         * modules/unictype/scripts-all: New file.
58148         * modules/unictype/block-of: New file.
58149         * modules/unictype/block-test: New file.
58150         * modules/unictype/block-list: New file.
58151         * modules/unictype/block-all: New file.
58152         * modules/unictype/syntax-c-whitespace: New file.
58153         * modules/unictype/syntax-java-whitespace: New file.
58154         * modules/unictype/syntax-c-ident: New file.
58155         * modules/unictype/syntax-java-ident: New file.
58156         * modules/unictype/ctype-alnum: New file.
58157         * modules/unictype/ctype-alpha: New file.
58158         * modules/unictype/ctype-cntrl: New file.
58159         * modules/unictype/ctype-digit: New file.
58160         * modules/unictype/ctype-graph: New file.
58161         * modules/unictype/ctype-lower: New file.
58162         * modules/unictype/ctype-print: New file.
58163         * modules/unictype/ctype-punct: New file.
58164         * modules/unictype/ctype-space: New file.
58165         * modules/unictype/ctype-upper: New file.
58166         * modules/unictype/ctype-xdigit: New file.
58167         * modules/unictype/ctype-blank: New file.
58168         * lib/unictype/bidi_byname.c: New file.
58169         * lib/unictype/bidi_name.c: New file.
58170         * lib/unictype/bidi_of.c: New file.
58171         * lib/unictype/bidi_test.c: New file.
58172         * lib/unictype/bitmap.h: New file.
58173         * lib/unictype/block_test.c: New file.
58174         * lib/unictype/blocks.c: New file.
58175         * lib/unictype/categ_C.c: New file.
58176         * lib/unictype/categ_Cc.c: New file.
58177         * lib/unictype/categ_Cf.c: New file.
58178         * lib/unictype/categ_Cn.c: New file.
58179         * lib/unictype/categ_Co.c: New file.
58180         * lib/unictype/categ_Cs.c: New file.
58181         * lib/unictype/categ_L.c: New file.
58182         * lib/unictype/categ_Ll.c: New file.
58183         * lib/unictype/categ_Lm.c: New file.
58184         * lib/unictype/categ_Lo.c: New file.
58185         * lib/unictype/categ_Lt.c: New file.
58186         * lib/unictype/categ_Lu.c: New file.
58187         * lib/unictype/categ_M.c: New file.
58188         * lib/unictype/categ_Mc.c: New file.
58189         * lib/unictype/categ_Me.c: New file.
58190         * lib/unictype/categ_Mn.c: New file.
58191         * lib/unictype/categ_N.c: New file.
58192         * lib/unictype/categ_Nd.c: New file.
58193         * lib/unictype/categ_Nl.c: New file.
58194         * lib/unictype/categ_No.c: New file.
58195         * lib/unictype/categ_P.c: New file.
58196         * lib/unictype/categ_Pc.c: New file.
58197         * lib/unictype/categ_Pd.c: New file.
58198         * lib/unictype/categ_Pe.c: New file.
58199         * lib/unictype/categ_Pf.c: New file.
58200         * lib/unictype/categ_Pi.c: New file.
58201         * lib/unictype/categ_Po.c: New file.
58202         * lib/unictype/categ_Ps.c: New file.
58203         * lib/unictype/categ_S.c: New file.
58204         * lib/unictype/categ_Sc.c: New file.
58205         * lib/unictype/categ_Sk.c: New file.
58206         * lib/unictype/categ_Sm.c: New file.
58207         * lib/unictype/categ_So.c: New file.
58208         * lib/unictype/categ_Z.c: New file.
58209         * lib/unictype/categ_Zl.c: New file.
58210         * lib/unictype/categ_Zp.c: New file.
58211         * lib/unictype/categ_Zs.c: New file.
58212         * lib/unictype/categ_and.c: New file.
58213         * lib/unictype/categ_and_not.c: New file.
58214         * lib/unictype/categ_byname.c: New file.
58215         * lib/unictype/categ_name.c: New file.
58216         * lib/unictype/categ_none.c: New file.
58217         * lib/unictype/categ_of.c: New file.
58218         * lib/unictype/categ_or.c: New file.
58219         * lib/unictype/categ_test.c: New file.
58220         * lib/unictype/combining.c: New file.
58221         * lib/unictype/ctype_alnum.c: New file.
58222         * lib/unictype/ctype_alpha.c: New file.
58223         * lib/unictype/ctype_blank.c: New file.
58224         * lib/unictype/ctype_cntrl.c: New file.
58225         * lib/unictype/ctype_digit.c: New file.
58226         * lib/unictype/ctype_graph.c: New file.
58227         * lib/unictype/ctype_lower.c: New file.
58228         * lib/unictype/ctype_print.c: New file.
58229         * lib/unictype/ctype_punct.c: New file.
58230         * lib/unictype/ctype_space.c: New file.
58231         * lib/unictype/ctype_upper.c: New file.
58232         * lib/unictype/ctype_xdigit.c: New file.
58233         * lib/unictype/decdigit.c: New file.
58234         * lib/unictype/digit.c: New file.
58235         * lib/unictype/identsyntaxmap.h: New file.
58236         * lib/unictype/mirror.c: New file.
58237         * lib/unictype/numeric.c: New file.
58238         * lib/unictype/pr_alphabetic.c: New file.
58239         * lib/unictype/pr_ascii_hex_digit.c: New file.
58240         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58241         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58242         * lib/unictype/pr_bidi_block_separator.c: New file.
58243         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58244         * lib/unictype/pr_bidi_common_separator.c: New file.
58245         * lib/unictype/pr_bidi_control.c: New file.
58246         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58247         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58248         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58249         * lib/unictype/pr_bidi_european_digit.c: New file.
58250         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58251         * lib/unictype/pr_bidi_left_to_right.c: New file.
58252         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58253         * lib/unictype/pr_bidi_other_neutral.c: New file.
58254         * lib/unictype/pr_bidi_pdf.c: New file.
58255         * lib/unictype/pr_bidi_segment_separator.c: New file.
58256         * lib/unictype/pr_bidi_whitespace.c: New file.
58257         * lib/unictype/pr_byname.c: New file.
58258         * lib/unictype/pr_byname.gperf: New file.
58259         * lib/unictype/pr_combining.c: New file.
58260         * lib/unictype/pr_composite.c: New file.
58261         * lib/unictype/pr_currency_symbol.c: New file.
58262         * lib/unictype/pr_dash.c: New file.
58263         * lib/unictype/pr_decimal_digit.c: New file.
58264         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58265         * lib/unictype/pr_deprecated.c: New file.
58266         * lib/unictype/pr_diacritic.c: New file.
58267         * lib/unictype/pr_extender.c: New file.
58268         * lib/unictype/pr_format_control.c: New file.
58269         * lib/unictype/pr_grapheme_base.c: New file.
58270         * lib/unictype/pr_grapheme_extend.c: New file.
58271         * lib/unictype/pr_grapheme_link.c: New file.
58272         * lib/unictype/pr_hex_digit.c: New file.
58273         * lib/unictype/pr_hyphen.c: New file.
58274         * lib/unictype/pr_id_continue.c: New file.
58275         * lib/unictype/pr_id_start.c: New file.
58276         * lib/unictype/pr_ideographic.c: New file.
58277         * lib/unictype/pr_ids_binary_operator.c: New file.
58278         * lib/unictype/pr_ids_trinary_operator.c: New file.
58279         * lib/unictype/pr_ignorable_control.c: New file.
58280         * lib/unictype/pr_iso_control.c: New file.
58281         * lib/unictype/pr_join_control.c: New file.
58282         * lib/unictype/pr_left_of_pair.c: New file.
58283         * lib/unictype/pr_line_separator.c: New file.
58284         * lib/unictype/pr_logical_order_exception.c: New file.
58285         * lib/unictype/pr_lowercase.c: New file.
58286         * lib/unictype/pr_math.c: New file.
58287         * lib/unictype/pr_non_break.c: New file.
58288         * lib/unictype/pr_not_a_character.c: New file.
58289         * lib/unictype/pr_numeric.c: New file.
58290         * lib/unictype/pr_other_alphabetic.c: New file.
58291         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58292         * lib/unictype/pr_other_grapheme_extend.c: New file.
58293         * lib/unictype/pr_other_id_continue.c: New file.
58294         * lib/unictype/pr_other_id_start.c: New file.
58295         * lib/unictype/pr_other_lowercase.c: New file.
58296         * lib/unictype/pr_other_math.c: New file.
58297         * lib/unictype/pr_other_uppercase.c: New file.
58298         * lib/unictype/pr_paired_punctuation.c: New file.
58299         * lib/unictype/pr_paragraph_separator.c: New file.
58300         * lib/unictype/pr_pattern_syntax.c: New file.
58301         * lib/unictype/pr_pattern_white_space.c: New file.
58302         * lib/unictype/pr_private_use.c: New file.
58303         * lib/unictype/pr_punctuation.c: New file.
58304         * lib/unictype/pr_quotation_mark.c: New file.
58305         * lib/unictype/pr_radical.c: New file.
58306         * lib/unictype/pr_sentence_terminal.c: New file.
58307         * lib/unictype/pr_soft_dotted.c: New file.
58308         * lib/unictype/pr_space.c: New file.
58309         * lib/unictype/pr_terminal_punctuation.c: New file.
58310         * lib/unictype/pr_test.c: New file.
58311         * lib/unictype/pr_titlecase.c: New file.
58312         * lib/unictype/pr_unassigned_code_value.c: New file.
58313         * lib/unictype/pr_unified_ideograph.c: New file.
58314         * lib/unictype/pr_uppercase.c: New file.
58315         * lib/unictype/pr_variation_selector.c: New file.
58316         * lib/unictype/pr_white_space.c: New file.
58317         * lib/unictype/pr_xid_continue.c: New file.
58318         * lib/unictype/pr_xid_start.c: New file.
58319         * lib/unictype/pr_zero_width.c: New file.
58320         * lib/unictype/scripts.c: New file.
58321         * lib/unictype/sy_c_ident.c: New file.
58322         * lib/unictype/sy_c_whitespace.c: New file.
58323         * lib/unictype/sy_java_ident.c: New file.
58324         * lib/unictype/sy_java_whitespace.c: New file.
58325
58326         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58327         Unicode 5.0.0.
58328         * lib/unictype/blocks.h: Likewise.
58329         * lib/unictype/categ_C.h: Likewise.
58330         * lib/unictype/categ_Cc.h: Likewise.
58331         * lib/unictype/categ_Cf.h: Likewise.
58332         * lib/unictype/categ_Cn.h: Likewise.
58333         * lib/unictype/categ_Co.h: Likewise.
58334         * lib/unictype/categ_Cs.h: Likewise.
58335         * lib/unictype/categ_L.h: Likewise.
58336         * lib/unictype/categ_Ll.h: Likewise.
58337         * lib/unictype/categ_Lm.h: Likewise.
58338         * lib/unictype/categ_Lo.h: Likewise.
58339         * lib/unictype/categ_Lt.h: Likewise.
58340         * lib/unictype/categ_Lu.h: Likewise.
58341         * lib/unictype/categ_M.h: Likewise.
58342         * lib/unictype/categ_Mc.h: Likewise.
58343         * lib/unictype/categ_Me.h: Likewise.
58344         * lib/unictype/categ_Mn.h: Likewise.
58345         * lib/unictype/categ_N.h: Likewise.
58346         * lib/unictype/categ_Nd.h: Likewise.
58347         * lib/unictype/categ_Nl.h: Likewise.
58348         * lib/unictype/categ_No.h: Likewise.
58349         * lib/unictype/categ_P.h: Likewise.
58350         * lib/unictype/categ_Pc.h: Likewise.
58351         * lib/unictype/categ_Pd.h: Likewise.
58352         * lib/unictype/categ_Pe.h: Likewise.
58353         * lib/unictype/categ_Pf.h: Likewise.
58354         * lib/unictype/categ_Pi.h: Likewise.
58355         * lib/unictype/categ_Po.h: Likewise.
58356         * lib/unictype/categ_Ps.h: Likewise.
58357         * lib/unictype/categ_S.h: Likewise.
58358         * lib/unictype/categ_Sc.h: Likewise.
58359         * lib/unictype/categ_Sk.h: Likewise.
58360         * lib/unictype/categ_Sm.h: Likewise.
58361         * lib/unictype/categ_So.h: Likewise.
58362         * lib/unictype/categ_Z.h: Likewise.
58363         * lib/unictype/categ_Zl.h: Likewise.
58364         * lib/unictype/categ_Zp.h: Likewise.
58365         * lib/unictype/categ_Zs.h: Likewise.
58366         * lib/unictype/categ_of.h: Likewise.
58367         * lib/unictype/combining.h: Likewise.
58368         * lib/unictype/ctype_alnum.h: Likewise.
58369         * lib/unictype/ctype_alpha.h: Likewise.
58370         * lib/unictype/ctype_blank.h: Likewise.
58371         * lib/unictype/ctype_cntrl.h: Likewise.
58372         * lib/unictype/ctype_digit.h: Likewise.
58373         * lib/unictype/ctype_graph.h: Likewise.
58374         * lib/unictype/ctype_lower.h: Likewise.
58375         * lib/unictype/ctype_print.h: Likewise.
58376         * lib/unictype/ctype_punct.h: Likewise.
58377         * lib/unictype/ctype_space.h: Likewise.
58378         * lib/unictype/ctype_upper.h: Likewise.
58379         * lib/unictype/ctype_xdigit.h: Likewise.
58380         * lib/unictype/decdigit.h: Likewise.
58381         * lib/unictype/digit.h: Likewise.
58382         * lib/unictype/mirror.h: Likewise.
58383         * lib/unictype/numeric.h: Likewise.
58384         * lib/unictype/pr_alphabetic.h: Likewise.
58385         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58386         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58387         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58388         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58389         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58390         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58391         * lib/unictype/pr_bidi_control.h: Likewise.
58392         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58393         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58394         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58395         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58396         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58397         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58398         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58399         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58400         * lib/unictype/pr_bidi_pdf.h: Likewise.
58401         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58402         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58403         * lib/unictype/pr_combining.h: Likewise.
58404         * lib/unictype/pr_composite.h: Likewise.
58405         * lib/unictype/pr_currency_symbol.h: Likewise.
58406         * lib/unictype/pr_dash.h: Likewise.
58407         * lib/unictype/pr_decimal_digit.h: Likewise.
58408         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58409         * lib/unictype/pr_deprecated.h: Likewise.
58410         * lib/unictype/pr_diacritic.h: Likewise.
58411         * lib/unictype/pr_extender.h: Likewise.
58412         * lib/unictype/pr_format_control.h: Likewise.
58413         * lib/unictype/pr_grapheme_base.h: Likewise.
58414         * lib/unictype/pr_grapheme_extend.h: Likewise.
58415         * lib/unictype/pr_grapheme_link.h: Likewise.
58416         * lib/unictype/pr_hex_digit.h: Likewise.
58417         * lib/unictype/pr_hyphen.h: Likewise.
58418         * lib/unictype/pr_id_continue.h: Likewise.
58419         * lib/unictype/pr_id_start.h: Likewise.
58420         * lib/unictype/pr_ideographic.h: Likewise.
58421         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58422         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58423         * lib/unictype/pr_ignorable_control.h: Likewise.
58424         * lib/unictype/pr_iso_control.h: Likewise.
58425         * lib/unictype/pr_join_control.h: Likewise.
58426         * lib/unictype/pr_left_of_pair.h: Likewise.
58427         * lib/unictype/pr_line_separator.h: Likewise.
58428         * lib/unictype/pr_logical_order_exception.h: Likewise.
58429         * lib/unictype/pr_lowercase.h: Likewise.
58430         * lib/unictype/pr_math.h: Likewise.
58431         * lib/unictype/pr_non_break.h: Likewise.
58432         * lib/unictype/pr_not_a_character.h: Likewise.
58433         * lib/unictype/pr_numeric.h: Likewise.
58434         * lib/unictype/pr_other_alphabetic.h: Likewise.
58435         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58436         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
58437         * lib/unictype/pr_other_id_continue.h: Likewise.
58438         * lib/unictype/pr_other_id_start.h: Likewise.
58439         * lib/unictype/pr_other_lowercase.h: Likewise.
58440         * lib/unictype/pr_other_math.h: Likewise.
58441         * lib/unictype/pr_other_uppercase.h: Likewise.
58442         * lib/unictype/pr_paired_punctuation.h: Likewise.
58443         * lib/unictype/pr_paragraph_separator.h: Likewise.
58444         * lib/unictype/pr_pattern_syntax.h: Likewise.
58445         * lib/unictype/pr_pattern_white_space.h: Likewise.
58446         * lib/unictype/pr_private_use.h: Likewise.
58447         * lib/unictype/pr_punctuation.h: Likewise.
58448         * lib/unictype/pr_quotation_mark.h: Likewise.
58449         * lib/unictype/pr_radical.h: Likewise.
58450         * lib/unictype/pr_sentence_terminal.h: Likewise.
58451         * lib/unictype/pr_soft_dotted.h: Likewise.
58452         * lib/unictype/pr_space.h: Likewise.
58453         * lib/unictype/pr_terminal_punctuation.h: Likewise.
58454         * lib/unictype/pr_titlecase.h: Likewise.
58455         * lib/unictype/pr_unassigned_code_value.h: Likewise.
58456         * lib/unictype/pr_unified_ideograph.h: Likewise.
58457         * lib/unictype/pr_uppercase.h: Likewise.
58458         * lib/unictype/pr_variation_selector.h: Likewise.
58459         * lib/unictype/pr_white_space.h: Likewise.
58460         * lib/unictype/pr_xid_continue.h: Likewise.
58461         * lib/unictype/pr_xid_start.h: Likewise.
58462         * lib/unictype/pr_zero_width.h: Likewise.
58463         * lib/unictype/scripts.h: Likewise.
58464         * lib/unictype/scripts_byname.gperf: Likewise.
58465         * lib/unictype/sy_c_ident.h: Likewise.
58466         * lib/unictype/sy_c_whitespace.h: Likewise.
58467         * lib/unictype/sy_java_ident.h: Likewise.
58468         * lib/unictype/sy_java_whitespace.h: Likewise.
58469
58470         * lib/unictype/Makefile: New file.
58471         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
58472         glibc.
58473         * lib/unictype/3level.h: New file, copied from glibc.
58474         * lib/unictype/3levelbit.h: New file.
58475
58476 2007-11-11  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/gperf: New file.
58479         * modules/iconv_open (Depends-on): Add it.
58480         (Makefile.am): Remove the GPERF definition.
58481
58482 2007-11-11  Bruno Haible  <bruno@clisp.org>
58483
58484         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
58485         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
58486
58487 2007-11-11  Bruno Haible  <bruno@clisp.org>
58488
58489         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
58490         (usage): Remove function.
58491
58492 2007-11-11  Bruno Haible  <bruno@clisp.org>
58493
58494         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
58495         gl_FUNC_CEILF_LIBS.
58496         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
58497         gl_FUNC_CEIL_LIBS.
58498         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
58499         gl_FUNC_CEILL_LIBS.
58500         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
58501         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
58502         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
58503
58504 2007-11-11  Bruno Haible  <bruno@clisp.org>
58505
58506         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
58507         roundf were declared but do not exist on functions.
58508         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
58509         roundl were declared but do not exist on functions.
58510         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
58511         HAVE_FLOORL_AND_CEILL, respectively.
58512         Needed for Sun C on Solaris 10.
58513
58514 2007-11-11  Bruno Haible  <bruno@clisp.org>
58515
58516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
58517         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
58518         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
58519         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
58520         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
58521         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
58522         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
58523         HAVE_DECL_ROUNDF.
58524         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
58525         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
58526         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
58527         of HAVE_DECL_ROUND*.
58528         * modules/math (Makefile.am): Update.
58529
58530 2007-11-10  Bruno Haible  <bruno@clisp.org>
58531
58532         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
58533         ptrdiff_t as m4/intl.m4.
58534
58535 2007-11-10  Jim Meyering  <meyering@redhat.com>
58536
58537         Avoid link failure for the argmatch test.
58538         * tests/test-argmatch.c (usage): Define function to avoid a link
58539         failure: argmatch_die requires a usage function.
58540
58541 2007-11-09  Bruno Haible  <bruno@clisp.org>
58542
58543         * doc/functions/snprintf.texi: Mention BeOS deficiency.
58544         * doc/functions/vsnprintf.texi: Likewise.
58545         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
58546         with a size argument < 2.
58547
58548 2007-11-09  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
58551         buffer. Fixes an inefficiency introduced on 2007-11-03.
58552
58553 2007-11-09  Bruno Haible  <bruno@clisp.org>
58554
58555         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
58556         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
58557
58558 2007-11-08  Jim Meyering  <meyering@redhat.com>
58559
58560         Change cache variable name prefix "jm_" to "gl_" everywhere.
58561         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
58562         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
58563         * m4/uptime.m4: s/gl_/jm_/
58564
58565 2007-11-07  Bruno Haible  <bruno@clisp.org>
58566
58567         Update to GNU gettext 0.17.
58568         * m4/intl.m4: Update to GNU gettext 0.17.
58569         * m4/po.m4: Likewise.
58570         * modules/gettext (Files): Remove m4/ulonglong.m4.
58571         (configure.ac): Require gettext infrastructure from version 0.17.
58572
58573 2007-11-06  Bruno Haible  <bruno@clisp.org>
58574
58575         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
58576         symbolic values are not defined in a public header.
58577         * lib/freadable.c (freadable) [QNX]: Likewise.
58578         * lib/freadahead.c (freadahead) [QNX]: Likewise.
58579         * lib/freading.c (freading) [QNX]: Likewise.
58580         * lib/fseterr.c (fseterr) [QNX]: Likewise.
58581         * lib/fwritable.c (fwritable) [QNX]: Likewise.
58582         * lib/fwriting.c (fwriting) [QNX]: Likewise.
58583         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
58584         Reported by Alain Magloire.
58585
58586         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
58587
58588 2007-11-05  Bruno Haible  <bruno@clisp.org>
58589
58590         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
58591         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
58592         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
58593         Reported by Eric Blake.
58594
58595 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58596             Bruno Haible  <bruno@clisp.org>
58597
58598         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
58599         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
58600         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
58601         (malloc): Undefine also before including <stdlib.h>.
58602         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
58603         Needed on OSF/1 4.0.
58604
58605 2007-11-05  Jim Meyering  <meyering@redhat.com>
58606
58607         git-version-gen: sync from coreutils.
58608         * build-aux/git-version-gen: Add comments.
58609         Change the first '-' to '.' in the snapshot version string,
58610         e.g., 6.9-377-08144 -> 6.9.377-08144
58611         Remove first parameter.
58612         Don't declare a version "-dirty" merely because a time
58613         stamp has changed.
58614
58615 2007-11-04  Bruno Haible  <bruno@clisp.org>
58616
58617         * lib/lock.h: Protect all macro definitions containing an 'if'
58618         statement through a "do { ... } while (0)".
58619         * lib/tls.h: Likewise.
58620
58621 2007-11-04  Bruno Haible  <bruno@clisp.org>
58622
58623         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
58624
58625 2007-11-04  Bruno Haible  <bruno@clisp.org>
58626
58627         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
58628         * modules/fprintf-posix (Depends-on): Add nocrash.
58629         * modules/snprintf-posix (Depends-on): Likewise.
58630         * modules/sprintf-posix (Depends-on): Likewise.
58631         * modules/vasnprintf-posix (Depends-on): Likewise.
58632         * modules/vasprintf-posix (Depends-on): Likewise.
58633         * modules/vfprintf-posix (Depends-on): Likewise.
58634         * modules/vsnprintf-posix (Depends-on): Likewise.
58635         * modules/vsprintf-posix (Depends-on): Likewise.
58636         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
58637         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
58638         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
58639         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58640         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
58641         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
58642         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
58643
58644 2007-11-04  Bruno Haible  <bruno@clisp.org>
58645
58646         * modules/nocrash: New file.
58647         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
58648         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
58649
58650 2007-11-04  Bruno Haible  <bruno@clisp.org>
58651
58652         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
58653         precision handling.
58654         * tests/test-vasprintf-posix.c (test_function): Likewise.
58655         * tests/test-snprintf-posix.h (test_function): Likewise.
58656         * tests/test-sprintf-posix.h (test_function): Likewise.
58657
58658         Fix *printf behaviour for large precisions on mingw and BeOS.
58659         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
58660         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
58661         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
58662         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58663         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58664         gl_PRINTF_PRECISION and test its result. Invoke
58665         gl_PREREQ_VASNPRINTF_PRECISION.
58666         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58667         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58668         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58669         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58670         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58671         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58672         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58673         * doc/functions/fprintf.texi: Update.
58674         * doc/functions/printf.texi: Update.
58675         * doc/functions/snprintf.texi: Update.
58676         * doc/functions/sprintf.texi: Update.
58677         * doc/functions/vfprintf.texi: Update.
58678         * doc/functions/vprintf.texi: Update.
58679         * doc/functions/vsnprintf.texi: Update.
58680         * doc/functions/vsprintf.texi: Update.
58681
58682 2007-11-04  Bruno Haible  <bruno@clisp.org>
58683
58684         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
58685
58686 2007-11-04  Bruno Haible  <bruno@clisp.org>
58687
58688         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
58689         Reported by Sylvain Beucler <beuc@gnu.org>.
58690
58691 2007-11-03  Bruno Haible  <bruno@clisp.org>
58692
58693         * tests/test-fprintf-posix2.sh: New file.
58694         * tests/test-fprintf-posix2.c: New file.
58695         * modules/fprintf-posix-tests (Files): Add them.
58696         (TESTS): Add test-fprintf-posix2.sh.
58697         (configure.ac): Check for getrlimit and setrlimit.
58698         (check_PROGRAMS): Add test-fprintf-posix2.
58699
58700         * tests/test-printf-posix2.sh: New file.
58701         * tests/test-printf-posix2.c: New file.
58702         * modules/printf-posix-tests (Files): Add them.
58703         (TESTS): Add test-printf-posix2.sh.
58704         (configure.ac): Check for getrlimit and setrlimit.
58705         (check_PROGRAMS): Add test-printf-posix2.
58706
58707         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
58708         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
58709         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
58710         (decode_double): New function, copied from decode_long_double.
58711         (scale10_round_decimal_decoded): New function, extracted from
58712         scale10_round_decimal_long_double.
58713         (scale10_round_decimal_long_double): Use it.
58714         (scale10_round_decimal_double): New function.
58715         (floorlog10): New function.
58716         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
58717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
58718         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
58719         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
58720         gl_PRINTF_ENOMEM and test its result. Invoke
58721         gl_PREREQ_VASNPRINTF_ENOMEM.
58722         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
58723         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58724         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58725         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58726         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
58727         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58728         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58729         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
58730         * modules/snprintf-posix (Depends-on): Likewise.
58731         * modules/sprintf-posix (Depends-on): Likewise.
58732         * modules/vasnprintf-posix (Depends-on): Likewise.
58733         * modules/vasprintf-posix (Depends-on): Likewise.
58734         * modules/vfprintf-posix (Depends-on): Likewise.
58735         * modules/vsnprintf-posix (Depends-on): Likewise.
58736         * modules/vsprintf-posix (Depends-on): Likewise.
58737         * doc/functions/fprintf.texi: Update.
58738         * doc/functions/printf.texi: Update.
58739         * doc/functions/snprintf.texi: Update.
58740         * doc/functions/sprintf.texi: Update.
58741         * doc/functions/vfprintf.texi: Update.
58742         * doc/functions/vprintf.texi: Update.
58743         * doc/functions/vsnprintf.texi: Update.
58744         * doc/functions/vsprintf.texi: Update.
58745
58746 2007-11-03  Bruno Haible  <bruno@clisp.org>
58747
58748         * modules/frexp-nolibm-tests: New file.
58749
58750         * modules/frexp-nolibm: New file.
58751         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
58752
58753 2007-11-03  Bruno Haible  <bruno@clisp.org>
58754
58755         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
58756         value is C99 compliant.
58757         Needed for OSF/1 5.1.
58758
58759 2007-11-03  Bruno Haible  <bruno@clisp.org>
58760
58761         Fix out-of-memory handling of vasnprintf.
58762         * lib/printf-parse.c: Include <errno.h>.
58763         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
58764         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
58765         is already set.
58766
58767 2007-11-02  Eric Blake  <ebb9@byu.net>
58768
58769         Fix tests on cygwin.
58770         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
58771
58772 2007-11-01  Bruno Haible  <bruno@clisp.org>
58773
58774         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
58775         warning.
58776         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
58777         needed for POSIX compatibility.
58778
58779 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
58782         for compatibility with GNU.
58783
58784 2007-11-01  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
58787         (putenv): Renamed from rpl_putenv. Change argument type from
58788         'const char *' to 'char *'.
58789         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
58790         of defining putenv in config.h, just set REPLACE_PUTENV.
58791         * modules/putenv (Depends-on): Add stdlib.
58792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58793         (Include): Use <stdlib.h>.
58794         * lib/stdlib.in.h (putenv): New declaration.
58795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
58796         REPLACE_PUTENV.
58797         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
58798         REPLACE_PUTENV.
58799         Needed for MacOS X 10.5.0.
58800         Reported by Peter O'Gorman <peter@pogma.com>.
58801
58802 2007-11-01  Jim Meyering  <meyering@redhat.com>
58803
58804         Treat an empty date string exactly like "0".
58805         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
58806         if the remaining date string (to be parsed) is empty, use "0".
58807         Reported by Mischa Molhoek and discussed in this thread:
58808         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
58809
58810 2007-10-31  Bruno Haible  <bruno@clisp.org>
58811
58812         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
58813         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
58814         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
58815         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
58816         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
58817         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
58818
58819 2007-10-31  Bruno Haible  <bruno@clisp.org>
58820
58821         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
58822         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
58823         (AC_TYPE_LONG_LONG_INT): Use it.
58824         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
58825         it as well.
58826         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
58827         to m4/longlong.m4.
58828         * modules/stdint (Files): Remove m4/ulonglong.m4.
58829         * modules/strtoull (Files): Use m4/longlong.m4 instead of
58830         m4/ulonglong.m4.
58831         * modules/strtoumax (Files): Likewise.
58832
58833 2007-10-30  Bruno Haible  <bruno@clisp.org>
58834
58835         * modules/xvasprintf-posix: New file.
58836         Suggested by Eric Blake.
58837
58838 2007-10-30  Bruno Haible  <bruno@clisp.org>
58839
58840         * modules/xprintf-posix-tests: New file.
58841         * tests/test-xprintf-posix.sh: New file.
58842         * tests/test-xprintf-posix.c: New file.
58843         * tests/test-xfprintf-posix.c: New file.
58844
58845         * modules/xprintf-posix: New file.
58846
58847 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58848
58849         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
58850         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
58851         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
58852
58853 2007-10-29  Bruno Haible  <bruno@clisp.org>
58854
58855         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
58856         contain the special marker '_cv_'.
58857         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
58858         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
58859         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
58860         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
58861         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
58862         Reported by Ralf Wildenhues.
58863
58864 2007-10-29  Bruno Haible  <bruno@clisp.org>
58865
58866         * gnulib-tool (func_import): When --lgpl is not specified, set
58867         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
58868         GPLv3.
58869         Reported by Simon Josefsson.
58870
58871 2007-10-28  Bruno Haible  <bruno@clisp.org>
58872
58873         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
58874         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
58875         HAVE_DECL_ISFINITE.
58876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58877         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
58878         HAVE_DECL_ISFINITE.
58879
58880 2007-10-28  Bruno Haible  <bruno@clisp.org>
58881
58882         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
58883         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
58884
58885 2007-10-28  Bruno Haible  <bruno@clisp.org>
58886
58887         Fix link errors with Sun C 5.0 on Solaris 10.
58888         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
58889         function is declared but not present in the compiler's libm.
58890         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
58891         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
58892         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
58893         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
58894         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
58895         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
58896         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
58897         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
58898         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
58899         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
58900         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
58901         HAVE_DECL_FLOORL.
58902
58903 2007-10-28  Bruno Haible  <bruno@clisp.org>
58904
58905         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
58906         gl_FUNC_FLOORL. Cache the result.
58907         (gl_FUNC_FLOORL): Use it.
58908         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
58909         gl_FUNC_CEILL. Cache the result.
58910         (gl_FUNC_CEILL): Use it.
58911
58912         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
58913         gl_FUNC_FLOOR. Cache the result.
58914         (gl_FUNC_FLOOR): Use it.
58915         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
58916         gl_FUNC_CEIL. Cache the result.
58917         (gl_FUNC_CEIL): Use it.
58918
58919         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
58920         gl_FUNC_FLOORF. Cache the result.
58921         (gl_FUNC_FLOORF): Use it.
58922         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
58923         gl_FUNC_CEILF. Cache the result.
58924         (gl_FUNC_CEILF): Use it.
58925
58926 2007-10-28  Bruno Haible  <bruno@clisp.org>
58927
58928         * gnulib-tool: Allow specifying the LGPL version number through
58929         --lgpl=2 or --lgpl=3.
58930         (func_usage): Document --lgpl with argument.
58931         Handle --lgpl=... arguments.
58932         (func_import): Recognize also gl_LGPL calls with an argument. When
58933         --lgpl=2 is used and the module's license is just LGPL, report an
58934         error. Set sed_transform_lib_file according to the lgpl variable. In
58935         the generated files, use --lgpl or gl_LGPL invocations with argument,
58936         if necessary.
58937         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
58938         an LGPv2+ license.
58939         * doc/gnulib-tool.texi (Modified imports): Update explanation of
58940         gl_LGPL macro.
58941
58942 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58943             Bruno Haible  <bruno@clisp.org>
58944
58945         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
58946         (u16_uctomb_aux): Likewise.
58947         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
58948         !HAVE_INLINE.
58949         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
58950
58951 2007-10-28  Bruno Haible  <bruno@clisp.org>
58952
58953         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
58954         Invoke AM_GETTEXT_OPTION if it exists.
58955         * modules/vasprintf: Likewise.
58956         * modules/verror: Likewise.
58957         * modules/xprintf: Likewise.
58958         * modules/xvasprintf: Likewise.
58959
58960 2007-10-27  Ben Pfaff  <blp@gnu.org>
58961
58962         * lib/math.in.h: Define isfinite macro and prototypes for
58963         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
58964         implementations.
58965         * m4/math_h.m4: New substitutions for isfinite module.
58966         * lib/isfinite.c: New file.
58967         * m4/isfinite.m4: New file.
58968         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
58969         * modules/isfinite: New file.
58970         * modules/isfinite-tests: New file.
58971         * tests/tests-isfinite.c: New file.
58972         * doc/functions/isfinite.texi: Mention isfinite module.
58973         * MODULES.html.sh: Mention new module.
58974
58975 2007-10-27  Ben Pfaff  <blp@gnu.org>
58976
58977         Ralf Wildenhues reported that Tru64 4.0D declares the round
58978         functions but does not have definitions.
58979         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
58980         cannot be found in any library, set the output variable to
58981         "missing" instead of "".
58982         * m4/round.m4: Also use our substitute if we cannot find round in
58983         any library, even if it is declared.
58984         * m4/roundf.m4: Likewise for roundf.
58985         * m4/roundl.m4: Likewise for roundl.
58986         * lib/math.in.h: Undefine roundf, round, roundl before defining
58987         their replacements, to allow for hypothetical systems where these
58988         may be defined as macros but not available in libraries.
58989
58990 2007-10-27  Bruno Haible  <bruno@clisp.org>
58991
58992         * doc/gnulib.texi: Invoke @firstparagraphindent.
58993         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
58994         changes in gnulib.
58995         (Source changes): New section.
58996
58997 2007-10-26  Bruno Haible  <bruno@clisp.org>
58998
58999         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59000         borrowed from autoconf.
59001
59002 2007-10-26  Bruno Haible  <bruno@clisp.org>
59003
59004         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59005         strerror returned the empty string. Needed on HP-UX 11.00.
59006
59007 2007-10-24  Micah Cowan  <micah@cowan.name>
59008
59009         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59010         * build-aux/bootstrap: Remove support for now-unnecessary option,
59011         --cvs-user, and envvars CVS_USER, CVS_RSH.
59012
59013 2007-10-24  Jim Meyering  <meyering@redhat.com>
59014
59015         Avoid diagnostics from sha1sum when there is no cached checksum.
59016         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59017         if the po.s1 file hasn't been created yet.
59018
59019         * build-aux/bootstrap: Sync from coreutils:
59020         2007-10-24  Jim Meyering  <meyering@redhat.com>
59021         Get gnulib from the git repository, not from an obsolete cvs one.
59022         * build-aux/bootstrap: Suggestion from Micah Cowan.
59023         2007-10-04  Jim Meyering  <jim@meyering.net>
59024         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59025         (update_po_files): Work also when there are no .po files in po/.
59026
59027 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * README: Append ".git" to git and cg examples.
59030         Problem reported by Benoit Sigoure.
59031
59032 2007-10-23  Micah Cowan  <micah@cowan.name>
59033
59034         * users.txt: Add wget.
59035
59036 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59037
59038         Fix linking of some unistdio tests on FreeBSD.
59039         * modules/unistdio/u16-vsnprintf-tests
59040         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59041         * modules/unistdio/u16-vsprintf-tests
59042         (test_u16_vsnprintf1_LDADD): Likewise.
59043         * modules/unistdio/u32-vsnprintf-tests
59044         (test_u32_vsnprintf1_LDADD): Likewise.
59045         * modules/unistdio/u32-vsprintf-tests
59046         (test_u32_vsprintf1_LDADD): Likewise.
59047         * modules/unistdio/u8-vsnprintf-tests
59048         (test_u8_vsnprintf1_LDADD): Likewise.
59049         * modules/unistdio/u8-vsprintf-tests
59050         (test_u8_vsprintf1_LDADD): Likewise.
59051         * modules/unistdio/ulc-vsnprintf-tests
59052         (test_ulc_vsnprintf1_LDADD): Likewise.
59053         * modules/unistdio/ulc-vsprintf-tests
59054         (test_ulc_vsprintf1_LDADD): Likewise.
59055
59056         Fix linking of some uniconv tests on FreeBSD.
59057         * modules/uniconv/u16-conv-from-enc-tests
59058         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59059         * modules/uniconv/u16-conv-to-enc-tests
59060         (test_u16_conv_to_enc_LDADD): Likewise.
59061         * modules/uniconv/u16-strconv-from-enc-tests
59062         (test_u16_strconv_from_enc_LDADD): Likewise.
59063         * modules/uniconv/u16-strconv-to-enc-tests
59064         (test_u16_strconv_to_enc_LDADD): Likewise.
59065         * modules/uniconv/u32-conv-from-enc-tests
59066         (test_u32_conv_from_enc_LDADD): Likewise.
59067         * modules/uniconv/u32-conv-to-enc-tests
59068         (test_u32_conv_to_enc_LDADD): Likewise.
59069         * modules/uniconv/u32-strconv-from-enc-tests
59070         (test_u32_strconv_from_enc_LDADD): Likewise.
59071         * modules/uniconv/u32-strconv-to-enc-tests
59072         (test_u32_strconv_to_enc_LDADD): Likewise.
59073         * modules/uniconv/u8-conv-from-enc-tests
59074         (test_u8_conv_from_enc_LDADD): Likewise.
59075         * modules/uniconv/u8-conv-to-enc-tests
59076         (test_u8_conv_to_enc_LDADD): Likewise.
59077         * modules/uniconv/u8-strconv-from-enc-tests
59078         (test_u8_strconv_from_enc_LDADD): Likewise.
59079         * modules/uniconv/u8-strconv-to-enc-tests
59080         (test_u8_strconv_to_enc_LDADD): Likewise.
59081
59082 2007-10-22  Bruno Haible  <bruno@clisp.org>
59083
59084         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59085         size.
59086
59087 2007-10-22  Eric Blake  <ebb9@byu.net>
59088
59089         Tweak x*printf documentation.
59090         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59091         variable name and comments.
59092         Suggested by Bruno Haible.
59093
59094 2007-10-22  Bruno Haible  <bruno@clisp.org>
59095
59096         * lib/acl.c (copy_acl): Fix file name in comment.
59097
59098 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59099
59100         Fix Tru64 problem with stdbool.h.
59101         * lib/stdbool.in.h (false, true):
59102         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59103         Don't declare as an enum in this situation; it runs afoul of Tru64.
59104         Problem reported by Steven M. Schweda in
59105         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59106
59107 2007-10-22  Eric Blake  <ebb9@byu.net>
59108
59109         Also wrap vf?printf.
59110         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59111         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59112         (xvprintf, xvfprintf): New functions.
59113
59114 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59115
59116         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59117         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59118
59119         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59120         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59121
59122 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59123
59124         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59125         by Bruno Haible.
59126
59127 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59128
59129         * lib/getloadavg.c
59130         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59131         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59132
59133         * tests/test-i-ring.c: Work for C89.
59134
59135 2007-10-22  Bruno Haible  <bruno@clisp.org>
59136
59137         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59138         -1u, in preprocessor expression, so that we don't test for the bug
59139         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59140         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59141
59142 2007-10-22  Eric Blake  <ebb9@byu.net>
59143
59144         * tests/test-yesno.sh: Silence stderr during test.
59145
59146 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59147
59148         * modules/crypto/gc-camellia: New file.
59149
59150         * m4/gc-camellia.m4: New file.
59151
59152         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59153
59154         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59155
59156 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59157
59158         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59159         --help to stdout.  Reported by sms@antinode.org (Steven
59160         M. Schweda).
59161
59162 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59163
59164         * users.txt: Fix link to libksba.
59165
59166 2007-10-21  Ben Pfaff  <blp@gnu.org>
59167
59168         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59169         round.c roundf implementation that depends on floorf and ceilf to
59170         be tested unconditionally.
59171
59172 2007-10-21  Ben Pfaff  <blp@gnu.org>
59173
59174         * m4/check-libm-func.m4: Removed.
59175         * m4/check-math-lib.m4: New file.
59176         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59177         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59178         definition and lack of AC_LIBOBJ([roundf]).
59179         * m4/roundl.m4: Ditto, and similarly for roundl.
59180         * modules/round: Reference new m4 file.
59181         * modules/roundf: Ditto.
59182         * modules/roundl: Ditto.
59183         * tests/test-round2.c (main): Use ROUND instead of round.
59184         Bug report from Bruno Haible.
59185
59186 2007-10-21  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59189         context.
59190
59191 2007-10-21  Bruno Haible  <bruno@clisp.org>
59192
59193         * tests/test-wcwidth.c (main): Allow negative result for some control
59194         characters.
59195
59196         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59197         Needed on OSF/1 5.1.
59198
59199 2007-10-21  Bruno Haible  <bruno@clisp.org>
59200
59201         * tests/test-floorf1.c: Include isnanf.h.
59202         (main): Use isnanf() instead of isnan().
59203         * tests/test-ceilf1.c: Include isnanf.h.
59204         (main): Use isnanf() instead of isnan().
59205         * tests/test-truncf1.c: Include isnanf.h.
59206         (main): Use isnanf() instead of isnan().
59207         * tests/test-roundf1.c: Include isnanf.h.
59208         (main): Use isnanf() instead of isnan().
59209
59210 2007-10-21  Eric Blake  <ebb9@byu.net>
59211
59212         * users.txt: Update URL for m4.
59213
59214 2007-10-21  Bruno Haible  <bruno@clisp.org>
59215
59216         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59217
59218 2007-10-21  Bruno Haible  <bruno@clisp.org>
59219
59220         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59221         Git's management files if the CVS files are not present.
59222
59223 2007-10-20  Bruno Haible  <bruno@clisp.org>
59224
59225         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59226         gcc-3.4.x.
59227
59228 2007-10-20  Ben Pfaff  <blp@gnu.org>
59229
59230         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59231         implementations.
59232         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59233         * lib/round.c: New file.
59234         * lib/roundf.c: New file.
59235         * lib/roundl.c: New file.
59236         * m4/round.m4: New file.
59237         * m4/roundf.m4: New file.
59238         * m4/roundl.m4: New file.
59239         * m4/check-libm-func-m4: New file.
59240         * modules/math: Replace round, roundf, roundl related @VARS@ in
59241         math.in.h.
59242         * modules/round: New file.
59243         * modules/round-tests: New file.
59244         * modules/roundf: New file.
59245         * modules/roundf-tests: New file.
59246         * modules/roundl: New file.
59247         * modules/roundl-tests: New file.
59248         * tests/test-round1.c: New file.
59249         * tests/test-round2.c: New file.
59250         * tests/test-roundf1.c: New file.
59251         * tests/test-roundf2.c: New file.
59252         * tests/test-roundl.c: New file.
59253         * doc/functions/round.texi: Mention round module.
59254         * doc/functions/roundf.texi: Mention roundf module.
59255         * doc/functions/roundl.texi: Mention roundl module.
59256         * MODULES.html.sh: Mention new modules.
59257         Thanks to Bruno Haible for suggestions.
59258
59259 2007-10-20  Jim Meyering  <meyering@redhat.com>
59260
59261         * lib/xprintf.c: Include <config.h> unconditionally.
59262
59263         Change xprintf's license to GPL.
59264         * modules/xprintf (License): s/LGPL/GPL/, since this module
59265         depends on modules (exit and exitfail) which are GPL.
59266         Suggestion from Bruno Haible.
59267
59268         xprintf fixes.
59269         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59270         Use a clearer diagnostic.
59271         Patch from Bruno Haible.
59272
59273 2007-10-20  Bruno Haible  <bruno@clisp.org>
59274
59275         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59276         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59277         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59278
59279 2007-10-20  Bruno Haible  <bruno@clisp.org>
59280
59281         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59282         precision in the comparison result > x - 1 or similar.
59283         * tests/test-ceilf2.c (correct_result_p): Likewise.
59284         * tests/test-truncf2.c (correct_result_p): Likewise.
59285         * tests/test-trunc2.c (correct_result_p): Likewise.
59286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59287
59288 2007-10-20  Bruno Haible  <bruno@clisp.org>
59289
59290         * modules/ceil: New file.
59291         * m4/ceil.m4: New file.
59292         * doc/functions/ceil.texi: Mention the 'ceil' module.
59293
59294 2007-10-20  Bruno Haible  <bruno@clisp.org>
59295
59296         * modules/floor: New file.
59297         * m4/floor.m4: New file.
59298         * doc/functions/floor.texi: Mention the 'floor' module.
59299
59300 2007-10-20  Bruno Haible  <bruno@clisp.org>
59301
59302         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59303         of %a.
59304         * modules/floorf-tests (Depends-on): Likewise.
59305         * modules/truncf-tests (Depends-on): Likewise.
59306         * modules/trunc-tests (Depends-on): Likewise.
59307         Reported by Ben Pfaff.
59308
59309 2007-10-19  Jim Meyering  <meyering@redhat.com>
59310
59311         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59312         Don't bother testing specific errno values.  Just test ferror.
59313
59314         New module: xprintf
59315         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59316
59317 2007-10-19  Bruno Haible  <bruno@clisp.org>
59318
59319         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59320         syntax.
59321         * modules/javaexec (Makefile.am): Likewise.
59322         * modules/relocatable-prog (Makefile.am): Likewise.
59323         Suggested by Jim Meyering.
59324
59325 2007-10-18  Bruno Haible  <bruno@clisp.org>
59326
59327         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59328         Reported by Jim Meyering.
59329
59330 2007-10-18  Eric Blake  <ebb9@byu.net>
59331
59332         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59333
59334 2007-10-18  Bruno Haible  <bruno@clisp.org>
59335
59336         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59337         the format string into writable memory. Needed in Fortify conditions.
59338
59339 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59340             Bruno Haible  <bruno@clisp.org>
59341
59342         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59343         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59344         * modules/trim (Depends-on): Add mbchar.
59345         (configure.ac): Add gl_FUNC_MBRTOWC.
59346         (Makefile.am): Augment lib_SOURCES.
59347
59348 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59349
59350         Modify glob.c to use fstatat and dirfd, to simplify it.
59351         Suggested by Eric Blake.
59352         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59353         Don't include <stdbool.h>; not used.
59354         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59355         (link_exists_p): Simplify implementation, since we can now assume
59356         dirfd and fstatat.
59357         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59358
59359 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59360
59361         * gnulib-tool (func_get_dependencies): Fix sed script to
59362         match only tests.
59363
59364 2007-10-17  Bruno Haible  <bruno@clisp.org>
59365
59366         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59367         allow locale names without encoding suffix.
59368         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59369         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59370
59371 2007-10-16  Bruno Haible  <bruno@clisp.org>
59372
59373         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59374         * lib/getgroups.c (getgroups): Likewise.
59375         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59376
59377 2007-10-16  Bruno Haible  <bruno@clisp.org>
59378
59379         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59380         * modules/malloc-posix (License): Likewise.
59381         * modules/realloc-posix (License): Likewise.
59382         * modules/calloc-posix (License): Likewise.
59383         * modules/intprops (License): Change from GPL to LGPL, with
59384         Paul Eggert's approval.
59385
59386 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59387
59388         Merge glibc changes into lib/glob.c.
59389
59390         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59391         2007-10-15 04:59:03 UTC.  Here are the changes:
59392
59393         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59394
59395         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59396
59397         * lib/glob.c: Add some branch prediction throughout.
59398
59399         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59400
59401         [BZ #5103]
59402         * lib/glob.c (glob): Recognize patterns starting \/.
59403
59404         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59405
59406         [BZ #3996]
59407         * lib/glob.c (attribute_hidden): Define if not defined.
59408         (glob): Unescape dirname, filename or username when needed and not
59409         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59410         is NULL.  Handle unescaped [ in pattern without closing ].
59411         Don't pass GLOB_CHECK down to recursive glob for directories.
59412         (__glob_pattern_type): New function.
59413         (__glob_pattern_p): Implement using __glob_pattern_type.
59414         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59415         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59416         Remove unreachable code.
59417
59418         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59419
59420         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59421         explain why there are no leaks.
59422
59423         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59424
59425         [BZ #3253]
59426         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59427         time, rather allocate increasingly bigger arrays of pointers, if
59428         possible with alloca, if too large with malloc.
59429
59430 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59433         Problem reported by H.Merijn Brand in
59434         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59435         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59436         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
59437
59438 2007-10-15  Bruno Haible  <bruno@clisp.org>
59439
59440         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
59441         with explicit rpl_ prefix.
59442         * lib/fopen.c (fopen): Likewise.
59443         * lib/freopen.c (freopen): Likewise.
59444         * lib/iconv.c (iconv): Likewise.
59445         * lib/iconv_close.c (iconv_close): Likewise.
59446
59447 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59448
59449         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
59450
59451 2007-10-15  Bruno Haible  <bruno@clisp.org>
59452
59453         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
59454         <stddef.h> instead of <stdlib.h> since we only need NULL.
59455         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59456
59457 2007-10-15  Bruno Haible  <bruno@clisp.org>
59458
59459         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
59460         Replace paragraph talking about LIBOBJS.
59461         Reported by Colin Watson <cjwatson@debian.org>.
59462
59463 2007-10-15  Bruno Haible  <bruno@clisp.org>
59464
59465         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
59466         <stdlib.h> before using NULL.
59467
59468 2007-10-15  Simon Josefsson  <simon@josefsson.org>
59469
59470         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
59471         Reported by Albert Chin <china@thewrittenword.com>.
59472
59473 2007-10-14  Bruno Haible  <bruno@clisp.org>
59474
59475         * modules/iconv_open-utf-tests: New file.
59476         * tests/test-iconv-utf.c: New file.
59477
59478         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
59479         * modules/iconv_open-utf: New file.
59480         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
59481         (iconv, iconv_close): New declarations.
59482         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
59483         be defined.
59484         (iconv_open): Add special handling of conversion between UTF-8 and
59485         UTF-{16,32}{BE,LE}.
59486         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
59487         * lib/iconv_close.c: New file.
59488         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
59489         gl_FUNC_ICONV_OPEN.
59490         (gl_FUNC_ICONV_OPEN): Use it.
59491         (gl_FUNC_ICONV_OPEN_UTF): New macro.
59492         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
59493         and REPLACE_ICONV_UTF.
59494         * modules/iconv_open (Depends-on): Add c-strcase.
59495         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
59496         ICONV_CONST.
59497         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
59498
59499 2007-10-13  Albert Chin  <china@thewrittenword.com>
59500             Bruno Haible  <bruno@clisp.org>
59501
59502         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
59503         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
59504
59505 2007-10-13  Bruno Haible  <bruno@clisp.org>
59506
59507         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
59508         defined, use the ISO C99 inline semantics.
59509         * lib/argp.h (ARGP_EI): Likewise.
59510
59511 2007-10-13  Bruno Haible  <bruno@clisp.org>
59512
59513         Handle 'inline' change in gcc 4.3.0.
59514         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
59515         argp_fmtstream_write, argp_fmtstream_set_lmargin,
59516         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
59517         argp_fmtstream_point): Disable 'extern' declaration if the function
59518         definition is going to be provided inline.
59519         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
59520         semantics, not the ISO C99 inline semantics.
59521         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
59522         'extern' declaration if the function definition is going to be provided
59523         inline.
59524         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
59525         the GNU C inline semantics, not the ISO C99 inline semantics. With
59526         GCC 4.2, avoid a warning.
59527
59528 2007-10-13  Bruno Haible  <bruno@clisp.org>
59529
59530         * lib/freading.h (freading): Enable the use of __freading for
59531         glibc >= 2.7.
59532         * lib/freading.c (freading): Likewise.
59533
59534 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
59537         "warning: C99 inline functions are not supported; using GNU89".
59538
59539 2007-10-12  Bruno Haible  <bruno@clisp.org>
59540
59541         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
59542         of 2.
59543         * tests/test-ceilf2.c: New file.
59544         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
59545
59546         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
59547         * modules/ceilf-tests: Update.
59548
59549 2007-10-12  Bruno Haible  <bruno@clisp.org>
59550
59551         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
59552         of 2.
59553         * tests/test-floorf2.c: New file.
59554         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
59555
59556         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
59557         * modules/floorf-tests: Update.
59558
59559 2007-10-12  Bruno Haible  <bruno@clisp.org>
59560
59561         * tests/test-trunc2.c: New file.
59562         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
59563
59564         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
59565         * modules/trunc-tests: Update.
59566
59567 2007-10-12  Bruno Haible  <bruno@clisp.org>
59568
59569         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
59570         of 2.
59571         * tests/test-truncf2.c: New file.
59572         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
59573
59574         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
59575         * modules/truncf-tests: Update.
59576
59577 2007-10-11  Eric Blake  <ebb9@byu.net>
59578
59579         Don't claim strerror is broken on Interix.
59580         * doc/functions/strerror.texi (strerror): Known broken systems are
59581         now Solaris 8, and not Interix.
59582         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
59583         Interix on cross-compile.
59584         Reported by Martin Koeppe in
59585         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
59586
59587 2007-10-11  Bruno Haible  <bruno@clisp.org>
59588
59589         * modules/i-ring-tests: New file.
59590         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
59591         instead of assert.
59592
59593 2007-10-11  Bruno Haible  <bruno@clisp.org>
59594
59595         * modules/filenamecat-tests: New file.
59596         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
59597         * lib/filenamecat.c: Remove test code.
59598
59599 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
59600
59601         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
59602
59603         * lib/strerror.c: Include <string.h> always, to test interface,
59604         and to remove the need for the dummy.
59605         Include intprops.h to compute width instead of doing it ourselves
59606         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
59607         (strerror): Define it to return NULL if there's no system strerror.
59608         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
59609         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
59610         ancient pre-strerror Unix systems well any more.  Saying "unknown
59611         system error" is enough.
59612         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
59613         simpler strerror.c implementation.
59614         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
59615         Simplify the tests to reflect the simpler strerror implementation.
59616         * modules/strerror (Depends-on): Add intprops.
59617
59618 2007-10-09  Eric Blake  <ebb9@byu.net>
59619
59620         Silence test-fpending.
59621         * modules/fpending-tests (Files): Add wrapper script.
59622         * tests/test-fpending.sh: New file.
59623
59624 2007-10-09  Bruno Haible  <bruno@clisp.org>
59625
59626         * MODULES.html.sh (func_module): Don't create a hyperlink for
59627         function names like 'printf_frexp'.
59628         (Misc): Add crc, memxor.
59629         (Characteristics of floating types): New section.
59630         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
59631         isnanf-nolibm, signbit, trunc, truncf, truncl.
59632         (Enhancements for ISO C 99 functions): New subsection Input/output.
59633         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
59634         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
59635         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
59636         (Compatibility checks for POSIX:2001 functions): Add clock-time.
59637         (Enhancements for POSIX:2001 functions): Add chdir-long.
59638         (File system functions): Add areadlink, chdir-safer, read-file.
59639         Remove cycle-check.
59640         (File system as inode set): New section.
59641         (Date and time): Add gethrxtime.
59642         (Multithreading): Add openmp.
59643         (Internationalization functions): Add localename.
59644         (Unicode string functions): Add unistr/u*-mbsnlen.
59645         (Support for maintaining and releasing projects): Add git-version-gen.
59646         (Lone files): Remove directories.
59647
59648 2007-10-08  Ben Pfaff  <blp@gnu.org>
59649
59650         * lib/xmalloca.h: Fix typo in comment.
59651
59652 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
59653
59654         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
59655         when avoiding problems with integer overflow.  Use a portable test
59656         instead.
59657
59658 2007-10-08  Simon Josefsson  <simon@josefsson.org>
59659
59660         * modules/dummy (License): Change to LGPLv2+.
59661         * modules/float (License): Likewise
59662         * modules/realloc (License): Likewise
59663         * modules/stdlib (License): Likewise
59664
59665 2007-10-07  Bruno Haible  <bruno@clisp.org>
59666
59667         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
59668         * floor.c (TWO_MANT_DIG): Likewise.
59669         * ceil.c (TWO_MANT_DIG): Likewise.
59670         Reported by Ben Pfaff.
59671
59672 2007-10-07  Bruno Haible  <bruno@clisp.org>
59673
59674         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
59675         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
59676         * lib/frexp.c (FUNC): Likewise.
59677         * lib/printf-frexp.h (printf_frexp): Likewise.
59678         * lib/printf-frexpl.h (printf_frexpl): Likewise.
59679         * lib/printf-frexp.c (FUNC): Likewise.
59680         Suggested by Jim Meyering.
59681
59682 2007-10-07  Jim Meyering  <meyering@redhat.com>
59683
59684         Make xnanosleep's integer overflow test more robust.
59685         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
59686         so that gcc-4.3.0 doesn't optimize away this test for overflow.
59687
59688 2007-10-07  Bruno Haible  <bruno@clisp.org>
59689
59690         * NEWS: Mention the license change.
59691
59692         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
59693         abbreviations in the modules files.
59694
59695         Change copyright notice from GPLv2+ to GPLv3+.
59696         * README: Change copyright notice.
59697         * MODULES.html.sh: Likewise.
59698         * build-aux/bootstrap.conf: Likewise.
59699         * build-aux/config.libpath: Likewise.
59700         * build-aux/csharpcomp.sh.in: Likewise.
59701         * build-aux/csharpexec.sh.in: Likewise.
59702         * build-aux/install-reloc: Likewise.
59703         * build-aux/javacomp.sh.in: Likewise.
59704         * build-aux/javaexec.sh.in: Likewise.
59705         * build-aux/ldd.sh.in: Likewise.
59706         * build-aux/reloc-ldflags: Likewise.
59707         * build-aux/relocatable.sh.in: Likewise.
59708         * build-aux/x-to-1.in: Likewise.
59709         * check-module: Likewise.
59710         * config/srclistvars.sh: Likewise.
59711         * gnulib-tool: Likewise.
59712         * lib/acl-internal.h: Likewise.
59713         * lib/acl.c: Likewise.
59714         * lib/acl.h: Likewise.
59715         * lib/acl_entries.c: Likewise.
59716         * lib/areadlink-with-size.c: Likewise.
59717         * lib/areadlink.c: Likewise.
59718         * lib/areadlink.h: Likewise.
59719         * lib/argmatch.c: Likewise.
59720         * lib/argmatch.h: Likewise.
59721         * lib/argp-ba.c: Likewise.
59722         * lib/argp-eexst.c: Likewise.
59723         * lib/argp-fmtstream.c: Likewise.
59724         * lib/argp-fmtstream.h: Likewise.
59725         * lib/argp-fs-xinl.c: Likewise.
59726         * lib/argp-help.c: Likewise.
59727         * lib/argp-namefrob.h: Likewise.
59728         * lib/argp-parse.c: Likewise.
59729         * lib/argp-pin.c: Likewise.
59730         * lib/argp-pv.c: Likewise.
59731         * lib/argp-pvh.c: Likewise.
59732         * lib/argp-xinl.c: Likewise.
59733         * lib/argp.h: Likewise.
59734         * lib/at-func.c: Likewise.
59735         * lib/atanl.c: Likewise.
59736         * lib/backupfile.c: Likewise.
59737         * lib/backupfile.h: Likewise.
59738         * lib/basename.c: Likewise.
59739         * lib/binary-io.h: Likewise.
59740         * lib/byteswap.in.h: Likewise.
59741         * lib/c-stack.c: Likewise.
59742         * lib/c-stack.h: Likewise.
59743         * lib/c-strcasestr.c: Likewise.
59744         * lib/c-strcasestr.h: Likewise.
59745         * lib/c-strstr.c: Likewise.
59746         * lib/c-strstr.h: Likewise.
59747         * lib/c-strtod.c: Likewise.
59748         * lib/calloc.c: Likewise.
59749         * lib/canon-host.c: Likewise.
59750         * lib/canon-host.h: Likewise.
59751         * lib/canonicalize-lgpl.c: Likewise.
59752         * lib/canonicalize.c: Likewise.
59753         * lib/canonicalize.h: Likewise.
59754         * lib/ceil.c: Likewise.
59755         * lib/ceilf.c: Likewise.
59756         * lib/ceill.c: Likewise.
59757         * lib/chdir-long.c: Likewise.
59758         * lib/chdir-long.h: Likewise.
59759         * lib/chdir-safer.c: Likewise.
59760         * lib/chdir-safer.h: Likewise.
59761         * lib/chown.c: Likewise.
59762         * lib/classpath.c: Likewise.
59763         * lib/classpath.h: Likewise.
59764         * lib/clean-temp.c: Likewise.
59765         * lib/clean-temp.h: Likewise.
59766         * lib/cloexec.c: Likewise.
59767         * lib/close-stream.c: Likewise.
59768         * lib/closein.c: Likewise.
59769         * lib/closein.h: Likewise.
59770         * lib/closeout.c: Likewise.
59771         * lib/closeout.h: Likewise.
59772         * lib/concat-filename.c: Likewise.
59773         * lib/copy-file.c: Likewise.
59774         * lib/copy-file.h: Likewise.
59775         * lib/count-one-bits.h: Likewise.
59776         * lib/crc.c: Likewise.
59777         * lib/crc.h: Likewise.
59778         * lib/creat-safer.c: Likewise.
59779         * lib/csharpcomp.c: Likewise.
59780         * lib/csharpcomp.h: Likewise.
59781         * lib/csharpexec.c: Likewise.
59782         * lib/csharpexec.h: Likewise.
59783         * lib/cycle-check.c: Likewise.
59784         * lib/cycle-check.h: Likewise.
59785         * lib/diacrit.c: Likewise.
59786         * lib/diacrit.h: Likewise.
59787         * lib/diffseq.h: Likewise.
59788         * lib/dirchownmod.c: Likewise.
59789         * lib/dirent.in.h: Likewise.
59790         * lib/dirfd.c: Likewise.
59791         * lib/dirfd.h: Likewise.
59792         * lib/dirname.c: Likewise.
59793         * lib/dirname.h: Likewise.
59794         * lib/dummy.c: Likewise.
59795         * lib/dup-safer.c: Likewise.
59796         * lib/dup2.c: Likewise.
59797         * lib/eealloc.h: Likewise.
59798         * lib/error.c: Likewise.
59799         * lib/error.h: Likewise.
59800         * lib/euidaccess.c: Likewise.
59801         * lib/exclude.c: Likewise.
59802         * lib/exclude.h: Likewise.
59803         * lib/execute.c: Likewise.
59804         * lib/execute.h: Likewise.
59805         * lib/exitfail.c: Likewise.
59806         * lib/exitfail.h: Likewise.
59807         * lib/expl.c: Likewise.
59808         * lib/fatal-signal.c: Likewise.
59809         * lib/fatal-signal.h: Likewise.
59810         * lib/fbufmode.c: Likewise.
59811         * lib/fbufmode.h: Likewise.
59812         * lib/fchdir.c: Likewise.
59813         * lib/fchmodat.c: Likewise.
59814         * lib/fchownat.c: Likewise.
59815         * lib/fcntl--.h: Likewise.
59816         * lib/fcntl-safer.h: Likewise.
59817         * lib/fcntl.in.h: Likewise.
59818         * lib/fd-safer.c: Likewise.
59819         * lib/fflush.c: Likewise.
59820         * lib/file-has-acl.c: Likewise.
59821         * lib/file-set.c: Likewise.
59822         * lib/file-type.c: Likewise.
59823         * lib/file-type.h: Likewise.
59824         * lib/fileblocks.c: Likewise.
59825         * lib/filemode.c: Likewise.
59826         * lib/filemode.h: Likewise.
59827         * lib/filename.h: Likewise.
59828         * lib/filenamecat.c: Likewise.
59829         * lib/filenamecat.h: Likewise.
59830         * lib/findprog.c: Likewise.
59831         * lib/findprog.h: Likewise.
59832         * lib/float.in.h: Likewise.
59833         * lib/floor.c: Likewise.
59834         * lib/floorf.c: Likewise.
59835         * lib/floorl.c: Likewise.
59836         * lib/fopen-safer.c: Likewise.
59837         * lib/fopen.c: Likewise.
59838         * lib/fpending.c: Likewise.
59839         * lib/fpending.h: Likewise.
59840         * lib/fprintf.c: Likewise.
59841         * lib/fprintftime.h: Likewise.
59842         * lib/fpucw.h: Likewise.
59843         * lib/fpurge.c: Likewise.
59844         * lib/fpurge.h: Likewise.
59845         * lib/freadable.c: Likewise.
59846         * lib/freadable.h: Likewise.
59847         * lib/freadahead.c: Likewise.
59848         * lib/freadahead.h: Likewise.
59849         * lib/freading.c: Likewise.
59850         * lib/freading.h: Likewise.
59851         * lib/free.c: Likewise.
59852         * lib/freopen.c: Likewise.
59853         * lib/frexp.c: Likewise.
59854         * lib/frexpl.c: Likewise.
59855         * lib/fseek.c: Likewise.
59856         * lib/fseterr.c: Likewise.
59857         * lib/fseterr.h: Likewise.
59858         * lib/fstatat.c: Likewise.
59859         * lib/fstrcmp.c: Likewise.
59860         * lib/fstrcmp.h: Likewise.
59861         * lib/fsusage.c: Likewise.
59862         * lib/fsusage.h: Likewise.
59863         * lib/ftell.c: Likewise.
59864         * lib/ftello.c: Likewise.
59865         * lib/fts-cycle.c: Likewise.
59866         * lib/fts.c: Likewise.
59867         * lib/fts_.h: Likewise.
59868         * lib/full-read.c: Likewise.
59869         * lib/full-read.h: Likewise.
59870         * lib/full-write.c: Likewise.
59871         * lib/full-write.h: Likewise.
59872         * lib/fwritable.c: Likewise.
59873         * lib/fwritable.h: Likewise.
59874         * lib/fwriteerror.c: Likewise.
59875         * lib/fwriteerror.h: Likewise.
59876         * lib/fwriting.c: Likewise.
59877         * lib/fwriting.h: Likewise.
59878         * lib/gcd.c: Likewise.
59879         * lib/gcd.h: Likewise.
59880         * lib/getcwd.c: Likewise.
59881         * lib/getdate.h: Likewise.
59882         * lib/getdate.y: Likewise.
59883         * lib/getdomainname.c: Likewise.
59884         * lib/getdomainname.h: Likewise.
59885         * lib/getgroups.c: Likewise.
59886         * lib/gethostname.c: Likewise.
59887         * lib/gethrxtime.c: Likewise.
59888         * lib/gethrxtime.h: Likewise.
59889         * lib/getloadavg.c: Likewise.
59890         * lib/getndelim2.c: Likewise.
59891         * lib/getndelim2.h: Likewise.
59892         * lib/getnline.c: Likewise.
59893         * lib/getnline.h: Likewise.
59894         * lib/getopt.c: Likewise.
59895         * lib/getopt.in.h: Likewise.
59896         * lib/getopt1.c: Likewise.
59897         * lib/getopt_int.h: Likewise.
59898         * lib/getpagesize.h: Likewise.
59899         * lib/getsubopt.c: Likewise.
59900         * lib/gettime.c: Likewise.
59901         * lib/getugroups.c: Likewise.
59902         * lib/getugroups.h: Likewise.
59903         * lib/getusershell.c: Likewise.
59904         * lib/gl_anyavltree_list1.h: Likewise.
59905         * lib/gl_anyavltree_list2.h: Likewise.
59906         * lib/gl_anyhash_list1.h: Likewise.
59907         * lib/gl_anyhash_list2.h: Likewise.
59908         * lib/gl_anylinked_list1.h: Likewise.
59909         * lib/gl_anylinked_list2.h: Likewise.
59910         * lib/gl_anyrbtree_list1.h: Likewise.
59911         * lib/gl_anyrbtree_list2.h: Likewise.
59912         * lib/gl_anytree_list1.h: Likewise.
59913         * lib/gl_anytree_list2.h: Likewise.
59914         * lib/gl_anytree_oset.h: Likewise.
59915         * lib/gl_anytreehash_list1.h: Likewise.
59916         * lib/gl_anytreehash_list2.h: Likewise.
59917         * lib/gl_array_list.c: Likewise.
59918         * lib/gl_array_list.h: Likewise.
59919         * lib/gl_array_oset.c: Likewise.
59920         * lib/gl_array_oset.h: Likewise.
59921         * lib/gl_avltree_list.c: Likewise.
59922         * lib/gl_avltree_list.h: Likewise.
59923         * lib/gl_avltree_oset.c: Likewise.
59924         * lib/gl_avltree_oset.h: Likewise.
59925         * lib/gl_avltreehash_list.c: Likewise.
59926         * lib/gl_avltreehash_list.h: Likewise.
59927         * lib/gl_carray_list.c: Likewise.
59928         * lib/gl_carray_list.h: Likewise.
59929         * lib/gl_linked_list.c: Likewise.
59930         * lib/gl_linked_list.h: Likewise.
59931         * lib/gl_linkedhash_list.c: Likewise.
59932         * lib/gl_linkedhash_list.h: Likewise.
59933         * lib/gl_list.c: Likewise.
59934         * lib/gl_list.h: Likewise.
59935         * lib/gl_oset.c: Likewise.
59936         * lib/gl_oset.h: Likewise.
59937         * lib/gl_rbtree_list.c: Likewise.
59938         * lib/gl_rbtree_list.h: Likewise.
59939         * lib/gl_rbtree_oset.c: Likewise.
59940         * lib/gl_rbtree_oset.h: Likewise.
59941         * lib/gl_rbtreehash_list.c: Likewise.
59942         * lib/gl_rbtreehash_list.h: Likewise.
59943         * lib/gl_sublist.c: Likewise.
59944         * lib/gl_sublist.h: Likewise.
59945         * lib/group-member.c: Likewise.
59946         * lib/group-member.h: Likewise.
59947         * lib/hard-locale.c: Likewise.
59948         * lib/hard-locale.h: Likewise.
59949         * lib/hash-pjw.c: Likewise.
59950         * lib/hash-pjw.h: Likewise.
59951         * lib/hash-triple.c: Likewise.
59952         * lib/hash.c: Likewise.
59953         * lib/hash.h: Likewise.
59954         * lib/human.c: Likewise.
59955         * lib/human.h: Likewise.
59956         * lib/i-ring.c: Likewise.
59957         * lib/i-ring.h: Likewise.
59958         * lib/idcache.c: Likewise.
59959         * lib/imaxabs.c: Likewise.
59960         * lib/imaxdiv.c: Likewise.
59961         * lib/inet_pton.c: Likewise.
59962         * lib/inet_pton.h: Likewise.
59963         * lib/intprops.h: Likewise.
59964         * lib/inttostr.c: Likewise.
59965         * lib/inttostr.h: Likewise.
59966         * lib/inttypes.in.h: Likewise.
59967         * lib/isapipe.c: Likewise.
59968         * lib/isdir.c: Likewise.
59969         * lib/isnan.c: Likewise.
59970         * lib/isnan.h: Likewise.
59971         * lib/isnanf.c: Likewise.
59972         * lib/isnanf.h: Likewise.
59973         * lib/isnanl-nolibm.h: Likewise.
59974         * lib/isnanl.c: Likewise.
59975         * lib/isnanl.h: Likewise.
59976         * lib/javacomp.c: Likewise.
59977         * lib/javacomp.h: Likewise.
59978         * lib/javaexec.c: Likewise.
59979         * lib/javaexec.h: Likewise.
59980         * lib/javaversion.c: Likewise.
59981         * lib/javaversion.h: Likewise.
59982         * lib/javaversion.java: Likewise.
59983         * lib/lbrkprop.h: Likewise.
59984         * lib/lchmod.h: Likewise.
59985         * lib/lchown.c: Likewise.
59986         * lib/ldexpl.c: Likewise.
59987         * lib/linebreak.c: Likewise.
59988         * lib/linebreak.h: Likewise.
59989         * lib/linebuffer.c: Likewise.
59990         * lib/linebuffer.h: Likewise.
59991         * lib/locale.in.h: Likewise.
59992         * lib/logl.c: Likewise.
59993         * lib/long-options.c: Likewise.
59994         * lib/long-options.h: Likewise.
59995         * lib/lstat.c: Likewise.
59996         * lib/lstat.h: Likewise.
59997         * lib/math.in.h: Likewise.
59998         * lib/mbchar.c: Likewise.
59999         * lib/mbchar.h: Likewise.
60000         * lib/mbfile.h: Likewise.
60001         * lib/mbiter.h: Likewise.
60002         * lib/mbscasecmp.c: Likewise.
60003         * lib/mbscasestr.c: Likewise.
60004         * lib/mbschr.c: Likewise.
60005         * lib/mbscspn.c: Likewise.
60006         * lib/mbslen.c: Likewise.
60007         * lib/mbsncasecmp.c: Likewise.
60008         * lib/mbsnlen.c: Likewise.
60009         * lib/mbspbrk.c: Likewise.
60010         * lib/mbspcasecmp.c: Likewise.
60011         * lib/mbsrchr.c: Likewise.
60012         * lib/mbssep.c: Likewise.
60013         * lib/mbsspn.c: Likewise.
60014         * lib/mbsstr.c: Likewise.
60015         * lib/mbstok_r.c: Likewise.
60016         * lib/mbswidth.c: Likewise.
60017         * lib/mbswidth.h: Likewise.
60018         * lib/mbuiter.h: Likewise.
60019         * lib/memcasecmp.c: Likewise.
60020         * lib/memcasecmp.h: Likewise.
60021         * lib/memchr.c: Likewise.
60022         * lib/memcmp.c: Likewise.
60023         * lib/memcoll.c: Likewise.
60024         * lib/memcoll.h: Likewise.
60025         * lib/memcpy.c: Likewise.
60026         * lib/memrchr.c: Likewise.
60027         * lib/mkancesdirs.c: Likewise.
60028         * lib/mkdir-p.c: Likewise.
60029         * lib/mkdir-p.h: Likewise.
60030         * lib/mkdir.c: Likewise.
60031         * lib/mkdirat.c: Likewise.
60032         * lib/mkdtemp.c: Likewise.
60033         * lib/mkstemp-safer.c: Likewise.
60034         * lib/mkstemp.c: Likewise.
60035         * lib/modechange.c: Likewise.
60036         * lib/modechange.h: Likewise.
60037         * lib/mountlist.c: Likewise.
60038         * lib/mountlist.h: Likewise.
60039         * lib/mpsort.c: Likewise.
60040         * lib/nanosleep.c: Likewise.
60041         * lib/obstack.c: Likewise.
60042         * lib/obstack.h: Likewise.
60043         * lib/open-safer.c: Likewise.
60044         * lib/open.c: Likewise.
60045         * lib/openat-die.c: Likewise.
60046         * lib/openat-priv.h: Likewise.
60047         * lib/openat-proc.c: Likewise.
60048         * lib/openat.c: Likewise.
60049         * lib/openat.h: Likewise.
60050         * lib/pagealign_alloc.c: Likewise.
60051         * lib/pagealign_alloc.h: Likewise.
60052         * lib/physmem.c: Likewise.
60053         * lib/physmem.h: Likewise.
60054         * lib/pipe-safer.c: Likewise.
60055         * lib/pipe.c: Likewise.
60056         * lib/pipe.h: Likewise.
60057         * lib/posixtm.c: Likewise.
60058         * lib/posixtm.h: Likewise.
60059         * lib/posixver.c: Likewise.
60060         * lib/printf-frexp.c: Likewise.
60061         * lib/printf-frexp.h: Likewise.
60062         * lib/printf-frexpl.c: Likewise.
60063         * lib/printf-frexpl.h: Likewise.
60064         * lib/printf.c: Likewise.
60065         * lib/progname.c: Likewise.
60066         * lib/progname.h: Likewise.
60067         * lib/progreloc.c: Likewise.
60068         * lib/putenv.c: Likewise.
60069         * lib/quote.c: Likewise.
60070         * lib/quote.h: Likewise.
60071         * lib/quotearg.c: Likewise.
60072         * lib/quotearg.h: Likewise.
60073         * lib/raise.c: Likewise.
60074         * lib/readline.c: Likewise.
60075         * lib/readline.h: Likewise.
60076         * lib/readlink.c: Likewise.
60077         * lib/readtokens.c: Likewise.
60078         * lib/readtokens.h: Likewise.
60079         * lib/readtokens0.c: Likewise.
60080         * lib/readtokens0.h: Likewise.
60081         * lib/readutmp.c: Likewise.
60082         * lib/readutmp.h: Likewise.
60083         * lib/realloc.c: Likewise.
60084         * lib/relocwrapper.c: Likewise.
60085         * lib/rename-dest-slash.c: Likewise.
60086         * lib/rename.c: Likewise.
60087         * lib/rmdir.c: Likewise.
60088         * lib/rpmatch.c: Likewise.
60089         * lib/safe-read.c: Likewise.
60090         * lib/safe-read.h: Likewise.
60091         * lib/safe-write.c: Likewise.
60092         * lib/safe-write.h: Likewise.
60093         * lib/same-inode.h: Likewise.
60094         * lib/same.c: Likewise.
60095         * lib/same.h: Likewise.
60096         * lib/save-cwd.c: Likewise.
60097         * lib/save-cwd.h: Likewise.
60098         * lib/savedir.c: Likewise.
60099         * lib/savedir.h: Likewise.
60100         * lib/savewd.c: Likewise.
60101         * lib/savewd.h: Likewise.
60102         * lib/search.in.h: Likewise.
60103         * lib/setenv.c: Likewise.
60104         * lib/setenv.h: Likewise.
60105         * lib/settime.c: Likewise.
60106         * lib/sh-quote.c: Likewise.
60107         * lib/sh-quote.h: Likewise.
60108         * lib/sig2str.c: Likewise.
60109         * lib/sig2str.h: Likewise.
60110         * lib/signal.in.h: Likewise.
60111         * lib/signbitd.c: Likewise.
60112         * lib/signbitf.c: Likewise.
60113         * lib/signbitl.c: Likewise.
60114         * lib/sigprocmask.c: Likewise.
60115         * lib/sincosl.c: Likewise.
60116         * lib/sleep.c: Likewise.
60117         * lib/sprintf.c: Likewise.
60118         * lib/sqrtl.c: Likewise.
60119         * lib/stat-time.h: Likewise.
60120         * lib/stdio--.h: Likewise.
60121         * lib/stdio-safer.h: Likewise.
60122         * lib/stdlib--.h: Likewise.
60123         * lib/stdlib-safer.h: Likewise.
60124         * lib/stdlib.in.h: Likewise.
60125         * lib/stpcpy.c: Likewise.
60126         * lib/stpncpy.c: Likewise.
60127         * lib/strchrnul.c: Likewise.
60128         * lib/strcspn.c: Likewise.
60129         * lib/strerror.c: Likewise.
60130         * lib/strftime.c: Likewise.
60131         * lib/strftime.h: Likewise.
60132         * lib/striconveh.c: Likewise.
60133         * lib/striconveh.h: Likewise.
60134         * lib/striconveha.c: Likewise.
60135         * lib/striconveha.h: Likewise.
60136         * lib/stripslash.c: Likewise.
60137         * lib/strnlen1.c: Likewise.
60138         * lib/strnlen1.h: Likewise.
60139         * lib/strtod.c: Likewise.
60140         * lib/strtoimax.c: Likewise.
60141         * lib/strtok_r.c: Likewise.
60142         * lib/strtol.c: Likewise.
60143         * lib/strtoll.c: Likewise.
60144         * lib/strtoul.c: Likewise.
60145         * lib/strtoull.c: Likewise.
60146         * lib/sysexits.in.h: Likewise.
60147         * lib/tempname.c: Likewise.
60148         * lib/tempname.h: Likewise.
60149         * lib/timespec.h: Likewise.
60150         * lib/tls.c: Likewise.
60151         * lib/tls.h: Likewise.
60152         * lib/tmpdir.c: Likewise.
60153         * lib/tmpdir.h: Likewise.
60154         * lib/tmpfile-safer.c: Likewise.
60155         * lib/tmpfile.c: Likewise.
60156         * lib/trigl.c: Likewise.
60157         * lib/trigl.h: Likewise.
60158         * lib/trim.c: Likewise.
60159         * lib/trim.h: Likewise.
60160         * lib/trunc.c: Likewise.
60161         * lib/truncf.c: Likewise.
60162         * lib/truncl.c: Likewise.
60163         * lib/tsearch.c: Likewise.
60164         * lib/unicodeio.c: Likewise.
60165         * lib/unicodeio.h: Likewise.
60166         * lib/unistd--.h: Likewise.
60167         * lib/unistd-safer.h: Likewise.
60168         * lib/unistdio/ulc-fprintf.c: Likewise.
60169         * lib/unistdio/ulc-vfprintf.c: Likewise.
60170         * lib/unlinkdir.c: Likewise.
60171         * lib/unlinkdir.h: Likewise.
60172         * lib/unlocked-io.h: Likewise.
60173         * lib/unsetenv.c: Likewise.
60174         * lib/userspec.c: Likewise.
60175         * lib/utime.c: Likewise.
60176         * lib/utimecmp.c: Likewise.
60177         * lib/utimecmp.h: Likewise.
60178         * lib/utimens.c: Likewise.
60179         * lib/verify.h: Likewise.
60180         * lib/verror.c: Likewise.
60181         * lib/verror.h: Likewise.
60182         * lib/version-etc-fsf.c: Likewise.
60183         * lib/version-etc.c: Likewise.
60184         * lib/version-etc.h: Likewise.
60185         * lib/vfprintf.c: Likewise.
60186         * lib/vprintf.c: Likewise.
60187         * lib/vsprintf.c: Likewise.
60188         * lib/w32spawn.h: Likewise.
60189         * lib/wait-process.c: Likewise.
60190         * lib/wait-process.h: Likewise.
60191         * lib/wcwidth.c: Likewise.
60192         * lib/write-any-file.c: Likewise.
60193         * lib/xalloc-die.c: Likewise.
60194         * lib/xalloc.h: Likewise.
60195         * lib/xasprintf.c: Likewise.
60196         * lib/xgetcwd.c: Likewise.
60197         * lib/xgetcwd.h: Likewise.
60198         * lib/xgetdomainname.c: Likewise.
60199         * lib/xgetdomainname.h: Likewise.
60200         * lib/xgethostname.c: Likewise.
60201         * lib/xmalloc.c: Likewise.
60202         * lib/xmalloca.c: Likewise.
60203         * lib/xmalloca.h: Likewise.
60204         * lib/xmemcoll.c: Likewise.
60205         * lib/xnanosleep.c: Likewise.
60206         * lib/xreadlink.c: Likewise.
60207         * lib/xreadlink.h: Likewise.
60208         * lib/xsetenv.c: Likewise.
60209         * lib/xsetenv.h: Likewise.
60210         * lib/xstriconv.c: Likewise.
60211         * lib/xstriconv.h: Likewise.
60212         * lib/xstrndup.c: Likewise.
60213         * lib/xstrndup.h: Likewise.
60214         * lib/xstrtod.c: Likewise.
60215         * lib/xstrtod.h: Likewise.
60216         * lib/xstrtol-error.c: Likewise.
60217         * lib/xstrtol.c: Likewise.
60218         * lib/xstrtol.h: Likewise.
60219         * lib/xtime.h: Likewise.
60220         * lib/xvasprintf.c: Likewise.
60221         * lib/xvasprintf.h: Likewise.
60222         * lib/yesno.c: Likewise.
60223         * lib/yesno.h: Likewise.
60224         * posix-modules: Likewise.
60225         * tests/test-alloca-opt.c: Likewise.
60226         * tests/test-arcfour.c: Likewise.
60227         * tests/test-arctwo.c: Likewise.
60228         * tests/test-argmatch.c: Likewise.
60229         * tests/test-argp-2.sh: Likewise.
60230         * tests/test-argp.c: Likewise.
60231         * tests/test-arpa_inet.c: Likewise.
60232         * tests/test-array_list.c: Likewise.
60233         * tests/test-array_oset.c: Likewise.
60234         * tests/test-atexit.c: Likewise.
60235         * tests/test-avltree_list.c: Likewise.
60236         * tests/test-avltree_oset.c: Likewise.
60237         * tests/test-avltreehash_list.c: Likewise.
60238         * tests/test-base64.c: Likewise.
60239         * tests/test-binary-io.c: Likewise.
60240         * tests/test-byteswap.c: Likewise.
60241         * tests/test-c-ctype.c: Likewise.
60242         * tests/test-c-strcasecmp.c: Likewise.
60243         * tests/test-c-strcasestr.c: Likewise.
60244         * tests/test-c-strncasecmp.c: Likewise.
60245         * tests/test-c-strstr.c: Likewise.
60246         * tests/test-canonicalize-lgpl.c: Likewise.
60247         * tests/test-canonicalize.c: Likewise.
60248         * tests/test-carray_list.c: Likewise.
60249         * tests/test-ceilf.c: Likewise.
60250         * tests/test-ceill.c: Likewise.
60251         * tests/test-count-one-bits.c: Likewise.
60252         * tests/test-crc.c: Likewise.
60253         * tests/test-dirname.c: Likewise.
60254         * tests/test-fbufmode.c: Likewise.
60255         * tests/test-fcntl.c: Likewise.
60256         * tests/test-fflush.c: Likewise.
60257         * tests/test-floorf.c: Likewise.
60258         * tests/test-floorl.c: Likewise.
60259         * tests/test-fopen.c: Likewise.
60260         * tests/test-fprintf-posix.c: Likewise.
60261         * tests/test-fprintf-posix.h: Likewise.
60262         * tests/test-fpurge.c: Likewise.
60263         * tests/test-freadable.c: Likewise.
60264         * tests/test-freadahead.c: Likewise.
60265         * tests/test-freading.c: Likewise.
60266         * tests/test-freopen.c: Likewise.
60267         * tests/test-frexp.c: Likewise.
60268         * tests/test-frexpl.c: Likewise.
60269         * tests/test-fseek.c: Likewise.
60270         * tests/test-fseeko.c: Likewise.
60271         * tests/test-fseterr.c: Likewise.
60272         * tests/test-fstrcmp.c: Likewise.
60273         * tests/test-ftell.c: Likewise.
60274         * tests/test-ftello.c: Likewise.
60275         * tests/test-fwritable.c: Likewise.
60276         * tests/test-fwriting.c: Likewise.
60277         * tests/test-getaddrinfo.c: Likewise.
60278         * tests/test-getpass.c: Likewise.
60279         * tests/test-gettimeofday.c: Likewise.
60280         * tests/test-hmac-md5.c: Likewise.
60281         * tests/test-hmac-sha1.c: Likewise.
60282         * tests/test-iconv.c: Likewise.
60283         * tests/test-iconvme.c: Likewise.
60284         * tests/test-inttypes.c: Likewise.
60285         * tests/test-isnan.c: Likewise.
60286         * tests/test-isnanf.c: Likewise.
60287         * tests/test-isnanl-nolibm.c: Likewise.
60288         * tests/test-isnanl.c: Likewise.
60289         * tests/test-isnanl.h: Likewise.
60290         * tests/test-ldexpl.c: Likewise.
60291         * tests/test-linked_list.c: Likewise.
60292         * tests/test-linkedhash_list.c: Likewise.
60293         * tests/test-locale.c: Likewise.
60294         * tests/test-localename.c: Likewise.
60295         * tests/test-lock.c: Likewise.
60296         * tests/test-lseek.c: Likewise.
60297         * tests/test-malloca.c: Likewise.
60298         * tests/test-math.c: Likewise.
60299         * tests/test-mbscasecmp.c: Likewise.
60300         * tests/test-mbscasestr1.c: Likewise.
60301         * tests/test-mbscasestr2.c: Likewise.
60302         * tests/test-mbscasestr3.c: Likewise.
60303         * tests/test-mbscasestr4.c: Likewise.
60304         * tests/test-mbschr.c: Likewise.
60305         * tests/test-mbscspn.c: Likewise.
60306         * tests/test-mbsncasecmp.c: Likewise.
60307         * tests/test-mbspbrk.c: Likewise.
60308         * tests/test-mbspcasecmp.c: Likewise.
60309         * tests/test-mbsrchr.c: Likewise.
60310         * tests/test-mbsspn.c: Likewise.
60311         * tests/test-mbsstr1.c: Likewise.
60312         * tests/test-mbsstr2.c: Likewise.
60313         * tests/test-mbsstr3.c: Likewise.
60314         * tests/test-md5.c: Likewise.
60315         * tests/test-memmem.c: Likewise.
60316         * tests/test-netinet_in.c: Likewise.
60317         * tests/test-open.c: Likewise.
60318         * tests/test-printf-frexp.c: Likewise.
60319         * tests/test-printf-frexpl.c: Likewise.
60320         * tests/test-printf-posix.c: Likewise.
60321         * tests/test-printf-posix.h: Likewise.
60322         * tests/test-rbtree_list.c: Likewise.
60323         * tests/test-rbtree_oset.c: Likewise.
60324         * tests/test-rbtreehash_list.c: Likewise.
60325         * tests/test-read-file.c: Likewise.
60326         * tests/test-rijndael.c: Likewise.
60327         * tests/test-search.c: Likewise.
60328         * tests/test-signbit.c: Likewise.
60329         * tests/test-sleep.c: Likewise.
60330         * tests/test-snprintf-posix.c: Likewise.
60331         * tests/test-snprintf-posix.h: Likewise.
60332         * tests/test-snprintf.c: Likewise.
60333         * tests/test-sprintf-posix.c: Likewise.
60334         * tests/test-sprintf-posix.h: Likewise.
60335         * tests/test-stat-time.c: Likewise.
60336         * tests/test-stdbool.c: Likewise.
60337         * tests/test-stdint.c: Likewise.
60338         * tests/test-stdio.c: Likewise.
60339         * tests/test-stdlib.c: Likewise.
60340         * tests/test-stpncpy.c: Likewise.
60341         * tests/test-strcasestr.c: Likewise.
60342         * tests/test-striconv.c: Likewise.
60343         * tests/test-striconveh.c: Likewise.
60344         * tests/test-striconveha.c: Likewise.
60345         * tests/test-string.c: Likewise.
60346         * tests/test-sys_select.c: Likewise.
60347         * tests/test-sys_socket.c: Likewise.
60348         * tests/test-sys_stat.c: Likewise.
60349         * tests/test-sys_time.c: Likewise.
60350         * tests/test-sysexits.c: Likewise.
60351         * tests/test-time.c: Likewise.
60352         * tests/test-tls.c: Likewise.
60353         * tests/test-trunc.c: Likewise.
60354         * tests/test-truncf.c: Likewise.
60355         * tests/test-truncl.c: Likewise.
60356         * tests/test-unistd.c: Likewise.
60357         * tests/test-vasnprintf-posix.c: Likewise.
60358         * tests/test-vasnprintf-posix2.c: Likewise.
60359         * tests/test-vasnprintf.c: Likewise.
60360         * tests/test-vasprintf-posix.c: Likewise.
60361         * tests/test-vasprintf.c: Likewise.
60362         * tests/test-verify.c: Likewise.
60363         * tests/test-vfprintf-posix.c: Likewise.
60364         * tests/test-vprintf-posix.c: Likewise.
60365         * tests/test-vsnprintf-posix.c: Likewise.
60366         * tests/test-vsnprintf.c: Likewise.
60367         * tests/test-vsprintf-posix.c: Likewise.
60368         * tests/test-wchar.c: Likewise.
60369         * tests/test-wctype.c: Likewise.
60370         * tests/test-wcwidth.c: Likewise.
60371         * tests/test-xstrtol.c: Likewise.
60372         * tests/test-xvasprintf.c: Likewise.
60373         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60374         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60375         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60376         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60377         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60378         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60379         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60380         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60381         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60382         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60383         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60384         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60385         * tests/uniname/test-uninames.c: Likewise.
60386         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60387         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60388         * tests/unistdio/test-u16-printf1.h: Likewise.
60389         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60390         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60391         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60392         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60393         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60394         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60395         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60396         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60397         * tests/unistdio/test-u32-printf1.h: Likewise.
60398         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60399         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60400         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60401         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60402         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60403         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60404         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60405         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60406         * tests/unistdio/test-u8-printf1.h: Likewise.
60407         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60408         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60409         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60410         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60411         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60412         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60413         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60414         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60415         * tests/unistdio/test-ulc-printf1.h: Likewise.
60416         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60417         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60418         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60419         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60420         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60421         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60422         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60423         * tests/uniwidth/test-u16-width.c: Likewise.
60424         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60425         * tests/uniwidth/test-u32-width.c: Likewise.
60426         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60427         * tests/uniwidth/test-u8-width.c: Likewise.
60428         * tests/uniwidth/test-uc_width.c: Likewise.
60429         * config/srclist-update: Likewise.
60430         (fixlicense): Update to GPLv3+.
60431
60432         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60433         * tests/test-tsearch.c: Change copyright notice.
60434
60435         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60436         * lib/c-strcaseeq.h: Change copyright notice.
60437         * lib/streq.h: Likewise.
60438         * lib/uniconv.h: Likewise.
60439         * lib/uniconv/u-conv-from-enc.h: Likewise.
60440         * lib/uniconv/u-conv-to-enc.h: Likewise.
60441         * lib/uniconv/u-strconv-from-enc.h: Likewise.
60442         * lib/uniconv/u-strconv-to-enc.h: Likewise.
60443         * lib/uniconv/u16-conv-from-enc.c: Likewise.
60444         * lib/uniconv/u16-conv-to-enc.c: Likewise.
60445         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
60446         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
60447         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
60448         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
60449         * lib/uniconv/u32-conv-from-enc.c: Likewise.
60450         * lib/uniconv/u32-conv-to-enc.c: Likewise.
60451         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
60452         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
60453         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
60454         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
60455         * lib/uniconv/u8-conv-from-enc.c: Likewise.
60456         * lib/uniconv/u8-conv-to-enc.c: Likewise.
60457         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
60458         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
60459         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
60460         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
60461         * lib/uniname.h: Likewise.
60462         * lib/uniname/uniname.c: Likewise.
60463         * lib/unistdio.h: Likewise.
60464         * lib/unistdio/u-asnprintf.h: Likewise.
60465         * lib/unistdio/u-asprintf.h: Likewise.
60466         * lib/unistdio/u-printf-args.c: Likewise.
60467         * lib/unistdio/u-printf-args.h: Likewise.
60468         * lib/unistdio/u-printf-parse.h: Likewise.
60469         * lib/unistdio/u-snprintf.h: Likewise.
60470         * lib/unistdio/u-sprintf.h: Likewise.
60471         * lib/unistdio/u-vasprintf.h: Likewise.
60472         * lib/unistdio/u-vsnprintf.h: Likewise.
60473         * lib/unistdio/u-vsprintf.h: Likewise.
60474         * lib/unistdio/u16-asnprintf.c: Likewise.
60475         * lib/unistdio/u16-asprintf.c: Likewise.
60476         * lib/unistdio/u16-printf-parse.c: Likewise.
60477         * lib/unistdio/u16-snprintf.c: Likewise.
60478         * lib/unistdio/u16-sprintf.c: Likewise.
60479         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
60480         * lib/unistdio/u16-u16-asprintf.c: Likewise.
60481         * lib/unistdio/u16-u16-snprintf.c: Likewise.
60482         * lib/unistdio/u16-u16-sprintf.c: Likewise.
60483         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
60484         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
60485         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
60486         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
60487         * lib/unistdio/u16-vasnprintf.c: Likewise.
60488         * lib/unistdio/u16-vasprintf.c: Likewise.
60489         * lib/unistdio/u16-vsnprintf.c: Likewise.
60490         * lib/unistdio/u16-vsprintf.c: Likewise.
60491         * lib/unistdio/u32-asnprintf.c: Likewise.
60492         * lib/unistdio/u32-asprintf.c: Likewise.
60493         * lib/unistdio/u32-printf-parse.c: Likewise.
60494         * lib/unistdio/u32-snprintf.c: Likewise.
60495         * lib/unistdio/u32-sprintf.c: Likewise.
60496         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
60497         * lib/unistdio/u32-u32-asprintf.c: Likewise.
60498         * lib/unistdio/u32-u32-snprintf.c: Likewise.
60499         * lib/unistdio/u32-u32-sprintf.c: Likewise.
60500         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
60501         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
60502         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
60503         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
60504         * lib/unistdio/u32-vasnprintf.c: Likewise.
60505         * lib/unistdio/u32-vasprintf.c: Likewise.
60506         * lib/unistdio/u32-vsnprintf.c: Likewise.
60507         * lib/unistdio/u32-vsprintf.c: Likewise.
60508         * lib/unistdio/u8-asnprintf.c: Likewise.
60509         * lib/unistdio/u8-asprintf.c: Likewise.
60510         * lib/unistdio/u8-printf-parse.c: Likewise.
60511         * lib/unistdio/u8-snprintf.c: Likewise.
60512         * lib/unistdio/u8-sprintf.c: Likewise.
60513         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
60514         * lib/unistdio/u8-u8-asprintf.c: Likewise.
60515         * lib/unistdio/u8-u8-snprintf.c: Likewise.
60516         * lib/unistdio/u8-u8-sprintf.c: Likewise.
60517         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
60518         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
60519         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
60520         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
60521         * lib/unistdio/u8-vasnprintf.c: Likewise.
60522         * lib/unistdio/u8-vasprintf.c: Likewise.
60523         * lib/unistdio/u8-vsnprintf.c: Likewise.
60524         * lib/unistdio/u8-vsprintf.c: Likewise.
60525         * lib/unistdio/ulc-asnprintf.c: Likewise.
60526         * lib/unistdio/ulc-asprintf.c: Likewise.
60527         * lib/unistdio/ulc-printf-parse.c: Likewise.
60528         * lib/unistdio/ulc-snprintf.c: Likewise.
60529         * lib/unistdio/ulc-sprintf.c: Likewise.
60530         * lib/unistdio/ulc-vasnprintf.c: Likewise.
60531         * lib/unistdio/ulc-vasprintf.c: Likewise.
60532         * lib/unistdio/ulc-vsnprintf.c: Likewise.
60533         * lib/unistdio/ulc-vsprintf.c: Likewise.
60534         * lib/unistr.h: Likewise.
60535         * lib/unistr/u-cpy-alloc.h: Likewise.
60536         * lib/unistr/u-cpy.h: Likewise.
60537         * lib/unistr/u-endswith.h: Likewise.
60538         * lib/unistr/u-move.h: Likewise.
60539         * lib/unistr/u-set.h: Likewise.
60540         * lib/unistr/u-startswith.h: Likewise.
60541         * lib/unistr/u-stpcpy.h: Likewise.
60542         * lib/unistr/u-stpncpy.h: Likewise.
60543         * lib/unistr/u-strcat.h: Likewise.
60544         * lib/unistr/u-strcpy.h: Likewise.
60545         * lib/unistr/u-strcspn.h: Likewise.
60546         * lib/unistr/u-strdup.h: Likewise.
60547         * lib/unistr/u-strlen.h: Likewise.
60548         * lib/unistr/u-strncat.h: Likewise.
60549         * lib/unistr/u-strncpy.h: Likewise.
60550         * lib/unistr/u-strnlen.h: Likewise.
60551         * lib/unistr/u-strpbrk.h: Likewise.
60552         * lib/unistr/u-strspn.h: Likewise.
60553         * lib/unistr/u-strstr.h: Likewise.
60554         * lib/unistr/u-strtok.h: Likewise.
60555         * lib/unistr/u16-check.c: Likewise.
60556         * lib/unistr/u16-chr.c: Likewise.
60557         * lib/unistr/u16-cmp.c: Likewise.
60558         * lib/unistr/u16-cpy-alloc.c: Likewise.
60559         * lib/unistr/u16-cpy.c: Likewise.
60560         * lib/unistr/u16-endswith.c: Likewise.
60561         * lib/unistr/u16-mblen.c: Likewise.
60562         * lib/unistr/u16-mbsnlen.c: Likewise.
60563         * lib/unistr/u16-mbtouc-aux.c: Likewise.
60564         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
60565         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
60566         * lib/unistr/u16-mbtouc.c: Likewise.
60567         * lib/unistr/u16-mbtoucr.c: Likewise.
60568         * lib/unistr/u16-move.c: Likewise.
60569         * lib/unistr/u16-next.c: Likewise.
60570         * lib/unistr/u16-prev.c: Likewise.
60571         * lib/unistr/u16-set.c: Likewise.
60572         * lib/unistr/u16-startswith.c: Likewise.
60573         * lib/unistr/u16-stpcpy.c: Likewise.
60574         * lib/unistr/u16-stpncpy.c: Likewise.
60575         * lib/unistr/u16-strcat.c: Likewise.
60576         * lib/unistr/u16-strchr.c: Likewise.
60577         * lib/unistr/u16-strcmp.c: Likewise.
60578         * lib/unistr/u16-strcpy.c: Likewise.
60579         * lib/unistr/u16-strcspn.c: Likewise.
60580         * lib/unistr/u16-strdup.c: Likewise.
60581         * lib/unistr/u16-strlen.c: Likewise.
60582         * lib/unistr/u16-strmblen.c: Likewise.
60583         * lib/unistr/u16-strmbtouc.c: Likewise.
60584         * lib/unistr/u16-strncat.c: Likewise.
60585         * lib/unistr/u16-strncmp.c: Likewise.
60586         * lib/unistr/u16-strncpy.c: Likewise.
60587         * lib/unistr/u16-strnlen.c: Likewise.
60588         * lib/unistr/u16-strpbrk.c: Likewise.
60589         * lib/unistr/u16-strrchr.c: Likewise.
60590         * lib/unistr/u16-strspn.c: Likewise.
60591         * lib/unistr/u16-strstr.c: Likewise.
60592         * lib/unistr/u16-strtok.c: Likewise.
60593         * lib/unistr/u16-to-u32.c: Likewise.
60594         * lib/unistr/u16-to-u8.c: Likewise.
60595         * lib/unistr/u16-uctomb-aux.c: Likewise.
60596         * lib/unistr/u16-uctomb.c: Likewise.
60597         * lib/unistr/u32-check.c: Likewise.
60598         * lib/unistr/u32-chr.c: Likewise.
60599         * lib/unistr/u32-cmp.c: Likewise.
60600         * lib/unistr/u32-cpy-alloc.c: Likewise.
60601         * lib/unistr/u32-cpy.c: Likewise.
60602         * lib/unistr/u32-endswith.c: Likewise.
60603         * lib/unistr/u32-mblen.c: Likewise.
60604         * lib/unistr/u32-mbsnlen.c: Likewise.
60605         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
60606         * lib/unistr/u32-mbtouc.c: Likewise.
60607         * lib/unistr/u32-mbtoucr.c: Likewise.
60608         * lib/unistr/u32-move.c: Likewise.
60609         * lib/unistr/u32-next.c: Likewise.
60610         * lib/unistr/u32-prev.c: Likewise.
60611         * lib/unistr/u32-set.c: Likewise.
60612         * lib/unistr/u32-startswith.c: Likewise.
60613         * lib/unistr/u32-stpcpy.c: Likewise.
60614         * lib/unistr/u32-stpncpy.c: Likewise.
60615         * lib/unistr/u32-strcat.c: Likewise.
60616         * lib/unistr/u32-strchr.c: Likewise.
60617         * lib/unistr/u32-strcmp.c: Likewise.
60618         * lib/unistr/u32-strcpy.c: Likewise.
60619         * lib/unistr/u32-strcspn.c: Likewise.
60620         * lib/unistr/u32-strdup.c: Likewise.
60621         * lib/unistr/u32-strlen.c: Likewise.
60622         * lib/unistr/u32-strmblen.c: Likewise.
60623         * lib/unistr/u32-strmbtouc.c: Likewise.
60624         * lib/unistr/u32-strncat.c: Likewise.
60625         * lib/unistr/u32-strncmp.c: Likewise.
60626         * lib/unistr/u32-strncpy.c: Likewise.
60627         * lib/unistr/u32-strnlen.c: Likewise.
60628         * lib/unistr/u32-strpbrk.c: Likewise.
60629         * lib/unistr/u32-strrchr.c: Likewise.
60630         * lib/unistr/u32-strspn.c: Likewise.
60631         * lib/unistr/u32-strstr.c: Likewise.
60632         * lib/unistr/u32-strtok.c: Likewise.
60633         * lib/unistr/u32-to-u16.c: Likewise.
60634         * lib/unistr/u32-to-u8.c: Likewise.
60635         * lib/unistr/u32-uctomb.c: Likewise.
60636         * lib/unistr/u8-check.c: Likewise.
60637         * lib/unistr/u8-chr.c: Likewise.
60638         * lib/unistr/u8-cmp.c: Likewise.
60639         * lib/unistr/u8-cpy-alloc.c: Likewise.
60640         * lib/unistr/u8-cpy.c: Likewise.
60641         * lib/unistr/u8-endswith.c: Likewise.
60642         * lib/unistr/u8-mblen.c: Likewise.
60643         * lib/unistr/u8-mbsnlen.c: Likewise.
60644         * lib/unistr/u8-mbtouc-aux.c: Likewise.
60645         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
60646         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
60647         * lib/unistr/u8-mbtouc.c: Likewise.
60648         * lib/unistr/u8-mbtoucr.c: Likewise.
60649         * lib/unistr/u8-move.c: Likewise.
60650         * lib/unistr/u8-next.c: Likewise.
60651         * lib/unistr/u8-prev.c: Likewise.
60652         * lib/unistr/u8-set.c: Likewise.
60653         * lib/unistr/u8-startswith.c: Likewise.
60654         * lib/unistr/u8-stpcpy.c: Likewise.
60655         * lib/unistr/u8-stpncpy.c: Likewise.
60656         * lib/unistr/u8-strcat.c: Likewise.
60657         * lib/unistr/u8-strchr.c: Likewise.
60658         * lib/unistr/u8-strcmp.c: Likewise.
60659         * lib/unistr/u8-strcpy.c: Likewise.
60660         * lib/unistr/u8-strcspn.c: Likewise.
60661         * lib/unistr/u8-strdup.c: Likewise.
60662         * lib/unistr/u8-strlen.c: Likewise.
60663         * lib/unistr/u8-strmblen.c: Likewise.
60664         * lib/unistr/u8-strmbtouc.c: Likewise.
60665         * lib/unistr/u8-strncat.c: Likewise.
60666         * lib/unistr/u8-strncmp.c: Likewise.
60667         * lib/unistr/u8-strncpy.c: Likewise.
60668         * lib/unistr/u8-strnlen.c: Likewise.
60669         * lib/unistr/u8-strpbrk.c: Likewise.
60670         * lib/unistr/u8-strrchr.c: Likewise.
60671         * lib/unistr/u8-strspn.c: Likewise.
60672         * lib/unistr/u8-strstr.c: Likewise.
60673         * lib/unistr/u8-strtok.c: Likewise.
60674         * lib/unistr/u8-to-u16.c: Likewise.
60675         * lib/unistr/u8-to-u32.c: Likewise.
60676         * lib/unistr/u8-uctomb-aux.c: Likewise.
60677         * lib/unistr/u8-uctomb.c: Likewise.
60678         * lib/unitypes.h: Likewise.
60679         * lib/uniwidth.h: Likewise.
60680         * lib/uniwidth/cjk.h: Likewise.
60681         * lib/uniwidth/u16-strwidth.c: Likewise.
60682         * lib/uniwidth/u16-width.c: Likewise.
60683         * lib/uniwidth/u32-strwidth.c: Likewise.
60684         * lib/uniwidth/u32-width.c: Likewise.
60685         * lib/uniwidth/u8-strwidth.c: Likewise.
60686         * lib/uniwidth/u8-width.c: Likewise.
60687         * lib/uniwidth/width.c: Likewise.
60688
60689 2007-10-07  Bruno Haible  <bruno@clisp.org>
60690
60691         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
60692         The file is still under LGPL (see modules/inttypes).
60693
60694 2007-10-06  Bruno Haible  <bruno@clisp.org>
60695
60696         * modules/trunc (Dependencies): Add 'extensions'.
60697         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
60698         Reported by Ben Pfaff <blp@gnu.org>.
60699
60700 2007-10-06  Bruno Haible  <bruno@clisp.org>
60701
60702         * modules/freopen-tests: New file.
60703         * tests/test-freopen.c: New file.
60704
60705         * modules/fopen-tests: New file.
60706         * tests/test-fopen.c: New file.
60707
60708         * modules/fopen: New file.
60709         * lib/fopen.c: New file.
60710         * m4/fopen.m4: New file.
60711         * modules/freopen: New file.
60712         * lib/freopen.c: New file.
60713         * m4/freopen.m4: New file.
60714         * lib/stdio.in.h (fopen, freopen): New declarations.
60715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
60716         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60717         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
60718         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
60719         * doc/functions/fopen.texi: Mention the 'fopen' module.
60720         * doc/functions/freopen.texi: Mention the 'freopen' module.
60721
60722 2007-10-06  Bruno Haible  <bruno@clisp.org>
60723
60724         * modules/open-tests: New file.
60725         * tests/test-open.c: New file.
60726
60727         * modules/open: New file.
60728         * lib/open.c: New file.
60729         * m4/open.m4: New file.
60730         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
60731         lib/open.c does.
60732         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
60733         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
60734         macros.
60735         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
60736         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
60737         REPLACE_OPEN.
60738         * doc/functions/open.texi: Mention the 'open' module.
60739
60740 2007-10-04  Bruno Haible  <bruno@clisp.org>
60741
60742         * modules/ceill-tests: New file.
60743         * tests/test-ceill.c: New file.
60744
60745         * modules/ceill: New file.
60746         * lib/ceill.c: Replace entire file.
60747         * m4/ceill.m4: New file.
60748         * lib/math.in.h (ceill): Replace declaration.
60749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
60750         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
60751         * doc/functions/ceill.texi: Mention the 'ceill' module.
60752         * modules/mathl (Files): Remove lib/ceill.c.
60753         (Depends-on): Add ceill.
60754
60755 2007-10-04  Bruno Haible  <bruno@clisp.org>
60756
60757         * modules/ceilf-tests: New file.
60758         * tests/test-ceilf.c: New file.
60759
60760         * modules/ceilf: New file.
60761         * lib/ceil.c: New file.
60762         * lib/ceilf.c: New file.
60763         * m4/ceilf.m4: New file.
60764         * lib/math.in.h (ceilf): New declaration.
60765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
60766         HAVE_DECL_CEILF.
60767         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
60768         HAVE_DECL_CEILF.
60769         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
60770
60771 2007-10-04  Bruno Haible  <bruno@clisp.org>
60772
60773         * modules/floorl-tests: New file.
60774         * tests/test-floorl.c: New file.
60775
60776         * modules/floorl: New file.
60777         * lib/floorl.c: Replace entire file.
60778         * m4/floorl.m4: New file.
60779         * lib/math.in.h (floorl): Replace declaration.
60780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
60781         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
60782         * doc/functions/floorl.texi: Mention the 'floorl' module.
60783         * modules/mathl (Files): Remove lib/floorl.c.
60784         (Depends-on): Add floorl.
60785
60786 2007-10-04  Bruno Haible  <bruno@clisp.org>
60787
60788         * modules/floorf-tests: New file.
60789         * tests/test-floorf.c: New file.
60790
60791         * modules/floorf: New file.
60792         * lib/floor.c: New file.
60793         * lib/floorf.c: New file.
60794         * m4/floorf.m4: New file.
60795         * lib/math.in.h (floorf): New declaration.
60796         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
60797         HAVE_DECL_FLOORF.
60798         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
60799         HAVE_DECL_FLOORF.
60800         * doc/functions/floorf.texi: Mention the 'floorf' module.
60801
60802 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
60803             Bruno Haible  <bruno@clisp.org>
60804
60805         Advertise for the Git server instead of the CVS server.
60806         * doc/gnulib-intro.texi (Steady Development): Mention the Git
60807         repository instead of the CVS one.
60808         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
60809         about all VCS systems generically.
60810         * doc/gnulib.texi (Introduction): Capitalize `Git'.
60811
60812 2007-10-04  Bruno Haible  <bruno@clisp.org>
60813
60814         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
60815         means.
60816         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
60817
60818 2007-10-04  Bruno Haible  <bruno@clisp.org>
60819
60820         * modules/truncl-tests: New file.
60821         * tests/test-truncl.c: New file.
60822
60823         * modules/truncl: New file.
60824         * lib/truncl.c: New file.
60825         * m4/truncl.m4: New file.
60826         * lib/math.in.h (truncl): New declaration.
60827         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
60828         HAVE_DECL_TRUNCL.
60829         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
60830         HAVE_DECL_TRUNCL.
60831         * doc/functions/truncl.texi: Mention the 'truncl' module.
60832
60833 2007-10-04  Bruno Haible  <bruno@clisp.org>
60834
60835         * modules/truncf-tests: New file.
60836         * tests/test-truncf.c: New file.
60837
60838         * modules/truncf: New file.
60839         * lib/trunc.c: Make paramerizable through USE_* macros.
60840         * lib/truncf.c: New file.
60841         * m4/truncf.m4: New file.
60842         * lib/math.in.h (truncf): New declaration.
60843         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
60844         HAVE_DECL_TRUNCF.
60845         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
60846         HAVE_DECL_TRUNCF.
60847         * doc/functions/truncf.texi: Mention the 'truncf' module.
60848
60849 2007-10-03  Bruno Haible  <bruno@clisp.org>
60850
60851         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60852         augmentation also for tests modules.
60853         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
60854         * modules/atexit-tests (Makefile.am): Likewise.
60855         * modules/binary-io-tests (Makefile.am): Likewise.
60856         * modules/c-strcase-tests (Makefile.am): Likewise.
60857         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
60858         * modules/canonicalize-tests (Makefile.am): Likewise.
60859         * modules/closein-tests (Makefile.am): Likewise.
60860         * modules/fprintf-posix-tests (Makefile.am): Likewise.
60861         * modules/freadahead-tests (Makefile.am): Likewise.
60862         * modules/fseek-tests (Makefile.am): Likewise.
60863         * modules/fseeko-tests (Makefile.am): Likewise.
60864         * modules/ftell-tests (Makefile.am): Likewise.
60865         * modules/ftello-tests (Makefile.am): Likewise.
60866         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
60867         * modules/isnanl-tests (Makefile.am): Likewise.
60868         * modules/lseek-tests (Makefile.am): Likewise.
60869         * modules/mbscasecmp-tests (Makefile.am): Likewise.
60870         * modules/mbscasestr-tests (Makefile.am): Likewise.
60871         * modules/mbschr-tests (Makefile.am): Likewise.
60872         * modules/mbscspn-tests (Makefile.am): Likewise.
60873         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
60874         * modules/mbspbrk-tests (Makefile.am): Likewise.
60875         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
60876         * modules/mbsrchr-tests (Makefile.am): Likewise.
60877         * modules/mbsspn-tests (Makefile.am): Likewise.
60878         * modules/mbsstr-tests (Makefile.am): Likewise.
60879         * modules/printf-posix-tests (Makefile.am): Likewise.
60880         * modules/snprintf-posix-tests (Makefile.am): Likewise.
60881         * modules/sprintf-posix-tests (Makefile.am): Likewise.
60882         * modules/tsearch-tests (Makefile.am): Likewise.
60883         * modules/uniname/uniname-tests (Makefile.am): Likewise.
60884         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
60885         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
60886         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
60887         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
60888         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
60889         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
60890         * modules/vprintf-posix-tests (Makefile.am): Likewise.
60891         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
60892         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
60893         * modules/xstrtoimax-tests (Makefile.am): Likewise.
60894         * modules/xstrtol-tests (Makefile.am): Likewise.
60895         * modules/xstrtoumax-tests (Makefile.am): Likewise.
60896         * modules/yesno-tests (Makefile.am): Likewise.
60897
60898 2007-10-03  Bruno Haible  <bruno@clisp.org>
60899
60900         * modules/trunc-tests: New file.
60901         * tests/test-trunc.c: New file.
60902
60903         * modules/trunc: New file.
60904         * lib/trunc.c: New file.
60905         * m4/trunc.m4: New file.
60906         * lib/math.in.h (trunc): New declaration.
60907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
60908         HAVE_DECL_TRUNC.
60909         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
60910         HAVE_DECL_TRUNC.
60911         * doc/functions/trunc.texi: Mention the 'trunc' module.
60912
60913 2007-10-03  Bruno Haible  <bruno@clisp.org>
60914
60915         * tests/test-fpending.c: New file, mostly copied
60916         from coreutils/lib/t-fpending.c.
60917         * modules/fpending-tests: New file.
60918
60919 2007-10-03  Bruno Haible  <bruno@clisp.org>
60920
60921         Port the stdio extensions to QNX (untested).
60922         * lib/fseterr.c (fseterr): Add support for QNX.
60923         * lib/fbufmode.c (fbufmode): Likewise.
60924         * lib/freadable.c (freadable): Likewise.
60925         * lib/fwritable.c (fwritable): Likewise.
60926         * lib/freading.c (freading): Likewise.
60927         * lib/fwriting.c (fwriting): Likewise.
60928         * lib/freadahead.c (freadahed): Likewise.
60929         * lib/fpurge.c (fpurge): Likewise.
60930         * lib/fseeko.c (rpl_fseeko): Likewise.
60931
60932 2007-10-03  Bruno Haible  <bruno@clisp.org>
60933             Jim Meyering  <jim@meyering.net>
60934             Eric Blake  <ebb9@byu.net>
60935
60936         * doc/relocatable.texi: Use @command instead of @program.
60937
60938 2007-10-02  Jim Meyering  <jim@meyering.net>
60939
60940         Perform one more "_.h" -> ".in.h" substitution.
60941         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
60942         instead of unistd_.h here, too.
60943
60944 2007-10-01  Bruno Haible  <bruno@clisp.org>
60945
60946         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
60947         Needed for the alloca-opt module.
60948
60949 2007-09-30  Bruno Haible  <bruno@clisp.org>
60950
60951         * lib/alloca.in.h: Renamed from lib/alloca_.h.
60952         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
60953         alloca_.h.
60954         * lib/argz.in.h: Renamed from lib/argz_.h.
60955         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
60956         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
60957         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
60958         byteswap_.h.
60959         * lib/dirent.in.h: Renamed from lib/dirent_.h.
60960         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
60961         dirent_.h.
60962         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
60963         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
60964         fcntl_.h.
60965         * lib/float.in.h: Renamed from lib/float_.h.
60966         * modules/float (Files, Makefile.am): Use float.in.h instead of
60967         float_.h.
60968         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
60969         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
60970         fnmatch_.h.
60971         * lib/getopt.in.h: Renamed from lib/getopt_.h.
60972         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
60973         getopt_.h.
60974         * lib/glob.in.h: Renamed from lib/glob_.h.
60975         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
60976         * lib/iconv.in.h: Renamed from lib/iconv_.h.
60977         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
60978         iconv_.h.
60979         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
60980         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
60981         inttypes_.h.
60982         * lib/locale.in.h: Renamed from lib/locale_.h.
60983         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
60984         locale_.h.
60985         * lib/math.in.h: Renamed from lib/math_.h.
60986         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
60987         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
60988         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
60989         of netinet_in_.h. Add dependency.
60990         * lib/poll.in.h: Renamed from lib/poll_.h.
60991         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
60992         * lib/search.in.h: Renamed from lib/search_.h.
60993         * modules/search (Files, Makefile.am): Use search.in.h instead of
60994         search_.h.
60995         * lib/signal.in.h: Renamed from lib/signal_.h.
60996         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
60997         _signal.h.
60998         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
60999         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61000         stdbool_.h.
61001         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61002         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61003         stdint_.h.
61004         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61005         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61006         stdio_.h.
61007         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61008         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61009         stdlib_.h.
61010         * lib/string.in.h: Renamed from lib/string_.h.
61011         * modules/string (Files, Makefile.am): Use string.in.h instead of
61012         string_.h.
61013         * doc/gnulib-tool.texi (Initial import): Update.
61014         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61015         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61016         of sys_select_.h. Add dependency.
61017         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61018         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61019         of sys_socket_.h.
61020         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61021         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61022         sys_stat_.h.
61023         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61024         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61025         sys_time_.h.
61026         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61027         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61028         sysexits_.h.
61029         * lib/time.in.h: Renamed from lib/time_.h.
61030         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61031         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61032         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61033         unistd_.h.
61034         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61035         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61036         wchar_.h.
61037         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61038         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61039         wctype_.h.
61040         * build-aux/bootstrap (slurp): Update.
61041         * lib/.cppi-disable: Update.
61042
61043 2007-09-30  Bruno Haible  <bruno@clisp.org>
61044
61045         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61046         Needed on BeOS.
61047
61048 2007-09-30  Bruno Haible  <bruno@clisp.org>
61049
61050         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61051
61052 2007-09-29  Bruno Haible  <bruno@clisp.org>
61053
61054         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61055
61056 2007-09-29  Bruno Haible  <bruno@clisp.org>
61057
61058         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61059         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61060         * build-aux/install-reloc: Compile also areadlink.c.
61061         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61062
61063 2007-09-29  Bruno Haible  <bruno@clisp.org>
61064
61065         * gnulib-tool (func_emit_initmacro_done): Indentation.
61066
61067 2007-09-29  Bruno Haible  <bruno@clisp.org>
61068
61069         * README: Add CVS checkout update instructions.
61070         Info from Bob Proulx <bob@proulx.com>.
61071
61072 2007-09-28  Eric Blake  <ebb9@byu.net>
61073
61074         Provide move-if-change.
61075         * build-aux/move-if-change: New file, based on best practice
61076         rather than any canonical upstream location.
61077
61078 2007-09-28  Jim Meyering  <jim@meyering.net>
61079
61080         Fix canonicalize loop-detection corner case.
61081         Do not attempt to stat the symlink values stored via seen_triple.
61082         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61083         on linux-2.6.18, (but not 2.6.22).
61084         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61085         triple_compare.  The former compares dev,ino,filename, while the latter
61086         would actually stat dirname(filename) when dev and ino were equal.
61087         * lib/hash-triple.c: Install <string.h>.
61088         (STREQ): Define.
61089         (triple_compare_ino_str): New function.
61090         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61091
61092 2007-09-28  Eric Blake  <ebb9@byu.net>
61093
61094         Enforce that AC_REPLACE_FUNCS files exist.
61095         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61096         override check for typos.
61097
61098         Fix test-closein on Solaris 10.
61099         * tests/test-closein.c (main): Don't assume stdin can be inherited
61100         closed on all systems.
61101         * tests/test-closein.sh: Likewise.
61102         Reported by Piotr Tarnowski.
61103
61104 2007-09-28  Jim Meyering  <jim@meyering.net>
61105
61106         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61107
61108 2007-09-27  Jim Meyering  <jim@meyering.net>
61109
61110         canonicalize: Avoid a false-positive cycle failure.
61111         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61112         Sort.  Remove cycle-check.
61113         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61114         not cycle-check.h.
61115         (seen_triple): New function.
61116         (canonicalize_filename_mode): Use it instead of cycle-check.
61117         * tests/test-canonicalize.c: Add a test for this bug.
61118         * tests/test-canonicalize.sh: Set up and run the test.
61119
61120         New module, file-set, from coreutils.
61121         * modules/file-set: Define it.
61122         * lib/file-set.c, lib/file-set.h: Implement.
61123
61124         New module, hash-triple, from coreutils.
61125         * modules/hash-triple: Define it.
61126         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61127
61128 2007-09-25  Eric Blake  <ebb9@byu.net>
61129
61130         Fix strerror on Interix.
61131         * lib/string_.h (strerror): Declare replacement.
61132         * doc/functions/strerror.texi (strerror): Document the Interix
61133         shortcoming.
61134         * modules/string (Makefile.am): Support new hooks.
61135         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61136         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61137         gl_FUNC_STRERROR_SEPARATE.
61138         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61139         * lib/strerror.c (rpl_strerror): Provide replacement.
61140         * modules/strerror (Depends-on): Add string.
61141         (configure.ac): Detect use of module.
61142         * tests/test-strerror.c: New file.
61143         * modules/strerror-tests: New test module.
61144         * modules/argp (Depends-on): Add strerror.
61145         * modules/error (Depends-on): Likewise.
61146         Reported by Martin Koeppe.
61147
61148 2007-09-24  Bruno Haible  <bruno@clisp.org>
61149
61150         * README: Update git instructions.
61151
61152 2007-09-24  Eric Blake  <ebb9@byu.net>
61153
61154         Revert fpending breakage from 2007-09-08.
61155         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61156         __fpending.c.
61157
61158 2007-09-24  Jim Meyering  <jim@meyering.net>
61159
61160         filenamecat.c: Add a test.
61161         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61162         showing how the function works when DIR is the empty string.
61163
61164 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61165
61166         * tests/test-canonicalize.sh: Turn on executable bit.
61167
61168 2007-09-19  Eric Blake  <ebb9@byu.net>
61169
61170         * README: Update CVS instructions.
61171
61172 2007-09-18  Bruno Haible  <bruno@clisp.org>
61173
61174         * modules/areadlink: New file.
61175         * lib/areadlink.h (areadlink): New declaration.
61176         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61177
61178 2007-09-17  Jim Meyering  <jim@meyering.net>
61179
61180         * lib/savewd.c (ESTALE) [!defined]: Define.
61181         Reported to be required on Interix by Martin Koeppe.
61182
61183 2007-09-17  Bruno Haible  <bruno@clisp.org>
61184
61185         * gnulib-tool (func_version): Use $version.
61186
61187 2007-09-16  Bruno Haible  <bruno@clisp.org>
61188
61189         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61190         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61191         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61192         Reported by Greg Schafer <gschafer@zip.com.au>.
61193
61194 2007-09-15  Bruno Haible  <bruno@clisp.org>
61195
61196         * gnulib-tool (sed): Try a little harder to make bash understand the
61197         alias.
61198         Reported by Bruce Korb <bruce.korb@gmail.com>.
61199
61200 2007-09-13  Eric Blake  <ebb9@byu.net>
61201
61202         * ChangeLog: Remove conflict markers.
61203
61204 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61205
61206         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61207         Reported by Bruno Haible <bruno@clisp.org>.
61208
61209 2007-09-12  Bruno Haible  <bruno@clisp.org>
61210
61211         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61212         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61213         is not defined.
61214
61215 2007-09-12  Eric Blake  <ebb9@byu.net>
61216
61217         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61218         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61219         Autoconf definition.
61220         * modules/euidaccess (Depends-on): Add extensions, for
61221         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61222         * modules/fnmatch (Depends-on): Likewise.
61223         * modules/getaddrinfo (Depends-on): Likewise.
61224         * modules/getdelim (Depends-on): Likewise.
61225         * modules/getline (Depends-on): Likewise.
61226         * modules/getsubopt (Depends-on): Likewise.
61227         * modules/gettext (Depends-on): Likewise.
61228         * modules/group-member (Depends-on): Likewise.
61229         * modules/mbchar (Depends-on): Likewise.
61230         * modules/memmem (Depends-on): Likewise.
61231         * modules/mempcpy (Depends-on): Likewise.
61232         * modules/memrchr (Depends-on): Likewise.
61233         * modules/pagealign_alloc (Depends-on): Likewise.
61234         * modules/readutmp (Depends-on): Likewise.
61235         * modules/stpcpy (Depends-on): Likewise.
61236         * modules/stpncpy (Depends-on): Likewise.
61237         * modules/strchrnul (Depends-on): Likewise.
61238         * modules/strndup (Depends-on): Likewise.
61239         * modules/strsep (Depends-on): Likewise.
61240         * modules/strverscmp (Depends-on): Likewise.
61241         * modules/vasprintf (Depends-on): Likewise.
61242         * modules/wcwidth (Depends-on): Likewise.
61243         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61244         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61245         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61246         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61248         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61249         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61250         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61251         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61252         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61253         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61254         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61255         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61256         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61257         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61258         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61259         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61260         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61261         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61262         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61263         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61264         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61265         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61266         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61267         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61268         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61269         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61270         so that lock.m4 can be used in gettext without extensions module.
61271
61272 2007-09-11  Bruno Haible  <bruno@clisp.org>
61273
61274         * m4/isc-posix.m4: Remove file.
61275         Suggested by Eric Blake.
61276
61277 2007-09-11  Eric Blake  <ebb9@byu.net>
61278
61279         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61280
61281 2007-09-10  Bruno Haible  <bruno@clisp.org>
61282
61283         * posix-modules: Fix typo in error message.
61284         Reported by Matt <mkraai@beckman.com>.
61285
61286 2007-09-09  Bruno Haible  <bruno@clisp.org>
61287
61288         * doc/functions/getdelim.texi: Update list of platforms lacking the
61289         function.
61290         * doc/functions/getline.texi: Likewise.
61291
61292 2007-09-09  Jim Meyering  <jim@meyering.net>
61293
61294         * lib/hash.c (hash_initialize): Detect calloc failure.
61295         Reported by Bruno Haible.
61296
61297 2007-09-09  Bruno Haible  <bruno@clisp.org>
61298
61299         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61300         malloc or realloc fails.
61301
61302 2007-09-09  Bruno Haible  <bruno@clisp.org>
61303
61304         * modules/getcwd (Depends-on): Add malloc-posix.
61305         * modules/glob (Depends-on): Likewise.
61306         * modules/putenv (Depends-on): Likewise.
61307         * modules/strdup (Depends-on): Likewise.
61308         * modules/getdelim (Depends-on): Add realloc-posix.
61309         * modules/read-file (Depends-on): Likewise.
61310
61311 2007-09-09  Bruno Haible  <bruno@clisp.org>
61312
61313         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61314         (gl_FUNC_MALLOC_POSIX): Require it.
61315         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61316         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61317         * modules/realloc (Files): Add m4/malloc.m4.
61318         * modules/calloc (Files): Likewise.
61319
61320 2007-09-09  Bruno Haible  <bruno@clisp.org>
61321
61322         * modules/malloc-posix: New file.
61323         * modules/malloc (Depends-on): Add malloc-posix.
61324         * lib/malloc.c: Include errno.h.
61325         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61326         and a POSIX-compatible malloc into a single function. Set ENOMEM
61327         when returning NULL.
61328         * m4/malloc.m4: New file.
61329         * doc/functions/malloc.texi: Mention the malloc-posix module.
61330         * lib/stdlib_.h (malloc): New declaration.
61331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61332         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61333         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61334         and HAVE_MALLOC_POSIX.
61335
61336 2007-09-09  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/realloc-posix: New file.
61339         * modules/realloc (Depends-on): Add realloc-posix.
61340         * lib/realloc.c: Include errno.h.
61341         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61342         and a POSIX-compatible realloc into a single function. Set ENOMEM
61343         when returning NULL.
61344         * m4/realloc.m4: New file.
61345         * doc/functions/realloc.texi: Mention the realloc-posix module.
61346         * lib/stdlib_.h (realloc): New declaration.
61347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61348         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61349         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61350         and HAVE_REALLOC_POSIX.
61351
61352 2007-09-09  Bruno Haible  <bruno@clisp.org>
61353
61354         * modules/calloc-posix: New file.
61355         * modules/calloc (Depends-on): Add calloc-posix.
61356         * lib/calloc.c: Include errno.h.
61357         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61358         and a POSIX-compatible calloc into a single function. Set ENOMEM
61359         when returning NULL.
61360         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61361         * doc/functions/calloc.texi: Mention the calloc-posix module.
61362         * lib/stdlib_.h (calloc): New declaration.
61363         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61364         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61365         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61366         and HAVE_CALLOC_POSIX.
61367
61368 2007-09-09  Bruno Haible  <bruno@clisp.org>
61369
61370         Allow for modules to show an arbitrary notice.
61371         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61372         * gnulib-tool: New option --extract-notice.
61373         (func_usage): Document it.
61374         (sed_extract_prog): Update.
61375         (func_get_notice): New function.
61376         (func_modules_notice): New function.
61377         (func_import, func_create_testdir): Invoke it.
61378         Suggested by Jim Meyering.
61379
61380 2007-09-09  Bruno Haible  <bruno@clisp.org>
61381
61382         * gnulib-tool: New options --verbose, --quiet.
61383         (func_usage): Document them.
61384         (verbose): New variable.
61385         (func_execute_command): New function.
61386         (func_import): Don't show the module list and the file list if
61387         $verbose < 0.
61388         (func_create_testdir): Likewise. Use func_execute_command.
61389         (func_create_megatestdir): Use func_execute_command.
61390
61391 2007-09-08  Bruno Haible  <bruno@clisp.org>
61392
61393         * gnulib-tool (func_import): Prefer rsync over wget when available,
61394         for fetching the PO files.
61395
61396 2007-09-08  Bruno Haible  <bruno@clisp.org>
61397
61398         * posix-modules: New file. Portions copied from gnulib-tool.
61399         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61400
61401 2007-09-08  Jim Meyering  <jim@meyering.net>
61402
61403         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61404         * lib/fpending.h: Rename from __fpending.h.
61405         * lib/fpending.c: Rename from __fpending.c.
61406         Include "fpending.h", not "__fpending.h".
61407         * lib/__fpending.h, lib/__fpending.c: Remove files.
61408         * modules/fpending (Files): Reflect new file names.
61409         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61410
61411 2007-09-08  Bruno Haible  <bruno@clisp.org>
61412
61413         * m4/inttypes-h.m4: Remove stub file.
61414
61415 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61416
61417         * doc/headers/stdint.texi: Discuss #include_next issue.
61418
61419 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61420
61421         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61422
61423 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61424
61425         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61426         in variable name.
61427
61428 2007-09-03  Jim Meyering  <jim@meyering.net>
61429
61430         New module: git-version-gen.
61431         * modules/git-version-gen: New file.
61432
61433         Import changes from coreutils for bootstrap script.
61434
61435         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61436
61437         bootstrap: uses rsync to download the .po files
61438         * build-aux/bootstrap (po_download_command_format): New global.
61439         (download_po_files): Use rsync.
61440         (update_po_files): Don't remove .po files after download,
61441         so future rsync runs can take advantage of the copies.
61442
61443         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
61444
61445         Solve the unnecessary-.po-file-regeneration problem once and for all.
61446         * build-aux/bootstrap (download_po_files): New function, renamed from
61447         get_translations.  Now, downloads, but doesn't update LINGUAS.
61448         (update_po_files): New function.
61449
61450         bootstrap: Ignore more.
61451         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
61452         uniwidth to e.g., lib/.gitignore.
61453         (slurp): Handle the sys_stat_.h -> sys mapping, too.
61454
61455         * build-aux/bootstrap: New setting: vc_ignore.
61456         (insert_sorted_if_absent): Create $file if absent.
61457         Adapt to new, possibly empty, list: $vc_ignore.
61458
61459         bootstrap: generate more ignorable names
61460         * build-aux/bootstrap (slurp): When generating ignorable names,
61461         also map .sin to .sed, .gperf to .c, and .y to .c.
61462
61463 2007-09-03  Jim Meyering  <jim@meyering.net>
61464
61465         * build-aux/git-version-gen: New file, from coreutils.  For details, see
61466         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
61467
61468 2007-09-02  Bruno Haible  <bruno@clisp.org>
61469
61470         Fix mis-recognition of 'mcs' on QNX 6.
61471         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
61472         output contains the string "Mono".
61473         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
61474         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
61475
61476 2007-09-01  Bruno Haible  <bruno@clisp.org>
61477
61478         Fix collision between uniwidth/* and linebreak modules.
61479         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
61480         u32_width): Remove declarations.
61481         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
61482         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
61483         streq3, streq2, streq1, streq0): Remove functions.
61484         (STREQ): Remove macro.
61485         (is_cjk_encoding): Remove function.
61486         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
61487         (uc_width, u8_width, u16_width, u32_width): Remove functions.
61488         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
61489         * NEWS: Document the change.
61490
61491 2007-09-01  Bruno Haible  <bruno@clisp.org>
61492
61493         * lib/streq.h: Add double-inclusion guard.
61494
61495 2007-09-01  Karl Berry  <karl@gnu.org>
61496
61497         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
61498
61499 2007-08-28  Jim Meyering  <jim@meyering.net>
61500
61501         Rename mreadlink_with_size to areadlink_with_size.
61502         * NEWS: Document the change.
61503         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
61504         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
61505         * lib/mreadlink.h: Rename this to...
61506         * lib/areadlink.h: ...this.
61507         * modules/mreadlink-with-size: Rename this to...
61508         * modules/areadlink-with-size: ...this.
61509         * lib/canonicalize.c: Reflect the renaming.
61510         * modules/canonicalize: Likewise.
61511
61512 2007-08-26  Bruno Haible  <bruno@clisp.org>
61513
61514         * gnulib-tool (func_import): When deciding which files to remove,
61515         consider also dangling symbolic links.
61516         Reported by Eric Blake.
61517
61518 2007-08-26  Bruno Haible  <bruno@clisp.org>
61519
61520         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
61521
61522 2007-08-23  Simon Josefsson  <simon@josefsson.org>
61523
61524         * lib/readline.c: Don't include getline.h, the prototype is now
61525         found in stdio.h.
61526
61527 2007-08-23  Jim Meyering  <jim@meyering.net>
61528
61529         Getdelim touchup.
61530         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
61531         around the funlockfile call, since funlockfile never sets errno.
61532         Don't set errno upon failed realloc.
61533
61534 2007-08-22  Eric Blake  <ebb9@byu.net>
61535
61536         Getline touchups.
61537         * lib/getdelim.c (getdelim): Revert regression that required *n to
61538         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
61539         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
61540         getdelim, rather than whether implementation is missing.
61541         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
61542         * lib/stdio_.h (getline): Also declare if replacement is
61543         required.
61544         * doc/functions/getdelim.texi: New file.
61545         * doc/functions/getline.texi: Likewise.
61546         * doc/gnulib.texi (Function Substitutes): Add new files.
61547         Reported by Bruno Haible.
61548
61549 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
61550
61551         * users.txt: Add Guile.
61552
61553 2007-08-22  Eric Blake  <ebb9@byu.net>
61554
61555         * tests/test-getdelim.c (main): Use remove, not unlink.
61556         * tests/test-getline.c (main): Likewise.
61557
61558         Move getline and getdelim into stdio.h, per POSIX 200x.
61559         * modules/getline (Files): Remove getline.h.
61560         (Depends-on): Add stdio.
61561         (configure.ac): Add module indicator.
61562         * modules/getdelim (Files): Remove getdelim.h.
61563         (Depends-on): Add stdio.
61564         (configure.ac): Add module indicator.
61565         * modules/stdio (Makefile.am): Work with new indicators.
61566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
61567         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
61568         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61569         * lib/getdelim.h: Delete.
61570         * lib/getline.h: Delete.
61571         * lib/stdio_.h (getdelim, getline): Declare.
61572         * modules/getdelim-tests: New module.
61573         * modules/getline-tests: Likewise.
61574         * tests/test-getdelim.c: New file.
61575         * tests/test-getline.c: Likewise.
61576         * NEWS: Document the change.
61577         * lib/getline.c: Update choice of header.
61578         * lib/csharpcomp.c: Likewise.
61579         * lib/getpass.c: Likewise.
61580         * lib/javacomp.c: Likewise.
61581         * lib/javaversion.c: Likewise.
61582         * lib/yesno.c: Likewise.
61583         * lib/getdelim.c: Likewise.
61584         (getdelim): Set errno on failure, and avoid memory leak.
61585
61586 2007-08-19  Bruno Haible  <bruno@clisp.org>
61587
61588         * modules/closein (Depends-on): Add freadahead.
61589         * lib/closein.c: Include freadahead.h.
61590         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
61591         is zero.
61592
61593 2007-08-19  Bruno Haible  <bruno@clisp.org>
61594
61595         * modules/freadahead-tests: New file.
61596         * tests/test-freadahead.sh: New file.
61597         * tests/test-freadahead.c: New file.
61598
61599         * modules/freadahead: New file.
61600         * lib/freadahead.h: New file.
61601         * lib/freadahead.c: New file.
61602         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
61603         fbufmode, fpurge, freadable, fwritable.
61604
61605 2007-08-19  Eric Blake  <ebb9@byu.net>
61606
61607         Test yesno in combination with closein.
61608         * lib/yesno.c (yesno): Document use of stdin.
61609         * modules/yesno-tests (Files): New module.
61610         * tests/test-yesno.c (main): New file.
61611         * tests/test-yesno.sh: Likewise.
61612
61613 2007-08-19  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
61616         * lib/fseeko.c (rpl_fseeko): Likewise.
61617         * lib/fseterr.c (fseterr): Likewise.
61618
61619 2007-08-19  Bruno Haible  <bruno@clisp.org>
61620
61621         * tests/test-lseek.c (main): Disable a test for BeOS.
61622         * doc/functions/lseek.texi: Document the BeOS bug.
61623
61624 2007-08-19  Bruno Haible  <bruno@clisp.org>
61625             Eric Blake  <ebb9@byu.net>
61626
61627         * lib/lseek.c: Include <sys/stat.h>.
61628         (rpl_lseek): Add workaround code also for Unix platforms.
61629         Needed for BeOS.
61630         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
61631         * doc/functions/lseek.texi: Document BeOS definiency.
61632
61633 2007-08-18  Bruno Haible  <bruno@clisp.org>
61634
61635         * modules/fstrcmp-tests: New file.
61636         * tests/test-fstrcmp.c: New file.
61637
61638 2007-08-18  Bruno Haible  <bruno@clisp.org>
61639
61640         * modules/fstrcmp: New file, from GNU gettext with modifications.
61641         * lib/fstrcmp.h: New file, from GNU gettext.
61642         * lib/fstrcmp.c: New file, from GNU gettext.
61643         * MODULES.html.sh (String handling): Add fstrcmp.
61644
61645 2007-08-18  Bruno Haible  <bruno@clisp.org>
61646
61647         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
61648         'bool'.
61649         (diag, compareseq): Remove const from the ctxt argument.
61650         (USE_HEURISTIC): Undefine at the end.
61651
61652 2007-08-18  Jim Meyering  <jim@meyering.net>
61653
61654         New file: lib/idcache.h
61655         * NEWS: Mention the addition.
61656         * modules/idcache (Files): Add lib/idcache.h
61657         * lib/idcache.c: Include "idcache.h".
61658         Don't include <sys/types.h>.
61659         Add a FIXME comment.
61660         Move file-scoped "static" declarations to the top.
61661         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
61662
61663 2007-08-17  Bruno Haible  <bruno@clisp.org>
61664         and Paul Eggert  <eggert@cs.ucla.edu>
61665
61666         * MODULES.html.sh: Add diffseq.
61667         * modules/diffseq: New file.
61668         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
61669         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
61670
61671 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
61672
61673         Import changes from coreutils for bootstrap script.
61674
61675         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
61676
61677         * build-aux/bootstrap (slurp): Work even in environments where
61678         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
61679         current code does not slurp files whose names start with ".", and
61680         this looks like it might be a troublesome area.
61681
61682         2007-07-11  Jim Meyering  <jim@meyering.net>
61683
61684         If there's a GPL vN copyright comment, require that N == 3.
61685
61686         2007-07-08  Jim Meyering  <jim@meyering.net>
61687
61688         Run the coreutils-specific code only if tests/Makefile.am.in exists.
61689         * build-aux/bootstrap (mam_template): Move definition out of loop.
61690
61691         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
61692
61693         * build-aux/bootstrap (symlink_to_dir): Rename function from
61694         symlink_to_gnulib.  Add a directory parameter.  Update all
61695         callers.
61696         (cp_mark_as_generated): Also check for -- and link to -- files in
61697         gl/.
61698
61699         2007-07-08  Jim Meyering  <jim@meyering.net>
61700
61701         Adapt to deeper hierarchy in gnulib.
61702         * build-aux/bootstrap (symlink_to_dir): If the destination
61703         directory doesn't exist, create it. This is required at least for
61704         "lib/uniwidth/cjk.h".
61705
61706         2007-05-15  Jim Meyering  <jim@meyering.net>
61707
61708         * build-aux/bootstrap: Now that generated Makefile.am files
61709         are no longer under version control, they must be created at
61710         bootstrap time.
61711
61712 2007-08-14  Ben Pfaff  <blp@gnu.org>
61713
61714         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
61715
61716 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
61719         given the changes below.
61720         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
61721         even on hosts that have padding bits beyond the supported 64.
61722
61723 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
61724
61725         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
61726         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
61727         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
61728         depends on it.
61729         (xstrtol_error): Remove.
61730         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
61731         but with a different signature.
61732         (ATTRIBUTE_NORETURN, __attribute__): New macros.
61733         * lib/xstrtol-error.c: Include exitfail.h.
61734         (xstrtol_fatal): New function, with a different signature from the
61735         old xstrtol_error, so that the caller need not worry about passing
61736         in an exit status, or about storage management of the option argument.
61737         (xstrtol_error): Now a static function.  Redo signature to
61738         implement xstrtol_fatal.  Output the correct number of hyphens in
61739         front of the option so that the caller need not worry about
61740         storage management.
61741         (N_): New macro.
61742         (_): Remove; not used now.
61743         * modules/xstrtol: Depend on getopt.
61744         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
61745         of old STRTOL_FATAL_ERROR macro.
61746         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
61747         of test program.
61748         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
61749         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
61750
61751 2007-08-08  Eric Blake  <ebb9@byu.net>
61752
61753         * lib/xstrtol-error.c: Add missing include.
61754
61755         Move xstrtol messages into gnulib domain, when --pobase is used.
61756         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
61757         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
61758         * modules/xstrtol (Files): Distribute new file.
61759         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
61760         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
61761         * tests/test-xstrtol.c: ...into new file.
61762         * tests/test-xstrtoul.c: Also test xstrtoul.
61763         * tests/test-xstrtoimax.c: Also test xstrtoimax.
61764         * tests/test-xstrtoumax.c: Also test xstrtoumax.
61765         * tests/test-xstrtol.sh: Drive the tests.
61766         * tests/test-xstrtoimax.sh: Likewise.
61767         * tests/test-xstrtoumax.sh: Likewise.
61768         * modules/xstrtol-tests: New module.
61769         * modules/xstrtoimax-tests: Likewise.
61770         * modules/xstrtoumax-tests: Likewise.
61771
61772 2007-08-08  Jim Meyering  <jim@meyering.net>
61773
61774         New function: mfile_name_concat.
61775         * lib/filenamecat.c (mfile_name_concat): New function, just like
61776         file_name_concat, but return NULL upon failure rather than exiting
61777         with a diagnostic.
61778         * lib/filenamecat.h: Declare it.
61779
61780 2007-08-07  Bruno Haible  <bruno@clisp.org>
61781
61782         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
61783         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
61784         warning from gcc.
61785         Reported by Eric Blake.
61786
61787 2007-08-07  Simon Josefsson  <simon@josefsson.org>
61788
61789         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
61790         * modules/crypto/arcfour (License): Likewise.
61791         * modules/crypto/des-tests (License): Likewise.
61792         * modules/crypto/gc-arctwo-tests (License): Likewise.
61793         * modules/crypto/gc-des-tests (License): Likewise.
61794         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
61795         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
61796         * modules/crypto/gc-md2-tests (License): Likewise.
61797         * modules/crypto/gc-md4-tests (License): Likewise.
61798         * modules/crypto/gc-md5-tests (License): Likewise.
61799         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
61800         * modules/crypto/gc-rijndael-tests (License): Likewise.
61801         * modules/crypto/gc-sha1-tests (License): Likewise.
61802         * modules/crypto/gc-tests (License): Likewise.
61803         * modules/crypto/hmac-md5 (License): Likewise.
61804         * modules/crypto/hmac-sha1 (License): Likewise.
61805         * modules/crypto/md2-tests (License): Likewise.
61806         * modules/crypto/md4-tests (License): Likewise.
61807         * modules/crypto/md5 (License): Likewise.
61808         * modules/crypto/rijndael (License): Likewise.
61809         * modules/crypto/sha1 (License): Likewise.
61810         * modules/memxor (License): Likewise.
61811
61812 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
61813         and Bruno Haible  <bruno@clisp.org>
61814
61815         * NEWS: Describe interface changes to human, xstrtol.
61816         * lib/human.h: Include <xstrtol.h>.
61817         (human_options): Return enum strtol_error, not int.  Remove
61818         bool arg; take int * instead.
61819         * lib/human.c: Don't include "gettext.h".
61820         (_): Remove; no longer used.
61821         Don't include <xstrtol.h>, since human.h does it.
61822         (human_options): Adjust to abovementioned interface changes.
61823         Do not report error to stderr; that's now the caller's
61824         responsibility.
61825         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
61826         interface change.
61827         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
61828         Str, Argument_type_string.  All uses changed.  Put " argument"
61829         in diagnostics to make them clearer.  Change wording of suffix
61830         message for clarity.
61831         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
61832         Argument_type_string.
61833         (STRTOL_FATAL_WARN): Remove; no longer used.
61834         * modules/human (Depends-on): Remove gettext-h.
61835
61836 2007-08-06  Simon Josefsson  <simon@josefsson.org>
61837
61838         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
61839
61840 2007-07-31  Bruno Haible  <bruno@clisp.org>
61841
61842         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
61843         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
61844         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
61845
61846 2007-07-31  Bruno Haible  <bruno@clisp.org>
61847
61848         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
61849         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
61850
61851 2007-07-30  Bruno Haible  <bruno@clisp.org>
61852
61853         * modules/base64 (License): Use the synonymous term "LGPLv2+".
61854         * modules/c-ctype (License): Likewise.
61855         * modules/c-strcase (License): Likewise.
61856         * modules/check-version (License): Likewise.
61857         * modules/iconv (License): Likewise.
61858         * modules/iconv_open (License): Likewise.
61859         * modules/read-file (License): Likewise.
61860         * modules/striconv (License): Likewise.
61861         * modules/strverscmp (License): Likewise.
61862         * modules/vasprintf (License): Likewise.
61863         * modules/crypto/des (License): Likewise.
61864         * modules/crypto/gc (License): Likewise.
61865         * modules/crypto/gc-arcfour (License): Likewise.
61866         * modules/crypto/gc-arctwo (License): Likewise.
61867         * modules/crypto/gc-des (License): Likewise.
61868         * modules/crypto/gc-hmac-md5 (License): Likewise.
61869         * modules/crypto/gc-hmac-sha1 (License): Likewise.
61870         * modules/crypto/gc-md2 (License): Likewise.
61871         * modules/crypto/gc-md4 (License): Likewise.
61872         * modules/crypto/gc-md5 (License): Likewise.
61873         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
61874         * modules/crypto/gc-random (License): Likewise.
61875         * modules/crypto/gc-rijndael (License): Likewise.
61876         * modules/crypto/gc-sha1 (License): Likewise.
61877         * modules/crypto/md2 (License): Likewise.
61878         * modules/crypto/md4 (License): Likewise.
61879
61880 2007-07-30  Jim Meyering  <jim@meyering.net>
61881
61882         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
61883         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
61884         it has valid stat data.  This bug would cause du not to count the
61885         sizes of inaccessible directories.
61886         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
61887         in <http://bugzilla.redhat.com/250077>.
61888
61889 2007-07-25  Peter O'Gorman  <peter@pogma.com>
61890             Bruno Haible  <bruno@clisp.org>
61891
61892         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
61893         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
61894         #include_next, gives a diagnostic about it, but reports no error in
61895         the exit code.
61896         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
61897
61898 2007-07-24  Ben Pfaff  <blp@gnu.org>
61899
61900         Improve name: "count-one-bits" is better than "popcount".
61901         * MODULES.html.sh: Update name.
61902         * lib/popcount.h: Renamed lib/count-one-bits.h.
61903         (popcount): Renamed count_one_bits.
61904         (popcountl): Renamed count_one_bits_l.
61905         (popcountll): Renamed count_one_bits_ll.
61906         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
61907         * modules/popcount: Renamed module/count-one-bits.
61908         * modules/popcount-tests: Renamed module/count-one-bits-tests.
61909         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
61910
61911 2007-07-23  Ben Pfaff  <blp@gnu.org>
61912
61913         * lib/popcount.h (popcount32): Reduce size of constants, to allow
61914         better code generation, and add U to large constants to avoid
61915         warnings, in non-GCC case.
61916         Suggested by Bruno Haible.
61917
61918 2007-07-23  Ben Pfaff  <blp@gnu.org>
61919
61920         * lib/popcount.h: Use verify_true instead of if...abort.
61921         * modules/popcount: Depend on verify module.
61922         Suggested by Jim Meyering.
61923
61924 2007-07-23  Bruno Haible  <bruno@clisp.org>
61925
61926         * gnulib-tool (func_import): Create a .cvsignore file also when the
61927         directory is not yet in CVS but the toplevel directory is. When
61928         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
61929         Reported by Karl Berry.
61930
61931 2007-07-22  Ben Pfaff  <blp@gnu.org>
61932
61933         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
61934         case.
61935         Suggested by Eric Blake.
61936
61937 2007-07-22  Ben Pfaff  <blp@gnu.org>
61938
61939         New module: popcount.
61940         * MODULES.html.sh: Add popcount.
61941         * modules/popcount: New file.
61942         * modules/popcount-tests: New file.
61943         * tests/test-popcount.c: New file.
61944         * lib/popcount.h: New file.
61945         * m4/popcount.m4: New file.
61946
61947 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
61948
61949         * build-aux/announce-gen: Update to GPLv3.
61950
61951         * build-aux/config.guess: Update from config.
61952
61953 2007-07-21  Bruno Haible  <bruno@clisp.org>
61954
61955         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
61956         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
61957
61958 2007-07-20  Jim Meyering  <jim@meyering.net>
61959
61960         * check-module: Diagnose a self-dependency.
61961
61962 2007-07-19  Bruno Haible  <bruno@clisp.org>
61963
61964         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
61965         empty.
61966         Reported by Eric Blake.
61967
61968 2007-07-18  Bruno Haible  <bruno@clisp.org>
61969
61970         * gnulib-tool: New options --po-base, --po-domain.
61971         (func_usage): Document them.
61972         (pobase, po_domain): New variables.
61973         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
61974         DEFAULT_TEXT_DOMAIN.
61975         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
61976         (func_import): Consider pobase and po_domain. Create a po/ directory.
61977         (func_create_testdir): Set pobase and po_domain to empty.
61978         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
61979         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
61980
61981 2007-07-18  Bruno Haible  <bruno@clisp.org>
61982
61983         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61984         EXTRA_DIST augmentation for files in build-aux/.
61985
61986 2007-07-16  Bruno Haible  <bruno@clisp.org>
61987
61988         * modules/lseek (License): Use the synonymous term "LGPLv2+".
61989         * modules/getdelim (License): Likewise.
61990
61991 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61992
61993         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
61994         * modules/d-type (License): Likewise.
61995         * modules/extensions (License): Likewise.
61996         * modules/fnmatch (License): Likewise.
61997         * modules/fseeko (License): Likewise.
61998         * modules/getaddrinfo (License): Likewise.
61999         * modules/getline (License): Likewise.
62000         * modules/getlogin_r (License): Likewise.
62001         * modules/getpass (License): Likewise.
62002         * modules/gettimeofday (License): Likewise.
62003         * modules/glob (License): Likewise.
62004         * modules/inet_ntop (License): Likewise.
62005         * modules/malloc (License): Likewise.
62006         * modules/malloca (License): Likewise.
62007         * modules/memmem (License): Likewise.
62008         * modules/mempcpy (License): Likewise.
62009         * modules/memset (License): Likewise.
62010         * modules/minmax (License): Likewise.
62011         * modules/mktime (License): Likewise.
62012         * modules/netinet_in (License): Likewise.
62013         * modules/pathmax (License): Likewise.
62014         * modules/poll (License): Likewise.
62015         * modules/regex (License): Likewise.
62016         * modules/snprintf (License): Likewise.
62017         * modules/stdbool (License): Likewise.
62018         * modules/stdint (License): Likewise.
62019         * modules/stdio (License): Likewise.
62020         * modules/strcase (License): Likewise.
62021         * modules/strcasestr (License): Likewise.
62022         * modules/strdup (License): Likewise.
62023         * modules/string (License): Likewise.
62024         * modules/strndup (License): Likewise.
62025         * modules/strnlen (License): Likewise.
62026         * modules/strpbrk (License): Likewise.
62027         * modules/strptime (License): Likewise.
62028         * modules/strsep (License): Likewise.
62029         * modules/sys_select (License): Likewise.
62030         * modules/sys_socket (License): Likewise.
62031         * modules/sys_stat (License): Likewise.
62032         * modules/sys_time (License): Likewise.
62033         * modules/time (License): Likewise.
62034         * modules/time_r (License): Likewise.
62035         * modules/timegm (License): Likewise.
62036         * modules/unistd (License): Likewise.
62037         * modules/vsnprintf (License): Likewise.
62038         * modules/wctype (License): Likewise.
62039
62040 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62041
62042         * modules/argz (License): LGPLv2+.
62043
62044 2007-07-15  Karl Berry  <karl@gnu.org>
62045
62046         * doc/gnulib.texi: revise node structure per new fdl.texi.
62047
62048 2007-07-14  Bruno Haible  <bruno@clisp.org>
62049
62050         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62051         the output file.
62052         * lib/uniname/uninames.h: Regenerated.
62053
62054 2007-07-14  Karl Berry  <karl@gnu.org>
62055
62056         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62057         omitting sectioning and index commands.
62058
62059 2007-07-13  Bruno Haible  <bruno@clisp.org>
62060
62061         New gnulib-tool option --more-symlinks.
62062         * gnulib-tool (func_usage): Document --more-symlinks.
62063         (do_copyrights): New variable.
62064         Recognize option --more-symlinks.
62065         (func_import): Don't add a copyright notice transform to
62066         sed_transform_lib_file if do_copyrights is empty.
62067
62068 2007-07-13  Bruno Haible  <bruno@clisp.org>
62069
62070         * lib/vasnprintf.c (decimal_point_char): Define also if
62071         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62072         && !NEED_PRINTF_DIRECTIVE_A.
62073         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62074         Gary V. Vaughan <gary@gnu.org>.
62075
62076 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62077
62078         * lib/inttypes_.h: Undo previous change, since it was fixed
62079         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62080
62081 2007-07-13  Bruno Haible  <bruno@clisp.org>
62082
62083         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62084         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62085
62086 2007-07-13  Jim Meyering  <jim@meyering.net>
62087
62088         df: Don't fail for Tru64's "file-on-file mount".
62089         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62090         so we fall through and use statfs instead.  Details here:
62091         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62092         Reported by Albert Chin.
62093
62094 2007-07-13  Bruno Haible  <bruno@clisp.org>
62095
62096         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62097         * modules/configmake (License): Likewise.
62098         * modules/gettext (License): Likewise.
62099         * modules/gettext-h (License): Likewise.
62100         * modules/include_next (License): Likewise.
62101         * modules/link-warning (License): Likewise.
62102         * modules/localcharset (License): Likewise.
62103         * modules/localename (License): Likewise.
62104         * modules/lock (License): Likewise.
62105         * modules/relocatable-lib-lgpl (License): Likewise.
62106         * modules/size_max (License): Likewise.
62107         * modules/vasnprintf (License): Likewise.
62108         * modules/wchar (License): Likewise.
62109         * modules/xsize (License): Likewise.
62110
62111 2007-07-13  Bruno Haible  <bruno@clisp.org>
62112
62113         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62114         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62115
62116 2007-07-12  Bruno Haible  <bruno@clisp.org>
62117
62118         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62119         in the modules files.
62120
62121 2007-07-11  Karl Berry  <karl@gnu.org>
62122
62123         * MODULES.html.sh (func_module): use
62124          sed -e '\|^'"${includefile}"'$|d'
62125          instead of /.../d, to avoid errors on $includefile's containing /.
62126
62127 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62128
62129         * gnulib-tool (func_import): Avoid duplication of --avoid
62130         statements
62131         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62132         names to `_' in variable names.
62133
62134 2007-07-10  Eric Blake  <ebb9@byu.net>
62135
62136         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62137         * NEWS: Document this change.
62138
62139 2007-07-08  Bruno Haible  <bruno@clisp.org>
62140
62141         Update to Unicode 5.0.
62142         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62143         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62144         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62145         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62146         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62147         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62148         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62149         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62150         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62151         U+10A3F, U+1D242..U+1D244.
62152         (nonspacing_table_ind): Update.
62153         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62154         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62155
62156 2007-07-08  Bruno Haible  <bruno@clisp.org>
62157
62158         Update to Unicode 5.0.
62159         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62160         code transform. Extend the name index field of unicode_name_to_code and
62161         unicode_code_to_name from 16 to 24 bits.
62162         * lib/uniname/uniname.c (unicode_character_name,
62163         unicode_name_character): Add the range 0x12xxx to the code transform.
62164         * lib/uniname/uninames.h: Regenerated.
62165         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62166
62167 2007-07-07  Bruno Haible  <bruno@clisp.org>
62168
62169         * modules/wcwidth-tests: New file.
62170         * tests/test-wcwidth.c: New file.
62171
62172         Work around MacOS X wcwidth() bug.
62173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62174         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62175         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62176         original wcwidth in non-UTF-8 locales.
62177         * modules/wcwidth (Depends-on): Add localcharset, streq,
62178         uniwidth/width.
62179         * doc/functions/wcwidth.texi: Update.
62180
62181 2007-07-07  Bruno Haible  <bruno@clisp.org>
62182
62183         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62184         (wcwidth): New declaration.
62185         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62186         macros.
62187         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62188         here. Prepare for creating <wchar.h> unconditionally.
62189         * modules/wchar (Depends-on): Add link-warning.
62190         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62191         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62192         * lib/wcwidth.h: Remove file.
62193         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62194         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62195         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62196         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62197         (Include): Replace wcwidth.h with <wchar.h>.
62198         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62199         * lib/mbchar.h: Don't include wcwidth.h.
62200         * lib/mbswidth.c: Likewise.
62201         * NEWS: Mention the change.
62202
62203 2007-07-07  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62206         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62207         definition with an external declaration.
62208         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62209         defined as a function. Remove AC_C_INLINE requirement.
62210         * modules/wcwidth (Files): Add lib/wcwidth.c.
62211         (Makefile.am): Remove redundant statement.
62212
62213 2007-07-07  Bruno Haible  <bruno@clisp.org>
62214
62215         * MODULES.html.sh (Unicode string functions): Add the new modules.
62216
62217         * tests/uniwidth/test-u32-strwidth.c: New file.
62218         * modules/uniwidth/u32-strwidth-tests: New file.
62219
62220         * lib/uniwidth/u32-strwidth.c: New file.
62221         * modules/uniwidth/u32-strwidth: New file.
62222
62223         * tests/uniwidth/test-u16-strwidth.c: New file.
62224         * modules/uniwidth/u16-strwidth-tests: New file.
62225
62226         * lib/uniwidth/u16-strwidth.c: New file.
62227         * modules/uniwidth/u16-strwidth: New file.
62228
62229         * tests/uniwidth/test-u8-strwidth.c: New file.
62230         * modules/uniwidth/u8-strwidth-tests: New file.
62231
62232         * lib/uniwidth/u8-strwidth.c: New file.
62233         * modules/uniwidth/u8-strwidth: New file.
62234
62235         * tests/uniwidth/test-u32-width.c: New file.
62236         * modules/uniwidth/u32-width-tests: New file.
62237
62238         * lib/uniwidth/u32-width.c: New file.
62239         * modules/uniwidth/u32-width: New file.
62240
62241         * tests/uniwidth/test-u16-width.c: New file.
62242         * modules/uniwidth/u16-width-tests: New file.
62243
62244         * lib/uniwidth/u16-width.c: New file.
62245         * modules/uniwidth/u16-width: New file.
62246
62247         * tests/uniwidth/test-u8-width.c: New file.
62248         * modules/uniwidth/u8-width-tests: New file.
62249
62250         * lib/uniwidth/u8-width.c: New file.
62251         * modules/uniwidth/u8-width: New file.
62252
62253         * tests/uniwidth/test-uc_width.c: New file.
62254         * modules/uniwidth/width-tests: New file.
62255
62256         * lib/uniwidth/width.c: New file, from GNU libiconv.
62257         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62258         * modules/uniwidth/width: New file.
62259
62260         * lib/uniwidth.h: New file, from GNU libiconv.
62261         * modules/uniwidth/base: New file.
62262
62263 2007-07-07  Bruno Haible  <bruno@clisp.org>
62264
62265         * lib/uniname.h: New file, from GNU gettext.
62266         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62267         * lib/uniname/uninames.h: New file, from GNU gettext.
62268         * lib/uniname/uniname.c: New file, from GNU gettext.
62269         * tests/uniname/test-uninames.sh: New file.
62270         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62271         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62272         * modules/uniname/base: New file.
62273         * modules/uniname/uniname: New file.
62274         * modules/uniname/uniname-tests: New file.
62275         * MODULES.html.sh (Unicode string functions): Add the new modules.
62276
62277 2007-07-06  Bruno Haible  <bruno@clisp.org>
62278
62279         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62280
62281 2007-07-06  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62284         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62285         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62286         include <sys/time.h>.
62287         Reported by Eric Blake.
62288
62289 2007-07-06  Eric Blake  <ebb9@byu.net>
62290
62291         Fix testing canonicalize on cygwin.
62292         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62293         Revert patch from 2007-06-19.
62294         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62295         canonicalize module is also in use.
62296         * tests/test-canonicalize.c: New file.
62297         * tests/test-canonicalize.sh: Likewise.
62298         * modules/canonicalize-tests: Likewise.
62299
62300 2007-07-06  Jim Meyering  <jim@meyering.net>
62301
62302         * lib/getugroups.c (getugroups): Detect getgrent failure.
62303         Adjust comment to reflect reality: this function may return -1.
62304
62305 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62306
62307         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62308         the new TP address.
62309         (usage): Fix typo
62310         (gnulib_mk): New variable.
62311
62312 2007-07-05  Jim Meyering  <jim@meyering.net>
62313
62314         Don't let endgrent clobber errno, no matter how improbable.
62315         * lib/getugroups.c (getugroups): Save and restore errno around
62316         endgrent call.
62317
62318         Close the group DB even when failing with 2^31 or more members.
62319         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62320
62321 2007-07-04  Jim Meyering  <jim@meyering.net>
62322
62323         * lib/getugroups.h: New file.
62324         * lib/getugroups.c: Include "getugroups.h".
62325         Remove uses of "register" keyword.
62326         Move local variable, "cp", down into scope where used.
62327         Give "username" parameter the "const" attribute.
62328         * modules/getugroups (Files): Add lib/getugroups.h
62329
62330 2007-07-04  Karl Berry  <karl@gnu.org>
62331
62332         * MODULES.html.sh (func_all_modules): Complete rename of
62333         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62334
62335 2007-07-02  Bruno Haible  <bruno@clisp.org>
62336
62337         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62338         mode, when inttypes.h comes from gnulib.
62339         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62340
62341 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62342
62343         * NEWS: Mention lgpl module name change.
62344
62345         * modules/lgpl-2.1: Renamed from lgpl.
62346
62347         * NEWS: Mention gpl module name change.
62348
62349         * modules/gpl-3.0: New file, based on gpl-2.0.
62350
62351         * modules/gpl-2.0: Renamed from gpl.
62352
62353         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62354         doc/gpl-2.0.texi.
62355
62356 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62357
62358         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62359         #define __STDC_LIMIT_MACROS temporarily while including
62360         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62361         Problem reported by Joel E. Denny in
62362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62363
62364 2007-07-01  Bruno Haible  <bruno@clisp.org>
62365
62366         * lib/unistdio.h: New file.
62367         * lib/unistdio/u-asnprintf.h: New file.
62368         * lib/unistdio/u-asprintf.h: New file.
62369         * lib/unistdio/u-printf-args.c: New file.
62370         * lib/unistdio/u-printf-args.h: New file.
62371         * lib/unistdio/u-printf-parse.h: New file.
62372         * lib/unistdio/u-snprintf.h: New file.
62373         * lib/unistdio/u-sprintf.h: New file.
62374         * lib/unistdio/u-vasprintf.h: New file.
62375         * lib/unistdio/u-vsnprintf.h: New file.
62376         * lib/unistdio/u-vsprintf.h: New file.
62377         * lib/unistdio/ulc-asnprintf.c: New file.
62378         * lib/unistdio/ulc-asprintf.c: New file.
62379         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62380         * lib/unistdio/ulc-printf-parse.c: New file.
62381         * lib/unistdio/ulc-snprintf.c: New file.
62382         * lib/unistdio/ulc-sprintf.c: New file.
62383         * lib/unistdio/ulc-vasnprintf.c: New file.
62384         * lib/unistdio/ulc-vasprintf.c: New file.
62385         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62386         * lib/unistdio/ulc-vsnprintf.c: New file.
62387         * lib/unistdio/ulc-vsprintf.c: New file.
62388         * lib/unistdio/u8-asnprintf.c: New file.
62389         * lib/unistdio/u8-asprintf.c: New file.
62390         * lib/unistdio/u8-printf-parse.c: New file.
62391         * lib/unistdio/u8-snprintf.c: New file.
62392         * lib/unistdio/u8-sprintf.c: New file.
62393         * lib/unistdio/u8-vasnprintf.c: New file.
62394         * lib/unistdio/u8-vasprintf.c: New file.
62395         * lib/unistdio/u8-vsnprintf.c: New file.
62396         * lib/unistdio/u8-vsprintf.c: New file.
62397         * lib/unistdio/u8-u8-asnprintf.c: New file.
62398         * lib/unistdio/u8-u8-asprintf.c: New file.
62399         * lib/unistdio/u8-u8-snprintf.c: New file.
62400         * lib/unistdio/u8-u8-sprintf.c: New file.
62401         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62402         * lib/unistdio/u8-u8-vasprintf.c: New file.
62403         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62404         * lib/unistdio/u8-u8-vsprintf.c: New file.
62405         * lib/unistdio/u16-asnprintf.c: New file.
62406         * lib/unistdio/u16-asprintf.c: New file.
62407         * lib/unistdio/u16-printf-parse.c: New file.
62408         * lib/unistdio/u16-snprintf.c: New file.
62409         * lib/unistdio/u16-sprintf.c: New file.
62410         * lib/unistdio/u16-vasnprintf.c: New file.
62411         * lib/unistdio/u16-vasprintf.c: New file.
62412         * lib/unistdio/u16-vsnprintf.c: New file.
62413         * lib/unistdio/u16-vsprintf.c: New file.
62414         * lib/unistdio/u16-u16-asnprintf.c: New file.
62415         * lib/unistdio/u16-u16-asprintf.c: New file.
62416         * lib/unistdio/u16-u16-snprintf.c: New file.
62417         * lib/unistdio/u16-u16-sprintf.c: New file.
62418         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62419         * lib/unistdio/u16-u16-vasprintf.c: New file.
62420         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62421         * lib/unistdio/u16-u16-vsprintf.c: New file.
62422         * lib/unistdio/u32-asnprintf.c: New file.
62423         * lib/unistdio/u32-asprintf.c: New file.
62424         * lib/unistdio/u32-printf-parse.c: New file.
62425         * lib/unistdio/u32-snprintf.c: New file.
62426         * lib/unistdio/u32-sprintf.c: New file.
62427         * lib/unistdio/u32-vasnprintf.c: New file.
62428         * lib/unistdio/u32-vasprintf.c: New file.
62429         * lib/unistdio/u32-vsnprintf.c: New file.
62430         * lib/unistdio/u32-vsprintf.c: New file.
62431         * lib/unistdio/u32-u32-asnprintf.c: New file.
62432         * lib/unistdio/u32-u32-asprintf.c: New file.
62433         * lib/unistdio/u32-u32-snprintf.c: New file.
62434         * lib/unistdio/u32-u32-sprintf.c: New file.
62435         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62436         * lib/unistdio/u32-u32-vasprintf.c: New file.
62437         * lib/unistdio/u32-u32-vsnprintf.c: New file.
62438         * lib/unistdio/u32-u32-vsprintf.c: New file.
62439         * tests/unistdio/test-ulc-asnprintf1.c: New file.
62440         * tests/unistdio/test-ulc-asnprintf1.h: New file.
62441         * tests/unistdio/test-ulc-printf1.h: New file.
62442         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
62443         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
62444         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
62445         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
62446         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
62447         * tests/unistdio/test-ulc-vasprintf1.c: New file.
62448         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
62449         * tests/unistdio/test-ulc-vsprintf1.c: New file.
62450         * tests/unistdio/test-u8-asnprintf1.c: New file.
62451         * tests/unistdio/test-u8-asnprintf1.h: New file.
62452         * tests/unistdio/test-u8-printf1.h: New file.
62453         * tests/unistdio/test-u8-vasnprintf1.c: New file.
62454         * tests/unistdio/test-u8-vasnprintf2.c: New file.
62455         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
62456         * tests/unistdio/test-u8-vasnprintf3.c: New file.
62457         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
62458         * tests/unistdio/test-u8-vasprintf1.c: New file.
62459         * tests/unistdio/test-u8-vsnprintf1.c: New file.
62460         * tests/unistdio/test-u8-vsprintf1.c: New file.
62461         * tests/unistdio/test-u16-asnprintf1.c: New file.
62462         * tests/unistdio/test-u16-asnprintf1.h: New file.
62463         * tests/unistdio/test-u16-printf1.h: New file.
62464         * tests/unistdio/test-u16-vasnprintf1.c: New file.
62465         * tests/unistdio/test-u16-vasnprintf2.c: New file.
62466         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
62467         * tests/unistdio/test-u16-vasnprintf3.c: New file.
62468         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
62469         * tests/unistdio/test-u16-vasprintf1.c: New file.
62470         * tests/unistdio/test-u16-vsnprintf1.c: New file.
62471         * tests/unistdio/test-u16-vsprintf1.c: New file.
62472         * tests/unistdio/test-u32-asnprintf1.c: New file.
62473         * tests/unistdio/test-u32-asnprintf1.h: New file.
62474         * tests/unistdio/test-u32-printf1.h: New file.
62475         * tests/unistdio/test-u32-vasnprintf1.c: New file.
62476         * tests/unistdio/test-u32-vasnprintf2.c: New file.
62477         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
62478         * tests/unistdio/test-u32-vasnprintf3.c: New file.
62479         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
62480         * tests/unistdio/test-u32-vasprintf1.c: New file.
62481         * tests/unistdio/test-u32-vsnprintf1.c: New file.
62482         * tests/unistdio/test-u32-vsprintf1.c: New file.
62483         * modules/unistdio/base: New file.
62484         * modules/unistdio/u-printf-args: New file.
62485         * modules/unistdio/ulc-asnprintf: New file.
62486         * modules/unistdio/ulc-asprintf: New file.
62487         * modules/unistdio/ulc-fprintf: New file.
62488         * modules/unistdio/ulc-printf-parse: New file.
62489         * modules/unistdio/ulc-snprintf: New file.
62490         * modules/unistdio/ulc-sprintf: New file.
62491         * modules/unistdio/ulc-vasnprintf: New file.
62492         * modules/unistdio/ulc-vasprintf: New file.
62493         * modules/unistdio/ulc-vfprintf: New file.
62494         * modules/unistdio/ulc-vsnprintf: New file.
62495         * modules/unistdio/ulc-vsprintf: New file.
62496         * modules/unistdio/u8-asnprintf: New file.
62497         * modules/unistdio/u8-asprintf: New file.
62498         * modules/unistdio/u8-printf-parse: New file.
62499         * modules/unistdio/u8-snprintf: New file.
62500         * modules/unistdio/u8-sprintf: New file.
62501         * modules/unistdio/u8-vasnprintf: New file.
62502         * modules/unistdio/u8-vasprintf: New file.
62503         * modules/unistdio/u8-vsnprintf: New file.
62504         * modules/unistdio/u8-vsprintf: New file.
62505         * modules/unistdio/u8-u8-asnprintf: New file.
62506         * modules/unistdio/u8-u8-asprintf: New file.
62507         * modules/unistdio/u8-u8-snprintf: New file.
62508         * modules/unistdio/u8-u8-sprintf: New file.
62509         * modules/unistdio/u8-u8-vasnprintf: New file.
62510         * modules/unistdio/u8-u8-vasprintf: New file.
62511         * modules/unistdio/u8-u8-vsnprintf: New file.
62512         * modules/unistdio/u8-u8-vsprintf: New file.
62513         * modules/unistdio/u16-asnprintf: New file.
62514         * modules/unistdio/u16-asprintf: New file.
62515         * modules/unistdio/u16-printf-parse: New file.
62516         * modules/unistdio/u16-snprintf: New file.
62517         * modules/unistdio/u16-sprintf: New file.
62518         * modules/unistdio/u16-vasnprintf: New file.
62519         * modules/unistdio/u16-vasprintf: New file.
62520         * modules/unistdio/u16-vsnprintf: New file.
62521         * modules/unistdio/u16-vsprintf: New file.
62522         * modules/unistdio/u16-u16-asnprintf: New file.
62523         * modules/unistdio/u16-u16-asprintf: New file.
62524         * modules/unistdio/u16-u16-snprintf: New file.
62525         * modules/unistdio/u16-u16-sprintf: New file.
62526         * modules/unistdio/u16-u16-vasnprintf: New file.
62527         * modules/unistdio/u16-u16-vasprintf: New file.
62528         * modules/unistdio/u16-u16-vsnprintf: New file.
62529         * modules/unistdio/u16-u16-vsprintf: New file.
62530         * modules/unistdio/u32-asnprintf: New file.
62531         * modules/unistdio/u32-asprintf: New file.
62532         * modules/unistdio/u32-printf-parse: New file.
62533         * modules/unistdio/u32-snprintf: New file.
62534         * modules/unistdio/u32-sprintf: New file.
62535         * modules/unistdio/u32-vasnprintf: New file.
62536         * modules/unistdio/u32-vasprintf: New file.
62537         * modules/unistdio/u32-vsnprintf: New file.
62538         * modules/unistdio/u32-vsprintf: New file.
62539         * modules/unistdio/u32-u32-asnprintf: New file.
62540         * modules/unistdio/u32-u32-asprintf: New file.
62541         * modules/unistdio/u32-u32-snprintf: New file.
62542         * modules/unistdio/u32-u32-sprintf: New file.
62543         * modules/unistdio/u32-u32-vasnprintf: New file.
62544         * modules/unistdio/u32-u32-vasprintf: New file.
62545         * modules/unistdio/u32-u32-vsnprintf: New file.
62546         * modules/unistdio/u32-u32-vsprintf: New file.
62547         * modules/unistdio/ulc-asnprintf-tests: New file.
62548         * modules/unistdio/ulc-vasnprintf-tests: New file.
62549         * modules/unistdio/ulc-vasprintf-tests: New file.
62550         * modules/unistdio/ulc-vsnprintf-tests: New file.
62551         * modules/unistdio/ulc-vsprintf-tests: New file.
62552         * modules/unistdio/u8-asnprintf-tests: New file.
62553         * modules/unistdio/u8-vasnprintf-tests: New file.
62554         * modules/unistdio/u8-vasprintf-tests: New file.
62555         * modules/unistdio/u8-vsnprintf-tests: New file.
62556         * modules/unistdio/u8-vsprintf-tests: New file.
62557         * modules/unistdio/u16-asnprintf-tests: New file.
62558         * modules/unistdio/u16-vasnprintf-tests: New file.
62559         * modules/unistdio/u16-vasprintf-tests: New file.
62560         * modules/unistdio/u16-vsnprintf-tests: New file.
62561         * modules/unistdio/u16-vsprintf-tests: New file.
62562         * modules/unistdio/u32-asnprintf-tests: New file.
62563         * modules/unistdio/u32-vasnprintf-tests: New file.
62564         * modules/unistdio/u32-vasprintf-tests: New file.
62565         * modules/unistdio/u32-vsnprintf-tests: New file.
62566         * modules/unistdio/u32-vsprintf-tests: New file.
62567         * MODULES.html.sh (Unicode string functions): Add the new modules.
62568
62569 2007-07-01  Bruno Haible  <bruno@clisp.org>
62570
62571         * lib/sprintf.c (sprintf): Limit the available length estimation,
62572         to avoid address wraparound.
62573         * lib/vsprintf.c (vsprintf): Likewise.
62574         * modules/sprintf-posix (Dependencies): Add stdint.
62575         * modules/vsprintf-posix (Dependencies): Likewise.
62576
62577 2007-07-01  Bruno Haible  <bruno@clisp.org>
62578
62579         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
62580         Windows PATH as well. Conservative double-quoting. Comments.
62581
62582 2007-07-01  Bruno Haible  <bruno@clisp.org>
62583             Eric Blake  <ebb9@byu.net>
62584             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62585
62586         * gnulib-tool (self_abspathname): Fix algorithm to cope with
62587         empty components in $PATH, denoting '.'.
62588
62589 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62590
62591         * gnulib-tool: Fix indentation.
62592         (func_create_megatestdir): Likewise.
62593         Report by Bruno Haible.
62594
62595 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62596
62597         Sync from Automake.
62598         * build-aux/gnupload: Fix shell portability issues with for loops.
62599         Report by Karl Berry.
62600
62601 2007-06-29  Simon Josefsson  <simon@josefsson.org>
62602
62603         * build-aux/maint.mk (POURL): Use translationproject.org.
62604
62605 2007-06-27  Simon Josefsson  <simon@josefsson.org>
62606             Bruno Haible  <bruno@clisp.org>
62607
62608         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
62609         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
62610         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
62611         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
62612         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
62613
62614 2007-06-27  Bruno Haible  <bruno@clisp.org>
62615
62616         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
62617         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
62618
62619 2007-06-26  Karl Berry  <karl@gnu.org>
62620
62621         * MODULES.html.sh: remove xreadlink-with-size.
62622
62623 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62624
62625         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
62626         method that I hope also handles the double-include problem noted
62627         by Bruno Haible in
62628         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
62629
62630 2007-06-23  Bruno Haible  <bruno@clisp.org>
62631
62632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62633         Don't let the 'mostlyclean' target fail if the last subdirectory could
62634         not be removed.
62635         Reported by Karl Berry.
62636
62637 2007-06-23  Bruno Haible  <bruno@clisp.org>
62638
62639         * gnulib-tool (echo): Add a speedier workaround for ksh.
62640         * tests/test-echo.sh: Likewise.
62641
62642 2007-06-23  Bruno Haible  <bruno@clisp.org>
62643
62644         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
62645         * tests/test-echo.sh: Likewise.
62646
62647 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62648
62649         * gnulib-tool (IFS): Initialize early, so we don't set it to
62650         empty later.
62651         (self_abspathname): Rewrite algorithm to set it, reindent.
62652         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
62653         (func_create_megatestdir): Merge some sed scripts.
62654
62655 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
62656
62657         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
62658         exposed by Sun Studio 11 cc on Solaris 8.
62659
62660 2007-06-22  Bruno Haible  <bruno@clisp.org>
62661
62662         * gnulib-tool (echo): Ensure the echo primitive does not interpret
62663         backslashes.
62664         * tests/test-echo.sh: New file.
62665
62666 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62667
62668         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
62669         simplify `sed_replace_build_aux' scripts, they are portable but
62670         echoing them with `echo' is not.
62671         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
62672
62673 2007-06-21  Karl Berry  <karl@gnu.org>
62674
62675         * config/srclist.txt: guess we can't handle the licenses via
62676         srclist at the moment.
62677
62678 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
62679
62680         * MODULES.html.sh: Add include_next.
62681         * modules/include_next: New file.
62682
62683 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
62686         INCLUDE_NEXT.
62687         (gl_CHECK_NEXT_HEADERS): New macro.
62688         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
62689         the obsolescent gl_ABSOLUTE_HEADER.
62690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
62691         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
62692         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
62693         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
62694         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
62695         * m4/math_h.m4 (gl_MATH_H): Likewise.
62696         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
62697         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
62698         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
62699         * m4/stdint.m4 (gl_STDINT_H): Likewise.
62700         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
62701         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
62702         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
62703         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
62704         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
62705         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
62706         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
62707         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
62708         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
62709         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
62710         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
62711         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62712         * m4/inttypes.m4 (gl_INTTYPES_H): Define
62713         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
62714         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
62715         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
62716         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
62717         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
62718         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
62719         * lib/float_.h: Likewise.
62720         * lib/inttypes_.h: Likewise.
62721         * lib/math_.h: Likewise.
62722         * lib/search_.h: Likewise.
62723         * lib/signal_.h: Likewise.
62724         * lib/stdint_.h: Likewise.
62725         * lib/stdio_.h: Likewise.
62726         * lib/stdlib_.h: Likewise.
62727         * lib/string_.h: Likewise.
62728         * lib/sys_stat_.h: Likewise.
62729         * lib/sys_time_.h: Likewise.
62730         * lib/time_.h: Likewise.
62731         * lib/unistd_.h: Likewise.
62732         * lib/wchar_.h: Likewise.
62733         * lib/wctype_.h: Likewise.
62734         * lib/dirent_.h: Likewise.
62735         * lib/iconv_.h: Likewise.
62736         * lib/locale_.h: Likewise.
62737         * lib/netinet_in_.h: Likewise.
62738         * lib/sys_select_.h: Likewise.
62739         * lib/sys_socket_.h: Likewise.
62740         * lib/sysexits_.h: Likewise.
62741         * modules/fcntl (Depends-on): Depend on include_next, not
62742         absolute_header.
62743         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
62744         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
62745         * modules/fchdir: Likewise.
62746         * modules/float: Likewise.
62747         * modules/iconv_open: Likewise.
62748         * modules/inttypes: Likewise.
62749         * modules/locale: Likewise.
62750         * modules/math: Likewise.
62751         * modules/netinet_in: Likewise.
62752         * modules/search: Likewise.
62753         * modules/signal: Likewise.
62754         * modules/stdint: Likewise.
62755         * modules/stdio: Likewise.
62756         * modules/stdlib: Likewise.
62757         * modules/string: Likewise.
62758         * modules/sys_select: Likewise.
62759         * modules/sys_socket: Likewise.
62760         * modules/sys_stat: Likewise.
62761         * modules/sys_time: Likewise.
62762         * modules/sysexits: Likewise.
62763         * modules/time: Likewise.
62764         * modules/unistd: Likewise.
62765         * modules/wchar: Likewise.
62766         * modules/wctype: Likewise.
62767         * modules/sys_stat: Change maintainer to "all".
62768         * modules/unistd: Likewise.
62769
62770 2007-06-20  Karl Berry  <karl@gnu.org>
62771
62772         * config/srclist.txt: track www changes in license files.
62773
62774 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
62775
62776         * build-aux/bootstrap: Remove stray dot.
62777         Make sure build_aux settings are honored when linking
62778         gnulib_extra_files.
62779
62780 2007-06-19  Eric Blake  <ebb9@byu.net>
62781
62782         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62783         Allow compilation on cygwin.
62784
62785 2007-06-19  Jim Meyering  <jim@meyering.net>
62786
62787         xreadlink-with-size: Remove module.  No longer used.
62788         Ex-callers now use xreadlink or mreadlink-with-size.
62789         * modules/xreadlink-with-size: Remove module.
62790         * lib/xreadlink-with-size.c: Remove file.
62791         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
62792         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
62793         just before the function definition *is* accurate.
62794
62795         Eliminate one way canonicalize_filename_mode could exit.
62796         * lib/canonicalize.c (canonicalize_filename_mode):
62797         Use mreadlink_with_size, not xreadlink_with_size.
62798
62799 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
62800
62801         Detect porting problems to FreeBSD/arm, which has time_t wider than
62802         long int.  Original problem reported for GNU diff by Xin Li in
62803         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
62804         * modules/getdate (Depends-on): Add intprops, verify.
62805         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
62806         is an integer type no wider than long int.
62807
62808 2007-06-18  Jim Meyering  <jim@meyering.net>
62809
62810         New module: mreadlink-with-size.
62811         * MODULES.html.sh: Add mreadlink-with-size.
62812         * modules/mreadlink-with-size: New module
62813         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
62814         not xreadlink-with-size.
62815         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
62816
62817 2007-06-16  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
62820         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
62821         Reported by Gary V. Vaughan <gary@gnu.org>.
62822
62823 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
62824
62825         Revamp lchown so that it lives in unistd.h where it belongs.
62826         * lib/lchown.h: Remove.
62827         * lib/dirchownmod.c: Don't include lib/lchown.h.
62828         * lib/fchownat.c: Likewise.
62829         * lib/openat.c: Likewise.
62830         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
62831         does not follow symlinks.
62832         (EOPNOTSUPP): Define if not defined.
62833         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
62834         is defined to 0.
62835         (lchown): New decl.
62836         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
62837         Do not check for lchown decl.
62838         Set REPLACE_LCHOWN.
62839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
62840         REPLACE_LCHOWN.
62841         * modules/chown: Make it clear it follows symlinks.
62842         * modules/lchown: Make it clear it doesn't follow symlinks.
62843         (Files): Remove lib/lchown.h
62844         (Depends-on): Add unistd.
62845         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
62846         (Include): Include <unistd.h>, not "lchown.h".
62847         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
62848         REPLACE_LCHOWN.
62849
62850 2007-06-15  Jim Meyering  <jim@meyering.net>
62851
62852         Change license (GPL to LGPL) of fsusage and dependents.
62853         * modules/fsusage (License): Change to LGPL.
62854         * modules/full-read (License): Likewise.
62855         * modules/full-write (License): Likewise.
62856         * modules/safe-read (License): Likewise.
62857         * modules/safe-write (License): Likewise.
62858
62859 2007-06-14  Ben Pfaff  <blp@gnu.org>
62860
62861         Missing part of allocsa -> malloca transition.
62862         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
62863         gl_MALLOCA.
62864
62865 2007-06-12  Bruno Haible  <bruno@clisp.org>
62866
62867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
62868         to ia64, x86_64, i386.
62869         Reported by Eric Blake.
62870
62871 2007-06-12  Bruno Haible  <bruno@clisp.org>
62872
62873         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
62874         cross-compiling to x86_64.
62875
62876 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
62877
62878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
62879         glitch reported by Ralf Wildenhues in
62880         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
62881
62882         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
62883         Vin Shelton.
62884
62885 2007-06-11  Bruno Haible  <bruno@clisp.org>
62886
62887         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
62888         replacement string.
62889         Reported by Eric Blake.
62890
62891 2007-06-10  Bruno Haible  <bruno@clisp.org>
62892
62893         Prepare vasnprintf code for use with Unicode strings.
62894         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
62895         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
62896         TYPE_U32_STRING.
62897         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
62898         a_u32_string variants.
62899         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62900         * lib/printf-args.c: Don't include config.h and the specification
62901         header if PRINTF_FETCHARGS is already defined.
62902         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
62903         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
62904         TYPE_U16_STRING, TYPE_U32_STRING.
62905         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
62906         u16_directive, u16_directives, u32_directive, u32_directives): New
62907         types.
62908         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
62909         New declarations.
62910         * lib/printf-parse.c: Don't include config.h and the specification
62911         header if PRINTF_PARSE is already defined. Eliminate the set of
62912         parameters for WIDE_CHAR_VERSION; the user of this file must provide
62913         them now. Include c-ctype.h.
62914         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
62915         directive and CHAR_T_ONLY_ASCII.
62916         * lib/vasnprintf.c: Don't include config.h and the specification header
62917         if VASNPRINTF is already defined.
62918         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
62919         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
62920         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
62921         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
62922         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
62923         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
62924         code accordingly.
62925         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
62926         pad_ourselves also in this case, with the 'c' and 's' directives, and
62927         with a different notion of "width".
62928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
62929
62930 2007-06-10  Bruno Haible  <bruno@clisp.org>
62931
62932         * modules/unistr/u32-mbsnlen: New file.
62933         * lib/unistr/u32-mbsnlen.c: New file.
62934
62935         * modules/unistr/u16-mbsnlen: New file.
62936         * lib/unistr/u16-mbsnlen.c: New file.
62937
62938         * modules/unistr/u8-mbsnlen: New file.
62939         * lib/unistr/u8-mbsnlen.c: New file.
62940
62941         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
62942         declarations.
62943
62944 2007-06-10  Bruno Haible  <bruno@clisp.org>
62945
62946         * lib/string_.h (mbsnlen): New declaration.
62947         * lib/mbsnlen.c: New file.
62948         * m4/mbsnlen.m4: New file.
62949         * modules/mbsnlen: New file.
62950         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
62951         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
62952         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
62953
62954 2007-06-10  Bruno Haible  <bruno@clisp.org>
62955
62956         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
62957
62958 2007-06-10  Bruno Haible  <bruno@clisp.org>
62959
62960         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
62961         * lib/mbuiter.h: Likewise.
62962
62963 2007-06-10  Bruno Haible  <bruno@clisp.org>
62964
62965         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
62966         declaration.
62967
62968 2007-06-10  Karl Berry  <karl@gnu.org>
62969
62970         * config/srclist.txt: remove gettext entries, Bruno prefers
62971         to update individually.
62972
62973 2007-06-10  Bruno Haible  <bruno@clisp.org>
62974
62975         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
62976         'maxlen'. Ensure only length + width bytes are allocated, not
62977         length + 1 + width.
62978
62979 2007-06-09  Bruno Haible  <bruno@clisp.org>
62980
62981         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
62982         (CHAR_T): Remove macro.
62983         (VASNPRINTF): Update.
62984
62985 2007-06-09  Bruno Haible  <bruno@clisp.org>
62986
62987         * MODULES.html.sh (Unicode string functions): Add the new modules.
62988
62989         * modules/uniconv/u32-conv-to-enc: New file.
62990         * lib/uniconv/u32-conv-to-enc.c: New file.
62991         * modules/uniconv/u32-conv-to-enc-tests: New file.
62992         * tests/uniconv/test-u32-conv-to-enc.c: New file.
62993
62994         * modules/uniconv/u16-conv-to-enc: New file.
62995         * lib/uniconv/u16-conv-to-enc.c: New file.
62996         * lib/uniconv/u-conv-to-enc.h: New file.
62997         * modules/uniconv/u16-conv-to-enc-tests: New file.
62998         * tests/uniconv/test-u16-conv-to-enc.c: New file.
62999
63000         * modules/uniconv/u8-conv-to-enc: New file.
63001         * lib/uniconv/u8-conv-to-enc.c: New file.
63002         * modules/uniconv/u8-conv-to-enc-tests: New file.
63003         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63004
63005         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63006         u32_conv_to_encoding): New declarations.
63007
63008 2007-06-09  Bruno Haible  <bruno@clisp.org>
63009
63010         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63011
63012 2007-06-09  Bruno Haible  <bruno@clisp.org>
63013
63014         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63015         * modules/malloca: Renamed from modules/allocsa, updated.
63016         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63017         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63018         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63019         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63020         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63021         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63022         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63023         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63024         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63025         * modules/c-strcasestr (Depends-on): Update.
63026         * lib/c-strcasestr.c: Update.
63027         * modules/c-strstr (Depends-on): Update.
63028         * lib/c-strstr.c: Update.
63029         * modules/canonicalize-lgpl (Depends-on): Update.
63030         * lib/canonicalize-lgpl.c: Update.
63031         * modules/clean-temp (Depends-on): Update.
63032         * lib/clean-temp.c: Update.
63033         * modules/csharpcomp (Depends-on): Update.
63034         * lib/csharpcomp.c: Update.
63035         * modules/csharpexec (Depends-on): Update.
63036         * lib/csharpexec.c: Update.
63037         * modules/javacomp (Depends-on): Update.
63038         * lib/javacomp.c: Update.
63039         * modules/javaexec (Depends-on): Update.
63040         * lib/javaexec.c: Update.
63041         * modules/mbscasestr (Depends-on): Update.
63042         * lib/mbscasestr.c: Update.
63043         * modules/mbsstr (Depends-on): Update.
63044         * lib/mbsstr.c: Update.
63045         * modules/setenv (Depends-on): Update.
63046         * lib/setenv.c: Update.
63047         * modules/strcasestr (Depends-on): Update.
63048         * lib/strcasestr.c: Update.
63049         * modules/striconveha (Depends-on): Update.
63050         * lib/striconveha.c: Update.
63051         * modules/relocatable-prog-wrapper (Files): Update.
63052         * lib/relocwrapper.c: Update.
63053         * build-aux/install-reloc: Update.
63054         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63055
63056 2007-06-08  Bruno Haible  <bruno@clisp.org>
63057
63058         Port to uClibc.
63059         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63060         * lib/fpurge.c (fpurge): Likewise.
63061         * lib/freading.c (freading): Likewise.
63062         * lib/fseeko.c (rpl_fseeko): Likewise.
63063         * lib/fseterr.c (fseterr): Likewise.
63064         * lib/fwriting.c (fwriting): Likewise.
63065         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63066
63067 2007-06-08  Bruno Haible  <bruno@clisp.org>
63068
63069         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63070         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63071         * modules/gettext (Files): Add m4/intlmacosx.m4.
63072
63073 2007-06-07  Bruno Haible  <bruno@clisp.org>
63074
63075         * modules/localename-tests: New file.
63076         * tests/test-localename.c: New file.
63077
63078         New module 'localename'.
63079         * lib/localename.h: New file.
63080         * lib/localename.c: New file, from GNU gettext.
63081         * m4/localename.m4: New file.
63082         * modules/localename: New file.
63083
63084 2007-06-07  Bruno Haible  <bruno@clisp.org>
63085
63086         Work around the lack of <wchar.h> on some builds of uClibc.
63087         * doc/headers/wchar.texi: Update.
63088         * lib/wchar_.h: Include <wchar.h> only if it exists.
63089         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63090         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63091         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63092         doesn't exist.
63093         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63094         * modules/mbfile (Depends-on): Add wchar.
63095         * modules/mbiter (Depends-on): Likewise.
63096         * modules/mbuiter (Depends-on): Likewise.
63097         Reported by Simon Josefsson.
63098
63099 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63100
63101         Work around problem reported by Steven M. Schweda in
63102         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63103         Tru64 5.1B with the Compaq compiler environment installed declares
63104         an 'isblank' function but does not define it in the C library.
63105         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63106         * lib/regex_internal.h (isblank): Likewise.
63107         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63108         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63109
63110 2007-06-05  Bruno Haible  <bruno@clisp.org>
63111
63112         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63113         ia64.
63114         * modules/printf-safe: New file.
63115         * modules/fprintf-posix (Depends-on): Add printf-safe.
63116         * modules/printf-posix (Depends-on): Likewise.
63117         * modules/snprintf-posix (Depends-on): Likewise.
63118         * modules/sprintf-posix (Depends-on): Likewise.
63119         * modules/vasnprintf-posix (Depends-on): Likewise.
63120         * modules/vasprintf-posix (Depends-on): Likewise.
63121         * modules/vfprintf-posix (Depends-on): Likewise.
63122         * modules/vprintf-posix (Depends-on): Likewise.
63123         * modules/vsnprintf-posix (Depends-on): Likewise.
63124         * modules/vsprintf-posix (Depends-on): Likewise.
63125         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63126         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63127         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63128         "no" on i386, x86_64, ia64.
63129         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63130         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63131         on i386, x86_64, ia64.
63132         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63133         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63134         on i386, x86_64, ia64.
63135         * tests/test-vasnprintf-posix.c: Include float.h.
63136         (LDBL80_WORDS): New macro.
63137         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63138         on i386, x86_64, ia64.
63139         * tests/test-vasprintf-posix.c: Include float.h.
63140         (LDBL80_WORDS): New macro.
63141         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63142         on i386, x86_64, ia64.
63143         * tests/test-snprintf-posix.c: Include float.h.
63144         * tests/test-sprintf-posix.c: Likewise.
63145         * tests/test-vsnprintf-posix.c: Likewise.
63146         * tests/test-vsprintf-posix.c: Likewise.
63147
63148 2007-06-05  Bruno Haible  <bruno@clisp.org>
63149
63150         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63151         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63152         non-IEEE numbers on i386, x86_64, ia64.
63153         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63154         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63155         * tests/test-isnanl.h: Include float.h.
63156         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63157
63158 2007-06-05  Bruno Haible  <bruno@clisp.org>
63159
63160         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63161         also the %a / %A. Handle the %a / %A code before this extra handling.
63162
63163 2007-06-05  Bruno Haible  <bruno@clisp.org>
63164
63165         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63166         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63167
63168 2007-06-05  Bruno Haible  <bruno@clisp.org>
63169
63170         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63171         typo in variable name.
63172
63173 2007-06-05  Eric Blake  <ebb9@byu.net>
63174
63175         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63176         Reported by Simon Josefsson.
63177
63178 2007-06-04  Bruno Haible  <bruno@clisp.org>
63179
63180         Avoid test failures on some PowerPC platforms.
63181         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63182         Define differently for PowerPC.
63183         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63184         Reported by Gary V. Vaughan <gary@gnu.org>.
63185
63186 2007-06-02  Bruno Haible  <bruno@clisp.org>
63187
63188         Fix test-stdint failure on FreeBSD/ia64.
63189         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63190         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63191         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63192         * doc/headers/stdint.texi: Update.
63193
63194 2007-06-01  Bruno Haible  <bruno@clisp.org>
63195
63196         * tests/test-binary-io.c (main): Pass a third argument to open().
63197         Reported by Gary V. Vaughan <gary@gnu.org>.
63198
63199 2007-06-01  Bruno Haible  <bruno@clisp.org>
63200
63201         * doc/functions/frexpl.texi: Update for mingw.
63202
63203 2007-06-01  Bruno Haible  <bruno@clisp.org>
63204
63205         * tests/test-lseek.c (main): Disable test of errno for invalid third
63206         argument.
63207         * doc/functions/lseek.texi: Update.
63208         Reported by Gary V. Vaughan <gary@gnu.org>.
63209
63210 2007-05-28  Bruno Haible  <bruno@clisp.org>
63211
63212         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63213
63214 2007-05-31  Eric Blake  <ebb9@byu.net>
63215
63216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63217         cross compiling.
63218
63219 2007-05-30  Eric Blake  <ebb9@byu.net>
63220         and Bruno Haible  <bruno@clisp.org>
63221
63222         Work around mingw test failures exposed by m4-1.4.9b.
63223         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63224         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63225         moment.
63226
63227 2007-05-30  Bruno Haible  <bruno@clisp.org>
63228
63229         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63230         assuming that they are closed. Needed on HP-UX 11.
63231
63232 2007-05-29  Bruno Haible  <bruno@clisp.org>
63233
63234         Fix a problem with #include_next.
63235         * lib/dirent_.h: Split the double-inclusion guard.
63236         * lib/fcntl_.h: Likewise.
63237         * lib/float_.h: Likewise.
63238         * lib/iconv_.h: Likewise.
63239         * lib/inttypes_.h: Likewise.
63240         * lib/locale_.h: Likewise.
63241         * lib/math_.h: Likewise.
63242         * lib/netinet_in_.h: Likewise.
63243         * lib/search_.h: Likewise.
63244         * lib/signal_.h: Likewise.
63245         * lib/stdint_.h: Likewise.
63246         * lib/stdio_.h: Likewise.
63247         * lib/stdlib_.h: Likewise.
63248         * lib/string_.h: Likewise.
63249         * lib/sys_select_.h: Likewise.
63250         * lib/sys_socket_.h: Likewise.
63251         * lib/sys_stat_.h: Likewise.
63252         * lib/sys_time_.h: Likewise.
63253         * lib/sysexits_.h: Likewise.
63254         * lib/time_.h: Likewise.
63255         * lib/unistd_.h: Likewise.
63256         * lib/wchar_.h: Likewise.
63257         * lib/wctype_.h: Likewise.
63258
63259 2007-05-29  Bruno Haible  <bruno@clisp.org>
63260
63261         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63262         for the moment.
63263
63264 2007-05-29  Bruno Haible  <bruno@clisp.org>
63265
63266         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63267         invocation.
63268         Reported by Eric Blake.
63269
63270 2007-05-29  Bruno Haible  <bruno@clisp.org>
63271
63272         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63273         compiling case.
63274
63275 2007-05-29  Eric Blake  <ebb9@byu.net>
63276             Bruno Haible  <bruno@clisp.org>
63277
63278         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63279         cross compiles.
63280
63281 2007-05-28  Eric Blake  <ebb9@byu.net>
63282
63283         * modules/closein-tests (test_closein_LDADD): Support test on
63284         cygwin with libtool.
63285
63286 2007-05-28  Bruno Haible  <bruno@clisp.org>
63287
63288         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63289         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63290         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63291         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63292         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63293         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63294         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63295         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63296         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63297
63298 2007-05-28  Eric Blake  <ebb9@byu.net>
63299
63300         Unconditionally include <config.h> in unit tests.
63301         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63302         * tests/test-allocsa.c, tests/test-arcfour.c,
63303         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63304         tests/test-array_list.c, tests/test-array_oset.c,
63305         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63306         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63307         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63308         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63309         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63310         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63311         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63312         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63313         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63314         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63315         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63316         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63317         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63318         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63319         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63320         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63321         test-md5.c, test-memmem.c, test-printf-posix.c,
63322         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63323         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63324         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63325         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63326         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63327         test-vasnprintf-posix2.c, test-vasnprintf.c,
63328         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63329         test-vfprintf-posix.c, test-vprintf-posix.c,
63330         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63331         test-xvasprintf.c: Likewise.
63332
63333 2007-05-28  Bruno Haible  <bruno@clisp.org>
63334
63335         * gnulib-tool (func_import): Remember the --with-tests command-line
63336         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63337         Reported by Eric Blake.
63338
63339 2007-05-28  Bruno Haible  <bruno@clisp.org>
63340
63341         * modules/ftell-tests: New file.
63342         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63343         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63344
63345         * lib/ftell.c: New file.
63346         * modules/ftell: New file.
63347         * m4/ftell.m4: New file.
63348         * doc/functions/ftell.texi: Update.
63349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63350         REPLACE_FTELL.
63351         * lib/stdio_.h (rpl_ftell): New declaration.
63352         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63353         REPLACE_FTELL.
63354
63355 2007-05-28  Eric Blake  <ebb9@byu.net>
63356
63357         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63358
63359 2007-05-28  Bruno Haible  <bruno@clisp.org>
63360
63361         * modules/fseek-tests: New file.
63362         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63363         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63364
63365         * lib/fseek.c: New file.
63366         * modules/fseek: New file.
63367         * m4/fseek.m4: New file.
63368         * doc/functions/fseek.texi: Update.
63369         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63370         REPLACE_FSEEK.
63371         * lib/stdio_.h (rpl_fseek): New declaration.
63372         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63373         REPLACE_FSEEK.
63374
63375 2007-05-28  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/stdio_.h (fflush): More comments.
63378
63379 2007-05-28  Bruno Haible  <bruno@clisp.org>
63380
63381         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63382         runtime test.
63383
63384 2007-05-28  Eric Blake  <ebb9@byu.net>
63385
63386         Improve lseek module.
63387         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63388         * lib/unistd_.h (lseek): Scale back link warning message.
63389         * tests/test-lseek.c: Beef up test.
63390         * tests/test-lseek.sh: Exercise more facets of lseek.
63391         Reported by Bruno Haible.
63392
63393 2007-05-28  Bruno Haible  <bruno@clisp.org>
63394
63395         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63396         to define.
63397
63398 2007-05-27  Bruno Haible  <bruno@clisp.org>
63399
63400         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63401
63402 2007-05-27  Bruno Haible  <bruno@clisp.org>
63403
63404         * modules/openmp: New file.
63405         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63406         Noah Misch.
63407
63408 2007-05-26  Bruno Haible  <bruno@clisp.org>
63409
63410         * modules/chdir-long (Depends-on): Add fchdir.
63411         * modules/chdir-safer (Depends-on): Likewise.
63412         * modules/fts (Depends-on): Likewise.
63413         * modules/fts-lgpl (Depends-on): Likewise.
63414         * modules/openat (Depends-on): Likewise.
63415         * modules/savewd (Depends-on): Likewise.
63416
63417 2007-05-24  Eric Blake  <ebb9@byu.net>
63418
63419         Fix lseek on mingw.
63420         * modules/lseek: New module.
63421         * m4/lseek.m4: New file.
63422         * lib/lseek.c: New file.
63423         * modules/lseek-tests: New file.
63424         * tests/test-lseek.c: New file.
63425         * tests/test-lseek.sh: New file.
63426         * MODULES.html.sh: Document lseek module.
63427         * modules/fflush (Depends-on): Add lseek, fseeko.
63428         * modules/fseeko (Depends-on): Likewise.
63429         * modules/ftello (Depends-on): Likewise.
63430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63431         broken.
63432         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63433         broken.
63434         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63435         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63436         * lib/ftello.c (rpl_ftello): Likewise.
63437         * tests/test-fseeko.c (main): Test this.
63438         * tests/test-fseeko.sh: Likewise.
63439         * tests/test-ftello.c (main): Likewise.
63440         * tests/test-ftello.sh: Likewise.
63441         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
63442         implies replacing fseek.
63443         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
63444         HAVE_FTELLO.
63445         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
63446         * modules/unistd (Makefile.am): Likewise.
63447         * lib/unistd_.h (lseek): Declare a replacement.
63448         * doc/functions/lseek.texi (lseek): Document this fix.
63449         * doc/functions/fseek.texi (fseek): Likewise.
63450         * doc/functions/ftell.texi (ftell): Likewise.
63451
63452 2007-05-24  Bruno Haible  <bruno@clisp.org>
63453
63454         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
63455         in the printed representation of a NaN.
63456         * tests/test-vasprintf-posix.c (test_function): Likewise.
63457         * tests/test-snprintf-posix.h (test_function): Likewise.
63458         * tests/test-sprintf-posix.h (test_function): Likewise.
63459         Reported by Eric Blake.
63460
63461 2007-05-23  Eric Blake  <ebb9@byu.net>
63462
63463         Fix fseeko/ftello on cygwin 1.5.24.
63464         * doc/functions/fseeko.texi (fseeko): Document the fix.
63465         * doc/functions/ftello.texi (ftello): Document the fix.
63466         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
63467         * doc/functions/stdout.text (stdout): New file.
63468         * doc/functions/stderr.text (stderr): New file.
63469         * doc/gnulib.texi (Function Substitutes): Use new files.
63470         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
63471         prior to 1.7.0.
63472         * tests/test-ftello.c (main): Likewise for ftello.
63473         * tests/test-fseeko.sh: New file.
63474         * tests/test-ftello.sh: New file.
63475         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
63476         with seekable stdin.
63477         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
63478         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
63479         (gl_REPLACE_FSEEKO): New macro.
63480         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
63481         * modules/fseeko (Files): Distribute fseeko.c.
63482         * modules/ftello (Files): Distribute ftello.c.
63483         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
63484         mode.
63485         * lib/ftello.c (rpl_ftello): New file.
63486         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
63487         fseeko, ftello.
63488         (gl_STDIN_LARGE_OFFSET): New macro.
63489         * modules/stdio (Makefile.am): Perform the replacement.
63490         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
63491
63492 2007-05-23  Bruno Haible  <bruno@clisp.org>
63493
63494         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
63495         GNULIB_POSIXCHECK is defined.
63496
63497 2007-05-21  Bruno Haible  <bruno@clisp.org>
63498
63499         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
63500         Check also the output for NaN arguments. When cross-compiling, guess
63501         no on IRIX.
63502         * lib/vasnprintf.c: Update comments.
63503         * tests/test-vasnprintf-posix.c (strisnan): New function.
63504         (test_function): Use it.
63505         * tests/test-vasprintf-posix.c (strisnan): New function.
63506         (test_function): Use it.
63507         * tests/test-snprintf-posix.h (strisnan): New function.
63508         (test_function): Use it.
63509         * tests/test-sprintf-posix.h (strisnan): New function.
63510         (test_function): Use it.
63511         Reported by Eric Blake.
63512
63513 2007-05-20  Bruno Haible  <bruno@clisp.org>
63514
63515         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
63516         numbers that fails on BeOS.
63517         * doc/functions/frexpl.texi: Update.
63518
63519 2007-05-20  Jim Meyering  <jim@meyering.net>
63520
63521         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
63522         forced upon us by glibc-2.6.
63523
63524 2007-05-20  Bruno Haible  <bruno@clisp.org>
63525
63526         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
63527         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
63528         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
63529         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
63530         NEED_PRINTF_INFINITE.
63531         (is_infinitel): New function.
63532         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
63533         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
63534         gl_PREREQ_VASNPRINTF_INFINITE.
63535         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
63536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63537         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
63538         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
63539         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
63540         gl_PREREQ_VASNPRINTF_INFINITE.
63541         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63543         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63544         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63545         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63546         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63547         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63548         * doc/functions/fprintf.texi: Update.
63549         * doc/functions/printf.texi: Update.
63550         * doc/functions/snprintf.texi: Update.
63551         * doc/functions/sprintf.texi: Update.
63552         * doc/functions/vfprintf.texi: Update.
63553         * doc/functions/vprintf.texi: Update.
63554         * doc/functions/vsnprintf.texi: Update.
63555         * doc/functions/vsprintf.texi: Update.
63556
63557 2007-05-20  Bruno Haible  <bruno@clisp.org>
63558
63559         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
63560         was not found in libc.
63561         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
63562
63563 2007-05-20  Bruno Haible  <bruno@clisp.org>
63564
63565         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63566         printed as "-nan" instead of "nan".
63567         * tests/test-vasprintf-posix.c (test_function): Likewise.
63568         * tests/test-snprintf-posix.h (test_function): Likewise.
63569         * tests/test-sprintf-posix.h (test_function): Likewise.
63570         Needed for HP-UX 11.
63571
63572 2007-05-20  Jim Meyering  <jim@meyering.net>
63573
63574         Fix buggy test for the fchownat-deref bug.
63575         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
63576         symlink required for the run-test.  Without it, this test would
63577         always declare that fchownat doesn't work, and client code would
63578         unnecessarily use the replacement function with fixed libc.
63579         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
63580         Reported by Greg Schafer.
63581
63582 2007-05-19  Bruno Haible  <bruno@clisp.org>
63583
63584         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
63585         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
63586         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
63587         Needed for IRIX 6.5 and Solaris 2.5.1.
63588
63589 2007-05-19  Bruno Haible  <bruno@clisp.org>
63590
63591         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
63592         (test_function): Skip tests involving -0.0 on platforms where
63593         -0.0 = 0.0.
63594         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
63595         (test_function): Skip tests involving -0.0 on platforms where
63596         -0.0 = 0.0.
63597         * tests/test-snprintf-posix.h (have_minus_zero): New function.
63598         (test_function): Skip tests involving -0.0 on platforms where
63599         -0.0 = 0.0.
63600         * tests/test-sprintf-posix.h (have_minus_zero): New function.
63601         (test_function): Skip tests involving -0.0 on platforms where
63602         -0.0 = 0.0.
63603         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
63604         tests.
63605         * tests/test-printf-posix.h (test_function): Likewise.
63606         * tests/test-printf-posix.output: Remove all -0.0 related results.
63607         Needed for IRIX 6.5.
63608
63609 2007-05-19  Bruno Haible  <bruno@clisp.org>
63610
63611         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
63612         printed as "nan0x7fffffff" instead of "nan".
63613         * tests/test-vasprintf-posix.c (test_function): Likewise.
63614         * tests/test-snprintf-posix.h (test_function): Likewise.
63615         * tests/test-sprintf-posix.h (test_function): Likewise.
63616         * tests/test-fprintf-posix.h (NaN): Remove macro.
63617         (test_function): Remove all NaN related tests.
63618         * tests/test-printf-posix.h (NaN): Remove macro.
63619         (test_function): Remove all NaN related tests.
63620         * tests/test-printf-posix.output: Remove all NaN related results.
63621         Needed for IRIX 6.5.
63622
63623 2007-05-19  Bruno Haible  <bruno@clisp.org>
63624
63625         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
63626         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63627
63628 2007-05-19  Bruno Haible  <bruno@clisp.org>
63629
63630         * lib/float_.h: New file.
63631         * m4/float_h.m4: New file.
63632         * modules/float: New file.
63633         * modules/isnanl (Dependencies): Add float.
63634         * modules/isnanl-nolibm (Dependencies): Likewise.
63635         * modules/mathl (Dependencies): Likewise.
63636         * modules/printf-frexpl (Dependencies): Likewise.
63637         * modules/signbit (Dependencies): Likewise.
63638         * modules/vasnprintf (Dependencies): Likewise.
63639         * doc/headers/float.texi: Update.
63640
63641 2007-05-19  Jim Meyering  <jim@meyering.net>
63642
63643         * lib/utimens.c (gl_futimens): Rename from futimens,
63644         now that glibc-2.6 declares futimens.
63645         * lib/utimens.h: Likewise.
63646
63647 2007-05-19  Bruno Haible  <bruno@clisp.org>
63648
63649         Avoid test failures on mingw.
63650         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
63651         * tests/test-printf-posix.sh: Likewise.
63652         * tests/test-vfprintf-posix.sh: Likewise.
63653         * tests/test-vprintf-posix.sh: Likewise.
63654
63655 2007-05-19  Bruno Haible  <bruno@clisp.org>
63656
63657         Fix *printf result for NaN, Inf, -0.0 on mingw.
63658         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
63659         * lib/vasnprintf.c: Include math.h and isnan.h.
63660         (is_infinite_or_zero): New function.
63661         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
63662         values in the %f, %F, %e, %E, %g, %G directives.
63663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
63664         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63665         gl_PRINTF_INFINITE and test its result. Invoke
63666         gl_PREREQ_VASNPRINTF_INFINITE.
63667         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63668         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63670         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63671         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63672         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63673         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63674         * doc/functions/fprintf.texi: Update.
63675         * doc/functions/printf.texi: Update.
63676         * doc/functions/snprintf.texi: Update.
63677         * doc/functions/sprintf.texi: Update.
63678         * doc/functions/vfprintf.texi: Update.
63679         * doc/functions/vprintf.texi: Update.
63680         * doc/functions/vsnprintf.texi: Update.
63681         * doc/functions/vsprintf.texi: Update.
63682
63683 2007-05-19  Bruno Haible  <bruno@clisp.org>
63684
63685         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
63686         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
63687         Instead of multiplying with 10^k, set extra_zeroes to k.
63688         (scale10_round_long_double): Remove function.
63689
63690 2007-05-18  Bruno Haible  <bruno@clisp.org>
63691
63692         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
63693         introduced on 2007-05-06.
63694
63695 2007-05-18  Bruno Haible  <bruno@clisp.org>
63696
63697         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
63698         %g directives.
63699         * tests/test-vasprintf-posix.c (test_function): Likewise.
63700         * tests/test-snprintf-posix.h (test_function): Likewise.
63701         * tests/test-sprintf-posix.h (test_function): Likewise.
63702
63703 2007-05-18  Bruno Haible  <bruno@clisp.org>
63704
63705         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
63706         (strmatch): New function.
63707         (test_function): Test the %f directive on numbers of various exponents.
63708         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
63709         (strmatch): New function.
63710         (test_function): Test the %f directive on numbers of various exponents.
63711         * tests/test-snprintf-posix.h (strmatch): New function.
63712         (test_function): Test the %f directive on numbers of various exponents.
63713         * tests/test-sprintf-posix.h (strmatch): New function.
63714         (test_function): Test the %f directive on numbers of various exponents.
63715         * tests/test-snprintf-posix.c (SIZEOF): New macro.
63716         * tests/test-sprintf-posix.c (SIZEOF): New macro.
63717         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
63718         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
63719
63720 2007-05-18  Bruno Haible  <bruno@clisp.org>
63721
63722         Add support for 'long double' number output.
63723         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
63724         * lib/vasnprintf.c: Include math.h and float+.h.
63725         (mp_limb_t): New type.
63726         (GMP_LIMB_BITS): New macro.
63727         (mp_twolimb_t): New type.
63728         (GMP_TWOLIMB_BITS): New macro.
63729         (mpn_t): New type.
63730         (multiply, divide, convert_to_decimal, decode_long_double,
63731         scale10_round_long_double, scale10_round_decimal_long_double,
63732         floorlog10l): New functions.
63733         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
63734         for the %f, %F, %e, %E, %g, %G directives.
63735         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
63736         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63737         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
63738         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
63739         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63740         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63741         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63742         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63743         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63744         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63745         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63746         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
63747         * modules/snprintf-posix (Depends-on): Likewise.
63748         * modules/sprintf-posix (Depends-on): Likewise.
63749         * modules/vasnprintf-posix (Depends-on): Likewise.
63750         * modules/vasprintf-posix (Depends-on): Likewise.
63751         * modules/vfprintf-posix (Depends-on): Likewise.
63752         * modules/vsnprintf-posix (Depends-on): Likewise.
63753         * modules/vsprintf-posix (Depends-on): Likewise.
63754         * modules/vasnprintf (Files): Add lib/float+.h.
63755         * doc/functions/fprintf.texi: Update.
63756         * doc/functions/printf.texi: Update.
63757         * doc/functions/snprintf.texi: Update.
63758         * doc/functions/sprintf.texi: Update.
63759         * doc/functions/vfprintf.texi: Update.
63760         * doc/functions/vprintf.texi: Update.
63761         * doc/functions/vsnprintf.texi: Update.
63762         * doc/functions/vsprintf.texi: Update.
63763
63764 2007-05-18  Bruno Haible  <bruno@clisp.org>
63765
63766         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
63767
63768 2007-05-18  Bruno Haible  <bruno@clisp.org>
63769
63770         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
63771         for printing 64-bit integers. Needed for mingw.
63772
63773 2007-05-18  Bruno Haible  <bruno@clisp.org>
63774
63775         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
63776         gl_FUNC_FREXPL_WORKS.
63777         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
63778
63779 2007-05-18  Bruno Haible  <bruno@clisp.org>
63780
63781         * modules/frexpl-nolibm-tests: New file.
63782
63783         * modules/frexpl-nolibm: New file.
63784         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
63785
63786 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63787
63788         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
63789         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63790         GCC 4.2, which otherwise issues a lot of warnings.
63791         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
63792         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
63793         Likewise.
63794         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
63795         * modules/iconv_open (iconv.h): Likewise.
63796         * modules/locale (locale.h): Likewise.
63797         * modules/netinet_in (netinet/in.h): Likewise.
63798         * modules/sys_select (sys_select.h): Likewise.
63799         * modules/sys_socket (sys/socket.h): Likewise.
63800         * modules/sys_stat (sys/stat.h): Likewise.
63801         * modules/sysexits (sysexits.h): Likewise.
63802         * modules/unistd (unistd.h): Likewise.
63803
63804 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63805
63806         * modules/closein-tests (Makefile.am): Distribute
63807         `test-closein.sh'.
63808
63809 2007-05-17  Bruno Haible  <bruno@clisp.org>
63810
63811         * tests/test-printf-posix.output: Renamed from
63812         tests/test-fprintf-posix.out.
63813         * modules/fprintf-posix-tests: Update.
63814         * modules/printf-posix-tests: Update.
63815         * modules/vfprintf-posix-tests: Update.
63816         * modules/vprintf-posix-tests: Update.
63817         * tests/test-fprintf-posix.sh: Update.
63818         * tests/test-printf-posix.sh: Update.
63819         * tests/test-vfprintf-posix.sh: Update.
63820         * tests/test-vprintf-posix.sh: Update.
63821         Reported by Ralf Wildenhues.
63822
63823 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63824
63825         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
63826         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
63827         GCC 4.2, which otherwise issues a lot of warnings.
63828         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
63829         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
63830         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
63831         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
63832         it should no longer be needed.
63833         * lib/string_.h: Likewise.
63834         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
63835         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
63836         * modules/inttypes (inttypes.h): Likewise.
63837         * modules/math (math.h): Likewise.
63838         * modules/search (search.h): Likewise.
63839         * modules/signal (signal.h): Likewise.
63840         * modules/stdint (stdint.h): Likewise.
63841         * modules/stdio (stdio.h): Likewise.
63842         * modules/stdlib (stdlib.h): Likewise.
63843         * modules/string (string.h): Likewise.
63844         * modules/sys_time (sys/time.h): Likewise.
63845         * modules/time (time.h): Likewise.
63846         * modules/wchar (wchar.h): Likewise.
63847         * modules/wctype (wtype.h): Likewise.
63848
63849 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63850
63851         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
63852
63853 2007-05-13  Bruno Haible  <bruno@clisp.org>
63854
63855         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
63856         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63857         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
63858         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
63859         (gl_PREREQ_STRTOK_R): Don't require it here.
63860
63861 2007-05-13  Bruno Haible  <bruno@clisp.org>
63862
63863         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
63864         when used in C++ mode.
63865
63866 2007-05-12  Bruno Haible  <bruno@clisp.org>
63867
63868         * lib/linebuffer.h: Tweak doc.
63869         * lib/linebuffer.c: Likewise.
63870
63871 2007-05-12  James Youngman  <jay@gnu.org>
63872
63873         * lib/linebuffer.c (readlinebuffer_delim): New function,
63874         like readlinebuffer, but use a caller-specified delimiter.
63875         (readlinebuffer): Just call readlinebuffer_delim with '\n'
63876         as the delimiter.
63877         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
63878
63879 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
63880
63881         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
63882         * modules/openat (Files): Remove openat-die.c.
63883         (Depends-on): Add openat-die.
63884         * modules/openat-die: New module.
63885
63886 2007-05-06  Bruno Haible  <bruno@clisp.org>
63887
63888         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
63889         Update with info about Cygwin.
63890         * doc/functions/fprintf.texi: Update.
63891         * doc/functions/printf.texi: Update.
63892         * doc/functions/snprintf.texi: Update.
63893         * doc/functions/sprintf.texi: Update.
63894         * doc/functions/vfprintf.texi: Update.
63895         * doc/functions/vprintf.texi: Update.
63896         * doc/functions/vsnprintf.texi: Update.
63897         * doc/functions/vsprintf.texi: Update.
63898         Reported by Eric Blake.
63899
63900 2007-05-06  Bruno Haible  <bruno@clisp.org>
63901
63902         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
63903         padding ourselves for the floating-point directives.
63904         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
63905         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
63906         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63907         gl_PRINTF_FLAG_ZERO and test its result. Invoke
63908         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
63909         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63910         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63911         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63912         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63913         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63914         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63915         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63916         * tests/test-snprintf-posix.h (test_function): Also check the width
63917         and some flags in the %f directive.
63918         * tests/test-sprintf-posix.h (test_function): Likewise.
63919         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63920         * tests/test-vasprintf-posix.c (test_function): Likewise.
63921         * doc/functions/fprintf.texi: Update.
63922         * doc/functions/printf.texi: Update.
63923         * doc/functions/snprintf.texi: Update.
63924         * doc/functions/sprintf.texi: Update.
63925         * doc/functions/vfprintf.texi: Update.
63926         * doc/functions/vprintf.texi: Update.
63927         * doc/functions/vsnprintf.texi: Update.
63928         * doc/functions/vsprintf.texi: Update.
63929
63930 2007-05-06  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
63933         pass the ' flag character to sprintf or snprintf.
63934         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
63935         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
63936         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
63937         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
63938         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
63939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63940         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63941         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63942         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63943         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63944         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63945         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63946         * tests/test-snprintf-posix.h (test_function): Also check the grouping
63947         flag.
63948         * tests/test-sprintf-posix.h (test_function): Likewise.
63949         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63950         * tests/test-vasprintf-posix.c (test_function): Likewise.
63951         * doc/functions/fprintf.texi: Update.
63952         * doc/functions/printf.texi: Update.
63953         * doc/functions/snprintf.texi: Update.
63954         * doc/functions/sprintf.texi: Update.
63955         * doc/functions/vfprintf.texi: Update.
63956         * doc/functions/vprintf.texi: Update.
63957         * doc/functions/vsnprintf.texi: Update.
63958         * doc/functions/vsprintf.texi: Update.
63959
63960 2007-05-01  Bruno Haible  <bruno@clisp.org>
63961
63962         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
63963
63964 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
63965
63966         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
63967         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
63968
63969 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
63970
63971         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
63972         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
63973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
63974
63975 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
63976
63977         * lib/argp-help.c (struct hol_entry): New member `ord'.
63978         (HOL_ENTRY_PTRCMP): Use ord for comparison
63979         (hol_sort): Initialize ord.
63980
63981 2007-05-01  Bruno Haible  <bruno@clisp.org>
63982
63983         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
63984         Reported by Eric Blake.
63985         * doc/gnulib.texi (Function Substitutes): Update.
63986
63987 2007-05-01  Bruno Haible  <bruno@clisp.org>
63988
63989         * doc/functions.texi: Remove file, now redundant through
63990         doc/functions/*.texi.
63991
63992 2007-05-01  Bruno Haible  <bruno@clisp.org>
63993
63994         * modules/argp (Depends-on): Add sleep.
63995
63996 2007-05-01  Bruno Haible  <bruno@clisp.org>
63997
63998         * modules/sleep-tests: New file.
63999         * tests/test-sleep.c: New file.
64000
64001         * modules/sleep: New file.
64002         * lib/sleep.c: New file.
64003         * m4/sleep.m4: New file.
64004         * lib/unistd_.h (sleep): New declaration.
64005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64006         HAVE_SLEEP.
64007         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64008         * doc/functions/sleep.texi: Document the sleep module.
64009
64010 2007-05-01  Bruno Haible  <bruno@clisp.org>
64011
64012         * lib/sigprocmask.h: Remove file.
64013         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64014         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64015         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64016         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64017         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64018         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64019         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64020         HAVE_SIGSET_T as a shell variable.
64021         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64022         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64023         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64024         (Depends-on): Add signal. Remove verify.
64025         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64026         (Include): Mention <signal.h> instead of sigprocmask.h.
64027         * NEWS: Mention the change.
64028         * lib/fatal-signal.c: Don't include sigprocmask.h.
64029
64030 2007-05-01  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/signal: New file.
64033         * lib/signal_.h: New file.
64034         * m4/signal_h.m4: New file.
64035
64036 2007-05-01  Bruno Haible  <bruno@clisp.org>
64037
64038         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64039         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64040         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64041         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64042
64043 2007-05-01  Bruno Haible  <bruno@clisp.org>
64044
64045         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64046         configure time.
64047         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64048         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64049         * modules/sys_stat (Makefile.am): Substitute their values into
64050         sys/stat.h.
64051
64052 2007-05-01  Bruno Haible  <bruno@clisp.org>
64053
64054         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64055         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64056         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64057
64058 2007-05-01  Bruno Haible  <bruno@clisp.org>
64059
64060         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64061         'assert' module here.
64062
64063 2007-05-01  Bruno Haible  <bruno@clisp.org>
64064
64065         * doc/functions/*.texi: New files.
64066         * doc/functions/google-ranking.txt: New file.
64067         * doc/gnulib.texi (Function Substitutes): New chapter.
64068         (ctime, inet_ntoa): Remove sections.
64069         * doc/ctime.texi: Remove file.
64070         * doc/inet_ntoa.texi: Remove file.
64071         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64072         dependencies.
64073         (%.info): New rule, specifying a --reference-limit.
64074
64075 2007-05-01  Bruno Haible  <bruno@clisp.org>
64076
64077         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64078
64079 2007-05-01  Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64082         the portability of 'mkdir' to mingw systems.
64083
64084 2007-05-01  Bruno Haible  <bruno@clisp.org>
64085
64086         * doc/headers/google-ranking.txt: New file.
64087
64088 2007-04-30  Eric Blake  <ebb9@byu.net>
64089
64090         Prefer fseeko to fseek.
64091         * modules/getpass (Depends-on): Add fseeko.
64092         * lib/getpass.c (getpass): Use fseeko, not fseek.
64093
64094 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64095
64096         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64097         assumes the sorting is stable, while most qsort implementations
64098         are not.  Use argument addresses to ensure they never compare as
64099         equal.
64100
64101         * tests/test-argp-2.sh (usage-indent test): Fix output
64102         (func_compare): Restore diff options
64103         * tests/test-argp.c: Restore #include "progname.h"
64104
64105 2007-04-29  Bruno Haible  <bruno@clisp.org>
64106
64107         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64108         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64109         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64111         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64112         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64113         (TESTS, check_PROGRAMS): Add test-snprintf.
64114         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64115         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64116         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64117         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64118         assertions that fail on HP-UX, OSF/1, or IRIX.
64119         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64120
64121 2007-04-29  Bruno Haible  <bruno@clisp.org>
64122
64123         * MODULES.html.sh (posix_functions): Remove 'contents'.
64124
64125 2007-04-29  Karl Berry  <karl@gnu.org>
64126
64127         * config/srclist.txt (gendocs_template_min): new entry.
64128
64129 2007-04-29  Bruno Haible  <bruno@clisp.org>
64130
64131         Work around fpurge bug on BSD systems.
64132         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64133         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64134         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64135         fpurge to rpl_fpurge if the system already has this function.
64136         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64137         the case where the system already has this function. Correct invariants
64138         on BSD systems.
64139         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64140         BSD systems.
64141
64142 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64143
64144         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64145         proposed by Sven Verdoolaege.
64146
64147         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64148         options.
64149         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64150         (usage and help tests): Update
64151
64152 2007-04-29  Bruno Haible  <bruno@clisp.org>
64153
64154         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64155         Print more information in case of failure. Disable a test on BeOS.
64156
64157 2007-04-29  Bruno Haible  <bruno@clisp.org>
64158
64159         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64160         This helps debugging on systems on which no gdb is available.
64161
64162 2007-04-29  Bruno Haible  <bruno@clisp.org>
64163
64164         * lib/freading.h: Improve comments.
64165         * lib/fwriting.h: Likewise.
64166         * tests/test-freading.c (main): Don't check freading immediately after
64167         repositioning. Needed for glibc.
64168
64169 2007-04-29  Bruno Haible  <bruno@clisp.org>
64170
64171         * lib/freading.c (freading): Trivial simplification.
64172
64173 2007-04-28  Bruno Haible  <bruno@clisp.org>
64174
64175         * tests/test-fwriting.c (main): Also test the interaction between
64176         fflush and fwriting.
64177         * modules/fwriting-tests (Depends-on): Add fflush.
64178
64179         * tests/test-freading.c (main): Also test the interaction between
64180         fflush and freading.
64181         * modules/freading-tests (Depends-on): Add fflush.
64182
64183 2007-04-28  Bruno Haible  <bruno@clisp.org>
64184
64185         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64186         fseeko and ftello.
64187         Suggested by Eric Blake.
64188
64189 2007-04-28  Jim Meyering  <jim@meyering.net>
64190
64191         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64192         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64193         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64194
64195 2007-04-27  Eric Blake  <ebb9@byu.net>
64196
64197         * doc/headers/assert.texi (assert.h): Document assert module use.
64198
64199 2007-04-27  Bruno Haible  <bruno@clisp.org>
64200
64201         * doc/headers/*.texi: New files.
64202         * doc/gnulib.texi (Header File Substitutes): New chapter.
64203         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64204         dependencies.
64205         (standards.info ,standards.html, standards.dvi): Update dependencies.
64206         (mostlyclean, clean): New targets.
64207
64208 2007-04-27  Bruno Haible  <bruno@clisp.org>
64209
64210         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64211         * modules/sysexits (Files, Makefile.am): Update.
64212
64213         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64214         * modules/sys_socket (Files, Makefile.am): Update.
64215
64216         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64217         * modules/sys_stat (Files, Makefile.am): Update.
64218
64219 2007-04-27  Eric Blake  <ebb9@byu.net>
64220
64221         * lib/freading.h: Improve comments.
64222         * lib/fwriting.h: Likewise.
64223         * lib/fflush.c: Likewise.
64224
64225         Fix closein for mingw.
64226         * modules/closein-tests: Add tests for closein.
64227         * tests/test-closein.c: New file.
64228         * tests/test-closein.sh: Likewise.
64229         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64230         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64231
64232 2007-04-27  Bruno Haible  <bruno@clisp.org>
64233
64234         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64235         version is < 6.
64236         * lib/math_.h [__DECC]: Likewise.
64237         * lib/stdio_.h [__DECC]: Likewise.
64238         * lib/stdlib_.h [__DECC]: Likewise.
64239         * lib/string_.h [__DECC]: Likewise.
64240         * lib/time_.h [__DECC]: Likewise.
64241         * lib/wchar_.h [__DECC]: Likewise.
64242         * lib/wctype_.h [__DECC]: Likewise.
64243
64244 2007-04-27  Bruno Haible  <bruno@clisp.org>
64245
64246         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64247
64248 2007-04-27  Bruno Haible  <bruno@clisp.org>
64249
64250         * lib/fflush.c: Add comments.
64251         * modules/fpurge-tests (Depends-on): Add fflush.
64252         * modules/freadable-tests (Depends-on): Likewise.
64253         * modules/fwritable-tests (Depends-on): Likewise.
64254
64255 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64256
64257         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64258         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64259         Report by Bruno Haible <bruno@clisp.org>.
64260
64261 2007-04-26  Eric Blake  <ebb9@byu.net>
64262
64263         Fix fflush on mingw.
64264         * modules/fflush (Depends-on): Add freading.
64265         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64266         but unread data.
64267
64268 2007-04-26  Eric Blake  <ebb9@byu.net>
64269         and Bruno Haible  <bruno@clisp.org>
64270
64271         Implement freading and fwriting.
64272         * lib/freading.c: New file.
64273         * lib/freading.h: Likewise.
64274         * m4/freading.m4: Likewise.
64275         * modules/freading: Likewise.
64276         * modules/freading-tests: Likewise.
64277         * tests/test-freading.c: Likewise.
64278         * lib/fwriting.c: New file.
64279         * lib/fwriting.h: Likewise.
64280         * m4/fwriting.m4: Likewise.
64281         * modules/fwriting: Likewise.
64282         * modules/fwriting-tests: Likewise.
64283         * tests/test-fwriting.c: Likewise.
64284         * MODULES.html.sh (File stream based Input/Output): Mention them.
64285
64286 2007-04-26  Bruno Haible  <bruno@clisp.org>
64287
64288         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64289         'long' when we assume it.
64290         Suggested by Eric Blake.
64291
64292 2007-04-26  Bruno Haible  <bruno@clisp.org>
64293
64294         Ensure fseeko, ftello are declared on glibc systems.
64295         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64296         * modules/fseeko (configure.ac-early): Likewise.
64297         * modules/ftello (configure.ac-early): Likewise.
64298         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64299         AC_FUNC_FSEEKO for this.
64300         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64301         (gl_CHECK_FSEEKO): Remove macro.
64302
64303 2007-04-26  Bruno Haible  <bruno@clisp.org>
64304
64305         * tests/test-fflush.c (main): Also check the ftell result after
64306         fflush and fseek/fseeko.
64307         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64308         file descriptor position cache in the stream.
64309         * lib/fseeko.c (rpl_fseeko): Likewise.
64310
64311 2007-04-26  Bruno Haible  <bruno@clisp.org>
64312
64313         * modules/fflush-tests (Depends-on): Add fseeko.
64314
64315 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64316             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64317
64318         * lib/argz_.h: ensure error_t definition is obtained in same
64319         mechanism system argz.h would have.
64320         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64321         argz facilities are known bad.  Err on the side of caution if
64322         cross-compiling.
64323
64324 2007-04-25  Eric Blake  <ebb9@byu.net>
64325
64326         * lib/fpurge.c (includes): Use stdlib.h for free.
64327         * tests/test-fflush.c (main): Also test fflush-fseeko.
64328
64329 2007-04-25  Bruno Haible  <bruno@clisp.org>
64330
64331         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64332         * lib/fseeko.c: New file.
64333         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64334         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64335         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64336         gl_FUNC_FSEEKO.
64337         (gl_FUNC_FSEEKO): Invoke it.
64338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64339         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64340         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64341
64342 2007-04-25  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/fflush (Depends-on): Add ftello.
64345
64346 2007-04-25  Bruno Haible  <bruno@clisp.org>
64347
64348         * modules/ftello-tests: New file.
64349         * tests/test-ftello.c: New file.
64350
64351         * modules/ftello: New file.
64352         * m4/ftello.m4: New file.
64353         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64354         HAVE_FTELLO.
64355         * lib/stdio_.h (ftello): New declaration.
64356         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64357         HAVE_FTELLO.
64358
64359 2007-04-25  Bruno Haible  <bruno@clisp.org>
64360
64361         * modules/fseeko-tests: New file.
64362         * tests/test-fseeko.c: New file.
64363
64364         * modules/fseeko: New file.
64365         * m4/fseeko.m4: New file.
64366         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64367         HAVE_FSEEKO.
64368         * lib/stdio_.h (fseeko): New declaration.
64369         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64370         HAVE_FSEEKO.
64371
64372 2007-04-25  Bruno Haible  <bruno@clisp.org>
64373
64374         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64375
64376 2007-04-25  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64379         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64380         * tests/test-unistd.c: Likewise.
64381         * tests/test-fcntl.c: Likewise.
64382
64383 2007-04-23  Eric Blake  <ebb9@byu.net>
64384
64385         * lib/fflush.c: Fix missing include.
64386         Reported by Bruno Haible.
64387
64388 2007-04-23  Bruno Haible  <bruno@clisp.org>
64389
64390         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64391         Reported by Eric Blake.
64392
64393 2007-04-23  Bruno Haible  <bruno@clisp.org>
64394
64395         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64396
64397 2007-04-23  Bruno Haible  <bruno@clisp.org>
64398
64399         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64400
64401 2007-04-23  Bruno Haible  <bruno@clisp.org>
64402
64403         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64404         Needed on HP-UX 11.
64405
64406 2007-04-16  Eric Blake  <ebb9@byu.net>
64407
64408         Make fflush rely on fpurge.
64409         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64410         open coding all variants.
64411         * modules/fflush (Depends-on): Add fpurge and unistd.
64412         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64413         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64414
64415         Fix --with-tests compilation on cygwin.
64416         * modules/argmatch-tests (Makefile.am): List gnulib library first
64417         in LDADD.
64418         * modules/argp-tests (Makefile.am): Likewise.
64419         * modules/array-list-tests (Makefile.am): Likewise.
64420         * modules/array-oset-tests (Makefile.am): Likewise.
64421         * modules/avltree-list-tests (Makefile.am): Likewise.
64422         * modules/avltree-oset-tests (Makefile.am): Likewise.
64423         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64424         * modules/carray-list-tests (Makefile.am): Likewise.
64425         * modules/dirname-tests (Makefile.am): Likewise.
64426         * modules/frexp-tests (Makefile.am): Likewise.
64427         * modules/isnanl-tests (Makefile.am): Likewise.
64428         * modules/linked-list-tests (Makefile.am): Likewise.
64429         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64430         * modules/lock-tests (Makefile.am): Likewise.
64431         * modules/rbtree-list-tests (Makefile.am): Likewise.
64432         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64433         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64434         * modules/tls-tests (Makefile.am): Likewise.
64435         * modules/tsearch-tests (Makefile.am): Likewise.
64436         * modules/xvasprintf-tests (Makefile.am): Likewise.
64437
64438         Fix fpurge for cygwin.
64439         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
64440         value.
64441         * modules/fpurge-tests (Depends-on): Clean up trash.
64442
64443 2007-04-16  Simon Josefsson  <simon@josefsson.org>
64444
64445         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
64446
64447         * m4/autobuild.m4: Re-indent.
64448
64449 2007-04-13  Bruno Haible  <bruno@clisp.org>
64450
64451         * modules/fpurge-tests: New file.
64452         * tests/test-fpurge.c: New file.
64453
64454         * modules/fpurge: New file.
64455         * lib/fpurge.h: New file.
64456         * lib/fpurge.c: New file.
64457         * m4/fpurge.m4: New file.
64458
64459 2007-04-13  Bruno Haible  <bruno@clisp.org>
64460
64461         * modules/fbufmode-tests: New file.
64462         * tests/test-fbufmode.c: New file.
64463
64464         * modules/fbufmode: New file.
64465         * lib/fbufmode.h: New file.
64466         * lib/fbufmode.c: New file.
64467         * m4/fbufmode.m4: New file.
64468
64469 2007-04-13  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/fwritable-tests: New file.
64472         * tests/test-fwritable.c: New file.
64473
64474         * modules/fwritable: New file.
64475         * lib/fwritable.h: New file.
64476         * lib/fwritable.c: New file.
64477         * m4/fwritable.m4: New file.
64478
64479 2007-04-13  Bruno Haible  <bruno@clisp.org>
64480
64481         * modules/freadable-tests: New file.
64482         * tests/test-freadable.c: New file.
64483
64484         * modules/freadable: New file.
64485         * lib/freadable.h: New file.
64486         * lib/freadable.c: New file.
64487         * m4/freadable.m4: New file.
64488
64489 2007-04-13  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
64492         MOSTLYCLEANFILES.
64493
64494 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
64495
64496         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
64497         gzip bootstrap.conf to avoid dragging in i18n machinery.
64498         (gnulib_tool_option): Use it.
64499
64500 2007-04-13  Bruno Haible  <bruno@clisp.org>
64501
64502         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
64503         %F directives.
64504         * tests/test-vasprintf-posix.c (test_function): Likewise.
64505         * tests/test-snprintf-posix.h (test_function): Likewise.
64506         * tests/test-sprintf-posix.h (test_function): Likewise.
64507         * tests/test-fprintf-posix.h (test_function): Likewise.
64508         * tests/test-printf-posix.h (test_function): Likewise.
64509         * tests/test-fprintf-posix.out: Likewise.
64510
64511 2007-04-13  Bruno Haible  <bruno@clisp.org>
64512
64513         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
64514         * modules/tls-tests (configure.ac): Likewise.
64515         Reported by Arto C. Nirkko <anirkko@insel.ch>.
64516
64517 2007-04-13  Bruno Haible  <bruno@clisp.org>
64518
64519         * lib/tls.c (glthread_tls_get): Fix return type.
64520         Patch by Arto C. Nirkko <anirkko@insel.ch>.
64521
64522 2007-04-12  Eric Blake  <ebb9@byu.net>
64523
64524         * modules/gettime (Depends-on): Remove gettime.
64525         Reported by Dmitry V. Levin.
64526
64527 2007-04-12  Bruno Haible  <bruno@clisp.org>
64528
64529         * modules/fflush (Include): Mention <stdio.h>.
64530         * modules/strtoimax (Include): Mention <inttypes.h>.
64531         * modules/strtoumax (Include): Likewise.
64532
64533 2007-04-12  Eric Blake  <ebb9@byu.net>
64534
64535         * .cvsignore: New file.
64536         * .gitignore: Likewise.
64537
64538 2007-04-12  Bruno Haible  <bruno@clisp.org>
64539
64540         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
64541         not before, since $(LDADD) often contains libgnu.a.
64542         * modules/striconv-tests (test_striconv_LDADD): Likewise.
64543         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
64544         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
64545         Needed on Cygwin.
64546
64547 2007-04-12  Eric Blake  <ebb9@byu.net>
64548
64549         Work around glibc's failure to flush stdin on fclose.
64550         * lib/closein.c (close_stdin): Flush stdin before closing.
64551
64552         Work around glibc's failure to reset seekable stdin on exit.
64553         * modules/closein: New module.
64554         * lib/closein.c: New file.
64555         * lib/closein.h: Likewise.
64556         * m4/closein.m4: Likewise.
64557         * MODULES.html.sh (File stream based Input/Output): Document it.
64558
64559 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64560
64561         * gnulib-tool: Rename generated 'autobuild' script to
64562         'do-autobuild' in --create-megatestdir output.
64563
64564         * doc/gnulib.texi (Build robot for gnulib): Fix.
64565
64566 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64567
64568         * modules/sysexits (Depends-on): Add absolute-header.
64569
64570 2007-04-12  Eric Blake  <ebb9@byu.net>
64571
64572         No need to preserve errno on success.
64573         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
64574         Reported by Bruno Haible.
64575
64576 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64577
64578         * MODULES.html.sh (Support for maintaining and releasing
64579         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
64580
64581 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64582
64583         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
64584
64585 2007-04-12  Simon Josefsson  <simon@josefsson.org>
64586
64587         * modules/autobuild: New module.
64588
64589         * m4/autobuild.m4: New file.
64590
64591 2007-04-11  Bruno Haible  <bruno@clisp.org>
64592
64593         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
64594         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
64595         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
64596         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
64597         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64598         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64599         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64600         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64601         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64602         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64603         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
64604         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64605         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64606         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
64607         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64608         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64609         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
64610         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64611         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64612         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
64613         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64614         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64615         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
64616         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64617         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64618         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
64619         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
64620         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
64621         Reported by Eric Blake.
64622
64623 2007-04-11  Bruno Haible  <bruno@clisp.org>
64624
64625         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
64626
64627 2007-04-10  Bruno Haible  <bruno@clisp.org>
64628
64629         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
64630         for NaN and Infinity. Needed on FreeBSD 6.1.
64631         * tests/test-vasnprintf-posix.c (test_function): Undo last change
64632         regarding results for "%010a" of Infinity and NaN.
64633         * tests/test-vasprintf-posix.c (test_function): Likewise.
64634         * tests/test-snprintf-posix.h (test_function): Likewise.
64635         * tests/test-sprintf-posix.h (test_function): Likewise.
64636         * tests/test-fprintf-posix.h (test_function): Likewise.
64637         * tests/test-printf-posix.h (test_function): Likewise.
64638         * tests/test-fprintf-posix.out: Likewise.
64639
64640 2007-04-10  Bruno Haible  <bruno@clisp.org>
64641
64642         * modules/locale-tests: New file.
64643         * tests/test-locale.c: New file.
64644
64645         * modules/locale: New file.
64646         * lib/locale_.h: New file.
64647         * m4/locale_h.m4: New file.
64648
64649 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
64650             Bruno Haible  <bruno@clisp.org>
64651
64652         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
64653         be determined, test for availability of the copysignf, copysign,
64654         copysignl functions.
64655         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
64656         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
64657         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
64658
64659 2007-04-09  Eric Blake  <ebb9@byu.net>
64660
64661         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
64662         * modules/stdio (Makefile.am): Support fflush.
64663         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
64664         * modules/fflush: New file.
64665         * lib/fflush.c: Likewise.
64666         * m4/fflush.m4: Likewise.
64667         * modules/fflush-tests: New test.
64668         * tests/test-fflush.c: Likewise.
64669         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
64670
64671 2007-04-06  Bruno Haible  <bruno@clisp.org>
64672
64673         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
64674         (VASNPRINTF): Use signbit for faster determination whether to print a
64675         minus sign.
64676         * modules/vasnprintf (Files): Remove lib/float+.h.
64677         * modules/fprintf-posix (Depends-on): Add signbit.
64678         * modules/snprintf-posix (Depends-on): Likewise.
64679         * modules/sprintf-posix (Depends-on): Likewise.
64680         * modules/vasnprintf-posix (Depends-on): Likewise.
64681         * modules/vasprintf-posix (Depends-on): Likewise.
64682         * modules/vfprintf-posix (Depends-on): Likewise.
64683         * modules/vsnprintf-posix (Depends-on): Likewise.
64684         * modules/vsprintf-posix (Depends-on): Likewise.
64685
64686 2007-04-06  Bruno Haible  <bruno@clisp.org>
64687
64688         * tests/test-frexp.c (main): Test also the sign bit of zero results.
64689         * tests/test-frexpl.c (main): Likewise.
64690         * tests/test-ldexpl.c (main): Likewise.
64691         * modules/frexp-tests (Depends-on): Add signbit.
64692         * modules/frexpl-tests (Depdends-on): Likewise.
64693         * modules/ldexpl-tests (Depdends-on): Likewise.
64694
64695 2007-04-06  Bruno Haible  <bruno@clisp.org>
64696
64697         * modules/signbit-tests: New file.
64698         * tests/test-signbit.c: New file.
64699
64700         * modules/signbit: New file.
64701         * lib/signbitf.c: New file.
64702         * lib/signbitd.c: New file.
64703         * lib/signbitl.c: New file.
64704         * m4/signbit.m4: New file.
64705         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
64706         (signbit): New macro.
64707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
64708         REPLACE_SIGNBIT.
64709         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
64710         REPLACE_FREXPL into math.h.
64711
64712 2007-04-06  Bruno Haible  <bruno@clisp.org>
64713
64714         * modules/isnanf-nolibm-tests: New file.
64715         * tests/test-isnanf.c: New file.
64716
64717         * modules/isnanf-nolibm: New file.
64718         * lib/isnanf.h: New file.
64719         * lib/isnanf.c: New file.
64720         * lib/isnan.c: Consider the USE_FLOAT macro.
64721         * m4/isnanf.m4: New file.
64722
64723 2007-04-06  Bruno Haible  <bruno@clisp.org>
64724
64725         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
64726         (Link): New section.
64727
64728         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
64729
64730 2007-04-06  Bruno Haible  <bruno@clisp.org>
64731
64732         Assume the 'long double' type.
64733         * m4/longdouble.m4: Remove file.
64734         * config/srclist.txt: Don't mention longdouble.m4.
64735         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
64736         * lib/float+.h: Likewise.
64737         * lib/frexp.c: Likewise.
64738         * lib/printf-args.h: Likewise.
64739         * lib/printf-args.c: Likewise.
64740         * lib/printf-frexp.c: Likewise.
64741         * lib/printf-parse.c: Likewise.
64742         * lib/vasnprintf.c: Likewise.
64743         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
64744         * m4/intl.m4: Likewise.
64745         * m4/isnanl.m4: Likewise.
64746         * m4/printf.m4: Likewise.
64747         * m4/printf-frexpl.m4: Likewise.
64748         * m4/vasnprintf.m4: Likewise.
64749         * modules/allocsa (Files): Remove m4/longdouble.m4.
64750         * modules/gettext (Files): Likewise.
64751         * modules/relocatable-prog-wrapper (Files): Likewise.
64752         * modules/vasnprintf (Files): Likewise.
64753         * modules/isnanl (Files): Likewise.
64754         (Include): Simplify.
64755         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
64756         (Include): Simplify.
64757         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
64758         (Include): Simplify.
64759         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
64760         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64761         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
64762         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64763         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64764         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64765         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
64766         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64767         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
64768         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64769         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
64770         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
64771         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
64772         * tests/test-isnanl.c: Likewise.
64773         * tests/test-snprintf-posix.h: Likewise.
64774         * tests/test-sprintf-posix.h: Likewise.
64775         * tests/test-vasnprintf-posix.c: Likewise.
64776         * tests/test-vasnprintf-posix2.c: Likewise.
64777         * tests/test-vasprintf-posix.c: Likewise.
64778
64779 2007-04-06  Bruno Haible  <bruno@clisp.org>
64780
64781         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
64782         * lib/math_.h [__DECC]: Include the overridden include file through
64783         #include_next, outside the double-inclusion guard.
64784         * lib/stdio_.h [__DECC]: Likewise.
64785         * lib/stdlib_.h [__DECC]: Likewise.
64786         * lib/string_.h [__DECC]: Likewise.
64787         * lib/time_.h [__DECC]: Likewise.
64788         * lib/wchar_.h [__DECC]: Likewise.
64789         * lib/wctype_.h [__DECC]: Likewise.
64790         * lib/inttypes_.h [__DECC]: Likewise.
64791         Reported by Albert Chin <china@thewrittenword.com> in
64792         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
64793
64794 2007-04-04  Eric Blake  <ebb9@byu.net>
64795
64796         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
64797         1.5.x.
64798
64799 2007-04-04  Bruno Haible  <bruno@clisp.org>
64800
64801         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
64802         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
64803
64804 2007-04-04  Bruno Haible  <bruno@clisp.org>
64805
64806         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
64807         results for "%010a" of Infinity and NaN.
64808         * tests/test-vasprintf-posix.c (test_function): Likewise.
64809         * tests/test-snprintf-posix.h (test_function): Likewise.
64810         * tests/test-sprintf-posix.h (test_function): Likewise.
64811         * tests/test-fprintf-posix.h (test_function): Remove these tests.
64812         * tests/test-printf-posix.h (test_function): Likewise.
64813         * tests/test-fprintf-posix.out: Update.
64814         Needed for FreeBSD 6.1.
64815
64816 2007-04-04  Bruno Haible  <bruno@clisp.org>
64817
64818         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
64819         directly used by the gnulib modules nor by gnulib-tool.
64820
64821 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * DEPENDENCIES: Give overall description of version dependency
64824         desirability.  Use more-typical names for apps.
64825         Add shell, coreutils, diffutils, grep, tar, gzip.
64826
64827 2007-04-04  Simon Josefsson  <simon@josefsson.org>
64828
64829         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
64830
64831 2007-04-04  Karl Berry  <karl@gnu.org>
64832
64833         * MODULES.html.sh (func_module): missing '.
64834
64835 2007-04-03  Bruno Haible  <bruno@clisp.org>
64836
64837         * modules/argmatch-tests (Makefile.am): New variable
64838         test_argmatch_LDADD.
64839         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
64840         * modules/array-list-tests (Makefile.am): New variable
64841         test_array_list_LDADD.
64842         * modules/array-oset-tests (Makefile.am): New variable
64843         test_array_oset_LDADD.
64844         * modules/avltree-list-tests (Makefile.am): New variable
64845         test_avltree_list_LDADD.
64846         * modules/avltree-oset-tests (Makefile.am): New variable
64847         test_avltree_oset_LDADD.
64848         * modules/avltreehash-list-tests (Makefile.am): New variable
64849         test_avltreehash_list_LDADD.
64850         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
64851         test_canonicalize_lgpl_LDADD.
64852         * modules/carray-list-tests (Makefile.am): New variable
64853         test_carray_list_LDADD.
64854         * modules/dirname-tests (Makefile.am): New variable
64855         test_dirname_LDADD.
64856         * modules/linked-list-tests (Makefile.am): New variable
64857         test_linked_list_LDADD.
64858         * modules/linkedhash-list-tests (Makefile.am): New variable
64859         test_linkedhash_list_LDADD.
64860         * modules/rbtree-list-tests (Makefile.am): New variable
64861         test_rbtree_list_LDADD.
64862         * modules/rbtree-oset-tests (Makefile.am): New variable
64863         test_rbtree_oset_LDADD.
64864         * modules/rbtreehash-list-tests (Makefile.am): New variable
64865         test_rbtreehash_list_LDADD.
64866         * modules/xvasprintf-tests (Makefile.am): New variable
64867         test_xvasprintf_LDADD.
64868         Reported by Eric Blake.
64869
64870 2007-04-03  Eric Blake  <ebb9@byu.net>
64871
64872         * DEPENDENCIES: Weaken m4 requirements.
64873
64874 2007-04-03  Bruno Haible  <bruno@clisp.org>
64875
64876         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
64877         * modules/isnanl-tests (configure.ac): Likewise.
64878
64879 2007-04-03  Ben Pfaff  <blp@gnu.org>
64880
64881         * modules/iconv_open: Add $(srcdir)/ to source directory
64882         references in Makefile fragments that call gperf, to fix VPATH
64883         builds.
64884
64885 2007-04-03  Bruno Haible  <bruno@clisp.org>
64886
64887         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
64888         * lib/ldexpl.c: Undo last change.
64889
64890 2007-04-03  Bruno Haible  <bruno@clisp.org>
64891
64892         * modules/printf-frexpl (Depends-on): Undo last change.
64893         (Files): Add m4/ldexpl.m4.
64894
64895 2007-04-03  Bruno Haible  <bruno@clisp.org>
64896
64897         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
64898         * modules/isnanl (Link): New section.
64899
64900         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
64901         * modules/frexp (Link): New section.
64902
64903         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
64904         * modules/frexpl (Link): New section.
64905
64906         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
64907         * modules/ldexpl (Link): New section.
64908
64909 2007-04-03  Bruno Haible  <bruno@clisp.org>
64910
64911         * modules/TEMPLATE-EXTENDED: New file.
64912         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
64913
64914 2007-04-03  Bruno Haible  <bruno@clisp.org>
64915
64916         * DEPENDENCIES: New file.
64917         Suggested by Simon Josefsson.
64918
64919 2007-04-03  Bruno Haible  <bruno@clisp.org>
64920
64921         * doc/gnulib.texi: Escape @.
64922
64923 2007-04-03  James Youngman  <jay@gnu.org>
64924         and Paul Eggert  <eggert@cs.ucla.edu>
64925
64926         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
64927         birthtime on all systems that have birthtime, not just those which
64928         use st_birthtimensec rather than st_birthtim.  Putting zero in
64929         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
64930         that the birth time is not available for files on an NFS mount.
64931
64932 2007-04-03  Simon Josefsson  <simon@josefsson.org>
64933
64934         * modules/memxor: Move back from crypto/, suggested by Bruno.
64935         * modules/crypto/hmac-sha1: Fix memxor dependency.
64936
64937         * modules/crypto/gc: Moved from ../.
64938
64939 2007-04-02  Eric Blake  <ebb9@byu.net>
64940
64941         * lib/ldexpl.c (includes): Avoid libm.
64942
64943         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
64944
64945 2007-04-02  Bruno Haible  <bruno@clisp.org>
64946
64947         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
64948         on IRIX.
64949
64950 2007-04-02  Bruno Haible  <bruno@clisp.org>
64951
64952         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
64953         x86 or x86_64 platforms running MacOS X.
64954         Reported by Ryan Schmidt <@ryandesign.com>.
64955
64956 2007-04-02  Bruno Haible  <bruno@clisp.org>
64957
64958         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
64959         i386.
64960
64961 2007-04-01  Simon Josefsson  <simon@josefsson.org>
64962
64963         * modules/crypto/arcfour: Moved from ../.
64964         * modules/crypto/arcfour-tests: Moved from ../.
64965         * modules/crypto/arctwo: Moved from ../.
64966         * modules/crypto/arctwo-tests: Moved from ../.
64967         * modules/crypto/des: Moved from ../.
64968         * modules/crypto/des-tests: Moved from ../.
64969         * modules/crypto/gc-arcfour: Moved from ../.
64970         * modules/crypto/gc-arcfour-tests: Moved from ../.
64971         * modules/crypto/gc-arctwo: Moved from ../.
64972         * modules/crypto/gc-arctwo-tests: Moved from ../.
64973         * modules/crypto/gc-des: Moved from ../.
64974         * modules/crypto/gc-des-tests: Moved from ../.
64975         * modules/crypto/gc-hmac-md5: Moved from ../.
64976         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
64977         * modules/crypto/gc-hmac-sha1: Moved from ../.
64978         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
64979         * modules/crypto/gc-md2: Moved from ../.
64980         * modules/crypto/gc-md2-tests: Moved from ../.
64981         * modules/crypto/gc-md4: Moved from ../.
64982         * modules/crypto/gc-md4-tests: Moved from ../.
64983         * modules/crypto/gc-md5: Moved from ../.
64984         * modules/crypto/gc-md5-tests: Moved from ../.
64985         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
64986         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
64987         * modules/crypto/gc-random: Moved from ../.
64988         * modules/crypto/gc-rijndael: Moved from ../.
64989         * modules/crypto/gc-rijndael-tests: Moved from ../.
64990         * modules/crypto/gc-sha1: Moved from ../.
64991         * modules/crypto/gc-sha1-tests: Moved from ../.
64992         * modules/crypto/gc-tests: Moved from ../.
64993         * modules/crypto/hmac-md5: Moved from ../.
64994         * modules/crypto/hmac-md5-tests: Moved from ../.
64995         * modules/crypto/hmac-sha1: Moved from ../.
64996         * modules/crypto/hmac-sha1-tests: Moved from ../.
64997         * modules/crypto/md2: Moved from ../.
64998         * modules/crypto/md2-tests: Moved from ../.
64999         * modules/crypto/md4: Moved from ../.
65000         * modules/crypto/md4-tests: Moved from ../.
65001         * modules/crypto/md5: Moved from ../.
65002         * modules/crypto/md5-tests: Moved from ../.
65003         * modules/crypto/memxor: Moved from ../.
65004         * modules/crypto/rijndael: Moved from ../.
65005         * modules/crypto/rijndael-tests: Moved from ../.
65006         * modules/crypto/sha1: Moved from ../.
65007
65008 2007-03-30  James Youngman  <jay@gnu.org>
65009
65010         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65011         rename() to change the ctime of a file (because ctime is unaffected
65012         by rename on jfs2 on AIX 5.1).
65013         (main): Start by doing cleanup, in case a previous run failed leaving
65014         test files behind.
65015
65016 2007-03-31  Bruno Haible  <bruno@clisp.org>
65017
65018         Support old proprietary implementations of iconv.
65019         * modules/iconv_open: New file.
65020         * lib/iconv_.h: New file.
65021         * m4/iconv_h.m4: New file.
65022         * lib/iconv_open.c: New file.
65023         * lib/iconv_open-aix.gperf: New file.
65024         * lib/iconv_open-hpux.gperf: New file.
65025         * lib/iconv_open-irix.gperf: New file.
65026         * lib/iconv_open-osf.gperf: New file.
65027         * m4/iconv_open.m4: New file.
65028         * modules/linebreak (Depends-on): Add iconv_open.
65029         * modules/striconv (Depends-on): Likewise.
65030         * modules/striconveh (Depends-on): Likewise.
65031         * modules/unicodeio (Depends-on): Likewise.
65032         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65033         (iconv_t)(-1).
65034         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65035         conversion if cd is (iconv_t)(-1).
65036         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65037         is not possible.
65038
65039 2007-03-31  Bruno Haible  <bruno@clisp.org>
65040
65041         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65042         work on Solaris either. Protect also second use of "autodetect_jp".
65043
65044 2007-03-31  Bruno Haible  <bruno@clisp.org>
65045
65046         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65047         the function is not present.
65048
65049 2007-03-31  Bruno Haible  <bruno@clisp.org>
65050
65051         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65052         the function is not present.
65053
65054 2007-03-31  Bruno Haible  <bruno@clisp.org>
65055
65056         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65057         a bug in HP-UX iconv_open().
65058
65059 2007-03-31  Bruno Haible  <bruno@clisp.org>
65060
65061         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65062         (Mathematics <math.h>): New section, add fpieee.
65063         (Input/output <stdio.h>): Add fseterr.
65064         (Mathematics <math.h>): New section, add printf-frexp.
65065         (Container data structures): Add sublist.
65066         (Core language properties): Add fpucw, inline.
65067         (Functions for greatest-width integer types <inttypes.h>): Add
65068         imaxabs, imaxdiv, inttypes.
65069         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65070         isnanl-nolibm, ldexp.
65071         (Mathematics <math.h>): New section, add printf-frexpl.
65072         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65073         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65074         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65075         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65076         (Unicode string functions): Add unistr/u*-mbtoucr.
65077         (Java): Add javacomp-script, javaexec-script.
65078         (C#): Add csharpcomp-script, csharpexec-script.
65079         (Support for building libraries and executables): Add havelib,
65080         relocatable-*.
65081         (Support for maintaining and releasing projects): Renamed from
65082         'Support for maintaining and release projects'. Add announce-gen.
65083
65084 2007-03-31  Bruno Haible  <bruno@clisp.org>
65085
65086         * README: Talk primarily about git.
65087         (git and CVS): Renamed from CVS.
65088         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65089         gnulib is available through git.
65090         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65091
65092 2007-03-30  Bruno Haible  <bruno@clisp.org>
65093
65094         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65095         * lib/poll_.h: Likewise.
65096         * lib/stat_.h: Likewise.
65097         * lib/sys_time_.h: Likewise.
65098         * lib/sysexit_.h: Likewise.
65099         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65100         * lib/stdbool_.h: Likewise.
65101         * lib/byteswap_.h: Add double-inclusion guard.
65102
65103 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65104
65105         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65106
65107 2007-03-30  Karl Berry  <karl@gnu.org>
65108
65109         * config/srclist-update: double space after USA in the license
65110         substitution, since that's how it's usually (?) written.
65111
65112 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65113
65114         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65115         reported by Bruno Haible.
65116
65117 2007-03-29  Bruno Haible  <bruno@clisp.org>
65118
65119         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65120         a bug in AIX iconv().
65121
65122 2007-03-29  Bruno Haible  <bruno@clisp.org>
65123
65124         * modules/ldexpl-tests: New file.
65125         * tests/test-ldexpl.c: New file.
65126
65127 2007-03-29  Bruno Haible  <bruno@clisp.org>
65128
65129         * lib/ldexpl.c: Include fpucw.h.
65130         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65131         multiplication.
65132         * modules/ldexpl (Depends-on): Add fpucw.
65133
65134 2007-03-29  Bruno Haible  <bruno@clisp.org>
65135
65136         * modules/ldexpl: New file.
65137         * m4/ldexpl.m4: New file.
65138         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65139         set.
65140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65141         REPLACE_LDEXPL.
65142         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65143         REPLACE_LDEXPL.
65144         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65145         gl_FUNC_LDEXPL_WORKS.
65146         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65147         * modules/mathl (Files): Remove lib/ldexpl.c.
65148         (Depends-on): Add ldexpl.
65149
65150 2007-03-29  Bruno Haible  <bruno@clisp.org>
65151
65152         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65153
65154 2007-03-29  Bruno Haible  <bruno@clisp.org>
65155
65156         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65157         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65158         and possibly also HP-UX.
65159         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65160         work on AIX, IRIX, HP-UX, OSF/1.
65161         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65162         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65163         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65164         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65165         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65166         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65167
65168 2007-03-29  Bruno Haible  <bruno@clisp.org>
65169
65170         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65171
65172 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65173
65174         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65175         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65176
65177 2007-03-29  Eric Blake  <ebb9@byu.net>
65178
65179         * lib/acl-internal.h: Remove redundant include.
65180         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65181         Cygwin when a file is locked.
65182
65183 2007-03-29  Bruno Haible  <bruno@clisp.org>
65184
65185         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65186         file.
65187         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65188
65189 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65190
65191         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65192         try to remove a parent directory if the child couldn't be removed
65193         (except for the first rmdir, which could fail because the child
65194         doesn't exist).  Problem reported by Jeff Blaine in
65195         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65196
65197 2007-03-28  Bruno Haible  <bruno@clisp.org>
65198
65199         * lib/striconveh.c (utf8conv_carefully): New function.
65200         (mem_cd_iconveh_internal): Invoke it.
65201
65202 2007-03-28  Bruno Haible  <bruno@clisp.org>
65203
65204         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65205         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65206         input.
65207         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65208         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65209         unistr/u8-uctomb.
65210
65211 2007-03-28  Bruno Haible  <bruno@clisp.org>
65212
65213         * modules/unistr/u8-mbtoucr: New file.
65214         * lib/unistr/u8-mbtoucr.c: New file.
65215         * modules/unistr/u16-mbtoucr: New file.
65216         * lib/unistr/u16-mbtoucr.c: New file.
65217         * modules/unistr/u16-mbtoucr: New file.
65218         * lib/unistr/u16-mbtoucr.c: New file.
65219         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65220
65221 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65222             Bruno Haible  <bruno@clisp.org>
65223
65224         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65225         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65226         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65227
65228         * m4/stdio_h.m4: Add stubs for vasprintf too.
65229
65230         * modules/stdio: Support vasprintf in sed command.
65231
65232         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65233         vasprintf.h.  Add stdio module indicator.
65234
65235         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65236         vasprintf.h.
65237
65238         * lib/vasprintf.h: File removed.
65239
65240         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65241         * lib/vasprintf.c: Ditto.
65242         * lib/xvasprintf.c: Ditto.
65243         * tests/test-vasprintf-posix.c: Ditto.
65244         * tests/test-vasprintf.c: Ditto.
65245
65246 2007-03-27  Bruno Haible  <bruno@clisp.org>
65247
65248         Make vasnprintf multithread-safe.
65249         * lib/vasnprintf.c (decimal_point_char): New function.
65250         (VASNPRINTF): Use it.
65251         Suggested by Simon Josefsson.
65252
65253 2007-03-27  Eric Blake  <ebb9@byu.net>
65254
65255         Support sub-second birthtime on cygwin.
65256         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65257         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65258         (get_stat_birthtime): Also work with st_birthtim.
65259
65260 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65261
65262         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65263         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65264         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65265         (get_stat_birthtime_ns): Simplify compile-time tests.
65266         (get_stat_birthtime): Change the API to look like
65267         get_stat_mtime etc., except return a negative tv_nsec on error.
65268         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65269         Don't check for "spare" fields.
65270         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65271         or for struct stat.st_birthtime, as these tests aren't used.
65272         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65273
65274 2007-03-27  Bruno Haible  <bruno@clisp.org>
65275
65276         * lib/stat-time.h: Include <sys/stat.h>.
65277
65278 2007-03-27  James Youngman  <jay@gnu.org>
65279
65280         * lib/stat-time.h (get_stat_birthtime): New function for
65281           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65282         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65283           and its variants.
65284         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65285         * modules/stat-time-test: New file.
65286         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65287
65288 2007-03-26  Bruno Haible  <bruno@clisp.org>
65289
65290         Better support of signalling NaNs.
65291         * lib/atanl.c: Include isnanl.h.
65292         (atanl): Perform test for NaN at the beginning of the function and
65293         through a call to isnanl.
65294         * lib/cosl.c: Include isnanl.h.
65295         (cosl): Perform test for NaN at the beginning of the function and
65296         through a call to isnanl.
65297         * lib/ldexpl.c: Include isnanl.h.
65298         (ldexpl): Perform test for NaN through a call to isnanl.
65299         * lib/logl.c: Include isnanl.h.
65300         (logl): Perform test for NaN at the beginning of the function and
65301         through a call to isnanl.
65302         * lib/sinl.c: Include isnanl.h.
65303         (sinl): Perform test for NaN at the beginning of the function and
65304         through a call to isnanl.
65305         * lib/sqrtl.c: Include isnanl.h.
65306         (sqrtl): Perform test for NaN at the beginning of the function and
65307         through a call to isnanl.
65308         * lib/tanl.c: Include isnanl.h.
65309         (tanl): Perform test for NaN at the beginning of the function and
65310         through a call to isnanl.
65311         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65312         * modules/mathl (Depends-on): Add isnanl.
65313
65314 2007-03-26  Eric Blake  <ebb9@byu.net>
65315
65316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65317         regression in logic sense of previous patch.
65318
65319 2007-03-26  Bruno Haible  <bruno@clisp.org>
65320
65321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65322         unportable shell command "if ! ...".
65323         Reported by Ralf Wildenhues.
65324
65325 2007-03-25  Bruno Haible  <bruno@clisp.org>
65326
65327         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65328         <sysexits.h> file, and only add EX_CONFIG.
65329         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65330         absolute file name and whether it is sufficient. Substitute also
65331         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65332         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65333         ABSOLUTE_SYSEXITS_H into sysexits.h.
65334
65335 2007-03-25  Bruno Haible  <bruno@clisp.org>
65336
65337         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65338         hints is NULL.
65339
65340 2007-03-25  Bruno Haible  <bruno@clisp.org>
65341
65342         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65343         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65344
65345 2007-03-25  Bruno Haible  <bruno@clisp.org>
65346
65347         * lib/vasnprintf.c: Include langinfo.h.
65348         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65349         multithread-safe.
65350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65351         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65353         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65354         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65355         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65356         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65359         Reported by Simon Josefsson.
65360
65361 2007-03-25  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65364         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65365         * modules/vasnprintf (Depends-on): Add stdint.
65366
65367 2007-03-25  Bruno Haible  <bruno@clisp.org>
65368
65369         * modules/fpieee: New file.
65370         * m4/fpieee.m4: New file.
65371         * modules/isnan-nolibm (Depends-on): Add fpieee.
65372         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65373         * modules/isnanl (Depends-on): Add fpieee.
65374
65375 2007-03-25  Bruno Haible  <bruno@clisp.org>
65376
65377         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65378
65379 2007-03-25  Bruno Haible  <bruno@clisp.org>
65380
65381         Avoid test failures on IRIX 6.5.
65382         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65383         (main): Use it.
65384         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65385         macros.
65386         (main): Use them.
65387
65388 2007-03-25  Bruno Haible  <bruno@clisp.org>
65389
65390         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65391         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65392         exists but doesn't work.
65393         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65394         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65396         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65397         math.h.
65398
65399 2007-03-25  Bruno Haible  <bruno@clisp.org>
65400
65401         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65402         returns inf. Needed on IRIX 6.5.
65403
65404 2007-03-25  Bruno Haible  <bruno@clisp.org>
65405
65406         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65407         (main): Use isnanl instead of x != x idiom.
65408         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65409
65410         * tests/test-frexp.c: Include isnan.h.
65411         (main): Use isnan instead of x != x idiom.
65412         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65413
65414 2007-03-25  Bruno Haible  <bruno@clisp.org>
65415
65416         * tests/test-frexp.c (NaN): New function/macro.
65417         (main): Use it instead of 0.0 / 0.0.
65418         * tests/test-isnan.c (NaN): New function/macro.
65419         (main): Use it instead of 0.0 / 0.0.
65420         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65421         (test_function): Use it instead of 0.0 / 0.0.
65422         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65423         (test_function): Use it instead of 0.0 / 0.0.
65424         * tests/test-snprintf-posix.h (NaN): New function/macro.
65425         (test_function): Use it instead of 0.0 / 0.0.
65426         * tests/test-sprintf-posix.h (NaN): New function/macro.
65427         (test_function): Use it instead of 0.0 / 0.0.
65428         * tests/test-fprintf-posix.h (NaN): New function/macro.
65429         (test_function): Use it instead of 0.0 / 0.0.
65430         * tests/test-printf-posix.h (NaN): New function/macro.
65431         (test_function): Use it instead of 0.0 / 0.0.
65432
65433         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65434
65435 2007-03-25  Bruno Haible  <bruno@clisp.org>
65436
65437         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
65438
65439 2007-03-25  Bruno Haible  <bruno@clisp.org>
65440
65441         * lib/regexec.c (merge_state_with_log): Make static.
65442
65443 2007-03-25  Bruno Haible  <bruno@clisp.org>
65444
65445         * lib/trigl.c (kernel_rem_pio2): Make static.
65446
65447 2007-03-25  Bruno Haible  <bruno@clisp.org>
65448
65449         * lib/sincosl.c (sincosl_table): Make static.
65450
65451 2007-03-25  Bruno Haible  <bruno@clisp.org>
65452
65453         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
65454         if the compiler does not support C99.
65455
65456 2007-03-25  Bruno Haible  <bruno@clisp.org>
65457
65458         * modules/time (Makefile.am): Ensure all rule action lines start with a
65459         tab.
65460
65461 2007-03-24  Bruno Haible  <bruno@clisp.org>
65462
65463         * modules/tsearch-tests: New file.
65464         * tests/test-tsearch.sh: New file.
65465         * tests/test-tsearch.c: New file, mostly copied from glibc.
65466
65467         * modules/search-tests: New file.
65468         * tests/test-search.c: New file.
65469
65470         * modules/search: New file.
65471         * lib/search_.h: New file, incorporating lib/tsearch.h.
65472         * m4/search_h.m4: New file.
65473         * lib/tsearch.h: Remove file.
65474         * lib/tsearch.c: Include search.h instead of tsearch.h.
65475         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
65476         HAVE_TSEARCH.
65477         * modules/tsearch (Files): Remove lib/tsearch.h.
65478         (Depends-on): Add search.
65479         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
65480         (Include): Change tsearch.h into search.h.
65481
65482 2007-03-24  Bruno Haible  <bruno@clisp.org>
65483
65484         * modules/fpucw: New file.
65485         * lib/fpucw.h: New file.
65486         * lib/frexp.c: Include fpucw.h.
65487         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65488         (FUNC): Use them.
65489         * lib/printf-frexp.c: Include fpucw.h.
65490         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
65491         (FUNC): Use them.
65492         * lib/vasnprintf.c: Include fpucw.h.
65493         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
65494         'long double' calculations.
65495         * tests/test-frexpl.c: Include fpucw.h.
65496         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65497         * tests/test-printf-frexpl.c: Include fpucw.h.
65498         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
65499         * modules/frexpl (Depends-on): Add fpucw.
65500         * modules/printf-frexpl (Depends-on): Likewise.
65501         * modules/fprintf-posix (Depends-on): Likewise.
65502         * modules/snprintf-posix (Depends-on): Likewise.
65503         * modules/sprintf-posix (Depends-on): Likewise.
65504         * modules/vasnprintf-posix (Depends-on): Likewise.
65505         * modules/vasprintf-posix (Depends-on): Likewise.
65506         * modules/vfprintf-posix (Depends-on): Likewise.
65507         * modules/vsnprintf-posix (Depends-on): Likewise.
65508         * modules/vsprintf-posix (Depends-on): Likewise.
65509         * modules/frexpl-tests (Depends-on): Likewise.
65510         * modules/printf-frexpl-tests (Depends-on): Likewise.
65511
65512 2007-03-24  Bruno Haible  <bruno@clisp.org>
65513
65514         * lib/float+.h: New file.
65515         * lib/isnan.c: Include float+.h.
65516         (SIZE): New macro.
65517         (FUNC): Compare only SIZE bytes of the value.
65518         * lib/vasnprintf.c: Include float+.h.
65519         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
65520         SIZEOF_LDBL or SIZEOF_DBL bytes.
65521         * modules/isnan-nolibm (Files): Add lib/float+.h.
65522         * modules/isnanl-nolibm (Files): Add lib/float+.h.
65523         * modules/isnanl (Files): Add lib/float+.h.
65524         * modules/vasnprintf (Files): Add lib/float+.h.
65525
65526 2007-03-24  Bruno Haible  <bruno@clisp.org>
65527
65528         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
65529         include isnanl-nolibm.h.
65530
65531 2007-03-24  Bruno Haible  <bruno@clisp.org>
65532
65533         * tests/test-read-file.c (main): Don't produce spurious output for
65534         expected situations. Make the test fail if it encountered unexpected
65535         results.
65536
65537 2007-03-24  Bruno Haible  <bruno@clisp.org>
65538
65539         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
65540         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
65541
65542 2007-03-24  Bruno Haible  <bruno@clisp.org>
65543
65544         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
65545
65546 2007-03-24  Bruno Haible  <bruno@clisp.org>
65547
65548         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
65549         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
65550
65551         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
65552         * modules/utf8-ucs4: Turn into a symbolic link to module
65553         unistr/u8-mbtouc.
65554
65555         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
65556         utf8-ucs4-unsafe.
65557         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
65558         unistr/u8-mbtouc-unsafe.
65559
65560         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
65561         * modules/utf16-ucs4: Turn into a symbolic link to module
65562         unistr/u16-mbtouc.
65563
65564         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
65565         utf16-ucs4-unsafe.
65566         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
65567         unistr/u16-mbtouc-unsafe.
65568
65569         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
65570         * modules/ucs4-utf8: Turn into a symbolic link to module
65571         unistr/u8-ubtomb.
65572
65573         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
65574         * modules/ucs4-utf16: Turn into a symbolic link to module
65575         unistr/u16-ubtomb.
65576
65577 2007-03-24  Bruno Haible  <bruno@clisp.org>
65578
65579         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
65580         Enable the function only if HAVE_INLINE.
65581         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
65582         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65583         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
65584         Enable the function only if HAVE_INLINE.
65585         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
65586         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
65587         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
65588         Enable the function only if HAVE_INLINE.
65589         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
65590         Enable the function only if HAVE_INLINE.
65591         * modules/utf8-ucs4: Update.
65592         * modules/utf8-ucs4-unsafe: Update.
65593         * modules/utf16-ucs4: Update.
65594         * modules/utf16-ucs4-unsafe: Update.
65595         * modules/ucs4-utf8: Update.
65596         * modules/ucs4-utf16: Update.
65597
65598 2007-03-24  Bruno Haible  <bruno@clisp.org>
65599
65600         * lib/utf8-ucs4.h: Remove file.
65601         * lib/utf8-ucs4-unsafe.h: Remove file.
65602         * lib/utf16-ucs4.h: Remove file.
65603         * lib/utf16-ucs4-unsafe.h: Remove file.
65604         * lib/ucs4-utf8.h: Remove file.
65605         * lib/ucs4-utf16.h: Remove file.
65606         * lib/unistr.h: Include their previous contents.
65607         * m4/utf-ucs4.m4: Remove file.
65608         * m4/ucs4-utf.m4: Remove file.
65609         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
65610         (Depends-on): Add unistr/base.
65611         (configure.ac): Remove gl_UTF_UCS4.
65612         (Makefile.am): Update.
65613         (Include): Change to unistr.h.
65614         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
65615         (Depends-on): Add unistr/base.
65616         (configure.ac): Remove gl_UTF_UCS4.
65617         (Makefile.am): Update.
65618         (Include): Change to unistr.h.
65619         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
65620         (Depends-on): Add unistr/base.
65621         (configure.ac): Remove gl_UTF_UCS4.
65622         (Makefile.am): Update.
65623         (Include): Change to unistr.h.
65624         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
65625         (Depends-on): Add unistr/base.
65626         (configure.ac): Remove gl_UTF_UCS4.
65627         (Makefile.am): Update.
65628         (Include): Change to unistr.h.
65629         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
65630         (Depends-on): Add unistr/base.
65631         (configure.ac): Remove gl_UCS4_UTF.
65632         (Makefile.am): Update.
65633         (Include): Change to unistr.h.
65634         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
65635         (Depends-on): Add unistr/base.
65636         (configure.ac): Remove gl_UCS4_UTF.
65637         (Makefile.am): Update.
65638         (Include): Change to unistr.h.
65639         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
65640         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
65641         utf8-ucs4-unsafe.h.
65642         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
65643         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
65644         utf16-ucs4-unsafe.h.
65645         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
65646         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
65647         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
65648         * lib/unistr/u8-strchr.c: Likewise.
65649         * lib/unistr/u8-strrchr.c: Likewise.
65650         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
65651         * lib/unistr/u16-strchr.c: Likewise.
65652         * lib/unistr/u16-strrchr.c: Likewise.
65653         * lib/striconveh.c: Update.
65654         * lib/linebreak.c: Update.
65655
65656 2007-03-24  Bruno Haible  <bruno@clisp.org>
65657
65658         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
65659         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
65660
65661 2007-03-22  Bruno Haible  <bruno@clisp.org>
65662
65663         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
65664
65665 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
65666
65667         * MODULES.html.sh (File system functions): New module write-any-file.
65668         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
65669         * m4/write-any-file.m4: New files.
65670
65671 2007-03-23  Eric Blake  <ebb9@byu.net>
65672
65673         * gnulib-tool: Rearrange space-tab sequences, since some editors
65674         like to eat them.
65675
65676 2007-03-23  Eric Blake  <ebb9@byu.net>
65677
65678         * lib/version-etc.c (version_etc_va): Update license wording to
65679         be more concise.  Recommended by Richard Stallman.
65680
65681 2007-03-22  Bruno Haible  <bruno@clisp.org>
65682
65683         * lib/poll.c (MSG_PEEK): New fallback definition.
65684
65685 2007-03-22  Bruno Haible  <bruno@clisp.org>
65686
65687         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
65688         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
65689         (main): Update.
65690         Fixes a compilation error on BeOS.
65691
65692 2007-03-22  Bruno Haible  <bruno@clisp.org>
65693
65694         * modules/frexpl-tests: New file.
65695         * tests/test-frexpl.c: New file.
65696
65697         * modules/frexpl: New file.
65698         * m4/frexpl.m4: New file.
65699         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
65700         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
65701         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
65702         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
65703         (Depends-on): Add frexpl. Remove isnanl-nolibm.
65704         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
65705
65706 2007-03-22  Bruno Haible  <bruno@clisp.org>
65707
65708         * lib/frexpl.c: Share code with lib/frexp.c.
65709         * modules/mathl (Files): Add lib/frexp.c.
65710         (Depends-on): Add isnanl-nolibm.
65711
65712 2007-03-22  Bruno Haible  <bruno@clisp.org>
65713
65714         * modules/printf-frexp (Files): Add m4/frexp.m4.
65715         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
65716         only if the found frexp function actually works.
65717
65718 2007-03-22  Bruno Haible  <bruno@clisp.org>
65719
65720         * lib/frexp.c: Remove older implementation that uses divisions.
65721
65722 2007-03-21  Bruno Haible  <bruno@clisp.org>
65723
65724         * modules/frexp-tests: New file.
65725         * tests/test-frexp.c: New file.
65726
65727         * modules/frexp: New file.
65728         * lib/frexp.c: New file.
65729         * m4/frexp.m4: New file.
65730         * lib/math_.h (frexp): New declaration.
65731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
65732         REPLACE_FREXP.
65733         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
65734
65735 2007-03-21  Bruno Haible  <bruno@clisp.org>
65736
65737         * modules/isnanl-tests: New file.
65738         * tests/test-isnanl.c: New file.
65739
65740         * modules/isnanl: New file.
65741         * lib/isnanl.h: New file.
65742         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
65743         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
65744         gl_FUNC_ISNANL_WORKS.
65745         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
65746         New macros.
65747
65748 2007-03-21  Bruno Haible  <bruno@clisp.org>
65749
65750         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
65751         lib/isnanl.h.
65752         (Include): Update.
65753         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
65754         * lib/vasnprintf.c: Update.
65755         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
65756         tests/test-isnanl.h, remove tests/test-isnanl.c.
65757         (Makefile.am): Update.
65758         * tests/test-isnanl-nolibm.c: New file.
65759         * tests/test-isnanl.h: New file.
65760         * tests/test-isnanl.c: Remove file.
65761
65762 2007-03-21  Jim Meyering  <jim@meyering.net>
65763
65764         When trying to open ".", treat ESTALE like EACCES.
65765         * lib/savewd.c (savewd_save): Resort to forking not just upon
65766         failure with EACCES, but also when errno is ESTALE.
65767
65768 2007-03-20  Bruno Haible  <bruno@clisp.org>
65769
65770         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
65771         Needed on AIX 5.1. Reported by Matthew Woehlke.
65772
65773 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65774
65775         Suggestions by Bruno Haible:
65776         * lib/acl-internal.h: Include "gettext.h" rather than rolling
65777         our own.
65778         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
65779         * modules/acl (Depends-on): Add gettext.
65780
65781 2007-03-19  Bruno Haible  <bruno@clisp.org>
65782
65783         * modules/iconvme: Remove file.
65784         * lib/iconvme.h: Remove file.
65785         * lib/iconvme.c: Remove file.
65786         * m4/iconvme.m4: Remove file.
65787
65788 2007-03-19  Bruno Haible  <bruno@clisp.org>
65789
65790         * doc/relocatable-maint.texi: Break long shell script line.
65791         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65792
65793 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65794
65795         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
65796         handle file_has_acl.
65797         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
65798         * lib/acl.c: Move header inclusions and related macro defns into
65799         lib/acl-internal.h.
65800         (S_ISLNK): Remove defn, since that's now done for us.
65801         (file_has_acl): Move to lib/file-has-acl.c.
65802         Call acl_trivial if available.  This is the crucial part of the fix.
65803         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
65804         shared within the library.  Rewrite a bit, partly to make it compatible
65805         with the GNU coding style.
65806         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
65807         Remove unnecessary double-quotes.
65808         Don't test for acl_to_text; the build will catch that.
65809         Replace acl_entries if it doesn't exist and it is needed.
65810         Check for -lsec and acl_trivial (as used on Solaris 10).
65811         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
65812         lib/file-has-acl.c.
65813         (Depends-on): Add sys_stat, for S_ISLNK.
65814
65815 2007-03-19  Ben Pfaff  <blp@gnu.org>
65816
65817         * doc/gnulib.texi: Fix typos.
65818         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
65819
65820 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
65821
65822         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
65823         If size is zero here, buf must be zero.
65824
65825 2007-03-19  Simon Josefsson  <simon@josefsson.org>
65826
65827         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
65828         <bruno@clisp.org>.
65829
65830 2007-03-18  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
65833         Suggested by Eric Blake.
65834
65835 2007-03-18  Ben Pfaff  <blp@gnu.org>
65836
65837         * doc/relocatable.texi: Recommend using as prefix a directory
65838         that does not exist and will never be created.  Based on
65839         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
65840         and others.
65841
65842 2007-03-17  Bruno Haible  <bruno@clisp.org>
65843
65844         * lib/fchownat.c: Include lchown.h.
65845
65846 2007-03-17  Bruno Haible  <bruno@clisp.org>
65847
65848         Fix endless loop when the given allocated size was > INT_MAX.
65849         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
65850         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
65851         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
65852         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
65853         * lib/sprintf.c (sprintf): Likewise.
65854
65855 2007-03-17  Bruno Haible  <bruno@clisp.org>
65856
65857         * tests/test-argp-2.sh (func_compare): Output a context diff.
65858
65859 2007-03-17  Bruno Haible  <bruno@clisp.org>
65860
65861         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
65862         locale's decimal-point character.
65863
65864 2007-03-17  Bruno Haible  <bruno@clisp.org>
65865
65866         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
65867         before comparing it. Needed because on some platforms (e.g. x86) a
65868         'long double' occupies less bytes than sizeof (long double).
65869
65870 2007-03-17  Bruno Haible  <bruno@clisp.org>
65871
65872         * tests/test-crc.c (main): Make printf statements 64-bit clean.
65873         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
65874         * tests/test-getaddrinfo.c (simple): Likewise.
65875         * tests/test-read-file.c (main): Likewise.
65876
65877 2007-03-17  Bruno Haible  <bruno@clisp.org>
65878
65879         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
65880
65881 2007-03-17  Bruno Haible  <bruno@clisp.org>
65882
65883         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
65884         unused variable.
65885
65886 2007-03-17  Bruno Haible  <bruno@clisp.org>
65887
65888         * tests/test-c-strcasecmp.c: Include c-strcase.h.
65889         * tests/test-c-strncasecmp.c: Likewise.
65890
65891 2007-03-17  Bruno Haible  <bruno@clisp.org>
65892
65893         * modules/stdlib (Depends-on): Add unistd.
65894         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
65895         Needed for MacOS X 10.3.
65896
65897 2007-03-17  Bruno Haible  <bruno@clisp.org>
65898
65899         * lib/unistr/u-strdup.h: Include <stdlib.h>.
65900
65901 2007-03-17  Bruno Haible  <bruno@clisp.org>
65902
65903         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
65904
65905 2007-03-17  Bruno Haible  <bruno@clisp.org>
65906
65907         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
65908         to reflect files copied from gnulib (with or without modifications).
65909         Suggested by Jim Meyering.
65910
65911 2007-03-17  Eric Blake  <ebb9@byu.net>
65912
65913         * NEWS: Document stdlib change from 2007-02-18.
65914
65915 2007-03-17  Jim Meyering  <jim@meyering.net>
65916
65917         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
65918         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
65919         someone uses a name containing shell meta-characters.
65920         Reported by Alfred M. Szmidt.
65921
65922         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
65923
65924 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65925
65926         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
65927         and copy gettext configuration files only if configure.ac contains
65928         a use of AM_GNU_GETTEXT_VERSION.
65929
65930 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
65931
65932         * build-aux/bootstrap (gnulib_name): New variable.
65933         (gnulib_tool_options): Use it.
65934
65935 2007-03-13  Simon Josefsson  <simon@josefsson.org>
65936
65937         * tests/test-des.c: Use new namespace.
65938
65939 2007-03-15  Bruno Haible  <bruno@clisp.org>
65940
65941         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
65942         Reported by James Youngman <jay@gnu.org>.
65943
65944 2007-03-15  Bruno Haible  <bruno@clisp.org>
65945
65946         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
65947         declared prototype. Needed with cc on OSF/1 5.1.
65948
65949 2007-03-15  Bruno Haible  <bruno@clisp.org>
65950
65951         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
65952         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
65953         (struct gl_list_implementation): Add dispose_fn argument to the
65954         'create_empty', 'create' methods.
65955         (struct gl_list_impl_base): Add field 'dispose_fn'.
65956         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
65957         argument.
65958         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
65959         dispose_fn argument.
65960         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
65961         dispose_fn on the dropped values.
65962         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
65963         dispose_fn argument.
65964         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
65965         dropped values.
65966         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
65967         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65968         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
65969         (gl_tree_remove_node): Call dispose_fn on the dropped value.
65970         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
65971         argument.
65972         (gl_tree_list_free): Call dispose_fn on the dropped values.
65973         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
65974         the dropped values.
65975         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
65976         Add dispose_fn argument.
65977         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
65978         Call dispose_fn on the dropped values.
65979         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
65980         Add dispose_fn argument.
65981         (gl_sublist_create): Initialize the 'dispose_fn' field.
65982         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
65983         * tests/test-array_list.c (main): Update.
65984         * tests/test-carray_list.c (main): Update.
65985         * tests/test-avltree_list.c (main): Update.
65986         * tests/test-rbtree_list.c (main): Update.
65987         * tests/test-avltreehash_list.c (main): Update.
65988         * tests/test-rbtreehash_list.c (main): Update.
65989         * tests/test-linked_list.c (main): Update.
65990         * tests/test-linkedhash_list.c (main): Update.
65991         * tests/test-array_oset.c (main): Update.
65992
65993 2007-03-15  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
65996         (gl_oset_create_empty): Add dispose_fn argument.
65997         (struct gl_oset_implementation): Add dispose_fn argument to
65998         'create_empty' method.
65999         (struct gl_oset_impl_base): Add dispose_fn field.
66000         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66001         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66002         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66003         values.
66004         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66005         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66006         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66007         dropped value.
66008         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66009         dropped value.
66010         * tests/test-array_oset.c (main): Update.
66011         * tests/test-avltree_oset.c (main): Update.
66012         * tests/test-rbtree_oset.c (main): Update.
66013         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66014
66015 2007-03-13  Bruno Haible  <bruno@clisp.org>
66016
66017         * tests/test-stdbool.c (i): Update after last patch.
66018
66019 2007-03-12  Bruno Haible  <bruno@clisp.org>
66020
66021         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66022         the iswprint macro. Needed on Solaris 2.5.1.
66023
66024 2007-03-12  Bruno Haible  <bruno@clisp.org>
66025
66026         * tests/test-printf-frexp.c (main): Declare x as volatile.
66027
66028 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66029
66030         * doc/gnulib.texi (Build robot for gnulib): New section.
66031
66032 2007-03-12  Jim Meyering  <jim@meyering.net>
66033
66034         * build-aux/bootstrap: New file.
66035         * build-aux/bootstrap.conf: New file, from coreutils.
66036
66037 2007-03-11  Bruno Haible  <bruno@clisp.org>
66038
66039         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66040
66041 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66042
66043         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66044         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66045         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66046
66047 2007-03-11  Bruno Haible  <bruno@clisp.org>
66048
66049         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66050         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66051
66052 2007-03-11  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66055         formula. Needed for SunPRO C 5.0.
66056
66057 2007-03-11  Bruno Haible  <bruno@clisp.org>
66058
66059         * modules/long-options (Depends-on): Add getopt.
66060
66061 2007-03-11  Bruno Haible  <bruno@clisp.org>
66062
66063         * modules/modechange (Depends-on): Add stdbool.
66064
66065 2007-03-11  Bruno Haible  <bruno@clisp.org>
66066
66067         * modules/i-ring (Depends-on): Add stdbool.
66068
66069 2007-03-11  Bruno Haible  <bruno@clisp.org>
66070
66071         * modules/gc-des (Depends-on): Add stdbool.
66072
66073 2007-03-11  Bruno Haible  <bruno@clisp.org>
66074
66075         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66076
66077 2007-03-11  Bruno Haible  <bruno@clisp.org>
66078
66079         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66080
66081 2007-03-11  Bruno Haible  <bruno@clisp.org>
66082
66083         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66084
66085 2007-03-11  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/vasnprintf.c (sprintf): Undefine.
66088
66089 2007-03-11  Bruno Haible  <bruno@clisp.org>
66090
66091         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66092         initializers in SunPRO C and Compaq C compilers.
66093
66094 2007-03-11  Bruno Haible  <bruno@clisp.org>
66095
66096         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66097         decrementing code ANSI C compliant.
66098
66099 2007-03-11  Bruno Haible  <bruno@clisp.org>
66100
66101         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66102         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66103
66104 2007-03-11  Bruno Haible  <bruno@clisp.org>
66105
66106         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66107         <stdbool.h> substitute doesn't pass.
66108
66109 2007-03-11  Bruno Haible  <bruno@clisp.org>
66110
66111         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66112
66113 2007-03-11  Bruno Haible  <bruno@clisp.org>
66114
66115         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66116         script, for submission to autobuild.josefsson.org.
66117
66118 2007-03-10  Bruno Haible  <bruno@clisp.org>
66119
66120         * modules/canonicalize-lgpl-tests: New file.
66121         * tests/test-canonicalize-lgpl.sh: New file.
66122         * tests/test-canonicalize-lgpl.c: New file.
66123
66124         * modules/c-strcase-tests: New file.
66125         * tests/test-c-strcase.sh: New file.
66126         * tests/test-c-strcasecmp.c: New file.
66127         * tests/test-c-strncasecmp.c: New file.
66128
66129         * modules/atexit-tests: New file.
66130         * tests/test-atexit.sh: New file.
66131         * tests/test-atexit.c: New file.
66132
66133 2007-03-10  Bruno Haible  <bruno@clisp.org>
66134
66135         * tests/test-binary-io.sh: Use temporary filenames that are not so
66136         likely to clash with those of other tests (in a parallel make).
66137         * tests/test-binary-io.c: Likewise.
66138
66139 2007-03-10  Bruno Haible  <bruno@clisp.org>
66140
66141         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66142         fallback; use #error instead.
66143         Suggested by Simon Josefsson.
66144
66145 2007-03-10  Bruno Haible  <bruno@clisp.org>
66146
66147         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66148         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66149         first and the last.
66150
66151 2007-03-10  Bruno Haible  <bruno@clisp.org>
66152
66153         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66154
66155 2007-03-10  Bruno Haible  <bruno@clisp.org>
66156
66157         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66158         "make distcheck".
66159         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66160         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66161         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66162
66163 2007-03-10  Bruno Haible  <bruno@clisp.org>
66164
66165         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66166         variable.
66167         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66168         variable.
66169
66170 2007-03-09  Eric Blake  <ebb9@byu.net>
66171         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66172
66173         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66174         types are not being provided by gnulib.
66175         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66176         types are supported.
66177
66178 2007-03-10  Bruno Haible  <bruno@clisp.org>
66179
66180         * lib/stdio_.h (__attribute__): New macro.
66181         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66182         vsprintf): Specify __attribute__ __format__ for GCC.
66183         Suggested by Eric Blake.
66184
66185 2007-03-09  Bruno Haible  <bruno@clisp.org>
66186
66187         * modules/printf-posix-tests: New file.
66188         * tests/test-printf-posix.sh: New file.
66189         * tests/test-printf-posix.c: New file.
66190
66191         * modules/printf-posix: New file.
66192         * lib/printf.c: New file.
66193         * m4/printf-posix-rpl.m4: New file.
66194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66195         REPLACE_PRINTF.
66196         * lib/stdio_.h (printf): New declaration.
66197         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66198         ____strfmon____): New macros.
66199         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66200         REPLACE_PRINTF.
66201
66202 2007-03-09  Bruno Haible  <bruno@clisp.org>
66203
66204         * tests/test-vasnprintf-posix2.sh: New file.
66205         * tests/test-vasnprintf-posix2.c: New file.
66206         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66207         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66208         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66209
66210         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66211         a locale dependent decimal point, rather than always '.'.
66212
66213 2007-03-09  Eric Blake  <ebb9@byu.net>
66214
66215         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66216         spite of platforms like Tandem/NSK that define it to -1.
66217
66218 2007-03-08  Bruno Haible  <bruno@clisp.org>
66219
66220         * modules/vprintf-posix-tests: New file.
66221         * tests/test-vprintf-posix.sh: New file.
66222         * tests/test-vprintf-posix.c: New file.
66223         * tests/test-printf-posix.h: New file.
66224
66225         * modules/vprintf-posix: New file.
66226         * lib/vprintf.c: New file.
66227         * m4/vprintf-posix.m4: New file.
66228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66229         REPLACE_VPRINTF.
66230         * lib/stdio_.h (vprintf): New declaration.
66231         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66232         REPLACE_VPRINTF.
66233
66234 2007-03-08  Bruno Haible  <bruno@clisp.org>
66235
66236         * modules/fprintf-posix-tests: New file.
66237         * tests/test-fprintf-posix.sh: New file.
66238         * tests/test-fprintf-posix.c: New file.
66239
66240         * modules/fprintf-posix: New file.
66241         * lib/fprintf.c: New file.
66242         * m4/fprintf-posix.m4: New file.
66243         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66244         REPLACE_FPRINTF.
66245         * lib/stdio_.h (fprintf): New declaration.
66246         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66247         REPLACE_FPRINTF.
66248
66249 2007-03-08  Bruno Haible  <bruno@clisp.org>
66250
66251         * modules/vfprintf-posix-tests: New file.
66252         * tests/test-vfprintf-posix.sh: New file.
66253         * tests/test-vfprintf-posix.c: New file.
66254         * tests/test-fprintf-posix.h: New file.
66255         * tests/test-fprintf-posix.out: New file.
66256
66257         * modules/vfprintf-posix: New file.
66258         * lib/vfprintf.c: New file.
66259         * m4/vfprintf-posix.m4: New file.
66260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66261         REPLACE_VFPRINTF.
66262         * lib/stdio_.h (vfprintf): New declaration.
66263         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66264         REPLACE_VFPRINTF.
66265
66266 2007-03-08  Bruno Haible  <bruno@clisp.org>
66267
66268         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66269
66270 2007-03-08  Bruno Haible  <bruno@clisp.org>
66271
66272         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66273         instead of 'expr' invocations.
66274         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66275         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66276         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66277         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66278         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66279         Suggested by Paul Eggert.
66280
66281 2007-03-08  Bruno Haible  <bruno@clisp.org>
66282
66283         * modules/fseterr-tests: New file.
66284         * tests/test-fseterr.c: New file.
66285
66286         * modules/fseterr: New file.
66287         * lib/fseterr.h: New file.
66288         * lib/fseterr.c: New file.
66289
66290 2007-03-08  Bruno Haible  <bruno@clisp.org>
66291
66292         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66293         * lib/getopt_.h: Likewise.
66294         * lib/mbswidth.h: Likewise.
66295         * lib/setenv.h: Likewise.
66296         * lib/vasnprintf.h: Likewise.
66297         * lib/vasprintf.h: Likewise.
66298         * lib/verror.h: Likewise.
66299         * lib/xsetenv.h: Likewise.
66300         * lib/xvasprintf.h: Likewise.
66301
66302 2007-03-08  Jim Meyering  <jim@meyering.net>
66303
66304         * users.txt: Add parted.
66305
66306         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66307
66308 2007-03-07  Bruno Haible  <bruno@clisp.org>
66309
66310         * m4/printf.m4: Make the shell script snippets copy&pastable.
66311
66312 2007-03-02  Bruno Haible  <bruno@clisp.org>
66313
66314         * lib/netinet_in_.h: New file.
66315         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66316         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66317         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66318         (Depends-on): Add absolute-header.
66319         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66320         into netinet/in.h.
66321
66322 2007-03-03  Bruno Haible  <bruno@clisp.org>
66323
66324         * lib/sys_select_.h: New file.
66325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66326         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66327         * modules/sys_select (Files): Add lib/sys_select_.h.
66328         (Depends-on): Add absolute-header.
66329         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66330         into sys/select.h.
66331
66332 2007-03-02  Bruno Haible  <bruno@clisp.org>
66333
66334         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66335         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66336         values.
66337         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66338         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66339         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66340         * modules/sys_socket (Depends-on): Add absolute-header.
66341         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66342         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66343         (Include): Remove requirement of inclusion of <sys/types.h>.
66344
66345 2007-03-02  Bruno Haible  <bruno@clisp.org>
66346
66347         * lib/byteswap_.h (bswap_32): Fix formula.
66348
66349 2007-03-06  Bruno Haible  <bruno@clisp.org>
66350
66351         * modules/sprintf-posix-tests: New file.
66352         * tests/test-sprintf-posix.c: New file.
66353
66354         * modules/sprintf-posix: New file.
66355         * lib/sprintf.c: New file.
66356         * m4/sprintf-posix.m4: New file.
66357         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66358         REPLACE_SPRINTF.
66359         * lib/stdio_.h (sprintf): New declaration.
66360         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66361         REPLACE_SPRINTF.
66362
66363 2007-03-06  Bruno Haible  <bruno@clisp.org>
66364
66365         * modules/vsprintf-posix-tests: New file.
66366         * tests/test-vsprintf-posix.c: New file.
66367         * tests/test-sprintf-posix.h: New file.
66368
66369         * modules/vsprintf-posix: New file.
66370         * lib/vsprintf.c: New file.
66371         * m4/vsprintf-posix.m4: New file.
66372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66373         REPLACE_VSPRINTF.
66374         * lib/stdio_.h (vsprintf): New declaration.
66375         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66376         REPLACE_VSPRINTF.
66377
66378 2007-03-06  Bruno Haible  <bruno@clisp.org>
66379
66380         * modules/vsnprintf (Depend-on): Remove minmax.
66381
66382 2007-03-06  Bruno Haible  <bruno@clisp.org>
66383
66384         * modules/snprintf-posix-tests: New file.
66385         * tests/test-snprintf-posix.c: New file.
66386
66387         * modules/snprintf-posix: New file.
66388         * m4/snprintf-posix.m4: New file.
66389         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66390         gl_FUNC_SNPRINTF.
66391         (gl_FUNC_SNPRINTF): Invoke it.
66392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66393         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66394         is set.
66395         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66396
66397 2007-03-06  Bruno Haible  <bruno@clisp.org>
66398
66399         * modules/vsnprintf-posix-tests: New file.
66400         * tests/test-vsnprintf-posix.c: New file.
66401         * tests/test-snprintf-posix.h: New file.
66402
66403         * modules/vsnprintf-posix: New file.
66404         * m4/vsnprintf-posix.m4: New file.
66405         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66406         gl_FUNC_VSNPRINTF.
66407         (gl_FUNC_VSNPRINTF): Invoke it.
66408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66409         * lib/stdio_.h (vsnprintf): Define as a replacement if
66410         REPLACE_VSNPRINTF is set.
66411         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66412
66413 2007-03-06  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66416         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66417
66418 2007-03-06  Bruno Haible  <bruno@clisp.org>
66419
66420         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66421         (asinl): Declare also if HAVE_DECL_ASINL is set.
66422         (atanl): Declare also if HAVE_DECL_ATANL is set.
66423         (ceill): Declare also if HAVE_DECL_CEILL is set.
66424         (cosl): Declare also if HAVE_DECL_COSL is set.
66425         (expl): Declare also if HAVE_DECL_EXPL is set.
66426         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66427         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66428         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66429         (logl): Declare also if HAVE_DECL_LOGL is set.
66430         (sinl): Declare also if HAVE_DECL_SINL is set.
66431         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66432         (tanl): Declare also if HAVE_DECL_TANL is set.
66433         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66435         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66436         declaration of frexpl, ldexpl.
66437         * modules/printf-frexpl (Depends-on): Add math.
66438         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
66439
66440 2007-03-05  Bruno Haible  <bruno@clisp.org>
66441
66442         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
66443         frexpl and ldexpl are declared.
66444         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
66445
66446 2007-03-05  Bruno Haible  <bruno@clisp.org>
66447
66448         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
66449         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
66450
66451 2007-03-05  Bruno Haible  <bruno@clisp.org>
66452
66453         * lib/stdio_.h: Include <stddef.h>.
66454
66455 2007-03-05  Bruno Haible  <bruno@clisp.org>
66456
66457         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
66458
66459 2007-03-05  Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
66462         NetBSD 4, from Ralf Wildenhues.
66463
66464 2007-03-04  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/vasprintf.h: Update #if logic for the case when the functions
66467         exist but are overridden.
66468
66469 2007-03-04  Bruno Haible  <bruno@clisp.org>
66470
66471         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
66472         implementations: glibc-2.4 and MacOS X 10.3.
66473         * tests/test-vasnprintf-posix.c (test_function): Test also the case
66474         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
66475         * tests/test-vasprintf-posix.c (test_function): Likewise.
66476
66477 2007-03-04  Bruno Haible  <bruno@clisp.org>
66478
66479         * modules/vasprintf-posix-tests: New file.
66480         * tests/test-vasprintf-posix.c: New file.
66481
66482         * modules/vasprintf-posix: New file.
66483         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
66484         defined.
66485         * m4/vasprintf-posix.m4: New file.
66486         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
66487         gl_FUNC_VASPRINTF.
66488         (gl_FUNC_VASPRINTF): Invoke it.
66489         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
66490         here.
66491         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
66492
66493 2007-03-04  Bruno Haible  <bruno@clisp.org>
66494
66495         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
66496         REPLACE_GETTIMEOFDAY.
66497         * modules/sys_time (Makefile.am): Likewise.
66498         * m4/sys_time_h.m4: Likewise.
66499         * m4/gettimeofday.m4: Likewise.
66500
66501 2007-03-04  Bruno Haible  <bruno@clisp.org>
66502
66503         * modules/vasnprintf-posix-tests: New file.
66504         * tests/test-vasnprintf-posix.c: New file.
66505
66506         * modules/vasnprintf-posix: New file.
66507         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
66508         printf-frexpl.h.
66509         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
66510         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
66511         REPLACE_VASNPRINTF is defined.
66512         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
66513         gl_FUNC_VASNPRINTF.
66514         (gl_FUNC_VASNPRINTF): Invoke it.
66515         * m4/vasnprintf-posix.m4: New file.
66516         * m4/printf.m4: New file.
66517
66518 2007-03-04  Bruno Haible  <bruno@clisp.org>
66519
66520         Compile progreloc.c only if --enable-relocatable is specified.
66521         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
66522         if --enable-relocatable was specified.
66523         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
66524         lib_SOURCES.
66525
66526 2007-03-04  Jim Meyering  <jim@meyering.net>
66527
66528         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
66529         Use it consistently, rather than enumerating errno constants.
66530
66531 2007-03-04  Bruno Haible  <bruno@clisp.org>
66532
66533         * modules/xvasprintf-tests: New file.
66534         * tests/test-xvasprintf.c: New file.
66535
66536         * modules/vasprintf-tests: New file.
66537         * tests/test-vasprintf.c: New file.
66538
66539         * modules/vasnprintf-tests: New file.
66540         * tests/test-vasnprintf.c: New file.
66541
66542         * modules/vsnprintf-tests: New file.
66543         * tests/test-vsnprintf.c: New file.
66544
66545         * modules/snprintf-tests: New file.
66546         * tests/test-snprintf.c: New file.
66547
66548 2007-03-04  Bruno Haible  <bruno@clisp.org>
66549
66550         Compile relocatable.c only if --enable-relocatable is specified.
66551         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
66552         gl_RELOCATABLE_LIBRARY.
66553         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
66554         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
66555         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
66556         gl_RELOCATABLE_LIBRARY.
66557         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
66558         (Makefile.am): Remove lib_SOURCES.
66559         * modules/relocatable-lib-lgpl (configure.ac): Invoke
66560         gl_RELOCATABLE_LIBRARY.
66561         (Makefile.am): Remove lib_SOURCES.
66562         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
66563         always.
66564         * modules/relocatable-prog-wrapper (configure.ac): Invoke
66565         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
66566
66567 2007-03-04  Bruno Haible  <bruno@clisp.org>
66568
66569         * modules/argmatch-tests: New file.
66570         * tests/test-argmatch.c: New file.
66571
66572         * tests/test-allocsa.c (main): Halve the number of loop runs.
66573
66574         * modules/alloca-opt-tests: New file.
66575         * tests/test-alloca-opt.c: New file.
66576
66577 2007-03-04  Jim Meyering  <jim@meyering.net>
66578
66579         Work around difference between Linux ACLs and Solaris 10 ZFS.
66580         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
66581         for EINVAL.
66582
66583 2007-03-03  Bruno Haible  <bruno@clisp.org>
66584
66585         * modules/relocatable-prog (Depends-on): Add back progreloc's
66586         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
66587
66588 2007-03-03  Bruno Haible  <bruno@clisp.org>
66589
66590         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
66591         * modules/relocatable-lib: New file.
66592
66593 2007-03-03  Bruno Haible  <bruno@clisp.org>
66594
66595         * modules/relocatable-prog: Renamed from modules/relocatable.
66596         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
66597
66598 2007-03-03  Bruno Haible  <bruno@clisp.org>
66599
66600         * modules/relocatable-script (Files): Add doc/relocatable.texi,
66601         m4/relocatable-lib.m4.
66602         (Depends-on): Remove 'relocatable'.
66603         (configure.ac): Add gl_RELOCATABLE_NOP.
66604
66605 2007-03-03  Bruno Haible  <bruno@clisp.org>
66606
66607         * modules/relocatable-prog-wrapper: New file.
66608         * modules/relocatable (Depends-on): Add it. Remove all other
66609         dependencies except progname.
66610         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
66611
66612         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
66613         (gl_FUNC_STRERROR): Nop.
66614         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
66615
66616         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
66617         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
66618
66619         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
66620         (gl_FUNC_READLINK): Update.
66621
66622         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
66623
66624 2007-03-03  Bruno Haible  <bruno@clisp.org>
66625
66626         * lib/xreadlink.c: Include <unistd.h> unconditionally.
66627         * modules/xreadlink (Depends-on): Add unistd.
66628         * modules/xreadlink-with-size (Depends-on): Likewise.
66629
66630 2007-03-03  Bruno Haible  <bruno@clisp.org>
66631
66632         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
66633         extracted from gt_FUNC_SETENV.
66634         (gt_FUNC_SETENV): Remove macro.
66635         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
66636         remove gt_FUNC_SETENV.
66637
66638 2007-03-03  Bruno Haible  <bruno@clisp.org>
66639
66640         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
66641         ENABLE_RELOCATABLE here.
66642         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
66643
66644 2007-03-03  Bruno Haible  <bruno@clisp.org>
66645
66646         * modules/rbtreehash-list-tests (Depends-on): Add progname.
66647         * tests/test-rbtreehash_list.c: Include progname.h.
66648         (main): Call set_program_name.
66649
66650         * modules/rbtree-oset-tests (Depends-on): Add progname.
66651         * tests/test-rbtree_oset.c: Include progname.h.
66652         (main): Call set_program_name.
66653
66654         * modules/rbtree-list-tests (Depends-on): Add progname.
66655         * tests/test-rbtree_list.c: Include progname.h.
66656         (main): Call set_program_name.
66657
66658         * modules/linked-list-tests (Depends-on): Add progname.
66659         * tests/test-linked_list.c: Include progname.h.
66660         (main): Call set_program_name.
66661
66662 2007-03-03  Bruno Haible  <bruno@clisp.org>
66663
66664         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
66665         All uses of __restrict changed to _Restrict_.
66666         * lib/glob_.h (__restrict): Remove macro.
66667
66668 2007-03-02  Bruno Haible  <bruno@clisp.org>
66669
66670         * modules/gettext (configure.ac): Require gettext infrastructure
66671         from version 0.16.1.
66672
66673 2007-03-02  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/linkedhash-list-tests (Depends-on): Add progname.
66676         * tests/test-linkedhash_list.c: Include progname.h.
66677         (main): Call set_program_name.
66678
66679         * modules/carray-list-tests (Depends-on): Add progname.
66680         * tests/test-carray_list.c: Include progname.h.
66681         (main): Call set_program_name.
66682
66683         * modules/avltreehash-list-tests (Depends-on): Add progname.
66684         * tests/test-avltreehash_list.c: Include progname.h.
66685         (main): Call set_program_name.
66686
66687         * modules/avltree-oset-tests (Depends-on): Add progname.
66688         * tests/test-avltree_oset.c: Include progname.h.
66689         (main): Call set_program_name.
66690
66691         * modules/avltree-list-tests (Depends-on): Add progname.
66692         * tests/test-avltree_list.c: Include progname.h.
66693         (main): Call set_program_name.
66694
66695         * modules/array-oset-tests (Depends-on): Add progname.
66696         * tests/test-array_oset.c: Include progname.h.
66697         (main): Call set_program_name.
66698
66699         * modules/array-list-tests (Depends-on): Add progname.
66700         * tests/test-array_list.c: Include progname.h.
66701         (main): Call set_program_name.
66702
66703         * modules/argp-tests (Depends-on): Add progname.
66704         * tests/test-argp.c: Include argp.h first. Include progname.h.
66705         (main): Call set_program_name.
66706
66707 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
66708
66709         * doc/gnulib-tool.texi (Initial import): Reword description of
66710         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
66711         limited effect even if defined after the first system include.
66712
66713 2007-03-01  Bruno Haible  <bruno@clisp.org>
66714
66715         * build-aux/config.libpath: Update to libtool-1.5.22.
66716         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
66717
66718 2007-03-01  Bruno Haible  <bruno@clisp.org>
66719
66720         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
66721         foo_CFLAGS.
66722         Reported by Ralf Wildenhues.
66723
66724 2007-03-01  Bruno Haible  <bruno@clisp.org>
66725
66726         * build-aux/install-reloc: Remove object files left over by some
66727         compilers.
66728         Reported by Ralf Wildenhues.
66729
66730 2007-03-01  Bruno Haible  <bruno@clisp.org>
66731
66732         * build-aux/install-reloc: Break long lines.
66733
66734 2007-03-01  Bruno Haible  <bruno@clisp.org>
66735
66736         * doc/relocatable.texi: Document that it may not work on OpenBSD.
66737         Reported by Ralf Wildenhues.
66738
66739 2007-03-01  Bruno Haible  <bruno@clisp.org>
66740
66741         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
66742         include ordering constraints.
66743
66744 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
66745
66746         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
66747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
66748         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
66749         as another example.
66750         * lib/time_.h: Fix misspelling.
66751         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66752         Require gl_HEADER_TIME_H_DEFAULTS.
66753         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
66754         * m4/time_r.m4 (gl_TIME_R): Likewise.
66755         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
66756
66757 2007-03-01  Bruno Haible  <bruno@clisp.org>
66758
66759         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
66760         * m4/utimens.m4 (gl_UTIMENS): Likewise.
66761
66762 2007-03-01  Jim Meyering  <jim@meyering.net>
66763
66764         * modules/xreadlink (Maintainer): Add my name.
66765         * modules/xreadlink-with-size (Depends-on): Alphabetize.
66766
66767 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
66768             Bruno Haible  <bruno@clisp.org>
66769
66770         * build-aux/install-reloc: Compile also c-ctype.c.
66771         * build-aux/relocatable.sh.in: New file.
66772         * doc/relocatable.texi: New file.
66773         * doc/relocatable-maint.texi: New file.
66774         * doc/gnulib.texi: Include relocatable-maint.texi.
66775         * lib/progreloc.c: Include unistd.h unconditionally.
66776         * lib/relocwrapper.c: Include unistd.h unconditionally.
66777         Include c-ctype.h.
66778         (add_dotbin): Use c_tolower.
66779         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
66780         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
66781         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
66782         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
66783         to m4/relocatable-lib.m4.
66784         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
66785         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
66786         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
66787         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
66788         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
66789         * modules/relocatable: New file.
66790         * modules/relocatable-lib: New file.
66791         * modules/relocatable-script: New file.
66792
66793 2007-02-28  Bruno Haible  <bruno@clisp.org>
66794
66795         Import --enable-relocatable infrastructure.
66796         * build-aux/config.libpath: New file, from GNU gettext.
66797         * build-aux/install-reloc: New file, from GNU gettext.
66798         * build-aux/reloc-ldflags: New file, from GNU gettext.
66799         * lib/relocatable.h: New file, from GNU gettext.
66800         * lib/relocatable.c: New file, from GNU gettext.
66801         * lib/relocwrapper.c: New file, from GNU gettext.
66802         * m4/relocatable.m4: New file, from GNU gettext.
66803
66804 2007-02-28  Bruno Haible  <bruno@clisp.org>
66805
66806         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
66807
66808         * modules/xreadlink: New file, from GNU gettext with modifications.
66809         * lib/xreadlink.c: New file, from GNU gettext.
66810         * lib/xreadlink.h: Add comments.
66811         (xreadlink): New declaration.
66812
66813         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
66814         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
66815         lib/xreadlink-with-size.c.
66816         (configure.ac): Remove gl_XREADLINK invocation.
66817         (Makefile.am): Augment lib_SOURCES.
66818         * m4/xreadlink.m4: Remove file.
66819         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
66820         (xreadlink_with_size): Renamed from xreadink.
66821         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
66822         * modules/canonicalize (Depends-on): Replace xreadlink with
66823         xreadlink-with-size.
66824         * lib/canonicalize.c (canonicalize_filename_mode): Update.
66825
66826 2007-02-25  Jim Meyering  <jim@meyering.net>
66827
66828         * build-aux/announce-gen: When complaining about excess arguments,
66829         list them.
66830
66831 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
66832
66833         * README: Document signed integer overflow situation more
66834         accurately.
66835
66836 2007-02-25  Bruno Haible  <bruno@clisp.org>
66837
66838         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
66839         'a' or 'A' conversion.
66840
66841 2007-02-25  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/filename: Renamed from modules/pathname.
66844         (Files): Replace lib/pathname.h with lib/filename.h. Replace
66845         lib/concatpath.c with lib/concat-filename.c.
66846         (Makefile.am): Update.
66847         (Include): Replace pathname.h with filename.h.
66848         * lib/filename.h: Renamed from lib/pathname.h.
66849         (concatenated_filename): Renamed from concatenated_pathname.
66850         * lib/concat-filename.c: Renamed from lib/concatpath.c.
66851         (concatenated_filename): Renamed from concatenated_pathname.
66852         * lib/findprog.c: Include filename.h instead of pathname.h.
66853         (find_in_path): Update.
66854         * lib/javacomp.c: Include filename.h instead of pathname.h.
66855         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
66856         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
66857         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
66858         is_oldgcj_14_13_usable, is_javac_usable): Update.
66859         * lib/javaexec.c: Include filename.h instead of pathname.h.
66860         (execute_java_class): Update.
66861         * modules/findprog: Update.
66862         * modules/javacomp: Update.
66863         * modules/javaexec: Update.
66864         * MODULES.html.sh (File system functions): Add 'filename', remove
66865         'pathname'.
66866
66867 2007-02-25  Bruno Haible  <bruno@clisp.org>
66868
66869         * modules/printf-frexpl-tests: New file.
66870         * tests/test-printf-frexpl.c: New file.
66871
66872         * modules/printf-frexpl: New file.
66873         * lib/printf-frexpl.h: New file.
66874         * lib/printf-frexpl.c: New file.
66875         * m4/printf-frexpl.m4: New file.
66876
66877 2007-02-25  Bruno Haible  <bruno@clisp.org>
66878
66879         * modules/printf-frexp-tests: New file.
66880         * tests/test-printf-frexp.c: New file.
66881
66882         * modules/printf-frexp: New file.
66883         * lib/printf-frexp.h: New file.
66884         * lib/printf-frexp.c: New file.
66885         * m4/printf-frexp.m4: New file.
66886
66887 2007-02-25  Bruno Haible  <bruno@clisp.org>
66888
66889         Assume automake >= 1.10 for the tests.
66890         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
66891         * modules/arctwo-tests: Likewise.
66892         * modules/argp-tests: Likewise.
66893         * modules/avltree-list-tests: Likewise.
66894         * modules/avltree-oset-tests: Likewise.
66895         * modules/avltreehash-list-tests: Likewise.
66896         * modules/carray-list-tests: Likewise.
66897         * modules/crc-tests: Likewise.
66898         * modules/des-tests: Likewise.
66899         * modules/gc-arcfour-tests: Likewise.
66900         * modules/gc-arctwo-tests: Likewise.
66901         * modules/gc-des-tests: Likewise.
66902         * modules/gc-hmac-md5-tests: Likewise.
66903         * modules/gc-hmac-sha1-tests: Likewise.
66904         * modules/gc-md2-tests: Likewise.
66905         * modules/gc-md4-tests: Likewise.
66906         * modules/gc-md5-tests: Likewise.
66907         * modules/gc-pbkdf2-sha1-tests: Likewise.
66908         * modules/gc-rijndael-tests: Likewise.
66909         * modules/gc-sha1-tests: Likewise.
66910         * modules/gc-tests: Likewise.
66911         * modules/getaddrinfo-tests: Likewise.
66912         * modules/hmac-md5-tests: Likewise.
66913         * modules/hmac-sha1-tests: Likewise.
66914         * modules/linked-list-tests: Likewise.
66915         * modules/linkedhash-list-tests: Likewise.
66916         * modules/lock-tests: Likewise.
66917         * modules/md2-tests: Likewise.
66918         * modules/md4-tests: Likewise.
66919         * modules/md5-tests: Likewise.
66920         * modules/rbtree-list-tests: Likewise.
66921         * modules/rbtree-oset-tests: Likewise.
66922         * modules/rbtreehash-list-tests: Likewise.
66923         * modules/read-file-tests: Likewise.
66924         * modules/rijndael-tests: Likewise.
66925         * modules/stdint-tests: Likewise.
66926         * modules/tls-tests: Likewise.
66927
66928 2007-02-24  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
66931         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
66932         function; instead check whether isnan with a double argument links.
66933         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
66934         function; instead check whether isnan with a 'long double' argument
66935         links.
66936         Reported by Eric Blake <ebb9@byu.net>.
66937
66938 2007-02-24  Bruno Haible  <bruno@clisp.org>
66939
66940         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
66941         defined.
66942         * lib/isnanl.c: Remove all code. Just include isnan.c.
66943         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
66944
66945 2007-02-25  Jim Meyering  <jim@meyering.net>
66946
66947         Avoid conflicting types for 'unsetenv' on FreeBSD.
66948         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
66949         conflicting with FreeBSD's (5.0 and 6.1) function declaration
66950         in stdlib.h.
66951
66952 2007-02-24  Bruno Haible  <bruno@clisp.org>
66953
66954         * modules/isnanl-nolibm-tests: New file.
66955         * tests/test-isnanl.c: New file.
66956
66957         * modules/isnanl-nolibm: New file.
66958         * lib/isnanl.h: New file.
66959         * lib/isnanl.c: New file.
66960         * m4/isnanl.m4: New file.
66961
66962 2007-02-24  Bruno Haible  <bruno@clisp.org>
66963
66964         * modules/isnan-nolibm-tests: New file.
66965         * tests/test-isnan.c: New file.
66966
66967         * modules/isnan-nolibm: New file.
66968         * lib/isnan.h: New file.
66969         * lib/isnan.c: New file.
66970         * m4/isnan.m4: New file.
66971
66972 2007-02-24  Bruno Haible  <bruno@clisp.org>
66973
66974         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
66975         assume that an exponent fits in 20 bits.
66976
66977 2007-02-24  Jim Meyering  <jim@meyering.net>
66978
66979         * m4/regex.m4: Update the description of the configure-time option,
66980         --without-included-regex, to state accurately what the defaults are,
66981         and perhaps to give people an idea why using this option is risky.
66982
66983 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
66984
66985         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
66986         loops on small arguments.  This attempts to avoid the problem
66987         Bruno Haible reported for AIX 4.3.2 in
66988         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
66989
66990 2007-02-23  Bruno Haible  <bruno@clisp.org>
66991
66992         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
66993         Needed for help2man.
66994
66995 2007-02-23  Karl Berry  <karl@gnu.org>
66996
66997         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
66998         exists, foo.h should be cvs-ignored, not committed.
66999
67000 2007-02-23  Eric Blake  <ebb9@byu.net>
67001
67002         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67003         * lib/stat-time.h (includes): Likewise.
67004         * lib/utimecmp.c (includes): Likewise.
67005         * lib/utimens.h (includes): Likewise.
67006         * lib/getdate.y (includes): Also include "timespec.h" for use
67007         internal to the module.
67008         * modules/utimens (Depends-on): Revert yesterday's patch.
67009         * modules/nanosleep (Depends-on): Add missing dependency.
67010
67011 2007-02-22  Bruno Haible  <bruno@clisp.org>
67012
67013         * lib/glob.c: Don't include getlogin_r.h.
67014
67015 2007-02-22  Jim Meyering  <jim@meyering.net>
67016
67017         * modules/utimens (Depends-on): Add timespec, required for
67018         utimens.h's inclusion of timespec.h.
67019
67020 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67023         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67024         Schwab in
67025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67026         I'll try to think of a better way to fix the Solaris problem.
67027
67028         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67029         like glibc; on Solaris 10, it fails with errno == EINVAL.
67030         POSIX says the behavior is unspecified if the first argument is NULL,
67031         so play it safe and never pass NULL to the system getcwd.
67032
67033 2007-02-21  Jim Meyering  <jim@meyering.net>
67034
67035         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67036         of gettimeofday.  It would conflict with the one now always
67037         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67038         an IRIX 6.5 build failure.
67039
67040 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         Minor fixups to port to Solaris 10 with Sun C 5.8.
67043         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67044         * modules/getcwd (Depends-on): Add dirfd.
67045         * lib/putenv.c (putenv): #undef it.
67046         (rpl_putenv): New decl.
67047         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67048
67049 2007-02-20  Bruno Haible  <bruno@clisp.org>
67050
67051         * modules/stdio-tests: New file.
67052         * tests/test-stdio.c: New file.
67053
67054         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67055         (Depends-on): Add stdio.
67056         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67057         (Include): Use <stdio.h> instead of vsnprintf.h.
67058         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67059         HAVE_DECL_VSNPRINTF.
67060         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67061
67062         * modules/snprintf (Files): Remove lib/snprintf.h.
67063         (Depends-on): Add stdio.
67064         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67065         (Include): Use <stdio.h> instead of snprintf.h.
67066         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67067         HAVE_DECL_SNPRINTF.
67068         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67069         * lib/getaddrinfo.c: Likewise.
67070
67071         * modules/stdio: New file.
67072         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67073         * lib/snprintf.h: Remove file.
67074         * lib/vsnprintf.h: Remove file.
67075         * lib/.cppi-disable: Remove snprintf.h.
67076         * m4/stdio_h.m4: New file.
67077         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67078
67079 2007-02-20  Jim Meyering  <jim@meyering.net>
67080
67081         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67082         used by e.g., mingw.  From Bruno Haible.
67083
67084 2007-02-19  Bruno Haible  <bruno@clisp.org>
67085
67086         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67087         warnings.
67088         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67089
67090 2007-02-19  Bruno Haible  <bruno@clisp.org>
67091
67092         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67093         from mingw users.
67094
67095 2007-02-19  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67098         warnings.
67099         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67100
67101 2007-02-19  Jim Meyering  <jim@meyering.net>
67102
67103         Don't use FD after a successful "fdopendir (fd)".
67104         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67105         Reset it by calling dirfd on the just-obtained DIR*.
67106
67107         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67108         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67109
67110 2007-02-18  Bruno Haible  <bruno@clisp.org>
67111
67112         * lib/readlink.c: Include <unistd.h>.
67113         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67114         HAVE_READLINK.
67115         * modules/readlink (Depends-on): Add unistd.
67116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67117         (Include): Add <unistd.h>.
67118
67119         * lib/getlogin_r.h: Remove file.
67120         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67121         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67122         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67123         HAVE_DECL_GETLOGIN_R.
67124         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67125         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67126         (Include): Use <unistd.h> instead of getlogin_r.h.
67127
67128         * lib/getcwd.h: Remove file.
67129         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67130         * lib/xgetcwd.c: Likewise.
67131         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67132         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67133         * modules/getcwd (Files): Remove lib/getcwd.h.
67134         (Depends-on): Add unistd.
67135         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67136         (Include): Use <unistd.h> instad of getcwd.h.
67137
67138         * lib/ftruncate.c: Include <unistd.h> first.
67139         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67140         Set HAVE_FTRUNCATE.
67141         * modules/ftruncate (Depends-on): Add unistd.
67142         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67143
67144         * lib/fchdir.c: Include <unistd.h> first.
67145         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67146         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67147         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67148         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67149         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67150
67151         * lib/dup2.c: Include <unistd.h> first.
67152         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67153         HAVE_DUP2.
67154         * modules/dup2 (Depends-on): Add unistd.
67155         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67156
67157         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67158         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67159         REPLACE_CHOWN. Don't define chown as a macro here.
67160         * modules/chown (Depends-on): Add unistd.
67161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67162
67163         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67164         Add definition for GL_LINK_WARNING.
67165         (chown, dup2): New declarations.
67166         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67167         link warning.
67168         (ftruncate): New declaration.
67169         (getcwd): New declaration, taken from old getcwd.h.
67170         (getlogin_r): New declaration, taken from old getlogin_r.h.
67171         (readlink): New declaration.
67172         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67173         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67174         (gl_PREREQ_UNISTD): Remove macro.
67175         (gl_UNISTD_MODULE_INDICATOR): New macro.
67176         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67177         many new variables. Don't set UNISTD_H.
67178         * modules/unistd (Description): Change.
67179         (Depends-on): Add link-warning.
67180         (configure.ac): Update.
67181         (Makefile.am): Create unistd.h always. Substitute many new variables
67182         into it.
67183
67184 2007-02-18  Bruno Haible  <bruno@clisp.org>
67185
67186         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67187         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67188         HAVE_GETSUBOPT.
67189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67190         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67191         * lib/getsubopt.h: Remove file.
67192         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67193         (Depends-on): Add stdlib.
67194         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67195         (Includes): Use <stdlib.h> instead of getsubopt.h.
67196         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67197         Set HAVE_GETSUBOPT.
67198         * lib/getsubopt.c: Don't include getsubopt.h.
67199
67200 2007-02-18  Bruno Haible  <bruno@clisp.org>
67201
67202         * modules/fchdir (Depends-on): Add dup2.
67203
67204 2007-02-18  Bruno Haible  <bruno@clisp.org>
67205
67206         * lib/stdlib_.h: Handle glibc's special invocation convention
67207         specially.
67208
67209 2007-02-18  Bruno Haible  <bruno@clisp.org>
67210
67211         * modules/stdlib-tests: New file.
67212         * tests/test-stdlib.c: New file.
67213
67214         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67215         (Depends-on): Add stdlib.
67216         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67217         (Includes): Use <stdlib.h> instead of mkstemp.h.
67218         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67219         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67220         * lib/mkstemp.c: Don't include mkstemp.h.
67221         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67222         * lib/stdlib--.h: Don't include mkstemp.h.
67223
67224         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67225         (Depends-on): Add stdlib.
67226         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67227         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67228         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67229         HAVE_MKDTEMP.
67230         * lib/mkdtemp.c: Don't include mkdtemp.h.
67231         * lib/clean-temp.c: Don't include mkdtemp.h.
67232
67233         * modules/exit (Files): Remove lib/exit.h.
67234         (Depends-on): Add stdlib.
67235         (Makefile.am): Remove lib_SOURCES.
67236         (Include): Use <stdlib.h> instead of exit.h.
67237         * lib/argmatch.c: Don't include exit.h.
67238         * lib/execute.c: Likewise.
67239         * lib/pagealign_alloc.c: Likewise.
67240         * lib/pipe.c: Likewise.
67241         * lib/wait-process.c: Likewise.
67242         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67243         * lib/exitfail.c: Likewise.
67244         * lib/savewd.c: Likewise.
67245         * lib/xsetenv.c: Likewise.
67246
67247         * modules/stdlib: New file.
67248         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67249         and extra comments about mkstemp().
67250         * lib/exit.h: Remove file.
67251         * lib/mkdtemp.h: Remove file.
67252         * lib/mkstemp.h: Remove file.
67253         * m4/stdlib_h.m4: New file.
67254         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67255
67256 2007-02-18  Bruno Haible  <bruno@clisp.org>
67257
67258         * modules/math-tests: New file.
67259         * tests/test-math.c: New file.
67260
67261         * modules/math: New file.
67262         * modules/mathl (Files): Remove lib/mathl.h.
67263         (Depends-on): Add math.
67264         (Makefile.am): Don't mention mathl.h.
67265         (Include): Use <math.h> instead of mathl.h.
67266         * lib/math_.h: New file.
67267         * lib/mathl.h: Remove file.
67268         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67269         mathl.h.
67270         * lib/asinl.c: Likewise.
67271         * lib/atanl.c: Likewise.
67272         * lib/ceill.c: Likewise.
67273         * lib/cosl.c: Likewise.
67274         * lib/expl.c: Likewise.
67275         * lib/floorl.c: Likewise.
67276         * lib/frexpl.c: Likewise.
67277         * lib/ldexpl.c: Likewise.
67278         * lib/logl.c: Likewise.
67279         * lib/sincosl.c: Likewise.
67280         * lib/sinl.c: Likewise.
67281         * lib/sqrtl.c: Likewise.
67282         * lib/tanl.c: Likewise.
67283         * lib/trigl.c: Likewise.
67284         * m4/math_h.m4: New file.
67285         * MODULES.html.sh (Mathematics): Add math.
67286
67287 2007-02-17  Bruno Haible  <bruno@clisp.org>
67288
67289         * modules/wctype-tests: New file.
67290         * tests/test-wctype.c: New file.
67291
67292         * modules/wchar-tests: New file.
67293         * tests/test-wchar.c: New file.
67294
67295         * modules/unistd-tests: New file.
67296         * tests/test-unistd.c: New file.
67297
67298         * modules/time-tests: New file.
67299         * tests/test-time.c: New file.
67300
67301         * modules/sysexits-tests: New file.
67302         * tests/test-sysexits.c: New file.
67303
67304         * modules/sys_time-tests: New file.
67305         * tests/test-sys_time.c: New file.
67306
67307         * modules/sys_stat-tests: New file.
67308         * tests/test-sys_stat.c: New file.
67309
67310         * modules/sys_socket-tests: New file.
67311         * tests/test-sys_socket.c: New file.
67312
67313         * modules/sys_select-tests: New file.
67314         * tests/test-sys_select.c: New file.
67315
67316         * modules/string-tests: New file.
67317         * tests/test-string.c: New file.
67318
67319         * modules/stdbool-tests: New file.
67320         * tests/test-stdbool.c: New file.
67321
67322         * modules/netinet_in-tests: New file.
67323         * tests/test-netinet_in.c: New file.
67324
67325         * modules/inttypes-tests: New file.
67326         * tests/test-inttypes.c: New file.
67327
67328         * modules/fcntl-tests: New file.
67329         * tests/test-fcntl.c: New file.
67330
67331         * modules/byteswap-tests: New file.
67332         * tests/test-byteswap.c: New file.
67333
67334         * modules/arpa_inet-tests: New file.
67335         * tests/test-arpa_inet.c: New file.
67336
67337 2007-02-17  Bruno Haible  <bruno@clisp.org>
67338
67339         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67340         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67341         if the corresponding module is not enabled. Emit link warnings if
67342         the function is used nevertheless.
67343         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67344         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67345         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67346         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67347         * modules/inttypes (Depends-on): Add link-warning.
67348         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67349         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67350         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67351         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67352         * modules/imaxdiv (configure.ac): Likewise.
67353         * modules/strtoimax (configure.ac): Likewise.
67354         * modules/strtoumax (configure.ac): Likewise.
67355
67356 2007-02-17  Bruno Haible  <bruno@clisp.org>
67357
67358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67359         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67360         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67361         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67362
67363 2007-02-17  Bruno Haible  <bruno@clisp.org>
67364
67365         * modules/link-warning: New file.
67366         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67367         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67368         * modules/string (Depends-on): Add link-warning.
67369         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67370         string.h.
67371         * MODULES.html.sh (Support for building libraries and executables): Add
67372         link-warning.
67373
67374 2007-02-17  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67377         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67378         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67379         long lines.
67380
67381 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67382             Bruno Haible  <bruno@clisp.org>
67383
67384         * modules/tmpfile: New file.
67385         * lib/tmpfile.c: New file.
67386         * m4/tmpfile.m4: New file.
67387         * MODULES.html.sh (func_all_modules): New section "Input/output".
67388
67389 2007-02-15  Bruno Haible  <bruno@clisp.org>
67390
67391         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67392         (supports_delete_on_close): New function.
67393         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67394
67395 2007-02-14  Bruno Haible  <bruno@clisp.org>
67396
67397         * modules/mbspcasecmp-tests: New file.
67398         * tests/test-mbspcasecmp.sh: New file.
67399         * tests/test-mbspcasecmp.c: New file.
67400
67401         New module mbspcasecmp.
67402         * modules/mbspcasecmp: New file.
67403         * lib/mbspcasecmp.c: New file.
67404         * lib/string_.h (strncasecmp): Change warning message.
67405         (mbspcasecmp): New declaration.
67406         * m4/mbspcasecmp.m4: New file.
67407         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67408         GNULIB_MBSPCASECMP.
67409         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67410         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67411
67412 2007-02-14  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/mbsncasecmp-tests: New file.
67415         * tests/test-mbsncasecmp.sh: New file.
67416         * tests/test-mbsncasecmp.c: New file.
67417
67418         New module mbsncasecmp.
67419         * modules/mbsncasecmp: New file.
67420         * lib/mbsncasecmp.c: New file.
67421         * lib/string_.h (mbsncasecmp): New declaration.
67422         * m4/mbsncasecmp.m4: New file.
67423         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67424         GNULIB_MBSNCASECMP.
67425         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67426         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67427
67428 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67429
67430         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67431         Verify that it doesn't overlap with our flags.
67432         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67433         do not have the desired effect in multibyte locales; instead, use
67434         mbscasecmp.
67435         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67436         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
67437         we don't require GNU fnmatch ourselves (if our users require it, they
67438         should do so explicitly).
67439
67440         Fix regex code so it doesn't rely on strcasecmp.
67441         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
67442         Otherwise, include gnulib's langinfo.h.
67443         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
67444         undesirable behavior in non-C locales.  Instead, rely on localecharset.
67445         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
67446         * modules/regex (FILES): Remove m4/codeset.m4.
67447         (Depends-on): Add localcharset.  Remove strcase.
67448
67449 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67450
67451         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
67452         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
67453
67454 2007-02-13  Bruno Haible  <bruno@clisp.org>
67455
67456         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
67457         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67458
67459 2007-02-12  Bruno Haible  <bruno@clisp.org>
67460
67461         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67462         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
67463         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
67464         time warning rather than a link error.
67465
67466 2007-02-12  Bruno Haible  <bruno@clisp.org>
67467
67468         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
67469         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
67470         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67471
67472 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
67475         args, not 2.
67476
67477 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
67478
67479         New module 'time', so that apps can include <time.h> as per
67480         POSIX and GNU instead of separate include files like time_r.h
67481         and timegm.h.  This implementation tries out a simpler approach
67482         for replacing decls in standard include files (as compared to
67483         the string module), somewhat as an experiment.
67484
67485         * config/srclist.txt: Comment out mktime.c for now.
67486         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
67487         since it doesn't apply any more.  Use generic wording instead.
67488         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
67489         'time'.
67490         * lib/time_.h, m4/time_h.m4, modules/time: New files.
67491         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
67492         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
67493         Don't include <sys/types.h>; no longer needed since we assume C89.
67494         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
67495         * lib/strftime.c: Likewise.
67496         * lib/time_r.c: Likewise.
67497         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
67498         * lib/nanosleep.c: Include <time.h> first, to check interface.
67499         * lib/strptime.c: Likewise.
67500         * lib/time_r.c: Likewise.
67501         * lib/timegm.c: Likewise.
67502         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
67503         needed.
67504         * lib/timegm.c: Don't include timegm.h; no longer needed.
67505         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
67506         time.h now handles any problems in that area.
67507         (struct timespec, nanosleep): Remove; time.h now arranges for these.
67508         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
67509         that time.h defines struct timespec.
67510         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
67511         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
67512         handles that.
67513         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
67514         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
67515         needed.  Set REPLACE_LOCALTIME.
67516         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
67517         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
67518         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
67519         nanosleep; time_h.m4 now does that.  Don't require
67520         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
67521         module handles this now.
67522         * modules/getdate (Depends-on): Remove timespec.  Add time.
67523         * modules/nanosleep (Depends-on): Likewise.
67524         * modules/stat-time (Depends-on): Likewise.
67525         * modules/nanosleep (Include): Include time.h, not timespec.h.
67526         * modules/strptime (Files): Remove lib/strptime.h.
67527         (Depends-on): Add extensions, time.
67528         (Include): Include time.h, not strptime.h.
67529         * modules/time_r (Files): Remove lib/time_r.h.
67530         (Depends-on): Add time.
67531         (Include): Include time.h, not time_r.h.
67532         * modules/timegm: Likewise.
67533         * modules/timespec (Description): Now does timespec-related decls
67534         of our own, instead of struct timespec itself.
67535         (Depends-on): Add time; remove extensions.
67536         (Maintainer): Add self.
67537         * modules/utimecmp (Depends-on): Add time; remove timespec.
67538         * modules/utimens (Depends-on): Likewise.
67539         * modules/xnanosleep (Depends-on): Likewise.
67540
67541 2007-02-11  Bruno Haible  <bruno@clisp.org>
67542
67543         * lib/c-strstr.c: Include allocsa.h.
67544         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67545         * lib/c-strcasestr.c: Include allocsa.h.
67546         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67547         * lib/strcasestr.c: Include allocsa.h.
67548         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
67549         * lib/mbsstr.c: Include allocsa.h.
67550         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67551         allocsa/freesa instead of malloc/free.
67552         * lib/mbscasestr.c: Include allocsa.h.
67553         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
67554         allocsa/freesa instead of malloc/free.
67555         * modules/c-strstr (Depends-on): Add allocsa.
67556         * modules/c-strcasestr (Depends-on): Likewise.
67557         * modules/strcasestr (Depends-on): Likewise.
67558         * modules/mbsstr (Depends-on): Likewise.
67559         * modules/mbscasestr (Depends-on): Likewise.
67560
67561 2007-02-11  Bruno Haible  <bruno@clisp.org>
67562
67563         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
67564
67565         * modules/mbsspn-tests: New file.
67566         * tests/test-mbsspn.sh: New file.
67567         * tests/test-mbsspn.c: New file.
67568
67569 2007-02-11  Bruno Haible  <bruno@clisp.org>
67570
67571         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
67572
67573         * modules/mbspbrk-tests: New file.
67574         * tests/test-mbspbrk.sh: New file.
67575         * tests/test-mbspbrk.c: New file.
67576
67577 2007-02-11  Bruno Haible  <bruno@clisp.org>
67578
67579         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
67580         unneeded cast.
67581
67582         * modules/mbscspn-tests: New file.
67583         * tests/test-mbscspn.sh: New file.
67584         * tests/test-mbscspn.c: New file.
67585
67586 2007-02-11  Bruno Haible  <bruno@clisp.org>
67587
67588         * modules/mbscasecmp-tests: New file.
67589         * tests/test-mbscasecmp.sh: New file.
67590         * tests/test-mbscasecmp.c: New file.
67591
67592 2007-02-11  Bruno Haible  <bruno@clisp.org>
67593
67594         Ensure O(n) worst-case complexity of mbscasestr.
67595         * lib/mbscasestr.c: Include stdbool.h.
67596         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67597         functions.
67598         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
67599         the bookkeeping indicates that it's worth it.
67600         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
67601
67602         * modules/mbscasestr-tests: New file.
67603         * tests/test-mbscasestr1.c: New file.
67604         * tests/test-mbscasestr2.sh: New file.
67605         * tests/test-mbscasestr2.c: New file.
67606         * tests/test-mbscasestr3.sh: New file.
67607         * tests/test-mbscasestr3.c: New file.
67608         * tests/test-mbscasestr4.sh: New file.
67609         * tests/test-mbscasestr4.c: New file.
67610         * m4/locale-tr.m4: New file.
67611
67612 2007-02-11  Bruno Haible  <bruno@clisp.org>
67613
67614         Ensure O(n) worst-case complexity of mbsstr.
67615         * lib/mbsstr.c: Include stdbool.h.
67616         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
67617         functions.
67618         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
67619         bookkeeping indicates that it's worth it.
67620         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
67621
67622         * modules/mbsstr-tests: New file.
67623         * tests/test-mbsstr1.c: New file.
67624         * tests/test-mbsstr2.sh: New file.
67625         * tests/test-mbsstr2.c: New file.
67626         * tests/test-mbsstr3.sh: New file.
67627         * tests/test-mbsstr3.c: New file.
67628         * m4/locale-fr.m4: New file.
67629
67630 2007-02-11  Bruno Haible  <bruno@clisp.org>
67631
67632         * lib/mbsrchr.c (mbsrchr): Fix bug.
67633
67634         * modules/mbsrchr-tests: New file.
67635         * tests/test-mbsrchr.sh: New file.
67636         * tests/test-mbsrchr.c: New file.
67637
67638 2007-02-11  Bruno Haible  <bruno@clisp.org>
67639
67640         * lib/mbschr.c (mbschr): Fix bug.
67641
67642         * modules/mbschr-tests: New file.
67643         * tests/test-mbschr.sh: New file.
67644         * tests/test-mbschr.c: New file.
67645         * m4/locale-zh.m4: New file.
67646
67647 2007-02-11  Bruno Haible  <bruno@clisp.org>
67648
67649         Support for copying multibyte string iterators.
67650         * lib/mbiter.h: Include <string.h>.
67651         (mbiter_multi_copy): New function.
67652         (mbi_copy): New macro.
67653         * lib/mbuiter.h: Include <string.h>.
67654         (mbuiter_multi_copy): New function.
67655         (mbui_copy): New macro.
67656
67657 2007-02-11  Bruno Haible  <bruno@clisp.org>
67658
67659         New module mbslen.
67660         * modules/mbslen: New file.
67661         * lib/mbslen.c: New file.
67662         * lib/string_.h (mbslen): New declaration.
67663         * m4/mbslen.m4: New file.
67664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67665         GNULIB_MBSLEN.
67666         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
67667         * MODULES.html.sh (Internationalization functions): Add mbslen.
67668
67669 2007-02-11  Bruno Haible  <bruno@clisp.org>
67670
67671         Ensure O(n) worst-case complexity of strcasestr substitute.
67672         * lib/strcasestr.c: Include stdbool.h.
67673         (knuth_morris_pratt): New function.
67674         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67675         bookkeeping indicates that it's worth it.
67676         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
67677
67678         * modules/strcasestr-tests: New file.
67679         * tests/test-strcasestr.c: New file.
67680
67681 2007-02-11  Bruno Haible  <bruno@clisp.org>
67682
67683         Ensure O(n) worst-case complexity of c_strcasestr.
67684         * lib/c-strcasestr.c: Include stdbool.h, string.h.
67685         (knuth_morris_pratt): New function.
67686         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
67687         the bookkeeping indicates that it's worth it.
67688         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
67689
67690         * modules/c-strcasestr-tests: New file.
67691         * tests/test-c-strcasestr.c: New file.
67692
67693 2007-02-11  Bruno Haible  <bruno@clisp.org>
67694
67695         Ensure O(n) worst-case complexity of c_strstr.
67696         * lib/c-strstr.c: Include stdbool.h, string.h.
67697         (knuth_morris_pratt): New function.
67698         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
67699         bookkeeping indicates that it's worth it.
67700         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
67701
67702         * lib/c-strstr.c: Complete rewrite for maintainability.
67703
67704         * modules/c-strstr-tests: New file.
67705         * tests/test-c-strstr.c: New file.
67706
67707 2007-02-11  Bruno Haible  <bruno@clisp.org>
67708
67709         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
67710         5.2.1 and earlier, whereby \055 was treated just like the range
67711         delimiter '-'.
67712         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67713
67714 2007-02-08  Bruno Haible  <bruno@clisp.org>
67715
67716         * modules/regex (Depends-on): Add stdbool.
67717         Reported by Dalibor Topic <robilad@kaffe.org>.
67718
67719 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
67720
67721         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
67722         Prefer returning from main to exiting from it.
67723         Remove unnecessary parens after sizeof.
67724
67725 2007-02-05  Bruno Haible  <bruno@clisp.org>
67726
67727         New module mbssep.
67728         * modules/mbssep: New file.
67729         * lib/mbssep.c: New file.
67730         * lib/string_.h (strsep): Add a conditional link warning.
67731         (mbssep): New declaration.
67732         * m4/mbssep.m4: New file.
67733         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67734         GNULIB_MBSSEP.
67735         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
67736         * MODULES.html.sh (Internationalization functions): Add mbssep.
67737
67738 2007-02-05  Bruno Haible  <bruno@clisp.org>
67739
67740         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
67741         Optimize search in case of 1 delimiter.
67742
67743 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67744
67745         * lib/acl.h: Include sys/types.h before sys/acl.h.
67746
67747 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
67748
67749         Merge upstream fix for glibc bugzilla #3957:
67750
67751         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
67752
67753         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
67754         bit for RE_HAT_LISTS_NOT_NEWLINE.
67755         (build_charclass_op): Remove bogus comment.
67756
67757 2007-02-05  Simon Josefsson  <simon@josefsson.org>
67758
67759         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
67760
67761 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67762
67763         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
67764         * lib/memmem.c [!defined _LIBC]: Include config.h.
67765
67766 2007-02-04  Bruno Haible  <bruno@clisp.org>
67767
67768         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
67769         warning message.
67770
67771 2007-02-04  Bruno Haible  <bruno@clisp.org>
67772
67773         New module mbstok_r.
67774         * modules/mbstok_r: New file.
67775         * lib/mbstok_r.c: New file.
67776         * lib/string_.h (strtok_r): Change argument names to match the
67777         comments. Add a conditional link warning.
67778         (mbstok_r): New declaration.
67779         * m4/mbstok_r.m4: New file.
67780         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67781         GNULIB_MBSTOK_R.
67782         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
67783         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
67784
67785 2007-02-04  Bruno Haible  <bruno@clisp.org>
67786
67787         New module mbsspn.
67788         * modules/mbsspn: New file.
67789         * lib/mbsspn.c: New file.
67790         * lib/string_.h (strspn): Add a conditional link warning.
67791         (mbsspn): New declaration.
67792         * m4/mbsspn.m4: New file.
67793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67794         GNULIB_MBSSPN.
67795         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
67796         * MODULES.html.sh (Internationalization functions): Add mbsspn.
67797
67798 2007-02-04  Bruno Haible  <bruno@clisp.org>
67799
67800         New module mbspbrk.
67801         * modules/mbspbrk: New file.
67802         * lib/mbspbrk.c: New file.
67803         * lib/string_.h (strpbrk): Add a conditional link warning.
67804         (mbspbrk): New declaration.
67805         * m4/mbspbrk.m4: New file.
67806         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67807         GNULIB_MBSPBRK.
67808         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
67809         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
67810
67811 2007-02-04  Bruno Haible  <bruno@clisp.org>
67812
67813         New module mbscspn.
67814         * modules/mbscspn: New file.
67815         * lib/mbscspn.c: New file.
67816         * lib/string_.h (strcspn): Add a conditional link warning.
67817         (mbscspn): New declaration.
67818         * m4/mbscspn.m4: New file.
67819         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67820         GNULIB_MBSCSPN.
67821         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
67822         * MODULES.html.sh (Internationalization functions): Add mbscspn.
67823
67824 2007-02-04  Bruno Haible  <bruno@clisp.org>
67825
67826         New module mbscasestr, reduced goal of strcasestr.
67827         * modules/mbscasestr: New file.
67828         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
67829         (mbscasestr): Renamed from strcasestr.
67830         * lib/strcasestr.c: Don't include mbuiter.h.
67831         (strcasestr): Remove support for multibyte locales.
67832         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
67833         Change the conditional link warning.
67834         (mbscasestr): New declaration.
67835         * m4/mbscasestr.m4: New file.
67836         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
67837         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
67838         REPLACE_STRCASESTR.
67839         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
67840         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67841         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67842         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
67843         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
67844         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
67845         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
67846         (Depends-on): Remove mbuiter.
67847         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
67848
67849 2007-02-04  Bruno Haible  <bruno@clisp.org>
67850
67851         Simplify handling of strncasecmp.
67852         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
67853         the conditional link warning.
67854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
67855         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
67856         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
67857         * modules/strcase (configure.ac): Don't invoke
67858         gl_STRING_MODULE_INDICATOR.
67859         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
67860
67861 2007-02-04  Bruno Haible  <bruno@clisp.org>
67862
67863         New module mbscasecmp, reduced goal of strcasecmp.
67864         * modules/mbscasecmp: New file.
67865         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
67866         (mbscasecmp): Renamed from strcasecmp.
67867         * lib/strcasecmp.c: Don't include mbuiter.h.
67868         (strcasecmp): Remove support for multibyte locales.
67869         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
67870         Change the conditional link warning.
67871         (mbscasecmp): New declaration.
67872         * m4/mbscasecmp.m4: New file.
67873         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
67874         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
67875         REPLACE_STRCASECMP.
67876         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
67877         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67878         GNULIB_MBSCASECMP.
67879         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
67880         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
67881         * modules/strcase (Files): Remove m4/mbrtowc.m4.
67882         (Depends-on): Remove mbuiter.
67883         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
67884
67885 2007-02-04  Bruno Haible  <bruno@clisp.org>
67886
67887         New module mbsstr. Remove module strstr.
67888         * modules/mbsstr: New file.
67889         * modules/strstr: Remove file.
67890         * lib/mbsstr.c: Renamed from lib/strstr.c.
67891         (mbsstr): Renamed from strstr.
67892         * lib/string_.h (strstr): Remove declaration. Change the conditional
67893         link warning.
67894         (mbsstr): New declaration.
67895         * m4/mbsstr.m4: New file.
67896         * m4/strstr.m4: Remove file.
67897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
67898         REPLACE_STRSTR.
67899         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
67900         Don't initialize GNULIB_STRSTR.
67901         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
67902         substitute GNULIB_STRSTR and REPLACE_STRSTR.
67903         * MODULES.html.sh (Internationalization functions): Add mbsstr.
67904         (Support for systems lacking ANSI C 89): Remove strstr.
67905
67906 2007-02-04  Bruno Haible  <bruno@clisp.org>
67907
67908         New module mbsrchr.
67909         * modules/mbsrchr: New file.
67910         * lib/mbsrchr.c: New file.
67911         * lib/string_.h (strrchr): Add a conditional link warning.
67912         (mbsrchr): New declaration.
67913         * m4/mbsrchr.m4: New file.
67914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67915         GNULIB_MBSRCHR.
67916         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
67917         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
67918
67919 2007-02-04  Bruno Haible  <bruno@clisp.org>
67920
67921         New module mbschr.
67922         * modules/mbschr: New file.
67923         * lib/mbschr.c: New file.
67924         * lib/string_.h (strchr): Add a conditional link warning.
67925         (mbschr): New declaration.
67926         * m4/mbschr.m4: New file.
67927         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67928         GNULIB_MBSCHR.
67929         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
67930         * MODULES.html.sh (Internationalization functions): Add mbschr.
67931
67932 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
67933
67934         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
67935
67936         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
67937
67938 2007-02-04  Bruno Haible  <bruno@clisp.org>
67939
67940         New module description section 'configure.ac-early'.
67941         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
67942         (func_get_autoconf_early_snippet): New function.
67943         (func_import, func_create_testdir): Use it. Remove special cases for
67944         modules 'extensions' and 'lock'.
67945         * modules/extensions (configure.ac-early): Require
67946         gl_USE_SYSTEM_EXTENSIONS.
67947         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
67948
67949 2007-02-04  Bruno Haible  <bruno@clisp.org>
67950
67951         Make use of gcj-4.3's -fsource and -ftarget option.
67952         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
67953         and if so try the options -fsource and -ftarget.
67954         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
67955         source_version, ftarget_option, target_version arguments.
67956         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
67957         (is_envjavac_oldgcj_14_14_usable): Renamed from
67958         is_envjavac_gcj_14_14_usable.
67959         (is_envjavac_oldgcj_14_13_usable): Renamed from
67960         is_envjavac_gcj_14_13_usable.
67961         (is_gcj_present): Update.
67962         (is_gcj_43, is_gcj43_usable): New functions.
67963         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
67964         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
67965         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
67966         try the options -fsource and -ftarget.
67967
67968 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
67969
67970         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
67971         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
67972         larger value.
67973
67974 2007-02-03  Jim Meyering  <jim@meyering.net>
67975
67976         Give tools a better chance to allocate space for very large buffers.
67977         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
67978
67979         Make pwd and readlink work also when run with an unreadable parent dir
67980         on systems with openat support.
67981         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
67982         provided getcwd function, even when we have openat support.
67983         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
67984
67985 2007-02-02  Bruno Haible  <bruno@clisp.org>
67986
67987         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
67988         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
67989         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
67990         portability problems if one of these functions is only used on specific
67991         platforms.
67992         Reported by Paul Eggert.
67993
67994 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
67995
67996         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
67997         is causing more trouble than it's curing.
67998         * lib/regex_internal.h (__mempcpy): Remove.
67999         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68000         (and make the code a tad smaller to boot).
68001         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68002
68003 2007-02-02  Jim Meyering  <jim@meyering.net>
68004
68005         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68006         section, not in the Makefile.am: one.
68007
68008 2007-02-02  Eric Blake  <ebb9@byu.net>
68009
68010         * lib/strchrnul.c: Always include config.h first.
68011
68012         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68013         gnulib strstr is not necessary here.
68014
68015 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68016
68017         * m4/socklen.m4: Fix typo.
68018
68019 2007-02-02  Eric Blake  <ebb9@byu.net>
68020
68021         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68022         * modules/netinet_in (Makefile.am): Likewise.
68023
68024 2007-02-01  Bruno Haible  <bruno@clisp.org>
68025
68026         * lib/string_.h (GL_LINK_WARNING): New macro.
68027         (strcasecmp, strstr, strcasestr): If provided by the system,
68028         conditionally define as a macro that leads to a warning instead of to
68029         an error.
68030         (strncasecmp): Conditionally define as a macro that leads to a warning.
68031
68032 2007-02-01  Karl Berry  <karl@gnu.org>
68033
68034         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68035
68036 2007-02-01  Bruno Haible  <bruno@clisp.org>
68037
68038         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68039         renamings.
68040
68041 2007-02-01  Eric Blake  <ebb9@byu.net>
68042
68043         * modules/regex (Depends-on): Revert dependence on mempcpy.
68044         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68045         module's definition of mempcpy.
68046         Reported by Paul Eggert.
68047
68048 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68049
68050         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68051         the symbol XYZ before redefining it.  This fixes a problem with
68052         programs that don't use XYZ, when compiled on systems that define
68053         XYZ to something else.
68054
68055 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68056
68057         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68058         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68059         writeable to group or other and (2) is intended to have a special
68060         mode bit that is set or cleared.  In such a case, the directory
68061         should be neither group- nor other-writeable until the special
68062         mode bits are right.
68063
68064 2007-01-31  Eric Blake  <ebb9@byu.net>
68065
68066         * modules/mountlist (Depends-on): Add strstr.
68067
68068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68069         bug.
68070         * modules/string (Makefile.am): Remove redundant replacement.
68071         * modules/regex (Depends-on): Add mempcpy.
68072
68073 2007-01-31  Bruno Haible  <bruno@clisp.org>
68074
68075         New module description field 'Link'.
68076         * gnulib-tool (func_usage): Document --extract-link-directive.
68077         (sed_extract_prog): Recognize 'Link' directive.
68078         (func_get_link_directive): New function.
68079         (func_import): Show summary of link directives.
68080         Handle --extract-link-directive option.
68081         * modules/acl (Link): New section.
68082         * modules/clock-time (Link): New section.
68083         * modules/euidaccess (Link): New section.
68084         * modules/gettext (Link): New section.
68085         * modules/iconv (Link): New section.
68086         * modules/lock (Link): New section.
68087         * modules/nanosleep (Link): New section.
68088         * modules/readline (Link): New section.
68089
68090 2007-01-27  Bruno Haible  <bruno@clisp.org>
68091
68092         Enforce the use of gnulib modules for unportable <string.h> functions.
68093         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68094         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68095         (gl_HEADER_STRING_H_BODY): Require it.
68096         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68097         the symbol XYZ to one that gives a link error.
68098         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68099         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68100         * modules/mempcpy (configure.ac): Likewise.
68101         * modules/memrchr (configure.ac): Likewise.
68102         * modules/stpcpy (configure.ac): Likewise.
68103         * modules/stpncpy (configure.ac): Likewise.
68104         * modules/strcase (configure.ac): Likewise.
68105         * modules/strcasestr (configure.ac): Likewise.
68106         * modules/strchrnul (configure.ac): Likewise.
68107         * modules/strdup (configure.ac): Likewise.
68108         * modules/strndup (configure.ac): Likewise.
68109         * modules/strnlen (configure.ac): Likewise.
68110         * modules/strpbrk (configure.ac): Likewise.
68111         * modules/strsep (configure.ac): Likewise.
68112         * modules/strstr (configure.ac): Likewise.
68113         * modules/strtok_r (configure.ac): Likewise.
68114
68115 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68116
68117         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68118
68119 2007-01-30  Jim Meyering  <jim@meyering.net>
68120
68121         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68122
68123 2007-01-29  Bruno Haible  <bruno@clisp.org>
68124
68125         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68126         * lib/execute.c: Likewise.
68127         * lib/pipe.c: Likewise.
68128         * lib/printf-args.h: Likewise.
68129         * lib/printf-args.c: Likewise.
68130         * lib/printf-parse.c: Likewise.
68131         * lib/vasnprintf.c: Likewise.
68132
68133 2007-01-29  Eric Blake  <ebb9@byu.net>
68134
68135         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68136         declaration.
68137
68138 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68139
68140         * lib/strptime.h (strptime): Use 'restrict' for args where
68141         POSIX requires this.
68142         * lib/strptime.c (strptime): Likewise.
68143         Change license notice from LGPL to GPL, since gnulib-tool will
68144         change this as needed.
68145         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68146         defined.
68147         Include "strptime.h" first, to check interface.
68148         Do not #undef _LIBC and _NL_CURRENT.
68149         Do not include <stdlib.h>; no longer needed.
68150         Include "time_r.h" and declare ptime_locale_status
68151         only if _LIBC is not defined.
68152         (__P): Remove unused macro.
68153         (match_string): Bring back glibc version, but use it only if _LIBC
68154         is defined.
68155         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68156         Remove unnecessary assertion and abort() call.
68157         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68158         * m4/strptime.m4: Fix serial number comment.
68159         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68160         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68161         (Depends-on): Add time_r.
68162
68163 2007-01-29  Bruno Haible  <bruno@clisp.org>
68164
68165         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68166         strptime.
68167         * modules/strptime (Depends-on): Add stdbool.
68168         * lib/strptime.h: Include <time.h> always. Add comments.
68169
68170 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68171
68172         * modules/strptime: New file.
68173         * lib/strptime.h: New file.
68174         * lib/strptime.c: New file.
68175         * m4/strptime.m4: New file.
68176
68177 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * MODULES.html.sh: New module mpsort.
68180         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68181
68182         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68183         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68185         All uses changed.
68186         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68187         All uses changed.
68188         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68189         to _Restrict_.
68190         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68191         the parameter matches the prototype.
68192
68193 2007-01-28  Jim Meyering  <jim@meyering.net>
68194
68195         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68196         sys/time.h here, reverting that part of the previous patch:
68197         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68198
68199 2007-01-28  Bruno Haible  <bruno@clisp.org>
68200
68201         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68202         value of $(SYS_TIME_H).
68203         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68204         remove it conditionally, too. [added by Jim Meyering]
68205         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68206         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68207         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68208         GETTIMEOFDAY_REPLACEMENT to 1.
68209
68210 2007-01-28  Bruno Haible  <bruno@clisp.org>
68211
68212         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68213         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68214         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68215         Set UNISTD_H instead of UNISTD_H2.
68216         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68217
68218 2007-01-28  Bruno Haible  <bruno@clisp.org>
68219
68220         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68221         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68222
68223 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68224
68225         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68226         (func_create_testdir): Ensure C locale for `grep' and `tr'
68227         character ranges.
68228         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68229         ACLOCAL_AMFLAGS parsing state machine.
68230
68231 2007-01-27  Bruno Haible  <bruno@clisp.org>
68232
68233         * modules/unistr/base: Update.
68234
68235 2007-01-27  Bruno Haible  <bruno@clisp.org>
68236
68237         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68238         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68239         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68240         modules/unistr/u32-mbtouc.
68241         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68242         * lib/unistr.h: Update.
68243         * lib/linebreak.c: Update.
68244         * modules/unistr/u32-mbtouc: Renamed from
68245         modules/unistr/u32-mbtouc-safe.
68246         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68247         * lib/unistr.h: Update.
68248         * lib/unistr/u32-to-u8.c: Update.
68249         * lib/unistr/u32-to-u16.c: Update.
68250
68251 2007-01-27  Bruno Haible  <bruno@clisp.org>
68252
68253         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68254         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68255         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68256         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68257         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68258         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68259         modules/unistr/u16-mbtouc.
68260         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68261         * lib/unistr.h: Update.
68262         * lib/linebreak.c: Update.
68263         * modules/linebreak: Update.
68264         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68265         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68266         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68267         * modules/unistr/u16-mbtouc: Renamed from
68268         modules/unistr/u16-mbtouc-safe.
68269         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68270         * lib/unistr.h: Update.
68271         * lib/unistr/u16-to-u8.c: Update.
68272         * modules/unistr/u16-to-u8: Update.
68273         * lib/unistr/u16-to-u32.c: Update.
68274         * modules/unistr/u16-to-u32: Update.
68275
68276 2007-01-27  Bruno Haible  <bruno@clisp.org>
68277
68278         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68279         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68280         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68281         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68282         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68283         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68284         modules/unistr/u8-mbtouc.
68285         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68286         * lib/unistr.h: Update.
68287         * lib/striconveh.c: Update.
68288         * modules/striconveh: Update.
68289         * lib/linebreak.c: Update.
68290         * modules/linebreak: Update.
68291         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68292         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68293         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68294         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68295         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68296         * lib/unistr.h: Update.
68297         * lib/striconveh.c: Update.
68298         * modules/striconveh: Update.
68299         * lib/unistr/u8-to-u16.c: Update.
68300         * modules/unistr/u8-to-u16: Update.
68301         * lib/unistr/u8-to-u32.c: Update.
68302         * modules/unistr/u8-to-u32: Update.
68303
68304 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68305
68306         Sync from Libtool.
68307         * lib/argz.c: Do not include strings.h nor memory.h, include
68308         string.h unconditionally.  Patch by Simon Josefsson.
68309
68310 2007-01-27  Bruno Haible  <bruno@clisp.org>
68311
68312         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68313         from gl_HEADER_STRING_H_BODY.
68314         (gl_HEADER_STRING_H_BODY): Require it.
68315         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68316         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68317         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68318         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68319         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68320         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68321         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68322         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68323         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68324         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68325         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68326         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68327         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68328         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68329         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68330
68331 2007-01-27  Bruno Haible  <bruno@clisp.org>
68332
68333         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68334         check_PROGRAMS into noinst_PROGRAMS.
68335         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68336         check_PROGRAMS in this case.
68337         (func_import): Set for_test to false.
68338         (func_create_testdir): Set for_test to true.
68339
68340 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68341             Bruno Haible  <bruno@clisp.org>
68342
68343         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68344         (Depends-on): Add string.
68345         (Includes): Use <string.h> instead of strcasestr.h.
68346         * modules/string (Makefile.am): Also substitute the value of
68347         REPLACE_STRCASESTR.
68348         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68349         assume strcasestr is declared in <string.h> not <strings.h>. Also
68350         set REPLACE_STRCASESTR.
68351         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68352         REPLACE_STRCASESTR.
68353         * lib/strcasestr.h: Remove file.
68354         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68355         * lib/string_.h (strcasestr): New declaration.
68356
68357 2007-01-27  Bruno Haible  <bruno@clisp.org>
68358
68359         * lib/string_.h: Use 'extern'.
68360
68361 2007-01-27  Jim Meyering  <jim@meyering.net>
68362
68363         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68364         of set-but-not-used local, "q".
68365
68366         * lib/mempcpy.c: Include <config.h> before <string.h>.
68367         This fixes a compilation error on HP-UX, due to the system's
68368         "restrict"-using mempcpy prototype.
68369
68370 2007-01-26  Bruno Haible  <bruno@clisp.org>
68371
68372         Small optimization.
68373         * lib/javacomp.c: Include c-strstr.h.
68374          (is_envjavac_gcj): Use c_strstr instead of strstr.
68375         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68376
68377 2007-01-26  Bruno Haible  <bruno@clisp.org>
68378
68379         * MODULES.html.sh (Unicode string functions): Add the new modules.
68380
68381         * modules/uniconv/u32-strconv-to-locale: New file.
68382         * lib/uniconv/u32-strconv-to-locale.c: New file.
68383
68384         * modules/uniconv/u16-strconv-to-locale: New file.
68385         * lib/uniconv/u16-strconv-to-locale.c: New file.
68386
68387         * modules/uniconv/u8-strconv-to-locale: New file.
68388         * lib/uniconv/u8-strconv-to-locale.c: New file.
68389
68390         * modules/uniconv/u32-strconv-from-locale: New file.
68391         * lib/uniconv/u32-strconv-from-locale.c: New file.
68392
68393         * modules/uniconv/u16-strconv-from-locale: New file.
68394         * lib/uniconv/u16-strconv-from-locale.c: New file.
68395
68396         * modules/uniconv/u8-strconv-from-locale: New file.
68397         * lib/uniconv/u8-strconv-from-locale.c: New file.
68398
68399         * modules/uniconv/u32-strconv-to-enc: New file.
68400         * lib/uniconv/u32-strconv-to-enc.c: New file.
68401         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68402         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68403
68404         * modules/uniconv/u16-strconv-to-enc: New file.
68405         * lib/uniconv/u16-strconv-to-enc.c: New file.
68406         * lib/uniconv/u-strconv-to-enc.h: New file.
68407         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68408         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68409
68410         * modules/uniconv/u8-strconv-to-enc: New file.
68411         * lib/uniconv/u8-strconv-to-enc.c: New file.
68412         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68413         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68414
68415         * modules/uniconv/u32-strconv-from-enc: New file.
68416         * lib/uniconv/u32-strconv-from-enc.c: New file.
68417         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68418         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68419
68420         * modules/uniconv/u16-strconv-from-enc: New file.
68421         * lib/uniconv/u16-strconv-from-enc.c: New file.
68422         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68423         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68424
68425         * modules/uniconv/u8-strconv-from-enc: New file.
68426         * lib/uniconv/u8-strconv-from-enc.c: New file.
68427         * lib/uniconv/u-strconv-from-enc.h: New file.
68428         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68429         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68430
68431         * modules/uniconv/u32-conv-from-enc: New file.
68432         * lib/uniconv/u32-conv-from-enc.c: New file.
68433         * modules/uniconv/u32-conv-from-enc-tests: New file.
68434         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68435
68436         * modules/uniconv/u16-conv-from-enc: New file.
68437         * lib/uniconv/u16-conv-from-enc.c: New file.
68438         * lib/uniconv/u-conv-from-enc.h: New file.
68439         * modules/uniconv/u16-conv-from-enc-tests: New file.
68440         * tests/uniconv/test-u16-conv-from-enc.c: New file.
68441
68442         * modules/uniconv/u8-conv-from-enc: New file.
68443         * lib/uniconv/u8-conv-from-enc.c: New file.
68444         * modules/uniconv/u8-conv-from-enc-tests: New file.
68445         * tests/uniconv/test-u8-conv-from-enc.c: New file.
68446
68447         * modules/uniconv/base: New file.
68448         * lib/uniconv.h: New file.
68449
68450 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68451
68452         * doc/gnulib-tool.texi (Initial import): Update to match current
68453         behavior with strdup module.
68454         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
68455         * lib/memmem.h: Remove; all uses removed.  This is now done
68456         by <string.h>.
68457         * lib/mempcpy.h: Likewise.
68458         * lib/memrchr.h: Likewise.
68459         * lib/stpcpy.h: Likewise.
68460         * lib/stpncpy.h: Likewise.
68461         * lib/strcase.h: Likewise.
68462         * lib/strchrnul.h: Likewise.
68463         * lib/strdup.h: Likewise.
68464         * lib/strndup.h: Likewise.
68465         * lib/strnlen.h: Likewise.
68466         * lib/strpbrk.h: Likewise.
68467         * lib/strsep.h: Likewise.
68468         * lib/strstr.h: Likewise.
68469         * lib/strtok_r.h: Likewise.
68470         * lib/string_.h: New file.
68471         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
68472         Rely on <string.h> instead.
68473         * lib/canon-host.c: Likewise.
68474         * lib/chdir-long.c: Likewise.
68475         * lib/concatpath.c: Likewise.
68476         * lib/exclude.c: Likewise.
68477         * lib/fchdir.c: Likewise.
68478         * lib/getaddrinfo.c: Likewise.
68479         * lib/getcwd.c: Likewise.
68480         * lib/getsubopt.c: Likewise.
68481         * lib/glob.c: Likewise.
68482         * lib/hard-locale.c: Likewise.
68483         * lib/iconvme.c: Likewise.
68484         * lib/javacomp.c: Likewise.
68485         * lib/mempcpy.c: Likewise.
68486         * lib/memrchr.c: Likewise.
68487         * lib/regex_internal.h: Likewise.
68488         * lib/stpncpy.c: Likewise.
68489         * lib/strcasecmp.c: Likewise.
68490         * lib/strchrnul.c: Likewise.
68491         * lib/strdup.c: Likewise.
68492         * lib/striconv.c: Likewise.
68493         * lib/striconveh.c: Likewise.
68494         * lib/striconveha.c: Likewise.
68495         * lib/strncasecmp.c: Likewise.
68496         * lib/strndup.c: Likewise.
68497         * lib/strnlen.c: Likewise.
68498         * lib/strsep.c: Likewise.
68499         * lib/strstr.c: Likewise.
68500         * lib/strtok_r.c: Likewise.
68501         * lib/userspec.c: Likewise.
68502         * lib/w32spawn.h: Likewise.
68503         * lib/xstrndup.c: Likewise.
68504         * lib/mountlist.c (strstr): Remove decl.
68505         * m4/string_h.m4: New file.
68506         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
68507         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
68508         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
68509         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
68510         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
68511         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
68512         Set REPLACE_STRCASECMP if necessary.
68513         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
68514         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
68515         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
68516         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
68517         HAVE_DECL_STRDUP if necessary.
68518         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
68519         since gl_FUNC_STRNDUP does that now.
68520         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
68521         Check for decl here...
68522         (gl_PREREQ_STRNLEN): ... not here.
68523         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
68524         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
68525         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
68526         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
68527         necessary.
68528         * modules/string: New file.
68529         * modules/memmem (Files): Remove special-purpose include file.
68530         (Depends-on): Add string.
68531         (Include): Include <string.h>, not the removed file.
68532         * modules/mempcpy: Likewise.
68533         * modules/memrchr: Likewise.
68534         * modules/stpcpy: Likewise.
68535         * modules/stpncpy: Likewise.
68536         * modules/strcase: Likewise.
68537         * modules/strchrnul: Likewise.
68538         * modules/strdup: Likewise.
68539         * modules/strndup: Likewise.
68540         * modules/strnlen: Likewise.
68541         * modules/strpbrk: Likewise.
68542         * modules/strsep: Likewise.
68543         * modules/strstr: Likewise.
68544         * modules/strtok_r: Likewise.
68545         * tests/test-dirname.c: Don't include "strdup.h", since
68546         <string.h> now suffices.
68547         * tests/test-memmem.c: Don't include "memmem.h", since
68548         <string.h> now suffices.
68549
68550 2007-01-25  Bruno Haible  <bruno@clisp.org>
68551
68552         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
68553         *resultp is 0.
68554
68555         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
68556         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
68557         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
68558         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
68559
68560         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
68561         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
68562         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
68563         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
68564         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
68565         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
68566
68567 2007-01-24  Bruno Haible  <bruno@clisp.org>
68568
68569         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
68570         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
68571         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
68572         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
68573         gl_FUNC_FTS_CORE.
68574         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
68575         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
68576         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
68577         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
68578         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
68579         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
68580         gl_FUNC_FCHOWNAT.
68581         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
68582         gl_FUNC_STRFTIME.
68583         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
68584         Reported by Ralf Wildenhues.
68585
68586 2007-01-24  Bruno Haible  <bruno@clisp.org>
68587
68588         Drop AC_REQUIRE calls that are redundant with the module dependencies.
68589         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
68590         gl_GETADDRINFO.
68591         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
68592         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
68593         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
68594
68595 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
68596
68597         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
68598         Don't use 'exit'; just return from 'main'.
68599         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
68600
68601         * lib/fnmatch_.h: Readjust white space and comments to match
68602         glibc, to avoid spurious diffs.
68603
68604 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68605
68606         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
68607         2004-12-01 change by Jakub Jelinek, since this code won't compile
68608         if !LIBC.  Problem reported by Bob Proulx.
68609
68610 2007-01-23  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/striconveh.c: Include c-strcaseeq.h.
68613         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
68614         * modules/striconveh (Depends-on): Add c-strcaseeq.
68615
68616 2007-01-23  Bruno Haible  <bruno@clisp.org>
68617
68618         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
68619
68620         * modules/c-strcaseeq: New file.
68621         * lib/c-strcaseeq.h: New file.
68622
68623         * modules/streq: New file.
68624         * lib/streq.h: New file.
68625
68626 2007-01-23  Bruno Haible  <bruno@clisp.org>
68627
68628         * modules/striconveha-tests: New file.
68629         * tests/test-striconveha.c: New file.
68630
68631         * lib/striconveha.h: Include <stdbool.h>.
68632         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
68633         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
68634         (mem_iconveha_notranslit): Renamed from mem_iconveha.
68635         (mem_iconveha): New function.
68636         (str_iconveha_notranslit): Renamed from str_iconveha.
68637         (str_iconveha): New function.
68638         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
68639         c-strcase.
68640
68641 2007-01-23  Bruno Haible  <bruno@clisp.org>
68642
68643         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
68644         encodings without forgiving before trying any encoding with handler.
68645         (str_iconveha): Try all encodings without forgiving before trying any
68646         encoding with handler.
68647
68648 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68649
68650         Import the following changes from libc.
68651
68652         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68653
68654         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
68655
68656         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
68657
68658         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
68659         normal_bracket label.
68660
68661         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
68662
68663         [BZ #361]
68664         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
68665         to normal_bracket after fetching the next character.
68666
68667 2007-01-22  Bruno Haible  <bruno@clisp.org>
68668
68669         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
68670         argument.
68671         * lib/striconveh.c (iconv_carefully_1): New function.
68672         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
68673         argument.
68674         (str_cd_iconveh): Update.
68675         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
68676         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
68677         * tests/test-striconveh.c (MAGIC): New macro.
68678         (new_offsets): New function.
68679         (main): Test call with and without offsets.
68680
68681 2007-01-22  Bruno Haible  <bruno@clisp.org>
68682
68683         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
68684         * modules/sys_select (Makefile.am): Likewise.
68685         * modules/sys_socket (Makefile.am): Likewise.
68686         * modules/sys_time (Makefile.am): Likewise.
68687
68688 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68689
68690         * modules/gettimeofday (License): Change from GPL to LGPL, since
68691         gettimeofday is a library function.
68692
68693 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68694
68695         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
68696
68697 2007-01-21  Bruno Haible  <bruno@clisp.org>
68698
68699         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
68700
68701 2007-01-21  Bruno Haible  <bruno@clisp.org>
68702
68703         * modules/striconveha: New file.
68704         * lib/striconveha.h: New file.
68705         * lib/striconveha.c: New file.
68706         * MODULES.html.sh (Internationalization functions): Add striconveha.
68707         * lib/striconv.c (str_iconv): Optimize the case of an empty input
68708         string.
68709         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
68710
68711 2007-01-21  Bruno Haible  <bruno@clisp.org>
68712
68713         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
68714         * lib/striconveh.c (str_iconveh): Likewise.
68715
68716 2007-01-21  Bruno Haible  <bruno@clisp.org>
68717
68718         * lib/striconveh.h (mem_iconveh): New declaration.
68719         * lib/striconveh.c (mem_iconveh): New function.
68720         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
68721
68722 2007-01-21  Bruno Haible  <bruno@clisp.org>
68723
68724         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
68725
68726         * lib/striconveh.h (mem_cd_iconveh): Change specification.
68727         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
68728         original result buffer.
68729         (str_cd_iconveh): Update.
68730         * tests/test-striconveh.c (main): Update.
68731
68732         * lib/striconv.h (mem_cd_iconv): Change specification.
68733         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
68734         result buffer.
68735         (str_cd_iconv): Update.
68736         * tests/test-striconv.c (main): Update.
68737
68738 2007-01-21  Bruno Haible  <bruno@clisp.org>
68739
68740         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
68741
68742 2007-01-20  Jim Meyering  <jim@meyering.net>
68743
68744         * lib/userspec.c (parse_with_separator): If a user or group string
68745         starts with "+", skip the corresponding name-to-ID look-up, since
68746         such a look-up must fail: user and group names may not include "+".
68747
68748 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
68749
68750         * lib/poll.c: Include sys/time.h and time.h unconditionally,
68751         since we now assume the sys_time module.
68752         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
68753         check for sys/time.h; no longer needed.
68754         * modules/poll (Depends-on): Depend on sys_time.
68755
68756 2007-01-18  Bruno Haible  <bruno@clisp.org>
68757
68758         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
68759         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68760
68761         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
68762         gettimeofday.
68763
68764         * tests/test-gettimeofday.c: Include <time.h>.
68765         (dummy): Remove variable.
68766
68767         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
68768         gl_HEADER_SYS_TIME_H.
68769         (gl_HEADER_SYS_TIME_H): New macro.
68770
68771         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
68772         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68773         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
68774         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
68775         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68776         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
68777         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
68778         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68779         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
68780         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
68781         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68782
68783         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
68784         last change; it caused a compilation error when cross-compiling to
68785         Cygwin.
68786
68787 2007-01-18  Jim Meyering  <jim@meyering.net>
68788
68789         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
68790         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
68791         than the race-prone "test -d sys || mkdir sys".
68792         (configure.ac): Use AC_PROG_MKDIR_P.
68793         * modules/sys_select: Likewise.
68794         * modules/sys_socket: Likewise.
68795         * modules/sys_time: Likewise.
68796
68797 2007-01-18  Eric Blake  <ebb9@byu.net>
68798
68799         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
68800         replace gettimeofday.
68801         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
68802         name, to avoid infinite recursion.
68803
68804 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
68805
68806         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
68807         module sys_time.
68808         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
68809         assume timespec.h defines struct timeval.
68810         * lib/settime.c: Likewise.
68811         * lib/utimens.c: Likewise.
68812         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
68813         since we now assume the gettimeofday module.
68814         * lib/tempname.c (__gen_tempname): Likewise.
68815         * lib/gettimeofday.h: Remove.
68816         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
68817         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
68818         Include <time.h>, for 'time()'.
68819         (localtime_buffer_addr): Also use this workaround if
68820         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
68821         to simplify the uses.  All uses changed.
68822         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
68823         that #undef is inside {}, and 'const' follows type name consistently.
68824         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
68825         (gettimeofday): Do not use the maximum possible value for
68826         tv->tv_usec, since that might break usages other than ls.c.
68827         Instead, we'll leave ls.c alone.  This undoes today's patch
68828         by Bruno.  Add a compile-time warning for 1s-clock resolution;
68829         we've never observed the problem but might as well keep the
68830         canary.
68831         * lib/nanosleep.c: Include timespec.h first, for interface check.
68832         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
68833         now assume the sys_time module.
68834         * lib/tempname.c: Likewise.
68835         * lib/timespec.h: Likewise.
68836         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
68837         needed.
68838         * lib/strftime.c: Likewise.
68839         * lib/timespec.h: Likewise.
68840         * lib/posixtm.c: Include posixtm.h first, for interface check.
68841         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
68842         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
68843         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
68844         * lib/sys_time_.h: New file.
68845         * lib/timespec.h (struct timespec): Use long int, not long.
68846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68847         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
68848         Remove obsolescent call to AC_HEADER_TIME.
68849         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
68850         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68851         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
68852         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
68853         Likewise.
68854         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
68855         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
68856         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
68857         into the sys_time module.  Check for gettimeofday just once.
68858         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
68859         for gettimeofday signature to just check the signature.  Merely
68860         compile it, since linking doesn't test signature.  Improve test for
68861         whether gettimeofday.o is actually needed.
68862         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
68863         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
68864         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
68865         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68866         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
68867         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
68868         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
68869         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
68870         than worrying about sys/time.h.
68871         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
68872         Don't bother worrying about TIME_WITH_SYS_TIME.
68873         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
68874         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
68875         * m4/sys_time_h.m4: New file.
68876         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
68877         Don't include sys/time.h.  Return from main rather than exiting.
68878         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
68879         all uses changed.
68880         * modules/gethrxtime (Depends-on): Add sys_time.
68881         * modules/gettime (Depends-on): Likewise.
68882         * modules/gettimeofday (Depends-on): Likewise.
68883         * modules/nanosleep (Depends-on): Likewise.
68884         * modules/settime (Depends-on): Likewise.
68885         * modules/tempname (Depends-on): Likewise.
68886         * modules/utimens (Depends-on): Likewise.
68887         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
68888         (Include): Change back to <sys/time.h>.
68889         (Maintainer): Add self.
68890         * modules/sys_time: New file.
68891         * modules/tempname (Depends-on): Add gettimeofday.
68892         * tests/test-gettimeofday.c: Include <sys/time.h>
68893         rather than gettimeofday.h.
68894
68895 2007-01-17  Bruno Haible  <bruno@clisp.org>
68896
68897         * gnulib-tool (func_get_license): Revert last patch. Instead, let
68898         the license default to GPL.
68899         (func_create_testdir): Don't complain if a module is LGPL and its
68900         tests module depends on GPLed modules.
68901
68902 2007-01-17  Bruno Haible  <bruno@clisp.org>
68903
68904         * lib/gettimeofday.c (gettimeofday): Add code for the case
68905         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
68906         maximum possible value for tv->tv_usec, rather than the minimum one.
68907
68908 2005-10-08  Martin Lambers  <marlam@marlam.de>
68909 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
68910 2007-01-16  Bruno Haible  <bruno@clisp.org>
68911
68912         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
68913         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
68914         gl_FUNC_GETTIMEOFDAY.
68915         (Include): Add gettimeofday.h.
68916         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
68917         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
68918         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
68919         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
68920         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
68921         * lib/gettimeofday.h: New file.
68922         * lib/gettimeofday.c: Include <sys/timeb.h>.
68923         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
68924         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
68925         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
68926         fall back on time().
68927
68928         * tests/test-gettimeofday.c: New file.
68929         * modules/gettimeofday-tests: New file.
68930
68931 2007-01-16  Eric Blake  <ebb9@byu.net>
68932
68933         * modules/fnmatch (Depends-on): Depend on wchar.
68934         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
68935         * m4/fnmatch.m4: Likewise.
68936         * modules/mbchar (Makefile.am): Assume <wchar.h>.
68937         * m4/mbchar.m4: Likewise.
68938         * modules/mbswidth (Depends-on): Depend on wchar.
68939         * lib/mbswidth.c: Assume <wchar.h>.
68940         * m4/mbswidth.m4: Likewise.
68941         * modules/quotearg (Depends-on): Depend on wchar.
68942         * lib/quotearg.c: Assume <wchar.h>.
68943         * m4/quotearg.m4: Likewise.
68944         * modules/regex (Depends-on): Depend on wchar.
68945         * lib/regex_internal.h: Assume <wchar.h>.
68946         * m4/regex.m4: Likewise.
68947         * modules/stdint (Depends-on): Depend on wchar.
68948         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
68949         * m4/stdint.m4: Likewise.
68950         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
68951         * modules/strftime (Depends-on): Depend on wchar.
68952         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
68953         * modules/strtol (Depends-on): Depend on wchar.
68954         * lib/strtol.c: Assume <wchar.h>.
68955         * modules/wcwidth (Depends-on): Depend on wchar.
68956         * lib/wcwidth.h: Assume <wchar.h>.
68957         * m4/wcwidth.m4: Likewise.
68958
68959 2007-01-16  Bruno Haible  <bruno@clisp.org>
68960
68961         * modules/csharpexec-script: New, created from...
68962         * modules/csharpexec: ... this.
68963
68964 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
68965
68966         * modules/javaexec-script: New, created from...
68967         * modules/javaexec: ... this.
68968
68969 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68970
68971         * modules/poll (Dependencies): Add sys_select.
68972
68973 2007-01-15  Jim Meyering  <jim@meyering.net>
68974
68975         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
68976         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
68977         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
68978         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
68979
68980 2007-01-15  Bruno Haible  <bruno@clisp.org>
68981
68982         * modules/striconveh: New file.
68983         * lib/striconveh.h: New file.
68984         * lib/striconveh.c: New file.
68985         * MODULES.html.sh (Internationalization functions): Add striconveh.
68986
68987         * modules/striconveh-tests: New file.
68988         * tests/test-striconveh.c: New file.
68989
68990 2007-01-15  Bruno Haible  <bruno@clisp.org>
68991
68992         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
68993         not from GNU libiconv or GNU libc.
68994
68995 2007-01-15  Bruno Haible  <bruno@clisp.org>
68996
68997         * doc/gnulib-intro.texi (Copyright): Explain the different license
68998         terms for module descriptions, autoconf macros, tests, documentation.
68999
69000 2007-01-14  Bruno Haible  <bruno@clisp.org>
69001
69002         * modules/striconv-tests: New file.
69003         * tests/test-striconv.c: New file.
69004
69005 2007-01-14  Bruno Haible  <bruno@clisp.org>
69006
69007         * modules/iconv-tests: New file.
69008         * tests/test-iconv.c: New file.
69009
69010 2007-01-14  Bruno Haible  <bruno@clisp.org>
69011
69012         * gnulib-tool (func_get_license): For test modules, use the license of
69013         the main module.
69014
69015 2007-01-14  Bruno Haible  <bruno@clisp.org>
69016
69017         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69018         if iconv is found to exist.
69019
69020 2007-01-14  Bruno Haible  <bruno@clisp.org>
69021
69022         * modules/c-ctype-tests: New file.
69023         * tests/test-c-ctype.c: New file.
69024
69025 2007-01-14  Bruno Haible  <bruno@clisp.org>
69026
69027         * modules/binary-io-tests: New file.
69028         * tests/test-binary-io.sh: New file.
69029         * tests/test-binary-io.c: New file.
69030
69031 2007-01-14  Bruno Haible  <bruno@clisp.org>
69032
69033         * modules/array-oset-tests: New file.
69034         * tests/test-array_oset.c: New file.
69035
69036 2007-01-14  Bruno Haible  <bruno@clisp.org>
69037
69038         * modules/array-list-tests: New file.
69039         * tests/test-array_list.c: New file.
69040
69041 2007-01-14  Bruno Haible  <bruno@clisp.org>
69042
69043         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69044         and make.
69045         Reported by Simon Josefsson in
69046         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69047
69048 2007-01-14  Bruno Haible  <bruno@clisp.org>
69049
69050         * modules/allocsa-tests: New file.
69051         * tests/test-allocsa.c: New file.
69052
69053 2007-01-14  Bruno Haible  <bruno@clisp.org>
69054
69055         * modules/fchdir (Depends-on): Add absolute-header.
69056         * modules/unistd (Depends-on): Likewise.
69057
69058 2006-12-30  Bruno Haible  <bruno@clisp.org>
69059
69060         * modules/fchdir: New file.
69061         * modules/unistd (Files): Add lib/unistd_.h.
69062         (Makefile.am): Generate unistd.h from unistd_.h.
69063         * lib/fchdir.c: New file.
69064         * lib/dirent_.h: New file.
69065         * lib/unistd_.h: New file.
69066         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69067         * m4/fchdir.m4: New file.
69068         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69069         (gl_HEADER_UNISTD): Invoke it.
69070         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69071         function.
69072         * lib/backupfile.c (opendir, closedir): Undefine.
69073         * lib/chown.c (open, close): Undefine.
69074         * lib/clean-temp.c (open, close): Undefine.
69075         * lib/copy-file.c (open, close): Undefine.
69076         * lib/execute.c (open, close): Undefine.
69077         * lib/fsusage.c (open, close): Undefine.
69078         * lib/gc-gnulib.c (open, close): Undefine.
69079         * lib/getcwd.c (opendir, closedir): Undefine.
69080         * lib/glob.c (opendir, closedir): Undefine.
69081         * lib/javacomp.c (open, close): Undefine.
69082         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69083         * lib/openat-proc.c (open, close): Undefine.
69084         * lib/pagealign_alloc.c (open, close): Undefine.
69085         * lib/pipe.c (open, close): Undefine.
69086         * lib/progreloc.c (open, close): Undefine.
69087         * lib/savedir.c (opendir, closedir): Undefine.
69088         * lib/utime.c (open, close): Undefine.
69089         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69090
69091 2007-01-10  Bruno Haible  <bruno@clisp.org>
69092
69093         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69094
69095 2007-01-12  Eric Blake  <ebb9@byu.net>
69096
69097         Provide a robust <wchar.h>.  Further simplifications are now
69098         possible in other modules, but not included here.
69099         * modules/wchar: New module.
69100         * m4/wchar.m4: New file.
69101         * lib/wchar_.h: Likewise.
69102         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69103         of the new module.
69104         * MODULES.html.sh (Extended multibyte and wide character utilities):
69105         New section.
69106
69107 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69108
69109         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69110         to a reasonable default for memory allocation.
69111         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69112         file system that reports garbage st_size values for symlinks.
69113         Problem reported by Liyang Hu.
69114
69115 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69116
69117         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69118         Emacs .#* auto-save files).
69119
69120 2007-01-11  Bruno Haible  <bruno@clisp.org>
69121
69122         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69123         directory.
69124
69125 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69126
69127         Use @...@ consistently in lib/wctype_.h.
69128         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69129         on it being set to 1 or 0.
69130         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69131         go back to AC_SUBSTing it.
69132         * modules/wctype (Makefile.am): Undo previous change.
69133
69134 2007-01-10  Eric Blake  <ebb9@byu.net>
69135
69136         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69137         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69138         * modules/wctype (Makefile.am): Likewise.
69139         Reported by Chris McGuire.
69140
69141 2007-01-10  Jim Meyering  <jim@meyering.net>
69142
69143         fts.c: a small readability/maintainability improvement
69144         * lib/fts.c (fts_read): Make this code slightly more readable and
69145         maintainable by hoisting the "sp->fts_cur = p" assignments to
69146         immediately follow the statements that set P.  Derived from
69147         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69148
69149 2007-01-10  Eric Blake  <ebb9@byu.net>
69150
69151         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69152         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69153         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69154         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69155         Reported by Chris McGuire.
69156
69157 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69158
69159         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69160         in sed script.
69161
69162 2007-01-09  Bruno Haible  <bruno@clisp.org>
69163
69164         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69165         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69166         variables.
69167         (func_module): Use them.
69168
69169 2007-01-09  Bruno Haible  <bruno@clisp.org>
69170
69171         * modules/unistr/base: New file.
69172         * lib/unistr.h: New file.
69173
69174         * modules/unistr/u8-to-u16: New file.
69175         * lib/unistr/u8-to-u16.c: New file.
69176
69177         * modules/unistr/u8-to-u32: New file.
69178         * lib/unistr/u8-to-u32.c: New file.
69179
69180         * modules/unistr/u16-to-u8: New file.
69181         * lib/unistr/u16-to-u8.c: New file.
69182
69183         * modules/unistr/u16-to-u32: New file.
69184         * lib/unistr/u16-to-u32.c: New file.
69185
69186         * modules/unistr/u32-to-u8: New file.
69187         * lib/unistr/u32-to-u8.c: New file.
69188
69189         * modules/unistr/u32-to-u16: New file.
69190         * lib/unistr/u32-to-u16.c: New file.
69191
69192         * modules/unistr/u8-check: New file.
69193         * modules/unistr/u16-check: New file.
69194         * modules/unistr/u32-check: New file.
69195         * lib/unistr/u8-check.c: New file.
69196         * lib/unistr/u16-check.c: New file.
69197         * lib/unistr/u32-check.c: New file.
69198
69199         * modules/unistr/u8-chr: New file.
69200         * modules/unistr/u16-chr: New file.
69201         * modules/unistr/u32-chr: New file.
69202         * lib/unistr/u8-chr.c: New file.
69203         * lib/unistr/u16-chr.c: New file.
69204         * lib/unistr/u32-chr.c: New file.
69205
69206         * modules/unistr/u8-cmp: New file.
69207         * modules/unistr/u16-cmp: New file.
69208         * modules/unistr/u32-cmp: New file.
69209         * lib/unistr/u8-cmp.c: New file.
69210         * lib/unistr/u16-cmp.c: New file.
69211         * lib/unistr/u32-cmp.c: New file.
69212
69213         * modules/unistr/u8-cpy: New file.
69214         * modules/unistr/u16-cpy: New file.
69215         * modules/unistr/u32-cpy: New file.
69216         * lib/unistr/u8-cpy.c: New file.
69217         * lib/unistr/u16-cpy.c: New file.
69218         * lib/unistr/u32-cpy.c: New file.
69219         * lib/unistr/u-cpy.h: New file.
69220
69221         * modules/unistr/u8-cpy-alloc: New file.
69222         * modules/unistr/u16-cpy-alloc: New file.
69223         * modules/unistr/u32-cpy-alloc: New file.
69224         * lib/unistr/u8-cpy-alloc.c: New file.
69225         * lib/unistr/u16-cpy-alloc.c: New file.
69226         * lib/unistr/u32-cpy-alloc.c: New file.
69227         * lib/unistr/u-cpy-alloc.h: New file.
69228
69229         * modules/unistr/u8-endswith: New file.
69230         * modules/unistr/u16-endswith: New file.
69231         * modules/unistr/u32-endswith: New file.
69232         * lib/unistr/u8-endswith.c: New file.
69233         * lib/unistr/u16-endswith.c: New file.
69234         * lib/unistr/u32-endswith.c: New file.
69235         * lib/unistr/u-endswith.h: New file.
69236
69237         * modules/unistr/u8-mblen: New file.
69238         * modules/unistr/u16-mblen: New file.
69239         * modules/unistr/u32-mblen: New file.
69240         * lib/unistr/u8-mblen.c: New file.
69241         * lib/unistr/u16-mblen.c: New file.
69242         * lib/unistr/u32-mblen.c: New file.
69243
69244         * modules/unistr/u8-mbtouc: New file.
69245         * modules/unistr/u16-mbtouc: New file.
69246         * modules/unistr/u32-mbtouc: New file.
69247         * lib/unistr/u8-mbtouc.c: New file.
69248         * lib/unistr/u16-mbtouc.c: New file.
69249         * lib/unistr/u32-mbtouc.c: New file.
69250
69251         * modules/unistr/u8-mbtouc-safe: New file.
69252         * modules/unistr/u16-mbtouc-safe: New file.
69253         * modules/unistr/u32-mbtouc-safe: New file.
69254         * lib/unistr/u8-mbtouc-safe.c: New file.
69255         * lib/unistr/u16-mbtouc-safe.c: New file.
69256         * lib/unistr/u32-mbtouc-safe.c: New file.
69257
69258         * modules/unistr/u8-move: New file.
69259         * modules/unistr/u16-move: New file.
69260         * modules/unistr/u32-move: New file.
69261         * lib/unistr/u8-move.c: New file.
69262         * lib/unistr/u16-move.c: New file.
69263         * lib/unistr/u32-move.c: New file.
69264         * lib/unistr/u-move.h: New file.
69265
69266         * modules/unistr/u8-next: New file.
69267         * modules/unistr/u16-next: New file.
69268         * modules/unistr/u32-next: New file.
69269         * lib/unistr/u8-next.c: New file.
69270         * lib/unistr/u16-next.c: New file.
69271         * lib/unistr/u32-next.c: New file.
69272
69273         * modules/unistr/u8-prev: New file.
69274         * modules/unistr/u16-prev: New file.
69275         * modules/unistr/u32-prev: New file.
69276         * lib/unistr/u8-prev.c: New file.
69277         * lib/unistr/u16-prev.c: New file.
69278         * lib/unistr/u32-prev.c: New file.
69279
69280         * modules/unistr/u8-set: New file.
69281         * modules/unistr/u16-set: New file.
69282         * modules/unistr/u32-set: New file.
69283         * lib/unistr/u8-set.c: New file.
69284         * lib/unistr/u16-set.c: New file.
69285         * lib/unistr/u32-set.c: New file.
69286         * lib/unistr/u-set.h: New file.
69287
69288         * modules/unistr/u8-startswith: New file.
69289         * modules/unistr/u16-startswith: New file.
69290         * modules/unistr/u32-startswith: New file.
69291         * lib/unistr/u8-startswith.c: New file.
69292         * lib/unistr/u16-startswith.c: New file.
69293         * lib/unistr/u32-startswith.c: New file.
69294         * lib/unistr/u-startswith.h: New file.
69295
69296         * modules/unistr/u8-stpcpy: New file.
69297         * modules/unistr/u16-stpcpy: New file.
69298         * modules/unistr/u32-stpcpy: New file.
69299         * lib/unistr/u8-stpcpy.c: New file.
69300         * lib/unistr/u16-stpcpy.c: New file.
69301         * lib/unistr/u32-stpcpy.c: New file.
69302         * lib/unistr/u-stpcpy.h: New file.
69303
69304         * modules/unistr/u8-stpncpy: New file.
69305         * modules/unistr/u16-stpncpy: New file.
69306         * modules/unistr/u32-stpncpy: New file.
69307         * lib/unistr/u8-stpncpy.c: New file.
69308         * lib/unistr/u16-stpncpy.c: New file.
69309         * lib/unistr/u32-stpncpy.c: New file.
69310         * lib/unistr/u-stpncpy.h: New file.
69311
69312         * modules/unistr/u8-strcat: New file.
69313         * modules/unistr/u16-strcat: New file.
69314         * modules/unistr/u32-strcat: New file.
69315         * lib/unistr/u8-strcat.c: New file.
69316         * lib/unistr/u16-strcat.c: New file.
69317         * lib/unistr/u32-strcat.c: New file.
69318         * lib/unistr/u-strcat.h: New file.
69319
69320         * modules/unistr/u8-strchr: New file.
69321         * modules/unistr/u16-strchr: New file.
69322         * modules/unistr/u32-strchr: New file.
69323         * lib/unistr/u8-strchr.c: New file.
69324         * lib/unistr/u16-strchr.c: New file.
69325         * lib/unistr/u32-strchr.c: New file.
69326
69327         * modules/unistr/u8-strcmp: New file.
69328         * modules/unistr/u16-strcmp: New file.
69329         * modules/unistr/u32-strcmp: New file.
69330         * lib/unistr/u8-strcmp.c: New file.
69331         * lib/unistr/u16-strcmp.c: New file.
69332         * lib/unistr/u32-strcmp.c: New file.
69333
69334         * modules/unistr/u8-strcpy: New file.
69335         * modules/unistr/u16-strcpy: New file.
69336         * modules/unistr/u32-strcpy: New file.
69337         * lib/unistr/u8-strcpy.c: New file.
69338         * lib/unistr/u16-strcpy.c: New file.
69339         * lib/unistr/u32-strcpy.c: New file.
69340         * lib/unistr/u-strcpy.h: New file.
69341
69342         * modules/unistr/u8-strcspn: New file.
69343         * modules/unistr/u16-strcspn: New file.
69344         * modules/unistr/u32-strcspn: New file.
69345         * lib/unistr/u8-strcspn.c: New file.
69346         * lib/unistr/u16-strcspn.c: New file.
69347         * lib/unistr/u32-strcspn.c: New file.
69348         * lib/unistr/u-strcspn.h: New file.
69349
69350         * modules/unistr/u8-strdup: New file.
69351         * modules/unistr/u16-strdup: New file.
69352         * modules/unistr/u32-strdup: New file.
69353         * lib/unistr/u8-strdup.c: New file.
69354         * lib/unistr/u16-strdup.c: New file.
69355         * lib/unistr/u32-strdup.c: New file.
69356         * lib/unistr/u-strdup.h: New file.
69357
69358         * modules/unistr/u8-strlen: New file.
69359         * modules/unistr/u16-strlen: New file.
69360         * modules/unistr/u32-strlen: New file.
69361         * lib/unistr/u8-strlen.c: New file.
69362         * lib/unistr/u16-strlen.c: New file.
69363         * lib/unistr/u32-strlen.c: New file.
69364         * lib/unistr/u-strlen.h: New file.
69365
69366         * modules/unistr/u8-strmblen: New file.
69367         * modules/unistr/u16-strmblen: New file.
69368         * modules/unistr/u32-strmblen: New file.
69369         * lib/unistr/u8-strmblen.c: New file.
69370         * lib/unistr/u16-strmblen.c: New file.
69371         * lib/unistr/u32-strmblen.c: New file.
69372
69373         * modules/unistr/u8-strmbtouc: New file.
69374         * modules/unistr/u16-strmbtouc: New file.
69375         * modules/unistr/u32-strmbtouc: New file.
69376         * lib/unistr/u8-strmbtouc.c: New file.
69377         * lib/unistr/u16-strmbtouc.c: New file.
69378         * lib/unistr/u32-strmbtouc.c: New file.
69379
69380         * modules/unistr/u8-strncat: New file.
69381         * modules/unistr/u16-strncat: New file.
69382         * modules/unistr/u32-strncat: New file.
69383         * lib/unistr/u8-strncat.c: New file.
69384         * lib/unistr/u16-strncat.c: New file.
69385         * lib/unistr/u32-strncat.c: New file.
69386         * lib/unistr/u-strncat.h: New file.
69387
69388         * modules/unistr/u8-strncmp: New file.
69389         * modules/unistr/u16-strncmp: New file.
69390         * modules/unistr/u32-strncmp: New file.
69391         * lib/unistr/u8-strncmp.c: New file.
69392         * lib/unistr/u16-strncmp.c: New file.
69393         * lib/unistr/u32-strncmp.c: New file.
69394
69395         * modules/unistr/u8-strncpy: New file.
69396         * modules/unistr/u16-strncpy: New file.
69397         * modules/unistr/u32-strncpy: New file.
69398         * lib/unistr/u8-strncpy.c: New file.
69399         * lib/unistr/u16-strncpy.c: New file.
69400         * lib/unistr/u32-strncpy.c: New file.
69401         * lib/unistr/u-strncpy.h: New file.
69402
69403         * modules/unistr/u8-strnlen: New file.
69404         * modules/unistr/u16-strnlen: New file.
69405         * modules/unistr/u32-strnlen: New file.
69406         * lib/unistr/u8-strnlen.c: New file.
69407         * lib/unistr/u16-strnlen.c: New file.
69408         * lib/unistr/u32-strnlen.c: New file.
69409         * lib/unistr/u-strnlen.h: New file.
69410
69411         * modules/unistr/u8-strpbrk: New file.
69412         * modules/unistr/u16-strpbrk: New file.
69413         * modules/unistr/u32-strpbrk: New file.
69414         * lib/unistr/u8-strpbrk.c: New file.
69415         * lib/unistr/u16-strpbrk.c: New file.
69416         * lib/unistr/u32-strpbrk.c: New file.
69417         * lib/unistr/u-strpbrk.h: New file.
69418
69419         * modules/unistr/u8-strrchr: New file.
69420         * modules/unistr/u16-strrchr: New file.
69421         * modules/unistr/u32-strrchr: New file.
69422         * lib/unistr/u8-strrchr.c: New file.
69423         * lib/unistr/u16-strrchr.c: New file.
69424         * lib/unistr/u32-strrchr.c: New file.
69425
69426         * modules/unistr/u8-strspn: New file.
69427         * modules/unistr/u16-strspn: New file.
69428         * modules/unistr/u32-strspn: New file.
69429         * lib/unistr/u8-strspn.c: New file.
69430         * lib/unistr/u16-strspn.c: New file.
69431         * lib/unistr/u32-strspn.c: New file.
69432         * lib/unistr/u-strspn.h: New file.
69433
69434         * modules/unistr/u8-strstr: New file.
69435         * modules/unistr/u16-strstr: New file.
69436         * modules/unistr/u32-strstr: New file.
69437         * lib/unistr/u8-strstr.c: New file.
69438         * lib/unistr/u16-strstr.c: New file.
69439         * lib/unistr/u32-strstr.c: New file.
69440         * lib/unistr/u-strstr.h: New file.
69441
69442         * modules/unistr/u8-strtok: New file.
69443         * modules/unistr/u16-strtok: New file.
69444         * modules/unistr/u32-strtok: New file.
69445         * lib/unistr/u8-strtok.c: New file.
69446         * lib/unistr/u16-strtok.c: New file.
69447         * lib/unistr/u32-strtok.c: New file.
69448         * lib/unistr/u-strtok.h: New file.
69449
69450         * modules/unistr/u8-uctomb: New file.
69451         * modules/unistr/u16-uctomb: New file.
69452         * modules/unistr/u32-uctomb: New file.
69453         * lib/unistr/u8-uctomb.c: New file.
69454         * lib/unistr/u16-uctomb.c: New file.
69455         * lib/unistr/u32-uctomb.c: New file.
69456
69457         * MODULES.html.sh (Unicode string functions): Add the new modules.
69458
69459 2007-01-08  Bruno Haible  <bruno@clisp.org>
69460
69461         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
69462         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
69463         subdirectories.
69464
69465 2007-01-08  Karl Berry  <karl@gnu.org>
69466
69467         * doc/error.texi: mention that main() fns must set program_name
69468         when progname is used.
69469
69470 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
69471
69472         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
69473         WCTYPE_H is empty, for the benefit of builds from non-distclean
69474         directories.  Problem reported by Eric Blake in
69475         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
69476
69477 2007-01-08  Bruno Haible  <bruno@clisp.org>
69478
69479         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
69480         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
69481         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
69482         PROVIDE_CANONICALIZE_FILENAME_MODE.
69483         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
69484
69485 2007-01-08  Bruno Haible  <bruno@clisp.org>
69486
69487         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
69488         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
69489         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
69490         * lib/fts.c: Likewise.
69491         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
69492
69493 2006-12-25  Bruno Haible  <bruno@clisp.org>
69494
69495         * modules/utf8-ucs4-safe: New file.
69496         * lib/utf8-ucs4-safe.h: New file.
69497         * lib/unistr/utf8-ucs4-safe.c: New file.
69498
69499         * modules/utf16-ucs4-safe: New file.
69500         * lib/utf16-ucs4-safe.h: New file.
69501         * lib/unistr/utf16-ucs4-safe.c: New file.
69502
69503         * MODULES.html.sh (Unicode string functions): Add the new modules.
69504
69505 2007-01-08  Bruno Haible  <bruno@clisp.org>
69506
69507         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
69508         (Depends-on): Add unitypes.
69509         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69510         (u8_mbtouc_aux): Move out to separate file.
69511         (u8_mbtouc): Use ucs4_t, uint8_t types.
69512         * lib/unistr/utf8-ucs4.c: New file.
69513
69514         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
69515         (Depends-on): Add unitypes.
69516         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
69517         (u16_mbtouc_aux): Move out to separate file.
69518         (u16_mbtouc): Use ucs4_t, uint16_t types.
69519         * lib/unistr/utf16-ucs4.c: New file.
69520
69521         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
69522         (Depends-on): Add unitypes.
69523         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
69524         (u8_uctomb_aux): Move out to separate file.
69525         (u8_uctomb): Use ucs4_t, uint8_t types.
69526         * lib/unistr/ucs4-utf8.c: New file.
69527
69528         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
69529         (Depends-on): Add unitypes.
69530         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
69531         (u16_uctomb_aux): Move out to separate file.
69532         (u16_uctomb): Use ucs4_t, uint16_t types.
69533         * lib/unistr/ucs4-utf16.c: New file.
69534
69535 2006-12-25  Bruno Haible  <bruno@clisp.org>
69536
69537         * modules/unitypes: New file.
69538         * lib/unitypes.h: New file.
69539         * MODULES.html.sh (func_all_modules): New section "Unicode string
69540         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
69541         this section. Add unitypes.
69542
69543 2007-01-08  Bruno Haible  <bruno@clisp.org>
69544
69545         Avoid variable names that conflict with those from libtool.
69546         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
69547         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
69548         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
69549         library_names_spec to acl_library_names_spec, hardcode_* to
69550         acl_hardcode_*.
69551         Reported by Ralf Wildenhues.
69552
69553 2007-01-08  Bruno Haible  <bruno@clisp.org>
69554
69555         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
69556         definition.
69557         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
69558         definition.
69559         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
69560         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
69561         definition.
69562         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
69563         definition.
69564         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
69565         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
69566         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
69567         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
69568         definition.
69569         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
69570         definition.
69571         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
69572         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
69573         GC_USE_<algorithm>.
69574         * lib/gc-libgcrypt.c: Likewise.
69575         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
69576         * modules/gc-arctwo (configure.ac): Likewise.
69577         * modules/gc-des (configure.ac): Likewise.
69578         * modules/gc-hmac-md5 (configure.ac): Likewise.
69579         * modules/gc-hmac-sha1 (configure.ac): Likewise.
69580         * modules/gc-md2 (configure.ac): Likewise.
69581         * modules/gc-md4 (configure.ac): Likewise.
69582         * modules/gc-md5 (configure.ac): Likewise.
69583         * modules/gc-random (configure.ac): Likewise.
69584         * modules/gc-rijndael (configure.ac): Likewise.
69585         * modules/gc-sha1 (configure.ac): Likewise.
69586
69587 2007-01-08  Bruno Haible  <bruno@clisp.org>
69588
69589         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
69590         macro definition.
69591         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
69592         definition.
69593         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
69594         definition.
69595         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
69596         * modules/fcntl-safer (configure.ac): Likewise.
69597         * modules/fopen-safer (configure.ac): Likewise.
69598         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
69599         GNULIB_FWRITEERROR macro definition.
69600
69601 2007-01-08  Bruno Haible  <bruno@clisp.org>
69602
69603         * m4/gnulib-common.m4: New file.
69604         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
69605         (func_get_filelist): Add m4/gnulib-common.m4.
69606
69607 2007-01-08  Bruno Haible  <bruno@clisp.org>
69608
69609         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
69610         command.
69611
69612 2007-01-08  Jim Meyering  <jim@meyering.net>
69613
69614         Use a more robust test for a "can't happen" condition.
69615         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
69616         narrowed the st_size value.  Presuming the "can't happen" condition
69617         is true, that narrowing could conceivably convert an invalid st_size
69618         value into a valid one.  Instead, use a change based on Matthew
69619         Woehlke's original patch.
69620
69621         Slight readability improvement: use an assert-like macro
69622         in place of literal "abort ()" uses.
69623         * lib/fts.c (fts_assert): Define.
69624         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
69625         Use this macro instead of a bare 'abort'.
69626
69627 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
69628
69629         Don't worry about using IRIX 5.3's wctype.h broken definitions;
69630         simply work around them.
69631         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
69632         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
69633         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
69634         declaring.
69635         Don't bother to define as macros, since the standard doesn't require it.
69636         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
69637         longer worry about IRIX 5.3.
69638         (HAVE_WCTYPE_CTMP_BUG): Remove.
69639
69640 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69641
69642         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
69643         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
69644         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
69645         Problems reported by Georg Schwarz for IRIX 5.3.
69646
69647         * gnulib-tool (autoconf_minversion): Take the maximum version number
69648         found, not the minimum.  Problem reported by James Youngman.
69649
69650 2007-01-03  Karl Berry  <karl@gnu.org>
69651
69652         * doc/error.texi: new file, explaining interaction with progname.
69653         * doc/gnulib.texi: include it.  Update copyright.
69654
69655 2007-01-03  Simon Josefsson  <simon@josefsson.org>
69656
69657         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
69658         AC_CANONICAL_HOST, to improve autobuild outputs.
69659
69660 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
69661             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69662
69663         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
69664         sockets, server sockets, and other file descriptors.  Count errors
69665         to compute the return value.  Reorder the code a bit to be easier
69666         to follow.  Don't set event bits that were not requested (except
69667         POLLERR and POLLHUP).
69668
69669 2007-01-01  Bruno Haible  <bruno@clisp.org>
69670
69671         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
69672
69673 2007-01-03  Jim Meyering  <jim@meyering.net>
69674
69675         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
69676
69677 2007-01-02  Bruno Haible  <bruno@clisp.org>
69678
69679         * modules/settime (Include): Require timespec.h.
69680         * modules/nanosleep (Include): Likewise.
69681
69682 2007-01-01  Bruno Haible  <bruno@clisp.org>
69683
69684         * gnulib-tool (func_emit_copyright_notice): Bump year.
69685         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
69686
69687 2007-01-01  Bruno Haible  <bruno@clisp.org>
69688
69689         Improve support for OpenBSD.
69690         * build-aux/config.rpath (libname_spec): Export.
69691         (library_names_spec): New variable. Export.
69692         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
69693         library_names_spec from the config.rpath output. Locate shared library
69694         through the name pattern in library_names_spec.
69695
69696 2007-01-01  Eric Blake  <ebb9@byu.net>
69697
69698         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
69699
69700 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
69701
69702         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
69703         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
69704         assume the C locale, and avoid an "eval" that could cause trouble.
69705         Problem with SORT reported by Bob Proulx.
69706
69707         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
69708         Define.  Trivial patch from Henning Nielsen Lund, originally
69709         sent to bug-grep@gnu.org today.
69710
69711 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
69712
69713         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
69714         struct stat.  Problem reported by Henning Nielsen Lund.
69715         * lib/acl.c: Include acl.h first, to check interface.  Don't
69716         bother to include sys/types.h and sys/stat.h again.
69717
69718 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
69719
69720         Import the following change from libc; problem reported by
69721         Sven Verdoolaege.
69722
69723         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
69724
69725         [BZ #1373]
69726         * lib/argp.h: Remove __NTH for __argp_usage inline function.
69727
69728 2006-12-28  Jim Meyering  <jim@meyering.net>
69729
69730         * build-aux/announce-gen: Do not assume that the package
69731         builds any of tar.gz, tar.bz2, and .xdelta files.
69732         Suggestion from Simon Josefsson.
69733
69734 2006-12-28  Simon Josefsson  <simon@josefsson.org>
69735
69736         * modules/announce-gen: New file.
69737
69738 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
69739
69740         * lib/mbchar.h: Just include <wctype.h>; the wctype module
69741         handles its gotchas now.
69742         * lib/mbswidth.c: Likewise.
69743         * lib/wcwidth.h: Likewise.
69744         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
69745         and iswcntrl; the wctype module does this stuff now.
69746         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
69747         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69748         * modules/mbchar (Depends-on): Add wctype.
69749         * modules/mbswidth (Depends-on): Likewise.
69750         * modules/wcwidth (Depends-on): Likewise.
69751
69752 2006-12-27  Eric Blake  <ebb9@byu.net>
69753
69754         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
69755         module uses more than what <wctype.h> is required to provide.
69756
69757 2006-12-26  Eric Blake  <ebb9@byu.net>
69758
69759         * gnulib-tool (sed_extract_prog): Avoid space-tab.
69760
69761 2006-12-26  Eric Blake  <ebb9@byu.net>
69762
69763         * modules/absolute-header: New module.
69764         * modules/fcntl (Depends-on): Depend on it.
69765         * modules/inttypes (Depends-on): Likewise.
69766         * modules/stdint (Depends-on): Likewise.
69767         * modules/sys_stat (Depends-on): Likewise.
69768         * modules/wctype (Depends-on): Likewise.
69769         * MODULES.html.sh (Support for building libraries and
69770         executables): Document it.
69771
69772 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
69773
69774         * gnulib-tool (SED): Remove, undoing previous change.
69775         The problem was that it broke coreutils on Solaris, because
69776         "sed --posix" leaked into a makefile.
69777         (sed): New alias, if 'alias' and GNU sed.
69778
69779 2006-12-24  Jim Meyering  <jim@meyering.net>
69780
69781         Work around an fchownat bug in glibc-2.4:
69782         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
69783         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
69784         in spite of the -P option.
69785         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
69786         New macros.
69787         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
69788         * modules/openat (Files): Add lib/fchownat.c.
69789         * lib/openat.c (fchownat): Don't define here.  Move to...
69790         * lib/fchownat.c: ...this new file.
69791
69792 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
69793
69794         Fix bug reported by Bruno Haible in
69795         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
69796         where quotearg.c didn't compile on Mac OS X 10.2 because it
69797         lacks <wchar.h> and wint_t.
69798         * lib/wctype_.h (__wctype_wint_t): New type.
69799         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
69800         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
69801         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
69802         Arg is now of type __wctype_wint_t, not wint_t.
69803         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
69804         substitute HAVE_WINT_T.
69805         * modules/wctype (Files): Add m4/wint_t.m4.
69806         (wctype.h): Substitute HAVE_WINT_T.
69807
69808 2006-12-23  Bruno Haible  <bruno@clisp.org>
69809
69810         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
69811
69812 2006-12-23  Bruno Haible  <bruno@clisp.org>
69813
69814         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
69815         S_ISLNK.
69816         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
69817         mingw.
69818
69819 2006-12-22  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/copy-file.c: Include acl.h.
69822         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
69823         Close the file descriptors only after being done with copy_acl.
69824         * modules/copy-file (Depends-on): Add acl.
69825
69826 2006-12-22  Bruno Haible  <bruno@clisp.org>
69827
69828         * gnulib-tool (SED): New variable.
69829         Use $SED instead of sed everywhere.
69830
69831 2006-12-22  Bruno Haible  <bruno@clisp.org>
69832
69833         * modules/no-c++: New file.
69834         * m4/no-c++.m4: New file.
69835         * MODULES.html.sh (Support for building libraries and executables):
69836         Add no-c++.
69837
69838 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
69839
69840         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
69841         Include <limits.h>, and use its INT_MAX to rewrite the
69842         j loop so that it does not overflow 'int'.  Problem reported by
69843         Ralf Wildenhues in
69844         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
69845         Play it safe by shifting left by 1 rather than multiplying by 2,
69846         as GCC is less likely to optimize this away when the value
69847         is signed (when it assumes overflow leads to undefined behavior).
69848         Also, don't assume time_t uses two's complement.
69849
69850 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
69851
69852         * MODULES.html.sh: New module wctype.
69853         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
69854         * lib/fnmatch.c: Don't bother to include <wchar.h> before
69855         <wctype.h>, since the new wctype module should fix this.
69856         * lib/quotearg.c: Include <wctype.h> unconditionally, since
69857         the wctype module should arrange for it.
69858         * lib/regex_internal.h: Likewise.
69859         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
69860         since the wctype module should handle this now.
69861         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
69862         * modules/fnmatch (Depends-on): Add wctype.
69863         * modules/quotearg (Depends-on): Likewise.
69864         * modules/regex (Depends-on): Likewise.
69865
69866 2006-12-19  Bruno Haible  <bruno@clisp.org>
69867
69868         * lib/strdup.h [C++]: Wrap definitions in extern "C".
69869         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
69870
69871 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69872
69873         * modules/savewd (Depends-on): Fix dependency on fcntl.
69874
69875 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69876
69877         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
69878         conforms to C99, rather than relying on the user's environment
69879         setting of STDINT_H.
69880
69881 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
69882         and Eric Blake  <ebb9@byu.net>
69883
69884         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
69885         This is more consistent with the other defines here.
69886         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
69887         Port to z/OS.  Problem reported by Paul Gilmartin.
69888         Change local vars to use gl_ prefix rather than ac_.
69889         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
69890         with other defines.
69891         * modules/double-slash-root: New module.
69892         * modules/dirname (Files): Remove m4/double-slash-root.m4.
69893         (Depends-on): Add double-slash-root.
69894         * MODULES.html.sh (File system functions): Mention new module.
69895
69896 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
69897
69898         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
69899         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
69900         This is for the benefit of gzip, which doesn't do i18n.
69901
69902 2006-12-12  Jim Meyering  <jim@meyering.net>
69903
69904         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
69905         Reported by Andreas Schwab <schwab@suse.de>.
69906
69907 2006-12-12  Bruno Haible  <bruno@clisp.org>
69908
69909         Merge these changes.
69910         2006-09-05  Bruno Haible  <bruno@clisp.org>
69911         * lib/iconvme.c (iconv_string): No need to save and restore errno when
69912         iconv_alloc succeeded.
69913         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
69914         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
69915         test for " && dest " at the end - dest is always != NULL there. Call
69916         iconv with 4xNULL arguments initially, to reset the state. Call iconv
69917         with 2xNULL arguments, also to flush the state storage. Handle the
69918         IRIX iconv behaviour. Realloc the final result, to throw away unused
69919         memory.
69920
69921 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
69922
69923         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
69924         and fchmodat unconditionally, since glibc 2.4 has them.
69925         Problem reported by Arkadiusz Miskiewicz.
69926
69927 2006-12-10  Bruno Haible  <bruno@clisp.org>
69928
69929         * gnulib-tool (func_import): Show the include files only for those
69930         modules that are copied and specified.
69931         Reported by Karl Berry.
69932
69933 2006-12-08  Jim Meyering  <jim@meyering.net>
69934
69935         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
69936         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
69937
69938         * build-aux/announce-gen: Add two new options, both optional:
69939         --bootstrap-tools=TOOL_LIST
69940               a comma-separated list of tools, e.g.,
69941               autoconf,automake,bison,gnulib
69942         --gnulib-snapshot-date=DATE
69943               if gnulib is in the bootstrap tool list,
69944               then report this as the snapshot date.
69945               If not specified, use the current date/time.
69946               If you specify a date here, be sure it's UTC.
69947
69948 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69949
69950         * tests/test-argp-2.sh: Fix test to match actual output.
69951         (func_compare): Fix sed script to be portable.
69952
69953 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
69954
69955         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
69956         workaround for this case.  It is not autoconfigured now; offhand
69957         it's hard to see how to autoconfigure it.
69958
69959 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
69962         a directory that is about to be chowned.  Such a directory's
69963         initial file permissions should permit the owner only and this
69964         should not be changed until after the chown, since the group and
69965         other bits would be incorrect if they granted permission before
69966         the chown.
69967
69968         Fix porting problem for iswctype reported by Georg Schwarz in:
69969         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
69970         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
69971         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
69972         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
69973         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
69974
69975 2006-12-03  Jim Meyering  <jim@meyering.net>
69976
69977         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
69978         p->fts_statp may not yet be defined.
69979         (fts_read): Instead, set it in the caller, once p->fts_statp is
69980         sure to be defined, and corresponds to a top-level directory.
69981         This bug made du -x fail.  Here's the coreutils test case:
69982         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
69983         Reported by Mike Frysinger.
69984
69985 2006-12-01  Jim Meyering  <jim@meyering.net>
69986
69987         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
69988         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
69989         Reported by Simon Josefsson.
69990
69991 2006-11-30  Jim Meyering  <jim@meyering.net>
69992
69993         * m4/warning.m4: Use the all-permissive copyright notice
69994         recommended by RMS (rather than LGPL).
69995         * m4/vararrays.m4: Likewise.
69996         * m4/flexmember.m4: Likewise.
69997
69998 2006-11-29  Bruno Haible  <bruno@clisp.org>
69999
70000         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70001         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70002         using +=.
70003         Reported by Simon Josefsson <simon@josefsson.org>.
70004
70005 2006-11-28  James Youngman <jay@gnu.org>
70006
70007         * README: Advise users that they might find the bug-gnulib@gnu.org
70008         and autotools-announce@gnu.org mailing lists useful.
70009
70010 2006-11-28  Bruno Haible  <bruno@clisp.org>
70011
70012         * m4/ptrdiff_max.m4: Remove file.
70013
70014 2006-11-21  Bruno Haible  <bruno@clisp.org>
70015
70016         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70017         _AC_COMPUTE_INT.
70018         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70019         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70020         _AC_COMPUTE_INT.
70021         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70022         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70023         _AC_COMPUTE_INT.
70024         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70025
70026 2006-11-28  Jim Meyering  <jim@meyering.net>
70027
70028         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70029         warning from "gcc -Wshadow" about shadowing the builtin.
70030
70031 2006-11-27  Bruno Haible  <bruno@clisp.org>
70032
70033         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70034         _AC_COMPUTE_INT.
70035         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70036
70037 2006-11-27  Bruno Haible  <bruno@clisp.org>
70038             Paul Eggert  <eggert@cs.ucla.edu>
70039
70040         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70041
70042 2006-11-26  Bruno Haible  <bruno@clisp.org>
70043
70044         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70045         noinst_LTLIBRARIES.
70046
70047 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70048             Bruno Haible  <bruno@clisp.org>
70049
70050         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70051         if compiling with "gcc -ansi".
70052
70053 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70054
70055         Fix some incompatibilities with gcc -ansi -pedantic.
70056         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70057         if compiling pedantically with GCC, unless it's C99 or later.
70058         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70059         it mishandles gcc -ansi -pedantic as well.
70060         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70061         if gcc -pedantic.
70062         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70063         initializers for struct if -pedantic, unless it's C99 or later.
70064
70065 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70066
70067         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70068         Don't close an fd more than once. Identical atimes indicate
70069         success, not failure.
70070
70071 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70072
70073         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70074
70075 2006-11-23  Jim Meyering  <jim@meyering.net>
70076
70077         * build-aux/announce-gen: New file.  From coreutils.
70078
70079 2006-11-22  Jim Meyering  <jim@meyering.net>
70080
70081         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70082         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70083         (fts_read): Use a temporary to narrow the overused st_size member
70084         before using it in a switch statement.  Reported by Matthew Woehlke.
70085
70086         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70087         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70088
70089 2006-11-20  Bruno Haible  <bruno@clisp.org>
70090
70091         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70092         changequote instead of pairs of brackets.
70093         Reported by Andreas Schwab <schwab@suse.de>.
70094
70095 2006-11-21  Jim Meyering  <jim@meyering.net>
70096
70097         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70098         so as to remain compatible with older compilers.
70099         Patch from Michael Deutschmann.
70100
70101 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * MODULES.html.sh (File system functions): Add openat.
70104
70105         * lib/openat.h (rpl_fstatat): New macro, if
70106         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70107         (fstatat): Define to rpl_fstatat under the same conditions,
70108         unless COMPILING_FSTATAT.
70109         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70110         seems to have the bug.
70111         * lib/fstatat.c: New file.
70112         * modules/openat (Files): Add it.
70113
70114 2006-11-20  Bruno Haible  <bruno@clisp.org>
70115
70116         * Makefile: New file.
70117
70118 2006-11-20  Jim Meyering  <jim@meyering.net>
70119
70120         The beginnings of syntax-related checks for gnulib.
70121         * lib/Makefile: New file.
70122         * lib/t-idcache: New script.  Ensure that the two halves of
70123         idcache.c stay in sync.
70124
70125         * lib/idcache.c: Adjust comments in user- and group- portions to
70126         be more accurate, and to be consistent with one another.
70127
70128 2006-11-20  Jim Meyering  <jim@meyering.net>
70129
70130         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70131         continue using the flexible array member (thus, this module performs
70132         half as many malloc calls), with the addition that...
70133         (getgroup, getuser): Consistently record a non-match via an empty
70134         "name" string, and map an empty string match to a NULL return value.
70135         * modules/idcache (Depends-on): Re-add flexmember.
70136
70137         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70138         (getuidbyname, getgroup, getgidbyname): Likewise.
70139
70140         Use cleaner syntax: NULL rather than 0.
70141         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70142
70143 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70144
70145         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70146         It mishandled the case where the group was missing.
70147         Problem reported by Greg Schafer.
70148         * modules/idcache: Likewise.
70149
70150 2006-11-18  Jim Meyering  <jim@meyering.net>
70151
70152         * check-module (%exempt_header): Add exception for some
70153         conditionally-included headers.
70154
70155         * modules/i-ring (Depends-on): Add verify.
70156         (License): Change to LGPL.
70157
70158 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70159
70160         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70161         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70162         and inttostr.h.  Use snprintf rather than uinttostr, so that
70163         LGPLed code doesn't depend on GPLed.
70164
70165 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70166
70167         * modules/inline (License): Change from GPL to LGPL.
70168
70169 2006-11-17  Jim Meyering  <jim@meyering.net>
70170
70171         * modules/d-type (License): Switch to LGPL.
70172
70173 2006-11-15  Bruno Haible  <bruno@clisp.org>
70174
70175         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70176
70177 2006-11-15  Eric Blake  <ebb9@byu.net>
70178
70179         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70180         the module dependency.
70181
70182 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70183             Bruno Haible  <bruno@clisp.org>
70184
70185         * gnulib-tool (func_create_testdir): Add license consistency check.
70186
70187 2006-11-15  Eric Blake  <ebb9@byu.net>
70188
70189         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70190         random "(cached)" in configure output.
70191
70192 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70193
70194         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70195         test for conforming inttypes.h is both announced and cached.
70196
70197         * MODULES.html.sh (seen_modules, seen_files): New variables.
70198         (func_module): Rewrite to use a few less gnulib-tool and sed
70199         invocations.  Avoid a couple of quadratic algorithms for ...
70200         (missed_modules, missed_files): ... these, with ...
70201         (func_append, func_tmpdir): ... these new functions, from
70202         gnulib-tool.  Analogously, install traps for cleanup.
70203
70204         * tests/test-gc.c (main): Remove unused variables.
70205         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70206
70207 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70208
70209         * modules/inttostr (License): Change to LGPL.
70210
70211 2006-11-14  Eric Blake  <ebb9@byu.net>
70212
70213         * modules/tempname (License): Change to LGPL.
70214
70215 2006-11-14  Eric Blake  <ebb9@byu.net>
70216
70217         * doc/functions.texi (Function Portability): *printf functions on
70218         Cygwin now understand all POSIX size specifiers.
70219
70220 2006-11-14  Bruno Haible  <bruno@clisp.org>
70221
70222         * modules/c-ctype (License): Change to LGPL.
70223
70224 2006-11-12  Bruno Haible  <bruno@clisp.org>
70225
70226         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70227         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70228         for GNOME libraries, for which the include files are installed in
70229         subdirectories of $prefix/include.
70230
70231 2006-11-12  Bruno Haible  <bruno@clisp.org>
70232
70233         * m4/lib-link.m4: Require at least autoconf-2.54.
70234         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70235         name to underscores for the --with option.
70236
70237 2006-11-13  Bruno Haible  <bruno@clisp.org>
70238
70239         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70240         the tests directory.
70241         Reported by Ralf Wildenhues.
70242
70243 2006-11-13  Bruno Haible  <bruno@clisp.org>
70244
70245         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70246         (func_emit_initmacro_end): Undo the override here.
70247         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70248         Works around the famous automake error in coreutils.
70249
70250 2006-11-13  Eric Blake  <ebb9@byu.net>
70251
70252         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70253         element, not its node.
70254
70255 2006-11-12  Bruno Haible  <bruno@clisp.org>
70256
70257         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70258         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70259
70260 2006-11-12  Bruno Haible  <bruno@clisp.org>
70261
70262         * gnulib-tool: New option --local-symlink.
70263         (func_usage): Document it.
70264         (lsymbolic): New variable.
70265         (func_import, func_create_testdir): If --symlink was not specified,
70266         test whether --local-symlink was specified and the file comes from
70267         the local_gnulib_dir.
70268
70269 2006-11-12  Bruno Haible  <bruno@clisp.org>
70270
70271         * gnulib-tool (func_ln): New function.
70272         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70273
70274 2006-11-12  Bruno Haible  <bruno@clisp.org>
70275
70276         Finish support for source files in subdirectories.
70277         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70278         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70279         AUTOMAKE_OPTIONS.
70280         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70281
70282 2006-11-12  Bruno Haible  <bruno@clisp.org>
70283
70284         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70285         EXTRA_lib_SOURCES augmentation.
70286         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70287
70288 2006-11-12  Jim Meyering  <jim@meyering.net>
70289
70290         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70291         file descriptors.  This also averts a failure on systems with
70292         native openat support when a traversed directory lacks "x" access.
70293         * lib/fts_.h: Include "i-ring.h"
70294         (struct FTS) [fts_fd_ring]: New member.
70295         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70296         (FCHDIR): Add parentheses.
70297         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70298         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70299         When descending, rather than simply closing the previous
70300         fts_cwd_fd value, push that file descriptor onto the ring.
70301         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70302         (fts_open): Initialize the new fd_ring member.
70303         (fts_close): Clear the ring.
70304         (fts_safe_changedir): When possible, use our new fd_ring to skip
70305         the diropen and fstat and dev/ino comparison that would normally
70306         accompany a virtual `chdir ("..")'.
70307
70308         * modules/fts (Depends-on): Add i-ring.
70309         * modules/i-ring: New module.
70310         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70311         * m4/i-ring.m4: New file.
70312
70313 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70314
70315         * gnulib-tool (func_create_testdir): Fix replacement of
70316         `build-aux' in configure.ac.  Run autotools in gltests
70317         subdirectory.
70318         (func_create_testdir, func_create_megatestdir, test): There is
70319         no need for '--force' in most autotool invocations in a new
70320         tree.  Actually fail the whole test if any of the tools, or the
70321         configure or make stages fail.
70322
70323         Sync from Automake.
70324         * build-aux/gnupload: Revert last change.  Add pointer to upload
70325         instructions of the GNU Maintenance Instructions.
70326         Suggestion by Karl Berry.
70327
70328 2006-11-10  Jim Meyering  <jim@meyering.net>
70329
70330         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70331
70332 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70333
70334         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70335         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70336         (bind_textdomain_codeset) [! ENABLE_NLS]:
70337         Evaluate all the arguments.  That way, callers get compatible behavior
70338         if the arguments have side effects.  Also, it avoids some GCC
70339         diagnostics in some cases; Joel E. Denny reported problems when Bison
70340         was configured with --enable-gcc-warnigs.
70341
70342 2006-11-10  Jim Meyering  <jim@meyering.net>
70343
70344         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70345         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70346         account.
70347
70348 2006-11-10  Jim Meyering  <jim@meyering.net>
70349
70350         * modules/inline: New file/module.
70351         * modules/xalloc (Files): Remove m4/inline.m4.
70352         (Depends-on): Add inline, instead.
70353         * modules/oset: Likewise.
70354         * modules/list: Likewise.
70355
70356 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70357
70358         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70359         Problem reported by Matthew Woehlke.
70360
70361 2006-11-09  Bruno Haible  <bruno@clisp.org>
70362
70363         * lib/tempname.c (gen_tempname): Remove variant that invokes
70364         __gen_tempname.
70365         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70366         __gen_tempname.
70367
70368 2006-11-08  Bruno Haible  <bruno@clisp.org>
70369
70370         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70371         to 'yes' instead of 'cross-compiling'.
70372
70373 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70374
70375         * lib/quotearg.h (quotearg_free): New decl.
70376         * lib/quotearg.c (quotearg_free): New function.
70377         (slot0, nslots, slotvec0, slotvec):
70378         Now file-scope so that quotearg_free can get at them.
70379
70380 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70381
70382         Sync from Automake.
70383         * build-aux/gnupload: Add missing 'gnu' to example URL.
70384         Report by Karl Berry.
70385
70386 2006-11-08  Bruno Haible  <bruno@clisp.org>
70387
70388         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70389         Suggested by Paul Eggert.
70390
70391 2006-11-08  Jim Meyering  <jim@meyering.net>
70392
70393         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70394         It's already included if !_LIBC.
70395         (fts_safe_changedir): Add a comment.
70396
70397 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70400         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70401         Matthew Woehlke.
70402
70403         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70404         definitions up, to avoid colliding with change below.
70405         (static_inline) [HAVE_INLINE]: New macro.
70406         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70407         Provide extern decls when !HAVE_INLINE.  Do not define unless
70408         static_inline is defined, either by us or by xmalloc.c.  Use
70409         static_inline rather than static inline.
70410         (XCALLOC): Optimize sizeof(T) = 1 case.
70411         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70412
70413 2006-11-07  Bruno Haible  <bruno@clisp.org>
70414
70415         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70416         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70417         AC_C_INLINE.
70418         * modules/xalloc (Files): Add m4/inline.m4.
70419
70420 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70421
70422         * README: Fix typo.
70423         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70424         (Miscellanous Notes): ...from this.
70425
70426 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70427
70428         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70429         Mention that offsetof should be used instead of sizeof.
70430         From Bruno Haible.
70431
70432 2006-11-07  Bruno Haible  <bruno@clisp.org>
70433
70434         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70435
70436 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70439         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
70440         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70441         (gl_tree_add_before, gl_tree_add_after):
70442         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
70443         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
70444         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70445         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
70446         (gl_linked_add_after, gl_linked_add_at): Likewise.
70447         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
70448         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
70449         (gl_tree_add_before, gl_tree_add_after): Likewise.
70450         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
70451         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
70452         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
70453
70454 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70455
70456         * lib/gl_oset.h: Use C comment style, not C++ comment style.
70457
70458 2006-11-06  Bruno Haible  <bruno@clisp.org>
70459
70460         * m4/inline.m4: New file.
70461         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
70462         * modules/list (Files): Add m4/inline.m4.
70463         * modules/oset (Files): Likewise.
70464
70465 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
70466
70467         * lib/idcache.c: Include <stddef.h>, for offsetof.
70468         (struct userid.name): Change from char * to a flexible array member.
70469         All uses changed.
70470         * modules/idcache (Depends-on): Add flexmember.
70471
70472         * MODULES.html.sh (Core language properties): New module flexmember.
70473         * modules/flexmember, m4/flexmember.m4: New files.
70474
70475         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
70476         inline functions that are identical with the old xnmalloc_inline,
70477         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
70478         that we can avoid some unnecessary integer multiplications and
70479         divisions in the common case where the element size is known at
70480         compile time.
70481         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
70482         needed.
70483         (xnboundedmalloc): Remove.
70484         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
70485         arguments, for consistency with rest of this header.
70486         (xcharalloc): Rewrite using XNMALLOC.
70487         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
70488         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
70489         versions have been moved to lib/xalloc.h and renamed to be the
70490         non-*_inline versions.
70491         (xmalloc, xrealloc): Implement without reference to the xnmalloc
70492         and xnrealloc functions, since those functions are now inline and
70493         now call us.
70494         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
70495         renaming described above.
70496         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
70497         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
70498         captures the dependency in AC_C_INLINE.
70499
70500         New module canonicalize-lgpl, proposed by Charles Wilson in
70501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
70502         with a few small changes afterwards.
70503         * MODULES.html.sh (File system functions): New module
70504         canonicalize-lgpl.
70505         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
70506         and canonicalize_file_name.
70507         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
70508         * modules/canonicalize-lgpl: New files.
70509
70510 2006-11-05  Bruno Haible  <bruno@clisp.org>
70511
70512         * gnulib-tool (func_import, func_create_testdir): Create directories
70513         also for files in subdirectories of lib/.
70514
70515 2006-11-05  Bruno Haible  <bruno@clisp.org>
70516
70517         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
70518         ANSI C compliant.
70519
70520 2006-11-03  Bruno Haible  <bruno@clisp.org>
70521
70522         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
70523         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
70524         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
70525         (xnboundedmalloc): New inline function.
70526         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
70527         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
70528         xmalloc.
70529         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
70530         xmalloc.
70531         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
70532         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
70533         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
70534         xmalloc.
70535         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70536         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
70537         xmalloc.
70538         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
70539         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70540         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
70541         xmalloc.
70542         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
70543         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
70544         gl_tree_add_after): Use XMALLOC instead of xmalloc.
70545         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
70546         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
70547         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
70548         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
70549
70550 2006-11-03  Bruno Haible  <bruno@clisp.org>
70551
70552         * lib/c-ctype.h [C++]: Define functions without name mangling.
70553         * lib/fwriteerror.h [C++]: Likewise.
70554         * lib/gcd.h [C++]: Likewise.
70555         * lib/linebreak.h [C++]: Likewise.
70556
70557 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
70558
70559         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
70560         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
70561         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
70562         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
70563         Check for functions and headers just once.
70564         Check for declaration of canonicalize_file_name.
70565         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
70566
70567 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70568
70569         * gnulib-tool (func_import): Fix typo in actioncmd.
70570
70571 2006-11-02  Bruno Haible  <bruno@clisp.org>
70572
70573         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
70574         newline sequence in the Makefile.am snippet as a space, like "make"
70575         does.
70576         Reported by Roger Persson <perrog@gmail.com>.
70577
70578 2006-11-01  Bruno Haible  <bruno@clisp.org>
70579
70580         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
70581         already declared in <string.h>.
70582         * lib/strcase.h (strncasecmp): Don't declare it if yes.
70583
70584 2006-11-01  Bruno Haible  <bruno@clisp.org>
70585
70586         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
70587         * lib/strcase.h: Include <string.h>.
70588         (strcasecmp): Define to rpl_strcasecmp here.
70589
70590 2006-11-01  Bruno Haible  <bruno@clisp.org>
70591
70592         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
70593
70594 2006-11-01  Eric Blake  <ebb9@byu.net>
70595
70596         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
70597
70598         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
70599
70600 2006-10-29  Bruno Haible  <bruno@clisp.org>
70601
70602         Make it compile in C++ mode.
70603         * lib/full-write.c (full_rw): Add a cast.
70604
70605 2006-11-01  Bruno Haible  <bruno@clisp.org>
70606
70607         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
70608         be POSIX compliant.
70609         Reported by Roger Persson <perrog@gmail.com>.
70610
70611 2006-11-01  Eric Blake  <ebb9@byu.net>
70612
70613         * lib/getopt_.h: Fix comments.
70614
70615 2006-10-31  Eric Blake  <ebb9@byu.net>
70616
70617         * modules/tmpdir (Depends-on): Add sys_stat.
70618         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
70619         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
70620         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
70621         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
70622         tempname.
70623
70624 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
70625
70626         Avoid some C++ diagnostics reported by Bruno Haible.
70627         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
70628         xmalloc.
70629         (quotearg_alloc): Use xcharalloc rather than xmalloc.
70630         (struct slotvec): Move to top level.
70631         (quotearg_n_options): Rewrite to avoid xmalloc.
70632         * lib/xalloc.h (xcharalloc): New function.
70633         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
70634         [defined __cplusplus]: Add function template that provides result
70635         type propagation.  This part of the change is from Bruno Haible.
70636
70637 2006-10-29  Bruno Haible  <bruno@clisp.org>
70638
70639         Make it compile in C++ mode.
70640         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
70641         * lib/strnlen1.c (strnlen1): Cast memchr result.
70642         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
70643         * lib/clean-temp.c (string_equals, string_hash): Add casts.
70644         (create_temp_dir): Rename local variable 'template'.
70645         (compile_csharp_using_sscli): Add cast.
70646         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
70647         * lib/findprog.c (find_in_path): Likewise.
70648         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
70649         * lib/wait-process.c (register_slave_subprocess): Likewise.
70650
70651 2006-10-22  Bruno Haible  <bruno@clisp.org>
70652
70653         * modules/tsearch: New file.
70654         * lib/tsearch.h: New file.
70655         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
70656         * m4/tsearch.m4: New file.
70657         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
70658
70659 2006-10-29  Eric Blake  <ebb9@byu.net>
70660
70661         * lib/arcfour.c: Assume config.h.
70662         * lib/arctwo.c: Likewise.
70663         * lib/base64.c: Likewise.
70664         * lib/check-version.c: Likewise.
70665         * lib/crc.c: Likewise.
70666         * lib/des.c: Likewise.
70667         * lib/gc-gnulib.c: Likewise.
70668         * lib/gc-libgcrypt.c: Likewise.
70669         * lib/gc-pbkdf2-sha1.c: Likewise.
70670         * lib/getaddrinfo.c: Likewise.
70671         * lib/getdelim.c: Likewise.
70672         * lib/getline.c: Likewise.
70673         * lib/hmac-md5.c: Likewise.
70674         * lib/hmac-sha1.c: Likewise.
70675         * lib/iconvme.c: Likewise.
70676         * lib/md2.c: Likewise.
70677         * lib/md4.c: Likewise.
70678         * lib/memxor.c: Likewise.
70679         * lib/read-file.c: Likewise.
70680         * lib/readline.c: Likewise.
70681         * lib/rijndael-alg-fst.c: Likewise.
70682         * lib/rijndael-api-fst.c: Likewise.
70683         * lib/xgetdomainname.c: Likewise.
70684
70685 2006-10-28  Eric Blake  <ebb9@byu.net>
70686
70687         * lib/xstrndup.c: Assume config.h.
70688
70689 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70690
70691         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
70692         stat-macros.h is now for our own macros, whereas stat_h is for
70693         macros in the <sys/stat.h> name space.
70694         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
70695         (STAT_MACROS_H): Remove.
70696         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
70697         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
70698         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
70699         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
70700         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
70701         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
70702         Move these macros to ...
70703         * lib/stat_.h: here.  Don't include stat-macros.h.
70704         * lib/canonicalize.c: Don't include stat-macros.h.
70705         * lib/chown.c: Likewise.
70706         * lib/euidaccess.c: Likewise.
70707         * lib/file-type.c: Likewise.
70708         * lib/filemode.c: Likewise.
70709         * lib/glob.c: Likewise.
70710         * lib/isapipe.c: Likewise.
70711         * lib/lchown.c: Likewise.
70712         * lib/lstat.c: Likewise.
70713         * lib/mkdir-p.c: Likewise.
70714         * lib/rmdir.c: Likewise.
70715         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
70716         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
70717         unless mkdir isn't declared, to speed up 'configure'.
70718         Always create sys/stat.h, since it's unlikely any real sys/stat.h
70719         would define all the S_* symbols.
70720         * modules/canonicalize (Depends-on):
70721         Depend on sys_stat, not stat-macros.
70722         * modules/chown: Likewise.
70723         * modules/euidaccess: Likewise.
70724         * modules/filemode: Likewise.
70725         * modules/file-type: Likewise.
70726         * modules/glob: Likewise.
70727         * modules/isapipe: Likewise.
70728         * modules/lchown: Likewise.
70729         * modules/lstat: Likewise.
70730         * modules/mkancesdirs: Likewise.
70731         * modules/rmdir: Likewise.
70732         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
70733         * modules/modechange: Likewise.
70734         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
70735         (configure.ac): Remove gl_STAT_MACROS.
70736         * modules/sys_stat (Depends-on): Remove stat-macros.
70737
70738 2006-10-27  Bruno Haible  <bruno@clisp.org>
70739
70740         * m4/signed.m4: Remove file.
70741         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
70742         invocation.
70743         * modules/vasnprintf (Files): Remove m4/signed.m4.
70744
70745 2006-10-27  Bruno Haible  <bruno@clisp.org>
70746
70747         Update to GNU gettext 0.16.
70748         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
70749         m4/inttypes-h.m4, m4/signed.m4.
70750         * m4/gettext.m4: Update to GNU gettext 0.16.
70751         * m4/intl.m4: New file, from GNU gettext.
70752         * m4/intldir.m4: New file, from GNU gettext.
70753         * config/srclist.txt: Update
70754
70755 2006-10-27  Eric Blake  <ebb9@byu.net>
70756
70757         * MODULES.html.sh: Document tempname.
70758         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
70759         dependencies.
70760         (Files): Move lib/tempname.c...
70761         * modules/tempname: ...to this new module.
70762         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
70763         (gl_PREREQ_TEMPNAME): Move...
70764         * m4/tempname.m4: ...to this new file.
70765         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
70766         * modules/sys_stat (Depends-on): Add stat-macros.
70767         * lib/stat_.h (includes): Pick up stat macros.
70768         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
70769         if stat macros are broken.
70770         * lib/tempname.c (includes): No need to include "stat-macros.h".
70771         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
70772         (direxists, __path_search) [!_LIBC]: Don't compile these in
70773         gnulib; the tmpdir module covers that.
70774         * lib/tempname.h: New file.
70775
70776 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
70777
70778         * COPYING: Explain how gnulib-tool converts licence headers.
70779         Almost all wording by Eric Blake.
70780
70781 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
70782
70783         * lib/mbchar.h (is_basic_table): Make read-only.
70784         * lib/mbchar.c (is_basic_table): Likewise.
70785         Reported by John Darrington.
70786
70787 2006-10-25  Bruno Haible  <bruno@clisp.org>
70788
70789         * lib/progname.h (set_program_name): Undefine before defining.
70790
70791 2006-10-25  Bruno Haible  <bruno@clisp.org>
70792
70793         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
70794         false for non-gcc C++ compilers.
70795         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
70796
70797 2006-10-24  Bruno Haible  <bruno@clisp.org>
70798
70799         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
70800         iconv implementations like Irix iconv.
70801
70802 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70803
70804         * modules/vararrays: New file.
70805         * m4/vararrays.m4: New file, taken from diffutils.
70806         * MODULES.html.sh: New module vararrays.
70807
70808 2006-10-24  Karl Berry  <karl@gnu.org>
70809
70810         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
70811         Don't call GNU Unix.
70812
70813 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70814
70815         * users.txt: Add Libtool.
70816
70817         Sync from Libtool:
70818
70819         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70820
70821         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
70822         to gnulib's policy of including config.h unconditionally.
70823
70824 2006-10-24  Bruno Haible  <bruno@clisp.org>
70825
70826         * modules/wcwidth (Files): Add m4/wint_t.m4.
70827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
70828         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
70829
70830 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
70831
70832         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
70833         to pacify GCC with some -W flags enabled.  Problem reported by
70834         Bruno Haible.
70835
70836 2006-10-24  Jim Meyering  <jim@meyering.net>
70837
70838         * MODULES.html.sh: Remove uinttostr.  It's not a module.
70839         Reported by Karl Berry.
70840
70841 2006-10-23  Bruno Haible  <bruno@clisp.org>
70842
70843         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
70844
70845 2006-10-24  Bruno Haible  <bruno@clisp.org>
70846
70847         * lib/gl_list.h: Use C comment style, not C++ comment style.
70848
70849 2006-10-23  Eric Blake  <ebb9@byu.net>
70850
70851         * lib/getaddrinfo.c (includes): Add missing include.
70852
70853 2006-10-23  Bruno Haible  <bruno@clisp.org>
70854             Paul Eggert  <eggert@cs.ucla.edu>
70855
70856         Ability to rename obstack_free.
70857         * lib/obstack.h (__obstack_free): New macro. Declare instead of
70858         obstack_free.
70859         (obstack_free): Invoke the __obstack_free macro.
70860         * lib/obstack.c (obstack_free): Use __obstack_free macro.
70861
70862 2006-10-23  Bruno Haible  <bruno@clisp.org>
70863             Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
70866         __argc, __argv from the declaration. (They are defined as macros on
70867         mingw.)
70868
70869 2006-10-22  Bruno Haible  <bruno@clisp.org>
70870
70871         * doc/gnulib-intro.texi: New file.
70872         * doc/gnulib.texi: Include it.
70873
70874 2006-10-21  Bruno Haible  <bruno@clisp.org>
70875
70876         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
70877         "Introduction", "Miscellanous Notes", "Particular Modules".
70878
70879 2006-10-21  Bruno Haible  <bruno@clisp.org>
70880
70881         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
70882         Change mostlyclean-local rule to avoid sh syntax error from bash
70883         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
70884
70885 2006-10-23  Jim Meyering  <jim@meyering.net>
70886
70887         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
70888         in place of snprintf.
70889
70890         * modules/inttostr (Files): Add lib/uinttostr.c.
70891         * lib/uinttostr.c (inttostr): New file/function.
70892         * lib/inttostr.h (uinttostr): Declare.
70893         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
70894         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
70895         Add uinttostr.
70896         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
70897
70898 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70899
70900         * lib/canonicalize.c (ELOOP): Define if not already defined.
70901         Problem reported by Bruno Haible in
70902         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
70903
70904 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
70905
70906         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
70907         Problem reported by Perry Smith and Ville Laurikari.
70908
70909         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
70910         uses.
70911
70912 2006-10-19  Bruno Haible  <bruno@clisp.org>
70913
70914         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
70915         for mingw.
70916
70917 2006-10-19  Bruno Haible  <bruno@clisp.org>
70918
70919         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
70920         Needed for mingw.
70921
70922 2006-10-19  Bruno Haible  <bruno@clisp.org>
70923
70924         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
70925
70926 2006-10-19  Bruno Haible  <bruno@clisp.org>
70927
70928         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
70929         it.
70930
70931 2006-10-19  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
70934         invocation.
70935
70936 2006-10-19  Bruno Haible  <bruno@clisp.org>
70937
70938         * gnulib-tool (func_create_testdir): Don't include ftruncate and
70939         mountlist by default.
70940
70941 2006-10-16  Bruno Haible  <bruno@clisp.org>
70942
70943         * lib/c-strstr.c: Include c-strstr.h.
70944
70945 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
70946
70947         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
70948         in a slash.
70949
70950 2006-10-18  Bruno Haible  <bruno@clisp.org>
70951
70952         * lib/lock.h [C++]: Wrap definitions in extern "C".
70953
70954 2006-10-18  Bruno Haible  <bruno@clisp.org>
70955
70956         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
70957         gl_LIBOBJS list.
70958
70959 2006-10-18  Bruno Haible  <bruno@clisp.org>
70960
70961         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
70962
70963 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
70964
70965         * lib/xstrtol.h: Include gettext.h.
70966         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
70967         Problem reported by Eric Blake.
70968         * modules/xstrtol (Depends-on): Add gettext-h.
70969
70970 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
70971
70972         * lib/strftime.c (advance): New macro.
70973         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
70974         incomplete type, so you can't add 0 to it.  Problem and patch
70975         reported by Eelco Dolstra for dietlibc.
70976
70977 2006-10-18  Jim Meyering  <jim@meyering.net>
70978
70979         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
70980         type for a local, and rename it: s/up/user_proc/.
70981
70982 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
70983
70984         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
70985         READ_UTMP_USER_PROCESS.
70986         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
70987
70988 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
70989
70990         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
70991         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
70992
70993 2006-10-17  Eric Blake  <ebb9@byu.net>
70994
70995         * lib/sigprocmask.c (sigprocmask): Fix typo.
70996
70997         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
70998
70999         * modules/clean-temp (Makefile.am): Don't add to make output...
71000         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71001         config.h.
71002
71003 2006-10-17  Bruno Haible  <bruno@clisp.org>
71004
71005         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71006         differently if DEFAULT_TEXT_DOMAIN is set.
71007
71008 2006-10-16  Bruno Haible  <bruno@clisp.org>
71009
71010         * lib/clean-temp.c: Include fwriteerror.h.
71011
71012 2006-10-16  Bruno Haible  <bruno@clisp.org>
71013
71014         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71015
71016 2006-10-16  Bruno Haible  <bruno@clisp.org>
71017
71018         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71019         * lib/sigprocmask.h: Include <sys/types.h>.
71020         (sigset_t): Use the system's definition if present.
71021
71022 2006-10-17  Eric Blake  <ebb9@byu.net>
71023
71024         * lib/xvasprintf.c (includes): Assume config.h.
71025         * lib/xasprintf.c (includes): Likewise.
71026
71027 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71028
71029         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71030         at least as wide as intmax_t.
71031
71032 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71033
71034         (Imported from Automake.)
71035         * build-aux/gnupload: Update to version 1.1 of directive file.
71036
71037 2006-10-16  Eric Blake  <ebb9@byu.net>
71038
71039         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71040         match Automake 1.10a.
71041
71042 2006-10-14  Bruno Haible  <bruno@clisp.org>
71043
71044         * modules/sigprocmask: New file.
71045         * lib/sigprocmask.h: New file.
71046         * lib/sigprocmask.c: New file.
71047         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71048         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71049         request sigprocmask.o.
71050         (gl_PREREQ_SIGPROCMASK): New macro.
71051         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71052         (Depends-on): Add sigprocmask.
71053         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71054         gt_SIGNALBLOCKING. Test for 'raise' only once.
71055         * lib/fatal-signal.c: Include sigprocmask.h.
71056         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71057         unblock_fatal_signals): Define always.
71058         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71059         sigprocmask.
71060
71061 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71062
71063         Sync from Automake.
71064         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71065         which incorrectly sets the mode of an existing destination
71066         directory.  In some cases the unpatched install-sh could do the
71067         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71068         system.  We hope this is rare in practice, but it's clearly worth
71069         fixing.  Problem reported by Alex Unleashed in
71070         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71071         Also, don't bother to check for -m bugs unless we're using -m;
71072         suggested by Stepan Kasal.
71073
71074 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71075
71076         Sync from Automake.
71077         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71078         `-c' flag, so they appear at the same position as in %FASTDEP%
71079         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71080         which ignores unknown options only after the first non-option.
71081         Bug report against M4 by Nelson H. F. Beebe.
71082
71083 2006-10-13  Jim Meyering  <jim@meyering.net>
71084
71085         Fix a bug in yesterday's change.
71086         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71087         p->fts_statp->st_dev would be used uninitialized.
71088         Ensures that we always call fts_stat on the very first entry.
71089         Miklos Szeredi reported that find -xdev stopped working.
71090
71091 2006-10-12  Bruno Haible  <bruno@clisp.org>
71092
71093         * gnulib-tool (func_get_automake_snippet): Append an automatically
71094         computed EXTRA_DIST augmentation.
71095         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71096         * modules/alloca-opt (Makefile.am): Likewise.
71097         * modules/allocsa (Makefile.am): Likewise.
71098         * modules/arcfour (Makefile.am): Likewise.
71099         * modules/arctwo (Makefile.am): Likewise.
71100         * modules/argmatch (Makefile.am): Likewise.
71101         * modules/argz (Makefile.am): Likewise.
71102         * modules/atexit (Makefile.am): Likewise.
71103         * modules/backupfile (Makefile.am): Likewise.
71104         * modules/byteswap (Makefile.am): Likewise.
71105         * modules/c-strtod (Makefile.am): Likewise.
71106         * modules/c-strtold (Makefile.am): Likewise.
71107         * modules/calloc (Makefile.am): Likewise.
71108         * modules/canon-host (Makefile.am): Likewise.
71109         * modules/canonicalize (Makefile.am): Likewise.
71110         * modules/chdir-long (Makefile.am): Likewise.
71111         * modules/chdir-safer (Makefile.am): Likewise.
71112         * modules/check-version (Makefile.am): Likewise.
71113         * modules/chown (Makefile.am): Likewise.
71114         * modules/cloexec (Makefile.am): Likewise.
71115         * modules/close-stream (Makefile.am): Likewise.
71116         * modules/closeout (Makefile.am): Likewise.
71117         * modules/crc (Makefile.am): Likewise.
71118         * modules/csharpexec (Makefile.am): Likewise.
71119         * modules/cycle-check (Makefile.am): Likewise.
71120         * modules/des (Makefile.am): Likewise.
71121         * modules/dev-ino (Makefile.am): Likewise.
71122         * modules/dirfd (Makefile.am): Likewise.
71123         * modules/dirname (Makefile.am): Likewise.
71124         * modules/dup2 (Makefile.am): Likewise.
71125         * modules/eealloc (Makefile.am): Likewise.
71126         * modules/error (Makefile.am): Likewise.
71127         * modules/euidaccess (Makefile.am): Likewise.
71128         * modules/exclude (Makefile.am): Likewise.
71129         * modules/exitfail (Makefile.am): Likewise.
71130         * modules/fcntl-safer (Makefile.am): Likewise.
71131         * modules/fcntl (Makefile.am): Likewise.
71132         * modules/file-type (Makefile.am): Likewise.
71133         * modules/fileblocks (Makefile.am): Likewise.
71134         * modules/filemode (Makefile.am): Likewise.
71135         * modules/filenamecat (Makefile.am): Likewise.
71136         * modules/fnmatch (Makefile.am): Likewise.
71137         * modules/fopen-safer (Makefile.am): Likewise.
71138         * modules/fpending (Makefile.am): Likewise.
71139         * modules/fprintftime (Makefile.am): Likewise.
71140         * modules/free (Makefile.am): Likewise.
71141         * modules/fsusage (Makefile.am): Likewise.
71142         * modules/ftruncate (Makefile.am): Likewise.
71143         * modules/fts (Makefile.am): Likewise.
71144         * modules/gc-arcfour (Makefile.am): Likewise.
71145         * modules/gc-des (Makefile.am): Likewise.
71146         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71147         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71148         * modules/gc-md4 (Makefile.am): Likewise.
71149         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71150         * modules/gc-sha1 (Makefile.am): Likewise.
71151         * modules/gc (Makefile.am): Likewise.
71152         * modules/getaddrinfo (Makefile.am): Likewise.
71153         * modules/getcwd (Makefile.am): Likewise.
71154         * modules/getdelim (Makefile.am): Likewise.
71155         * modules/getdomainname (Makefile.am): Likewise.
71156         * modules/getgroups (Makefile.am): Likewise.
71157         * modules/gethostname (Makefile.am): Likewise.
71158         * modules/gethrxtime (Makefile.am): Likewise.
71159         * modules/getline (Makefile.am): Likewise.
71160         * modules/getloadavg (Makefile.am): Likewise.
71161         * modules/getlogin_r (Makefile.am): Likewise.
71162         * modules/getndelim2 (Makefile.am): Likewise.
71163         * modules/getopt (Makefile.am): Likewise.
71164         * modules/getpagesize (Makefile.am): Likewise.
71165         * modules/getpass-gnu (Makefile.am): Likewise.
71166         * modules/getpass (Makefile.am): Likewise.
71167         * modules/getsubopt (Makefile.am): Likewise.
71168         * modules/gettime (Makefile.am): Likewise.
71169         * modules/gettimeofday (Makefile.am): Likewise.
71170         * modules/getugroups (Makefile.am): Likewise.
71171         * modules/getusershell (Makefile.am): Likewise.
71172         * modules/glob (Makefile.am): Likewise.
71173         * modules/group-member (Makefile.am): Likewise.
71174         * modules/hard-locale (Makefile.am): Likewise.
71175         * modules/hash (Makefile.am): Likewise.
71176         * modules/hmac-md5 (Makefile.am): Likewise.
71177         * modules/hmac-sha1 (Makefile.am): Likewise.
71178         * modules/human (Makefile.am): Likewise.
71179         * modules/idcache (Makefile.am): Likewise.
71180         * modules/imaxabs (Makefile.am): Likewise.
71181         * modules/imaxdiv (Makefile.am): Likewise.
71182         * modules/inet_ntop (Makefile.am): Likewise.
71183         * modules/inet_pton (Makefile.am): Likewise.
71184         * modules/intprops (Makefile.am): Likewise.
71185         * modules/inttostr (Makefile.am): Likewise.
71186         * modules/inttypes (Makefile.am): Likewise.
71187         * modules/isapipe (Makefile.am): Likewise.
71188         * modules/javaversion (Makefile.am): Likewise.
71189         * modules/lchmod (Makefile.am): Likewise.
71190         * modules/lchown (Makefile.am): Likewise.
71191         * modules/localcharset (Makefile.am): Likewise.
71192         * modules/long-options (Makefile.am): Likewise.
71193         * modules/lstat (Makefile.am): Likewise.
71194         * modules/malloc (Makefile.am): Likewise.
71195         * modules/mathl (Makefile.am): Likewise.
71196         * modules/mbchar (Makefile.am): Likewise.
71197         * modules/md2 (Makefile.am): Likewise.
71198         * modules/md4 (Makefile.am): Likewise.
71199         * modules/md5 (Makefile.am): Likewise.
71200         * modules/memcasecmp (Makefile.am): Likewise.
71201         * modules/memchr (Makefile.am): Likewise.
71202         * modules/memcmp (Makefile.am): Likewise.
71203         * modules/memcoll (Makefile.am): Likewise.
71204         * modules/memcpy (Makefile.am): Likewise.
71205         * modules/memmem (Makefile.am): Likewise.
71206         * modules/memmove (Makefile.am): Likewise.
71207         * modules/mempcpy (Makefile.am): Likewise.
71208         * modules/memrchr (Makefile.am): Likewise.
71209         * modules/memset (Makefile.am): Likewise.
71210         * modules/memxor (Makefile.am): Likewise.
71211         * modules/mkancesdirs (Makefile.am): Likewise.
71212         * modules/mkdir-p (Makefile.am): Likewise.
71213         * modules/mkdir (Makefile.am): Likewise.
71214         * modules/mkdtemp (Makefile.am): Likewise.
71215         * modules/mkstemp (Makefile.am): Likewise.
71216         * modules/mktime (Makefile.am): Likewise.
71217         * modules/modechange (Makefile.am): Likewise.
71218         * modules/mountlist (Makefile.am): Likewise.
71219         * modules/nanosleep (Makefile.am): Likewise.
71220         * modules/obstack (Makefile.am): Likewise.
71221         * modules/openat (Makefile.am): Likewise.
71222         * modules/pagealign_alloc (Makefile.am): Likewise.
71223         * modules/pathmax (Makefile.am): Likewise.
71224         * modules/physmem (Makefile.am): Likewise.
71225         * modules/poll (Makefile.am): Likewise.
71226         * modules/posixtm (Makefile.am): Likewise.
71227         * modules/posixver (Makefile.am): Likewise.
71228         * modules/putenv (Makefile.am): Likewise.
71229         * modules/quote (Makefile.am): Likewise.
71230         * modules/quotearg (Makefile.am): Likewise.
71231         * modules/raise (Makefile.am): Likewise.
71232         * modules/read-file (Makefile.am): Likewise.
71233         * modules/readline (Makefile.am): Likewise.
71234         * modules/readlink (Makefile.am): Likewise.
71235         * modules/readtokens (Makefile.am): Likewise.
71236         * modules/readutmp (Makefile.am): Likewise.
71237         * modules/realloc (Makefile.am): Likewise.
71238         * modules/regex (Makefile.am): Likewise.
71239         * modules/rename-dest-slash (Makefile.am): Likewise.
71240         * modules/rename (Makefile.am): Likewise.
71241         * modules/rijndael (Makefile.am): Likewise.
71242         * modules/rmdir (Makefile.am): Likewise.
71243         * modules/rpmatch (Makefile.am): Likewise.
71244         * modules/safe-read (Makefile.am): Likewise.
71245         * modules/safe-write (Makefile.am): Likewise.
71246         * modules/same-inode (Makefile.am): Likewise.
71247         * modules/same (Makefile.am): Likewise.
71248         * modules/save-cwd (Makefile.am): Likewise.
71249         * modules/savedir (Makefile.am): Likewise.
71250         * modules/setenv (Makefile.am): Likewise.
71251         * modules/settime (Makefile.am): Likewise.
71252         * modules/sha1 (Makefile.am): Likewise.
71253         * modules/sig2str (Makefile.am): Likewise.
71254         * modules/snprintf (Makefile.am): Likewise.
71255         * modules/stat-macros (Makefile.am): Likewise.
71256         * modules/stat-time (Makefile.am): Likewise.
71257         * modules/stdbool (Makefile.am): Likewise.
71258         * modules/stdint (Makefile.am): Likewise.
71259         * modules/stdlib-safer (Makefile.am): Likewise.
71260         * modules/stpcpy (Makefile.am): Likewise.
71261         * modules/stpncpy (Makefile.am): Likewise.
71262         * modules/strcase (Makefile.am): Likewise.
71263         * modules/strcasestr (Makefile.am): Likewise.
71264         * modules/strchrnul (Makefile.am): Likewise.
71265         * modules/strcspn (Makefile.am): Likewise.
71266         * modules/strdup (Makefile.am): Likewise.
71267         * modules/strerror (Makefile.am): Likewise.
71268         * modules/strftime (Makefile.am): Likewise.
71269         * modules/strndup (Makefile.am): Likewise.
71270         * modules/strnlen (Makefile.am): Likewise.
71271         * modules/strpbrk (Makefile.am): Likewise.
71272         * modules/strsep (Makefile.am): Likewise.
71273         * modules/strstr (Makefile.am): Likewise.
71274         * modules/strtod (Makefile.am): Likewise.
71275         * modules/strtoimax (Makefile.am): Likewise.
71276         * modules/strtok_r (Makefile.am): Likewise.
71277         * modules/strtol (Makefile.am): Likewise.
71278         * modules/strtoll (Makefile.am): Likewise.
71279         * modules/strtoul (Makefile.am): Likewise.
71280         * modules/strtoull (Makefile.am): Likewise.
71281         * modules/strtoumax (Makefile.am): Likewise.
71282         * modules/strverscmp (Makefile.am): Likewise.
71283         * modules/sys_socket (Makefile.am): Likewise.
71284         * modules/sys_stat (Makefile.am): Likewise.
71285         * modules/sysexits (Makefile.am): Likewise.
71286         * modules/time_r (Makefile.am): Likewise.
71287         * modules/timegm (Makefile.am): Likewise.
71288         * modules/timespec (Makefile.am): Likewise.
71289         * modules/tmpfile-safer (Makefile.am): Likewise.
71290         * modules/trim (Makefile.am): Likewise.
71291         * modules/unistd-safer (Makefile.am): Likewise.
71292         * modules/unlinkdir (Makefile.am): Likewise.
71293         * modules/unlocked-io (Makefile.am): Likewise.
71294         * modules/userspec (Makefile.am): Likewise.
71295         * modules/utime (Makefile.am): Likewise.
71296         * modules/utimecmp (Makefile.am): Likewise.
71297         * modules/utimens (Makefile.am): Likewise.
71298         * modules/vasnprintf (Makefile.am): Likewise.
71299         * modules/vasprintf (Makefile.am): Likewise.
71300         * modules/vsnprintf (Makefile.am): Likewise.
71301         * modules/xalloc (Makefile.am): Likewise.
71302         * modules/xgetcwd (Makefile.am): Likewise.
71303         * modules/xnanosleep (Makefile.am): Likewise.
71304         * modules/xreadlink (Makefile.am): Likewise.
71305         * modules/xstrtod (Makefile.am): Likewise.
71306         * modules/xstrtol (Makefile.am): Likewise.
71307         * modules/xstrtold (Makefile.am): Likewise.
71308         * modules/yesno (Makefile.am): Likewise.
71309         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71310
71311 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71312
71313         * modules/error (Makefile.am): Distribute files through
71314         EXTRA_DIST, not lib_SOURCES.
71315
71316 2006-10-12  Eric Blake  <ebb9@byu.net>
71317
71318         * modules/error (Makefile.am): Distribute files in /lib.
71319         * modules/obstack (Makefile.am): Likewise.
71320
71321 2006-10-12  Bruno Haible  <bruno@clisp.org>
71322
71323         * modules/acl (Makefile.am): Distribute all files in lib/ through
71324         EXTRA_DIST.
71325         * modules/arcfour (Makefile.am): Likewise.
71326         * modules/arctwo (Makefile.am): Likewise.
71327         * modules/argmatch (Makefile.am): Likewise.
71328         * modules/argz (Makefile.am): Likewise.
71329         * modules/atexit (Makefile.am): Likewise.
71330         * modules/backupfile (Makefile.am): Likewise.
71331         * modules/c-strtod (Makefile.am): Likewise.
71332         * modules/c-strtold (Makefile.am): Likewise.
71333         * modules/calloc (Makefile.am): Likewise.
71334         * modules/canon-host (Makefile.am): Likewise.
71335         * modules/canonicalize (Makefile.am): Likewise.
71336         * modules/chdir-long (Makefile.am): Likewise.
71337         * modules/chdir-safer (Makefile.am): Likewise.
71338         * modules/check-version (Makefile.am): Likewise.
71339         * modules/chown (Makefile.am): Likewise.
71340         * modules/cloexec (Makefile.am): Likewise.
71341         * modules/close-stream (Makefile.am): Likewise.
71342         * modules/closeout (Makefile.am): Likewise.
71343         * modules/crc (Makefile.am): Likewise.
71344         * modules/cycle-check (Makefile.am): Likewise.
71345         * modules/des (Makefile.am): Likewise.
71346         * modules/dirfd (Makefile.am): Likewise.
71347         * modules/dirname (Makefile.am): Likewise.
71348         * modules/dup2 (Makefile.am): Likewise.
71349         * modules/euidaccess (Makefile.am): Likewise.
71350         * modules/exclude (Makefile.am): Likewise.
71351         * modules/exitfail (Makefile.am): Likewise.
71352         * modules/fcntl-safer (Makefile.am): Likewise.
71353         * modules/file-type (Makefile.am): Likewise.
71354         * modules/fileblocks (Makefile.am): Likewise.
71355         * modules/filemode (Makefile.am): Likewise.
71356         * modules/filenamecat (Makefile.am): Likewise.
71357         * modules/fnmatch (Makefile.am): Likewise.
71358         * modules/fopen-safer (Makefile.am): Likewise.
71359         * modules/fpending (Makefile.am): Likewise.
71360         * modules/fprintftime (Makefile.am): Likewise.
71361         * modules/free (Makefile.am): Likewise.
71362         * modules/fsusage (Makefile.am): Likewise.
71363         * modules/ftruncate (Makefile.am): Likewise.
71364         * modules/fts (Makefile.am): Likewise.
71365         * modules/gc (Makefile.am): Likewise.
71366         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71367         * modules/getaddrinfo (Makefile.am): Likewise.
71368         * modules/getcwd (Makefile.am): Likewise.
71369         * modules/getdelim (Makefile.am): Likewise.
71370         * modules/getdomainname (Makefile.am): Likewise.
71371         * modules/getgroups (Makefile.am): Likewise.
71372         * modules/gethostname (Makefile.am): Likewise.
71373         * modules/gethrxtime (Makefile.am): Likewise.
71374         * modules/getline (Makefile.am): Likewise.
71375         * modules/getloadavg (Makefile.am): Likewise.
71376         * modules/getlogin_r (Makefile.am): Likewise.
71377         * modules/getopt (Makefile.am): Likewise.
71378         * modules/getpass (Makefile.am): Likewise.
71379         * modules/getpass-gnu (Makefile.am): Likewise.
71380         * modules/getsubopt (Makefile.am): Likewise.
71381         * modules/gettime (Makefile.am): Likewise.
71382         * modules/gettimeofday (Makefile.am): Likewise.
71383         * modules/getugroups (Makefile.am): Likewise.
71384         * modules/getusershell (Makefile.am): Likewise.
71385         * modules/glob (Makefile.am): Likewise.
71386         * modules/group-member (Makefile.am): Likewise.
71387         * modules/hard-locale (Makefile.am): Likewise.
71388         * modules/hash (Makefile.am): Likewise.
71389         * modules/hmac-md5 (Makefile.am): Likewise.
71390         * modules/hmac-sha1 (Makefile.am): Likewise.
71391         * modules/human (Makefile.am): Likewise.
71392         * modules/idcache (Makefile.am): Likewise.
71393         * modules/imaxabs (Makefile.am): Likewise.
71394         * modules/imaxdiv (Makefile.am): Likewise.
71395         * modules/inet_ntop (Makefile.am): Likewise.
71396         * modules/inet_pton (Makefile.am): Likewise.
71397         * modules/inttostr (Makefile.am): Likewise.
71398         * modules/isapipe (Makefile.am): Likewise.
71399         * modules/lchown (Makefile.am): Likewise.
71400         * modules/long-options (Makefile.am): Likewise.
71401         * modules/lstat (Makefile.am): Likewise.
71402         * modules/malloc (Makefile.am): Likewise.
71403         * modules/mathl (Makefile.am): Likewise.
71404         * modules/mbchar (Makefile.am): Likewise.
71405         * modules/md2 (Makefile.am): Likewise.
71406         * modules/md4 (Makefile.am): Likewise.
71407         * modules/md5 (Makefile.am): Likewise.
71408         * modules/memcasecmp (Makefile.am): Likewise.
71409         * modules/memchr (Makefile.am): Likewise.
71410         * modules/memcmp (Makefile.am): Likewise.
71411         * modules/memcoll (Makefile.am): Likewise.
71412         * modules/memcpy (Makefile.am): Likewise.
71413         * modules/memmem (Makefile.am): Likewise.
71414         * modules/memmove (Makefile.am): Likewise.
71415         * modules/mempcpy (Makefile.am): Likewise.
71416         * modules/memrchr (Makefile.am): Likewise.
71417         * modules/memset (Makefile.am): Likewise.
71418         * modules/memxor (Makefile.am): Likewise.
71419         * modules/mkancesdirs (Makefile.am): Likewise.
71420         * modules/mkdir (Makefile.am): Likewise.
71421         * modules/mkdir-p (Makefile.am): Likewise.
71422         * modules/mkdtemp (Makefile.am): Likewise.
71423         * modules/mkstemp (Makefile.am): Likewise.
71424         * modules/mktime (Makefile.am): Likewise.
71425         * modules/modechange (Makefile.am): Likewise.
71426         * modules/mountlist (Makefile.am): Likewise.
71427         * modules/nanosleep (Makefile.am): Likewise.
71428         * modules/openat (Makefile.am): Likewise.
71429         * modules/pagealign_alloc (Makefile.am): Likewise.
71430         * modules/physmem (Makefile.am): Likewise.
71431         * modules/poll (Makefile.am): Likewise.
71432         * modules/posixtm (Makefile.am): Likewise.
71433         * modules/posixver (Makefile.am): Likewise.
71434         * modules/putenv (Makefile.am): Likewise.
71435         * modules/quote (Makefile.am): Likewise.
71436         * modules/quotearg (Makefile.am): Likewise.
71437         * modules/raise (Makefile.am): Likewise.
71438         * modules/read-file (Makefile.am): Likewise.
71439         * modules/readline (Makefile.am): Likewise.
71440         * modules/readlink (Makefile.am): Likewise.
71441         * modules/readtokens (Makefile.am): Likewise.
71442         * modules/readutmp (Makefile.am): Likewise.
71443         * modules/realloc (Makefile.am): Likewise.
71444         * modules/regex (Makefile.am): Likewise.
71445         * modules/rename (Makefile.am): Likewise.
71446         * modules/rename-dest-slash (Makefile.am): Likewise.
71447         * modules/rijndael (Makefile.am): Likewise.
71448         * modules/rmdir (Makefile.am): Likewise.
71449         * modules/rpmatch (Makefile.am): Likewise.
71450         * modules/safe-read (Makefile.am): Likewise.
71451         * modules/safe-write (Makefile.am): Likewise.
71452         * modules/same (Makefile.am): Likewise.
71453         * modules/save-cwd (Makefile.am): Likewise.
71454         * modules/savedir (Makefile.am): Likewise.
71455         * modules/setenv (Makefile.am): Likewise.
71456         * modules/settime (Makefile.am): Likewise.
71457         * modules/sha1 (Makefile.am): Likewise.
71458         * modules/sig2str (Makefile.am): Likewise.
71459         * modules/snprintf (Makefile.am): Likewise.
71460         * modules/stdlib-safer (Makefile.am): Likewise.
71461         * modules/stpcpy (Makefile.am): Likewise.
71462         * modules/stpncpy (Makefile.am): Likewise.
71463         * modules/strcase (Makefile.am): Likewise.
71464         * modules/strcasestr (Makefile.am): Likewise.
71465         * modules/strchrnul (Makefile.am): Likewise.
71466         * modules/strcspn (Makefile.am): Likewise.
71467         * modules/strdup (Makefile.am): Likewise.
71468         * modules/strerror (Makefile.am): Likewise.
71469         * modules/strftime (Makefile.am): Likewise.
71470         * modules/strndup (Makefile.am): Likewise.
71471         * modules/strnlen (Makefile.am): Likewise.
71472         * modules/strpbrk (Makefile.am): Likewise.
71473         * modules/strsep (Makefile.am): Likewise.
71474         * modules/strstr (Makefile.am): Likewise.
71475         * modules/strtod (Makefile.am): Likewise.
71476         * modules/strtoimax (Makefile.am): Likewise.
71477         * modules/strtok_r (Makefile.am): Likewise.
71478         * modules/strtol (Makefile.am): Likewise.
71479         * modules/strtoll (Makefile.am): Likewise.
71480         * modules/strtoul (Makefile.am): Likewise.
71481         * modules/strtoull (Makefile.am): Likewise.
71482         * modules/strtoumax (Makefile.am): Likewise.
71483         * modules/strverscmp (Makefile.am): Likewise.
71484         * modules/time_r (Makefile.am): Likewise.
71485         * modules/timegm (Makefile.am): Likewise.
71486         * modules/tmpfile-safer (Makefile.am): Likewise.
71487         * modules/unistd-safer (Makefile.am): Likewise.
71488         * modules/unlinkdir (Makefile.am): Likewise.
71489         * modules/userspec (Makefile.am): Likewise.
71490         * modules/utime (Makefile.am): Likewise.
71491         * modules/utimecmp (Makefile.am): Likewise.
71492         * modules/utimens (Makefile.am): Likewise.
71493         * modules/vasnprintf (Makefile.am): Likewise.
71494         * modules/vasprintf (Makefile.am): Likewise.
71495         * modules/vsnprintf (Makefile.am): Likewise.
71496         * modules/xalloc (Makefile.am): Likewise.
71497         * modules/xgetcwd (Makefile.am): Likewise.
71498         * modules/xnanosleep (Makefile.am): Likewise.
71499         * modules/xreadlink (Makefile.am): Likewise.
71500         * modules/xstrtod (Makefile.am): Likewise.
71501         * modules/xstrtol (Makefile.am): Likewise.
71502         * modules/xstrtold (Makefile.am): Likewise.
71503         * modules/yesno (Makefile.am): Likewise.
71504
71505 2006-10-12  Jim Meyering  <jim@meyering.net>
71506
71507         * m4/getloadavg.m4: Revert the change below.
71508
71509         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
71510         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
71511         fail with a symlink, which is what coreutils' ./bootstrap now
71512         creates by default.
71513
71514 2006-10-12  Bruno Haible  <bruno@clisp.org>
71515
71516         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
71517         mingw.
71518         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
71519         MSVC and mingw explicitly.
71520
71521 2006-10-11  Simon Josefsson  <jas@extundo.com>
71522             Bruno Haible  <bruno@clisp.org>
71523
71524         Add support for multiple gnulib-tool invocations in the scope of a
71525         single configure.ac file.
71526         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
71527         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
71528         with the same contents as the _LIBADD variable.
71529         (func_emit_initmacro_start, func_emit_initmacro_end,
71530         func_emit_initmacro_done): New functions.
71531         (func_import, func_create_testdir): Invoke them. Allow the identifiers
71532         gl_LIBOBJS and gl_LTLIBOBJS.
71533
71534 2006-10-11  Bruno Haible  <bruno@clisp.org>
71535
71536         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
71537         (func_create_testdir): Don't create po/Makefile.am, don't invoke
71538         autoreconf. Instead, invoke autopoint explicitly but move back the
71539         *.m4 files from gnulib.
71540
71541 2006-10-11  Bruno Haible  <bruno@clisp.org>
71542
71543         * gnulib-tool (func_usage): Make module names after --create-testdir
71544         optional.
71545         (func_create_testdir): If no module was specified, use nearly all
71546         modules.
71547
71548 2006-10-12  Jim Meyering  <jim@meyering.net>
71549
71550         Big performance improvement for fts-based tools that use FTS_NOSTAT.
71551         Avoid spurious inode-mismatch problems on non-POSIX file systems.
71552         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
71553         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
71554         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
71555         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
71556         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
71557         (fts_set_stat_required): New function.
71558         (fts_open): Defer the calls to fts_stat, if possible or requested.
71559         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
71560         into fts_stat itself.
71561         (fts_read): Perform any required (deferred) fts_stat call.
71562         (fts_build): Likewise, for the directory we're about to open and read.
71563         In the readdir loop, carefully decide whether each entry will require
71564         an eventual call to fts_stat, using dirent.d_type info if available.
71565         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
71566         a command line argument into this function.  Update all callers.
71567         Map a return value of FTS_DOT to FTS_D for a command line argument.
71568         * modules/fts (Depends-on): Add d-type.  Alphabetize.
71569         Thanks to Miklos Szeredi for his tenacity and for the initial
71570         bug report about "find" failing on a FUSE-based file system.
71571
71572         * lib/fts.c (fts_open): Use consistent indentation.
71573
71574 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71575
71576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
71577         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
71578         reported by Jim Meyering.  All uses of cache variables renamed
71579         to match Autoconf's.
71580         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
71581         the other one.
71582
71583         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
71584         Fix misspelling in diagnostic.
71585
71586 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71587
71588         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
71589         defined.  Problem reported by Matthew Woehlke.
71590
71591         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
71592         Add support for Tandem NonStop R series.
71593         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
71594         Use new macro.
71595
71596         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
71597         (has_trailing_slash): Omit size arg; all callers changed.
71598         Omit 'inline', since it doesn't help performance and we'd
71599         need to configure it.
71600         Don't count //, ///, etc. as having a trailing slash.
71601         As a side effect, this removes a C99ism reported by Matthew Woehlke.
71602         (rpl_rename_dest_slash): On failure, use rename's errno rather
71603         than (in some cases) an incorrect or junk errno.
71604         Simplify code by removing need to compute length; this does
71605         cause it to make two passes instead of one over the file name,
71606         but it's worth it.
71607
71608         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
71609         change, since Autoconf's version may no longer be appropriate now
71610         that we are using CVS Autoconf's version.  Add support for Tandem.
71611
71612 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
71613             Bruno Haible  <bruno@clisp.org>
71614
71615         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
71616         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
71617         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
71618         gl_AC_TYPE_LONG_LONG.
71619
71620         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
71621         instead of HAVE_LONG_LONG.
71622         * lib/printf-args.c (printf_fetchargs): Likewise.
71623         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
71624         * lib/vasnprintf.c (VASNPRINTF): Likewise.
71625         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
71626         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
71627         gl_AC_TYPE_LONG_LONG.
71628
71629 2006-10-11  Bruno Haible  <bruno@clisp.org>
71630
71631         * m4/longlong.m4: Add comments.
71632         * m4/ulonglong.m4: Likewise.
71633
71634 2006-10-10  Bruno Haible  <bruno@clisp.org>
71635
71636         Make it possible to #define stpcpy, strdup to aliases.
71637         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
71638         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
71639
71640 2006-10-10  Bruno Haible  <bruno@clisp.org>
71641
71642         Make it possible to #define gcd to an alias.
71643         * lib/gcd.c: Include config.h.
71644
71645 2006-10-10  Bruno Haible  <bruno@clisp.org>
71646
71647         Make it possible to #define c_isascii to an alias.
71648         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
71649         defined. Undefine the macros before defining them, to avoid gcc
71650         warnings.
71651         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
71652         define NO_C_CTYPE_MACROS early.
71653
71654 2006-10-10  Bruno Haible  <bruno@clisp.org>
71655
71656         Make it possible to #define set_program_name to an alias.
71657         * lib/progname.c: Don't undefine set_program_name; instead, undefine
71658         ENABLE_RELOCATABLE early.
71659
71660 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         Port to Tandem NSK OSS, which has 64-bit signed int but at most
71663         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
71664         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
71665         More generally, don't assume that 64-bit signed int is available
71666         if unsigned int is, and vice versa.
71667         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
71668         unsigned symbols, not on their signed counterparts.
71669         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
71670         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
71671         (UINT64_C, UINTMAX_C):
71672         Likewise.
71673         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
71674         unsigned counterparts.
71675         (Have_long_long, Unsigned): New macros.
71676         (Int): Renamed from INT.
71677         (strtoimax): Use the new macros.
71678         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
71679         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
71680         * modules/inttypes (inttypes.h): Substitute
71681         HAVE_UNSIGNED_LONG_LONG_INT.
71682         * modules/stdint (stdint.h): Likewise.
71683         (Files): Add m4/ulonglong.m4.
71684
71685 2006-10-10  Bruno Haible  <bruno@clisp.org>
71686
71687         Fix a gcc -Wshadow warning.
71688         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
71689         to 'bucket'.
71690         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
71691         gl_linked_indexof_from_to): Likewise.
71692         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
71693         Likewise.
71694         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
71695         Likewise.
71696         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
71697         Reported by Eric Blake.
71698
71699 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
71700
71701         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
71702         for NetBSD.  Problem reported by Bruno Haible.
71703
71704 2006-10-09  Jim Meyering  <jim@meyering.net>
71705
71706         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
71707         Patch from Bruno Haible.
71708
71709 2006-10-09  Jim Meyering  <jim@meyering.net>
71710
71711         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
71712         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
71713         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
71714
71715 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71716
71717         Don't include <config.h> twice; this doesn't work in some cases,
71718         e.g., when config.h has "#define intmax_t long long int" and
71719         we include <config.h>, <inttypes.h>, <config.h> in that order.
71720         Problem reported by Matthew Woehlke in:
71721         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
71722         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
71723         * lib/fts-cycle.c: Don't include config.h.
71724         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
71725         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
71726         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
71727         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
71728         inttypes.h.
71729         * lib/xstrtoumax.c: Likewise.
71730         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
71731         __strtol and the like, so that this module is more like its siblings.
71732         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
71733         Remove; no longer needed now that we assume gnulib inttypes.h.
71734
71735 2006-10-08  Bruno Haible  <bruno@clisp.org>
71736
71737         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
71738         option.
71739
71740 2006-10-07  Jim Meyering  <jim@meyering.net>
71741
71742         * modules/inttypes (inttypes.h): Revert what seems to have been
71743         an inadvertent part of today's change: use "|", not "/" in the
71744         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
71745
71746 2006-10-07  Bruno Haible  <bruno@clisp.org>
71747
71748         * modules/sublist: New file.
71749
71750 2006-10-07  Bruno Haible  <bruno@clisp.org>
71751
71752         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
71753         * modules/argz (argz.h): Likewise.
71754         * modules/arpa_inet (arpa/inet.h): Likewise.
71755         * modules/byteswap (byteswap.h): Likewise.
71756         * modules/configmake (configmake.h): Likewise.
71757         * modules/fcntl (fcntl.h): Likewise.
71758         * modules/fnmatch (fnmatch.h): Likewise.
71759         * modules/getopt (getopt.h): Likewise.
71760         * modules/glob (glob.h): Likewise.
71761         * modules/inttypes (inttypes.h): Likewise.
71762         * modules/netinet_in (netinet/in.h): Likewise.
71763         * modules/poll (poll.h): Likewise.
71764         * modules/stdbool (stdbool.h): Likewise.
71765         * modules/stdint (stdint.h): Likewise.
71766         * modules/sys_select (sys/select.h): Likewise.
71767         * modules/sys_socket (sys/socket.h): Likewise.
71768         * modules/sys_stat (sys/stat.h): Likewise.
71769         * modules/sysexits (sysexits.h): Likewise.
71770         * modules/unistd (unistd.h): Likewise.
71771         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71772         Add a "DO NOT EDIT" comment to the generated file.
71773         (func_import): Likewise for gnulib-comp.m4.
71774
71775 2006-10-07  Bruno Haible  <bruno@clisp.org>
71776
71777         * lib/gl_sublist.h: New file.
71778         * lib/gl_sublist.c: New file.
71779
71780 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
71783         name (relative to the original working directory) and the file
71784         name component (relative to the temporary working directory).  All
71785         callers changed.
71786         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
71787         * lib/mkdir-p.c (make_dir_parents): Likewise.
71788         * lib/mkdir-p.h (make_dir_parents): Likewise.
71789
71790 2006-10-06  Eric Blake  <ebb9@byu.net>
71791
71792         Define several macros for use by the clean-temp module.
71793         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
71794         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
71795         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
71796
71797         * lib/clean-temp.h (close_stream_temp): New declaration.
71798         * lib/clean-temp.c (includes): Pull in headers according to what
71799         other modules are in use.
71800         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
71801
71802 2006-10-06  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
71805         instead of fopen, fwriteerror.
71806
71807 2006-10-06  Bruno Haible  <bruno@clisp.org>
71808
71809         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
71810         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
71811         int.
71812         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
71813         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
71814         Return an error indicator.
71815         Suggested by Eric Blake.
71816
71817 2006-10-06  Bruno Haible  <bruno@clisp.org>
71818
71819         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
71820         Reported by Eric Blake.
71821
71822 2006-10-06  Bruno Haible  <bruno@clisp.org>
71823
71824         * modules/closeout (Description): Mention stderr too.
71825
71826 2006-10-06  Bruno Haible  <bruno@clisp.org>
71827         and Paul Eggert  <eggert@cs.ucla.edu>
71828
71829         * lib/closeout.c (close_stdout): Also close stderr.
71830         * lib/closeout.h: Update comment.
71831
71832 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
71833
71834         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
71835         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
71836         * lib/dirchownmod.c: Include lchown.h.
71837         * lib/lchown.c: Don't include files that lchown.h now includes.
71838         Don't declare chown, since lchown.h now does that.
71839         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
71840         (lchown): Define to rpl_chown if lchown is declared but
71841         does not exist.  Declare using a prototype if lchown is not
71842         declared.  Add a copyright notice.
71843         * lib/mkstemp.h: Include <unistd.h>.
71844         * lib/openat.c: Include lchown.h.
71845
71846         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
71847         we now test for that separately.
71848         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
71849         rather than O_NOFOLLOW, when testing whether it's possible to
71850         avoid a race condition reliably.
71851         * lib/savewd.c (savewd_chdir): Likewise.
71852
71853         Remove macros that are no longer needed now that stdint.h is
71854         reliable.
71855         * lib/fsusage.c (UINTMAX_MAX): Remove.
71856         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
71857         * lib/utimecmp.c (SIZE_MAX): Remove.
71858
71859         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
71860
71861         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
71862         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
71863         O_NOATIME works.
71864
71865 2006-10-05  Bruno Haible  <bruno@clisp.org>
71866
71867         * lib/gl_list.h (gl_sortedlist_search_from_to,
71868         gl_sortedlist_indexof_from_to): New declarations.
71869         (gl_list_implementation): New fields sortedlist_search_from_to,
71870         sortedlist_indexof_from_to.
71871         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
71872         inline functions.
71873         * lib/gl_list.c (gl_sortedlist_search_from_to,
71874         gl_sortedlist_indexof_from_to): New functions.
71875         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
71876         function.
71877         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
71878         (gl_array_sortedlist_search_from_to): New function.
71879         (gl_array_list_implementation): Update.
71880         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
71881         function.
71882         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
71883         (gl_carray_sortedlist_search_from_to): New function.
71884         (gl_carray_list_implementation): Update.
71885         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
71886         gl_linked_sortedlist_indexof_from_to): New functions.
71887         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71888         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71889         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
71890         gl_tree_sortedlist_indexof_from_to): New functions.
71891         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71892         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71893         Update.
71894         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71895         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
71896         Update.
71897
71898 2006-10-05  Bruno Haible  <bruno@clisp.org>
71899
71900         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
71901         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
71902         (struct gl_list_implementation): Add fields search_from_to,
71903         indexof_from_to. Remove fields search, indexof.
71904         (gl_list_search): Use the search_from_to method.
71905         (gl_list_search_from, gl_list_search_from_to): New functions.
71906         (gl_list_indexof): Use the indexof_from_to method.
71907         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71908         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
71909         (gl_list_search_from, gl_list_search_from_to): New functions.
71910         (gl_list_indexof): Use the indexof_from_to method.
71911         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
71912         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
71913         gl_array_indexof. Add start_index, end_index arguments.
71914         (gl_array_search_from_to): Renamed from gl_array_search. Add
71915         start_index, end_index arguments.
71916         (gl_array_remove, gl_array_list_implementation): Update.
71917         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
71918         gl_carray_indexof. Add start_index, end_index arguments.
71919         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
71920         start_index, end_index arguments.
71921         (gl_carray_remove, gl_carray_list_implementation): Update.
71922         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
71923         gl_linked_search. Add start_index, end_index arguments.
71924         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
71925         start_index, end_index arguments.
71926         (gl_linked_remove): Update.
71927         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
71928         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
71929         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
71930         field to 'size_t'.
71931         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
71932         gl_tree_search. Add start_index, end_index arguments.
71933         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71934         start_index, end_index arguments.
71935         (gl_tree_remove): Update.
71936         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
71937         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
71938         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
71939         function.
71940         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
71941         gl_tree_search. Add start_index, end_index arguments.
71942         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
71943         start_index, end_index arguments.
71944         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
71945         Update.
71946         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
71947
71948 2006-10-05  Bruno Haible  <bruno@clisp.org>
71949
71950         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
71951
71952         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
71953         fwriteerror_temp): New declarations.
71954         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
71955         (descriptors): New variable.
71956         (cleanup): First, close the descriptors.
71957         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
71958         fclose_temp, fwriteerror_temp): New functions.
71959
71960 2006-10-04  Jim Meyering  <jim@meyering.net>
71961
71962         * lib/fts.c (fts_open): Tiny comment change.
71963
71964 2006-10-04  Bruno Haible  <bruno@clisp.org>
71965
71966         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
71967         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
71968         gl_LOCK_BODY.
71969         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
71970         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
71971         gl_LOCK_EARLY_BODY.
71972         (gl_LOCK): Require gl_LOCK_BODY.
71973
71974 2006-10-04  Bruno Haible  <bruno@clisp.org>
71975
71976         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
71977         (gl_oset_search_atleast): New declaration.
71978         (struct gl_oset_implementation): Add field 'search_atleast'.
71979         (gl_oset_search_atleast): New inline function.
71980         * lib/gl_oset.c (gl_oset_search_atleast): New function.
71981         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
71982         (gl_array_oset_implementation): Update.
71983         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
71984         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
71985         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
71986
71987 2006-10-04  Bruno Haible  <bruno@clisp.org>
71988
71989         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
71990
71991 2006-10-03  Bruno Haible  <bruno@clisp.org>
71992
71993         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
71994         from gl_avltreehash_list_implementation.
71995
71996 2006-10-03  Bruno Haible  <bruno@clisp.org>
71997
71998         * lib/gl_oset.c (gl_oset_add): Fix return type.
71999
72000 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72001
72002         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72003
72004 2006-10-02  Eric Blake  <ebb9@byu.net>
72005
72006         * modules/strnlen (Depends-on): Add extensions.
72007
72008 2006-10-02  Eric Blake  <ebb9@byu.net>
72009
72010         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72011         definition in 2.60+.
72012
72013 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72014
72015         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72016         checks.
72017
72018 2006-10-02  Bruno Haible  <bruno@clisp.org>
72019
72020         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72021         to the AUTOMAKE_OPTIONS.
72022         Reported by Jim Meyering.
72023
72024 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72025
72026         Work around bug in Solaris 10 /proc file system:
72027         /proc/self/fd/NNN/.. isn't the parent directory of
72028         the directory whose file descriptor is NNN.  This needs to
72029         be worked around at run time, not compile time, since a
72030         program might be built on Solaris 8, where things work, and
72031         run on Solaris 10.
72032         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72033         to use the following interface instead:
72034         (OPENAT_BUFFER_SIZE): New macro.
72035         (openat_proc_name): New function.
72036         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72037         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72038         Likewise.
72039         * lib/openat-proc.c: New file.
72040         * modules/openat (Files): Add lib/openat-proc.c.
72041         (Depends-on): Add same-inode, stdbool.
72042         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72043
72044 2006-09-29  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72047         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72048         argument. Set stdout_closed before testing for ferror, not after.
72049         (fwriteerror, fwriteerror_no_ebadf): New functions.
72050
72051 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72052
72053         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72054
72055 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72056
72057         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72058         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72059
72060 2006-09-28  Jim Meyering  <jim@meyering.net>
72061
72062         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72063         Include <unistd.h>.
72064
72065 2006-09-28  Bruno Haible  <bruno@clisp.org>
72066
72067         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72068         * modules/linkedhash-list (Depends-on): Likewise.
72069         * modules/rbtreehash-list (Depends-on): Likewise.
72070
72071 2006-09-28  Bruno Haible  <bruno@clisp.org>
72072
72073         * lib/strndup.h: Simplify the redefinition of strndup.
72074         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72075         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72076
72077 2006-09-28  Bruno Haible  <bruno@clisp.org>
72078
72079         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72080         * lib/gl_linkedhash_list.c: Likewise.
72081         * lib/gl_rbtreehash_list.c: Likewise.
72082
72083 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72084
72085         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72086         getaddrinfo.
72087
72088         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72089         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72090         it causes <stdio_ext.h> to cause a compile-time error.
72091         Problem reported by Nelson H. F. Beebe.
72092         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72093         of HAVE_DECL___PENDING.
72094
72095         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72096         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72097         declaration.
72098
72099 2006-09-27  Jim Meyering  <jim@meyering.net>
72100
72101         This file could end up with a definition for a function
72102         named __strndup, rather than rpl_strndup on a system with
72103         incomplete weak_alias support.
72104         * lib/strndup.c (strndup): Rename from __strndup.
72105         Remove #defines that used to map __strndup to strndup.
72106         Don't use K&R prototypes.
72107         Remove LIBC-related code, since this file is not sync'd with glibc.
72108         * lib/strndup.h: Revamp, accordingly.
72109         * m4/strndup.m4: Modernize.
72110
72111 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72112
72113         * modules/savewd (Depends-on): Add 'raise'.
72114         * lib/savewd.c: Include <signal.h>, for 'raise'.
72115
72116 2006-09-26  Jim Meyering  <jim@meyering.net>
72117
72118         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72119         when we detect Darwin 8.7.0's acl_get_file bug.
72120         Rearrange to perform the new (below) run-test while $LIBS
72121         contains any acl-related library.  Set USE_ACL at the end.
72122         (gl_ACL_GET_FILE): New function.
72123
72124 2006-09-26  Eric Blake  <ebb9@byu.net>
72125
72126         * lib/verror.c: Include <config.h> unconditionally.
72127
72128 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72129
72130         * modules/clock-time (Maintainer): Add self.
72131         * modules/getlogin_r (Depends-on): Add extensions.
72132
72133 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72134
72135         * modules/clock-time: New module.
72136         * modules/nanosleep (Depends-on): Add clock-time.
72137         * modules/gethrxtime (Depends-on): Likewise.
72138         * modules/gettime (Depends-on): Likewise.
72139         * modules/settime (Depends-on): Likewise.
72140
72141         * modules/fts-lgpl: Depend on openat.
72142         * modules/mkancesdirs: Depend on savewd.
72143         * modules/mkdir-p: Likewise.
72144
72145 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72146
72147         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72148
72149         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72150         `gl_have_arbitrary_file_name_length_limit' to
72151         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72152         actually works between configure runs.
72153
72154 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72155             Bruno Haible  <bruno@clisp.org>
72156
72157         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72158
72159 2006-09-25  Jim Meyering  <jim@meyering.net>
72160
72161         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72162         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72163
72164 2006-09-25  Eric Blake  <ebb9@byu.net>
72165
72166         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72167         exec's in 2006-09-18 patch when shuffling fds.
72168
72169 2006-09-25  Bruno Haible  <bruno@clisp.org>
72170
72171         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72172         Reported by Jim Meyering.
72173
72174 2006-09-24  Jim Meyering  <jim@meyering.net>
72175
72176         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72177         compare a pointer against a literal "0".  That caused failures with
72178         at least HP-UX's hpcc.
72179
72180 2006-09-22  Simon Josefsson  <jas@extundo.com>
72181
72182         * modules/gc-sha1:
72183         * modules/gc-md4:
72184         * modules/gc-hmac-sha1:
72185         * modules/gc-hmac-md5:
72186         * modules/gc-des:
72187         * modules/gc-arcfour: Distribute more files.
72188
72189 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72190
72191         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72192         (gl_linked_iterator_from_to): Initialize struct completely.
72193         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72194         (gl_tree_iterator_from_to): Likewise
72195         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72196         * lib/gl_array_list.c [lint] (gl_array_iterator)
72197         (gl_array_iterator_from_to): Likewise.
72198         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72199         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72200         (gl_carray_iterator_from_to): Likewise.
72201
72202         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72203         * lib/md4.c (md4_process_block): Remove unused variable.
72204         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72205         parentheses for clarity.
72206
72207 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72208
72209         * modules/bison-i18n (Depends-on): Add gettext.
72210
72211 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72212
72213         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72214         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72215         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72216         also add missing comma that caused broken test.
72217         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72218         stdlib.h, for `abort'.
72219         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72220         variables.
72221         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72222         include unistd.h if present, for `rmdir'.
72223         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72224         variables.
72225         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72226         in the process include standard headers for prototypes.
72227         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72228         gets declared on GNU/Linux.
72229         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72230         unistd.h, for `rmdir'.
72231         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72232
72233         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72234         always true.
72235         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72236
72237         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72238
72239 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72240
72241         * gnulib-tool (func_version): Create output all at once.  This
72242         may help avoid triggering unnecessary SIGPIPEs, and at any
72243         rate it doesn't hurt.
72244
72245 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72246             Bruno Haible  <bruno@clisp.org>
72247
72248         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72249         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72250         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72251
72252         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72253         (gl_FUNC_VASPRINTF): Invoke it.
72254
72255 2006-09-22  Bruno Haible  <bruno@clisp.org>
72256
72257         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72258         getloadavg.c as first argument.
72259
72260 2006-09-22  Bruno Haible  <bruno@clisp.org>
72261
72262         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72263         at the beginning of the gl_INIT macro.
72264         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72265         gl_GETLOADAVG.
72266
72267 2006-09-22  Bruno Haible  <bruno@clisp.org>
72268
72269         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72270         module.
72271         Suggested by Ralf Wildenhues.
72272
72273 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72274
72275         Import this patch from libc:
72276
72277         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72278
72279         * lib/regex_internal.c (re_string_reconstruct): Handle
72280         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72281         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72282         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72283         re_string_context_at.
72284
72285         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72286         now requires it.
72287         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72288         gl_REGEX now does it for us.
72289         (gl_REGEX): Add test taken from
72290         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72291
72292         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72293         Check that large offsets work.  Modernize Autoconf usages.
72294         Prefer "yes" to mean a good thing rather than a bad.
72295         Don't put "#define mkstemp" in config.h, as this might interfere
72296         with standard system headers that "#define mkstemp mkstemp64".
72297
72298         * modules/mkstemp (Depends-on): Add extensions, so that
72299         mkstemp is visible on some platforms.
72300         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72301         (Include): Change to "mkstemp.h" from <stdlib.h>.
72302         (Files): Add mkstemp.h.
72303
72304         * lib/mkstemp.h: New file, since some standard headers
72305         #define mkstemp.
72306         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72307         Include "mkstemp.h".
72308         Make the _LIBC code resemble glibc original more,
72309         e.g., use K&R style.
72310         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72311         (mkstemp): Remove, since mkstemp.h does this for us.
72312         * lib/stdlib--.h: Include mkstemp.h.
72313
72314         Import this patch from libc:
72315
72316         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72317
72318         * lib/tempname.c (__gen_tempname): Change attempts_min
72319         into a macro.  Use preprocessor to decide how to initialize
72320         attempts [Coverity CID 67].
72321
72322 2006-09-20  Bruno Haible  <bruno@clisp.org>
72323
72324         * lib/mkdtemp.c: Import from libc.
72325         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72326                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72327                 attempts_min into a macro.  Use preprocessor to decide how to
72328                 initialize attempts [Coverity CID 67].
72329         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72330                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72331                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72332
72333 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72334
72335         * gnulib-tool (func_exit): New function, to allow to pass the
72336         exit status portably through the trap.  Use everywhere.
72337         (--help, --version): Signal a write error.
72338         (trap): catch SIGPIPE, for write errors.
72339         Exit at the end of the trap, with the correct exit status.
72340
72341 2006-09-19  Karl Berry  <karl@gnu.org>
72342
72343         * doc/gnulib.texi: note about the license texinfo files.
72344
72345 2006-09-19  Eric Blake  <ebb9@byu.net>
72346
72347         * gnulib-tool: Avoid space-tab.
72348
72349 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72350
72351         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72352         that prevented coreutils 6.1 from building.  Problem reported
72353         by Petter Reinholdtsen.
72354
72355 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72356
72357         * gnulib-tool (avoidlist): Fix typo that broke options like
72358         --avoid=lock that are used by coreutils bootstrap.
72359
72360 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72361
72362         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72363         more systematically.
72364
72365 2006-09-18  Jim Meyering  <jim@meyering.net>
72366
72367         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72368
72369 2006-09-18  Bruno Haible  <bruno@clisp.org>
72370
72371         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72372
72373 2006-09-18  Bruno Haible  <bruno@clisp.org>
72374
72375         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72376         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72377         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72378         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72379         * m4/gettext.m4: Require autoconf >= 2.52.
72380         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72381         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72382         of gl_cv_header_inttypes_h.
72383
72384 2006-09-18  Bruno Haible  <bruno@clisp.org>
72385
72386         * lib/javaversion.c: Include configmake.h.
72387
72388 2006-09-18  Bruno Haible  <bruno@clisp.org>
72389
72390         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72391         avoid that the while loops be executed in a subshell.
72392
72393 2006-09-18  Bruno Haible  <bruno@clisp.org>
72394
72395         * MODULES.html.sh (func_module): Break long lines.
72396         Suggested by Bruce Korb <bkorb@gnu.org>.
72397
72398 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72399
72400         Speed up by a factor of 1.12.
72401         * gnulib-tool (nl): New variable.
72402         (func_import): Rewrite include directive extraction to only read each
72403         directive once.
72404
72405 2006-09-17  Bruno Haible  <bruno@clisp.org>
72406
72407         * modules/javaversion (Makefile.am): Remove DEFS setting.
72408         (Depends-on): Add configmake, for PKGDATADIR definition.
72409
72410 2006-09-17  Bruno Haible  <bruno@clisp.org>
72411
72412         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72413
72414 2006-09-17  Bruno Haible  <bruno@clisp.org>
72415
72416         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72417         (func_modules_transitive_closure, func_modules_add_dummy,
72418         func_modules_to_filelist, func_import, func_create_testdir,
72419         func_create_megatestdir, ...): Use it wherever possible.
72420         Suggested by Ralf Wildenhues.
72421
72422 2006-09-16  Karl Berry  <karl@gnu.org>
72423
72424         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72425         to avoid sectioning errors.
72426         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72427         [ifinfo]: blank line after @center-ed titles.
72428         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72429         Spell FSF address consistently with others.
72430         (These changes approved by rms.)
72431
72432 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72433
72434         Speed up by a factor of 1.61.
72435         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72436         already checked module names again.
72437
72438 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72439
72440         Speed up by a factor of 1.13.
72441         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
72442         for new_files, and the input to func_add_or_update.
72443
72444 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72445
72446         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
72447         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
72448
72449 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * modules/mkancesdirs (Depends-on): Add fcntl.
72452         * modules/savewd: New file.
72453         * MODULES.html.sh (File system functions): Add savewd.
72454
72455         * modules/configmake (Makefile.am): Add support for the
72456         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
72457
72458 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72459
72460         * m4/savewd.m4: New file.
72461
72462 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
72463
72464         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
72465         (dirchownmod): New arg FD.  All callers changed.
72466         Use FD rather than opening the directory ourself, as opening is
72467         now the caller's responsibility.
72468         * lib/dirchownmod.h: Likewise.
72469         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
72470         hosts that require <sys/types.h> before <sys/stat.h>.  Include
72471         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
72472         (test_dir): Remove.
72473         (mkancesdirs): Return length of prefix of FILE that has already
72474         been made, or -2 if there is a child doing the work.  Redo
72475         algorithm so that it is O(N) rather than O(N**2).  Optimize away
72476         ".", and treat ".." specially since it might stray back into
72477         already-created areas.  Use a subprocess if necessary.  New arg
72478         WD; all users changed.  MAKE_DIR function should now return 1
72479         if it creates a directory that is not readable.  Return -2 if
72480         a child process is spun off.
72481         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
72482         Adjust signature to match code.
72483         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
72484         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
72485         all users changed.
72486         * lib/savewd.c, lib/savewd.h: New files.
72487
72488 2006-09-15  Jim Meyering  <jim@meyering.net>
72489
72490         * modules/rename-dest-slash: New module.
72491         * MODULES.html.sh (posix_compat): Add it here.
72492
72493         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
72494
72495 2006-09-15  Jim Meyering  <jim@meyering.net>
72496
72497         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
72498         file.
72499
72500         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
72501
72502 2006-09-15  Jim Meyering  <jim@meyering.net>
72503
72504         * lib/rename-dest-slash.c (has_trailing_slash): Use
72505         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
72506         (rpl_rename_dest_slash): Perform the cheaper trailing slash
72507         test before testing whether SRC is a directory.
72508         Suggestions from Bruno Haible.
72509
72510         Avoid a warning about an unused variable.
72511         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
72512         into the #ifdef block where it's used.
72513
72514         * lib/rename-dest-slash.c: New file.
72515
72516 2006-09-14  Bruno Haible  <bruno@clisp.org>
72517
72518         * lib/allocsa.c: Include <config.h> unconditionally.
72519         * lib/asnprintf.c: Likewise.
72520         * lib/asprintf.c: Likewise.
72521         * lib/c-strcasecmp.c: Likewise.
72522         * lib/c-strcasestr.c: Likewise.
72523         * lib/c-strncasecmp.c: Likewise.
72524         * lib/c-strstr.c: Likewise.
72525         * lib/classpath.c: Likewise.
72526         * lib/clean-temp.c: Likewise.
72527         * lib/concatpath.c: Likewise.
72528         * lib/copy-file.c: Likewise.
72529         * lib/csharpcomp.c: Likewise.
72530         * lib/csharpexec.c: Likewise.
72531         * lib/execute.c: Likewise.
72532         * lib/fatal-signal.c: Likewise.
72533         * lib/findprog.c: Likewise.
72534         * lib/fwriteerror.c: Likewise.
72535         * lib/gl_array_list.c: Likewise.
72536         * lib/gl_array_oset.c: Likewise.
72537         * lib/gl_avltree_list.c: Likewise.
72538         * lib/gl_avltree_oset.c: Likewise.
72539         * lib/gl_avltreehash_list.c: Likewise.
72540         * lib/gl_carray_list.c: Likewise.
72541         * lib/gl_linked_list.c: Likewise.
72542         * lib/gl_linkedhash_list.c: Likewise.
72543         * lib/gl_list.c: Likewise.
72544         * lib/gl_oset.c: Likewise.
72545         * lib/gl_rbtree_list.c: Likewise.
72546         * lib/gl_rbtree_oset.c: Likewise.
72547         * lib/gl_rbtreehash_list.c: Likewise.
72548         * lib/imaxabs.c: Likewise.
72549         * lib/imaxdiv.c: Likewise.
72550         * lib/javacomp.c: Likewise.
72551         * lib/javaexec.c: Likewise.
72552         * lib/javaversion.c: Likewise.
72553         * lib/linebreak.c: Likewise.
72554         * lib/localcharset.c: Likewise.
72555         * lib/lock.c: Likewise.
72556         * lib/mbchar.c: Likewise.
72557         * lib/mbswidth.c: Likewise.
72558         * lib/mkdtemp.c: Likewise.
72559         * lib/pipe.c: Likewise.
72560         * lib/printf-args.c: Likewise.
72561         * lib/printf-parse.c: Likewise.
72562         * lib/progname.c: Likewise.
72563         * lib/progreloc.c: Likewise.
72564         * lib/readlink.c: Likewise.
72565         * lib/sh-quote.c: Likewise.
72566         * lib/stpcpy.c: Likewise.
72567         * lib/stpncpy.c: Likewise.
72568         * lib/strcasecmp.c: Likewise.
72569         * lib/strcasestr.c: Likewise.
72570         * lib/strcspn.c: Likewise.
72571         * lib/striconv.c: Likewise.
72572         * lib/strncasecmp.c: Likewise.
72573         * lib/strnlen1.c: Likewise.
72574         * lib/strstr.c: Likewise.
72575         * lib/strtok_r.c: Likewise.
72576         * lib/tls.c: Likewise.
72577         * lib/tmpdir.c: Likewise.
72578         * lib/unicodeio.c: Likewise.
72579         * lib/unsetenv.c: Likewise.
72580         * lib/vasnprintf.c: Likewise.
72581         * lib/vasprintf.c: Likewise.
72582         * lib/wait-process.c: Likewise.
72583         * lib/xallocsa.c: Likewise.
72584         * lib/xsetenv.c: Likewise.
72585         * lib/xstriconv.c: Likewise.
72586
72587 2006-09-13  Simon Josefsson  <jas@extundo.com>
72588
72589         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
72590         that internally, suggested by Ralf Wildenhues
72591         <Ralf.Wildenhues@gmx.de>.
72592
72593 2006-09-13  Simon Josefsson  <jas@extundo.com>
72594
72595         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
72596         @LIBOBJS@.
72597         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72598
72599 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
72600
72601         * lib/_fpending.c: Include <config.h> unconditionally, since we no
72602         longer worry about uses that don't define HAVE_CONFIG_H.
72603         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
72604         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
72605         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
72606         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
72607         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
72608         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
72609         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
72610         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
72611         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
72612         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
72613         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
72614         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
72615         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
72616         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
72617         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
72618         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
72619         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
72620         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
72621         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
72622         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
72623         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
72624         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
72625         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
72626         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
72627         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
72628         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
72629         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
72630         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
72631         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
72632         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
72633         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
72634         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
72635         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
72636         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
72637         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
72638         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
72639         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
72640         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
72641         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
72642         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
72643         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
72644         Likewise.
72645
72646 2006-09-13  Eric Blake  <ebb9@byu.net>
72647
72648         * lib/getopt.c: Fix typo in last commit.
72649
72650 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
72651
72652         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
72653         dgettext.
72654
72655 2006-09-12  Jim Meyering  <jim@meyering.net>
72656
72657         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
72658         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
72659         Reported by Nelson H. F. Beebe.
72660
72661 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
72662
72663         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
72664         program_invocation_name and program_invocation_short_name are
72665         initialized.
72666         * lib/argp-namefrob.h: Move declarations of program_invocation_name
72667         and program_invocation_short_name to argp.h, so they are visible
72668         to user programs.
72669         * lib/argp.h: Likewise
72670
72671 2006-09-10  Bruno Haible  <bruno@clisp.org>
72672
72673         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
72674         m4/inttypes_h.m4, m4/uintmax_t.m4.
72675
72676 2006-09-10  Bruno Haible  <bruno@clisp.org>
72677
72678         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
72679         gl_AC_TYPE_UINTMAX_T.
72680
72681 2006-09-10  Bruno Haible  <bruno@clisp.org>
72682
72683         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
72684
72685 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72686
72687         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
72688         convention.  Text proposed by Bruno Haible.
72689         (struct argp_option): Document the use of N_() wrappers.
72690
72691         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
72692         '\v', and translate the two parts separately, instead of feeding
72693         the whole string to gettext.  This allows to exclude
72694         '\v' from the strings visible to the translator by writing doc
72695         strings as N_("..") "\v" N_("..").
72696
72697 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
72698
72699         * config/srclist.txt: Undo latest change; the bug was fixed.
72700
72701 2006-09-09  Bruno Haible  <bruno@clisp.org>
72702
72703         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
72704         assignments if building a library without libtool.
72705         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
72706         in func_emit_lib_Makefile_am.
72707         (func_import): When building a static library libfoo.a, arrange to
72708         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
72709         (func_create_testdir): Likewise.
72710         * modules/gc (configure.ac, Makefile.am): If building statically,
72711         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
72712         * modules/iconvme (configure.ac, Makefile.am): Likewise.
72713         * modules/striconv (configure.ac, Makefile.am): Likewise.
72714         Based on a suggestion by Ralf Wildenhues.
72715
72716 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72717
72718         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72719         Check for unistd.h too, since Autoconf doesn't assume POSIX.
72720         Also:
72721
72722         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72723         Add year_2050_test to catch glibc bug 2821
72724         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72725
72726         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72727         Prefer #ifdef to #if.
72728
72729         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
72730         Return from 'main' instead of calling 'exit'.
72731
72732 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72733
72734         * lib/mktime.c (guess_time_tm): Fix bug where mktime
72735         returned the maximum time_t value rather than (time_t) -1.
72736         Problem originally reported by William Bardwell
72737         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
72738
72739         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72740         Moved to here ...
72741         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
72742         ... from here.
72743
72744 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
72745
72746         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
72747         2821 is fixed.
72748
72749 2006-09-08  Jim Meyering  <jim@meyering.net>
72750
72751         Don't make generated files read-only.  That would bother too many
72752         people.  However, do retain the ability to work when targets are
72753         read-only: remove the destination and temporary files before writing
72754         them (when generated via sed or echo), or by using the -f option for
72755         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
72756         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72757         * modules/byteswap, modules/configmake, modules/fcntl:
72758         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72759         * modules/localcharset, modules/netinet_in, modules/poll:
72760         * modules/stdbool, modules/stdint, modules/sys_select:
72761         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72762
72763 2006-09-08  Jim Meyering  <jim@meyering.net>
72764
72765         Avoid new build failure on FreeBSD 6.0.
72766         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
72767         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
72768         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
72769
72770 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72771
72772         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
72773
72774 2006-09-07  Jim Meyering  <jim@meyering.net>
72775
72776         Fix global typo in last change: use chmod u-w, not chmod u-x.
72777         Spotted by Paul Eggert and Bruce Korb.
72778         * modules/alloca-opt, modules/argz, modules/arpa_inet:
72779         * modules/byteswap, modules/configmake, modules/fcntl:
72780         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
72781         * modules/localcharset, modules/netinet_in, modules/poll:
72782         * modules/stdbool, modules/stdint, modules/sys_select:
72783         * modules/sys_socket, modules/sys_stat, modules/sysexits:
72784
72785 2006-09-06  Jim Meyering  <jim@meyering.net>
72786
72787         Make generated files be read-only.
72788         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
72789         Ensure that each generated file is now read-only.
72790         * modules/argz: Likewise.
72791         * modules/arpa_inet: Likewise.
72792         * modules/byteswap: Likewise.
72793         * modules/configmake: Likewise.
72794         * modules/fcntl: Likewise.
72795         * modules/fnmatch: Likewise.
72796         * modules/getopt: Likewise.
72797         * modules/glob: Likewise.
72798         * modules/inttypes: Likewise.
72799         * modules/netinet_in: Likewise.
72800         * modules/poll: Likewise.
72801         * modules/stdbool: Likewise.
72802         * modules/stdint: Likewise.
72803         * modules/sys_select: Likewise.
72804         * modules/sys_socket: Likewise.
72805         * modules/sys_stat: Likewise.
72806         * modules/sysexits: Likewise.
72807         * modules/localcharset: Same as above, but continue using temporary
72808         file named "t-$@" (why different?) rather than the "$@-t" used
72809         everywhere else.
72810
72811         * modules/sysexits (Makefile.am): Replace literal occurrences
72812         of "sysexit.h" more readable, and more consistent, "$@".
72813
72814 2006-09-06  Bruno Haible  <bruno@clisp.org>
72815
72816         * modules/striconv: New file.
72817         * modules/xstriconv: New file.
72818         * MODULES.html.sh (Internationalization functions): Add striconv,
72819         xstriconv.
72820
72821 2006-09-06  Bruno Haible  <bruno@clisp.org>
72822
72823         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
72824         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
72825         not using libtool correctly.
72826
72827 2006-09-06  Bruno Haible  <bruno@clisp.org>
72828
72829         * lib/striconv.h: New file.
72830         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
72831         iconvstring.c.
72832         * lib/xstriconv.h: New file.
72833         * lib/xstriconv.c: New file.
72834
72835 2006-09-06  Bruno Haible  <bruno@clisp.org>
72836
72837         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
72838         lib_..._LDFLAGS.
72839
72840 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72841
72842         * lib/argz_.h: Sync from Libtool.
72843
72844         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
72845                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
72846
72847         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
72848
72849 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72850
72851         * modules/trim: New file.
72852
72853 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
72854
72855         * lib/trim.h: New file.
72856         * lib/trim.c: New file.
72857
72858 2006-09-05  Bruno Haible  <bruno@clisp.org>
72859
72860         * MODULES.html.sh (String handling): Add trim.
72861
72862 2006-09-04  Karl Berry  <karl@gnu.org>
72863
72864         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
72865         until next release.
72866
72867 2006-09-03  Bruno Haible  <bruno@clisp.org>
72868
72869         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
72870         correctly.
72871
72872 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72873
72874         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
72875         not gl_GETLOADAVG.  Omit unneeded semicolons.
72876         Problems reported by Ralf Wildenhues in
72877         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72878         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
72879         at the end, which is the usual gnulib style.
72880
72881         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
72882         of doing all the work ourselves.
72883         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
72884         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
72885
72886 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72887
72888         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
72889         Problem reported by Ralf Wildenhues in
72890         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
72891
72892         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
72893         HAVE_STRUCT_STATFS_F_FSTYPENAME.
72894
72895 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
72896
72897         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
72898         yesterday's patch by changing test -n to test -z.
72899
72900 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72901
72902         * modules/getloadavg (Files): Add m4/getloadavg.m4.
72903         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
72904         the former is now obsolescent.
72905
72906         * modules/chdir-long (Depends-on): Add fcntl.
72907
72908 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72909
72910         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
72911         obsolescent, and programs should use gnulib instead.
72912         * m4/getloadavg.m4: New file, with contents taken from Autoconf
72913         but with prefixes changed.
72914
72915 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
72916
72917         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
72918         or stdbool.h, because they might not exist while configuring.
72919
72920         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
72921         Don't include unistd.h or limits.h; not needed, since chdir-long.h
72922         does that for us.
72923         (O_DIRECTORY): Remove.
72924
72925 2006-08-31  Eric Blake  <ebb9@byu.net>
72926
72927         * gnulib-tool: Don't let emacs change spaces to TAB.
72928
72929 2006-08-31  Bruno Haible  <bruno@clisp.org>
72930
72931         * gnulib-tool: When calling func_import more than once, do it in a
72932         subshell.
72933         Reported by Eric Blake <ebb9@byu.net>.
72934
72935 2006-08-31  Bruno Haible  <bruno@clisp.org>
72936
72937         * gnulib-tool (nl): Remove variable.
72938         (sed_transform_lib_file): Use more robust test for config-h module.
72939         (func_import): Fix typo in 2006-08-25 patch.
72940
72941 2006-08-31  Bruno Haible  <bruno@clisp.org>
72942
72943         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
72944         specified, augment Makefile.am variables instead of assigning them.
72945
72946 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72947
72948         Work around a bug in both the Linux and SunOS 64-bit kernels:
72949         nanosleep mishandles sleeps for longer than 2**31 seconds.
72950         Problem reported by Frank v Waveren in
72951         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72952         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
72953         Check for nanosleep bug.
72954         (LIB_NANOSLEEP): Append clock_gettime library if needed.
72955
72956 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72957
72958         Work around a bug in both the Linux and SunOS 64-bit kernels:
72959         nanosleep mishandles sleeps for longer than 2**31 seconds.
72960         Problem reported by Frank v Waveren in
72961         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
72962         * lib/nanosleep.c (BILLION): New constant.
72963         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
72964         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
72965         implementation.
72966
72967 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72968
72969         * modules/nanosleep (Depends-on): Add gettime.
72970
72971 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
72972         and Simon Josefsson  <jas@extundo.com>
72973         and Oskar Liljeblad  <oskar@osk.mine.nu>
72974
72975         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
72976         * gnulib-tool (func_import): New license type 'unmodifiable license
72977         text'.
72978         * modules/fdl: Use it.  Longer description.
72979         * module/gpl, module/lgpl: New files.
72980
72981 2006-08-30  Jim Meyering  <jim@meyering.net>
72982
72983         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
72984         shadowing the parameter.
72985
72986 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72987
72988         Sync from Libtool:
72989
72990         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72991
72992         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
72993         sharing with gnulib.  Report by Eric Blake.
72994
72995 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
72996
72997         * modules/isapipe: New file.
72998         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
72999
73000 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73001
73002         * modules/configmake (Makefile.am): Add a comment, and omit
73003         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73004         by Bruno Haible.
73005
73006 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73007
73008         * m4/isapipe.m4: New file.
73009
73010 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * lib/isapipe.c, lib/isapipe.h: New files.
73013
73014 2006-08-29  Jim Meyering  <jim@meyering.net>
73015
73016         * modules/configmake (Makefile.am): Make configmake.h depend on
73017         Makefile.  Otherwise, a stale configmake.h could hang around.
73018
73019 2006-08-29  Eric Blake  <ebb9@byu.net>
73020
73021         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73022         resolution of upstream bug 3044.
73023
73024 2006-08-29  Bruno Haible  <bruno@clisp.org>
73025
73026         * modules/localcharset (Depends-on): Add configmake.
73027         (Makefile.am): Remove setting of LIBDIR through DEFS.
73028
73029 2006-08-29  Bruno Haible  <bruno@clisp.org>
73030
73031         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73032         defined.
73033
73034 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73035
73036         * modules/fcntl: New file.
73037         * modules/chdir-safer (Depends-on): Add fcntl.
73038         * modules/fts: Likewise.
73039         * modules/mkdir-p: Likewise.
73040
73041         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73042         This undoes the most recent change, since we're now addressing the
73043         problem in a different way.
73044
73045         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73046         into output, since the output might be called Makefile.am even
73047         if $makefile_name is something different.
73048         (func_import): Use $makefile_am rather than
73049         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73050         empty.
73051
73052         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73053
73054 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73055
73056         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73057         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73058         recent change to stdint.m4, since we're now addressing the problem in a
73059         different way.
73060
73061 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73062
73063         * m4/fcntl_h.m4: New file.
73064
73065 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73066
73067         * lib/fcntl_.h: New file.
73068         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73069         the fcntl module.
73070         * lib/dirchownmod.c: Likewise.
73071         * lib/fts.c: Likewise.
73072
73073         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73074         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73075         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73076         just before including <inttypes.h>, to avoid circular inclusion.
73077
73078 2006-08-28  Jim Meyering  <jim@meyering.net>
73079
73080         * doc/visibility.texi: Actually read and correct the grammar of the
73081         sentence affected by yesterday's change.
73082
73083 2006-08-28  Eric Blake  <ebb9@byu.net>
73084
73085         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73086         needs wrapper.
73087
73088 2006-08-28  Eric Blake  <ebb9@byu.net>
73089
73090         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73091
73092 2006-08-28  Eric Blake  <ebb9@byu.net>
73093
73094         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73095
73096 2006-08-28  Bruno Haible  <bruno@clisp.org>
73097
73098         * modules/c-strstr: New file, from GNU gettext.
73099         * MODULES.html.sh (String handling): Add c-strstr.
73100
73101 2006-08-28  Bruno Haible  <bruno@clisp.org>
73102
73103         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73104         macros.
73105         Reported by Eric Blake.
73106
73107 2006-08-28  Bruno Haible  <bruno@clisp.org>
73108
73109         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73110         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73111         * lib/vasprintf.c: Include errno.h, limits.h.
73112         (EOVERFLOW): New fallback definition.
73113         (vasprintf): Test here whether the string length is > INT_MAX.
73114         * lib/vsnprintf.c: Include errno.h, limits.h.
73115         (EOVERFLOW): New fallback definition.
73116         (vsnprintf): Fix bug when generated string was too long for the buffer.
73117         Test here whether the string length is > INT_MAX.
73118
73119 2006-08-28  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/inttypes_.h (SCNX*): Remove definitions.
73122         Reported by Eric Blake.
73123
73124 2006-08-28  Bruno Haible  <bruno@clisp.org>
73125
73126         * lib/c-strstr.h: New file, from GNU gettext.
73127         * lib/c-strstr.c: New file, from GNU gettext.
73128
73129 2006-08-28  Bruno Haible  <bruno@clisp.org>
73130
73131         * gnulib-tool: Reorder some statements.
73132
73133 2006-08-28  Bruno Haible  <bruno@clisp.org>
73134
73135         * gnulib-tool: New option --makefile-name.
73136         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73137         $makefile_name.
73138         (func_import): Write $makefile_name to the cache file, and read it from
73139         there unless explicitly specified. Use $makefile_name as file name
73140         instead of Makefile.am. Adjust the recommendations accordingly.
73141
73142 2006-08-28  Bruno Haible  <bruno@clisp.org>
73143
73144         * gnulib-tool (func_verify_module): Check against misapplying patch.
73145
73146 2006-08-28  Bruno Haible  <bruno@clisp.org>
73147
73148         * gnulib-tool (func_relativize, func_relconcat): New functions.
73149         Give an error if --local-dir is given with --update.
73150         Remove trailing slashes from $local_gnulib_dir.
73151         (func_import): Store the relativized $local_gnulib_dir in
73152         gnulib-cache.m4, and read it from there if not specified explicitly.
73153
73154 2006-08-28  Bruno Haible  <bruno@clisp.org>
73155
73156         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73157         is the current directory. Respect also $local_gnulib_dir.
73158
73159 2006-08-28  Bruno Haible  <bruno@clisp.org>
73160             Simon Josefsson  <jas@extundo.com>
73161
73162         BeOS portability.
73163         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73164
73165 2006-08-27  Jim Meyering  <jim@meyering.net>
73166
73167         * doc/visibility.texi: Remove duplicate word: "pointer".
73168
73169 2006-08-26  Bruno Haible  <bruno@clisp.org>
73170
73171         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73172         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73173         (Makefile.am): Create inttypes.h from inttypes_.h.
73174         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73175
73176         * modules/imaxabs: New file.
73177
73178         * modules/imaxdiv: New file.
73179
73180 2006-08-26  Bruno Haible  <bruno@clisp.org>
73181
73182         * m4/inttypes.m4: New file.
73183         * m4/_inttypes_h.m4: Remove file.
73184         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73185         PRI_MACROS_BROKEN.
73186         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73187
73188         * m4/imaxabs.m4: New file.
73189
73190         * m4/imaxdiv.m4: New file.
73191
73192 2006-08-26  Bruno Haible  <bruno@clisp.org>
73193
73194         * lib/inttypes_.h: New file.
73195         * lib/inttypes.h: Remove file.
73196         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73197
73198         * lib/imaxabs.c: New file.
73199
73200         * lib/imaxdiv.c: New file.
73201
73202 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         New config-h module, so that "make" output needn't be cluttered
73205         by -DHAVE_CONFIG_H.
73206         * MODULES.html.sh (Support for building libraries and executables):
73207         Add config-h.
73208         * modules/config-h: New file.
73209         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73210         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73211         the config-h module is used.
73212
73213         New configmake module, so that "make" output needn't be cluttered
73214         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73215         * MODULES.html.sh (Support for building libraries and executables):
73216         Add configmake.
73217         * modules/configmake: New file.
73218
73219 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73220
73221         * m4/config-h.m4: New file.
73222
73223 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * config/srclist.txt: Add elisp-comp.
73226
73227 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73228
73229         * MODULES.html.sh (Support for building libraries and executables):
73230         Add elisp-comp.
73231         * build-aux/elisp-comp: New file.
73232         * modules/elisp-comp: New file.
73233
73234 2006-08-24  Bruno Haible  <bruno@clisp.org>
73235
73236         * gnulib-tool (func_create_testdir): Use non-default values of
73237         sourcebase and m4base.
73238
73239 2006-08-24  Bruno Haible  <bruno@clisp.org>
73240
73241         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73242         HTML structure.
73243
73244 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73245
73246         * modules/openat (Depends-on): Add lchown.
73247
73248 2006-08-23  Bruno Haible  <bruno@clisp.org>
73249
73250         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73251         of gl_LOCK_EARLY instead of gl_LOCK.
73252
73253 2006-08-23  Bruno Haible  <bruno@clisp.org>
73254
73255         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73256         on OSF/1 to no.
73257         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73258
73259 2006-08-23  Bruno Haible  <bruno@clisp.org>
73260
73261         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73262         as unusable.
73263
73264         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73265         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73266         (gl_LOCK): New macro.
73267
73268 2006-08-22  Simon Josefsson  <jas@extundo.com>
73269
73270         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73271         to md5 module.
73272
73273 2006-08-22  Simon Josefsson  <jas@extundo.com>
73274
73275         * MODULES.html.sh: Add "Support for maintaining and release
73276         projects".
73277
73278         * build-aux/gnupload: New file, from coreutils.
73279
73280 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73281
73282         Avoid the need for AC_LIBSOURCES in m4 macros.
73283         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73284         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73285         * modules/check-version (EXTRA_DIST): Add check-version.h.
73286         * modules/crc (EXTRA_DIST): Add crc.h.
73287         * modules/des (EXTRA_DIST): Add des.h.
73288         * modules/gc (EXTRA_DIST): Add gc.h.
73289         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73290         * modules/getline (EXTRA_DIST): Add getline.h.
73291         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73292         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73293         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73294         * modules/md2 (EXTRA_DIST): Add md2.h.
73295         * modules/md4 (EXTRA_DIST): Add md4.h.
73296         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73297         * modules/read-file (EXTRA_DIST): Add read-file.h.
73298         * modules/readline (EXTRA_DIST): Add readline.h.
73299         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73300         rijndael-api-fst.h.
73301
73302 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73303
73304         * m4/rijndael.m4 (gl_ARCFOUR):
73305         * m4/arctwo.m4 (gl_ARCTWO):
73306         * m4/check-version.m4 (gl_CHECK_VERSION):
73307         * m4/crc.m4 (gl_CRC):
73308         * m4/des.m4 (gl_DES):
73309         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73310         * m4/gc.m4 (gl_GC):
73311         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73312         * m4/getline.m4 (gl_FUNC_GETLINE):
73313         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73314         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73315         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73316         * m4/md2.m4 (gl_MD2):
73317         * m4/md4.m4 (gl_MD4):
73318         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73319         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73320         * m4/readline.m4 (gl_FUNC_READLINE):
73321         * m4/rijndael.m4 (gl_RIJNDAEL):
73322         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73323         to get the necessary .h files and whatnot.
73324
73325 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73326
73327         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73328         gnulib rather than the other way around.
73329         * config/srclistvars.sh (COREUTILS): Remove.
73330
73331 2006-08-22  Jim Meyering  <jim@meyering.net>
73332
73333         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73334
73335         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73336
73337 2006-08-22  Eric Blake  <ebb9@byu.net>
73338
73339         * modules/regexprops-generic: New file.
73340         * MODULES.html.sh (Support for building documentation): List it.
73341
73342 2006-08-22  Eric Blake  <ebb9@byu.net>
73343
73344         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73345         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73346         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73347         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73348
73349 2006-08-22  Bruno Haible  <bruno@clisp.org>
73350
73351         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73352         and lib_LTLIBRARIES like the other lib_* variables.
73353
73354 2006-08-22  Bruno Haible  <bruno@clisp.org>
73355
73356         * build-aux/x-to-1.in: New file, from GNU gettext.
73357
73358 2006-08-22  Bruno Haible  <bruno@clisp.org>
73359
73360         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73361         <utmpx.h> exists.
73362
73363 2006-08-22  Bruno Haible  <bruno@clisp.org>
73364
73365         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73366         <utmpx.h> exists.
73367
73368 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73369
73370         BeOS portability.
73371         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73372         exist.
73373         Problem reported by Bruno Haible.
73374
73375 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73376
73377         Avoid the need for AC_LIBSOURCES in m4 macros.
73378         * modules/acl (EXTRA_DIST): Add acl.h.
73379         * modules/argmatch (Files): Add m4/argmatch.m4.
73380         (configure.ac): Add gl_ARGMATCH.
73381         (EXTRA_DIST): Renamed from lib_SOURCES, for
73382         consistency with the other modules.  Remove argmatch.c.
73383         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73384         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73385         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73386         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73387         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73388         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73389         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73390         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73391         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73392         * modules/closeout (EXTRA_DIST): Add closeout.h.
73393         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73394         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73395         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73396         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73397         dirname.h; remove basename.c and stripslash.c.
73398         * modules/exclude (EXTRA_DIST): Add exclude.h.
73399         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73400         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73401         * modules/file-type (EXTRA_DIST): Add file-type.h.
73402         * modules/filemode (EXTRA_DIST): Add filemode.h.
73403         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73404         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73405         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73406         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73407         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73408         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73409         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73410         * modules/getdate (EXTRA_DIST): Add getdate.c.
73411         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73412         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73413         * modules/getpass (EXTRA_DIST): Add getpass.h.
73414         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73415         * modules/group-member (EXTRA_DIST): Add group-member.h.
73416         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73417         * modules/hash (EXTRA_DIST): Add hash.h.
73418         * modules/human (EXTRA_DIST): Add human.h.
73419         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73420         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73421         * modules/lchown (EXTRA_DIST): Add lchown.h.
73422         * modules/long-options (EXTRA_DIST): Add long-options.h.
73423         * modules/lstat (EXTRA_DIST): Add lstat.h.
73424         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73425         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73426         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73427         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73428         * modules/memxor (EXTRA_DIST): Add memxor.h.
73429         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73430         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73431         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73432         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73433         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73434         * modules/physmem (EXTRA_DIST): Add physmem.h.
73435         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73436         * modules/posixver (EXTRA_DIST): Add posixver.h.
73437         * modules/quote (EXTRA_DIST): Add quote.h.
73438         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
73439         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
73440         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
73441         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
73442         regex_internal.h regexec.c.
73443         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
73444         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
73445         * modules/same (EXTRA_DIST): Add same.h.
73446         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
73447         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
73448         * modules/savedir (EXTRA_DIST): Add savedir.h.
73449         * modules/sha1 (EXTRA_DIST): Add sha1.h.
73450         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
73451         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
73452         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
73453         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
73454         * modules/strdup (EXTRA_DIST): Add strdup.h.
73455         * modules/strftime (EXTRA_DIST): Add strftime.h.
73456         * modules/strndup (EXTRA_DIST): Add strndup.h.
73457         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
73458         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
73459         * modules/time_r (EXTRA_DIST): Add time_r.h.
73460         * modules/timespec (EXTRA_DIST): Add timespec.h.
73461         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73462         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
73463         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
73464         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
73465         * modules/userspec (EXTRA_DIST): Add userspec.h.
73466         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
73467         * modules/utimens (EXTRA_DIST): Add utimens.h.
73468         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
73469         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
73470         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
73471         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
73472         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
73473         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
73474         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
73475         * modules/yesno (EXTRA_DIST): Add yesno.h.
73476
73477 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
73480
73481         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
73482         * m4/dev-ino.m4, same-inode.m4: Remove.
73483
73484         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
73485         * m4/acl.m4 (AC_FUNC_ACL):
73486         * m4/backupfile.m4 (gl_BACKUPFILE):
73487         * m4/c-strtod.m4 (gl_C99_STRTOLD):
73488         * m4/canon-host.m4 (gl_CANON_HOST):
73489         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73490         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
73491         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
73492         * m4/cloexec.m4 (gl_CLOEXEC):
73493         * m4/close-stream.m4 (gl_CLOSE_STREAM):
73494         * m4/closeout.m4 (gl_CLOSEOUT):
73495         * m4/dirfd.m4 (gl_FUNC_DIRFD):
73496         * m4/dirname.m4 (gl_DIRNAME):
73497         * m4/exclude.m4 (gl_EXCLUDE):
73498         * m4/exitfail.m4 (gl_EXITFAIL):
73499         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
73500         * m4/file-type.m4 (gl_FILE_TYPE):
73501         * m4/filemode.m4 (gl_FILEMODE):
73502         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
73503         * m4/fpending.m4 (gl_FUNC_FPENDING):
73504         * m4/fprintftime.m4 (gl_FPRINTFTIME):
73505         * m4/fts.m4 (gl_FUNC_FTS):
73506         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
73507         * m4/getdate.m4 (gl_GETDATE):
73508         * m4/gethrxtime.m4 (gl_GETHRXTIME):
73509         * m4/getpagesize.m4 (gl_GETPAGESIZE):
73510         * m4/getpass.m4 (gl_FUNC_GETPASS):
73511         * m4/gettime.m4 (gl_GETTIME):
73512         * m4/getugroups.m4 (gl_GETUGROUPS):
73513         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
73514         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
73515         * m4/hard-locale.m4 (gl_HARD_LOCALE):
73516         * m4/hash.m4 (gl_HASH):
73517         * m4/idcache.m4 (gl_IDCACHE):
73518         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
73519         * m4/lchown.m4 (gl_FUNC_LCHOWN):
73520         * m4/long-options.m4 (gl_LONG_OPTIONS):
73521         * m4/lstat.m4 (gl_FUNC_LSTAT):
73522         * m4/md5.m4 (gl_MD5):
73523         * m4/memcasecmp.m4 (gl_MEMCASECMP):
73524         * m4/memcoll.m4 (gl_MEMCOLL):
73525         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
73526         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
73527         * m4/memxor.m4 (gl_MEMXOR):
73528         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
73529         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
73530         * m4/modechange.m4 (gl_MODECHANGE):
73531         * m4/mountlist.m4 (gl_MOUNTLIST):
73532         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73533         * m4/openat.m4 (gl_FUNC_OPENAT):
73534         * m4/pathmax.m4 (gl_PATHMAX):
73535         * m4/physmem.m4 (gl_PHYSMEM):
73536         * m4/posixtm.m4 (gl_POSIXTM):
73537         * m4/posixver.m4 (gl_POSIXVER):
73538         * m4/quote.m4 (gl_QUOTE):
73539         * m4/quotearg.m4 (gl_QUOTEARG):
73540         * m4/readtokens.m4 (gl_READTOKENS):
73541         * m4/readutmp.m4 (gl_READUTMP):
73542         * m4/regex.m4 (gl_REGEX):
73543         * m4/safe-read.m4 (gl_SAFE_READ):
73544         * m4/safe-write.m4 (gl_SAFE_WRITE):
73545         * m4/same.m4 (gl_SAME):
73546         * m4/save-cwd.m4 (gl_SAVE_CWD):
73547         * m4/savedir.m4 (gl_SAVEDIR):
73548         * m4/settime.m4 (gl_SETTIME):
73549         * m4/sha1.m4 (gl_SHA1):
73550         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
73551         * m4/stat-macros.m4 (gl_STAT_MACROS):
73552         * m4/stat-time.m4 (gl_STAT_TIME):
73553         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
73554         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
73555         * m4/strdup.m4 (gl_FUNC_STRDUP):
73556         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
73557         * m4/strndup.m4 (gl_FUNC_STRNDUP):
73558         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
73559         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
73560         * m4/time_r.m4 (gl_TIME_R):
73561         * m4/timespec.m4 (gl_TIMESPEC):
73562         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
73563         * m4/unlinkdir.m4 (gl_UNLINKDIR):
73564         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
73565         * m4/userspec.m4 (gl_USERSPEC):
73566         * m4/utimecmp.m4 (gl_UTIMECMP):
73567         * m4/utimens.m4 (gl_UTIMENS):
73568         * m4/xalloc.m4 (gl_XALLOC):
73569         * m4/xgetcwd.m4 (gl_XGETCWD):
73570         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
73571         * m4/xreadlink.m4 (gl_XREADLINK):
73572         * m4/xstrtod.m4 (gl_XSTRTOD):
73573         * m4/yesno.m4 (gl_YESNO):
73574         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73575         to get the necessary .h files and whatnot.
73576
73577 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
73578             Bruno Haible  <bruno@clisp.org>
73579
73580         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
73581         /bin/sh understanding of '!' conditional negation.
73582
73583 2006-08-21  Jim Meyering  <jim@meyering.net>
73584
73585         * modules/openat (Depends-on): Really alphabetize.
73586
73587         * modules/acl (Depends-on): Add error and quote.
73588
73589         * check-module (find_included_lib_files): Add at-func.c to the
73590         ok-to-include-more-than-once white list.
73591
73592         * modules/openat (Depends-on): Add lstat.  Alphabetize.
73593
73594 2006-08-21  Bruno Haible  <bruno@clisp.org>
73595
73596         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73597         Emit a pkgdata_DATA variable only if some snippets add contents to it.
73598         Reported by Martin Lambers <marlam@marlam.de>.
73599
73600 2006-08-21  Bruno Haible  <bruno@clisp.org>
73601
73602         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
73603         specify an installation location, don't emit a noinst_LIBRARIES or
73604         noinst_LTLIBRARIES assignment.
73605
73606 2006-08-21  Bruno Haible  <bruno@clisp.org>
73607
73608         BeOS portability.
73609         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
73610         BeOS has mbrtowc() but no <wctype.h>.
73611
73612 2006-08-21  Bruno Haible  <bruno@clisp.org>
73613
73614         BeOS portability.
73615         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
73616         exist.
73617
73618 2006-08-21  Bruno Haible  <bruno@clisp.org>
73619
73620         BeOS portability.
73621         * lib/mbchar.h: Include <wctype.h> only if it exists.
73622
73623 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73624
73625         Remove files that are no longer needed by their respective modules.
73626         * m4/obstack.m4: Remove.
73627         * m4/strerror_r.m4: Remove.
73628         * m4/uint32_t.m4: Remove.
73629         * m4/uintptr_t.m4: Remove.
73630         * m4/ullong_max.m4: Remove.
73631         * m4/xstrtoimax.m4: Remove.
73632         * m4/xstrtoumax.m4: Remove.
73633
73634         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
73635         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
73636         dependencies now capture this.
73637
73638         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
73639         Do not use AC_LIBSOURCES, since gnulib modules now do this.
73640         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
73641         * m4/human.m4 (gl_HUMAN): Likewise.
73642         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
73643         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
73644
73645         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
73646
73647         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
73648         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
73649         stdint.
73650         * m4/human.m4 (gl_HUMAN): Likewise.
73651         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
73652         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
73653         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73654         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73655         * m4/xstrtol (gl_XSTRTOL): Likewise.
73656
73657         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
73658         AC_TYPE_LONG_LONG_INT.
73659         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
73660         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
73661         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
73662         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
73663
73664         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
73665         on stdbool.
73666
73667         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
73668         (gl_PREREQ_XSTRTOUL): Remove.
73669
73670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
73671
73672         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
73673         mode.
73674
73675 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73676
73677         Add and change modules to make it easier for coreutils to use
73678         gnulib-tool.
73679         * modules/backupfile (Files): Remove m4/d-ino.m4.
73680         (Depends-on): Add d-ino.
73681         * modules/cycle-check (Depends-on): Add stdint.
73682         (lib_SOURCES): Add cycle-check.h.
73683         * modules/d-ino: New module.
73684         * modules/d-type: New module.
73685         * modules/error (Files): Remove m4/strerror_r.m4.
73686         * modules/filemode (Files): Add m4/st_dm_mode.m4.
73687         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73688         m4/inttypes_h.m4, m4/uintmax_t.m4.
73689         (Depends-on): Add stdint.
73690         (lib_SOURCES): Add fsusage.h.
73691         * modules/getcwd (Files): Remove d-ino.m4.
73692         (Depends-on): Add d-ino.
73693         * modules/getndelim2 (Depends-on): Add stdint.
73694         * modules/glob (Files): Remove m4/d-type.m4.
73695         (Depends-on): Add d-type.
73696         * modules/host-os: New module.
73697         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
73698         m4/inttypes_h.m4, m4/uintmax_t.m4.
73699         * Depends-on: Add stdint.
73700         (lib_SOURCES): Add human.h.
73701         * modules/inttostr (Files): Remove m4/intmax_t.m4,
73702         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
73703         m4/uintmax_t.m4, m4/ulonglong.m4.
73704         (Depends-on): Add stdint.
73705         (EXTRA_DIST): Add inttostr.h.
73706         * modules/lchmod: New module.
73707         * modules/link-follow: New module.
73708         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
73709         (Depends-on): Add lchmod.
73710         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
73711         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
73712         (Depends-on): Add stdint.
73713         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
73714         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
73715         (Depends-on): Add stdint.
73716         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
73717         * modules/perl: New module.
73718         * modules/regex (Depends-on): Add stdint.
73719         * modules/rmdir-errno: New module.
73720         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73721         m4/intmax_t.m4.
73722         (Depends-on): Add stdint.
73723         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
73724         m4/uintmax_t.m4.
73725         (Depends-on): Add stdint.
73726         * modules/unlink-busy: New module.
73727         * modules/utimecmp (Depends-on): Add stdint.
73728         * modules/uptime: New module.
73729         * modules/winsz-ioctl: New module.
73730         * modules/winsz-termios: New module.
73731         * modules/xnanosleep (Depends-on): Add nanosleep.
73732         * modules/ullong_max: Remove.
73733         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
73734         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
73735         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
73736         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
73737         (Depends-on): Add inttypes.
73738         (lib_SOURCES): Add xstrtol.h.
73739         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
73740         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
73741         * MODULES.html.sh: Move 'assert' into the assert section.
73742         Move 'dummy' into the linking section.
73743         Remove ullong_max.
73744         Add section for compatibility checks for POSIX:2001 functions,
73745         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
73746         winsz-ioctl, and winsz-termios into it.
73747         Add lchmod.
73748         Add top-level Misc section and put host-os, perl, and uptime
73749         into it.
73750
73751 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
73752
73753         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
73754         now assume the stdint module.  Do not include inttypes.h.
73755         * lib/fsusage.h: Likewise.
73756         * lib/getndelim2.c: Likewise.
73757         * lib/human.h: Likewise.
73758         * lib/inttostr.h: Likewise.
73759         * lib/obstack.c: Likewise.
73760         * lib/regex_internal.h: Likewise.
73761         * lib/tempname.c: Likewise.
73762         * lib/utimecmp.c: Likewise.
73763         * lib/xstrtol.h: Likewise.
73764
73765         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
73766
73767         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
73768         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
73769         * lib/xtime.h: Likewise.
73770
73771 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73772
73773         * modules/openat (Files): Add lib/fchmodat.c.
73774         Fixes problem reported by Jay Youngman.
73775
73776 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
73777
73778         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
73779         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
73780
73781 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
73782             Bruno Haible  <bruno@clisp.org>
73783
73784         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
73785         and is a script that invokes bison. Tighten the code. Add comments.
73786
73787 2006-08-18  Jim Meyering  <jim@meyering.net>
73788
73789         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
73790         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
73791         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
73792         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
73793
73794 2006-08-18  Bruno Haible  <bruno@clisp.org>
73795
73796         * modules/bison-i18n: New file.
73797         * MODULES.html.sh (Internationalization functions): Add it.
73798
73799 2006-08-18  Bruno Haible  <bruno@clisp.org>
73800
73801         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
73802         sys/statvfs.h. When getmntinfo was found, check its declaration and
73803         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
73804
73805 2006-08-18  Bruno Haible  <bruno@clisp.org>
73806
73807         * m4/bison-i18n.m4: New file, from bison.
73808
73809 2006-08-18  Bruno Haible  <bruno@clisp.org>
73810
73811         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
73812         (ME_DUMMY): Treat "kernfs" as a dummy.
73813         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
73814
73815 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73816
73817         Update from coreutils.
73818
73819         2006-08-15  Jim Meyering  <jim@meyering.net>
73820
73821         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
73822
73823         2006-01-17  Jim Meyering  <jim@meyering.net>
73824
73825         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
73826
73827         2006-01-11  Jim Meyering  <jim@meyering.net>
73828
73829         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
73830         Check for the lchmod function.
73831
73832 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         Update from coreutils.
73835
73836         * lib/__fpending.h: Add copyright notice.
73837         * lib/fprintftime.h: Likewise.
73838         * lib/savedir.c: Use (C) in copyright notice.
73839         * lib/savedir.h: Likewise.
73840
73841         2006-08-15  Jim Meyering  <jim@meyering.net>
73842
73843         * lib/at-func.c: New file, with the logic of all emulated at-functions.
73844         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
73845         in support of the EXPECTED_ERRNO macro.
73846         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
73847         definitions.  Instead, define the appropriate symbols and include
73848         "at-func.c".
73849         * lib/mkdirat.c (mkdirat): Likewise.
73850         * lib/fchmodat.c (fchmodat): Likewise.
73851         (ENOSYS): Remove definition.
73852         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
73853         it.  Don't include "unistd--.h" -- it wasn't ever used.
73854
73855         2006-01-17  Jim Meyering  <jim@meyering.net>
73856
73857         Rewrite fts.c not to change the current working directory,
73858         by using openat, fstatat, fdopendir, etc..
73859
73860         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
73861         (HAVE_OPENAT_SUPPORT): Define.
73862         [_LIBC] (fchdir): Don't undef or define; no longer used.
73863         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
73864         Now, this `function' always succeeds, and consumes its file descriptor
73865         parameter -- so callers must not close such FDs.  Update callers.
73866         (diropen_fd, opendirat, cwd_advance_fd): New functions.
73867         (diropen): Add parameter, SP.  Adjust all callers.
73868         Implement using diropen_fd, rather than open.
73869         (fts_open): Initialize new member, fts_cwd_fd.
73870         Remove fts_rft-setting code.
73871         (fts_close): Close fts_cwd_fd, if necessary.
73872         (__opendir2): Define in terms of opendir or opendirat,
73873         depending on whether the FST_NOCHDIR flag is set.
73874         (fts_build): Since fts_safe_changedir consumes its FD, and since
73875         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
73876         and close the dup'd file descriptor upon failure.
73877         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
73878         (fts_safe_changedir): Tweak semantics to reflect that this function
73879         now calls cwd_advance_fd and hence consumes its FD argument.
73880         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
73881         [struct FTS] (fts_rft): Remove now-unused member.
73882         [struct FTS] (fts_cycle.state): Improve comment.
73883
73884         * lib/openat.c (openat_needs_fchdir): New function.
73885         * lib/openat.h (openat_needs_fchdir): Declare it.
73886
73887 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
73888
73889         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
73890         Problem and fix reported by Pádraig Brady in
73891         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
73892
73893 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73894
73895         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
73896
73897 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73898
73899         * lib/memcoll.c (memcoll): Optimize for the common case where the
73900         arguments are bytewise equal.
73901
73902 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73903
73904         * doc/regexprops-generic.texi: Add a copyright notice.
73905
73906 2006-08-15  Bruno Haible  <bruno@clisp.org>
73907
73908         * modules/tmpdir (License): Change to LGPL.
73909
73910 2006-08-15  Bruno Haible  <bruno@clisp.org>
73911
73912         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
73913         module.
73914
73915 2006-08-14  Simon Josefsson  <jas@extundo.com>
73916
73917         * config/srclist.txt: Add gnupload.
73918
73919 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         Change copyright notice from LGPL 2 to GPL 2, since that's the
73922         standard form used in the gnulib repository.
73923         * tests/test-lock.c: Likewise.
73924         * tests/test-stdint.c: Likewise.
73925         * tests/test-tls.c: Likewise.
73926
73927         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
73928         prelude-manager.  User shorter URLs for GNU projects, without '?'.
73929         Add copyright notice.
73930
73931         * check-module: Add copyright notice.  Output a copyright
73932         notice if "--version" is specified.
73933         * modules/COPYING: New file.
73934         * tests/test-getaddrinfo.c: Add copyright notice.
73935         * tests/test-verify.c: Likewise.
73936
73937 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73938
73939         Change copyright notice from LGPL 2 to GPL 2, since that's the
73940         standard form used in the gnulib repository.
73941         * lib/lock.c: LGPL -> GPL.
73942         * lib/lock.h: Likewise.
73943         * lib/strnlen1.c: Likewise.
73944         * lib/strnlen1.h: Likewise.
73945         * lib/tls.c: Likewise.
73946         * lib/tls.h: Likewise.
73947         * lib/tmpdir.c: Likewise.
73948
73949         * lib/TODO: Remove; this belongs only in coreutils.
73950
73951 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73952
73953         Add copyright notices to long-enough files that lack them, since
73954         otherwise the files aren't clearly free.  Use the same notice that
73955         getdate.texi already uses.
73956         * doc/alloca-opt.texi: Add copyright notice.
73957         * doc/alloca.texi: Likewise.
73958         * doc/ctime.texi: Likewise.
73959         * doc/functions.texi: Likewise.
73960         * doc/gcd.texi: Likewise.
73961         * doc/gnulib-tool.texi: Likewise.
73962         * doc/inet_ntoa.texi: Likewise.
73963         * doc/visibility.texi: Likewise.
73964
73965         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
73966         * doc/quote.texi: Add copyright notice.
73967
73968         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
73969         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
73970         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
73971         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
73972         is now obsolete, and give a pointer to the Sun list.
73973         Add copyright notice.
73974
73975 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
73976
73977         * config/srclistvars.sh: Add copyright notice.
73978
73979 2006-08-14  Eric Blake  <ebb9@byu.net>
73980
73981         Import the following change from libc:
73982
73983         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
73984
73985         Upstream bug 2997.
73986         * lib/misc/error.c: Add space between program name and message if file
73987         name is missing.
73988
73989 2006-08-12  Karl Berry  <karl@gnu.org>
73990
73991         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
73992         remove, these originate in gnulib now.
73993
73994 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73995
73996         * doc/Makefile (standards.info standards.html standards.dvi):
73997         Also depend on make-stds.texi.
73998
73999 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74000
74001         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74002         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74003
74004         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74005         in wchar_t.  Problem reported by Eric Blake.
74006
74007         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74008         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74009         Also, help the compiler to keep LEN in a register.
74010
74011 2006-08-11  Eric Blake  <ebb9@byu.net>
74012
74013         * users.txt: Sort.  Add tar.
74014
74015 2006-08-11  Bruno Haible  <bruno@clisp.org>
74016
74017         * users.txt: New file.
74018
74019 2006-08-11  Bruno Haible  <bruno@clisp.org>
74020
74021         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74022         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74023
74024 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         * modules/snprintf (Depends-on): Remove minmax.
74027         (Maintainer): Add self and Bruno.
74028
74029 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74032         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74033         (EOVERFLOW): Define if the system does not.
74034         Do not include "minmax.h"; it wasn't used.
74035         (snprintf): Don't assume size_t promotes to an unsigned type.
74036         Fix bug when generated string was too long for the buffer: the
74037         buffer's contents are supposed to be the initial prefix of the
74038         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74039         exceeds INT_MAX; do the check ourselves.
74040
74041         Import the following changes from libc:
74042
74043         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74044
74045         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74046         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74047         set wc to the byte which couldn't be converted.
74048         (re_string_reconstruct): Don't clear valid_raw_len before calling
74049         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74050         tip_context using re_string_context_at.
74051
74052         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74053
74054         * lib/posix/regex.h: g++ still cannot handled [restrict].
74055
74056         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74057
74058         * lib/posix/regex.h: Remove special handling for VMS.
74059
74060 2006-08-10  Jim Meyering  <jim@meyering.net>
74061
74062         * modules/same-inode: New module.
74063         * modules/dev-ino: New module.
74064         * modules/cycle-check: Depend on these modules, rather than simply
74065         including their .h files.
74066         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74067         required via m4/cycle-check.m4.
74068         * modules/same: Depend on new same-inode module, rather than
74069         including same-inode.h.
74070         * modules/chdir-safer: New file.
74071
74072         * modules/chown (Depends-on): Add stat-macros.
74073
74074 2006-08-10  Jim Meyering  <jim@meyering.net>
74075
74076         * m4/cycle-check.m4: New file.
74077         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74078         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74079
74080 2006-08-10  Eric Blake  <ebb9@byu.net>
74081
74082         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74083         in from original proposal.
74084
74085 2006-08-10  Eric Blake  <ebb9@byu.net>
74086         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74087
74088         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74089         namespace.
74090
74091 2006-08-10  Bruno Haible  <bruno@clisp.org>
74092
74093         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74094         as well.
74095
74096 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74097
74098         Sync from coreutils.
74099
74100         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74101
74102         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74103         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74104
74105 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74106
74107         * modules/restrict: Remove; no longer needed now that we assume
74108         Autoconf 2.59 or later.
74109         * MODULES.html.sh: Remove 'restrict'.
74110         * modules/argp (Depends-on): Remove 'restrict'.
74111         * modules/base64 (Depends-on): Likewise.
74112         * modules/gc (Depends-on): Likewise.
74113         * modules/getaddrinfo (Depends-on): Likewise.
74114         * modules/glob (Depends-on): Likewise.
74115         * modules/inet_ntop (Depends-on): Likewise.
74116         * modules/inet_pton (Depends-on): Likewise.
74117         * modules/memxor (Depends-on): Likewise.
74118         * modules/regex (Depends-on): Likewise.
74119         * modules/strtok_r (Depends-on): Likewise.
74120         * modules/time_r (Depends-on): Likewise.
74121
74122 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74125         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74126         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74127         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74128         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74129         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74130         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74131         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74132
74133         Merge from coreutils.
74134         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74135         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74136         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74137         * m4/time_r.m4 (gl_TIME_R): Likewise.
74138
74139 2006-08-09  Karl Berry  <karl@gnu.org>
74140
74141         * config/srclist.txt: no more gettext-tools, per Bruno.
74142
74143 2006-08-08  Eric Blake  <ebb9@byu.net>
74144
74145         * modules/verror: New module.
74146         * MODULES.html.sh: Document it.
74147
74148 2006-08-08  Eric Blake  <ebb9@byu.net>
74149
74150         * lib/verror.h, lib/verror.c: New files.
74151
74152 2006-08-08  Eric Blake  <ebb9@byu.net>
74153
74154         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74155         verror_at_line output complies with GNU Coding Standards even when
74156         file is NULL.
74157
74158 2006-08-07  Bruno Haible  <bruno@clisp.org>
74159
74160         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74161         versions of AIX.
74162         Reported by Ralf Wildenhues.
74163
74164 2006-08-07  Bruno Haible  <bruno@clisp.org>
74165
74166         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74167         in an AC_DEFUN. Needed so that the autoconf snippets can use
74168         AC_REQUIRE.
74169
74170 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74171
74172         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74173         Initialize pkgdata_DATA.
74174         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74175         overriding it.
74176
74177 2006-08-06  Eric Blake  <ebb9@byu.net>
74178
74179         * lib/error.h: Fold in some upstream changes from glibc.
74180         * lib/error.c: Likewise.
74181
74182 2006-08-04  Bruno Haible  <bruno@clisp.org>
74183
74184         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74185         Make the mostlyclean-local rule depend on mostlyclean-generic.
74186         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74187
74188 2006-07-31  Bruno Haible  <bruno@clisp.org>
74189
74190         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74191         <stdlib.h>, <string.h>.
74192
74193 2006-07-30  Bruno Haible  <bruno@clisp.org>
74194
74195         * modules/readlink (License): Change to LGPL.
74196
74197 2006-07-30  Bruno Haible  <bruno@clisp.org>
74198
74199         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74200         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74201         set PKGDATADIR to point to it.
74202
74203 2006-07-30  Bruno Haible  <bruno@clisp.org>
74204
74205         * modules/csharpexec (configure.ac): Comment out macro invocation.
74206         * modules/javaexec (configure.ac): Likewise.
74207         * modules/javacomp-script (configure.ac): Likewise.
74208
74209         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74210
74211 2006-07-30  Bruno Haible  <bruno@clisp.org>
74212
74213         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74214         linked-list.
74215
74216 2006-07-30  Bruno Haible  <bruno@clisp.org>
74217
74218         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74219
74220 2006-07-30  Bruno Haible  <bruno@clisp.org>
74221
74222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74223         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74224         get removed.
74225
74226 2006-07-29  Bruno Haible  <bruno@clisp.org>
74227
74228         Make it possible for gnulib-tool to work with locally modified or
74229         augmented gnulib repositories.
74230         * gnulib-tool (func_usage): Document --local-dir option.
74231         (local_gnulib_dir): New variable.
74232         Handle --local-dir option.
74233         (func_lookup_file): New function.
74234         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74235         (func_get_description, func_get_filelist, func_get_description,
74236         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74237         func_get_automake_snippet, func_get_include_directive,
74238         func_get_license, func_get_maintainer): Use func_lookup_file.
74239         (func_import, func_create_testdir): Use func_lookup_file.
74240
74241 2006-07-29  Bruno Haible  <bruno@clisp.org>
74242
74243         * modules/setenv (Depends-on): Add unistd.
74244
74245 2006-07-29  Bruno Haible  <bruno@clisp.org>
74246
74247         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74248
74249 2006-07-29  Bruno Haible  <bruno@clisp.org>
74250
74251         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74252
74253 2006-07-29  Bruno Haible  <bruno@clisp.org>
74254
74255         * gnulib-tool (import, update): If there is no Makefile.am, look at
74256         aclocal.m4, instead of bailing out.
74257
74258 2006-07-29  Bruno Haible  <bruno@clisp.org>
74259
74260         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74261         Categorize the options by when they are useful.
74262
74263 2006-07-29  Bruno Haible  <bruno@clisp.org>
74264
74265         * gnulib-tool (func_usage): Document option --no-libtool.
74266         Handle option --no-libtool.
74267         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74268         for changed semantics of $libtool variable.
74269         (func_import): Likewise. If libtool is not used, show this through
74270         an option --no-libtool.
74271         (func_create_testdir): Update.
74272
74273 2006-07-29  Bruno Haible  <bruno@clisp.org>
74274
74275         * gnulib-tool (func_import): Extend error message about missing
74276         --doc-base.
74277
74278 2006-07-29  Bruno Haible  <bruno@clisp.org>
74279
74280         * gnulib-tool (func_import): Don't create the $docbase directory if
74281         there is no file to store there.
74282
74283 2006-07-29  Bruno Haible  <bruno@clisp.org>
74284
74285         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74286         relevant, look for configure.ac there, not in the current directory.
74287         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74288
74289 2006-07-29  Bruno Haible  <bruno@clisp.org>
74290
74291         * gnulib-tool (SORT): New variable.
74292         (func_usage): Undocument --assume-autoconf option.
74293         Remove --assume-autoconf option handling.
74294         (autoconf_minversion): Determine from the contents of configure.ac.
74295         (func_import): Remove autoconf_minversion handling.
74296         Suggested by Eric Blake.
74297
74298 2006-07-29  Bruno Haible  <bruno@clisp.org>
74299
74300         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74301
74302 2006-07-29  Bruno Haible  <bruno@clisp.org>
74303
74304         * config/srclist.txt (*setenv.[ch]): Remove rules.
74305
74306 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74307
74308         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74309
74310 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74311
74312         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74313         arpa/inet.h.
74314
74315 2006-07-28  Simon Josefsson  <jas@extundo.com>
74316
74317         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74318         * modules/inet_pton (Depends-on): Likewise.
74319
74320 2006-07-28  Simon Josefsson  <jas@extundo.com>
74321
74322         * m4/netinet_in_h.m4: New file.
74323
74324 2006-07-28  Simon Josefsson  <jas@extundo.com>
74325
74326         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74327         #include's.
74328
74329 2006-07-28  Simon Josefsson  <jas@extundo.com>
74330
74331         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74332         #include's.
74333
74334 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74337         setgid on directories only if they set these bits.
74338         * lib/modechange.h: Remove obsolete comment about masks.
74339
74340 2006-07-28  Eric Blake  <ebb9@byu.net>
74341
74342         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74343         macro expansion.
74344
74345 2006-07-28  Bruno Haible  <bruno@clisp.org>
74346
74347         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74348
74349 2006-07-28  Bruno Haible  <bruno@clisp.org>
74350
74351         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74352
74353 2006-07-28  Bruno Haible  <bruno@clisp.org>
74354
74355         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74356         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74357         Define fallbacks.
74358         Avoids link error on FreeBSD 4.x.
74359         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74360
74361         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74362         encoding.
74363         * lib/mbswidth.c (iswcntrl): Likewise.
74364
74365 2006-07-27  Bruno Haible  <bruno@clisp.org>
74366
74367         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74368         test.
74369
74370 2006-07-27  Bruno Haible  <bruno@clisp.org>
74371
74372         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74373         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74374         defined.
74375
74376 2006-07-26  Eric Blake  <ebb9@byu.net>
74377
74378         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74379
74380 2006-07-26  Eric Blake  <ebb9@byu.net>
74381
74382         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74383         like mingw that lack mkstemp.
74384         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74385         avoid compilation warning on mingw.
74386
74387 2006-07-26  Bruno Haible  <bruno@clisp.org>
74388
74389         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74390         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74391         INT_FAST*_MIN, INTPTR_MIN.
74392
74393 2006-07-25  Bruno Haible  <bruno@clisp.org>
74394
74395         * modules/version-etc (Depends-on): Add stdarg.
74396
74397 2006-07-25  Bruno Haible  <bruno@clisp.org>
74398
74399         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74400         complex commands.
74401
74402 2006-07-25  Bruno Haible  <bruno@clisp.org>
74403
74404         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74405         defined in <stdarg.h> or config.h.
74406
74407 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74408
74409         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74410         (gl_STDIO_SAFER): Remove.
74411
74412 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74413
74414         * MODULES.html.sh (File stream based Input/Output):
74415         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74416         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74417         * modules/fopen-safer, modules/tmpfile-safer: New files.
74418         * modules/stdio-safer: Remove.
74419
74420 2006-07-24  Bruno Haible  <bruno@clisp.org>
74421
74422         * modules/tmpdir: New file.
74423         * MODULES.html.sh (File system functions): Add it.
74424
74425 2006-07-24  Bruno Haible  <bruno@clisp.org>
74426
74427         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74428         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74429
74430 2006-07-24  Bruno Haible  <bruno@clisp.org>
74431
74432         * modules/clean-temp: New file.
74433
74434 2006-07-24  Bruno Haible  <bruno@clisp.org>
74435
74436         * m4/tmpdir.m4: New file, from GNU gettext.
74437
74438 2006-07-24  Bruno Haible  <bruno@clisp.org>
74439
74440         * lib/tmpdir.h: New file, from GNU gettext.
74441         * lib/tmpdir.c: New file, from GNU gettext.
74442
74443 2006-07-24  Bruno Haible  <bruno@clisp.org>
74444
74445         * lib/clean-temp.h: New file, from GNU gettext.
74446         * lib/clean-temp.c: New file, from GNU gettext.
74447
74448 2006-07-23  Eric Blake  <ebb9@byu.net>
74449
74450         * modules/stdio-safer (Files): Add tmpfile-safer.c.
74451         (Depends-on): Add binary-io.
74452
74453 2006-07-23  Eric Blake  <ebb9@byu.net>
74454
74455         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
74456
74457 2006-07-23  Eric Blake  <ebb9@byu.net>
74458
74459         * lib/tmpfile-safer.c: New file.
74460         * lib/stdio-safer.h (fopen_safer): Add prototype.
74461         * lib/stdio--.h (tmpfile): Make safer.
74462
74463 2006-07-23  Bruno Haible  <bruno@clisp.org>
74464
74465         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
74466         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
74467         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
74468         gl_linked_remove_at): Use it.
74469
74470 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74471         and Simon Josefsson <jas@extundo.com>
74472
74473         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
74474
74475         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
74476
74477 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74478
74479         * modules/close-stream: New file.
74480         * modules/closeout (Description): Make it clear that it exits
74481         with a diagnostic on error.
74482         (Depends-on): Add close-stream.  Remove fpending, stdbool.
74483         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
74484
74485 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74486
74487         * m4/close-stream.m4: New file.
74488
74489 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
74490
74491         * lib/close-stream.c, lib/close-stream.h: New files.
74492
74493 2006-07-22  Bruno Haible  <bruno@clisp.org>
74494
74495         Merge from GNU gettext 0.15.
74496
74497         2006-05-01  Bruno Haible  <bruno@clisp.org>
74498
74499                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
74500
74501         2006-07-22  Bruno Haible  <bruno@clisp.org>
74502
74503                 * modules/javaversion: New file.
74504                 * MODULES.html.sh (Java): Add javaversion.
74505
74506         2006-03-12  Bruno Haible  <bruno@clisp.org>
74507
74508                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
74509
74510         2005-12-04  Bruno Haible  <bruno@clisp.org>
74511
74512                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
74513                 (untested).
74514
74515         2006-06-21  Bruno Haible  <bruno@clisp.org>
74516
74517                 Avoid warnings from recent versions of mcs.
74518                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
74519                 -o, -L, -r any more. Use options documented since mcs-1.0
74520                 instead. Similarly for -g.
74521
74522         2005-12-04  Bruno Haible  <bruno@clisp.org>
74523
74524                 * build-aux/csharpcomp.sh.in: Suffix for resources is
74525                 .resources, not .resource.
74526
74527         2005-07-09  Bruno Haible  <bruno@clisp.org>
74528
74529                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
74530                 add a .dll suffix.
74531                 Reported by Mark Junker <mjscod@gmx.de>.
74532
74533         2006-07-22  Bruno Haible  <bruno@clisp.org>
74534
74535                 * modules/gettext: Upgrade to gettext-0.15.
74536                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
74537                 m4/visibility.m4.
74538                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
74539
74540 2006-07-22  Bruno Haible  <bruno@clisp.org>
74541
74542         Merge from GNU gettext 0.15.
74543
74544         2006-03-25  Bruno Haible  <bruno@clisp.org>
74545
74546                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
74547
74548         2006-07-21  Bruno Haible  <bruno@clisp.org>
74549
74550                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
74551                 "1.1".
74552
74553         2006-05-09  Bruno Haible  <bruno@clisp.org>
74554
74555                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
74556                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
74557                 for the conftestver execution.
74558
74559         2006-05-01  Bruno Haible  <bruno@clisp.org>
74560
74561                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
74562                 optional target-version argument. Verify that the compiler
74563                 groks source of the specified source-version, or add -source
74564                 option as necessary. Verify that the compiler produces
74565                 bytecode in the specified target-version, or add -target and
74566                 -source options as necessary. Make the result of the test
74567                 available as variable CONF_JAVAC. Also log error output in
74568                 config.log.
74569
74570         2006-03-11  Bruno Haible  <bruno@clisp.org>
74571
74572                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
74573
74574         2006-05-09  Bruno Haible  <bruno@clisp.org>
74575
74576                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
74577                 CLASSPATH_SEPARATOR to a semicolon.
74578
74579         2006-03-12  Bruno Haible  <bruno@clisp.org>
74580
74581                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
74582                 available as variable CONF_JAVA, for subsequent autoconf
74583                 tests. Also log error output in config.log.
74584
74585         2006-07-19  Bruno Haible  <bruno@clisp.org>
74586
74587                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
74588                 that getline works on glibc2 systems. Needed to avoid trouble
74589                 in relocatable.c.
74590                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
74591
74592         2005-12-04  Bruno Haible  <bruno@clisp.org>
74593
74594                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
74595                 launcher (untested).
74596
74597         2005-12-04  Bruno Haible  <bruno@clisp.org>
74598
74599                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
74600
74601         2006-07-22  Bruno Haible  <bruno@clisp.org>
74602
74603                 * gettext.m4: Update from GNU gettext-0.15.
74604                 * nls.m4: Likewise.
74605                 * po.m4: Likewise.
74606                 * inttypes-pri.m4: Likewise.
74607                 * inttypes-h.m4: Renamed from inttypes.m4.
74608                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
74609
74610 2006-07-22  Bruno Haible  <bruno@clisp.org>
74611
74612         Merge from GNU gettext 0.15.
74613
74614         2005-07-05  Bruno Haible  <bruno@clisp.org>
74615
74616                 * printf-args.c (printf_fetchargs): Work around broken
74617                 definition of wint_t on mingw.
74618
74619         2005-02-12  Bruno Haible  <bruno@clisp.org>
74620
74621                 * xallocsa.h: Add extern "C" for C++.
74622
74623         2006-05-17  Bruno Haible  <bruno@clisp.org>
74624
74625                 Cygwin portability.
74626                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
74627
74628         2006-04-30  Bruno Haible  <bruno@clisp.org>
74629
74630                 * progreloc.c: Include <mach-o/dyld.h> if available.
74631                 (find_executable): Use _NSGetExecutablePath when possible.
74632
74633         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74634
74635                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
74636                 function.
74637
74638         2005-12-29  Bruno Haible  <bruno@clisp.org>
74639
74640                 * progreloc.c (set_program_name_and_installdir): Fix
74641                 compilation error.
74642
74643         2005-12-04  Bruno Haible  <bruno@clisp.org>
74644
74645                 Cygwin portability.
74646                 * progreloc.c: Include <windows.h> also on Cygwin.
74647                 (find_executable): Add support for Cygwin.
74648                 (set_program_name_and_installdir): Handle also platforms with
74649                 nonempty EXEEXT.
74650
74651         2006-07-11  Bruno Haible  <bruno@clisp.org>
74652
74653                 * javacomp.c: Fix a comment.
74654                 Reported by Jim Meyering.
74655
74656         2006-04-30  Bruno Haible  <bruno@clisp.org>
74657
74658                 * javacomp.h (compile_java_class): Add source_version,
74659                 target_version arguments.
74660                 * javacomp.c: Rewritten to choose only a compiler that
74661                 respects the specified source_version and target_version.
74662
74663         2006-06-27  Bruno Haible  <bruno@clisp.org>
74664
74665                 Assume correct S_ISDIR macro.
74666                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
74667
74668         2006-07-22  Bruno Haible  <bruno@clisp.org>
74669
74670                 * javaversion.h: New file, from GNU gettext.
74671                 * javaversion.c: New file, from GNU gettext.
74672                 * javaversion.java: New file, from GNU gettext.
74673                 * javaversion.class: New file, from GNU gettext.
74674
74675         2006-05-17  Bruno Haible  <bruno@clisp.org>
74676
74677                 Cygwin portability.
74678                 * javaexec.c (execute_java_class): Test for jview program
74679                 also on Cygwin.
74680
74681         2006-04-09  Bruno Haible  <bruno@clisp.org>
74682
74683                 * fatal-signal.c: Don't include string.h.
74684                 (at_fatal_signal): Use a copying loop instead of memcpy.
74685
74686         2005-12-04  Bruno Haible  <bruno@clisp.org>
74687
74688                 * csharpexec.c: Add support for 'clix' launcher (untested).
74689                 (execute_csharp_using_sscli): New function.
74690                 (execute_csharp_program): Call it.
74691
74692         2006-06-21  Bruno Haible  <bruno@clisp.org>
74693
74694                 Avoid warnings from recent versions of mcs.
74695                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
74696                 -o, -L, -r any more. Use options documented since mcs-1.0
74697                 instead. Similarly for -g.
74698
74699         2005-07-09  Bruno Haible  <bruno@clisp.org>
74700
74701                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
74702                 add a .dll suffix.
74703                 Reported by Mark Junker <mjscod@gmx.de>.
74704
74705         2006-06-17  Bruno Haible  <bruno@clisp.org>
74706
74707                 * config.charset: Update for NetBSD 3.0.
74708
74709         2006-05-17  Bruno Haible  <bruno@clisp.org>
74710
74711                 Cygwin portability.
74712                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
74713
74714         2006-05-16  Bruno Haible  <bruno@clisp.org>
74715
74716                 * localcharset.c [CYGWIN]: Include <windows.h>.
74717                 (get_charset_aliases): For Cygwin, return the same CPxxx
74718                 aliases list as under WIN32.
74719                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
74720                 the environment variables. Fall back to GetACP().
74721
74722         2006-04-05  Bruno Haible  <bruno@clisp.org>
74723
74724                 * config.charset: Update Juan Manuel Guerrero's address.
74725
74726         2005-02-12  Bruno Haible  <bruno@clisp.org>
74727
74728                 * allocsa.h: Add extern "C" for C++.
74729
74730         2005-02-10  Bruno Haible  <bruno@clisp.org>
74731
74732                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
74733                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
74734
74735         2006-07-22  Bruno Haible  <bruno@clisp.org>
74736
74737                 * gettext.h: Update to GNU gettext-0.15.
74738
74739 2006-07-22  Bruno Haible  <bruno@clisp.org>
74740
74741         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
74742         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
74743         lib-prefix.m4, longdouble.m4, ssize_t.m4.
74744
74745 2006-07-21  Eric Blake  <ebb9@byu.net>
74746
74747         * modules/stdlib-safer: New file.
74748         * MODULES.html.sh (File stream based Input/Output): Add
74749         stdlib-safer.
74750
74751 2006-07-21  Eric Blake  <ebb9@byu.net>
74752
74753         * lib/stdlib-safer.h: New file from coreutils, required by
74754         stdlib--.h.
74755
74756 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
74757
74758         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
74759
74760 2006-07-20  Bruno Haible  <bruno@clisp.org>
74761
74762         * gnulib-tool: Recognize new option --assume-autoconf.
74763         (autoconf_minversion): New variable.
74764         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
74765
74766 2006-07-20  Bruno Haible  <bruno@clisp.org>
74767
74768         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
74769
74770 2006-07-19  Derek R. Price  <derek@ximbiot.com>
74771
74772         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
74773         Reindent and repaginate.
74774
74775 2006-07-19  Derek Price  <derek@ximbiot.com>
74776
74777         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
74778         Correct grammar.
74779
74780 2006-07-17  Bruno Haible  <bruno@clisp.org>
74781
74782         * modules/list: New file.
74783         * modules/array-list: New file.
74784         * modules/carray-list, modules/carray-list-tests: New files.
74785         * modules/linked-list, modules/linked-list-tests: New files.
74786         * modules/avltree-list, modules/avltree-list-tests: New files.
74787         * modules/rbtree-list, modules/rbtree-list-tests: New files.
74788         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
74789         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
74790         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
74791         * modules/oset: New file.
74792         * modules/array-oset: New file.
74793         * modules/avltree-oset, modules/avltree-oset-tests: New files.
74794         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
74795         * tests/test-carray_list.c: New file.
74796         * tests/test-linked_list.c: New file.
74797         * tests/test-avltree_list.c: New file.
74798         * tests/test-rbtree_list.c: New file.
74799         * tests/test-linkedhash_list.c: New file.
74800         * tests/test-avltreehash_list.c: New file.
74801         * tests/test-rbtreehash_list.c: New file.
74802         * tests/test-avltree_oset.c: New file.
74803         * tests/test-rbtree_oset.c: New file.
74804         * MODULES.html.sh (Container data structures): New section.
74805
74806 2006-07-17  Bruno Haible  <bruno@clisp.org>
74807
74808         * m4/gl_list.m4: New file.
74809
74810 2006-07-17  Bruno Haible  <bruno@clisp.org>
74811
74812         * lib/gl_list.h: New file.
74813         * lib/gl_list.c: New file.
74814         * lib/gl_array_list.h: New file.
74815         * lib/gl_array_list.c: New file.
74816         * lib/gl_carray_list.h: New file.
74817         * lib/gl_carray_list.c: New file.
74818         * lib/gl_linked_list.h: New file.
74819         * lib/gl_linked_list.c: New file.
74820         * lib/gl_anylinked_list1.h: New file.
74821         * lib/gl_anylinked_list2.h: New file.
74822         * lib/gl_avltree_list.h: New file.
74823         * lib/gl_avltree_list.c: New file.
74824         * lib/gl_anyavltree_list1.h: New file.
74825         * lib/gl_anyavltree_list2.h: New file.
74826         * lib/gl_rbtree_list.h: New file.
74827         * lib/gl_rbtree_list.c: New file.
74828         * lib/gl_anyrbtree_list1.h: New file.
74829         * lib/gl_anyrbtree_list2.h: New file.
74830         * lib/gl_anytree_list1.h: New file.
74831         * lib/gl_anytree_list2.h: New file.
74832         * lib/gl_linkedhash_list.h: New file.
74833         * lib/gl_linkedhash_list.c: New file.
74834         * lib/gl_anyhash_list1.h: New file.
74835         * lib/gl_anyhash_list2.h: New file.
74836         * lib/gl_avltreehash_list.h: New file.
74837         * lib/gl_avltreehash_list.c: New file.
74838         * lib/gl_rbtreehash_list.h: New file.
74839         * lib/gl_rbtreehash_list.c: New file.
74840         * lib/gl_anytreehash_list1.h: New file.
74841         * lib/gl_anytreehash_list2.h: New file.
74842
74843         * lib/gl_oset.h: New file.
74844         * lib/gl_oset.c: New file.
74845         * lib/gl_array_oset.h: New file.
74846         * lib/gl_array_oset.c: New file.
74847         * lib/gl_avltree_oset.h: New file.
74848         * lib/gl_avltree_oset.c: New file.
74849         * lib/gl_rbtree_oset.h: New file.
74850         * lib/gl_rbtree_oset.c: New file.
74851         * lib/gl_anytree_oset.h: New file.
74852
74853 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * m4/mkancesdirs.m4: New file.
74856         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
74857         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
74858         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
74859         it.
74860
74861 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74862
74863         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
74864         * lib/mkancesdirs.h: New files.
74865         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
74866         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
74867         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
74868         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
74869         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
74870         callers changed.  Revamp internals significantly, by not
74871         attempting to create directories that are temporarily more
74872         permissive than the final results.  Do not attempt to use
74873         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
74874         This removes some race conditions, fixes some bugs, and simplifies
74875         things.  Use new dirchownmod function to do owner and mode changes.
74876         * lib/mkdir-p.h: Likewise.
74877         * lib/modechange.c (octal_to_mode): New function.
74878         (struct mode_change): New member mentioned.
74879         (make_node_op_equals): New arg mentioned.  All callers changed.
74880         (mode_compile): Keep track of which mode bits the user has explicitly
74881         mentioned.
74882         (mode_adjust): New arg DIR, so that we implement the X op correctly.
74883         New arg PMODE_BITS, to keep track of which mode bits the user
74884         mentioned; it treats S_ISUID and S_ISGID speciall.
74885         All callers changed.
74886         * lib/modechange.h: Likewise.
74887
74888 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
74889
74890         * MODULES.html.sh: Add mkancestors.
74891         * modules/mkancesdirs: New module.
74892         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
74893         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
74894         The chdir-safer and afs files are now orphans; I'll remove them
74895         unless someone speaks up.
74896         Add lib/dirchownmod.c, lib/dirchownmod.h.
74897         (Depends-on): Remove alloca, chown, save-cwd, dirname.
74898         Add lchown, mkancesdirs.
74899         (Maintainer): Add self.
74900
74901 2006-07-15  Karl Berry  <karl@gnu.org>
74902
74903         * gnulib-tool: help message wording/arrangement.
74904
74905 2006-07-14  Simon Josefsson  <jas@extundo.com>
74906
74907         * doc/gnulib.texi (Libtool and Windows): New section.
74908
74909 2006-07-12  Simon Josefsson  <jas@extundo.com>
74910
74911         * modules/gendocs (License): Fix license, approved by Karl.
74912
74913 2006-07-12  Eric Blake  <ebb9@byu.net>
74914
74915         * MODULES.html.sh: Add gendocs.
74916
74917 2006-07-11  Eric Blake  <ebb9@byu.net>
74918
74919         * modules/fdl: New module, to install doc/fdl.texi.
74920         * MODULES.html.sh: Add new section for documentation modules.
74921         * gnulib-tool: Avoid space-tab.
74922         (--doc-base): New option, to manage files from doc.
74923
74924 2006-07-11  Eric Blake  <ebb9@byu.net>
74925
74926         * m4/absolute-header.m4: Fix comments to match recent change.
74927
74928 2006-07-11  Eric Blake  <ebb9@byu.net>
74929
74930         * gnulib-tool: List --doc-base before --tests-base.
74931
74932 2006-07-11  Derek R. Price  <derek@ximbiot.com>
74933
74934         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
74935
74936 2006-07-11  Bruno Haible  <bruno@clisp.org>
74937
74938         * README: Mention where to put documentation.
74939
74940 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74941
74942         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
74943
74944 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74945
74946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
74947         to stdint.m4.
74948
74949 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
74950
74951         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
74952         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
74953         "no/such/file/stdint.h" when there is no such file, so that
74954         the resulting C code can be parsed by dodgy compilers.
74955         Problems reported by Bob Proulx.
74956
74957 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74958
74959         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
74960         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74961         macros into the GNU _D_EXACT_NAMLEN.
74962         * lib/savedir.c:  Likewise.
74963         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
74964
74965 2006-07-10  Derek R. Price  <derek@ximbiot.com>
74966         and Paul Eggert  <eggert@cs.ucla.edu>
74967
74968         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
74969         * m4/savedir.m4:
74970         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
74971         macros into the GNU _D_EXACT_NAMLEN.
74972
74973 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74974
74975         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
74976         around the absolute name, to work around a problem with the HP-UX
74977         11.23 native C compiler, reported by Bob Proulx.
74978
74979 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74980
74981         * doc/maintain.texi, make-stds.texi: Sync from
74982         <http://savannah.gnu.org/projects/gnustandards>.
74983
74984 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
74985
74986         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
74987
74988 2006-07-09  Jim Meyering  <jim@meyering.net>
74989
74990         * m4/glob.m4: Remove a doubled word in a comment.
74991
74992 2006-07-09  Jim Meyering  <jim@meyering.net>
74993
74994         * lib/argp-pv.c: Remove a doubled word in a comment.
74995         * lib/check-version.c (check_version): Likewise.
74996         * lib/javacomp.c (compile_java_class): Likewise.
74997
74998 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
74999
75000         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75001         for the benefit of people using Autoconf 2.60.  If you want to
75002         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75003         (or m4/onceonly.m4, if pre-2.57) manually.
75004
75005 2006-07-08  Jim Meyering  <jim@meyering.net>
75006
75007         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75008         comment.
75009         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75010         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75011         comment.
75012
75013 2006-07-08  Jim Meyering  <jim@meyering.net>
75014
75015         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75016
75017 2006-07-07  Simon Josefsson  <jas@extundo.com>
75018
75019         * tests/test-crc.c: Change expected crc value, the test vector
75020         were probably computed using the old broken crc.c?
75021
75022 2006-07-06  Simon Josefsson  <jas@extundo.com>
75023
75024         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75025         now the canonical place for the M4 file).
75026
75027         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75028         from the sys_socket dependency now.
75029
75030         * modules/inet_pton (Files): Ditto.
75031
75032         * modules/inet_ntop (Files): Ditto.
75033
75034 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75035
75036         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75037         not gl_PREREQ_GETUSERSHELL.
75038
75039 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75040
75041         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75042         with only one argument, for Autoconf 2.60.
75043         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75044         expand to nothing, so add a shell command to avoid syntax error.
75045         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75046
75047 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75048
75049         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75050
75051 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75052
75053         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75054         no longer needed.  Check for isblank decl.
75055         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75056         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75057         of existence.
75058
75059 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         * lib/getloadavg.c: Use __VMS, not VMS.
75062         * lib/getopt.c: Likewise.
75063         * lib/getpagesize.h: Likewise.
75064         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75065         and probably does not work.
75066
75067 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75068
75069         * lib/.cppi-disable: Add wcwidth.
75070         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75071         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75072         (ISGRAPH): Remove.  All uses changed to isgraph.
75073         (FOLD) [!defined _LIBC]: Remove special case.
75074         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75075         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75076         HAVE_ISBLANK.
75077         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75078         case.
75079
75080 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75081
75082         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75083         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75084         brackets.  Other minor changes to suppress some compiler
75085         warnings.
75086
75087 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75088         and Paul Eggert  <eggert@cs.ucla.edu>
75089
75090         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75091         of invoking obsolescent AC_HEADER_DIRENT macro.
75092         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75093         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75094         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75095         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75096         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75097         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75098         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75099         * m4/readdir.m4: Remove; no longer needed.
75100
75101 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75102         and Paul Eggert  <eggert@cs.ucla.edu>
75103
75104         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75105         Don't worry about this obsolete case any more.
75106         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75107         directories.
75108         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75109         worry about this obsolete case any more.
75110         * lib/fts.c: Likewise.
75111         * lib/getcwd.c: Likewise.
75112         * lib/glob.h: Likewise.
75113         * lib/savedir.c: Likewise.
75114
75115 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75118         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75119         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75120         needed.
75121         All uses removed.
75122         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75123         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75124         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75125         needed.
75126         * m4/getdate.m4 (gl_GETDATE): Likewise.
75127         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75128         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75129         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75130         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75131         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75132         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75133         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75134         needed.
75135
75136 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75137
75138         * lib/memcasecmp.c: Include <limits.h>.
75139         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75140         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75141         Don't assume isdigit succeeds only on '0' through '9'.
75142
75143 2006-07-05  Eric Blake  <ebb9@byu.net>
75144
75145         * modules/getaddrinfo (Depends-on): Add snprintf.
75146
75147 2006-07-05  Eric Blake  <ebb9@byu.net>
75148
75149         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75150         to avoid 'header present but could not be compiled' on cygwin.
75151
75152 2006-07-05  Eric Blake  <ebb9@byu.net>
75153
75154         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75155         missing from netdb.h.
75156         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75157
75158 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75159
75160         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75161         no longer needed.
75162         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75163         * m4/getdate.m4 (gl_GETDATE): Likewise.
75164         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75165         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75166         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75167         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75168         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75169
75170 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75171
75172         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75173         All uses of is_space replaced by isspace.
75174         * lib/exit.h: Don't talk about STDC_HEADERS.
75175         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75176         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75177         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75178         replaced by isprint etc.
75179         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75180         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75181         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75182         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75183         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75184         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75185
75186 2006-07-05  Bruno Haible  <bruno@clisp.org>
75187
75188         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75189         the function exists, before testing against AIX.
75190         Reported by Martin Lambers <marlam@marlam.de>.
75191
75192 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75193
75194         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75195         From Mark D. Baushke.
75196
75197 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75198
75199         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75200         to the absolute name, not just one, to bypass Sun C 5.8's
75201         "warning: #include of /usr/include/... may be non-portable".
75202
75203 2006-07-04  Eric Blake  <ebb9@byu.net>
75204
75205         * modules/dirname-tests: New test module.
75206         * tests/test-dirname.c: New file, replacing dirname.c
75207         TEST_DIRNAME section that was recently deleted.
75208
75209 2006-07-04  Bruno Haible  <bruno@clisp.org>
75210
75211         Assume ANSI C header files and <ctype.h> functions.
75212         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75213         (mbsnwidth): Use isprint, iscntrl instead.
75214
75215 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         Merge from coreutils.
75218         * MODULES.html.sh: Add xstrtold.
75219         * modules/xstrtold: New file.
75220         * modules/cycle-check (Files): Add lib/same-inode.h.
75221         * modules/dirname (Files): Add m4/double-slash-root.m4.
75222         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75223         * modules/mkdir-p (Files): Add lib/same-inode.h.
75224         * modules/same (Files): Add lib/same-inode.h.
75225
75226 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75227
75228         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75229         This is to keep the terminology clean; POSIX talks about
75230         "absolute pathnames", not "full pathnames", but the GNU
75231         Coding Standards say to use "path" for something else;
75232         so use "absolute" to keep both sides happy.
75233         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75234         Set gl_absolute_header, not gl_full_header_path.
75235         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75236         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75237         All uses changed.
75238
75239         Merge from coreutils.
75240
75241         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75244         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75245         want to require the building of c-strtod.o.
75246         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75247         needs -lm directly.
75248         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75249
75250         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75251
75252         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75253         --as-needed option if available.  Problem reported by Albert Chin in
75254         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75255         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75256         cc merely issues a bunch of annoying warnings for --as-needed
75257         (this problem was reported by Bob Proulx).  Also, try linking with
75258         -lm to detect a bug in binutils 2.16 (this problem was reported
75259         by Ralf Wildenhues).
75260
75261         2006-06-18  Jim Meyering  <jim@meyering.net>
75262
75263         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75264         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75265         macro.
75266         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75267         also check for glibc-2.4's abort-inducing bug.
75268
75269         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75270         Low-probability clean-up should be to use rmdir to get rid of
75271         the just-created directory, not unlink.
75272
75273         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75274         configure fail, and request a bug report to inform us about it.
75275         Add a comment that, barring reports to the contrary, in 2007 we'll
75276         assume ftruncate is universally available.
75277
75278         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75279
75280         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75281
75282         2006-03-12  Jim Meyering  <jim@meyering.net>
75283
75284         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75285         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75286         * m4/same.m4 (gl_SAME): Likewise.
75287         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75288
75289         2006-03-11  Eric Blake  <ebb9@byu.net>
75290
75291         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75292         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75293         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75294         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75295
75296 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75297
75298         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75299         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75300         reported by Mark D. Baushke, one in
75301         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75302
75303         Merge from coreutils.
75304
75305         * lib/.cppi-disable: Add stdint_.h.
75306         * lib/.cvsignore: Add stdint.h.
75307
75308         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75309
75310         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75311         both double and long double versions.
75312         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75313         * lib/xstrtold.c: New file.
75314         * lib/xstrtod.h (xstrtold): New decl.
75315
75316         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * lib/filemode.c (setst): Remove.
75319         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75320         (arguably) clearer, and the generated code is a bit smaller on my
75321         Debian GNU/Linux stable x86 host.
75322
75323         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75326         Assume that filemode.h includes sys/types.h and sys/stat.h.
75327         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75328         (ftypelet): Reorder to put common cases first, for efficiency.
75329         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75330         to do 'M'.
75331         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75332         of 10, for compatibility with FreeBSD.  All callers changed.
75333         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75334         types that can't be deduced solely from st_mode.  First arg is now a
75335         const pointer.
75336         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75337         (strmode): Renamed from mode_string.
75338         (filemodestring): New decl.
75339         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75340         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75341         needed.
75342         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75343
75344         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75345
75346         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75347         fsusage.h now does that.  Include fsusage.h first, to test interface.
75348         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75349         at most one method (the old code could have generated decls that
75350         didn't conform to C89, not that this was ever exercised).
75351         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75352
75353         2006-03-19  Jim Meyering  <jim@meyering.net>
75354
75355         Work even in a chroot where d_ino values for entries in "/"
75356         don't match the stat.st_ino values for the same names.
75357         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75358         number, iterate through all entries again, using lstat instead.
75359         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75360         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75361
75362         * lib/getcwd.c (__getcwd): Clarify a comment.
75363         Use memcpy in place of a call to strcpy.
75364
75365         2006-03-12  Jim Meyering  <jim@meyering.net>
75366
75367         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75368         matches that of the current directory (which we're about to chdir ".."
75369         out of), then save the dev-ino of the parent, instead.
75370
75371         * lib/same-inode.h (SAME_INODE): New file/macro.
75372         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75373         Include "same-inode.h", instead.
75374         * lib/same.c: Likewise.
75375         * lib/cycle-check.h: Include "same-inode.h".
75376         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75377         * lib/cycle-check.c (SAME_INODE): Remove definition.
75378         * lib/root-dev-ino.h: Include "same-inode.h".
75379
75380         2006-03-11  Eric Blake  <ebb9@byu.net>
75381
75382         * lib/same.c (same_name): s/base_name/last_component/
75383         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75384         * lib/filenamecat.c (file_name_concat): Likewise.
75385
75386         2006-03-11  Eric Blake  <ebb9@byu.net>,
75387                     Paul Eggert  <eggert@cs.ucla.edu>
75388
75389         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75390         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75391         drive prefix.
75392         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75393         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75394         (last_component): New method.
75395         * lib/dirname.c (dir_len): Determine when drive letters need a
75396         subsequent slash.  Preserve // when it is special.
75397         (dir_name): Don't append dot when drive letter is absolute.
75398         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75399         * lib/basename.c (base_name): New semantics - malloc the result.
75400         Preserve // when it is special.  Preserve relative files that look
75401         like drive letters.
75402         (base_len): Preserve // when it is special.
75403         (last_component): New method, similar to old base_name semantics.
75404         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75405         base_name.  Strip redundant slashes from ///.
75406
75407 2006-07-03  Jim Meyering  <jim@meyering.net>
75408
75409         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75410         macro is used before the first cycle_check call.
75411
75412 2006-07-03  Eric Blake  <ebb9@byu.net>
75413
75414         * modules/dirname (Depends-on): Add xstrndup.
75415
75416 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75419         test cases, so that config.log is a bit easier to follow.
75420
75421 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75422
75423         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75424         both are 64 bits, since this seems to be the tradition, and this
75425         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75426         we ever run into a host that prefers long long to long in this
75427         case, we'll need another configure-time test.  Problem reported by
75428         Jim Meyering.
75429
75430 2006-07-02  Eric Blake  <ebb9@byu.net>
75431
75432         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75433
75434 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75435
75436         * modules/inttypes (Depends-on): No longer depends on stdint.
75437         * modules/stdint (Description): Say more about assumptions.
75438         Say that the fast types might differ.  Say macros are used.
75439         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
75440         (Makefile.am): Revise list of substituted symbols to match
75441         new stdint.m4.
75442         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
75443         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
75444         * tests/test-stdint.c (verify_same_types)
75445         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
75446         the code conforms to C99/C89.
75447         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
75448         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
75449
75450 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75451
75452         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
75453         but fix a bug, by requiring at least 64 bits.
75454         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
75455         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
75456         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
75457         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
75458
75459         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
75460         changes.  Make 2.59 a prerequisite.  Check and substitute for
75461         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
75462         inttypes.h.  Do not use special include files; just use the
75463         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
75464         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
75465         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
75466         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
75467         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
75468         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
75469         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
75470         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
75471         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
75472         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
75473         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
75474         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
75475         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
75476         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
75477         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
75478         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
75479         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
75480         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
75481         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
75482         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
75483         WINT_MAX.  Check for C99 conformance more strictly, by detecting
75484         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
75485         not check for things that C99 does not require, e.g., int8_t.  If
75486         a test isn't needed unless <stdint.h> isn't working, and is
75487         unlikely to be needed for any other reason, then don't do it
75488         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
75489         size_t, since we assume C89 freestanding at least.  Do not check
75490         for sig_atomic_t, wchar_t, or wint_t, since the code now does
75491         the right thing even if the types are not defined.  Instead use:
75492         (gl_STDINT_TYPE_PROPERTIES): New macro.
75493         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
75494         testing whether <sys/types.h> clashes, as Autoconf does this for
75495         us now.  All uses removed.
75496         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
75497         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
75498         (gl_CHECK_TYPE_SAME):
75499         Remove; no longer needed.
75500         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
75501         exists, since we'll return 0 anyway in that case.
75502         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
75503
75504 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75505
75506         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
75507         possible collision with system files.
75508         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
75509         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
75510         WCHAR_MIN and WCHAR_MAX in this case.
75511         (<stddef.h>): Do not include; no longer needed.
75512         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
75513         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
75514         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
75515         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
75516         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
75517         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
75518         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
75519         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
75520         !defined(__c99))]: Include in this case too, since it's harmless
75521         now.
75522         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
75523         dangerous to do so.
75524         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
75525         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
75526         (_STDINT_MIN, _STDINT_MAX): New macros.
75527         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
75528         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
75529         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
75530         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
75531         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
75532         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
75533         macros, not typedefs; this simplifies things quite a bit.
75534         Use long int for all types narrower than int64_t.
75535         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
75536         Define in terms of long long int or int64_t or long int,
75537         not int64_t or int32_t.  This saves some compile-time testing.
75538         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
75539         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
75540         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
75541         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
75542         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
75543         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
75544         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
75545         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
75546         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
75547         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
75548         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75549         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75550         undef any previous version and define our own version, for
75551         simplicity and consistency with the new macros for types.
75552         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
75553         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
75554         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
75555         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
75556         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
75557         @WINT_T_SUFFIX@ to keep things simple here.
75558         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
75559         Simplify by assuming typical 8/16/32/64 host, since we're
75560         already doing that elsewhere anyway.
75561         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
75562         and assume long long int is 64 bits if available.  This
75563         speeds up 'configure'.
75564
75565 2006-07-01  Eric Blake  <ebb9@byu.net>
75566
75567         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
75568         Reported by Andreas Buening.
75569
75570 2006-07-01  Eric Blake  <ebb9@byu.net>
75571
75572         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
75573
75574 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75575
75576         * lib/getaddrinfo.c: fixed typo
75577
75578 2006-06-29  Jim Meyering  <jim@meyering.net>
75579
75580         * modules/strftime (Maintainer): Add my name, since with the
75581         FPRINTFTIME changes strftime.c has forked from glibc.
75582
75583 2006-06-29  Eric Blake  <ebb9@byu.net>
75584
75585         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
75586
75587 2006-06-29  Eric Blake  <ebb9@byu.net>
75588
75589         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
75590
75591 2006-06-29  Eric Blake  <ebb9@byu.net>
75592
75593         * lib/stat_.h: New file.
75594
75595 2006-06-29  Eric Blake  <ebb9@byu.net>
75596
75597         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
75598         unused static function.
75599
75600 2006-06-29  Eric Blake  <ebb9@byu.net>
75601
75602         * doc/functions.texi (Function Portability): Document missing lstat
75603         on mingw.
75604
75605 2006-06-29  Eric Blake  <ebb9@byu.net>
75606
75607         * MODULES.html.sh: Add sys_stat.
75608         * modules/sys_stat: New module.
75609         * modules/mkstemp (Depends-on): Add sys_stat.
75610
75611 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75612
75613         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
75614
75615 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75616
75617         * m4/c-bs-a.m4: Removed.
75618
75619 2006-06-29  Derek R. Price  <derek@ximbiot.com>
75620
75621         * lib/strftime.c: Assume strftime() exists.
75622
75623 2006-06-29  Derek Price  <derek@ximbiot.com>
75624
75625         * modules/c-bs-a: Removed - \a is C89.
75626         * MODULES.html.sh: Remove c-bs-a.
75627
75628 2006-06-29  Bruno Haible  <bruno@clisp.org>
75629
75630         * modules/wcwidth (License): Change to LGPL.
75631
75632 2006-06-28  Simon Josefsson  <jas@extundo.com>
75633
75634         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
75635         on _WIN32.
75636
75637         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
75638         getnameinfo.
75639
75640 2006-06-28  Simon Josefsson  <jas@extundo.com>
75641
75642         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
75643
75644 2006-06-28  Simon Josefsson  <jas@extundo.com>
75645
75646         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
75647         functions there.  It will succeed on Windows XP, but on Windows
75648         2000 and (presumably) earlier, it will fail, and use the internal
75649         re-implementation.
75650         (use_win32_p): New function.
75651         (getaddrinfo): Use strtoul on servname, to support numeric ports.
75652         Support AI_NUMERICSERV to disable getservbyname.
75653         (getnameinfo): New function, only supports
75654         NI_NUMERICHOST|NI_NUMERICSERV for now.
75655
75656         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
75657         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
75658         getnameinfo.
75659
75660 2006-06-28  Eric Blake  <ebb9@byu.net>
75661
75662         * modules/wcwidth: New file.
75663         * modules/mbchar (Depends-on): Add wcwidth.
75664         * modules/mbswidth (Depends-on): Add wcwidth.
75665         * MODULES.html.sh: Add wcwidth.
75666
75667 2006-06-28  Eric Blake  <ebb9@byu.net>
75668
75669         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
75670         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
75671
75672 2006-06-28  Eric Blake  <ebb9@byu.net>
75673
75674         * lib/xvasprintf.h: Fix comments.
75675
75676 2006-06-28  Eric Blake  <ebb9@byu.net>
75677
75678         * lib/mbchar.h (wcwidth): Include wcwidth.h.
75679         * lib/mbswidth.c (wcwidth): Move from here...
75680         * lib/wcwidth.h: ...to this new file.
75681
75682 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75683
75684         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
75685
75686         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
75687         it's obsolete.
75688         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
75689
75690 2006-06-28  Derek R. Price  <derek@ximbiot.com>
75691
75692         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
75693         Autoconf 2.60 says this stuff was obsolete.
75694
75695 2006-06-28  Bruno Haible  <bruno@clisp.org>
75696
75697         * modules/wcwidth (Files): Add m4/wchar_t.m4.
75698
75699 2006-06-28  Bruno Haible  <bruno@clisp.org>
75700
75701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
75702         gt_TYPE_WCHAR_T.
75703
75704 2006-06-28  Bruno Haible  <bruno@clisp.org>
75705
75706         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
75707         declaration for wcwidth.
75708         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
75709
75710 2006-06-28  Bruno Haible  <bruno@clisp.org>
75711
75712         * lib/mkdtemp.c [MINGW]: Include <io.h>.
75713         (mkdir): Define using _mkdir.
75714
75715 2006-06-28  Bruno Haible  <bruno@clisp.org>
75716
75717         * lib/getaddrinfo.h: Fix POSIX URL.
75718         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
75719         _WIN32.
75720         (use_win32_p): Make static.
75721         (getaddrinfo): Reject service name if it is empty or does not consist
75722         solely of decimal digits, or if its value is > 65535.
75723         (getnameinfo): Remove useless casts.
75724
75725 2006-06-27  Simon Josefsson  <jas@extundo.com>
75726
75727         * modules/sys_select: New file, suggested by Bruno Haible, Paul
75728         Eggert and Martin Lambers.
75729
75730 2006-06-27  Simon Josefsson  <jas@extundo.com>
75731
75732         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
75733         Eggert and Martin Lambers.
75734
75735 2006-06-27  Bruno Haible  <bruno@clisp.org>
75736
75737         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
75738         result to 0, not to empty.
75739         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
75740
75741 2006-06-27  Bruno Haible  <bruno@clisp.org>
75742
75743         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
75744
75745 2006-06-26  Simon Josefsson  <jas@extundo.com>
75746
75747         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
75748         present.
75749
75750 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
75751
75752         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
75753         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
75754         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
75755
75756 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
75757
75758         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
75759
75760 2006-06-26  Bruno Haible  <bruno@clisp.org>
75761
75762         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
75763
75764 2006-06-26  Bruno Haible  <bruno@clisp.org>
75765
75766         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
75767
75768 2006-06-26  Bruno Haible  <bruno@clisp.org>
75769
75770         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
75771         SGI C compiler in pre-C99 mode.
75772         Suggested by Mark D. Baushke and Larry Jones.
75773
75774 2006-06-26  Bruno Haible  <bruno@clisp.org>
75775
75776         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
75777         WCHAR_MAX.
75778         Reported by Mark D. Baushke and Larry Jones.
75779
75780 2006-06-26  Bruno Haible  <bruno@clisp.org>
75781
75782         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
75783         in pre-C99 mode.
75784         Suggested by Mark D. Baushke and Larry Jones.
75785
75786 2006-06-23  Simon Josefsson  <jas@extundo.com>
75787             Bruno Haible  <bruno@clisp.org>
75788
75789         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
75790         Emit mostlyclean-local rule.
75791         (func_emit_tests_Makefile_am): Likewise.
75792         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
75793
75794 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
75795
75796         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
75797
75798 2006-06-23  Bruno Haible  <bruno@clisp.org>
75799
75800         * tests/test-stdint.c: Update to match ISO C 99 Technical
75801         Corrigendum 1.
75802
75803 2006-06-23  Bruno Haible  <bruno@clisp.org>
75804
75805         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
75806
75807 2006-06-23  Bruno Haible  <bruno@clisp.org>
75808
75809         * lib/stdint_.h: Treat IRIX like OpenBSD.
75810
75811 2006-06-23  Bruno Haible  <bruno@clisp.org>
75812
75813         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
75814         ISO C 99 Technical Corrigendum 1.
75815
75816 2006-06-22  Simon Josefsson  <jas@extundo.com>
75817
75818         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
75819         MinGW.
75820
75821 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75822
75823         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
75824         needed.  Some compiler complained about some of them.  Problem reported
75825         by Larry Jones in
75826         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
75827
75828 2006-06-21  Simon Josefsson  <jas@extundo.com>
75829
75830         * tests/test-getaddrinfo.c: New file.
75831
75832         * modules/getaddrinfo-tests: New file.
75833
75834         * MODULES.html.sh: Add inet_pton.
75835
75836         * modules/inet_pton: New file.
75837
75838 2006-06-21  Simon Josefsson  <jas@extundo.com>
75839
75840         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
75841         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
75842         of using the (limited) gnulib implementation on Windows XP.
75843
75844         * m4/inet_pton.m4: New file.
75845
75846 2006-06-21  Simon Josefsson  <jas@extundo.com>
75847
75848         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
75849         variable.
75850
75851         * lib/socket_.h: Don't define WINVER.
75852
75853         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
75854         slightly modified to work in gnulib.
75855
75856 2006-06-21  Simon Josefsson  <jas@extundo.com>
75857
75858         * doc/gnulib.texi (Windows sockets): Add.
75859
75860 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
75861
75862         * lib/read-file.c (fread_file): Start with buffer allocation of
75863         0 bytes rather than 1 byte; this simplifies the code.
75864         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
75865         code to free buffer and save/restore errno.
75866         (internal_read_file): Remove unused local.
75867
75868 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
75869
75870         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
75871         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
75872         Problem reported by Denis Excoffier in
75873         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
75874
75875 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75876
75877         * modules/sys_socket, modules/socklen: Include sys/types since
75878         FreeBSD 4.x's sys/socket.h needs it.
75879
75880 2006-06-19  Simon Josefsson  <jas@extundo.com>
75881
75882         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
75883
75884 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75885
75886         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
75887
75888 2006-06-19  Bruno Haible  <bruno@clisp.org>
75889
75890         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
75891         and FULL_PATH_INTTYPES_H in angle brackets.
75892         Reported by Mark D. Baushke <mdb@gnu.org>.
75893
75894 2006-06-17  Eric Blake  <ebb9@byu.net>
75895
75896         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
75897         errno.
75898
75899 2006-06-17  Bruno Haible  <bruno@clisp.org>
75900
75901         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
75902         <sys/inttypes.h>.
75903
75904 2006-06-17  Bruno Haible  <bruno@clisp.org>
75905
75906         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
75907         whether errno is declared. Assume <errno.h> declares errno.
75908
75909 2006-06-17  Bruno Haible  <bruno@clisp.org>
75910
75911         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
75912
75913 2006-06-17  Bruno Haible  <bruno@clisp.org>
75914
75915         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
75916         problem on Solaris 2.5.1.
75917
75918 2006-06-16  Eric Blake  <ebb9@byu.net>
75919
75920         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
75921         * lib/unicodeio.c [!defined errno]: Likewise.
75922         * lib/strtol.c [!defined errno]: Likewise.
75923         * lib/strtod.c [!defined errno]: Likewise.
75924
75925 2006-06-15  Eric Blake  <ebb9@byu.net>
75926
75927         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
75928
75929 2006-06-15  Eric Blake  <ebb9@byu.net>
75930
75931         * config/srclist.txt (ssize_t.m4): Lose sync.
75932
75933 2006-06-15  Bruno Haible  <bruno@clisp.org>
75934
75935         * modules/stdint (Files): Include m4/full-header-path.m4,
75936         m4/size_max.m4, m4/wchar_t.m4.
75937         (Makefile.am): Many more substitutions.
75938         * modules/stdint-tests: New file.
75939         * tests/test-stdint.c: New file.
75940
75941 2006-06-15  Bruno Haible  <bruno@clisp.org>
75942
75943         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
75944         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
75945         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
75946         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
75947         gl_CHECK_TYPE_SAME): New macros.
75948
75949 2006-06-15  Bruno Haible  <bruno@clisp.org>
75950
75951         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
75952
75953 2006-06-15  Bruno Haible  <bruno@clisp.org>
75954
75955         * lib/stdint_.h: Rewritten to be fully auto-configured.
75956         Fixes bug on HP-UX/IA64.
75957
75958 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
75959
75960         * lib/getdate.y (__attribute__): Don't define if already defined.
75961         Problem reported by Larry Jones.
75962         * lib/utimens.c (__attribute__): Likewise.
75963
75964 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
75965
75966         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
75967         reported by Andreas Schwab.
75968
75969 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75970             Bruno Haible  <bruno@clisp.org>
75971
75972         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
75973         check for the declaration of strnlen and a run test that exposes the
75974         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
75975         rpl_strndup.
75976
75977 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75978             Bruno Haible  <bruno@clisp.org>
75979
75980         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
75981
75982 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75983
75984         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
75985         compile test, for Tru64 4.0D.
75986
75987 2006-05-28  Karl Berry  <karl@gnu.org>
75988
75989         * config/srclist.txt (printf-args.c): lose sync.
75990
75991 2006-05-26  Martin Lambers  <marlam@marlam.de>
75992
75993         * lib/getpass.c: Updates the test for the native W32 API, and adds
75994         missing includes, thus fixing compilation warnings.
75995
75996 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
75997
75998         * lib/exclude.c (exclude_fnmatch): New function.
75999         (excluded_file_name): Call exclude_fnmatch.
76000         * lib/exclude.h (excluded_file_name): New prototype
76001
76002 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76003
76004         * lib/tempname.c (small_open, large_open): New macros.
76005         (__open, __open64) [!_LIBC]: Remove.
76006         (__gen_tempname): Use small_open and large_open instead of __open
76007         and __open64.  This fixes a portability bug on HP-UX 11.11i
76008         reported by Simon Wing-Tang in
76009         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76010
76011 2006-05-24  Bruno Haible  <bruno@clisp.org>
76012
76013         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76014         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76015         Reported by Thorsten Maerz <torte@netztorte.de> via
76016         Aaron Stone <aaron@serendipity.cx>.
76017
76018 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76019
76020         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76021         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76022         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76023         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76024         not really conditional on the cache.
76025         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76026
76027 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76030         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76031         (my_usleep): Don't mishandle maximum value.
76032
76033 2006-05-19  Jim Meyering  <jim@meyering.net>
76034
76035         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76036
76037 2006-05-17  Bruno Haible  <bruno@clisp.org>
76038
76039         Cygwin portability.
76040         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76041
76042 2006-05-17  Bruno Haible  <bruno@clisp.org>
76043
76044         * lib/stdint_.h: Fix recognition of Cygwin.
76045
76046 2006-05-15  Bruno Haible  <bruno@clisp.org>
76047
76048         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76049         on libtool patch by Ralf Wildenhues.
76050
76051 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76052
76053         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76054         test for C99 conformance; (bool) 0.5 is an integer constant
76055         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76056         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76057
76058 2006-05-11  Simon Josefsson  <jas@extundo.com>
76059
76060         * m4/xvasprintf.m4: Fix obvious typo.
76061
76062 2006-05-11  Jim Meyering  <jim@meyering.net>
76063
76064         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76065         James Lemley.
76066
76067 2006-05-10  Simon Josefsson  <jas@extundo.com>
76068
76069         * lib/md4.c: Typo fix, update copyright years.
76070         (K1, K2): Don't use L because it turn computations into 64-bit on
76071         64-bit platforms.
76072
76073 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76074
76075         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76076         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76077         unwanted sign propagation, e.g., on hosts with 64-bit int.
76078         There still are some problems with reeelly weird theoretical hosts
76079         (e.g., 33-bit int) but it's not worth worrying about now.
76080         * lib/sha1.c (rol): Likewise.
76081         (K1, K2, K3, K4): Remove unnecessary L suffix.
76082
76083 2006-05-10  Bruno Haible  <bruno@clisp.org>
76084
76085         * lib/des.c: Cast to avoid warnings.
76086
76087 2006-05-09  Bruno Haible  <bruno@clisp.org>
76088
76089         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76090         (Depends-on): Depend also on xsize, stdarg.
76091         (configure.ac): Add gl_XVASPRINTF.
76092
76093 2006-05-09  Bruno Haible  <bruno@clisp.org>
76094
76095         * m4/xvasprintf.m4: New file.
76096
76097 2006-05-09  Bruno Haible  <bruno@clisp.org>
76098
76099         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76100         (EOVERFLOW): Define fallback value.
76101         (xstrcat): New function.
76102         (xvasprintf): Recognize the special case of a string concatenation.
76103
76104 2006-05-08  Eric Blake  <ebb9@byu.net>
76105
76106         * gnulib-tool (func_version): Base copyright year on CVS date.
76107         (func_emit_copyright_notice): New function.
76108         (func_emit_lib_Makefile_am): Use it.
76109         (func_emit_tests_Makefile_am): Likewise.
76110         (func_import): Likewise.
76111
76112 2006-05-08  Bruno Haible  <bruno@clisp.org>
76113
76114         * modules/stdarg: New file.
76115         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76116
76117 2006-05-08  Bruno Haible  <bruno@clisp.org>
76118
76119         * m4/stdarg.m4: New file, from GNU gettext.
76120
76121 2006-05-08  Bruno Haible  <bruno@clisp.org>
76122
76123         * config/srclist.txt (build-aux/config.rpath): different from latest
76124         release.
76125
76126 2006-05-08  Bruno Haible  <bruno@clisp.org>
76127
76128         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76129
76130 2006-05-05  Jim Meyering  <jim@meyering.net>
76131
76132         * m4/warning.m4: New file, derived from bison's file by the same name.
76133
76134 2006-05-03  Bruno Haible  <bruno@clisp.org>
76135
76136         * lib/stdint_.h: Shorter URL.
76137         * lib/inttypes.h: Likewise.
76138
76139 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76140
76141         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76142
76143 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76144
76145         * lib/verify.h: Document the internals better.  Most of this change
76146         was written by Bruno Haible.
76147
76148 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * doc/verify.texi: New file, partly based on a proposal by
76151         Bruno Haible.
76152
76153 2006-05-02  Bruno Haible  <bruno@clisp.org>
76154
76155         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76156         test from here...
76157         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76158
76159 2006-04-29  Bruno Haible  <bruno@clisp.org>
76160
76161         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76162         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76163
76164 2006-04-29  Bruno Haible  <bruno@clisp.org>
76165
76166         * gnulib-tool: Make --update option actually work.
76167
76168 2006-04-29  Bruno Haible  <bruno@clisp.org>
76169
76170         * doc/gcd.texi: New file.
76171         * doc/gnulib.texi: Include it.
76172
76173 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * lib/getdate.y (get_date): When adding relative date, start with the
76176         initial time, not with the result of the first mktime call.
76177
76178 2006-04-25  Bruno Haible  <bruno@clisp.org>
76179
76180         * gnulib-tool (func_import): Output the include directives in three
76181         blocks, sorted separately.
76182         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76183
76184 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76185
76186         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76187         to define main with arguments, for C++.  Reported by Eric Blake.
76188         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76189         Prefer 'int main ()' to 'int main (void)', for C++.
76190         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76191         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76192         for 'main', for C99 and C++.
76193
76194 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76195
76196         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76197         Don't assume that exit status -1 is valid.
76198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76199         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76200         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76201         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76202         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76203         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76204         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76205         functions can be used without declaring them, or that you can
76206         exit with status -1.
76207         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76208
76209 2006-04-24  Karl Berry  <karl@gnu.org>
76210
76211         * config/srclist.txt (longdouble.m4): sync lost.
76212
76213 2006-04-24  Eric Blake  <ebb9@byu.net>
76214
76215         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76216
76217 2006-04-24  Bruno Haible  <bruno@clisp.org>
76218
76219         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76220         poll() implementation in AIX.
76221         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76222
76223 2006-04-24  Bruno Haible  <bruno@clisp.org>
76224
76225         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76226         assigned exactly once.
76227
76228 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76229             Bruno Haible  <bruno@clisp.org>
76230
76231         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76232         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76233         for AM_CPPFLAGS.
76234
76235 2006-04-23  Bruno Haible  <bruno@clisp.org>
76236
76237         * modules/copy-file: Depend on unistd.
76238         * modules/execute: Likewise.
76239         * modules/fatal-signal: Likewise.
76240         * modules/findprog: Likewise.
76241         * modules/mkdtemp : Likewise.
76242         * modules/pipe: Likewise.
76243         * modules/wait-process: Likewise.
76244
76245 2006-04-23  Bruno Haible  <bruno@clisp.org>
76246
76247         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76248         condition was already detected.
76249         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76250
76251 2006-04-23  Bruno Haible  <bruno@clisp.org>
76252
76253         * lib/copy-file.c: Include <unistd.h> unconditionally.
76254         * lib/execute.c: Likewise.
76255         * lib/fatal-signal.c: Likewise.
76256         * lib/findprog.c: Likewise.
76257         * lib/mkdtemp.c: Likewise.
76258         * lib/pipe.h: Likewise.
76259         * lib/pipe.c: Likewise.
76260         * lib/wait-process.h: Likewise.
76261
76262 2006-04-23  Bruno Haible  <bruno@clisp.org>
76263
76264         * gnulib-tool (func_usage): Fix --import description. Document
76265         --update.
76266         (func_import): Create temporary file in a temporary directory, if
76267         --dry-run is specified. Silence errors from 'grep' when there are no
76268         m4 files in $m4dir.
76269         (func_create_testdir): Silence errors from 'grep' when there are no
76270         m4 files in $m4dir.
76271         Reported by Karl Berry <karl@freefriends.org>.
76272
76273 2006-04-20  Bruno Haible  <bruno@clisp.org>
76274
76275         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76276         one argument, so that the code will be portable to Autoconf 2.60.
76277         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76278         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76279         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76280
76281 2006-04-19  Derek Price  <derek@ximbiot.com>
76282             Eric Blake  <ebb9@byu.net>
76283
76284         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76285         rather than "/full/path.h".  Update comment to match.  Shorten &
76286         generalize m4_translit call via AS_TR_CPP.
76287
76288 2006-04-19  Derek Price  <derek@ximbiot.com>
76289             Eric Blake  <ebb9@byu.net>
76290
76291         * lib/inttypes.h: Correct grammar in comment.
76292
76293 2006-04-18  Derek Price  <derek@ximbiot.com>
76294             Paul Eggert  <eggert@cs.ucla.edu>
76295
76296         * modules/inttypes: New file.
76297         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76298
76299 2006-04-18  Derek Price  <derek@ximbiot.com>
76300             Paul Eggert  <eggert@cs.ucla.edu>
76301
76302         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76303         New files.
76304
76305 2006-04-18  Derek Price  <derek@ximbiot.com>
76306             Paul Eggert  <eggert@cs.ucla.edu>
76307
76308         * lib/inttypes.h: New file.
76309         * lib/strtoimax.c: Assume <inttypes.h>.
76310
76311 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76312
76313         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76314         isn't mounted.  Problem reported by Kir Kolyshkin.
76315
76316 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76317
76318         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76319         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76320         Derek R. Price.
76321         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76322         implementation.
76323
76324 2006-04-12  Eric Blake  <ebb9@byu.net>
76325
76326         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76327         is now done automatically by the corresponding Autoconf macro.
76328
76329 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76330
76331         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76332         time_r.h.
76333
76334 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76335
76336         Merge regex changes from libc, removing some of our
76337         POSIX-conformance changes that were rejected and redoing them in a
76338         less-intrusive way.
76339
76340         * lib/regcomp.c (re_compile_internal, init_dfa):
76341         Length arg is now size_t, not Idx.  All uses changed.
76342         (peek_token): Forward decl now says internal_function.
76343         (__re_error_msgid, __re_error_msgid_idx):
76344         Now static rather than extern with attribute_hidden.
76345         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76346         For some reason libc prefers K&R style defns for external functions.
76347         (regerror) [!defined _LIBC]: Likewise.
76348         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76349         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76350         (build_range_exp, build_collating_symbol):
76351         Use K&R-style defn.
76352         (re_compile_fastmap): Use '\0' to memset, not 0.
76353         (utf8_sb_map): Make the calculations more obvious.
76354         (init_dfa, parse_bracket_exp, build_charclass_op):
76355         Call calloc and cast result, as glibc does.
76356         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76357         (build_range_exp, build_collating_symbol):
76358         Now internal functions.
76359
76360         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76361
76362         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76363         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76364         Don't depend on VMS; depend on __VMS instead, for POSIX
76365         namespace cleanness.
76366         (regoff_t): Define to ssize_t, not long int.
76367
76368         Remove the REG_ macros named below.  Instead, make the old names
76369         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76370         __USE_GNU_REGEX.
76371         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76372         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76373         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76374         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76375         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76376         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76377         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76378         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76379         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76380         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76381         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76382         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76383         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76384         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76385         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76386         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76387         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76388         (REG_NREGS):
76389         Remove.  All uses replaced by the old RE_* names.
76390         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76391         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76392         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76393         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76394         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76395         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76396         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76397         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76398         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76399         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76400         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76401         Don't bother having these macros be independent of each others'
76402         values, since they no longer exist in the POSIX name space.
76403
76404         Rename the following member names back to their old names,
76405         unless !__USE_GNU_REGEX.  All uses changed back.
76406         (buffer): Renamed from re_buffer.
76407         (allocated): Renamed from re_allocated.
76408         (used): Renamed from re_used.
76409         (syntax): Renamed from re_syntax.
76410         (fastmap): Renamed from re_fastmap.
76411         (translate): Renamed from re_translate.
76412         (can_be_null): Renamed from re_can_be_null.
76413         (regs_allocated): Renamed from re_regs_allocated.
76414         (fastmap_accurate): Renamed from re_fastmap_accurate.
76415         (no_sub): Renamed from re_no_sub.
76416         (not_bol): Renamed from re_not_bol.
76417         (not_eol): Renamed from re_not_eol.
76418         (newline_anchor): Renamed from re_newline_anchor.
76419         (num_regs): Renamed from rm_num_regs.
76420         (start): Renamed from rm_start.
76421         (end): Renamed from rm_end.
76422
76423         (free_state): Move up a bit.
76424
76425         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76426         #define to be empty.
76427         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76428         when that is what is intended.
76429         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76430         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76431         (MAX): New macro.
76432         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76433         All uses changed back to re_malloc, etc.  It's now the caller's
76434         responsibility to check for overflow; all callers changed.
76435         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76436         (re_x2nrealloc): Remove.
76437         (free_state): Remove decl.
76438
76439         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
76440         (re_set_registers, re_exec):
76441         Use K&R-style defn.
76442
76443         2006-01-31  Roland McGrath  <roland@redhat.com>
76444
76445         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
76446         Reported by Mike Frysinger <vapier@gentoo.org>.
76447
76448         2006-01-15  Andreas Jaeger  <aj@suse.de>
76449
76450         [BZ #1950]
76451         * lib/regex_internal.c (re_string_reconstruct): Adjust for
76452         build_wcs_upper_buffer change.
76453         (build_wcs_upper_buffer): Change return type.
76454
76455         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
76456
76457         * lib/regex_internal.h: Include <stdint.h> if available.
76458
76459         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
76460
76461         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
76462
76463         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
76464
76465         * lib/regcomp.c: Adjust for changed secondary hash function.
76466
76467         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
76468
76469         * lib/regex.h: Pretty printing.
76470         Clean up namespace a bit.
76471
76472         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
76473
76474         * lib/regexec.c (update_cur_sifted_state, check_arrival,
76475         check_arrival_add_next_nodes): Avoid using uninitialized variable.
76476
76477         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
76478                     Ulrich Drepper  <drepper@redhat.com>
76479
76480         [BZ #1302]
76481         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
76482         changed.
76483         (bitset_word_t): Renamed from bitset_word.  All uses changed.
76484
76485         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
76486
76487         [BZ #281]
76488         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
76489         * lib/regcomp.c: Remove unnecessary uses of
76490         unsigned RE_TRANSLATE_TYPE.
76491         * lib/regex_internal.h: Likewise.
76492         * lib/regex_internal.c: Likewise.
76493         * lib/regexec.c: Likewise.
76494         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
76495
76496         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
76497
76498         * lib/regexec.c (find_recover_state): Remove unnecessary
76499         initialization.
76500         (transit_state_bkref): Make DFA a const pointer.
76501         (get_subexp): Likewise.
76502         (check_arrival): Likewise.
76503         (update_cur_sifted_state): Likewise.
76504         (re_search_internal): Likewise.
76505         (prune_impossible_nodes): Likewise.
76506         (acquire_init_state_context): Likewise.
76507         (proceed_next_node): Likewise.
76508         (set_regs): Likewise.
76509         (free_fail_stack_return): Likewise.
76510         (check_arrival_expand_ecl): Mark DFA parameter as const.
76511         (check_arrival_expand_ecl_sub): Likewise.
76512         (check_subexp_limits): Likewise.
76513         (sub_epsilon_src_nodes):  Likewise.
76514         (add_epsilon_src_nodes):  Likewise.
76515         (merge_state_array): Likewise.
76516         (update_regs): Likewise.
76517         (build_trtable): Likewise.
76518         (sift_states_backward): Mark MCTX parameter as const.
76519         (build_sifted_states): Likewise.
76520         (update_cur_sifted_state): Likewise.
76521         (sift_states_mkref): Likewise.
76522         (check_arrival_expand_ecl): Mark eclosure as const.
76523         (check_dst_limits_calc_pos_1): Likewise.
76524         * lib/regex_internal.h (re_match_context_t): Make dfa a const
76525         pointer.
76526
76527         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
76528
76529         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
76530         (transit_state_sb): Likewise.
76531         (transit_state_mb): Likewise.
76532         (sift_states_iter_mb): Likewise.
76533         (check_arrival_add_next_nodes): Likewise.
76534         (check_node_accept_bytes): Change first parameter to pointer-to-const.
76535         [_LIBC] (re_search_2_stub): Use mempcpy.
76536
76537         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
76538         mbrtowc for very simple UTF-8 case.
76539
76540         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
76541         a pointer-to-const.
76542         (re_acquire_state_context): Likewise.
76543         * lib/regex_internal.h: Adjust prototypes.
76544
76545         * lib/regex.c: Prevent using C++ compilers.
76546
76547         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
76548         (re_acquire_state_context): Likewise.
76549
76550 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76551
76552         * modules/regex (Depends-on): Add ssize_t.
76553
76554 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76555
76556         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
76557         translation table.
76558
76559 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76560
76561         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
76562
76563 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
76564             Bruno Haible  <bruno@clisp.org>
76565
76566         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
76567         <sys/types.h> and <inttypes.h>.
76568
76569 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76570
76571         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
76572         `__error_t_defined', so argp.h will not typedef the former.
76573
76574 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
76575
76576         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
76577         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
76578         glibc names.  Even if glibc is changed to conform to POSIX, the
76579         traditional names will be available anyway, since regex depends on
76580         the extensions module.  Also, fix a longstanding typo in the
76581         implementation of Spencer ERE test #75 from grep 2.3.  Problems
76582         reported by Emanuele Giaquinta.  Also, change sense of cached
76583         variable, so that the message makes sense.
76584
76585 2006-03-24  Simon Josefsson  <jas@extundo.com>
76586
76587         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
76588         including some doc fixes.
76589         (base64_encode_alloc): Fix +1 bug on allocation failures.
76590
76591 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76592
76593         * lib/base64.c (base64_encode): Do not read past end of array with
76594         unsanitized input on systems with CHAR_BIT > 8.
76595
76596 2006-03-24  Eric Blake  <ebb9@byu.net>
76597
76598         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
76599
76600 2006-03-22  Karl Berry  <karl@gnu.org>
76601
76602         * config/srclist.txt (*setenv.[ch]): get from coreutils.
76603         * config/srclistvars.sh (COREUTILS): new var.
76604
76605 2006-03-17  Jim Meyering  <jim@meyering.net>
76606
76607         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
76608         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
76609
76610 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76611
76612         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
76613         no longer needs it.  Instead, check that regoff_t is as least
76614         as wide as ptrdiff_t.
76615
76616         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
76617         so that our regex.h stays compatible with the installed regex.
76618         This is helpful for installers who configure --without-included-regex.
76619         Problem reported by Emanuele Giaquinta.
76620
76621 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
76622
76623         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
76624         Typedef to long int, not to off_, as POSIX will likely change
76625         in that direction.
76626
76627 2006-03-15  Eric Blake  <ebb9@byu.net>
76628
76629         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
76630
76631 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76632
76633         * lib/argp-help.c (validate_uparams): Fix typo
76634         * lib/argp-parse.c (argp_default_options): Consistently begin help
76635         messages with a lowercase letter.
76636
76637 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
76638
76639         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
76640         overrun buffers and shouldn't be used (much as gets shouldn't be
76641         used).
76642         * lib/time_r.c (asctime_r, ctime_r): Likewise.
76643
76644 2006-03-08  Simon Josefsson  <jas@extundo.com>
76645
76646         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
76647         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76648
76649 2006-03-08  Simon Josefsson  <jas@extundo.com>
76650
76651         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
76652         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76653
76654 2006-03-08  Simon Josefsson  <jas@extundo.com>
76655
76656         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
76657         signal that configure disabled the device.
76658
76659 2006-03-08  Simon Josefsson  <jas@extundo.com>
76660
76661         * build-aux/maint.mk: Fix refresh-po, to handle no translated
76662         languages.
76663
76664 2006-03-07  Simon Josefsson  <jas@extundo.com>
76665
76666         * modules/getopt (Depends-on): Add unistd.
76667
76668         * modules/unistd: New file.
76669
76670 2006-03-07  Simon Josefsson  <jas@extundo.com>
76671
76672         * modules/gc-random: New file.
76673
76674 2006-03-07  Simon Josefsson  <jas@extundo.com>
76675
76676         * m4/unistd_h.m4: New file.
76677
76678 2006-03-07  Simon Josefsson  <jas@extundo.com>
76679
76680         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
76681         test to be side-effect free by storing the result in the cache
76682         variable gl_cv_lib_readline, and moving the assignment of
76683         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
76684         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76685
76686 2006-03-07  Simon Josefsson  <jas@extundo.com>
76687
76688         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
76689         error on missing devices (the functions will return an error).
76690
76691         * m4/gc.m4: Move random stuff to gc-random.m4
76692
76693 2006-03-07  Simon Josefsson  <jas@extundo.com>
76694
76695         * lib/unistd_.h: New file.
76696
76697 2006-03-07  Simon Josefsson  <jas@extundo.com>
76698
76699         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
76700
76701 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76702
76703         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
76704         Problem reported by Juan Manuel Guerrero.
76705
76706 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
76709         the unistd module.
76710         * lib/getlogin_r.c: Likewise.
76711         * lib/getlogin_r.h: Likewise.
76712         * lib/glob.c: Likewise.
76713         * lib/pagealign_alloc.c: Likewise.
76714         * lib/unistd_.h: Remove; no longer needed.
76715
76716 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
76717
76718         * MODULES.html.sh (Support for systems lacking POSIX:2001):
76719         Add unistd.
76720         * modules/c-stack (Depends-on): Add unistd.
76721         * modules/getlogin_r: Likewise.
76722         * modules/glob: Likewise.
76723         * modules/pagealign_alloc: Likewise.
76724         * modules/unistd (Files): Remove lib/unistd_.h.
76725         (EXTRA_DIST): Remove.
76726         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
76727         need unistd_.h.
76728         (MOSTLYCLEANFILES): Remove unistd.h-t.
76729
76730 2006-03-03  Simon Josefsson  <jas@extundo.com>
76731
76732         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
76733
76734 2006-03-03  Simon Josefsson  <jas@extundo.com>
76735
76736         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
76737         libidn and bison.
76738
76739 2006-03-03  Simon Josefsson  <jas@extundo.com>
76740
76741         * build-aux/maint.mk: Add indent target.
76742
76743 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
76744
76745         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
76746         our replacement poll.h in any case, to avoid a differing
76747         declaration from a system header.  Seen on AIX.
76748
76749 2006-03-01  Simon Josefsson  <jas@extundo.com>
76750
76751         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
76752         <kasal@ucw.cz>.
76753
76754 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76755
76756         * modules/gettime (Depends-on): Add extensions module.
76757         * modules/nanosleep (Depends-on): Likewise.
76758         * modules/settime (Depends-on): Likewise.
76759
76760 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
76761
76762         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
76763         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
76764         pedantically.
76765         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76766         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
76767
76768         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
76769         not "==".  Reported by Ralf Wildenhues.
76770
76771 2006-03-01  Karl Berry  <karl@gnu.org>
76772
76773         * doc/Copyright/request-*: new files, synced from gnuorg.
76774
76775 2006-03-01  Karl Berry  <karl@gnu.org>
76776
76777         * config/srclist.txt (Copyright/*): new entries.
76778
76779 2006-02-28  Simon Josefsson  <jas@extundo.com>
76780
76781         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
76782
76783 2006-02-27  Simon Josefsson  <jas@extundo.com>
76784
76785         * lib/base64.h: Indent #define's.  From Jim Meyering
76786         <jim@meyering.net>.
76787
76788 2006-02-27  Jim Meyering  <jim@meyering.net>
76789
76790         Revert the change of 2006-02-24, so these files can continue
76791         to be sync'd from gettext.
76792         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
76793         of `config.h'.
76794
76795 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
76796
76797         * modules/intprops: New file.
76798         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76799         Add intprops.
76800         * modules/getloadavg (Files): Remove lib/intprops.h.
76801         (Depends-on): Add intprops.
76802         * modules/human: Likewise.
76803         * modules/inttostr: Likewise.
76804         * modules/openat: Likewise.
76805         * modules/sig2str: Likewise.
76806         * modules/userspec: Likewise.
76807         * modules/utimecmp: Likewise.
76808         * modules/xnanosleep: Likewise.
76809         * modules/xstrtol: Likewise.
76810
76811 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
76812
76813         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
76814         * modules/lock-tests (TESTS): Use $(EXEEXT).
76815         * modules/tls-tests: Likewise.
76816         * modules/argp-tests: Likewise.
76817         (check_PROGRAMS): New var, replacing...
76818         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
76819
76820 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76821
76822         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
76823         `config.h'.
76824
76825 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
76826
76827         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
76828
76829 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76830
76831         Sync from coreutils.
76832         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
76833         gl_CHDIR_SAFER.
76834
76835 2006-02-22  Jim Meyering  <jim@meyering.net>
76836
76837         Sync from coreutils.
76838         * m4/chdir-safer.m4: New file.
76839
76840 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
76841
76842         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
76843         AT_FDCWD exceeds INT_MAX.
76844         * lib/openat.h (AT_FDCWD): Likewise.
76845
76846 2006-02-17  Eric Blake  <address@hidden>
76847
76848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
76849
76850 2006-02-16  Simon Josefsson  <jas@extundo.com>
76851
76852         * modules/getaddrinfo (Depends-on): Add sys_socket.
76853
76854 2006-02-15  Simon Josefsson  <jas@extundo.com>
76855
76856         * build-aux/maint.mk: Add dsyntax-check rule.
76857
76858 2006-02-15  Eric Blake  <ebb9@byu.net>
76859
76860         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
76861         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
76862         'present but cannot compile' warnings on cygwin.
76863         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
76864         use ws2tcpip.h if sys/socket.h works.
76865         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
76866         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
76867
76868 2006-02-14  Simon Josefsson  <jas@extundo.com>
76869
76870         * modules/maintainer-makefile (Files): Rename.
76871
76872         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
76873         and (the local) Makefile.cfg to maint-cfg.mk.
76874
76875         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
76876         to the latter.
76877
76878         * modules/maintainer-makefile: New module.
76879
76880         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
76881         severaly stripped to make it possible to build it up from scratch
76882         with reliable tests.
76883
76884         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
76885         fixes to permit overriding the default actions when configure and
76886         makefile are not available.
76887
76888 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
76889
76890         Sync from coreutils.
76891         * modules/lstat (Depends-on): Don't depend on xalloc.
76892         (License): Change from GPL to LGPL, since this is now simply a
76893         replacement for a libc function.
76894
76895 2006-02-14  Jim Meyering  <jim@meyering.net>
76896
76897         Sync from coreutils.
76898
76899         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
76900         failure on deficient systems, and simplify gnulib lgpl dependencies.
76901         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
76902         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
76903
76904         * lib/xalloc-die.c: Remove unused definition of N_.
76905
76906 2006-02-14  Jim Meyering  <jim@meyering.net>
76907
76908         Sync from coreutils.
76909         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
76910         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
76911         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
76912         double-quote uses of that variable, to accommodate the rare case in
76913         which getmntent is available in none of the libraries checked.  This
76914         happens at least on FreeBSD 5.0.
76915
76916 2006-02-13  Simon Josefsson  <jas@extundo.com>
76917
76918         * gnulib-tool (Usage): Fix --import, from
76919         karl@freefriends.org (Karl Berry).
76920
76921 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
76922
76923         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
76924
76925 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
76926
76927         * lib/argp-namefrob.h: Restore changes accidentally lost during the
76928         "autoupdate" on 2005-12-12.
76929
76930 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76931
76932         * modules/closeout (Depends-on): Remove atexit.
76933
76934 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
76935
76936         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
76937         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
76938
76939 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
76940
76941         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
76942         __EXTENSIONS__ if this causes compilation to fail.  Problem
76943         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
76944         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
76945
76946 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
76947
76948         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
76949         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
76950         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
76951         All uses changed.
76952
76953 2006-01-26  Simon Josefsson  <jas@extundo.com>
76954
76955         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
76956         prototype is visible on mingw32.
76957
76958         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
76959         for mingw32.
76960
76961         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
76962         mingw32).
76963
76964 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
76965
76966         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
76967         attempt to open for write; this always fails, at least on POSIX
76968         hosts.  This reinstates the 2006-01-09 change, which was
76969         inadvertently removed.
76970
76971 2006-01-26  Bruno Haible  <bruno@clisp.org>
76972
76973         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
76974         Reported by Paul Eggert.
76975
76976 2006-01-26  Bruno Haible  <bruno@clisp.org>
76977             Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * lib/stdbool_.h (_Bool)
76980         [(! (defined __cplusplus || defined __BEOS__)
76981           && !defined __GNUC__
76982           && !(defined __HP_cc || defined __xlc__
76983                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
76984                || defined __sgi))]:
76985         #define to signed char in these cases too; this simplifies
76986         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
76987         etc., separately) and makes it more conservative.
76988
76989 2006-01-25  Simon Josefsson  <jas@extundo.com>
76990
76991         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
76992         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
76993         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
76994
76995 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76996
76997         * lib/argp-namefrob.h: Bugfix. Remove stray #
76998
76999 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77002         so that we test the test.
77003         Check for yet another HP-UX cc bug involving *bool |= bool.
77004
77005 2006-01-25  Karl Berry  <karl@gnu.org>
77006
77007         * config/srclist.txt (vasnprintf.c): sync lost.
77008
77009 2006-01-25  Jim Meyering  <jim@meyering.net>
77010
77011         Sync from the stable (b5) branch of coreutils:
77012
77013         * lib/fts.c (fts_children): Don't let close() clobber errno from
77014         failed fchdir().
77015
77016         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77017         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77018         a dangling symlink.  That can also happen at least for ELOOP.
77019         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77020         FYI, this bug predates the inclusion of fts.c in coreutils.
77021
77022         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77023         in their own block, so pre-c99 compilers don't object.
77024
77025         Avoid the double-free (first in fts_read, second in fts_close) that
77026         would occur when an `active' directory is made inaccessible (e.g.,
77027         via chmod a-x) during a traversal.
77028         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77029         before returning.  Reproduce this failure by
77030         mkdir -p a/b; cd a; chmod a-x . b
77031         Reported by Stavros Passas.
77032
77033 2006-01-25  Jim Meyering  <jim@meyering.net>
77034
77035         * lib/fileblocks.c: Remove more useless parentheses.
77036         * lib/readutmp.h: Likewise.
77037
77038 2006-01-25  Bruno Haible  <bruno@clisp.org>
77039
77040         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77041         warnings.
77042         Reported by Paul Eggert.
77043
77044 2006-01-25  Bruno Haible  <bruno@clisp.org>
77045
77046         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77047         rid of a trap command. For Solaris sh.
77048         Reported by Mark D. Baushke <mdb@gnu.org>.
77049
77050 2006-01-24  Simon Josefsson  <jas@extundo.com>
77051
77052         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77053         Bruno.
77054
77055 2006-01-24  Karl Berry  <karl@gnu.org>
77056
77057         * config/srclist.txt (argp-namefrob.h): sync lost.
77058
77059 2006-01-24  Jim Meyering  <jim@meyering.net>
77060
77061         * modules/openat (Files): Add lib/intprops.h.
77062         From Mark D. Baushke.
77063
77064 2006-01-24  Jim Meyering  <jim@meyering.net>
77065
77066         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77067         Reported by Mark D. Baushke.
77068
77069 2006-01-24  Jim Meyering  <jim@meyering.net>
77070
77071         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77072
77073 2006-01-24  Bruno Haible  <bruno@clisp.org>
77074
77075         * modules/strnlen (Maintainer): Change from glibc to all.
77076
77077 2006-01-24  Bruno Haible  <bruno@clisp.org>
77078
77079         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77080         Patch by Paul Eggert.
77081
77082 2006-01-24  Bruno Haible  <bruno@clisp.org>
77083
77084         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77085         already has it.
77086         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77087         2005-11-26.
77088
77089         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77090         'signed char' to avoid problems with the built-in _Bool type.
77091         Reported by Paul Eggert on 2005-11-26.
77092
77093 2006-01-24  Bruno Haible  <bruno@clisp.org>
77094
77095         * gnulib-tool (func_import): Avoid constructing complicated sed
77096         expressions inside backquote.
77097         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77098
77099 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77100
77101         These changes imported from libc.
77102         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77103         test and two separate function calls.
77104         * lib/strndup.c (__strndup): Add libc_hidden_def.
77105
77106 2006-01-23  Simon Josefsson  <jas@extundo.com>
77107
77108         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77109         Remove the test_*_SOURCES variable: automake infers it by default.
77110         * modules/tls-tests: Likewise.
77111
77112 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77113
77114         Work around porting bugs reported by Dieter in
77115         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77116         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77117         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77118         Include "getopt.h" first, to check interface.
77119         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77120         !HAVE_DECL_GETENV.
77121         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77122         (__strndup): Revert to K&R-style function dfns, the glibc style.
77123         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77124         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77125         Include strnlen.h first, to get prototype properly.
77126         (strnlen): Renamed from __strnlen.
77127         Remove weak alias.
77128
77129 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77132
77133 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77134
77135         * config/srclist.txt: Adjust to reflect glibc reorganization.
77136         This affects only comments.
77137
77138 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77139
77140          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77141          Reported by Bruce Korb <bkorb@gnu.org>.
77142
77143 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77144
77145         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77146         to pacify gcc -Wswitch-default.
77147
77148 2006-01-22  Bruno Haible  <bruno@clisp.org>
77149
77150         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77151         temporary buffer for sprintf, take into account the precision also
77152         for 'd', 'i', 'u', 'o', 'x', 'X'.
77153
77154 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77155
77156         * modules/argp-tests: New module
77157         * tests/test-argp.c: New file
77158         * tests/test-argp-2.sh: New file
77159
77160 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77161
77162         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77163         (__argp_base_name): Removed
77164         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77165         typo.
77166         (__argp_base_name): Provide macro definition or extern declaration
77167         depending on the configuration
77168
77169 2006-01-20  Simon Josefsson  <jas@extundo.com>
77170
77171         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77172
77173 2006-01-20  Simon Josefsson  <jas@extundo.com>
77174
77175         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77176
77177 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77178
77179         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77180         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77181         Suggested by Bruno Haible.
77182
77183 2006-01-20  Karl Berry  <karl@gnu.org>
77184
77185         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77186         until changes propagate, I guess.
77187
77188 2006-01-19  Simon Josefsson  <jas@extundo.com>
77189
77190         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77191
77192 2006-01-19  Simon Josefsson  <jas@extundo.com>
77193
77194         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77195
77196 2006-01-19  Simon Josefsson  <jas@extundo.com>
77197
77198         * gnulib-tool: Set check_PROGRAMS.
77199
77200         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77201         modules/des-tests, modules/gc-arcfour-tests,
77202         modules/gc-arctwo-tests, modules/gc-des-tests,
77203         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77204         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77205         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77206         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77207         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77208         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77209         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77210         test_*_SOURCES.
77211
77212 2006-01-18  Simon Josefsson  <jas@extundo.com>
77213
77214         * modules/socklen (Depends-on): Depend on sys_socket.
77215
77216 2006-01-18  Simon Josefsson  <jas@extundo.com>
77217
77218         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77219         modules/des-tests, modules/gc-arcfour-tests,
77220         modules/gc-arctwo-tests, modules/gc-des-tests,
77221         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77222         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77223         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77224         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77225         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77226         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77227         $(EXEEXT) to automake TESTS variable, for mingw32.
77228
77229 2006-01-17  Simon Josefsson  <jas@extundo.com>
77230
77231         * modules/socklen (Include): Need sys/socket.h.
77232
77233 2006-01-17  Bruno Haible  <bruno@clisp.org>
77234
77235         * modules/ssize_t (Include): Add <sys/types.h>.
77236
77237 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77238
77239         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77240         it's not portable and it doesn't work with cross-compiles.
77241         Problem reported by Bruno Haible.  Fix missing-$ typo in
77242         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77243         -zignore from being used with Sun's C compiler.
77244
77245 2006-01-12  Simon Josefsson  <jas@extundo.com>
77246
77247         * lib/base64.c: Fix warning, reported by Bruno Haible
77248         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77249
77250 2006-01-12  Bruno Haible  <bruno@clisp.org>
77251
77252         * modules/ldd: New file.
77253         * build-aux/ldd.sh.in: New file.
77254         * MODULES.html.sh (Support for building libraries and executables): Add
77255         ldd.
77256
77257 2006-01-12  Bruno Haible  <bruno@clisp.org>
77258
77259         * m4/ldd.m4: New file.
77260
77261 2006-01-12  Bruno Haible  <bruno@clisp.org>
77262
77263         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77264         endless loop while replacing $auxdir with build-aux.
77265
77266 2006-01-11  Simon Josefsson  <jas@extundo.com>
77267
77268         * lib/stdint_.h (SIZE_MAX): Add missing (.
77269
77270 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77271
77272         Sync from coreutils.
77273         * lib/md5.c: Fix commentary typos.
77274         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77275         * lib/md5.h (__attribute__): Remove; unused.
77276         * lib/sha1.c: Fix commentary to match md5 better.
77277         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77278         so that we don't need to worry about alignment.  All uses changed.
77279         This merges the 2005-10-28 md5 change into sha1.
77280
77281 2006-01-11  Jim Meyering  <jim@meyering.net>
77282
77283         Sync from coreutils.
77284         * lib/md5.c (OP): Fix spacing.
77285
77286 2006-01-11  Bruno Haible  <bruno@clisp.org>
77287
77288         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77289         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77290         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77291
77292 2006-01-11  Bruno Haible  <bruno@clisp.org>
77293
77294         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77295         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77296         the "early" section as well.
77297
77298 2006-01-11  Bruno Haible  <bruno@clisp.org>
77299
77300         Avoid "ar: no archive members specified" error on MacOS X.
77301         * gnulib-tool (func_modules_add_dummy): New function.
77302         (func_import, func_create_testdir): Invoke it.
77303
77304 2006-01-11  Bruno Haible  <bruno@clisp.org>
77305
77306         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77307         with $auxdir in AC_CONFIG_FILES statements.
77308
77309 2006-01-11  Bruno Haible  <bruno@clisp.org>
77310
77311         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77312         Initialize also noinst_HEADERS to empty.
77313
77314 2006-01-11  Bruno Haible  <bruno@clisp.org>
77315
77316         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77317         variables.
77318         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77319         autoreconf.
77320
77321 2006-01-11  Bruno Haible  <bruno@clisp.org>
77322
77323         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77324         overridable by the user.
77325         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77326
77327 2006-01-10  Simon Josefsson  <jas@extundo.com>
77328
77329         * modules/sys_socket: New file.
77330
77331 2006-01-10  Simon Josefsson  <jas@extundo.com>
77332
77333         * m4/sys_socket_h.m4: New file.
77334
77335 2006-01-10  Simon Josefsson  <jas@extundo.com>
77336
77337         * lib/socket_.h: New file.
77338
77339 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77340
77341         * modules/readutmp (Maintainer): Add myself.
77342
77343 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77346         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77347         People who are still concerned with buggy memcmp implementations
77348         can invoke gl_FUNC_MEMCMP themselves.
77349
77350 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77351
77352         * lib/regex_internal.h (BITSET_WORD_BITS):
77353         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77354         preprocessor mishandles large unsigned values as if they were signed.
77355         Problem reported by Claudio Fontana in
77356         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77357
77358 2006-01-10  Jim Meyering  <jim@meyering.net>
77359
77360         Avoid the double-free (first in fts_read, second in fts_close) that
77361         would occur when an `active' directory is made inaccessible (e.g.,
77362         via chmod a-x) during a traversal.
77363         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77364         before returning.  Reproduce this failure by
77365         mkdir -p a/b; cd a; chmod a-x . b
77366         Reported by Stavros Passas.
77367
77368         Sync from coreutils.
77369         * lib/sha1.c: Tweak grammar in a comment.
77370
77371 2006-01-10  Jim Meyering  <jim@meyering.net>
77372
77373         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77374         Patch by Joerg Sonnenberger.
77375
77376 2006-01-10  Bruno Haible  <bruno@clisp.org>
77377
77378         * modules/readutmp: Depend on module free.
77379         * modules/strtok_r: Depend on module restrict.
77380
77381 2006-01-10  Bruno Haible  <bruno@clisp.org>
77382
77383         * modules/gettext (configure.ac): Add an invocation of
77384         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77385
77386 2006-01-10  Bruno Haible  <bruno@clisp.org>
77387
77388         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77389         Reported by Werner Lemberg <wl@gnu.org>.
77390
77391 2006-01-10  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/localcharset.c: Update from GNU gettext.
77394
77395 2006-01-10  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/argp.h (__const): Remove macro. Use const instead.
77398         * lib/argp-fmtstream.h (__const): Likewise.
77399         * lib/glob_.h (__const): Remove macro.
77400         * lib/glob-libc.h: Use const instead of __const.
77401
77402 2006-01-10  Bruno Haible  <bruno@clisp.org>
77403
77404         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77405         variable.
77406         Needed to avoid an automake error regarding the 'gettext' module.
77407
77408 2006-01-09  Simon Josefsson  <jas@extundo.com>
77409
77410         * modules/inet_ntop (Depends-on): Add restrict.
77411
77412 2006-01-09  Simon Josefsson  <jas@extundo.com>
77413
77414         * modules/gc-rijndael-tests (License): Put under LGPL.
77415
77416         * modules/gc-des-tests (License): Likewise.
77417
77418         * modules/gc-arcfour-tests (License): Likewise.
77419
77420         * modules/gc-arctwo-tests (License): Likewise.
77421
77422         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77423
77424         * modules/gc-hmac-sha1-tests (Files): Likewise.
77425
77426         * modules/gc-hmac-md5-tests (License): Likewise.
77427
77428         * modules/gc-sha1-tests (License): Likewise.
77429
77430         * modules/gc-md5-tests (License): Likewise.
77431
77432         * modules/gc-md4-tests (License): Likewise.
77433
77434         * modules/gc-md2-tests (License): Likewise.
77435
77436         * modules/gc-tests (License): Likewise.
77437
77438         * modules/des-tests (License): Likewise.
77439
77440         * modules/md4-tests (License): Likewise.
77441
77442         * modules/md2-tests (License): Likewise.
77443
77444 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77445
77446         Sync from coreutils:
77447
77448         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
77449         * modules/lib-ignore: New file.
77450         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
77451         chdir-safer.m4, lchmod.m4.
77452         * modules/openat: Add mkdirat.c, openat-priv.h.
77453
77454 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77455
77456         Sync from coreutils.
77457         * m4/lib-ignore.m4: New file.
77458         * m4/lchmod.m4: New file.
77459
77460 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77461
77462         Sync from coreutils.
77463         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
77464         for write access: POSIX says that must fail.
77465         * lib/fts.c (diropen): Likewise.
77466         * lib/save-cwd.c (save_cwd): Likewise.
77467         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
77468         well, for minor improvements on hosts that lack O_DIRECTORY.
77469         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
77470         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
77471         Fall back on chown if open failed with EACCES.
77472
77473         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
77474         Report an error at compile-time if only a 1-second nominal clock
77475         resolution is found.
77476
77477         * lib/lchmod.h: New file.
77478         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
77479         (make_dir_parents): Use lchown rather than chown, and
77480         lchmod rather than chmod.
77481
77482         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
77483         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
77484         "proc" reported by n0dalus.
77485
77486         * lib/mountlist.c: Include <limits.h>.
77487         (dev_from_mount_options)
77488         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
77489         New function.  It no longer assumes "dev=" has the System V meaning
77490         on Linux (since it doesn't).  It also parses "dev=" more carefully.
77491         (read_file_system_list)
77492         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
77493         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
77494         dev= in that case.
77495
77496         * lib/posixtm.h (PDS_PRE_2000): New macro.
77497         * lib/posixtm.c (year): Arg is now syntax_bits rather than
77498         allow_century.  All usages changed.  Reject dates outside the range
77499         1969-1999 if PDS_PRE_2000 is used.
77500
77501 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
77502
77503         Sync from coreutils.
77504         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
77505         (Time of day items): Mention the possibility of leap seconds.
77506         Problem reported by Dr. David Alan Gilbert.
77507
77508 2006-01-09  Jim Meyering  <jim@meyering.net>
77509
77510         Sync from coreutils.
77511
77512         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
77513
77514         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
77515
77516         * lib/modechange.c (mode_compile): Reject an invalid mode string
77517         that starts with an octal digit.  From Andreas Gruenbacher.
77518
77519         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
77520         and dup to open_safer and dup_safer, respectively.
77521         (openat_permissive): Fix typo in comment.
77522
77523         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
77524         "gettext.h"; either no longer needed or are guaranteed by openat.h.
77525         (_): Remove; no longer needed.
77526         (openat): Renamed from rpl_openat; no need for rpl_openat
77527         since openat.h renames openat for us.
77528         Replace most of the body with a call to openat_permissive,
77529         to avoid duplicate code.
77530         Port to (probably hypothetical) environments were mode_t is
77531         wider than int.
77532         (openat_permissive): Require mode arg, so that we can check
77533         types better.  Put it just after flags.  Change cwd failure
77534         indicator from pointer-to-bool to pointer-to-errno-value.
77535         All callers changed.
77536         Invoke openat_save_fail and/or openat_restore_fail if
77537         cwd_errno is null, so that openat can call us.
77538         (openat_permissive, fdopendir, fstatat, unlinkat):
77539         Simplify errno handling to avoid some duplicate code,
77540         as it's OK to set errno on success.
77541         * lib/openat.h: Revamp code so that function macros depend on
77542         __OPENAT_PREFIX only, not also on AT_FDCWD.
77543         (openat_ro): Remove.  Caller changed to use openat_permissive.
77544         (openat_permissive): Now a macro, if not a function.
77545         (openat_restore_fail, openat_save_fail): Now always functions,
77546         since mkdirat needs them even if __OPENAT_PREFIX is defined.
77547
77548         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
77549         and openat.c.
77550         * lib/mkdirat.c: Include openat-priv.h.
77551         Remove definitions of macros defined therein.
77552         * lib/openat.c: Likewise.
77553
77554         * lib/mkdirat.c (mkdirat): New file and function.
77555         * lib/openat.h (mkdirat): Declare.
77556
77557         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
77558
77559         * lib/openat.h (openat_permissive): Declare.
77560         (openat_ro): Define.
77561
77562         * lib/openat.c (EXPECTED_ERRNO): New macro.
77563         (openat_permissive): New function -- used in remove.c rewrite.
77564         (all functions): Set errno just before returning, only if there
77565         was an actual failure.
77566         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
77567
77568         Emulate openat-family functions using Linux's procfs, if possible.
77569         Idea and some code based on Ulrich Drepper's glibc changes.
77570
77571         * lib/openat.c: (BUILD_PROC_NAME): New macro.
77572         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
77573         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
77574         before falling back on save_cwd and restore_cwd.
77575         (fdopendir, fstatat, unlinkat): Likewise.
77576
77577         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
77578         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
77579
77580         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
77581         as second argument to va_arg.  Otherwise, some versions of gcc
77582         warn that `if this code is reached, the program will abort'.
77583
77584 2006-01-09  Jim Meyering  <jim@meyering.net>
77585
77586         Sync from coreutils.
77587         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
77588         Require openat-priv.h.
77589
77590 2006-01-09  Bruno Haible  <bruno@clisp.org>
77591
77592         * modules/strnlen (Include): Use strnlen.h.
77593
77594 2006-01-09  Bruno Haible  <bruno@clisp.org>
77595
77596         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
77597
77598 2006-01-09  Bruno Haible  <bruno@clisp.org>
77599
77600         * lib/sysexit_.h (EX_OK): New macro.
77601         Suggested by Martin Lambers <marlam@marlam.de>.
77602
77603 2006-01-09  Bruno Haible  <bruno@clisp.org>
77604
77605         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
77606         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
77607
77608 2006-01-09  Bruno Haible  <bruno@clisp.org>
77609
77610         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
77611         numbers.
77612
77613 2006-01-09  Bruno Haible  <bruno@clisp.org>
77614
77615         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
77616         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
77617         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
77618         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
77619
77620 2006-01-09  Bruno Haible  <bruno@clisp.org>
77621
77622         * build-aux/javacomp.sh.in: New file, moved from lib/.
77623         * modules/javacomp-script (Files): Update.
77624         (configure.ac): Add AC_CONFIG_FILES invocation.
77625         (EXTRA_DIST): Remove variable.
77626
77627         * build-aux/javaexec.sh.in: New file, moved from lib/.
77628         * modules/javaexec (Files): Update.
77629         (configure.ac): Add AC_CONFIG_FILES invocation.
77630         (EXTRA_DIST): Remove javaexec.sh.in.
77631
77632         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
77633         * modules/csharpcomp-script (Files): Update.
77634         (configure.ac): Add AC_CONFIG_FILES invocation.
77635         (EXTRA_DIST): Remove variable.
77636
77637         * build-aux/csharpexec.sh.in: New file, moved from lib/.
77638         * modules/csharpexec (Files): Update.
77639         (configure.ac): Add AC_CONFIG_FILES invocation.
77640         (EXTRA_DIST): Remove csharpexec.sh.in.
77641
77642 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77643
77644         Sync from coreutils.
77645
77646         Add POSIX ACL support
77647         * lib/acl.h (copy_acl, set_acl): Add declarations.
77648         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
77649         systems other than Linux.
77650         (chmod_or_fchmod): New function: use fchmod when possible,
77651         and chmod otherwise.
77652         (file_has_acl): Add a POSIX ACL implementation, with a
77653         Linux-specific subcase.
77654         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
77655         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
77656         acls are unsupported.
77657         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
77658         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
77659         are unsupported.
77660
77661 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
77662
77663         Sync from coreutils.
77664         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
77665
77666 2006-01-07  Bruno Haible  <bruno@clisp.org>
77667
77668         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
77669         gl_EARLY.
77670
77671 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77672
77673         * lib/strftime.c (tzname): Don't declare if it is already #defined.
77674         Problem reported for Mingw by Mark Junker.
77675
77676 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
77677
77678         * README: Gnulib normally doesn't generate a tarball.
77679
77680 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
77683         long int, not int, for nanosecond counts, so that people who are
77684         used to POSIX struct timespec won't be surprised.  Reported by Jim
77685         Meyering.
77686
77687 2005-12-28  Bruno Haible  <bruno@clisp.org>
77688
77689         * build-aux/config.rpath: Update from GNU gettext.
77690
77691 2005-12-16  Jim Meyering  <jim@meyering.net>
77692
77693         * modules/fprintftime: New module.
77694         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
77695
77696 2005-12-16  Jim Meyering  <jim@meyering.net>
77697
77698         * m4/fprintftime.m4: New file.
77699
77700 2005-12-16  Jim Meyering  <jim@meyering.net>
77701
77702         * lib/fprintftime.c, lib/fprintftime.h: New files.
77703
77704 2005-12-15  Simon Josefsson  <jas@extundo.com>
77705
77706         * modules/socklen (configure.ac): Fix M4 macro name, to align with
77707         new m4/socklen.m4.
77708
77709 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77710
77711         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
77712         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
77713
77714 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77715
77716         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
77717         * lib/argp-help.c (fill_in_uparams): Check if the constructed
77718         struct uparams is valid. Fall back to the default values if it is
77719         not.
77720
77721 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77722
77723         * modules/argp (Files): Add argp-pin.c
77724         (Depends-on): dirname
77725         (lib_SOURCES): Add argp-pin.c
77726
77727 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77728
77729         * m4/argp.m4:  Check if program_invocation_name and
77730         program_invocation_short_name are declared and define appropriate
77731         macros if they are not.
77732
77733 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77734
77735         * lib/argp-help.c (__argp_base_name): New function
77736         (__argp_short_program_name): Rewrite using __argp_base_name
77737         * lib/argp-namefrob.h: Define program_invocation_name and
77738         program_invocation_short_name if requested
77739         (__argp_base_name): Add prototype
77740         * lib/argp-parse.c (argp_def): Use gettext wrappers
77741         (argp_default_parser): Use __argp_base_name
77742         * lib/argp-pin.c: New file. Defines program_invocation_name and
77743         program_invocation_short_name on systems that lack them.
77744
77745 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77746
77747         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
77748         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77749         porting problem reported by Georg Schwarz in
77750         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77751
77752 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
77753
77754         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
77755         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
77756         porting problem reported by Georg Schwarz in
77757         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
77758
77759 2005-12-05  Bruno Haible  <bruno@clisp.org>
77760
77761         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
77762         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
77763         Reported by Mark Junker <mjscod@gmx.de>.
77764
77765 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
77768         Use implementation from Albert Chin, with some
77769         comments/corrections by Stepan Kasal and myself.
77770
77771 2005-12-02  Bruno Haible  <bruno@clisp.org>
77772
77773         * gnulib-tool (func_import): Accept GPLed build tool modules when
77774         --lgpl is given.
77775         * modules/csharpcomp-script: New file.
77776         * modules/csharpcomp: Depend on it.
77777         * modules/javacomp-script: New file.
77778         * modules/javacomp: Depend on it.
77779         Suggested by Simon Josefsson.
77780
77781 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
77782
77783         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
77784         statement, to work around an HP-UX 10.20 compiler bug reported by
77785         Peter O'Gorman.
77786
77787 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77788
77789         * modules/savedir (Depends-on): Add openat.
77790
77791 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
77794         (uintmax_t) [defined uintmax_t]: Do not declare.
77795         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
77796         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
77797         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
77798         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
77799         sake of portability to weird hosts that C allows (though we don't
77800         know of any practical examples).
77801
77802         * lib/savedir.h (fdsavedir): New decl.
77803         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
77804         contains most of the former guts of savedir.
77805         (savedir): Use savedirstream.
77806         Include "openat.h".
77807
77808 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
77809
77810         * modules/obstack (Files): Add m4/ulonglong.m4.
77811         Problem reported by Davide Angelocola.
77812
77813 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
77814
77815         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
77816         coreutils no longer futzes with rounding modes.
77817
77818 2005-11-14  Jim Meyering  <jim@meyering.net>
77819
77820         * lib/mkstemp-safer.c: Include <config.h>, required for possible
77821         replacement of mkstemp.
77822
77823 2005-11-10  Simon Josefsson  <jas@extundo.com>
77824
77825         * lib/readline.c: Remove EOL.
77826
77827 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77828
77829         * modules/gethrxtime (Depends-on): Add gettime.
77830
77831 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77832
77833         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
77834         or gettimeofday; no longer needed.
77835
77836 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
77839         time business.
77840         (gethrxtime) [! (HAVE_NANOUPTIME
77841         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
77842         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
77843         our own approximation.
77844
77845 2005-11-08  Eric Blake  <ebb9@byu.net>
77846
77847         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77848
77849 2005-11-08  Eric Blake  <ebb9@byu.net>
77850
77851         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
77852
77853 2005-11-04  Bruno Haible  <bruno@clisp.org>
77854
77855         * gnulib-tool: Implement --update mode.
77856
77857 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77858
77859         Fix porting problem reported by Theodoros V. Kalamatianos.
77860         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
77861         Don't assume that futimes failing means we must fail.
77862
77863 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77864
77865         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
77866         variables to suggest the intended function of the PATH_MAX check.
77867
77868 2005-10-30  Kean Johnston  <jkj@sco.com>
77869
77870         Trivial changes to support SCO systems.
77871         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
77872         as PATH_MAX.
77873         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
77874         where __ptr is null when no I/O is pending.
77875
77876 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
77877
77878         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
77879         leave errno alone.  Problem reported by Dmitry V. Levin.
77880
77881 2005-10-28  Simon Josefsson  <jas@extundo.com>
77882
77883         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
77884         Test more.
77885
77886         * tests/test-gc-md2.c, tests/test-md2.c: New files.
77887
77888         * modules/md2, modules/md2-tests: New files.
77889
77890 2005-10-28  Simon Josefsson  <jas@extundo.com>
77891
77892         * m4/inet_ntop.m4: More tests.
77893
77894         * m4/gc-md2.m4, md2.m4: New file.
77895
77896 2005-10-28  Simon Josefsson  <jas@extundo.com>
77897
77898         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
77899         "restrict" keywords, as per POSIX.  Protect the function
77900         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
77901         Don't use K&R prototypes.  Check the sprintf return values.
77902         Re-define EAFNOSUPPORT if not present.  Indent.
77903
77904         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
77905         suggested by Bruno Haible <bruno@clisp.org>.
77906
77907         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
77908
77909         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
77910
77911         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
77912         libgcrypt).
77913
77914         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
77915
77916         * lib/md2.h, lib/md2.c: New files.
77917
77918 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
77919
77920         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
77921         errno alone.  Problem reported by Frederic Jolliton.
77922
77923 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
77924
77925         * modules/verify (License): Change from GPL to LGPL.  This is a
77926         tiny module and there are apparently near-equivalents that are
77927         under the BSD license.
77928
77929 2005-10-24  Simon Josefsson  <jas@extundo.com>
77930
77931         * modules/sha1: Relicense to LGPL.
77932
77933 2005-10-24  Simon Josefsson  <jas@extundo.com>
77934
77935         * lib/md4.h: Shrink buffer size, now that we changed the type.
77936
77937 2005-10-23  Simon Josefsson  <jas@extundo.com>
77938
77939         * gnulib-tool (func_import): Fix --tests-base.
77940
77941 2005-10-22  Simon Josefsson  <jas@extundo.com>
77942
77943         * modules/arcfour (Depends-on): Need stdint.
77944
77945 2005-10-22  Simon Josefsson  <jas@extundo.com>
77946
77947         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
77948         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
77949
77950 2005-10-22  Simon Josefsson  <jas@extundo.com>
77951
77952         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
77953         suggested by Bruno Haible <bruno@clisp.org>.
77954
77955 2005-10-22  Simon Josefsson  <jas@extundo.com>
77956
77957         * lib/crc.h: Include stddef.h, for size_t.
77958
77959 2005-10-22  Simon Josefsson  <jas@extundo.com>
77960
77961         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
77962         arcfour_context struct (simplify test vector testing in GNU
77963         Shishi).
77964
77965 2005-10-21  Simon Josefsson  <jas@extundo.com>
77966
77967         * modules/des, modules/des-tests: New files.
77968
77969         * modules/gc-des, modules/gc-des-tests: New files.
77970
77971         * tests/test-des.c, tests/test-gc-des.c: New file.
77972
77973 2005-10-21  Simon Josefsson  <jas@extundo.com>
77974
77975         * modules/arctwo, modules/arctwo-tests: New files.
77976
77977         * tests/test-arctwo.c: New file.
77978
77979         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
77980
77981         * tests/test-gc-arctwo.c: New file.
77982
77983 2005-10-21  Simon Josefsson  <jas@extundo.com>
77984
77985         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
77986         Bruno Haible <bruno@clisp.org>.
77987
77988         * m4/gc-des.m4: New file.
77989
77990 2005-10-21  Simon Josefsson  <jas@extundo.com>
77991
77992         * m4/arctwo.m4: New file.
77993
77994         * m4/gc-arctwo.m4: New file.
77995
77996 2005-10-21  Simon Josefsson  <jas@extundo.com>
77997
77998         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
77999         block.
78000
78001 2005-10-21  Simon Josefsson  <jas@extundo.com>
78002
78003         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78004         <bruno@clisp.org>.
78005
78006         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78007
78008         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78009         Bruno Haible <bruno@clisp.org>.
78010
78011         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78012         <bruno@clisp.org>.
78013
78014 2005-10-21  Simon Josefsson  <jas@extundo.com>
78015
78016         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78017
78018 2005-10-21  Simon Josefsson  <jas@extundo.com>
78019
78020         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78021
78022 2005-10-21  Simon Josefsson  <jas@extundo.com>
78023
78024         * lib/des.h, lib/des.c: New files.
78025
78026         * lib/gc-gnulib.c: Support DES.c
78027
78028 2005-10-21  Simon Josefsson  <jas@extundo.com>
78029
78030         * lib/arctwo.h, lib/arctwo.c: New files.
78031
78032         * lib/gc-gnulib.c: Support ARCTWO.
78033
78034 2005-10-21  Simon Josefsson  <jas@extundo.com>
78035
78036         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78037         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78038
78039 2005-10-21  Simon Josefsson  <jas@extundo.com>
78040
78041         * gnulib-tool (func_import, func_create_testdir): Define automake
78042         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78043         Makefile.am snippet),
78044         suggested by Bruno Haible <bruno@clisp.org>.
78045
78046         * modules/gc (Makefile.am): Use it.
78047
78048 2005-10-21  Bruno Haible  <bruno@clisp.org>
78049
78050         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78051         patch.
78052
78053 2005-10-19  Simon Josefsson  <jas@extundo.com>
78054
78055         * tests/test-gc-rijndael.c: New file.
78056
78057         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78058
78059 2005-10-19  Simon Josefsson  <jas@extundo.com>
78060
78061         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78062         interface too.
78063
78064 2005-10-19  Simon Josefsson  <jas@extundo.com>
78065
78066         * tests/test-gc-arcfour.c: New file.
78067
78068         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78069
78070 2005-10-19  Simon Josefsson  <jas@extundo.com>
78071
78072         * modules/gc-md4, modules/gc-md4-tests: New file.
78073
78074         * tests/test-gc-md4.c: New file.
78075
78076 2005-10-19  Simon Josefsson  <jas@extundo.com>
78077
78078         * m4/gc-md4.m4: New file.
78079
78080 2005-10-19  Simon Josefsson  <jas@extundo.com>
78081
78082         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78083         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78084         <kasal@ucw.cz>.
78085
78086 2005-10-19  Simon Josefsson  <jas@extundo.com>
78087
78088         * m4/gc-arcfour.m4: New file.
78089
78090         * m4/gc-rijndael.m4: New file.
78091
78092 2005-10-19  Simon Josefsson  <jas@extundo.com>
78093
78094         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78095
78096 2005-10-19  Simon Josefsson  <jas@extundo.com>
78097
78098         * lib/gc-gnulib.c: Support ARCFOUR.
78099
78100 2005-10-19  Simon Josefsson  <jas@extundo.com>
78101
78102         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78103         support.
78104
78105         * lib/gc.h: Add ECB enum type.
78106
78107         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78108
78109 2005-10-18  Simon Josefsson  <jas@extundo.com>
78110
78111         * tests/test-md5.c: New file.
78112
78113         * modules/md5-tests: New file.
78114
78115 2005-10-18  Simon Josefsson  <jas@extundo.com>
78116
78117         * tests/test-md4.c: New file.
78118
78119         * modules/md4, modules/md4-tests: New files.
78120
78121 2005-10-18  Simon Josefsson  <jas@extundo.com>
78122
78123         * m4/md4.m4: New file.
78124
78125 2005-10-18  Simon Josefsson  <jas@extundo.com>
78126
78127         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78128
78129 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78130
78131         * gnulib-tool (func_create_testdir): Omit the second check whether
78132         BUILT_SOURCES in nonempty.
78133
78134 2005-10-17  Simon Josefsson  <jas@extundo.com>
78135
78136         * tests/test-rijndael.c: New file.
78137
78138 2005-10-17  Simon Josefsson  <jas@extundo.com>
78139
78140         * modules/sha1: Depend on stdint instead of md5.
78141
78142         * modules/md5: Depend on stdint, remove uint32_t.
78143
78144 2005-10-17  Simon Josefsson  <jas@extundo.com>
78145
78146         * modules/gc-sha1-tests: New file.
78147
78148         * tests/test-gc-sha1.c: New file.
78149
78150 2005-10-17  Simon Josefsson  <jas@extundo.com>
78151
78152         * m4/md5.m4: Remove call to uint32_t.m4.
78153
78154 2005-10-17  Simon Josefsson  <jas@extundo.com>
78155
78156         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78157
78158         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78159         md5.h.
78160
78161         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78162
78163         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78164
78165 2005-10-17  Simon Josefsson  <jas@extundo.com>
78166
78167         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78168
78169 2005-10-17  Simon Josefsson  <jas@extundo.com>
78170
78171         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78172
78173 2005-10-17  Simon Josefsson  <jas@extundo.com>
78174
78175         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78176
78177         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78178
78179 2005-10-17  Bruno Haible  <bruno@clisp.org>
78180
78181         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78182         that it can also be used in a test.
78183
78184 2005-10-16  Bruno Haible  <bruno@clisp.org>
78185
78186         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78187         TESTS_ENVIRONMENT, so that individual tests can augment it.
78188
78189         * gnulib-tool (func_create_testdir): Use an intermediate target for
78190         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78191         macros, like $(ALLOCA_H), which cannot be passed through the command
78192         line.
78193
78194 2005-10-15  Simon Josefsson  <jas@extundo.com>
78195
78196         * modules/rijndael-tests: New file.
78197
78198         * modules/rijndael: New file.
78199
78200 2005-10-15  Simon Josefsson  <jas@extundo.com>
78201
78202         * m4/rijndael.m4: New file.
78203
78204 2005-10-15  Simon Josefsson  <jas@extundo.com>
78205
78206         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78207
78208         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78209
78210 2005-10-14  Simon Josefsson  <jas@extundo.com>
78211
78212         * tests/test-arcfour.c: New file.
78213
78214         * modules/arcfour, modules/arcfour-tests: New files.
78215
78216 2005-10-14  Simon Josefsson  <jas@extundo.com>
78217
78218         * m4/arcfour.m4: New file.
78219
78220 2005-10-14  Simon Josefsson  <jas@extundo.com>
78221
78222         * lib/arcfour.h, lib/arcfour.c: New files.
78223
78224 2005-10-14  Roland McGrath  <roland@redhat.com>
78225
78226         Import from libc.  [BZ #1331]
78227         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78228         macro argument.
78229         Reported by Matej Vela <vela@debian.org>.
78230
78231 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78232
78233         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78234         include <wchar.h>; no longer needed.
78235
78236 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78237
78238         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78239
78240 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78241         and  Ulrich Drepper  <drepper@redhat.com>
78242
78243         Import from libc.
78244         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78245         instead of inline stream orientation test and two separate
78246         function calls.  Pay no attention to USE_IN_LIBIO.
78247
78248 2005-10-13  Simon Josefsson  <jas@extundo.com>
78249
78250         * modules/gc-hmac-md5-tests: New file.
78251
78252         * tests/test-gc-hmac-sha1.c: New file.
78253
78254         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78255
78256         * modules/gc-hmac-md5-tests: New file.
78257
78258         * tests/test-gc-md5.c: New file.
78259
78260         * modules/gc-md5-tests: New file.
78261
78262 2005-10-13  Simon Josefsson  <jas@extundo.com>
78263
78264         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78265         Move memory allocation outside of loop.
78266
78267 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78268
78269         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78270         intermediate directory is in a read-only file system.  Problem
78271         reported by Eric Blake.
78272
78273 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78274
78275         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78276
78277 2005-10-12  Simon Josefsson  <jas@extundo.com>
78278
78279         * tests/test-hmac-sha1.c: New file.
78280
78281         * modules/hmac-sha1-tests: New file.
78282
78283         * modules/hmac-sha1: New file.
78284
78285 2005-10-12  Simon Josefsson  <jas@extundo.com>
78286
78287         * modules/gc-sha1: New file.
78288
78289 2005-10-12  Simon Josefsson  <jas@extundo.com>
78290
78291         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78292
78293         * tests/test-gc-pbkdf2-sha1.c: New file.
78294
78295 2005-10-12  Simon Josefsson  <jas@extundo.com>
78296
78297         * modules/gc-md5, modules/gc-hmac-md5: New files.
78298
78299         * modules/gc (Files): Remove md5, memxor and hmac files.
78300
78301 2005-10-12  Simon Josefsson  <jas@extundo.com>
78302
78303         * m4/gc-pbkdf2-sha1.m4: New file.
78304
78305         * m4/gc-hmac-sha1.m4: New file.
78306
78307         * m4/gc-sha1: New file.
78308
78309         * m4/hmac-sha1.m4: New file.
78310
78311 2005-10-12  Simon Josefsson  <jas@extundo.com>
78312
78313         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78314
78315         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78316
78317 2005-10-12  Simon Josefsson  <jas@extundo.com>
78318
78319         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78320         suggested by Bruno Haible <bruno@clisp.org>.
78321
78322 2005-10-12  Simon Josefsson  <jas@extundo.com>
78323
78324         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78325
78326 2005-10-12  Simon Josefsson  <jas@extundo.com>
78327
78328         * lib/gc-pbkdf2-sha1.c: New file.
78329
78330         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78331
78332 2005-10-12  Simon Josefsson  <jas@extundo.com>
78333
78334         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78335
78336         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78337
78338 2005-10-12  Simon Josefsson  <jas@extundo.com>
78339
78340         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78341         GC_USE_HMAC_MD5, respectively.
78342
78343         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78344         (gc_md5): Fix typo.
78345
78346         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78347
78348         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78349
78350         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78351
78352 2005-10-12  Bruno Haible  <bruno@clisp.org>
78353
78354         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78355         Reported by Stepan Kasal <kasal@ucw.cz>.
78356
78357 2005-10-11  Simon Josefsson  <jas@extundo.com>
78358
78359         * tests/test-crc.c: New file.
78360
78361         * modules/crc, modules/crc-tests: New files.
78362
78363 2005-10-11  Simon Josefsson  <jas@extundo.com>
78364
78365         * m4/crc.m4: New file.
78366
78367 2005-10-11  Simon Josefsson  <jas@extundo.com>
78368
78369         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78370
78371         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78372
78373         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78374
78375 2005-10-11  Simon Josefsson  <jas@extundo.com>
78376
78377         * lib/crc.h, lib/crc.c: New files.
78378
78379         * lib/gc.h (gc_hash_buffer): Add doc.
78380
78381 2005-10-11  Bruno Haible  <bruno@clisp.org>
78382
78383         * modules/c-strcasestr: New file.
78384         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78385
78386 2005-10-11  Bruno Haible  <bruno@clisp.org>
78387
78388         * modules/c-strcase: New file.
78389         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78390
78391 2005-10-11  Bruno Haible  <bruno@clisp.org>
78392
78393         * lib/strcasecmp.c: Include limits.h.
78394         (strcasecmp): Avoid integer overflow on exotic platforms.
78395         * lib/strncasecmp.c: Include limits.h.
78396         (strncasecmp): Avoid integer overflow on exotic platforms.
78397         Reported by Paul Eggert.
78398
78399 2005-10-11  Bruno Haible  <bruno@clisp.org>
78400
78401         * lib/c-strcasestr.h: New file, from GNU gettext.
78402         * lib/c-strcasestr.c: New file, from GNU gettext.
78403
78404 2005-10-11  Bruno Haible  <bruno@clisp.org>
78405
78406         * lib/c-strcase.h: New file, from GNU gettext.
78407         * lib/c-strcasecmp.c: New file, from GNU gettext.
78408         * lib/c-strncasecmp.c: New file, from GNU gettext.
78409
78410 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         * modules/mempcpy (License): GPL -> LGPL.
78413         * modules/strchrnul (License): Likewise.
78414         * modules/sysexits (License): Likewise.
78415
78416 2005-10-08  Simon Josefsson  <jas@extundo.com>
78417
78418         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78419
78420 2005-10-07  Simon Josefsson  <jas@extundo.com>
78421
78422         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78423
78424 2005-10-06  Simon Josefsson  <jas@extundo.com>
78425
78426         * tests/test-hmac-md5.c: New file.
78427
78428         * modules/hmac-md5-tests: New file.
78429
78430         * modules/hmac-md5: New file.
78431
78432 2005-10-06  Simon Josefsson  <jas@extundo.com>
78433
78434         * m4/hmac-md5.m4: New file.
78435
78436         * m4/memxor.m4: Require gl_C_RESTRICT.
78437
78438 2005-10-06  Simon Josefsson  <jas@extundo.com>
78439
78440         * lib/memxor.c (memxor): Avoid casts and warnings.
78441
78442 2005-10-06  Simon Josefsson  <jas@extundo.com>
78443
78444         * lib/hmac-md5.c: New file.
78445
78446         * lib/hmac.h: New file.
78447
78448 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
78449
78450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
78451         promotes to int, not unsigned int, to catch the AIX 5.3
78452         compiler bug.
78453
78454 2005-10-05  Simon Josefsson  <jas@extundo.com>
78455
78456         * modules/memxor: New file.
78457
78458         * modules/iconv (Files): Move config.rpath to havelib, it is used
78459         there.
78460
78461         * modules/havelib (Files): Add config.rpath.
78462
78463 2005-10-05  Simon Josefsson  <jas@extundo.com>
78464
78465         * m4/memxor.m4: New file.
78466
78467 2005-10-05  Simon Josefsson  <jas@extundo.com>
78468
78469         * lib/memxor.c (memxor): Fix compiler error.
78470
78471         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
78472         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
78473
78474         * lib/memxor.h, lib/memxor.c: New files.
78475
78476         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
78477         we assume all systems have it, suggested by Jim Meyering
78478         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
78479         any systems lack sys/socket.h; mingw32 is known to lack it, but we
78480         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
78481         same reasons.
78482
78483 2005-10-05  Simon Josefsson  <jas@extundo.com>
78484
78485         * config/srclist.txt: Add glibc bug 1423 for md5.h.
78486
78487 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
78488
78489         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
78490         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
78491         needed, since the source code now assumes these .h files.
78492
78493 2005-10-05  Derek Price  <derek@ximbiot.com>
78494
78495         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
78496
78497 2005-10-05  Bruno Haible  <bruno@clisp.org>
78498
78499         * modules/stdint (License): Change to LGPL.
78500
78501 2005-10-04  Simon Josefsson  <jas@extundo.com>
78502
78503         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
78504         D. Baushke" <mdb@gnu.org>.
78505
78506 2005-10-04  Bruno Haible  <bruno@clisp.org>
78507
78508         * lib/verify.h (verify_true): Provide alternative definition for C++.
78509
78510 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
78513         (SSIZE_MAX): New macro, if not already defined.
78514         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
78515         than 2 GiB.
78516
78517 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78518
78519         Sync from coreutils.
78520         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
78521         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
78522         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
78523         ULLONG_MAX doesn't work with 2.7.2.1.
78524
78525 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78526
78527         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
78528         From Ben Pfaff.
78529
78530         * modules/exclude (Depends-on): Depend on verify.
78531         * modules/strtoimax (Depends-on): Likewise.
78532         * modules/utimecmp (Depends-on): Likewise.
78533
78534 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
78535
78536         * lib/exclude.c: Include verify.h.
78537         (verify): Remove.  All callers changed to use verify.h's version.
78538         * lib/strtoimax.c: Likewise.
78539         * lib/utimecmp.c: Likewis.e
78540
78541         Sync from coreutils.
78542         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
78543         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
78544         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
78545         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
78546         bother returning ENOSYS if settimeofday or stime fails; just let
78547         them return whatever errno they want to return.
78548         * lib/utimens.c: Include unistd.h, for dup2.
78549         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
78550         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
78551
78552 2005-10-02  Jim Meyering  <jim@meyering.net>
78553
78554         Sync from coreutils.
78555         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
78556         from glibc-2.2.5 that fails for read-only files.
78557
78558 2005-10-02  Jim Meyering  <jim@meyering.net>
78559
78560         Sync from coreutils.
78561         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
78562         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
78563         `#if HAVE_CONFIG_H'.
78564         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
78565         Remove AT_FDCWD test.
78566         Do not consume the fd unless successful.
78567         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
78568         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
78569         block, so that we don't even try to compile it if settimeofday is
78570         available.  This works around a compilation failure on OSF1 V5.1,
78571         due to stime requiring a `long int*' while tv_sec is `int'.
78572
78573 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
78574
78575         Sync from coreutils.
78576         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
78577         against `yes', rather than just testing for nonempty.
78578
78579 2005-10-01  Simon Josefsson  <jas@extundo.com>
78580
78581         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
78582         and Darwin.
78583
78584         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
78585         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
78586         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
78587         freeaddrinfo and gai_strerror are declared by the POSIX headers.
78588         Check if struct addrinfo is declared.
78589
78590 2005-10-01  Simon Josefsson  <jas@extundo.com>
78591
78592         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
78593         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
78594         AI_* and EAI_* definitions.  Protect function declarations.
78595
78596 2005-10-01  Jim Meyering  <jim@meyering.net>
78597
78598         Sync from coreutils.
78599
78600         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
78601         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
78602         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
78603         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78604         in the inet and nsl libraries.  Required on Solaris 5.7.
78605
78606 2005-10-01  Jim Meyering  <jim@meyering.net>
78607
78608         Sync from coreutils.
78609         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
78610         in the inet and nsl libraries.  Required on Solaris 5.7.
78611
78612 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
78613
78614         * lib/getdelim.c (getdelim): Remove unused variables.
78615
78616 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
78619         so that the code works even with ancient cpp.  Portability problem
78620         with GCC 2.7.2.1 reported by Thomas M.Ott.
78621
78622 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
78623
78624         * modules/regex (Depends-on): Add strcase.
78625
78626         * modules/gethostname (Licence): Change from GPL to LGPL, since
78627         gethostname.c is a trivial implementation of a standard library
78628         function.
78629         * modules/poll (License): Change from GPL to LGPL, since it's
78630         derived from LGPL code.
78631
78632 2005-09-27  Jim Meyering  <jim@meyering.net>
78633
78634         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
78635         HAVE_CONFIG_H.
78636
78637         * lib/intprops.h (signed_type_or_expr__): Define.
78638         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
78639         for unsigned types.
78640
78641 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
78642
78643         * lib/verify.h (verify_expr): Remove, replacing with:
78644         (verify_true): New macro that returns true instead of void.
78645         (verify_type__): Remove.
78646         (verify): Use verify_true rather than verify_type__.
78647
78648 2005-09-26  Bruno Haible  <bruno@clisp.org>
78649
78650         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
78651         is necessary.
78652         (lib_SOURCES): Remove mbchar.c.
78653         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
78654         (Files): Add m4/mbrtowc.m4.
78655         * modules/mbiter: Likewise.
78656         * modules/mbuiter: Likewise.
78657
78658 2005-09-26  Bruno Haible  <bruno@clisp.org>
78659
78660         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
78661         compile mbchar.c if they are not both present.
78662         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
78663         * m4/mbiter.m4 (gl_MBITER): Likewise.
78664         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
78665         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
78666         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
78667
78668 2005-09-25  Jim Meyering  <jim@meyering.net>
78669
78670         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
78671         also uses socklen_t.
78672
78673 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
78674
78675         * lib/utimens.c (ENOSYS): Define if not already defined.
78676         (futimens): Support having a null PATH if the file descriptor
78677         is nonnegative.
78678
78679         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
78680         Remove.
78681         (__attribute): Define to empty unless GCC 3.1 or later.
78682         This works around a core dump on OpenBSD 3.4, which has GCC
78683         2.95.3, which dumps core when given __attribute__(()).  It also
78684         simplifies other tests, since we really don't want to bother with
78685         worrying about which ancient version of GCC supported what.
78686         Original problem reported by Yoann Vandoorselaere, with part of
78687         the fix suggested by Derek Price.
78688
78689 2005-09-24  Jim Meyering  <jim@meyering.net>
78690
78691         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
78692         so we can once again use a positive bitfield width of 1 -- now we
78693         don't have to explain why we were using a bitfield width of 2.
78694
78695 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78696
78697         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
78698         and similarly for the other external symbols.  Problem reported
78699         by James Gallager.
78700
78701         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
78702         bug reported by Jim Meyering.
78703
78704         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
78705         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
78706         not needed, since socklen is a prerequisite module.
78707
78708 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
78709
78710         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
78711         Problem reported by Eric Blake.
78712         (getaddrinfo): Initialize se so that it's not garbage.
78713         Redo internal storage allocation so that it doesn't make unportable
78714         assumptions about alignment.
78715         Fix a memory leak.
78716
78717         * lib/utimens.c (futimens): Use futimesat if available.
78718         Prefer it to futimes since it doesn't have the futimes bug.
78719
78720         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
78721         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
78722         Instead, declare a function that returns a pointer to an array,
78723         and use verify_type__ to declare the size of the array.
78724         Problem and germ of a solution reported by Bruno Haible.
78725         (verify_type__): Use 2, not 1, for bitfield size, to avoid
78726         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
78727
78728 2005-09-23  Jim Meyering  <jim@meyering.net>
78729
78730         Sync from coreutils.
78731         Correct build failure (socklen_t not defined) on at least
78732         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
78733         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
78734
78735 2005-09-23  Jim Meyering  <jim@meyering.net>
78736
78737         * modules/getaddrinfo (Depends-on): Add socklen.
78738
78739 2005-09-23  Bruno Haible  <bruno@clisp.org>
78740
78741         * tests/test-verify.c: New file.
78742
78743 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78744
78745         Sync from coreutils.
78746
78747         * modules/argmatch (Depends-on): Add verify.
78748         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
78749         unistd-safer.
78750         * modules/save-cwd (Depends-on): Likewise.
78751
78752         * modules/openat (Files): Add lib/openat-die.c.
78753         (Depends-on): Remove error, exitfail.
78754         Add dirname.
78755
78756         * modules/verify: New file.
78757         * MODULES.html.sh (Diagnostics <assert.h>): New section,
78758         with "verify" module.
78759
78760 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78761
78762         Sync from coreutils.
78763
78764         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
78765         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
78766         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
78767         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
78768         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
78769         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
78770         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
78771         Don't bother checking for string.h, stdlib.h, unistd.h.
78772         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
78773         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
78774         module's job.
78775         * m4/jm-macros.m4 (gl_MACROS): Likewise.
78776         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
78777
78778         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
78779         (gl_GETDATE): Use it.
78780
78781         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
78782
78783 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78784
78785         Sync from coreutils.
78786
78787         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
78788         stat-time.h.
78789         * lib/argmatch.h: Include verify.h
78790         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
78791         (ARGMATCH_ASSERT): Remove; unused.
78792         * lib/canonicalize.c: Assume STDC_HEADERS.
78793         * lib/exclude.c: Include "strcase.h".
78794         * lib/regex_internal.h [!defined _LIBC]: Likewise.
78795         * lib/getusershell.c: Include stdio--.h rather than stdio.h
78796         and stdio-safer.h.
78797         (getusershell): Call fopen, not fopen_safer.
78798         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
78799         Do not include unistd-safer.h.
78800         (save_cwd): Don't call fd_safer; no longer needed
78801         now that we include fcntl--.h.
78802
78803         * lib/getdate.y (relative_time): New type.
78804         (RELATIVE_TIME_0): New constant.
78805         (parser_control): Use relative_time instead of doing it ourselves.
78806         (%union): Add new relative_time rel member.
78807         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
78808         Now typeless.
78809         (relunit, relunit_snumber): Now of type rel.
78810         (zone, rel, relunit, get_date): Adjust to above changes.
78811
78812         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
78813         Do not include unistd-safer.h.
78814         (getloadavg): Don't call fd_safer; no longer needed
78815         now that we include fcntl--.h.
78816
78817         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
78818         (make_dir_parents): Treat ENOSYS like EEXIST.
78819
78820         Improve quality of diagnostics on restore_cwd failure.
78821         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
78822         (make_dir_parents): Last arg is now int * (for errno), not bool *.
78823         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
78824         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
78825         each time through the loop.  Do not diagnose restore_cwd failure;
78826         that is the caller's job (and perhaps the caller does not care).
78827
78828         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
78829         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
78830         If the file already exists but is not a directory, don't bother
78831         to try to make its parents.
78832         Close potential file descriptor leak if we can't chdir("/") (!).
78833         Don't always return true if chdir($PWD) fails; return true only
78834         if the requested action was done successfully (except for the
78835         chdir($PWD)).
78836         Don't log final directory unless we actually made it.
78837         Refactor to avoid duplicate code to fix up permissions.
78838         Don't attempt to fix up parent permissions if chdir($PWD) fails.
78839
78840         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
78841         to make it a bit faster and (I hope) clearer.
78842         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
78843         Fix bug in formats like %2N.
78844
78845         * lib/verify.h: New file.
78846
78847 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
78848
78849         Sync from coreutils.
78850         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
78851
78852 2005-09-22  Jim Meyering  <jim@meyering.net>
78853
78854         Sync from coreutils.
78855
78856         * m4/lstat.m4 (gl_FUNC_LSTAT):
78857         Use AC_LIBSOURCES to require lstat.c and lstat.h.
78858         Remove obsolete comment.
78859         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
78860         * m4/xstrtod.m4: Likewise.
78861
78862         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
78863
78864 2005-09-22  Jim Meyering  <jim@meyering.net>
78865
78866         Sync from coreutils.
78867
78868         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
78869
78870         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
78871         the .tm_year member, since otherwise gcc-4.0 would now warn about
78872         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
78873
78874         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
78875         order to avoid an unsuppressible warning from gcc on 64-bit systems.
78876
78877         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
78878         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
78879         when run in a time zone for which daylight savings time is in effect
78880         for the starting date.
78881
78882         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
78883         stop us from restricting permissions of just-created absolute-named
78884         directories.
78885         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
78886         to restore initial working directory.
78887         * lib/mkdir-p.c (make_dir_parents): New parameter:
78888         different_working_dir, to tell caller if/when we change the working
78889         directory and are unable to return to the initial one.
78890         * lib/mkdir-p.h (make_dir_parents): Update prototype.
78891         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
78892         `return false'.  This fixes a bug introduced on 2004-07-30.
78893
78894         * lib/openat.c (fdopendir): Be sure to close the supplied
78895         file descriptor before returning.  This makes our replacement
78896         implementation a little closer to Solaris's, where fdopendir
78897         ties the file descriptor to the returned DIR* pointer.
78898         * lib/openat.c (unlinkat): New function.
78899         * lib/openat.h (unlinkat): Add prototype.
78900         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
78901         (openat_restore_fail): Rename from openat_restore_die.
78902         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
78903
78904         Provide an alternative to exiting immediately upon save_cwd or
78905         restore_cwd failure.  Now, an application can arrange e.g.,
78906         to perform a longjump in that case.
78907         * lib/openat.c: Include dirname.h.
78908         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
78909         (rpl_openat, fdopendir, fstatat): Call openat_save_die
78910         and openat_restore_die rather than calling error directly.
78911         Don't include "error.h" or "exitfail.h"; they're no longer needed.
78912
78913         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
78914         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
78915         define.
78916
78917         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
78918         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
78919                             int utc, int nanoseconds);
78920         Background:
78921         date should not have to allocate a megabyte of virtual memory to
78922         handle a format argument like +%1048575T.  When implemented with
78923         strftime, it must allocate such a buffer, use strftime to fill it
78924         in, print it, then free it.
78925         With fprintftime, it simply prints everything and exits.
78926         With no need for memory allocation, that's one fewer way to fail.
78927         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
78928         optional field width, not before, so we accept %9:z, not %:9z.
78929         (my_strftime): Be sure to use L_('x') for literals.
78930
78931         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
78932         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
78933         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
78934         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
78935         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
78936         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
78937         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
78938         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
78939         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
78940         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
78941         * lib/xgethostname.c, lib/xreadlink.c:
78942         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
78943
78944         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
78945         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
78946         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
78947         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78948         and don't include <sys/file.h>).
78949
78950 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
78951
78952         Sync from coreutils.
78953
78954         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
78955         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
78956         [!LDAV_DONE]: Avoid unused variable warning.
78957
78958 2005-09-21  Bruno Haible  <bruno@clisp.org>
78959
78960         * lib/unicodeio.h (unicode_to_mb): New declaration.
78961
78962 2005-09-20  Derek Price  <derek@ximbiot.com>
78963
78964         * lib/getaddrinfo.c: Don't include <netdb.h> included from
78965         getaddrinfo.h.
78966
78967 2005-09-20  Bruno Haible  <bruno@clisp.org>
78968
78969         * gnulib-tool: Remove trailing slashes from the values specified for
78970         --source-base, --m4-base, --tests-base, --aux-dir.
78971         Suggested by Simon Josefsson <jas@extundo.com>.
78972
78973 2005-09-20  Bruno Haible  <bruno@clisp.org>
78974
78975         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
78976         func_modules_to_filelist, func_import, func_create_testdir): Make all
78977         sorting results locale-independent, so that gnulib-cache.m4 doesn't
78978         change when gnulib-tool is invoked in a different locale.
78979
78980 2005-09-19  Simon Josefsson  <jas@extundo.com>
78981
78982         * m4/socklen.m4: Fix typo.
78983
78984 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78985
78986         Use a consistent style for including <config.h>.
78987         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
78988         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
78989         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
78990         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
78991         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
78992         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
78993         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
78994         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
78995         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
78996         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
78997         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
78998         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
78999         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79000         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79001         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79002         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79003         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79004         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79005         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79006         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79007         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79008         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79009         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79010         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79011         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79012         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79013         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79014         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79015         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79016         lib/xstrtoumax.c, lib/yesno.c:
79017         Standardize inclusion of config.h.
79018         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79019         lib/inttostr.h:  Removed inclusion of config.h from header files.
79020         * lib/inttostr.c:  Adjusted in-tree users.
79021         * lib/timespec.h: Remove superfluous warning to include config.h.
79022         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79023         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79024         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79025         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79026         config.h with HAVE_CONFIG_H.
79027
79028 2005-09-19  Jim Meyering  <jim@meyering.net>
79029
79030         * modules/pathmax (License): Change to LGPL.
79031
79032 2005-09-19  Derek Price  <derek@ximbiot.com>
79033
79034         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79035
79036 2005-09-19  Bruno Haible  <bruno@clisp.org>
79037
79038         * gnulib-tool (import): Provide default for --tests-base.
79039
79040 2005-09-19  Bruno Haible  <bruno@clisp.org>
79041
79042         * doc/quote.texi: New file, extracted from gnulib.texi.
79043         * doc/ctime.texi: New file, extracted from gnulib.texi.
79044         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79045         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79046         * doc/gnulib.texi: Include them.
79047
79048 2005-09-18  Bruno Haible  <bruno@clisp.org>
79049
79050         Portability fix.
79051         * gnulib-tool (func_readlink): New function.
79052         (func_ln_if_changed): Use it.
79053
79054 2005-09-18  Bruno Haible  <bruno@clisp.org>
79055
79056         * gnulib-tool: Support --with-tests also with --import.
79057         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79058         (func_import): Use variables $testsbase and $inctests. Emit a
79059         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79060         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79061         SUBDIRS += $testsdir.
79062         (func_create_testdir): Update.
79063
79064 2005-09-18  Bruno Haible  <bruno@clisp.org>
79065
79066         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79067         instead of $dry_run.
79068         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79069         (func_ln_if_changed): Don't handle dry-run here.
79070         (func_import): In dry-run mode, detect more precisely which actions
79071         would be performed, and don't use "...ing" verbs.
79072
79073 2005-09-18  Bruno Haible  <bruno@clisp.org>
79074
79075         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79076         (func_import): Use join on two temporary files instead of three nested
79077         loops, in order to determine which files are new or old.
79078
79079 2005-09-18  Bruno Haible  <bruno@clisp.org>
79080
79081         * gnulib-tool (func_import): Comment out code that spits out the
79082         new files with --dry-run.
79083
79084 2005-09-18  Bruno Haible  <bruno@clisp.org>
79085
79086         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79087
79088 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * lib/stat-time.h: New file.
79091         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79092         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79093         in a different way.
79094         (timespec_cmp): New function.
79095         * lib/utimecmp.c: Include stat-time.h.
79096         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79097         members exist, not on the obsolescent ST_MTIM_NSEC.
79098         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79099
79100 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79101
79102         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79103
79104 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * MODULES.html.sh (File system functions): Add stat-time.
79107         * modules/stat-time: New file.
79108         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79109         is now done in a different way, by the stat-time module.
79110         * modules/utimecmp (Depends-on): Add stat-time.
79111
79112 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79113
79114         * m4/st_mtim.m4: Remove.  Superseded by...
79115         * m4/stat-time.m4: New file.
79116         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79117         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79118
79119 2005-09-15  Derek Price  <derek@ximbiot.com>
79120
79121         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79122
79123 2005-09-15  Derek Price  <derek@ximbiot.com>
79124
79125         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79126         * lib/regex_internal.c: Ditto, using this...
79127         (__GNUC_PREREQ): ...new macro.
79128         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79129         using...
79130         (__GNUC_PREREQ): ...this new macro.
79131
79132         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79133
79134 2005-09-15  Derek Price  <derek@ximbiot.com>
79135             Paul Eggert  <eggert@cs.ucla.edu>
79136
79137         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79138         changes, consolidating in...
79139         * lib/regex_internal.h: ...this file.
79140
79141 2005-09-13  Jim Meyering  <jim@meyering.net>
79142
79143         * lib/canon-host.c: Filter through gnu indent and reword comments
79144         slightly.
79145         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79146
79147 2005-09-13  Derek Price  <derek@ximbiot.com>
79148
79149         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79150         failure.
79151         Reported by Jim Meyering  <jim@meyering.net>.
79152
79153 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79154
79155         * lib/base64.c: Typo.
79156         (base64_encode): Put b64str in initialized data section.
79157
79158 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79159
79160         Merge glibc and coreutils changes into gnulib, plus a few
79161         extra fixes.
79162         * lib/md5.c: Use #error rather than a string.
79163         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79164         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79165         (__attribute__): Define to empty for non recent-GCC.
79166         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79167         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79168         Renamed from their non-__ counterparts, with new macros replacing
79169         them if not _LIBC.  Add __THROW attribute.
79170         (rol): Remove.
79171         (struct md5_ctx): Align buffer if using GCC.
79172         * lib/sha1.h (struct sha1_ctx): Likewise.
79173         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79174         The old name was backwards.
79175         (NOTSWAP): Remove; not used.
79176         (rol): New macro, moved here from md5.h.
79177         (sha1_process_block): Remove a FIXME that doesn't make sense.
79178
79179 2005-09-12  Derek Price  <derek@ximbiot.com>
79180
79181         Return usable errors from canon-host.
79182         * lib/canon-host.h: New file.
79183         * lib/canon-host.c (canon_host): Wrap...
79184         (canon_host_r): ...this new function, which now relies exclusively on
79185         getaddrinfo.
79186         (ch_strerror): New function.
79187         (last_cherror): New global.
79188         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79189         interface.
79190         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79191         void *.
79192         (freeaddrinfo): Free ai->ai_canonname when set.
79193
79194 2005-09-12  Derek Price  <derek@ximbiot.com>
79195
79196         Make canon-host require getaddrinfo.
79197         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79198         AC_LIBSOURCE canon-host.h.  Call...
79199         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79200         gl_GETADDRINFO.
79201         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79202
79203 2005-09-12  Derek Price  <derek@ximbiot.com>
79204
79205         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79206         LGPL.
79207         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79208
79209 2005-09-12  Derek Price  <derek@ximbiot.com>
79210
79211         * lib/gai_strerror.c: Include config.h when available.  Include
79212         getaddrinfo.h before other headers to test interface.
79213         Reported by Larry Jones <lawrence.jones@ugs.com>.
79214
79215 2005-09-12  Derek Price  <derek@ximbiot.com>
79216             Paul Eggert  <eggert@cs.ucla.edu>
79217
79218         * modules/glob (Files): Add glob-libc.h.
79219
79220 2005-09-12  Derek Price  <derek@ximbiot.com>
79221             Paul Eggert  <eggert@cs.ucla.edu>
79222
79223         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79224         glob_.h, glob-libc.h.
79225         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79226
79227 2005-09-12  Derek Price  <derek@ximbiot.com>
79228             Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79231         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79232         protecting things that should be done only in gnulib contexts.
79233         * lib/glob_.h: New file, containing only the glob things needed for
79234         gnulib.
79235         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79236         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79237         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79238         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79239         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79240         and to respect the namespace rules better.
79241
79242 2005-09-08  Simon Josefsson  <jas@extundo.com>
79243
79244         * modules/socklen: New file.
79245
79246 2005-09-08  Simon Josefsson  <jas@extundo.com>
79247
79248         * m4/socklen.m4: New file.
79249
79250 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * modules/utimens (Files): Add m4/utimbuf.m4, since
79253         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79254         Reported by Sergey Poznyakoff.
79255
79256 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79257
79258         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79259         definitions, since that's the preferred style in glibc.
79260         Fix a minor spacing issue, and update copyright notice to match
79261         glibc's.
79262
79263 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79266
79267 2005-09-06  Simon Josefsson  <jas@extundo.com>
79268
79269         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79270         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79271
79272 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79273
79274         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79275         warning.
79276
79277 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * config/srclist.txt: Add glibc bug 1302.
79280
79281 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79282
79283         Change bitset word type from unsigned int to unsigned long int,
79284         as this has better performance on typical 64-bit hosts.
79285         Port bitset code to hosts with unusual word sizes.
79286         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79287         (build_collating_symbol):
79288         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79289         argument is a bitset.  This is merely a style issue, but it makes
79290         it clearer that an entire array is expected.
79291         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79292         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79293         Port to the case where bitset_word is not the same as unsigned int.
79294         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79295         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79296         Likewise.
79297         * lib/regexec.c (check_dst_limits_calc_pos_1,
79298         check_subexp_matching_top):
79299         (build_trtable, group_nodes_into_DFAstates):
79300         Likewise.
79301         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79302         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79303         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79304         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79305         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79306         * lib/regcomp.c (optimize_subexps, lower_subexp):
79307         Work even if bitset_word has holes in its bitwise representation.
79308         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79309         * lib/regexec.c (check_dst_limits_calc_pos_1,
79310         check_subexp_matching_top):
79311         Likewise.
79312         * lib/regex_internal.c (re_string_reconstruct):
79313         Don't assume UCHAR_MAX == 255.
79314         * lib/regex_internal.h (bitset_set_all): Likewise.
79315         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79316         All uses changed.
79317         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79318         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79319         All uses changed.
79320         (BITSET_WORD_MAX): New macro.
79321         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79322         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79323         (bitset_empty, bitset_copy):
79324         Prefer sizeof (bitset) to multiplying it out ourselves.
79325         (bitset_not_merge): Remove; unused.
79326         (bitset_contain): Return bool, not unsigned int with one bit on.
79327         All callers changed.
79328         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79329         alignment than re_node_set; do this by defining a new internal
79330         type struct dests_alloc and using it to allocate memory.
79331
79332 2005-09-05  Bruno Haible  <bruno@clisp.org>
79333
79334         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79335         links.
79336
79337 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79338
79339         * modules/size_max (Makefile.am): Add size_max.h
79340
79341 2005-09-04  Derek Price  <derek@ximbiot.com>
79342
79343         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79344
79345 2005-09-03  Simon Josefsson  <jas@extundo.com>
79346
79347         * gnulib-tool: Fix typo.
79348
79349 2005-09-03  Simon Josefsson  <jas@extundo.com>
79350
79351         * config/srclist.txt: Add glibc bug 1293.
79352
79353 2005-09-03  Derek Price  <derek@ximbiot.com>
79354
79355         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79356         From Larry Jones <lawrence.jones@ugs.com>.
79357
79358 2005-09-02  Simon Josefsson  <jas@extundo.com>
79359
79360         * modules/socklen: New file.
79361
79362 2005-09-02  Simon Josefsson  <jas@extundo.com>
79363
79364         * modules/havelib: New module.
79365
79366         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79367         Use havelib.
79368
79369 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79370
79371         Check for arithmetic overflow when calculating sizes, to prevent
79372         some buffer-overflow issues.  These patches are conservative, in the
79373         sense that when I couldn't determine whether an overflow was possible,
79374         I inserted a run-time check.
79375         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79376         macros.
79377         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79378         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79379         (re_xnrealloc, re_x2nrealloc): New inline functions.
79380         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79381         parse_bracket_exp):
79382         (build_equiv_class, build_charclass): Check for arithmetic overflow
79383         in size expression calculations.
79384         * lib/regex_internal.c (re_string_realloc_buffers):
79385         (build_wcs_upper_buffer, re_node_set_add_intersect):
79386         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79387         (re_dfa_add_node, register_state): Likewise.
79388         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79389         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79390         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79391         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79392
79393 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79394
79395         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79396         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79397
79398 2005-09-02  Bruno Haible  <bruno@clisp.org>
79399
79400         Support for lib vs. lib64 distinction on biarch platforms.
79401         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79402         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79403         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79404
79405 2005-09-02  Bruno Haible  <bruno@clisp.org>
79406
79407         * gnulib-tool (import): In the other first-use case, provide defaults
79408         as well.
79409
79410 2005-09-02  Bruno Haible  <bruno@clisp.org>
79411
79412         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79413         patches not yet found in the latest gettext release.
79414
79415 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79416
79417         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79418         to avoid a collision with bits/local_lim.h in glibc.
79419         All uses changed.  Problem reported by Dmitry V. Levin in
79420         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79421
79422         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79423         bugs in int versus size_t comparisons.
79424         (re_string_context_at): Fix bug where the code assumed that
79425         Idx is signed.
79426
79427         Use bool where appropriate.
79428         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79429         All callers changed.
79430         (calc_eclosure_iter): Likewise, for ROOT arg.
79431         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79432         (build_charclass_op): Likewise, for NON_MATCH arg.
79433         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79434         (re_string_construct_common): Likewise, for ICASE arg.
79435         * lib/regexec.c (re_search_2_stub, re_search_stub):
79436         Likewise, for RET_LEN arg.
79437         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
79438         (set_regs): Likewise, for FL_BACKTRACK arg.
79439         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
79440         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
79441         (calc_eclosure_iter, parse_bracket_exp):
79442         Use bool for internal variables that are booleans.
79443         * lib/regexec.c (re_search_internal, check_matching,
79444         proceed_next_node):
79445         (set_regs, build_sifted_states, sift_states_bkref):
79446         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
79447         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
79448         (find_collation_sequence_value):
79449         Likewise.
79450         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
79451         (re_node_set_compare):
79452         Return bool, not int. All callers changed.
79453         * lib/regexec.c (check_halt_node_context, check_dst_limits):
79454         (build_trtable, check_node_accept): Likewise.
79455         * lib/regex_internal.h: Include stdbool.h.
79456
79457         Fix bugs uncovered when converting to bool.
79458         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
79459         failure instead of charging ahead blindly.
79460         * lib/regex_internal.c (register_state): Likewise.
79461         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
79462         for freeing internal storage.
79463         (group_nodes_into_DFA_states): Use unsigned int, not int, for
79464         bitset pieces used as boolean, to avoid undefined behavior
79465         on hosts that do int overflow checking.
79466
79467 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79468
79469         * config/srclist.txt: Add glibc bugs 1285-1287.
79470
79471 2005-09-01  Jim Meyering  <jim@meyering.net>
79472
79473         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
79474         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
79475         Require gl_STAT_MACROS, too.
79476
79477 2005-09-01  Bruno Haible  <bruno@clisp.org>
79478
79479         * gnulib-tool (import): In the first-use case, provide defaults.
79480
79481 2005-09-01  Bruno Haible  <bruno@clisp.org>
79482
79483         * gnulib-tool (func_import): Remove the .tmp files.
79484
79485 2005-09-01  Bruno Haible  <bruno@clisp.org>
79486
79487         * gnulib-tool (func_import): Fix handling of symbolic links.
79488
79489 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79490
79491         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
79492         old glibc regex code mishandles strings longer than 2**31 bytes.
79493         This patch fixes this when the regex code is used in gnulib
79494         (i.e., outside glibc).
79495
79496         This patch should not affect the use of the regex code inside
79497         glibc.  No doubt this problem also needs to be handled for glibc
79498         as well, but the result will be an incompatible change to the
79499         glibc ABI, and the old ABI will have to be supported too.  That
79500         can be the the subject for another patch.
79501
79502         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
79503         governing whether the rest of this patch is active.  By default,
79504         the macro is disabled and the patch has no effect.
79505         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
79506         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
79507         (struct re_pattern_buffer, re_search, re_search_2, re_match):
79508         (re_match_2, re_set_registers): Use the new types.
79509         * lib/regex_internal.h (Idx, re_hashval_t): New types.
79510         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
79511         New macros.
79512         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
79513         (re_string_context_at, bin_tree_t, re_dfastate_t):
79514         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
79515         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
79516         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
79517         (re_string_char_size_at, re_string_wchar_at):
79518         (re_string_elem_size_at):
79519         Use the new types and macros to port to 64-bit hosts.
79520         Use unsigned types for internal values, so that the code
79521         mostly works even for arrays larger than SSIZE_MAX.
79522         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
79523         (search_duplicated_node, calc_eclosure_iter, fetch_number):
79524         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
79525         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
79526         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
79527         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
79528         (calc_inveclosure, parse_dup_op, build_range_exp):
79529         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
79530         (fetch_number, create_token_tree, mark_opt_subexp):
79531         Likewise.
79532         * lib/regex_internal.c (re_string_construct_common,
79533         create_ci_newstate):
79534         (create_cd_newstate, re_string_allocate, re_string_construct):
79535         (re_string_realloc_buffers, build_wcs_upper_buffer):
79536         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
79537         (re_string_reconstruct, re_string_peek_byte_case):
79538         (re_string_fetch_byte_case, re_string_context_at):
79539         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
79540         (re_node_set_init_copy, re_node_set_add_intersect):
79541         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79542         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79543         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
79544         (re_acquire_state, re_acquire_state_context, register_state):
79545         Likewise.
79546         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
79547         search_cur_bkref_entry):
79548         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
79549         (re_search_internal, re_search_2_stub, re_search_stub)
79550         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
79551         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
79552         (update_cur_sifted_state, check_dst_limits):
79553         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79554         (check_subexp_limits, sift_states_bkref, merge_state_array):
79555         (check_subexp_matching_top, get_subexp, get_subexp_sub):
79556         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
79557         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
79558         (expand_bkref_cache, check_node_accept_bytes):
79559         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
79560         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
79561         (acquire_init_state_context, check_halt_node_context):
79562         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
79563         (sift_states_backward, clean_state_log_if_needed):
79564         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
79565         (find_recover_state, transit_state_sb, transit_state_mb):
79566         (transit_state_bkref, build_trtable, match_ctx_clean):
79567         Likewise.
79568         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
79569         to work around an assumption that REG_MISSING is negative.
79570
79571         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
79572         (seek_collating_symbol_entry) [defined _LIBC]:
79573         (lookup_collation_sequence_value) [defined _LIBC]:
79574         (build_range_exp, build_collating_symbol) [defined _LIBC]:
79575         Use prototypes rather than old-style function definitions.
79576         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
79577         (transit_state_sb) [0]:
79578         (find_collation_sequence_value) [defined _LIBC]: Likewise.
79579
79580         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
79581         rm_eo.
79582
79583         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
79584         (optimize_subexps, lower_subexp):
79585         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
79586         since the signed shift might overflow.  Use 1u<<31 instead.
79587         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79588         Likewise.
79589         * lib/regexec.c (check_dst_limits_calc_pos_1,
79590         check_subexp_matching_top): Likewise.
79591
79592         * lib/regcomp.c (optimize_subexps, lower_subexp):
79593         Use CHAR_BIT rather than 8, for clarity.
79594         * lib/regexec.c (check_dst_limits_calc_pos_1):
79595         (check_subexp_matching_top): Likewise.
79596         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
79597         have to worry about portability issues when shifting it left.
79598         Remove no-longer-needed test for table_size > 0.
79599         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
79600         in a word, as the resulting behavior is undefined.
79601         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
79602         in one case, a <= should have been an <, and in another case the
79603         whole test was missing.
79604         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
79605         the standard name CHAR_BIT.
79606         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
79607         this is not true on one's complement and signed-magnitude hosts.
79608
79609         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
79610         next_last_offset.
79611         (struct re_dfa_t): Remove unused member states_alloc.
79612         * lib/regcomp.c (init_dfa): Don't initialize unused members.
79613
79614 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79615
79616         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
79617         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
79618         and large-file glibc and in 32-bit large-file Solaris.
79619
79620 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
79623         lengths fit in regoff_t; this isn't true if regoff_t is the same
79624         width as size_t.
79625         * lib/regex.c (re_search_internal): 5th arg is LAST_START
79626         (= START + RANGE) instead of RANGE.  This avoids overflow
79627         problems when regoff_t is the same width as size_t.
79628         All callers changed.
79629         (re_search_2_stub): Check for overflow when adding the
79630         sizes of the two strings.
79631         (re_search_stub): Check for overflow when adding START
79632         to RANGE; if it occurs, substitute the extreme value.
79633
79634 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
79637
79638 2005-08-31  Jim Meyering  <jim@meyering.net>
79639
79640         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
79641         a pointer-to-const.
79642         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
79643         (register_state): Likewise.
79644         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
79645         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
79646         (group_nodes_into_DFAstates): Likewise.
79647
79648 2005-08-31  Jim Meyering  <jim@meyering.net>
79649
79650         * check-module: Add a FIXME comment.
79651
79652 2005-08-31  Eric Blake  <ebb9@byu.net>
79653
79654         * modules/unistd-safer (Files): Add unistd--.h.
79655         * modules/stdio-safer (Files): Add stdio--.h.
79656
79657 2005-08-31  Derek Price  <derek@ximbiot.com>
79658
79659         * lib/getdelim.c (getdelim): Return EOF on EOF.
79660         Reported by Larry Jones <lawrence.jones@ugs.com>.
79661
79662 2005-08-31  Bruno Haible  <bruno@clisp.org>
79663
79664         Avoid unnecessary diffs in the generated lib/Makefile.am.
79665         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
79666         the generated files.
79667         (func_import): Don't set cmd.
79668
79669 2005-08-31  Bruno Haible  <bruno@clisp.org>
79670
79671         * lib/strstr.c: Include <stddef.h>, for NULL.
79672         * lib/strcasestr.c: Likewise.
79673         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79674
79675 2005-08-31  Bruno Haible  <bruno@clisp.org>
79676
79677         * gnulib-tool: New option --macro-prefix.
79678         (func_import): Use macro_prefix.
79679         (import): Handle option --macro-prefix.
79680
79681 2005-08-31  Bruno Haible  <bruno@clisp.org>
79682
79683         * gnulib-tool (import): Rename most ac_* variables to cached_*.
79684         Also use new variables cached_lgpl, cached_libtool.
79685
79686 2005-08-31  Bruno Haible  <bruno@clisp.org>
79687
79688         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
79689         always instantiating them.
79690
79691 2005-08-31  Bruno Haible  <bruno@clisp.org>
79692
79693         * gnulib-tool (func_import): Read the previous cached settings
79694         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
79695         earlier added by gnulib but are now dropped. Warn when a gnulib file
79696         overwrites a non-gnulib file.
79697
79698 2005-08-31  Bruno Haible  <bruno@clisp.org>
79699
79700         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
79701         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
79702         projects that don't keep autogenerated files in CVS. Put into
79703         actioncmd only the specified modules, not the transitive closure.
79704
79705 2005-08-31  Bruno Haible  <bruno@clisp.org>
79706
79707         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
79708         Create directories that shall be filled.
79709         (import): Don't look for gl_* macros in configure.ac. Recurse across
79710         all directories containing a gnulib-cache.m4 files, if meaningful.
79711
79712 2005-08-31  Bruno Haible  <bruno@clisp.org>
79713
79714         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
79715         (import): Set seen_libtool when we see gl_LIBTOOL.
79716
79717 2005-08-31  Bruno Haible  <bruno@clisp.org>
79718
79719         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
79720         declaration macro definitions from generated gnulib.m4.
79721
79722 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
79723
79724         * lib/iconvme.h: Add prototype for iconv_alloc.
79725
79726 2005-08-29  Simon Josefsson  <jas@extundo.com>
79727
79728         * lib/iconvme.c: Fix errno.
79729
79730 2005-08-29  Bruno Haible  <bruno@clisp.org>
79731
79732         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
79733         that it works when the directory contains spaces.
79734
79735 2005-08-29  Bruno Haible  <bruno@clisp.org>
79736
79737         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
79738
79739 2005-08-29  Bruno Haible  <bruno@clisp.org>
79740
79741         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
79742         Emit more advice.
79743
79744 2005-08-29  Bruno Haible  <bruno@clisp.org>
79745         and Stepan Kasal  <kasal@ucw.cz>
79746
79747         * check-module: If more parameters are given, check each of them
79748         separately; add more exceptions, as noted by Jim Meyering.
79749         (check_module): New procedure.
79750         (%exempt_header): Now contains all exceptions.
79751
79752 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
79753
79754         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
79755
79756 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
79757
79758         * lib/iconvme.c: Split iconv_string into iconv_alloc.
79759
79760 2005-08-28  Bruno Haible  <bruno@clisp.org>
79761
79762         * m4/gnulib-tool.m4: New file.
79763
79764 2005-08-27  Jim Meyering  <jim@meyering.net>
79765
79766         * modules/unistd-safer (Files): Add pipe-safer.c.
79767         * modules/fcntl-safer (Files): Add creat-safer.c.
79768
79769 2005-08-27  Jim Meyering  <jim@meyering.net>
79770
79771         * m4/stdlib-safer.m4: New file.  From coreutils.
79772         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
79773         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
79774         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
79775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
79776         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
79777
79778 2005-08-27  Jim Meyering  <jim@meyering.net>
79779
79780         * lib/fopen-safer.c: Merge minor changes from coreutils.
79781         * lib/dup-safer.c: Likewise.
79782         * lib/fd-safer.c: Likewise.
79783
79784         Merge from coreutils.
79785         * lib/stdio--.h: New file.
79786         * lib/stdlib--.h: New file.
79787         * lib/mkstemp-safer.c: New file.
79788
79789         GNU tar needs these.
79790         * lib/pipe-safer.c: New file.
79791         * lib/creat-safer.c: New file.
79792         * lib/fcntl--.h (creat): Define to creat_safer.
79793         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
79794         * lib/unistd--.h (pipe): Define to pipe_safer.
79795         * lib/unistd-safer.h: Declare pipe_safer.
79796
79797 2005-08-26  Simon Josefsson  <jas@extundo.com>
79798
79799         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
79800         Haible <bruno@clisp.org>.
79801
79802 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
79803
79804         * lib/regex_internal.h: Remove all references to
79805         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
79806         or better.
79807         (bitset_not, bitset_merge, bitset_not_merge):
79808         (bitset_mask, re_string_allocate, re_string_construct):
79809         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
79810         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
79811         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
79812         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
79813         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
79814         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
79815         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
79816         (re_acquire_state_context):
79817         Remove unnecessary forward decls.
79818         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
79819         Put __attribute at function definition,
79820         now that the function decl has been removed.
79821         * lib/regex_internal.c (re_string_peek_byte_case):
79822         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
79823         Likewise.
79824
79825 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
79826
79827         * m4/regex.m4: Add AC_PREREQ(2.50).
79828         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
79829
79830 2005-08-25  Simon Josefsson  <jas@extundo.com>
79831
79832         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
79833         __fsetlocking.
79834
79835 2005-08-25  Simon Josefsson  <jas@extundo.com>
79836
79837         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
79838         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
79839         GLIBC specific code.
79840
79841 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79842
79843         Make regex safe for g++.  This fixes one real bug (an "err"
79844         that should have been "*err").  g++ problem reported by
79845         Sam Steingold.
79846         * lib/regex_internal.h (re_calloc): New macro, consistent with
79847         re_malloc etc.  All callers of calloc changed to use re_calloc.
79848         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
79849         not int.  All callers changed.
79850         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
79851         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
79852         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
79853         (find_recover_state): Change "err" to "*err"; this fixes what
79854         appears to be a real bug.
79855         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
79856         versus int.
79857
79858 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79859
79860         * modules/regex (Depends-on): Add malloc, since the code
79861         assumes that !malloc(0) means failure.
79862
79863 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79864
79865         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
79866
79867         alloca modernization/simplification for regex.
79868         * lib/regex.c: Remove portability cruft for alloca.  This no longer
79869         needs to be at the start of the file, and can be moved into
79870         regex_internal.h and simplified.
79871         * lib/regex_internal.h: Include <alloca.h>.
79872         (__libc_use_alloca) [!defined _LIBC]: New macro.
79873         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
79874         now works outside glibc.
79875
79876 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
79877
79878         * config/srclist.txt: Add glibc bugs 1241, 1245.
79879
79880 2005-08-25  Jim Meyering  <jim@meyering.net>
79881
79882         * lib/open-safer.c: Include <config.h>.
79883         Otherwise, we'd lose LARGEFILE support in any file using
79884         e.g. "fcntl--.h"
79885
79886 2005-08-25  Bruno Haible  <bruno@clisp.org>
79887
79888         * m4/minmax.m4: Require autoconf 2.52.
79889         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
79890         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
79891         alternatives of translit over the alphabet.
79892         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
79893
79894 2005-08-24  Simon Josefsson  <jas@extundo.com>
79895
79896         * tests/test-getpass.c: New file.
79897
79898 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79899
79900         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
79901         for GNU regex features.
79902
79903 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
79904
79905         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
79906         * lib/regex.h (regerror): Likewise.
79907
79908         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
79909         requires this.  (The code never needed it.)
79910
79911         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
79912         All uses of recently-renamed identifiers changed to use the new,
79913         POSIX-compliant names.  The code will build and run just fine
79914         without these changes, but it's better to eat our own dog food
79915         and use the standard-conforming names.
79916
79917         * lib/regex.h: Fix a multitude of POSIX name space violations.
79918         These changes have an effect only for programs that define
79919         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
79920         do not change anything for programs compiled in the normal way.
79921         Also, there is no effect on the ABI.
79922
79923         (_REGEX_SOURCE): New macro.
79924         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
79925         defined and _GNU_SOURCE is not; this fixes a name space violation.
79926
79927         Rename the following macros to obey POSIX requirements.
79928         The old names are still visible as macros if _REGEX_SOURCE is defined.
79929         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
79930         RE_BACKSLASH_ESCAPE_IN_LISTS.
79931         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
79932         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
79933         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
79934         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
79935         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
79936         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
79937         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
79938         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
79939         (REG_INTERVALS): renamed from RE_INTERVALS.
79940         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
79941         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
79942         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
79943         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
79944         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
79945         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
79946         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
79947         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
79948         RE_UNMATCHED_RIGHT_PAREN_ORD.
79949         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
79950         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
79951         (REG_DEBUG): renamed from RE_DEBUG.
79952         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
79953         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
79954         unusual, since we can't clash with the POSIX REG_ICASE.
79955         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
79956         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
79957         (REG_NO_SUB): renamed from RE_NO_SUB.
79958         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
79959         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
79960         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
79961         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
79962         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
79963         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
79964         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
79965         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
79966         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
79967         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
79968         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
79969         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
79970         RE_SYNTAX_POSIX_MINIMAL_BASIC.
79971         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
79972         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
79973         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
79974         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
79975         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
79976         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
79977         (REG_FIXED): Renamed from REGS_FIXED.
79978         (REG_NREGS): Renamed from RE_NREGS.
79979
79980         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
79981         of other REG_* macros, since POSIX says the user is allowed to
79982         #undef these macros selectively.
79983
79984         (reg_errcode_t): Update comment stating what other tables need
79985         to be consistent.
79986
79987         Rename the following enum values to obey POSIX requirements.
79988         The old names are still visible as macros.
79989         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
79990         is not defined, since GNU is supposed to be a superset of POSIX as
79991         much as possible, and since we want reg_errcode_t to be a signed
79992         type for implementation consistency.
79993         (_REG_NOERROR): Renamed from REG_NOERROR.
79994         (_REG_NOMATCH): Renamed from REG_NOMATCH.
79995         (_REG_BADPAT): Renamed from REG_BADPAT.
79996         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
79997         (_REG_ECTYPE): Renamed from REG_ECTYPE.
79998         (_REG_EESCAPE): Renamed from REG_EESCAPE.
79999         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80000         (_REG_EBRACK): Renamed from REG_EBRACK.
80001         (_REG_EPAREN): Renamed from REG_EPAREN.
80002         (_REG_EBRACE): Renamed from REG_EBRACE.
80003         (_REG_BADBR): Renamed from REG_BADBR.
80004         (_REG_ERANGE): Renamed from REG_ERANGE.
80005         (_REG_ESPACE): Renamed from REG_ESPACE.
80006         (_REG_BADRPT): Renamed from REG_BADRPT.
80007         (_REG_EEND): Renamed from REG_EEND.
80008         (_REG_ESIZE): Renamed from REG_ESIZE.
80009         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80010         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80011         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80012         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80013         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80014
80015         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80016         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80017         changed.  But support the old name if the new one is not defined
80018         and if _REGEX_SOURCE.
80019
80020         Change the following member names in struct re_pattern_buffer.
80021         The old names are still supported if !_REGEX_SOURCE.
80022         The new names are always supported, regardless of _REGEX_SOURCE.
80023         (re_buffer): Renamed from buffer.
80024         (re_allocated): Renamed from allocated.
80025         (re_used): Renamed from used.
80026         (re_syntax): Renamed from syntax.
80027         (re_fastmap): Renamed from fastmap.
80028         (re_translate): Renamed from translate.
80029         (re_can_be_null): Renamed from can_be_null.
80030         (re_regs_allocated): Renamed from regs_allocated.
80031         (re_fastmap_accurate): Renamed from fastmap_accurate.
80032         (re_no_sub): Renamed from no_sub.
80033         (re_not_bol): Renamed from not_bol.
80034         (re_not_eol): Renamed from not_eol.
80035         (re_newline_anchor): Renamed from newline_anchor.
80036
80037         Change the following member names in struct re_registers.
80038         The old names are still supported if !_REGEX_SOURCE.
80039         The new names are always supported, regardless of _REGEX_SOURCE.
80040         (rm_num_regs): Renamed from num_regs.
80041         (rm_start): Renamed from start.
80042         (rm_end): Renamed from end.
80043
80044         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80045         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80046         Prepend __ to parameter names.
80047
80048         Undo yesterday's changes.
80049
80050 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80053         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80054         lib/regex.c.
80055
80056 2005-08-24  Jim Meyering  <jim@meyering.net>
80057
80058         Sync from coreutils.
80059         * m4/fcntl-safer.m4: New file.
80060
80061         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80062         and object files for this module.
80063
80064 2005-08-24  Jim Meyering  <jim@meyering.net>
80065
80066         Sync from coreutils.
80067         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80068
80069 2005-08-24  Jim Meyering  <jim@meyering.net>
80070
80071         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80072         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80073
80074 2005-08-24  Jim Meyering  <jim@meyering.net>
80075
80076         * modules/fcntl-safer: New module.
80077         * modules/fts (Depends-on): Add fcntl-safer.
80078         * MODULES.html.sh (File descriptor based Input/Output):
80079         Add fcntl-safer.
80080
80081 2005-08-24  Bruno Haible  <bruno@clisp.org>
80082
80083         Support for unit test modules.
80084         * modules/README: Mention tests modules.
80085         * modules/TEMPLATE-TESTS: New file.
80086         * gnulib-tool: New options --extract-tests-module, --with-tests and
80087         --tests-base (unused for the moment).
80088         (testsbase, inctests): New variables.
80089         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80090         (func_verify_module): Exclude TEMPLATE-TESTS.
80091         (func_verify_nontests_module, func_verify_tests_module): New functions.
80092         (func_get_dependencies): Add implicit dependency for tests modules.
80093         (func_get_tests_module): New function.
80094         (func_modules_transitive_closure): When --with-tests was specified,
80095         include the unit tests as well, unless explicitly avoided.
80096         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80097         (func_emit_tests_Makefile_am): New function.
80098         (func_create_testdir): When --with-tests was specified, emit a
80099         tests/ directory.
80100         * MODULES.html.sh (Future developments): Update.
80101
80102 2005-08-24  Bruno Haible  <bruno@clisp.org>
80103
80104         * modules/tls-tests: New file.
80105         * tests/test-tls.c: New file, from GNU gettext.
80106
80107 2005-08-24  Bruno Haible  <bruno@clisp.org>
80108
80109         * modules/lock-tests: New file.
80110         * tests/test-lock.c: New file, from GNU gettext.
80111
80112 2005-08-24  Bruno Haible  <bruno@clisp.org>
80113
80114         * lib/lock.h: Add multiple inclusion guard.
80115         * lib/tls.h: Add multiple inclusion guard.
80116
80117 2005-08-24  Bruno Haible  <bruno@clisp.org>
80118
80119         * gnulib-tool: Add support for the --aux-dir option to
80120         --create-testdir, --create-megatestdir, --test, --megatest.
80121         (func_create_testdir, func_create_megatestdir): Optionally emit a
80122         AC_CONFIG_AUX_DIR directive.
80123         (create-testdir, create-megatestdir, test, megatest): Provide a
80124         default value for $auxdir.
80125
80126 2005-08-24  Bruno Haible  <bruno@clisp.org>
80127
80128         * gnulib-tool (import): Use compound statement instead of subshell
80129         where possible.
80130
80131 2005-08-24  Bruno Haible  <bruno@clisp.org>
80132
80133         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80134
80135 2005-08-24  Bruno Haible  <bruno@clisp.org>
80136
80137         * gnulib-tool (func_version): Update.
80138
80139 2005-08-24  Bruno Haible  <bruno@clisp.org>
80140
80141         * gnulib-tool (func_import, func_create_testdir,
80142         func_create_megatestdir): Quote all autoconf macro arguments.
80143
80144 2005-08-24  Bruno Haible  <bruno@clisp.org>
80145
80146         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80147         option --force, because --force causes the aclocal.m4 of each
80148         subdirectory to be newer than the corresponding config.h.in.
80149
80150 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80151
80152         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80153         All contents moved to gl_REGEX.
80154         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80155         assume that it does.
80156
80157 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * lib/regex.h (REG_NOSYS)
80160         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80161         Define, since POSIX requires it as of 2001.
80162         (_REG_ENOSYS)
80163         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80164         New private symbol, used to keep the enum signed in all cases.
80165         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80166         Youngman in
80167         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80168
80169         * lib/regex_internal.c (re_string_skip_chars, register_state):
80170         (calc_state_hash):
80171         Remove forward decls; no longer needed now that we use prototypes.
80172         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80173         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80174         (clean_state_log_if_needed): Likewise.
80175
80176 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80177
80178         * config/srclist.txt: Add glibc bugs 1231-1233.
80179
80180 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80181
80182         Fix problems reported by Sam Steingold in
80183         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80184         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80185         assumed that reg_errcode_t is a signed type, which is not
80186         necessarily true if _XOPEN_SOURCE is not defined.
80187         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80188         since some compilers warn about it otherwise.
80189
80190 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80191
80192         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80193         (init_word_char, create_initial_state, duplicate_node_closure):
80194         (fetch_token, peek_token_bracket, build_range_exp):
80195         (build_collating_symbol): Remove forward decls; no longer needed
80196         now that we use prototypes.
80197
80198         * lib/regcomp.c:
80199         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80200         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80201         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80202         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80203         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80204         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80205         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80206         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80207         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80208         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80209         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80210         (build_charclass, build_charclass_op, fetch_number, create_tree):
80211         (create_token_tree, mark_opt_subexp, duplicate_tree):
80212         Use prototypes rather than old-style definitions.
80213
80214         * lib/regex_internal.c:
80215         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80216         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80217         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80218         (re_string_reconstruct, re_string_peek_byte_case):
80219         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80220         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80221         (re_node_set_init_copy, re_node_set_add_intersect):
80222         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80223         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80224         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80225         (re_acquire_state, re_acquire_state_context, register_state):
80226         (create_ci_newstate, create_cd_newstate, free_state):
80227         Likewise.
80228         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80229         re_search_2):
80230         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80231         (re_search_internal, prune_impossible_nodes):
80232         (acquire_init_state_context, check_matching, static):
80233         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80234         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80235         (update_regs, sift_states_backward, build_sifted_states):
80236         (clean_state_log_if_needed, merge_state_array):
80237         (update_cur_sifted_state, add_epsilon_src_nodes):
80238         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80239         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80240         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80241         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80242         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80243         (check_arrival, check_arrival_add_next_nodes):
80244         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80245         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80246         (check_node_accept_bytes, check_node_accept, extend_buffers):
80247         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80248         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80249         (sift_ctx_init):
80250         Likewise.
80251
80252         * lib/regex_internal.h:
80253         (re_string_allocate, re_string_construct, re_string_reconstruct):
80254         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80255         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80256         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80257         (re_string_context_at, re_string_peek_byte_case):
80258         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80259         is defined, since we now use prototypes always.
80260
80261         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80262         C89 or better.  All uses removed.
80263
80264 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80265
80266         * config/srclist.txt: Add glibc bugs 1220-1227.
80267
80268 2005-08-20  Jim Meyering  <jim@meyering.net>
80269
80270         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80271         of unused local, dfa.
80272
80273 2005-08-20  Bruno Haible  <bruno@clisp.org>
80274
80275         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80276
80277 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80278
80279         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80280         (re_node_set_insert_last, re_dfa_add_node):
80281         Rename local variables to avoid GCC shadowing warnings.
80282
80283 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80284
80285         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80286         [defined lint]: Suppress bogus uninitialized-variable warnings.
80287
80288         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80289         and let the caller return REG_ESPACE if out of space.  This
80290         removes an uninitialied-variable warning with GCC 4.0.1, and also
80291         avoids taking the address of a local variable.  All callers
80292         changed.
80293
80294 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80295
80296         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80297         $LIBCSRC/posix/regexec.c.
80298         Add glibc bug 1217 for regcomp.c.
80299
80300 2005-08-19  Jim Meyering  <jim@meyering.net>
80301
80302         * lib/regexec.c (proceed_next_node): Redo local variables to
80303         avoid GCC shadowing warnings.
80304
80305 2005-08-18  Bruno Haible  <bruno@clisp.org>
80306
80307         * lib/strstr.c (strstr): Fix return value in multibyte case.
80308         * lib/strcasestr.c (strcasestr): Likewise.
80309
80310 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80313
80314 2005-08-17  Jim Meyering  <jim@meyering.net>
80315
80316         Make the %s format (seconds since the epoch) work for a negative
80317         number and when used with a zero-padded field width, e.g. %015s.
80318
80319         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80320         label so that it precedes the code to set `digits'.  Otherwise,
80321         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80322         print `00-22'.  Now, it prints `-0022', as it should.
80323
80324 2005-08-17  Bruno Haible  <bruno@clisp.org>
80325
80326         * modules/strstr (Files): Add m4/mbrtowc.m4.
80327         (Depends-on): Add mbuiter.
80328
80329 2005-08-17  Bruno Haible  <bruno@clisp.org>
80330
80331         * modules/strcasestr: New file.
80332         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80333         strcasestr.
80334
80335 2005-08-17  Bruno Haible  <bruno@clisp.org>
80336
80337         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80338
80339 2005-08-17  Bruno Haible  <bruno@clisp.org>
80340
80341         * modules/mbuiter: New file.
80342         * MODULES.html.sh (Extended multibyte and wide character utilities):
80343         Add mbuiter.
80344
80345 2005-08-17  Bruno Haible  <bruno@clisp.org>
80346
80347         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80348         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80349
80350 2005-08-17  Bruno Haible  <bruno@clisp.org>
80351
80352         * m4/strcasestr.m4: New file.
80353
80354 2005-08-17  Bruno Haible  <bruno@clisp.org>
80355
80356         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80357         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80358
80359 2005-08-17  Bruno Haible  <bruno@clisp.org>
80360
80361         * lib/strcasestr.h: New file.
80362         * lib/strcasestr.c: New file.
80363
80364 2005-08-17  Bruno Haible  <bruno@clisp.org>
80365
80366         * lib/strcasecmp.c: Use mbuiter.h.
80367
80368 2005-08-17  Bruno Haible  <bruno@clisp.org>
80369
80370         * lib/mbuiter.h: New file.
80371
80372 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80373
80374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80375         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80376         and gl_GETOPT are both invoked via different paths (as happens
80377         with GNU tar CVS because it uses both argp and getopt), the former
80378         wins.
80379
80380 2005-08-16  Bruno Haible  <bruno@clisp.org>
80381
80382         * modules/tls: New file.
80383         * MODULES.html.sh (Multithreading): Add tls.
80384
80385 2005-08-16  Bruno Haible  <bruno@clisp.org>
80386
80387         * modules/strnlen1: New file.
80388         * MODULES.html.sh (String handling): Add strnlen1.
80389
80390 2005-08-16  Bruno Haible  <bruno@clisp.org>
80391
80392         * modules/strcase (Files): Add m4/mbrtowc.m4.
80393         (Depends-on): Add strnlen1, mbchar.
80394
80395 2005-08-16  Bruno Haible  <bruno@clisp.org>
80396
80397         * modules/mbiter: New file.
80398         * MODULES.html.sh (Extended multibyte and wide character utilities):
80399         Add mbiter.
80400
80401 2005-08-16  Bruno Haible  <bruno@clisp.org>
80402
80403         * modules/mbfile: New file.
80404         * MODULES.html.sh (Extended multibyte and wide character utilities):
80405         Add mbfile.
80406
80407 2005-08-16  Bruno Haible  <bruno@clisp.org>
80408
80409         * modules/mbchar: New file.
80410         * MODULES.html.sh (Extended multibyte and wide character utilities):
80411         New section.
80412
80413 2005-08-16  Bruno Haible  <bruno@clisp.org>
80414
80415         * m4/tls.m4: New file, from GNU gettext.
80416
80417 2005-08-16  Bruno Haible  <bruno@clisp.org>
80418
80419         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80420         always.
80421         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80422
80423 2005-08-16  Bruno Haible  <bruno@clisp.org>
80424
80425         * m4/mbiter.m4: New file.
80426
80427 2005-08-16  Bruno Haible  <bruno@clisp.org>
80428
80429         * m4/mbfile.m4: New file.
80430
80431 2005-08-16  Bruno Haible  <bruno@clisp.org>
80432
80433         * m4/mbchar.m4: New file.
80434
80435 2005-08-16  Bruno Haible  <bruno@clisp.org>
80436
80437         * lib/tls.h: New file, from GNU gettext.
80438         * lib/tls.c: New file, from GNU gettext.
80439
80440 2005-08-16  Bruno Haible  <bruno@clisp.org>
80441
80442         * lib/strnlen1.h: New file.
80443         * lib/strnlen1.c: New file.
80444
80445 2005-08-16  Bruno Haible  <bruno@clisp.org>
80446
80447         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
80448         (mbi_init): Update.
80449         (mbi_avail, mbi_advance): Let the iteration end before the terminating
80450         NUL byte, not after it.
80451
80452 2005-08-16  Bruno Haible  <bruno@clisp.org>
80453
80454         * lib/strcase.h (strcasecmp): Add note in comments.
80455         * lib/strncasecmp.c: Use code from strcasecmp.c.
80456         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
80457         (strcasecmp): Work correctly in multibyte locales.
80458
80459 2005-08-16  Bruno Haible  <bruno@clisp.org>
80460
80461         * lib/mbiter.h: New file.
80462
80463 2005-08-16  Bruno Haible  <bruno@clisp.org>
80464
80465         * lib/mbfile.h: New file.
80466
80467 2005-08-16  Bruno Haible  <bruno@clisp.org>
80468
80469         * lib/mbchar.h: New file.
80470         * lib/mbchar.c: New file.
80471
80472 2005-08-16  Bruno Haible  <bruno@clisp.org>
80473
80474         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
80475         the valid ones. Makes the comparison operations transitive:
80476         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
80477         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
80478
80479 2005-08-15  Simon Josefsson  <jas@extundo.com>
80480
80481         * modules/ssize_t (License): Change to 'unlimited'.
80482
80483         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
80484
80485 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
80486
80487         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
80488         Add comments for each pending glibc patch.
80489
80490 2005-08-15  Bruno Haible  <bruno@clisp.org>
80491
80492         * lib/regex.h (__restrict_arr): Don't define to __restrict if
80493         __cplusplus is defined.
80494
80495 2005-08-14  Jim Meyering  <jim@meyering.net>
80496
80497         Sync from coreutils.
80498
80499         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
80500         Use the hash-table-based cycle-detection code not just when
80501         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
80502         Reported by James Youngman in
80503         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
80504         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
80505         FTS_TIGHT_CYCLE_CHECK.
80506         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
80507         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
80508         once again.
80509         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
80510         * lib/fts.c (fd_safer): Remove decl.
80511         Include fcntl--.h rather than unistd-safer.h
80512         (fts_safe_changedir): Don't call fd_safer; no longer needed
80513         now that we include fcntl--.h.
80514
80515 2005-08-12  Simon Josefsson  <jas@extundo.com>
80516
80517         * modules/getndelim2: Use ssize_t module.
80518         * modules/getnline: Likewise.
80519         * modules/safe-read: Likewise.
80520         * modules/xreadlink: Likewise.
80521
80522         * modules/ssize_t: New file.
80523
80524 2005-08-12  Simon Josefsson  <jas@extundo.com>
80525
80526         * m4/readline.m4: Look for termcap, curses or ncurses if required.
80527
80528 2005-08-12  Simon Josefsson  <jas@extundo.com>
80529
80530         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
80531         ssize_t.
80532
80533 2005-08-12  Simon Josefsson  <jas@extundo.com>
80534
80535         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
80536         readline, getdelim and check_version.
80537         (Support for systems lacking ISO C 99: Sizes of integer types):
80538         Add size_max.
80539
80540 2005-08-12  Bruno Haible  <bruno@clisp.org>
80541
80542         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
80543
80544 2005-08-11  Simon Josefsson  <jas@extundo.com>
80545
80546         * modules/readline: New file.
80547
80548         * modules/strnlen (Files): Add strnlen.h.
80549
80550 2005-08-11  Simon Josefsson  <jas@extundo.com>
80551
80552         * m4/readline.m4: New file.
80553
80554 2005-08-11  Simon Josefsson  <jas@extundo.com>
80555
80556         * lib/readline.h, readline.c: New file.
80557
80558 2005-08-11  Simon Josefsson  <jas@extundo.com>
80559
80560         * doc/gnulib.texi (Initial import, Finishing touches): Mention
80561         gl_AVOID.
80562
80563 2005-08-11  Bruno Haible  <bruno@clisp.org>
80564
80565         * lib/strnlen.h (strnlen): Change parameter name to match comment.
80566
80567 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
80568
80569         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
80570
80571 2005-08-10  Simon Josefsson  <jas@extundo.com>
80572
80573         * tests/test-iconvme.c: New file.
80574
80575 2005-08-10  Simon Josefsson  <jas@extundo.com>
80576
80577         * m4/strnlen.m4: New file.
80578
80579         * m4/strndup.m4: Don't check for strnlen declaration, done in
80580         strnlen.m4.
80581
80582 2005-08-10  Simon Josefsson  <jas@extundo.com>
80583
80584         * lib/strndup.c: Use strnlen.h.
80585
80586         * lib/strnlen.h: New file.
80587
80588 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80589
80590         * README: Typos.
80591
80592 2005-08-02  Simon Josefsson  <jas@extundo.com>
80593
80594         * modules/readline: New file.
80595
80596 2005-08-02  Simon Josefsson  <jas@extundo.com>
80597
80598         * modules/getdelim: New file.
80599
80600         * modules/getline: Rewrite, don't use getndelim2.
80601
80602 2005-08-02  Simon Josefsson  <jas@extundo.com>
80603
80604         * m4/getline.m4: Separate out getdelim stuff into separate module.
80605
80606         * m4/getdelim.m4: New file.
80607
80608 2005-08-02  Simon Josefsson  <jas@extundo.com>
80609
80610         * lib/getline.h, getline.c: Rewrite.
80611
80612         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
80613
80614 2005-07-31  Bruno Haible  <bruno@clisp.org>
80615
80616         * lib/lock.h (gl_lock_initializer): New macro.
80617         (gl_lock_define_initialized): Use it.
80618         (gl_rwlock_initializer): New macro.
80619         (gl_rwlock_define_initialized): Use it.
80620         (gl_recursive_lock_initializer): New macro.
80621         (gl_recursive_lock_define_initialized): Use it.
80622
80623 2005-07-30  Karl Berry  <karl@gnu.org>
80624
80625         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
80626         Report from Ben Pfaff, regarding getopt.
80627
80628 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
80629
80630         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
80631         normal way.
80632         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
80633         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
80634         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
80635         (gl_GETOPT): Use the new macros.  Most of the implementation
80636         is moved to the new macros.  This is for programs like Emacs
80637         that don't want all the functionality of gl_GETOPT.
80638
80639 2005-07-26  Bruno Haible  <bruno@clisp.org>
80640
80641         * m4/lock.m4: Update from GNU gettext.
80642
80643 2005-07-26  Bruno Haible  <bruno@clisp.org>
80644
80645         * lib/lock.h: Update from GNU gettext.
80646         * lib/lock.c: Update from GNU gettext.
80647
80648 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
80651         obsolescent AC_TRY_RUN.  Include the default includes files, for
80652         'exit'.
80653
80654 2005-07-24  Bruno Haible  <bruno@clisp.org>
80655
80656         * modules/visibility: New file.
80657         * MODULES.html.sh (Misc): Add visibility.
80658
80659 2005-07-24  Bruno Haible  <bruno@clisp.org>
80660
80661         * m4/visibility.m4: New file.
80662
80663 2005-07-24  Bruno Haible  <bruno@clisp.org>
80664
80665         * doc/visibility.texi: New file.
80666
80667 2005-07-22  Bruno Haible  <bruno@clisp.org>
80668
80669         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
80670         $(ALLOCA_H), redundant through BUILT_SOURCES.
80671         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
80672         redundant through BUILT_SOURCES.
80673         * modules/byteswap (Makefile.am): Remove explicit dependency on
80674         $(BYTESWAP_H), redundant through BUILT_SOURCES.
80675         * modules/fnmatch (Makefile.am): Remove explicit dependency on
80676         $(FNMATCH_H), redundant through BUILT_SOURCES.
80677         * modules/getopt (Makefile.am): Remove explicit dependency on
80678         $(GETOPT_H), redundant through BUILT_SOURCES.
80679         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
80680         redundant through BUILT_SOURCES.
80681         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
80682         redundant through BUILT_SOURCES.
80683         * modules/stdbool (Makefile.am): Remove explicit dependency on
80684         $(STDBOOL_H), redundant through BUILT_SOURCES.
80685         * modules/stdint (Makefile.am): Remove explicit dependency on
80686         $(STDINT_H), redundant through BUILT_SOURCES.
80687         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
80688         Remove explicit dependency on $(SYSEXITS_H).
80689         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
80690
80691 2005-07-18  Simon Josefsson  <jas@extundo.com>
80692
80693         * lib/check-version.c (check_version): Accept identical versions too.
80694
80695 2005-07-18  Bruno Haible  <bruno@clisp.org>
80696
80697         * modules/lock: New file.
80698         * MODULES.html.sh (Multithreading): New section.
80699
80700 2005-07-18  Bruno Haible  <bruno@clisp.org>
80701
80702         * m4/lock.m4: New file, from GNU gettext.
80703
80704 2005-07-18  Bruno Haible  <bruno@clisp.org>
80705
80706         * lib/lock.h: New file, from GNU gettext.
80707         * lib/lock.c: New file, from GNU gettext.
80708
80709 2005-07-18  Bruno Haible  <bruno@clisp.org>
80710
80711         * lib/lock.h (gl_once_t): New type.
80712         (gl_once_define, gl_once): New macros.
80713         * lib/lock.c (fresh_once): New variable.
80714         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
80715         functions.
80716
80717 2005-07-16  Simon Josefsson  <jas@extundo.com>
80718
80719         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
80720         workaround, suggested by Bruno.
80721
80722 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80723
80724         * modules/xalloc (Depends-on): Add xalloc-die.
80725         * modules/xvasprintf (Depends-on): Add xalloc-die.
80726
80727 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
80730         with a minor change.
80731
80732 2005-07-15  Bruno Haible  <bruno@clisp.org>
80733
80734         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
80735         When using lib/poll.c, define poll as rpl_poll.
80736
80737 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
80738
80739         * modules/argp (Depends-on): Remove unlocked-io.
80740
80741 2005-07-14  Derek Price  <derek@ximbiot.com>
80742
80743         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
80744         for glob symlink bug.
80745
80746 2005-07-14  Bruno Haible  <bruno@clisp.org>
80747
80748         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
80749         Instead, test for *_unlocked function declarations directly.
80750
80751 2005-07-11  Simon Josefsson  <jas@extundo.com>
80752
80753         * modules/size_max: New file.
80754
80755         * modules/xsize: Depend on size_max module for size_max.m4.
80756
80757 2005-07-11  Simon Josefsson  <jas@extundo.com>
80758
80759         * lib/size_max.h: New file.
80760
80761 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
80762
80763         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
80764         copyright symbol and the year.
80765         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
80766         (version_etc_va): Use parameterized copyright notice.
80767         Reword to conform to the current GNU coding standards.
80768
80769 2005-07-11  Karl Berry  <karl@gnu.org>
80770
80771         * doc/gnulib.texi (Quoting): new node.
80772         (Initial import): more info, from Patrice.
80773
80774 2005-07-11  Bruno Haible  <bruno@clisp.org>
80775
80776         * gnulib-tool (func_usage): Document option --avoid.
80777         (Command line options): Handle --avoid.
80778         (func_acceptable): New function.
80779         (func_modules_transitive_closure): Use it.
80780
80781 2005-07-11  Bruno Haible  <bruno@clisp.org>
80782
80783         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
80784         Reported by Jim Meyering.
80785
80786 2005-07-10  Bruno Haible  <bruno@clisp.org>
80787
80788         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
80789         Needed when size_t is smaller than 'unsigned int'.
80790         Reported by Paul Eggert.
80791
80792 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80793
80794         * modules/argp (Depends-on): Add unlocked-io
80795
80796 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80797
80798         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
80799         block of defines.
80800
80801 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80802
80803         * config/srclist.txt: Comment out regcomp.c, since we have a porting
80804         fix now.
80805
80806 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
80807         and Paul Eggert  <eggert@cs.ucla.edu>
80808
80809         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
80810         in wint_t, not wchar_t.  Remove now-unnecessary cast.
80811
80812 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80813
80814         * modules/regex (Files): Add lib/regex_internal.c,
80815         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
80816         (Depends-on): Add extensions.
80817         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
80818
80819 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80820
80821         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
80822         pathconf.
80823         * m4/same.m4 (gl_SAME): Likewise.
80824         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
80825
80826         * m4/regex.m4: Adjust to new libc regex implementation.
80827         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
80828         all the .c and .h parts of (the new) regex.
80829         Quote the m4 stuff better.
80830         Check for RE_ICASE bug of old gnulib.
80831         Check for REG_STARTEND of recent libc.
80832         Rename local variables from jm_* to gl_*.
80833         Quote operand of "test -f".
80834         Say "recent enough" version of libc, not "version 2".
80835         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
80836         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
80837         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
80838         Remove check for btowc, isascii.
80839         Require AM_LANGINFO_CODESET.
80840
80841 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80842
80843         * lib/regex.c, regex.h: Sync from libc.
80844         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
80845         * lib/regexec.c:
80846         New files, synced from libc, except that regex_internal.h
80847         currently has a small porting fix.
80848
80849 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
80850
80851         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
80852         regex_internal.c, regexec.c.
80853         Add regex_internal.h too, but as a comment, since the libc version
80854         is currently broken in gnulib mode.
80855
80856 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80857
80858         Support programs like Emacs that use gnulib but not gettext.
80859         * MODULES.html.sh (Internationalization functions): Add gettext-h.
80860         * modules/gettext-h: New file.
80861         * modules/gettext (Files): Remove lib/gettext.h.
80862         (Depends-on): Add gettext-h.
80863         (Makefile.am): Remove lib_SOURCES.
80864         * modules/argmatch, modules/c-stack, modules/closeout:
80865         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
80866         * modules/execute, modules/file-type, modules/getaddrinfo:
80867         * modules/getopt, modules/human, modules/javacomp:
80868         * modules/javaexec, modules/mkdir-p, modules/obstack:
80869         * modules/openat, modules/pagealign_alloc, modules/pipe:
80870         * modules/quotearg, modules/regex, modules/rpmatch:
80871         * modules/unicodeio, modules/userspec, modules/version-etc:
80872         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
80873         * modules/xsetenv:
80874         Depend on gettext-h, not gettext.
80875
80876 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80877
80878         * gnulib-tool (func_import): Add support for 'public domain' license.
80879         * modules/alloca, modules/atexit, modules/memmove:
80880         Now public domain, not GPL.
80881         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
80882         * modules/realloc, modules/strerror, modules/strtod:
80883         Now LGPL, not GPL.
80884
80885 2005-07-05  Bruno Haible  <bruno@clisp.org>
80886
80887         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
80888         autoconf CVS. Needed for mingw.
80889
80890 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80891
80892         Remove the dependency of the strftime module on the tzset module.
80893         * modules/strftime (Depends-on): Remove dependency on tzset.
80894
80895 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80896
80897         Remove the dependency of the strftime module on the tzset module.
80898         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
80899         gl_FUNC_TZSET_CLOBBER.
80900
80901 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80902
80903         Remove the dependency of the strftime module on the tzset module.
80904         * lib/strftime.c (my_strftime)
80905         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
80906         Copy the input structure, to work around some of the bug with
80907         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
80908         Solaris releases, you should also use the tzset module, but we won't
80909         require it as a dependency any more since we don't want LGPLed code
80910         to depend on GPLed code.
80911
80912 2005-07-02  Jim Meyering  <jim@meyering.net>
80913
80914         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
80915         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
80916         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
80917         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
80918
80919 2005-07-02  Jim Meyering  <jim@meyering.net>
80920
80921         * lib/backupfile.c (backup_args): Change a `0' to NULL.
80922
80923 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80924
80925         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
80926         declares only 'struct timespec;' (!).
80927
80928 2005-07-01  Jim Meyering  <jim@meyering.net>
80929
80930         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
80931         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
80932         * lib/save-cwd.c, tempname.c:
80933         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
80934         and don't include <sys/file.h>).
80935
80936 2005-06-29  Jim Meyering  <jim@meyering.net>
80937
80938         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
80939         type name.  Use the variable name instead.
80940         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
80941         Likewise.
80942
80943 2005-06-28  Simon Josefsson  <jas@extundo.com>
80944
80945         * modules/check-version (Files): Add check-version.m4.
80946
80947 2005-06-28  Simon Josefsson  <jas@extundo.com>
80948
80949         * m4/check-version.m4: New file, suggested by Jim Meyering
80950         <jim@meyering.net>.
80951
80952 2005-06-28  Simon Josefsson  <jas@extundo.com>
80953
80954         * lib/check-version.h, lib/check-version.c: New files.
80955
80956 2005-06-28  Simon Josefsson  <jas@extundo.com>
80957
80958         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
80959         collision with global variable.  Better indentation.  Don't
80960         increment buffer pointer beyond buffer end.  Based on comments
80961         from Paul Eggert <eggert@cs.ucla.edu>.
80962
80963         * lib/base64.h: Indent.
80964
80965 2005-06-28  Simon Josefsson  <jas@extundo.com>
80966
80967         * doc/gnulib.texi (Library version handling): New section.
80968
80969 2005-06-28  Jim Meyering  <jim@meyering.net>
80970
80971         * check-module (find_included_lib_files): Hard-code another
80972         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
80973         but modules/fts-lgpl (correctly) does not list those files.
80974
80975         * modules/canonicalize (Files): Add lib/pathmax.h.
80976
80977 2005-06-25  Simon Josefsson  <jas@extundo.com>
80978
80979         * modules/check-version: New file.
80980
80981 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
80982
80983         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
80984         initializer of struct addrinfo, as an indication that we don't
80985         care how many members the structure has.
80986
80987 2005-06-24  Derek Price  <derek@ximbiot.com>
80988         and Bruno Haible  <bruno@clisp.org>
80989
80990         Remove stat module & update lstat.
80991         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
80992         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
80993         * m4/stat.m4: Remove this file.
80994
80995 2005-06-24  Derek Price  <derek@ximbiot.com>
80996         and Bruno Haible  <bruno@clisp.org>
80997
80998         Remove stat module & update lstat.
80999         * lib/stat.c: Remove this file...
81000         (slash_aware_lstat): ...moving this content and its support...
81001         * lib/lstat.c (rpl_lstat): ...into here.
81002         * lib/lstat.h: New file.
81003
81004 2005-06-24  Derek Price  <derek@ximbiot.com>
81005         and Bruno Haible  <bruno@clisp.org>
81006
81007         Remove stat module & update lstat.
81008         * config/srclist.txt (libc sources): Remove stat.
81009
81010 2005-06-24  Derek Price  <derek@ximbiot.com>
81011         and Bruno Haible  <bruno@clisp.org>
81012
81013         Remove stat module & update lstat.
81014         * MODULES.html.sh (stat): Remove.
81015         * MODULES.html: Regenerated.
81016         * modules/lstat (Description): Correct function name.
81017         (Files): Add "lstat.h".
81018         (Depends-on): Remove stat, add xalloc, stat-macros.
81019         * modules/stat: Remove this file.
81020         (Include): Add "lstat.h", remove <sys/stat.h>.
81021
81022 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81023
81024         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81025         (ranged_convert): Don't save conversion in a temporary struct.
81026         This causes a warning with GCC 4.0.0, and anyway in the typical
81027         case it's not worth the extra 100 bytes or so of code.
81028         (ranged_convert, __mktime_internal): When calling a function via a
81029         pointer P, use P () rather than (*P) (), as we now assume C89 or
81030         better.
81031
81032 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81033
81034         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81035         "who -r" failed to give output.  Problem reported by Tim Waugh.
81036
81037         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81038         (xcalloc): Use it to avoid needless tests.
81039         Problem reported by Jim Meyering.
81040
81041 2005-06-20  Derek Price  <derek@ximbiot.com>
81042
81043         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81044         unnecessary for Autoconfs > 2.59c.
81045
81046 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81047
81048         * lib/argp.h (__option_is_short): Check upper limit of
81049         __key. Isprint() requires its argument to have the value
81050         of an unsigned char or EOF.
81051
81052 2005-06-16  Jim Meyering  <jim@meyering.net>
81053
81054         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81055         when either N or S is zero.
81056
81057 2005-06-16  Derek Price  <derek@ximbiot.com>
81058
81059         * m4/bison.m4: Declare YACC & YFLAGS precious.
81060
81061 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81062
81063         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81064         multibyte string or pattern, fall back on unibyte matching.
81065         Problem reported by James Youngman.
81066
81067 2005-06-08  Bruno Haible  <bruno@clisp.org>
81068
81069         * modules/csharpcomp: New file.
81070         * MODULES.html.sh (C#): Add csharpcomp.
81071
81072 2005-06-08  Bruno Haible  <bruno@clisp.org>
81073
81074         * m4/csharpcomp.m4: New file, from GNU gettext.
81075
81076 2005-06-08  Bruno Haible  <bruno@clisp.org>
81077
81078         * lib/csharpcomp.h: New file, from GNU gettext.
81079         * lib/csharpcomp.c: New file, from GNU gettext.
81080         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81081
81082 2005-06-08  Bruno Haible  <bruno@clisp.org>
81083
81084         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81085         warning on mingw.
81086
81087 2005-06-07  Derek Price  <derek@ximbiot.com>
81088
81089         Sync from CVS.
81090         * lib/glob_.h: Indent nested #ifdef.
81091
81092 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81093
81094         Sync from coreutils.
81095         Use "file name" when talking about file names, instead of "filename"
81096         or "path", as per the GNU coding standards.
81097         * lib/mkdir-p.c: Renamed from makepath.c.
81098         (make_dir_parents): Renamed from make_path.  All callers changed.
81099         * lib/mkdir-p.h: Likewise.  All includers changed.
81100         * lib/filenamecat.c: Renamed from path-concat.c.
81101         (file_name_concat): Renamed from path_concat.  All callers changed.
81102         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81103         * lib/filenamecat.h: Likewise.  All includers changed.
81104         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81105         in comments or local variable names.
81106         * lib/basename.c: Likewise.
81107         * lib/canonicalize.c, canonicalize.h: Likewise.
81108         * lib/dirname.c, dirname.h: Likewise.
81109         * lib/euidaccess.c: Likewise.
81110         * lib/exclude.c: Likewise
81111         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81112         * lib/fsusage.c, fsuage.h: Likewise.
81113         * lib/fts.c, fts_.h: Likewise.
81114         * lib/getcwd.c: Likewise.
81115         * lib/getloadavg.c: Likewise.
81116         * lib/mkstemp.c: Likewise.
81117         * lib/mountlist.c, mountlist.h: Likewise.
81118         * lib/openat.c, openat.h: Likewise.
81119         * lib/readlink-stub.c: Likewise.
81120         * lib/readutmp.c, readutmp.h: Likewise.
81121         * lib/rename.c: Likewise.
81122         * lib/rmdir.c: Likewise.
81123         * lib/same.c: Likewise.
81124         * lib/savedir.c: Likewise.
81125         * lib/stripslash.c: Likewise.
81126         * lib/tempname.c: Likewise.
81127         * lib/xreadlink.c: Likewise.
81128         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81129         All uses changed.
81130         * lib/exclude.h: Likewise.
81131
81132         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81133         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81134         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81135         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81136         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81137         files have been getting away with it for years (MORE/BSD 4.3
81138         is extinct now).
81139         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81140         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81141
81142         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81143         Define to 256, not 255, as per modern POSIX.
81144
81145 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81146
81147         Sync from coreutils.
81148         Use "file name" when talking about file names, instead of "filename"
81149         or "path", as per the GNU coding standards.
81150         * MODULES.html.sh: mkdir-p renamed from makepath.
81151         filenamecat renamed from path-concat.
81152         * modules/filenamecat: Renamed from modules/path-concat.
81153         (Files): filenamecat.h and filenamecat.c renamed from
81154         path-concat.h and path-concat.c.
81155         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81156         (Include): filenamecat.h, not path-concat.h.
81157         * modules/mkdir-p: Renamed from modules/makepath.
81158         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81159         makepath.c.
81160         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81161         (Include): mkdir-p.h, not makepath.h.
81162
81163 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81164
81165         Sync from coreutils.
81166         * m4/mkdir-p.m4: Renamed from makepath.m4.
81167         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81168         Rename files from makepath.c to mkdir-p.c, and from
81169         makepath.h to mkdir-p.h.
81170         * m4/filenamecat.m4: Renamed from path-concat.m4.
81171         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81172         Rename files from path-concat.c to filenamecat.c,
81173         and from path-concat.h to filenamecat.h.
81174         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81175         "file name" in local variables or comments.
81176         * m4/rename.m4: Likewise.
81177
81178 2005-06-01  Bruno Haible  <bruno@clisp.org>
81179
81180         * modules/csharpexec: New file.
81181         * MODULES.html.sh (C#): New section.
81182
81183 2005-06-01  Bruno Haible  <bruno@clisp.org>
81184
81185         * m4/csharp.m4: New file, from GNU gettext.
81186         * m4/csharpexec.m4: New file, from GNU gettext.
81187
81188 2005-06-01  Bruno Haible  <bruno@clisp.org>
81189
81190         * lib/csharpexec.h: New file, from GNU gettext.
81191         * lib/csharpexec.c: New file, from GNU gettext.
81192         * lib/csharpexec.sh.in: New file, from GNU gettext.
81193
81194 2005-05-31  Derek Price  <derek@ximbiot.com>
81195             Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         Sync from cvs.
81198         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81199
81200 2005-05-31  Derek Price  <derek@ximbiot.com>
81201             Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         Sync from cvs.
81204         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81205
81206 2005-05-29  Derek Price  <derek@ximbiot.com>
81207
81208         * config/srclist.txt (glob_.h, glob.c): Add these files.
81209
81210 2005-05-29  Derek Price  <derek@ximbiot.com>
81211
81212         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81213         * modules/glob: New file.
81214         * modules/getlogin_r: Add link to POSIX spec in description.
81215
81216 2005-05-29  Derek Price  <derek@ximbiot.com>
81217             Paul Eggert  <eggert@cs.ucla.edu>
81218
81219         * m4/glob.m4: New file.
81220
81221 2005-05-29  Derek Price  <derek@ximbiot.com>
81222             Paul Eggert  <eggert@cs.ucla.edu>
81223
81224         * lib/glob_.h, lib/glob.c: New files.
81225
81226 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81229         * modules/fts-lgpl (Depends-on): Remove gettext.
81230
81231 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81232
81233         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81234         and don't require gt_INTTYPES_PRI.
81235
81236 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81237
81238         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81239
81240         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81241         the configuration hassle isn't worth it.
81242         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81243         (LONGEST_MODIFIER, PRIuMAX): Remove.
81244
81245 2005-05-27  Bruno Haible  <bruno@clisp.org>
81246
81247         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81248
81249 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81250
81251         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81252         _POSIX_PTHREAD_SEMANTICS for Solaris.
81253
81254 2005-05-25  Derek Price  <derek@ximbiot.com>
81255
81256         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81257
81258 2005-05-25  Derek Price  <derek@ximbiot.com>
81259             Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81262         * lib/getlogin_r.c, getlogin_r.h: New files.
81263
81264 2005-05-25  Bruno Haible  <bruno@clisp.org>
81265             Derek Price  <derek@ximbiot.com>
81266
81267         * lib/getlogin_r.h: Simplify API documentation.
81268
81269 2005-05-23  Derek Price  <derek@ximbiot.com>
81270
81271         * modules/minmax (Files): Add m4/minmax.m4.
81272         (configure.ac): Add gl_MINMAX.
81273
81274 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81275
81276         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81277         so that unistd-safer.h (GPL'ed code) need not be included.
81278
81279 2005-05-22  Bruno Haible  <bruno@clisp.org>
81280
81281         * m4/minmax.m4: New file.
81282         Based on a patch by Derek Price <derek@ximbiot.com>.
81283
81284 2005-05-22  Bruno Haible  <bruno@clisp.org>
81285
81286         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81287         (INT64_MIN): Fix definition.
81288         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81289
81290         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81291         NEED_SIGNED_INT_TYPES.
81292
81293         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81294         HAVE_SYSTEM_INTTYPES.
81295
81296 2005-05-22  Bruno Haible  <bruno@clisp.org>
81297
81298         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81299         Also include <sys/param.h> if it defines MIN, MAX.
81300         Based on a patch by Derek Price <derek@ximbiot.com>.
81301
81302 2005-05-21  Jim Meyering  <jim@meyering.net>
81303
81304         * modules/fts (Files): Add m4/inttypes-pri.m4.
81305         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81306
81307 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81308
81309         New fts module.
81310         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81311         (setup_dir, free_dir): New functions.
81312         (enter_dir, leave_dir): Define trivial
81313         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81314         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81315         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81316         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81317         Move to fts-cycle.c.
81318         (fts_open): Use setup_dir.
81319         (fts_close): Use free_dir.
81320         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81321         This adds a label and some gotos, but the alternatives were messier.
81322         Check for memory allocation failure when entering a dir.
81323         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81324         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81325         (FTS): New member fts_cycle, that is a union that contains the
81326         old active_dir_ht and cycle_state.  All uses changed to mention
81327         fts_cycle.ht and fts_cycle.state.
81328         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81329         fts.c, with the following changes:
81330         (setup_dir, free_dir): New functions.
81331         (enter_dir): Now returns bool.  Return true if successful, false
81332         if memory exhausted.  All callers changed.
81333         Do not bother partly cleaning up on
81334         memory allocation failure; that is free_dir's job.
81335         However, free ad if hash_insert fails, to avoid memory leak.
81336         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81337         fts->fts_options to see which union member to use.
81338
81339 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81340
81341         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81342         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81343
81344 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81345
81346         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81347
81348 2005-05-20  Jim Meyering  <jim@meyering.net>
81349
81350         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81351         Now a macro, to pacify GCC.
81352
81353 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81354
81355         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81356         of -1.
81357
81358 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81359
81360         * lib/chown.c (rpl_chown): Return -1 on failure.
81361
81362 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81363
81364         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81365         Don't check for stddef.h.
81366         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81367         don't use its results.
81368         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81369         since we include them unconditionally.  Don't require
81370         AM_STDBOOL_H, since stdbool is a prerequisite.
81371         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81372         since we assume C89 or better.
81373         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81374         as we don't use their results.
81375         Don't check for fchdir, memmove, memset, strrchr, as we use
81376         them unconditionally.
81377         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81378         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81379
81380 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81381
81382         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81383         Include <stddef.h> unconditionally, since we assume C89 now.
81384         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81385         * lib/fts.c: Include fts_.h first, to check interface.
81386         Do not include intprops.h; no longer needed.
81387         Include cycle-check.h and hash.h, since fts_.h no longer does.
81388         Remove unnecessary casts of closedir to void.
81389         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81390         decide whether to decrement nlinks.
81391         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81392         (FTS): Use struct hash_table * instead of Hash_table, so that
81393         we no longer need to include hash.h here.
81394
81395 2005-05-18  Jim Meyering  <jim@meyering.net>
81396
81397         * modules/dirfd (License): Change to LGPL.  Most of the code
81398         is already in the public domain.
81399
81400 2005-05-18  Jim Meyering  <jim@meyering.net>
81401
81402         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81403         Reported by Yoann Vandoorselaere.
81404
81405 2005-05-17  Jim Meyering  <jim@meyering.net>
81406
81407         * m4/fts.m4: New file, from coreutils.
81408
81409 2005-05-17  Jim Meyering  <jim@meyering.net>
81410
81411         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81412
81413 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81414
81415         Sync from coreutils.
81416         * m4/unlinkdir.m4: New file.
81417
81418 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81419
81420         Sync from coreutils.
81421         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81422         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81423         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81424         White space changes only.
81425         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81426         special.
81427         * lib/yesno.c: Include getline.h, not ctype.h.
81428         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81429         Use getline to remove arbitrary restriction on response length.
81430
81431 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81432
81433         * config/srclist-update: Spell out "Street" in FSF postal
81434         mail address; this is the style the FSF seems to prefer.
81435
81436         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
81437         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
81438         this updates FSF postal mail address.
81439
81440         Sync from coreutils.
81441         * modules/unlinkdir: New file.
81442         * modules/yesno (Depends-on): Add getline.
81443         * MODULES.html.sh (File system functions): Add unlinkdir.
81444
81445 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81446
81447         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
81448         lib/strsep.h:
81449         Change the initial comment to refer to GPL, not LGPL.
81450         gnulib-tool will change it to LGPL as needed.
81451
81452         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
81453         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
81454         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
81455         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
81456         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
81457         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
81458         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
81459         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
81460         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
81461         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
81462         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
81463         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
81464         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
81465         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
81466         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
81467         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
81468         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
81469         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
81470         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
81471         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
81472         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
81473         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
81474         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
81475         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
81476         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
81477         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
81478         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
81479         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
81480         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
81481         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
81482         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
81483         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
81484         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
81485         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
81486         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
81487         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
81488         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
81489         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
81490         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
81491         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
81492         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
81493         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
81494         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
81495         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
81496         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
81497         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
81498         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
81499         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
81500         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
81501         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
81502         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81503         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
81504         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
81505         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
81506         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
81507         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
81508         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
81509         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
81510         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
81511         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
81512         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
81513         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
81514         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
81515         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
81516         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
81517         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
81518         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
81519         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
81520         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
81521         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
81522         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
81523         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
81524         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
81525         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
81526         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
81527         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
81528         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
81529         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
81530         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
81531         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
81532         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
81533         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
81534         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
81535         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
81536         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
81537         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
81538         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
81539         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
81540         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
81541         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
81542         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
81543         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
81544         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
81545         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
81546         lib/yesno.c, lib/yesno.h:
81547         Update FSF postal mail address.
81548
81549 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
81550
81551         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
81552         tests/test-memmem.c, tests/test-stpncpy.c:
81553         Update FSF postal mail address.
81554
81555 2005-05-13  Bruno Haible  <bruno@clisp.org>
81556
81557         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
81558         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
81559         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
81560         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
81561         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
81562         Add support for 64-bit integers in the MSVC compiler.
81563
81564 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81565
81566         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
81567
81568 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
81569
81570         * gnulib-tool (func_import): Sort and uniquify recommended includes.
81571
81572 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
81573
81574         * doc/getdate.texi (General date syntax): Don't say that date
81575         date --iso-8601=ns generates acceptable dates; it doesn't yet.
81576         Problem reported by Nic Ferrier.
81577
81578 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81579
81580         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
81581         specified in ai_socktype. Fix invalid ai_protocol
81582         check. ai_protocol is usually set to 0 or depending on
81583         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
81584         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
81585         ai_socktype / ai_protocol in the returned addrinfo structure.
81586
81587 2005-05-10  Simon Josefsson  <jas@extundo.com>
81588
81589         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
81590         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
81591
81592 2005-05-10  Karl Berry  <karl@gnu.org>
81593
81594         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
81595         (from http://www.gnu.org/licenses).
81596         * doc/COPYING.LIB: also rename to COPYING.LESSER.
81597         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
81598         fdl.texi suffices.
81599
81600 2005-05-10  Karl Berry  <karl@gnu.org>
81601
81602         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
81603         (COPYING.DOC): remove.
81604
81605         * config/srclist-update: new FSF address.
81606
81607 2005-05-10  Derek Price  <derek@ximbiot.com>
81608
81609         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
81610         possible.
81611
81612 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81613             Bruno Haible  <bruno@clisp.org>
81614
81615         * modules/inet_ntop: New file.
81616         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81617         inet_ntop.
81618
81619 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81620             Bruno Haible  <bruno@clisp.org>
81621
81622         * m4/inet_ntop.m4: New file.
81623
81624 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81625             Bruno Haible  <bruno@clisp.org>
81626
81627         * lib/inet_ntop.h: New file.
81628         * lib/inet_ntop.c: New file, from glibc with modifications.
81629
81630 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
81631
81632         * modules/time_r (License): Change to LGPL.
81633         * modules/extensions (License): Change to LGPL.  Actually,
81634         the license is more permissive than that, but currently gnulib-tool
81635         doesn't know how to handle more-permissive licenses.
81636
81637         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
81638         Problem reported by Dave Love.
81639
81640 2005-05-08  Jim Meyering  <jim@meyering.net>
81641
81642         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
81643         blank.
81644
81645 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
81646
81647         * modules/argmatch (Depends-on): Add stdbool.
81648         * modules/backupfile (Depends-on): Likewise.
81649         * modules/chdir-long (Depends-on): Likewise.
81650         * modules/closeout (Depends-on): Likewise.
81651         * modules/cycle-check (Depends-on): Likewise.
81652         * modules/dirname (Depends-on): Likewise.
81653         * modules/fnmatch (Depends-on): Likewise.
81654         * modules/fsusage (Depends-on): Likewise.
81655         * modules/fwriteerror (Depends-on): Likewise.
81656         * modules/getcwd (Depends-on): Likewise.
81657         * modules/getloadavg (Depends-on): Likewise.
81658         * modules/hard-locale (Depends-on): Likewise.
81659         * modules/makepath (Depends-on): Likewise.
81660         * modules/mountlist (Depends-on): Likewise.
81661         * modules/nanosleep (Depends-on): Likewise.
81662         * modules/posixtm (Depends-on): Likewise.
81663         * modules/quotearg (Depends-on): Likewise.
81664         * modules/readtokens (Depends-on): Likewise.
81665         * modules/readtokens0 (Depends-on): Likewise.
81666         * modules/readutmp (Depends-on): Likewise.
81667         * modules/save-cwd (Depends-on): Likewise.
81668         * modules/strftime (Depends-on): Likewise.
81669         * modules/userspec (Depends-on): Likewise.
81670         * modules/utimecmp (Depends-on): Likewise.
81671         * modules/xgetcwd (Depends-on): Likewise.
81672         * modules/xnanosleep (Depends-on): Likewise.
81673         * modules/xstrtod (Depends-on): Likewise.
81674         * modules/yesno (Depends-on): Likewise.
81675
81676 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
81677
81678         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
81679         needless checks.
81680
81681 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81682
81683         Merge from coreutils.  Among other things,
81684         add bulletproofing for cases where stdin, stdout, or stderr are closed.
81685         * lib/fd-safer.c: New file.
81686         * lib/fcntl-safer.h, open-safer.c: Remove.
81687         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
81688         * lib/dup-safer.c: Include unistd-safer.h first.
81689         Don't include errno.h.
81690         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
81691         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
81692         * lib/file-type.c: Rely on file-type.h change.
81693         * lib/getloadavg.c: Include unistd-safer.h.
81694         (getloadavg): Use safer open.
81695         * lib/getusershell.c: Include "stdio-safer.h".
81696         (getusershell): Use safer fopen.
81697         * lib/long-options.c (long_options): Use NULL rather than 0.
81698         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
81699         'free'.
81700         * lib/modechange.c: Likewise.
81701         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
81702         (MODE_DONE): New constant.
81703         (struct mode_change): Remove 'next' member.
81704         (make_node_op_equals): New function; like the old one of the
81705         same name, except it allocates an array.
81706         (mode_compile, mode_create_from_ref): Use it.
81707         (mode_compile): Allocate result as an array, not a linked list.
81708         Parse octal string ourself, so that we catch mistakes like "+0".
81709         (mode_adjust): Arg is an array, not a linked list.
81710         * lib/modechange.c: Include stat-macros.h, xalloc.h.
81711         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
81712         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
81713         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
81714         Remove.  This is now stat-macros.h's job.
81715         (talloc): Remove.  All callers replaced by xalloc, so that
81716         our invokers don't have to worry about reporting memory failures.
81717         (make_node_op_equals): Remove.
81718         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81719         New constants.
81720         (struct mode_change): Moved here from modechange.h.
81721         (mode_append_entry): Remove.
81722         (mode_compile): Remove MASKED_OPS arg, since it encouraged
81723         apps to have incorrect behavior.  Use simpler algorithm for head
81724         and tail.  Don't futz with umask; that's now the job of mode_adjust.
81725         Detect more invalid usages rather than having somewhat-random behavior.
81726         Don't insert an "a=" action, as that leads to incorrect behavior.
81727         (mode_compile, mode_create_from_ref): Return NULL on error instead
81728         of an enum, since now there's only one way to have an error.  All
81729         callers changed.
81730         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
81731         at the correct time.  Simplify calculation of "+u" and its ilk.
81732         Don't mishandle "+X".
81733         (mode_free): Remove "register" and localize decls.
81734         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
81735         (struct mode_change): Move to modechange.c; callers don't
81736         need to see this stuff.
81737         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
81738         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
81739         (mode_change, mode_adjust): Reflect the new signatures noted above.
81740         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
81741         that might redefine system include files.
81742         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
81743         (my_usleep): Use NULL rather than (void *) 0.
81744         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
81745         Use siginterrupt to specify that system calls should be interrupted.
81746         (rpl_nanosleep): Move initialization of suspended closer to call of
81747         my_usleep.
81748         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
81749         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
81750         (desirable_utmp_entry): New function.
81751         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
81752         using x2nrealloc, to simplify logic.
81753         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
81754         size calculation.  Do not assume utmp file is a regular file.
81755         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
81756         (READ_UTMP_CHECK_PIDS): New constant.
81757         * lib/save-cwd.c: Include unistd-safer.h.
81758         (save_cwd): Use fd_safer.
81759         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
81760         [!_LIBC] Include "stat-macros.h" instead.
81761         * lib/unistd-safer.h (fd_safer): New decl.
81762
81763 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81764
81765         * modules/getloadavg (Depends-on): Add unistd-safer.
81766         * modules/getusershell (Depends-on): Add stdio-safer.
81767         * modules/lstat (Depends-on): Remove xalloc.
81768         * modules/mkstemp (Depends-on): Add stat-macros.
81769         * modules/modechange (Depends-on): Remove xstrtol.
81770         Add stat-macros, xalloc.
81771         * modules/save-cwd (Depends-on): Add unistd-safer.
81772         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
81773         * modules/unistd-safer (Files): Add lib/fd-safer.c
81774         (Makefile.am): Remove lib_SOURCES.
81775
81776         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
81777         Remove fcntl-safer; unistd-safer supersedes it.
81778
81779 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81780
81781         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
81782         AC_HEADER_STAT.
81783         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
81784         (gl_PREREQ_CHOWN): Remove.
81785         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
81786         it.  Don't require AC_HEADER_STAT.
81787         (gl_PREREQ_LSTAT): Remove.
81788         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
81789         Don't require AC_HEADER_STAT.
81790         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
81791         (gl_PREREQ_RMDIR): Remove.
81792         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
81793         mention stat-macros.h or AC_HEADER_STAT, since we'll make
81794         the stat-macros module a prerequisite.
81795         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
81796         * m4/filemode.m4 (gl_FILEMODE): Likewise.
81797         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
81798         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
81799         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
81800         variable names.
81801         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
81802         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
81803         variable prefixes.
81804         * m4/fcntl-safer.m4: Remove.
81805         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
81806         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
81807         Invoke gl_PREREQ_FD_SAFER.
81808         (gl_PREREQ_FD_SAFER): New macro.
81809         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
81810         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
81811         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
81812         Remove duplicate call to AC_LIBOBJ(readutmp).
81813         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
81814
81815         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
81816         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
81817
81818 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         * MODULES.html.sh (Misc): Add byteswap.
81821
81822 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81823
81824         * modules/getcwd (Depends-on): Add extensions.
81825         * modules/openat (Depends-on): Likewise.
81826
81827 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81828
81829         * modules/byteswap: New file.
81830
81831 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81832
81833         * m4/byteswap.m4: New file.
81834
81835 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
81836
81837         * lib/byteswap_.h: New file.
81838
81839 2005-04-25  Karl Berry  <karl@gnu.org>
81840
81841         * m4/gettext.m4: Update from GNU gettext 0.14.4.
81842
81843 2005-04-25  Albert Chin  <china@thewrittenword.com>
81844
81845         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
81846         Toolkit C bug.
81847
81848 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
81849
81850         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
81851         (func_ln_if_changed): Remove forcibly for no error message
81852         in case file does not exist.
81853
81854 2005-04-19  Simon Josefsson  <jas@extundo.com>
81855
81856         * gnulib-tool (Options): Make --symlink mean --symbolic.
81857
81858 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
81859
81860         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
81861
81862 2005-04-16  Simon Josefsson  <jas@extundo.com>
81863
81864         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
81865
81866 2005-04-15  Simon Josefsson  <jas@extundo.com>
81867
81868         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
81869
81870 2005-04-15  Simon Josefsson  <jas@extundo.com>
81871
81872         * gnulib-tool: Rename --symlink to --symbolic.
81873
81874 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
81875
81876         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
81877         symbolic links to files instead of copying/moving.  Add --aux-dir,
81878         specifying directory relative --dir where auxiliary build tools
81879         are placed.
81880
81881 2005-04-14  Bruno Haible  <bruno@clisp.org>
81882
81883         * modules/allocsa (License): Change to LGPL.
81884         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
81885
81886 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81887
81888         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
81889         that "UTC +1 second" continues to work.  Problem reported
81890         by Dmitry V. Levin.
81891         (relunit_snumber): New rule.
81892         (relunit): Use it.
81893
81894 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
81895
81896         * lib/getdate.y (universal_time_zone_table): New constant.
81897         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
81898         universal_time_zone_table.
81899         (lookup_zone): Prefer universal_time_zone_table to
81900         local_time_zone_table, so that "GMT" time stamps are allowed in
81901         London during the summer.  Problem reported by Ian Abbott.
81902
81903 2005-04-12  Jim Meyering  <jim@meyering.net>
81904
81905         * lib/human.c (humblock): Set *options even when returning due to
81906         xstrtoumax conversion failure.  Thanks to a used-uninitialized
81907         warning from gcc-4.
81908
81909 2005-04-09  Jim Meyering  <jim@meyering.net>
81910
81911         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
81912         -Wuninitialized: initialize tm0.tm_year.
81913
81914 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
81915
81916         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
81917         count, since there's no maximum.  All uses changed.
81918         Add member dsts_seen.
81919         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
81920         not being INT_MAX.
81921         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
81922         Use pc_rels_seen to decide whther a date is absolute.
81923
81924         * lib/getdate.y (number): Don't overwrite year.
81925         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
81926         check.
81927
81928 2005-04-02  Simon Josefsson  <jas@extundo.com>
81929
81930         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
81931         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
81932
81933 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
81934
81935         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
81936         where no absolute path name can be longer than PATH_MAX.
81937
81938 2005-03-27  Jim Meyering  <jim@meyering.net>
81939
81940         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
81941
81942 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
81943
81944         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
81945         "one's complement" -> "ones' complement" in comment, as per Knuth.
81946         "value of type" -> "type or expression" in comment.
81947         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
81948
81949 2005-03-26  Jim Meyering  <jim@meyering.net>
81950
81951         Comment nits.
81952         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
81953         Correct typos: s/or/of/.
81954
81955 2005-03-26  Jim Meyering  <jim@meyering.net>
81956
81957         * modules/check-include-files: Move to ../ and rename to...
81958         * check-module: ...this.
81959
81960 2005-03-25  Jim Meyering  <jim@meyering.net>
81961
81962         * modules/xvasprintf (Files): Add xalloc.h.
81963
81964 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
81965
81966         * modules/gettext (Files): config/config.rpath ->
81967         build-aux/config.rpath
81968         * modules/iconv (Files): Likewise.
81969         Problem reported by Oskar Liljeblad.
81970
81971 2005-03-23  Jim Meyering  <jim@meyering.net>
81972
81973         * modules/check-include-files: New script to check for
81974         missing dependencies, multiple includes, etc.
81975
81976         * modules/c-strtold (Depends-on): Add xalloc.
81977         * modules/c-strtod (Depends-on): Add xalloc.
81978         * modules/hash (Depends-on): Add xalloc.
81979         (Files): Remove lib/xalloc.h.
81980
81981         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
81982         * modules/userspec (Files): Add lib/inttostr.h.
81983
81984 2005-03-23  Jim Meyering  <jim@meyering.net>
81985
81986         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
81987
81988 2005-03-22  Jim Meyering  <jim@meyering.net>
81989
81990         * modules/stat-macros: New module.
81991         * modules/canonicalize, modules/euidaccess, modules/file-type,
81992         * modules/filemode, modules/lchown, modules/makepath,
81993         * modules/rmdir, modules/stat: Depend on new stat-macros module
81994         rather than listing lib/stat-macros.h manually.
81995         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
81996
81997 2005-03-22  Jim Meyering  <jim@meyering.net>
81998
81999         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82000
82001 2005-03-22  Bruno Haible  <bruno@clisp.org>
82002
82003         * config/srclist.txt: Replace target directory 'config' with
82004         'build-aux'.
82005         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82006         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82007         ../build-aux/.
82008
82009 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82010
82011         * modules/chdir-long (Depends-on): Add mempcpy.
82012
82013         * modules/acl, modules/backupfile, modules/c-strtod,
82014         modules/c-strtold, modules/canon-host, modules/canonicalize,
82015         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82016         modules/exclude, modules/exitfail, modules/file-type,
82017         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82018         modules/getdate, modules/getline, modules/getpagesize,
82019         modules/getpass, modules/getugroups, modules/group-member,
82020         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82021         modules/inttostr, modules/long-options, modules/makepath,
82022         modules/md5, modules/memcasecmp, modules/memcoll,
82023         modules/modechange, modules/mountlist, modules/path-concat,
82024         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82025         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82026         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82027         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82028         modules/strftime, modules/strndup, modules/strverscmp,
82029         modules/timespec, modules/unlocked-io, modules/userspec,
82030         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82031         modules/yesno:
82032         Remove lib_SOURCES line from Makefile.am section, as this is now
82033         done automatically by the corresponding Autoconf macro.
82034
82035 2005-03-21  Jim Meyering  <jim@meyering.net>
82036
82037         Changes imported from coreutils.
82038
82039         * lib/cycle-check.c: Don't include xalloc.h.
82040
82041         * lib/path-concat.c: Don't include assert.h.
82042         (path_concat): Remove assertion that would have triggered
82043         for ABASE starting with more than one slash.
82044         Reported by Andreas Schwab.
82045
82046         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82047         properly when ABASE is an absolute file name.
82048         Correct the description of this function.
82049         Include <assert.h>.
82050         Add an assertion and a test driver.
82051         This fixes a bug introduced on 2004-07-02.
82052         Andreas Schwab reported the resulting failure of cp --parents:
82053         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82054
82055 2005-03-21  Jim Meyering  <jim@meyering.net>
82056
82057         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82058         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82059
82060 2005-03-21  Jim Meyering  <jim@meyering.net>
82061         and  Paul Eggert  <eggert@cs.ucla.edu>
82062
82063         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82064         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82065         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82066         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82067         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82068         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82069         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82070         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82071         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82072         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82073         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82074         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82075         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82076         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82077         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82078         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82079         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82080         for these modules.
82081
82082 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82083
82084         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82085         (which shouldn't happen), generate nothing instead of returning 0
82086         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82087
82088 2005-03-16  Bruno Haible  <bruno@clisp.org>
82089
82090         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82091         HAVE_LONGLONG_64BIT.
82092
82093 2005-03-16  Bruno Haible  <bruno@clisp.org>
82094
82095         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82096         HAVE_LONGLONG_64BIT.
82097
82098 2005-03-16  Bruno Haible  <bruno@clisp.org>
82099
82100         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82101         HAVE_LONGLONG_64BIT.
82102
82103 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82104
82105         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82106         reliably distinguish strftime failure from empty output on POSIX
82107         hosts.
82108
82109 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82110
82111         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82112         (iconv_string): Don't guess a size-zero buffer, as that might cause
82113         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82114         result would be 'too large', where 'too large' is (heuristically)
82115         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82116         overflow concerns.  This will prevent some unwanted malloc failures
82117         when the inputs are very large.
82118
82119 2005-03-15  Karl Berry  <karl@gnu.org>
82120
82121         * config/srclist.txt (config.rpath): from gettext.
82122         * config/config.rpath: update.
82123
82124 2005-03-15  Bruno Haible  <bruno@clisp.org>
82125
82126         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82127         to 'negate'.
82128
82129         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82130         variable.
82131
82132         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82133         results.
82134
82135 2005-03-14  Simon Josefsson  <jas@extundo.com>
82136
82137         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82138         <fx@gnu.org>.
82139
82140 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82143         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82144         intprops.h.
82145         * lib/strtol.c: Likewise.
82146
82147 2005-03-14  Jim Meyering  <jim@meyering.net>
82148
82149         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82150         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82151         to be nonzero so that we (and caller) can detect the difference
82152         between a valid zero-length expansion and an error return, even
82153         when the underlying strftime fails before writing anything into
82154         that location.
82155
82156 2005-03-14  Bruno Haible  <bruno@clisp.org>
82157
82158         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82159         Update from GNU gettext 0.14.3.
82160
82161 2005-03-10  Jim Meyering  <jim@meyering.net>
82162
82163         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82164
82165 2005-03-10  Jim Meyering  <jim@meyering.net>
82166
82167         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82168         so that this module works on systems without fchdir.
82169
82170 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82171
82172         Factor int-properties macros into a single file, except for
82173         glibc-related files.
82174         * lib/intprops.h: New file.
82175         * lib/getloadavg.c: Include it instead of limits.h.
82176         (INT_STRLEN_BOUND): Remove.
82177         * lib/human.c: Include intprops.h.
82178         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82179         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82180         302/1000.
82181         * lib/inttostr.h: Include intprops.h instead of limits.h.
82182         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82183         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82184         for consistency with intprops.h.
82185         (time_t_is_integer, twos_complement_arithmetic): Use them.
82186         * lib/sig2str.h: Include <signal.h>, intprops.h.
82187         (INT_STRLEN_BOUND): Remove.
82188         * lib/strftime.c (TYPE_SIGNED): Remove.
82189         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82190         * lib/strtol.c: Adjust comments to match intprops.h.
82191         * lib/userspec.c: Include intprops.h.
82192         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82193         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82194         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82195         instead of rolling our own expressions.
82196         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82197
82198         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82199         instead of int.
82200         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82201         the right thing even if adding 1900 would overflow.  Similarly
82202         for tm_mon + 1 and tm_yday + 1.
82203         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82204         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82205         (DO_SIGNED_NUMBER): New macro.
82206         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82207
82208 2005-03-07  Bruno Haible  <bruno@clisp.org>
82209
82210         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82211
82212 2005-03-07  Bruno Haible  <bruno@clisp.org>
82213
82214         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82215
82216 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82217
82218         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82219         (func_import): Only replace files via --import when they have actually
82220         changed.
82221
82222 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82223
82224         * m4/mmap-anon.m4: New file.
82225         * m4/pagealign_alloc.m4: New file.
82226
82227 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82228             Bruno Haible  <bruno@clisp.org>
82229
82230         * modules/pagealign_alloc: New file.
82231         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82232
82233 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82234             Bruno Haible  <bruno@clisp.org>
82235
82236         * lib/pagealign_alloc.h: New file.
82237         * lib/pagealign_alloc.c: New file.
82238
82239 2005-03-03  Bruno Haible  <bruno@clisp.org>
82240
82241         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82242         Use an all-permissive copyright notice, recommended by RMS.
82243
82244 2005-03-02  Bruno Haible  <bruno@clisp.org>
82245
82246         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82247         of AIX, the replacement has to be done only after <string.h> is
82248         included, therefore not in config.h. stpncpy.h does the replacement,
82249         and stpncpy.c uses it.
82250
82251 2005-03-02  Bruno Haible  <bruno@clisp.org>
82252
82253         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82254         stpncpy.c uses it.
82255
82256 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82257
82258         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82259         The workaround isn't strictly needed for POSIX conformance, and
82260         it's too much of a pain to configure and maintain.  We'll ask
82261         people to fix their kernels instead.
82262         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82263         (NANOSLEEP_BUG_WORKAROUND): Remove.
82264         (xnanosleep): Remove the workaround.
82265
82266 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82267
82268         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82269         Reported by Derek Price.
82270         (Include): Add "timespec.h".
82271
82272         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82273
82274 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82277         to detect nanosleep bug.
82278
82279 2005-03-01  Bruno Haible  <bruno@clisp.org>
82280
82281         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82282
82283 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82284
82285         * modules/gethrxtime: New file.
82286         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82287         (Depends-on): Add gethrxtime.
82288         (configure.ac): Add gl_XNANOSLEEP.
82289         (Makefile.am): Remove lib_SOURCES line.
82290
82291 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82292
82293         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82294         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82295
82296 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82297
82298         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82299         * lib/timespec.h (gettime): Return void, since it always
82300         succeeds now.  All uses changed.
82301         * lib/gettime.c (gettime): Likewise.
82302         [HAVE_NANOTIME]: Prefer nanotime.
82303         Assume gettimeofday succeeds, as POSIX requires.
82304         Assime time () succeeds, since other code already does.
82305         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82306         (timespec_subtract): Remove.
82307         (NANOSLEEP_BUG_WORKAROUND): New constant.
82308         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82309         things considerably.  Use it only on GNU/Linux hosts, since the
82310         workaround shouldn't be needed elsewhere.
82311
82312 2005-02-24  Bruno Haible  <bruno@clisp.org>
82313
82314         * modules/gettext (Files): Add m4/glibc2.m4.
82315
82316 2005-02-24  Bruno Haible  <bruno@clisp.org>
82317
82318         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82319         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82320         * m4/progtest.m4:
82321         Update from GNU gettext 0.14.2.
82322         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82323
82324 2005-02-24  Bruno Haible  <bruno@clisp.org>
82325
82326         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82327         * lib/config.charset: Update from GNU gettext 0.14.2.
82328
82329 2005-02-24  Bruno Haible  <bruno@clisp.org>
82330
82331         * lib/gettext.h: Update from GNU gettext 0.14.2.
82332
82333 2005-02-23  Simon Josefsson  <jas@extundo.com>
82334
82335         * m4/iconvme.m4: New file.
82336
82337 2005-02-23  Jim Meyering  <jim@meyering.net>
82338
82339         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82340         change.
82341         Thanks to Bruno Haible for catching it.
82342
82343 2005-02-22  Simon Josefsson  <jas@extundo.com>
82344
82345         * modules/iconvme: New file.
82346
82347         * MODULES.html.sh: Add iconvme.
82348
82349 2005-02-22  Simon Josefsson  <jas@extundo.com>
82350
82351         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82352
82353 2005-02-22  Simon Josefsson  <jas@extundo.com>
82354
82355         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82356
82357 2005-02-22  Jim Meyering  <jim@meyering.net>
82358
82359         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82360         s/ifndef/ifdef/.
82361
82362 2005-02-20  Neil Conway  <neilc@samurai.com>
82363
82364         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82365         returned by OSX/Darwin if the specified buffer is not large
82366         enough for the hostname.
82367
82368 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82369
82370         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82371         pass it to _help, otherwise the latter coredumps trying to
82372         dereference state.root_argp.
82373
82374 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82375
82376         * modules/chdir-long (Depends-on): Add memrchr.
82377         * modules/memrchr (Files): Add lib/memrchr.h.
82378         (Include): "memrchr.h".
82379
82380 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82381
82382         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82383
82384 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82385
82386         * lib/memrchr.h: New file.
82387         * lib/chdir-long.c: Include it.
82388         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82389         Don't bother including stddef.h.
82390
82391 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82394         inclusion.
82395         Include <sys/types.h>, for dev_t.
82396         (ME_DUMMY, ME_REMOTE): Move from here....
82397         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82398         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82399         Dmitry V. Levin.
82400         Include mountlist.h first, to test the interface.
82401
82402 2005-01-29  Bruno Haible  <bruno@clisp.org>
82403
82404         * lib/progname.c (program_name): Initialize.
82405         Needed when linking statically on MacOS X.
82406
82407 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82408
82409         Sync from coreutils.
82410         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82411         (Depends-on): Add c-strtod.
82412         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82413
82414 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         Sync from coreutils.
82417         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82418
82419         Remove files that are specific to coreutils.
82420         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82421
82422 2005-01-28  Bruno Haible  <bruno@clisp.org>
82423
82424         * modules/javacomp: New file.
82425         * MODULES.html.sh (Java): Add javacomp.
82426
82427 2005-01-28  Bruno Haible  <bruno@clisp.org>
82428
82429         * m4/javacomp.m4: New file, from GNU gettext.
82430
82431 2005-01-28  Bruno Haible  <bruno@clisp.org>
82432
82433         * lib/javacomp.sh.in: New file, from GNU gettext.
82434         * lib/javacomp.h: New file, from GNU gettext.
82435         * lib/javacomp.c: New file, from GNU gettext.
82436
82437 2005-01-26  Simon Josefsson  <jas@extundo.com>
82438
82439         * lib/gai_strerror.c: Use GPL in header.
82440
82441 2005-01-26  Bruno Haible  <bruno@clisp.org>
82442
82443         * modules/javaexec: New file.
82444         * MODULES.html.sh (Java): Add javaexec.
82445
82446 2005-01-26  Bruno Haible  <bruno@clisp.org>
82447
82448         * m4/javaexec.m4: New file, from GNU gettext.
82449
82450 2005-01-26  Bruno Haible  <bruno@clisp.org>
82451
82452         * lib/javaexec.sh.in: New file, from GNU gettext.
82453         * lib/javaexec.h: New file, from GNU gettext.
82454         * lib/javaexec.c: New file, from GNU gettext.
82455
82456 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82457
82458         * modules/lchown (Depends-on): Remove lchown.h
82459
82460 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82461
82462         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
82463         must be defined if the header file was not found, in order
82464         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
82465
82466 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82467
82468         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
82469         initializers for struct pentry_state.
82470         (__argp_error): Check return value of __asprintf
82471         (__argp_failure): Translate error message
82472
82473         * lib/argp-parse.c: Removed braces around the expansion of N_()
82474
82475 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82476
82477         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
82478         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
82479         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
82480         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
82481         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
82482         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
82483         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
82484         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
82485         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
82486         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
82487         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
82488         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
82489         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
82490         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
82491         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
82492         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
82493         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
82494         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
82495         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
82496         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
82497         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
82498         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
82499         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
82500         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
82501         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
82502         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
82503         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
82504         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
82505         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
82506         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
82507         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
82508         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
82509         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
82510         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
82511         xstrtol.m4, xstrtoumax.m4, yesno.m4:
82512         Use an all-permissive copyright notice, recommended by RMS.
82513
82514 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
82515
82516         * modules/chdir-long (Depends-on): Remove mempcpy.
82517
82518 2005-01-21  Jim Meyering  <jim@meyering.net>
82519
82520         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
82521         same value as for Solaris 9.
82522
82523         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
82524         component length.  This included changing the parameter to be
82525         of type `char *' rather than `char const *'.
82526         * lib/chdir-long.h (chdir_long): Update prototype.
82527
82528         * lib/openat.c (fdopendir, fstatat): New functions.
82529         * lib/openat.h: Include headers required for use of DIR and struct
82530         stat.
82531         [AT_SYMLINK_NOFOLLOW]: Define.
82532         (fdopendir, fstatat): Add prototypes.
82533
82534 2005-01-21  Bruno Haible  <bruno@clisp.org>
82535
82536         * modules/classpath: New file.
82537         * MODULES.html.sh (Java): Add classpath.
82538
82539 2005-01-21  Bruno Haible  <bruno@clisp.org>
82540
82541         * lib/classpath.h: New file, from GNU gettext.
82542         * lib/classpath.c: New file, from GNU gettext.
82543
82544 2005-01-20  Simon Josefsson  <jas@extundo.com>
82545
82546         * modules/version-etc-fsf: New file.
82547
82548 2005-01-20  Simon Josefsson  <jas@extundo.com>
82549
82550         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
82551         * lib/version-etc.c: Remove version_etc_copyright.
82552         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
82553         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
82554
82555 2005-01-20  Simon Josefsson  <jas@extundo.com>
82556
82557         * lib/base64.h (isbase64): Add.
82558
82559         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
82560         using a unsigned prototype, don't inline.
82561         (base64_decode): Use it.
82562
82563 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82564
82565         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
82566         it.
82567
82568 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82569
82570         * lib/save-cwd.c (save_cwd): Remove code to support the case
82571         where fchdir is missing or flaky.
82572
82573 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82574
82575         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
82576
82577 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
82580         AC_LIBSOURCES now does this.
82581         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
82582         with new ullong_max module.
82583
82584 2005-01-19  Bruno Haible  <bruno@clisp.org>
82585
82586         * modules/sh-quote: New file.
82587         * MODULES.html.sh (Executing programs): Add sh-quote.
82588
82589 2005-01-19  Bruno Haible  <bruno@clisp.org>
82590
82591         * lib/sh-quote.h: New file, from GNU gettext.
82592         * lib/sh-quote.c: New file, from GNU gettext.
82593
82594 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82595
82596         Merge from coreutils.
82597         * m4/ullong_max.m4: New file.
82598         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
82599         (gl_MACROS): Assume localeconv exists.
82600
82601 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82602
82603         Merge changes from coreutils, as described below in several
82604         changelogs dated today.
82605
82606         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
82607         (O_DIRECTORY): Remove; not needed here, since "." must be
82608         a directory.  All uses removed.
82609         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
82610         universal on Suns, and we also need to test for IRIX.
82611         Revamp code to use 'if' rather than '#if'.
82612         Avoid unnecessary comparison of cwd->desc to 0.
82613
82614         * lib/utimens.c (futimens): Robustify the previous patch, by checking
82615         for known valid error numbers rather than observed invalid ones.
82616
82617 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
82618
82619         * modules/ullong_max: New file.
82620
82621         * modules/chdir-long, modules/openat: New files.
82622         * modules/save-cwd (Depends-on): Depend on chdir-long.
82623         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
82624
82625 2005-01-18  Jim Meyering  <jim@meyering.net>
82626
82627         Merge from coreutils.
82628         * m4/chdir-long.m4, m4/openat.m4: New files.
82629         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
82630         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
82631         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
82632         is sane and DOES follow symlinks.  Besides, testing 20 different
82633         systems found no broken chown implementations.
82634         Prompted by a change in rsync's copy of this macro.
82635         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
82636
82637         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
82638
82639         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
82640         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
82641         NULL-means-set-to-current-time semantics.
82642         Remove temporary file immediately, rather than waiting
82643         for configure's at-exit trap code to do it.
82644
82645 2005-01-18  Jim Meyering  <jim@meyering.net>
82646
82647         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82648
82649         * lib/utimens.c (futimens): Account for the fact that futimes
82650         can also fail with errno == ENOSYS or errno == ENOENT.
82651         Patch from Dmitry V. Levin.
82652
82653         Change the name of the robust chdir function from chdir to chdir_long.
82654         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
82655         (restore_cwd): Use chdir_long, not chdir.
82656         * lib/chdir-long.c: Renamed from chdir.c.
82657         * lib/chdir-long.h: Renamed from chdir.h.
82658         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
82659         Hurd.
82660
82661 2005-01-18  Bruno Haible  <bruno@clisp.org>
82662
82663         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
82664         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
82665         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
82666         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
82667         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
82668         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
82669         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
82670         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
82671         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
82672         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
82673         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
82674         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
82675         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
82676         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
82677         Use an all-permissive copyright notice, recommended by RMS.
82678
82679 2005-01-18  Bob Proulx  <bob@proulx.com>
82680
82681         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
82682         simplify offsetof() macro construct to avoid compile failure with
82683         native HP-UX 11.0 ANSI C compiler.
82684
82685 2005-01-17  Bruno Haible  <bruno@clisp.org>
82686
82687         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
82688         redundant because stpncpy.m4 takes care of it.
82689
82690 2005-01-17  Bruno Haible  <bruno@clisp.org>
82691
82692         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
82693
82694 2005-01-17  Bruno Haible  <bruno@clisp.org>
82695
82696         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
82697         used.
82698
82699 2005-01-17  Bruno Haible  <bruno@clisp.org>
82700
82701         * lib/fwriteerror.h (fwriteerror): Change specification to include
82702         fclose.
82703         * lib/fwriteerror.c: Include <stdbool.h>.
82704         (fwriteerror): At the end, close the file stream. Record whether
82705         stdout was already closed.
82706
82707 2005-01-17  Bruno Haible  <bruno@clisp.org>
82708
82709         * lib/execute.c (environ): Declare if needed.
82710         * lib/pipe.c (environ): Likewise.
82711         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
82712
82713 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82714
82715         * modules/argp: Depend on vsnprintf
82716
82717 2005-01-10  Jim Meyering  <jim@meyering.net>
82718
82719         * modules/closeout (Depends-on): Add atexit.
82720
82721 2005-01-06  Bruno Haible  <bruno@clisp.org>
82722
82723         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
82724
82725 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82726
82727         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
82728         definitions to be after all include files, to avoid collisions.
82729         Problem reported by Bob Proulx.
82730
82731 2005-01-04  Jim Meyering  <jim@meyering.net>
82732
82733         Changes imported from coreutils.
82734         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
82735         as the mkstemp template, use a temporary directory and an
82736         8.3-friendly template to avoid trouble on systems like DJGPP.
82737         Reported by Juan M. Guerrero via Stepan Kasal.
82738         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
82739         close. Remove the temporary directory right away, rather than waiting
82740         for configure's at-exit trap code to do it.
82741         Suggestion from Stepan Kasal.
82742
82743 2005-01-01  Simon Josefsson  <jas@extundo.com>
82744
82745         * gnulib-tool: Print #include directives when --import'ing.
82746
82747 2004-12-28  Simon Josefsson  <jas@extundo.com>
82748
82749         * tests/test-base64.c: Include required header files.  Remove
82750         unused variables.
82751
82752 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82753
82754         * modules/error (Depends-on): Remove gettext.
82755
82756 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
82757
82758         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
82759         not needed.  This removes a dependency on the gettext module.
82760         [defined _LIBC]: Do not include <libintl.h>; not needed.
82761
82762 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82763
82764         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
82765         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
82766
82767 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
82768
82769         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
82770         HAVE_DECL_STRTOLD.
82771
82772 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82773
82774         * modules/getdate (Depends-on): Remove alloca-opt.
82775
82776 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82777
82778         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
82779
82780 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
82781
82782         * lib/argp-parse.c: Include <stddef.h>.
82783         (alignof, alignto): New macros.
82784         (parser_init): Don't assume that void * is aligned sufficiently
82785         for struct option.
82786
82787         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
82788         need to extend the stack.
82789         (YYINITDEPTH): New macro, so that the initial stack isn't overly
82790         large.
82791
82792 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82793
82794         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
82795
82796 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82797
82798         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
82799         (2004-10-24) change.  Apparently this was a false alarm.
82800
82801         * modules/getdate: Depend on alloca-opt, not alloca.
82802
82803 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
82804
82805         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
82806         Remove now-obsolete comment about AIX.
82807         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
82808         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
82809         (YYMAXDEPTH): New macro.
82810
82811 2004-12-18  Simon Josefsson  <jas@extundo.com>
82812
82813         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
82814
82815 2004-12-18  Bruno Haible  <bruno@clisp.org>
82816
82817         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
82818
82819 2004-12-18  Bruno Haible  <bruno@clisp.org>
82820
82821         * lib/fatal-signal.c (fatal_signals): Make non-const.
82822         (init_fatal_signals): New function.
82823         (uninstall_handlers, install_handlers): Ignore signals that were set to
82824         SIG_IGN.
82825         (at_fatal_signal): Call init_fatal_signals.
82826         (init_fatal_signal_set): Likewise. Ignore signals that were set to
82827         SIG_IGN.
82828         Reported by Paul Eggert.
82829
82830 2004-12-18  Bruno Haible  <bruno@clisp.org>
82831
82832         * doc/alloca.texi: New file.
82833         * doc/alloca-opt.texi: New file.
82834
82835 2004-12-17  Jim Meyering  <jim@meyering.net>
82836
82837         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
82838         Otherwise, install-sh could exit with improper exit status when
82839         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
82840
82841 2004-12-16  Simon Josefsson  <jas@extundo.com>
82842
82843         * tests/test-base64.c: Add license.
82844
82845 2004-12-15  Stepan Kasal  <address@hidden>
82846
82847         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
82848
82849 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
82850
82851         * modules/getcwd (Files): Add m4/d-ino.m4.
82852         Suggested by Mark D. Baushke.
82853
82854 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * lib/getdate.y (textint): New member "negative".
82857         (time_zone_hhmm): New function.
82858         Expect 14 shift-reduce conflicts, not 13.
82859         (o_colon_minutes): New rule.
82860         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
82861         (yylex): Set the "negative" member of signed numbers.
82862
82863 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
82864
82865         * doc/getdate.texi (Time of day items, Time zone items):
82866         Describe new formats +00:00, UTC+00:00.
82867
82868 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82869
82870         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
82871         spurious "-l"s.  Problem reported by Stepan Kasal.
82872
82873 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
82874
82875         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
82876         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
82877
82878 2004-12-04  Simon Josefsson  <jas@extundo.com>
82879
82880         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
82881         Vandoorselaere <yoann@prelude-ids.org>.
82882
82883 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82884
82885         Changes imported from coreutils.
82886         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
82887         exist.
82888         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
82889
82890 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         Changes imported from coreutils.
82893         * lib/hard-locale.c: Assume <locale.h> exists.
82894         Include "strdup.h".
82895         (GLIBC_VERSION): New macro.
82896         (hard_locale): Assume setlocale exists.
82897         Rewrite to avoid #ifdef.
82898         Use strdup rather than malloc + strcpy.
82899         * lib/human.c: Assume <locale.h> exists.
82900         (human_readable): Assume localeconv exists.
82901
82902 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
82903
82904         * modules/hard-locale (Depends-on): Add strdup.
82905
82906 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
82907
82908         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
82909         convert T2, not T.  (Imported from libc.)
82910
82911 2004-11-30  Simon Josefsson  <jas@extundo.com>
82912
82913         * modules/restrict (License): Change to LGPL.
82914
82915 2004-11-30  Simon Josefsson  <jas@extundo.com>
82916
82917         * m4/restrict.m4: Add copyright and copying conditions.
82918
82919 2004-11-30  Simon Josefsson  <jas@extundo.com>
82920
82921         * m4/base64.m4: New file.
82922
82923 2004-11-30  Simon Josefsson  <jas@extundo.com>
82924
82925         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
82926         base64.
82927
82928         * tests/test-base64.c: New file.
82929
82930         * modules/base64: New file.
82931
82932 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82933
82934         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
82935         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
82936
82937         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
82938
82939 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
82940
82941         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
82942         (__getcwd.c): Don't restore errno; glibc doesn't.
82943         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
82944         first, falling back to our code only if its results look suspicious.
82945         Ensure that the resulting buffer is only as large as necessary.
82946
82947         * lib/readutmp.c: Include readutmp.h first.
82948         Include <errno.h>, since readutmp.h no longer does that.
82949         * lib/readutmp.h: Don't include <errno.h>,
82950         <sys/param.h>, <time.h>; not needed to establish interface.
82951         (errno): Remove decl.
82952         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
82953         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
82954         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
82955
82956 2004-11-28  Simon Josefsson  <jas@extundo.com>
82957
82958         * lib/base64.h, base64.c: New file.
82959
82960 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
82961
82962         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
82963
82964 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
82965
82966         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
82967         (Depends-on): Remove pathmax, same.  Add mempcpy.
82968         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
82969         (Makefile.am): Append getcwd.h to lib_SOURCES.
82970         (Include): Add getcwd.h.
82971         (Maintainer): Change from Jim Meyering to "all, glibc",
82972         since getdate now uses intended-for-glibc code.
82973         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
82974         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
82975
82976 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82977
82978         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
82979         HP's ANSI C compiler.
82980         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
82981         Declaring int functions causes warnings on some modern systems and
82982         shouldn't be needed to compile on ancient ones.
82983         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
82984         defined.
82985
82986         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
82987         with the following changes.
82988         (__set_errno): Parenthesize properly.
82989         Include <stdbool.h>.
82990         (MIN, MAX, MATCHING_INO): New macros.
82991         (__getcwd): Define with prototype, not K&R form.
82992         Use heuristics to allocate default buffer on stack if possible.
82993         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
82994         behavior, and to avoid the PATH_MAX limit when computing
82995         ../../../../...
82996         Use MATCHING_INO to compare inode number to file.
82997         Check for arithmetic overflow in size calculations.
82998         Fix bug in reallocation of dot array that caused getcwd to fail
82999         on directories nested deeper than 75.
83000         Be more careful about saving errno on error.
83001         Do not use realloc; use only free+malloc, as this is a bit
83002         more flexible and avoids a needless copy operation.
83003         Do not inspect st_dev and st_ino for symbolic links; POSIX
83004         doesn't specify the latter.
83005         Check for closedir errors.
83006         Avoid needless casts.
83007         Use "#ifdef weak_alias" around weak_alias, to be like other
83008         glibc code.
83009         The following changes to getcwd.c have effect only when used in
83010         gnulib; they have no effect inside glibc proper.
83011         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83012         as alloca isn't used.
83013         (alloca, __alloca): Likewise.
83014         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83015         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83016         unconditionally, as gnulib assumes C89 or better.
83017         Do not include <sys/param.h>.
83018         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83019         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83020         better.
83021         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83022         Include <dirent.h> in a way that is compatible with modern Autoconf.
83023         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83024         New macros, if not already defined.
83025         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83026         Use "_LIBC", not "defined _LIBC", for consistency.
83027         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83028         a mempcpy module.
83029         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83030         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83031         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83032         credit only to Jim Meyering and adjust the copyright dates.
83033         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83034         <stdlib.h>, <unistd.h>, "pathmax.h".
83035         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83036         (INITIAL_BUFFER_SIZE): Remove.
83037         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83038
83039 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83042         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83043         Use the _ONCE methods, for efficiency.
83044         Check for fcntl.h.  In test program, include <errno.h>
83045         and <fcntl.h> if available.  Remove old K&R cruft from
83046         test program.  Check for common errors in GNU/Linux,
83047         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83048         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83049         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83050         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83051         name accordingly.
83052         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83053         accommodate new getcwd.c.
83054         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83055         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83056         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83057         that's all we need now.
83058
83059 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83060
83061         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83062         argp-parse.c depends on getopt internals, that means we should
83063         always use our getopt, to be on the safe side.
83064         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83065         order not to spoil the result of an eventual previous invocation
83066         of gl_GETOPT_SUBSTITUTE.
83067
83068 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83069
83070         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83071         redefinition warnings. To avoid them, include the defines
83072         in `#if !defined __need_getopt ... #endif'. The only place
83073         where __getopt_argv_const is used is in definitions
83074         of getopt_long and getopt_long_only below, which are as well
83075         protected by `#ifndef __need_getopt'.
83076         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83077         __need_getopt after including <stdio.h> and <unistd.h> These
83078         headers might have defined it.
83079
83080 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83081
83082         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83083
83084 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83085
83086         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83087         (futimens): New function, which uses futimes if available.
83088         (futimens, utimens): Support timespec==NULL, with same semantics
83089         as utime and utimens.
83090         * lib/utimens.h (futimens): New decl.
83091
83092 2004-11-23  Jim Meyering  <jim@meyering.net>
83093
83094         * lib/getopt_.h: Remove trailing blanks.
83095
83096 2004-11-23  Jim Meyering  <jim@meyering.net>
83097
83098         * lib/__fpending.c: Add comment.
83099
83100 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83101
83102         * modules/canonicalize (Depends-on): Add xreadlink.
83103         Problem reported by James Youngman.
83104
83105 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83106
83107         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83108         New macros.
83109         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83110         optopt): Use them instead of invoking ## directly; otherwise, the
83111         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83112
83113 2004-11-19  Bruno Haible  <bruno@clisp.org>
83114
83115         * lib/strtok_r.c: Move comments from here...
83116         * lib/strtok_r.h: ... to here.
83117
83118 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83119
83120         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83121         implementations that mishandle size_t overflow.
83122
83123 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83124
83125         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83126         might fail.  Problem reported by Yoann Vandoorselaere.
83127         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83128         implementations that mishandle size_t overflow.
83129
83130 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * modules/canon-host (Depends-on): Add strdup.
83133
83134 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83135
83136         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83137
83138 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83139
83140         * lib/canon-host.c: Include "strdup.h".
83141         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83142         Use strdup instead of malloc/strcpy to duplicate strings.
83143
83144         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83145         (human_space_before_unit): New constant.
83146         * lib/human.c (human_readable): Support it.
83147
83148         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83149         (xgetcwd): Set errno correctly when failing.
83150         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83151         the failure is actually due to a PATH_MAX problem.
83152
83153         Further getopt changes to make it more likely that glibc will
83154         buy the changes back.
83155         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83156         (getopt): Use it, so to preserve glibc semantic
83157         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83158         when compiling for libc.
83159         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83160         (getopt_long, getopt_long_only): Use it.
83161
83162         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83163         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83164         (getopt): Argv is now char * const *, as per standard.
83165         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83166         not char *__getopt_argv_const *.
83167         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83168         _getopt_long_only_r): Likewise.
83169         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83170         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83171         _getopt_long_r, _getopt_long_only_r): Likewise.
83172         * lib/getopt_.h (__getopt_argv_const): Remove.
83173         (getopt): Argv is now char * const *, as per standard.
83174
83175         * lib/getdate.y (tORDINAL): New token.
83176         (day, relunit): Allow it for relative times.
83177         (relative_time_table): Use tORDINAL for ordinals.
83178
83179 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83180
83181         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83182         Document that "second" isn't allowed as an ordinal number.
83183
83184 2004-11-16  Jim Meyering  <jim@meyering.net>
83185
83186         * modules/closeout (Depends-on): Add fpending.
83187
83188 2004-11-15  Jim Meyering  <jim@meyering.net>
83189
83190         * lib/closeout.c: Include "__fpending.h" once again.
83191         Include <stdbool.h>.
83192         (close_stdout): Don't fail just because stdout was closed initially,
83193         since some programs don't write to stdout in the normal course of
83194         operation (other than --version and --help), and we don't want this
83195         function to make e.g. `touch file >&-' fail.
83196         But do fail if it was closed and someone has tried to write to it.
83197         E.g., `printf foo >&-' must fail.
83198
83199 2004-11-13  Jim Meyering  <jim@meyering.net>
83200
83201         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83202
83203 2004-11-12  Simon Josefsson  <jas@extundo.com>
83204
83205         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83206         small doc fix is still pending.
83207
83208 2004-11-11  Simon Josefsson  <jas@extundo.com>
83209
83210         * modules/strtok_r: New file.
83211
83212         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83213         strtok_r.
83214
83215 2004-11-11  Simon Josefsson  <jas@extundo.com>
83216
83217         * m4/strtok_r.m4: New file.
83218
83219         * m4/getopt.m4: Replace opterr.
83220
83221 2004-11-11  Simon Josefsson  <jas@extundo.com>
83222
83223         * lib/strtok_r.h, strtok_r.c: New file.
83224
83225 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83226
83227         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83228         of replacing opterr, getopt, etc.  This should handle the
83229         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83230
83231 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83232
83233         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83234         we can stop lying to compilers about the constness of argv when we
83235         are compiled outside glibc.
83236         (getopt, getopt_long, getopt_long_only): Use it.
83237         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83238         _getopt_internal, getopt): Likewise.
83239         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83240         _getopt_long_only_r): Likewise.
83241         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83242         _getopt_long_r, _getopt_long_only_r): Likewise.
83243
83244         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83245         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83246         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83247         the other external symbols.
83248         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83249         declaration, since the above renaming now works around collisions.
83250
83251 2004-11-11  Jim Meyering  <jim@meyering.net>
83252
83253         * lib/linebreak.c: Remove trailing blanks.
83254         * lib/alloca_.h: Likewise.
83255         * lib/acosl.c: Likewise.
83256         * lib/euidaccess.c: Likewise.
83257         * lib/allocsa.h: Likewise.
83258
83259 2004-11-10  Simon Josefsson  <jas@extundo.com>
83260
83261         * m4/getaddrinfo.m4: New file.
83262
83263 2004-11-10  Simon Josefsson  <jas@extundo.com>
83264
83265         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83266
83267 2004-11-10  Simon Josefsson  <jas@extundo.com>
83268
83269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83270         getaddrinfo.
83271
83272         * modules/getaddrinfo: New file.
83273
83274 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83275
83276         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83277
83278 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83279
83280         * lib/mktime.c (SHR): New macro, which is a portable
83281         substitute for >> that should work even on Crays.
83282         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83283         Problem reported by Mark D. Baushke in
83284         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83285         * lib/getdate.y (SHR): Likewise.
83286         (tm_diff): Use it.
83287         * lib/strftime.c (SHR): Likewise.
83288         (tm_diff): Use it.
83289         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83290         quote_these_too, so that right shifts are well defined.  All uses
83291         changed.
83292
83293 2004-11-10  Jim Meyering  <jim@meyering.net>
83294
83295         Ensure that no close failure goes unreported.
83296         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83297         return early when it seems there's nothing to flush.
83298         Don't include __fpending.h.
83299
83300 2004-11-10  Jim Meyering  <jim@meyering.net>
83301
83302         * modules/closeout (Depends-on): Remove fpending.
83303
83304 2004-11-10  Jim Meyering  <jim@meyering.net>
83305
83306         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83307
83308 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83309
83310         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83311         gl_FUNC_STRFTIME.
83312         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83313         and AC_REQUIRE when possible, to avoid duplicate checks.
83314         Check for <wchar.h>.
83315
83316 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83317
83318         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83319
83320 2004-11-09  Bruno Haible  <bruno@clisp.org>
83321
83322         * m4/sockpfaf.m4: New file.
83323
83324 2004-11-05  Bruno Haible  <bruno@clisp.org>
83325
83326         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83327         Reported by Mark D. Baushke <mdb@cvshome.org>.
83328
83329 2004-11-04  Bruno Haible  <bruno@clisp.org>
83330
83331         2004-09-11  Bruno Haible  <bruno@clisp.org>
83332                 * allocsa.valgrind: New file.
83333         2004-02-06  Bruno Haible  <bruno@clisp.org>
83334                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83335                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83336                 Reported by Christopher Seip <chris.seip@hp.com>.
83337
83338 2004-11-04  Bruno Haible  <bruno@clisp.org>
83339
83340         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83341         (Makefile.am): Distribute it.
83342
83343 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83346         with errno == ERANGE if the buffer is too small.
83347         Problem reported by Mark D. Baushke.
83348
83349 2004-11-03  Albert Chin  <china@thewrittenword.com>
83350             Paul Eggert  <eggert@cs.ucla.edu>
83351
83352         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83353         equivalent, substitute $ac_type for equivalent type rather than
83354         blindly using uint32_t *always* which won't work if uint32_t is not
83355         available.  Define _UINT32_T to work around typedef of uint32_t if
83356         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83357         2.5.1.
83358
83359 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83360
83361         * m4/jm-macros.m4: Sync from coreutils.
83362         (gl_MACROS): Check for mbrlen, for pathchk.
83363         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83364
83365 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83366
83367         * lib/xreadlink.c (MAXSIZE): New macro.
83368         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83369         size does not exceed MAXSIZE.  Avoid cast.
83370         As suggested by Mark D. Baushke in
83371         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83372         if readlink fails with buffer size just under MAXSIZE, try again
83373         with MAXSIZE.
83374
83375 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83376
83377         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83378
83379 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83380         and  Paul Eggert  <eggert@cs.ucla.edu>
83381
83382         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83383         (get_date): Overparenthesize to avoid GCC warning.
83384
83385 2004-11-02  Bruno Haible  <bruno@clisp.org>
83386
83387         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83388         returns void.
83389
83390 2004-11-02  Bruno Haible  <bruno@clisp.org>
83391
83392         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83393         function returns void.
83394
83395 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83396
83397         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83398         fflush_unlocked, flockfile, funlockfile, funlockfile,
83399         fputs_unlocked, putc_unlocked.
83400
83401 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83402
83403         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83404         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83405         already declared.
83406
83407 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83408
83409         * modules/getdate (Files): Add doc/getdate.texi.
83410         (Depends-on): Add setenv, xalloc.
83411
83412 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83413
83414         * lib/getdate.y: Add support for TZ="foo" within a date string.
83415         Fix some bugs near time_t boundaries.  Reject dates with
83416         out-of-range components, e.g., "Sept 31".
83417         Include <stdlib.h>, "setenv.h", "xalloc.h".
83418         (ISDIGIT_LOCALE): Remove; unused.
83419         Note that the TZ and time functions used here are not reentrant.
83420         (mktime_ok, get_tz): New functions.
83421         (TZBUFSIZE): New constant.
83422         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83423         This requires that we sometimes generate our own TZ="XXX..." setting.
83424
83425 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83426
83427         * doc/getdate.texi: New file, from coreutils with modifications for
83428         the new TZ parsing.
83429
83430 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83431
83432         * lib/mktime.c (not_equal_tm): Remove redundant check.
83433
83434 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83435
83436         * modules/regex (lib_SOURCES): Add regex.c.
83437         Reported by James Youngman in
83438         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
83439
83440 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83441
83442         * lib/getdate.y: Use Bison 1.875 features, and some minor
83443         code cleanups.  This change does not affect semantics.
83444         Don't include <stdlib.h>; no longer needed.
83445         Don't include unlocked-io.h; only the "#if TEST" code uses
83446         stdio, and performance isn't crucial there.
83447         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
83448         Bison 1.875 features as described below.
83449         All uses of "PC." replaced by "pc->".
83450         (YYSTYPE): Add a forward declaration.
83451         (yylex, yyerror): Use full prototypes in forward decls.
83452         Use "%pure-parser" rather than obsolescent "%pure_parser".
83453         Use %parse-param and %lex-param instead of obsolescent
83454         YYPARSE_PARAM and YYLEX_PARAM.
83455         (meridian_table, month_and_day_table, time_units_table,
83456         relative_time_table, time_zone_table, military_table,
83457         lookup_zone, lookup_word, get_date):
83458         Use NULL instead of 0 where appropriate.
83459         (to_hour): Avoid abort (), to avoid a dependency on
83460         stdlib.h.
83461         (yyerror, yylex): Now accepts parser_control * arg.
83462         (main) [TEST]: Use '\0' rather than 0 for char.
83463
83464 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83465
83466         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
83467
83468 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
83469
83470         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
83471         It's now the caller's responsibility to handle the case where
83472         !HAVE_GETPAGESIZE && !defined getpagesize.
83473
83474         * lib/mktime.c (leapyear): Arg is long int, not int.
83475
83476 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
83477
83478         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
83479
83480 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
83481
83482         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
83483         missing.  Problem reported by James Youngman.
83484
83485 2004-10-16  Simon Josefsson  <jas@extundo.com>
83486
83487         * gnulib-tool: Fix comments.  Fix parse problem.
83488         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
83489
83490 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
83491
83492         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
83493         implementation of getopt_long.  Problem reported by Alexander Taler in:
83494         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
83495
83496 2004-10-15  Bruno Haible  <bruno@clisp.org>
83497
83498         * gnulib-tool: Untabify. Initialize supplied_libname.
83499         (func_usage): More homogenous output.
83500         (func_modules_transitive_closure, func_modules_to_filelist,
83501         func_emit_lib_Makefile_am): New functions.
83502         (func_import): New function, extracted from big case statement. Use
83503         func_get_license, func_modules_transitive_closure,
83504         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
83505         opt_lgpl. Don't use test -a, as it's not portable.
83506         (func_create_testdir): Use func_modules_transitive_closure,
83507         func_modules_to_filelist, func_emit_lib_Makefile_am.
83508
83509 2004-10-15  Bruno Haible  <bruno@clisp.org>
83510
83511         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
83512
83513 2004-10-15  Bruno Haible  <bruno@clisp.org>
83514
83515         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
83516         the portions belonging to each module.
83517         Suggested by Derek Robert Price <derek@ximbiot.com>.
83518
83519 2004-10-12  Simon Josefsson  <jas@extundo.com>
83520
83521         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83522         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
83523         to real functions.
83524
83525 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83526
83527         * modules/vsnprintf: New file.
83528
83529 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83530
83531         * m4/vsnprintf.m4: New file.
83532
83533 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83534
83535         * lib/vsnprintf.h: New file.
83536         * lib/vsnprintf.c: New file.
83537
83538 2004-10-11  Bruno Haible  <bruno@clisp.org>
83539
83540         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
83541         vsnprintf.
83542
83543 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83544
83545         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
83546
83547 2004-10-07  Bruno Haible  <bruno@clisp.org>
83548
83549         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
83550         fits into the provided buffer.
83551
83552 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83553
83554         * lib/diacrit.c, diacrit.h: Add GPL notice.
83555
83556         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
83557         notice.
83558         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
83559         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
83560         This avoids a potential constant-folding bug.
83561
83562 2004-10-05  Bruno Haible  <bruno@clisp.org>
83563
83564         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
83565         for the declaration of strsep.
83566
83567 2004-10-05  Bruno Haible  <bruno@clisp.org>
83568
83569         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
83570
83571 2004-10-04  Simon Josefsson  <jas@extundo.com>
83572
83573         * modules/memmem: New file.
83574         * tests/test-memmem.c: New file.
83575         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
83576
83577 2004-10-04  Simon Josefsson  <jas@extundo.com>
83578
83579         * m4/memmem.m4: New file.
83580
83581 2004-10-04  Simon Josefsson  <jas@extundo.com>
83582
83583         * lib/memmem.h: New file.
83584         * lib/memmem.c: New file, taken from glibc.
83585
83586 2004-10-04  Simon Josefsson  <jas@extundo.com>
83587
83588         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
83589         '#ifdef USE_UNLOCKED_IO'.
83590
83591 2004-10-04  Simon Josefsson  <jas@extundo.com>
83592
83593         * config/srclist.txt: Add memmem from glibc.
83594
83595 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83596
83597         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
83598
83599         * modules/argmatch, modules/argp, modules/closeout, modules/error,
83600         modules/exclude, modules/getdate, modules/getline,
83601         modules/getndelim2, modules/getpass, modules/getpass-gnu,
83602         modules/getusershell, modules/linebuffer, modules/md5,
83603         modules/mountlist, modules/posixtm, modules/readtokens,
83604         modules/readutmp, modules/regex, modules/sha1,
83605         modules/version-etc, modules/yesno:
83606         Remove dependency on unlocked-io.
83607
83608 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83609
83610         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
83611
83612         * m4/unlocked-io.m4: Add copyright notice.
83613         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
83614
83615 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83616
83617         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
83618         * lib/xmalloc.c (xmemdup): Likewise.
83619         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
83620         XFREE): Remove these long-obsolescent macros.
83621         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
83622         * lib/xstrdup.c: Remove.
83623
83624         * lib/regex.c (re_comp): Cast gettext return value to char *,
83625         Problem reported by Martin Neitzel via Mark D. Baushke.
83626
83627 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
83628
83629         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
83630         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
83631         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
83632         regex.c, sha1.c, version-etc.c, yesno.c:
83633         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
83634         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
83635         the includer's responsibility.
83636
83637         Sync from coreutils.
83638
83639         * lib/modechange.c (mode_compile): Don't decrement a pointer that
83640         points to the start of a string, as the C Standard says the
83641         resulting behavior is undefined.
83642
83643         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
83644         simple -> simple_backups, numbered_existing ->
83645         numbered_existing_backups, numbered -> numbered_backups
83646         to avoid shadowing problems.  All uses changed.
83647         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
83648         * lib/backupfile.c (check_extension, numbered_backup):
83649         Rename locals to avoid shadowing 'basename'.
83650         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
83651         once.
83652
83653         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
83654         * lib/.cvsignore: Add getopt.h.
83655
83656 2004-10-04  Bruno Haible  <bruno@clisp.org>
83657
83658         * modules/README: New file.
83659         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
83660         not a module.
83661
83662 2004-10-02  Jim Meyering  <jim@meyering.net>
83663
83664         * lib/dirfd.h, getpagesize.h: Add copyright notice.
83665
83666 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83667
83668         * modules/strsep: New file.
83669
83670 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83671
83672         * m4/strsep.m4: New file.
83673
83674 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
83675
83676         * lib/strsep.h: New file.
83677         * lib/strsep.c: New file.
83678
83679 2004-10-01  Simon Josefsson  <jas@extundo.com>
83680
83681         * lib/snprintf.c (snprintf): Handle size==0.
83682
83683 2004-10-01  Simon Josefsson  <jas@extundo.com>
83684             Bruno Haible  <bruno@clisp.org>
83685
83686         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
83687         (snprintf): Declare 'args'.
83688
83689 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
83690
83691         * lib/snprintf.c: Remove comments as to why each header is needed.
83692
83693 2004-10-01  Bruno Haible  <bruno@clisp.org>
83694
83695         * MODULES.html.sh: Add strsep.
83696
83697 2004-09-30  Simon Josefsson  <jas@extundo.com>
83698
83699         * modules/snprintf: New file.
83700
83701 2004-09-30  Simon Josefsson  <jas@extundo.com>
83702
83703         * m4/snprintf.m4: New file.
83704
83705 2004-09-30  Simon Josefsson  <jas@extundo.com>
83706
83707         * lib/snprintf.h, lib/snprintf.c: New files.
83708
83709 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83710
83711         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
83712         (hol_entry_help): Never translate an empty string.
83713         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
83714         * lib/argp.h (OPTION_NO_TRANS): New option.
83715
83716 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83717
83718         * modules/argp (Maintainer): Replace Simon Josefsson
83719         by Sergey Poznyakoff.
83720
83721 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83722
83723         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
83724         changes merged back into glibc.
83725
83726 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
83727
83728         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
83729
83730 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83731
83732         * lib/xvasprintf.c: Include xalloc.h.
83733         (xvasprintf): Use xalloc_die, not xmalloc_die.
83734
83735 2004-09-29  Bruno Haible  <bruno@clisp.org>
83736
83737         * modules/alloca-opt: New file, derived from modules/alloca.
83738         * modules/allocsa: Depend on alloca-opt instead of alloca.
83739         * modules/setenv: Likewise.
83740         * modules/vasnprintf: Likewise.
83741         * MODULES.html.sh: Add alloca-opt.
83742
83743 2004-09-28  Simon Josefsson  <jas@extundo.com>
83744
83745         * gnulib-tool: New parameter --lgpl, to asseert that modules are
83746         LGPL, and to replace license template from GPL to LGPL.
83747
83748 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83749
83750         * modules/dummy: Change license to LGPL.
83751
83752 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
83753
83754         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
83755
83756 2004-09-24  Simon Josefsson  <jas@extundo.com>
83757
83758         * modules/minmax (License): Change from GPL to LGPL.
83759
83760 2004-09-23  Simon Josefsson  <jas@extundo.com>
83761
83762         * gnulib-tool (--import): Typo.
83763
83764 2004-09-23  Simon Josefsson  <jas@extundo.com>
83765
83766         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
83767
83768 2004-09-22  Bruno Haible  <bruno@clisp.org>
83769
83770         * modules/*: Add 'License' field.
83771         * gnulib-tool: Accept --extract-license option.
83772         (func_get_license): New function.
83773
83774 2004-09-21  Bruno Haible  <bruno@clisp.org>
83775
83776         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
83777         Reported by Simon Josefsson.
83778
83779 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83780
83781         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
83782         gl_AC_TYPE_LONG_LONG.
83783
83784 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
83785
83786         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
83787
83788 2004-09-18  Simon Josefsson  <jas@extundo.com>
83789         and  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
83792         calls with autoreconf.  Define GL_LIB.
83793
83794 2004-09-14  Karl Berry  <karl@gnu.org>
83795
83796         * config/srclist.txt: unsync setenv.c, sigh.
83797
83798 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83799
83800         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
83801         Problem reported by Bruno Haible in:
83802         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
83803
83804 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
83805
83806         * config/srclist.txt: Comment out argp-pvh.c.
83807
83808 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
83809
83810         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
83811         in case some system header has #define'd it.  Problem reported by
83812         Soeren D. Schulze in
83813         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
83814
83815 2004-09-09  Karl Berry  <karl@gnu.org>
83816
83817         * regex.[ch]: delete from the root.  These were supposed to be
83818                 synced with emacs cvs, but this has not happened for about
83819                 a year, and anyway nothing else uses emacs regex.[ch].
83820                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
83821                 lib/regex[.ch] is untouched.
83822
83823 2004-09-09  Bruno Haible  <bruno@clisp.org>
83824
83825         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
83826
83827 2004-09-09  Bruno Haible  <bruno@clisp.org>
83828
83829         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
83830         modifications.
83831         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
83832
83833 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83834
83835         * modules/xvasprintf: New file.
83836         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
83837
83838 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
83839
83840         * lib/xvasprintf.h: New file.
83841         * lib/xvasprintf.c: New file.
83842         * lib/xasprintf.c: New file.
83843
83844 2004-09-08  Bruno Haible  <bruno@clisp.org>
83845
83846         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
83847
83848 2004-09-08  Bruno Haible  <bruno@clisp.org>
83849
83850         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
83851         length is > INT_MAX.
83852         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
83853         more.
83854
83855 2004-09-08  Bruno Haible  <bruno@clisp.org>
83856
83857         * lib/stdint_.h: New file, taken from GNU clisp.
83858
83859 2004-09-08  Bruno Haible  <bruno@clisp.org>
83860             Oskar Liljeblad  <oskar@osk.mine.nu>
83861
83862         * modules/stdint: New file.
83863         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
83864
83865 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83866
83867         Import from coreutils.
83868         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
83869         strings on unbounded length.  alloca's performance benefits aren't
83870         that important here.
83871         (V_STRDUP): Remove.
83872         (parse_with_separator): New function, with most of the internals
83873         of the old parse_user_spec.  Allow user to omit both user and group,
83874         for compatibility with FreeBSD.
83875         Clone only the user name, not the entire spec.
83876         Do not set *uid, *gid unless entirely successful.
83877         Avoid memory leak in some failing cases.
83878         Fix regression for USER.GROUP reported by Dmitry V. Levin in
83879         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
83880         (parse_user_spec): Rewrite to use parse_with_separator.
83881
83882 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83883
83884         * modules/userspec: Don't depend on alloca.
83885
83886 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
83889
83890 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83891
83892         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
83893         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
83894         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
83895
83896 2004-08-16  Simon Josefsson  <jas@extundo.com>
83897
83898         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
83899         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
83900         Add --dry-run for --import.
83901         Let user provided command line parameters override configure.ac
83902         settings.
83903
83904 2004-08-12  Simon Josefsson  <jas@extundo.com>
83905
83906         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
83907         as discussed with Paul Eggert in threads rooted at
83908         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
83909         and
83910         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
83911         Before, the test was empty, and relied on ELIDE_CODE in source
83912         code.)
83913         (gl_PREREQ_GETOPT): New macro.
83914         (gl_GETOPT): Use them.
83915
83916 2004-08-12  Simon Josefsson  <jas@extundo.com>
83917
83918         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
83919         * lib/getopt_.h: Renamed from getopt.h.
83920
83921 2004-08-12  Simon Josefsson  <jas@extundo.com>
83922
83923         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
83924         Change default library name from libfoo to libgnu.
83925         Now, if you have a configure.ac that says:
83926                 gl_SOURCE_BASE(gl)
83927                 gl_M4_BASE(gl/m4)
83928                 gl_MODULES(error getopt etcetera)
83929                 gl_INIT
83930         you can import all you need by running:
83931                 ../gnulib/gnulib-tool --import
83932
83933         * modules/getopt (Files): Rename getopt.h to getopt_.h.
83934         (Makefile.am): Rewrite, use logic from argz.
83935         (Include): Use <getopt.h> instead of "getopt.h".
83936
83937 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83938
83939         * modules/argp (Files): Add m4/unlocked-io.m4.
83940         (Depends-on): Add extensions.
83941
83942 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83943
83944         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
83945         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
83946         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
83947         Check for program_invocation_name, program_invocation_short_name,
83948         flockfile, funlockfile, features.h, _getopt_long_only_r.
83949
83950 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83951
83952         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
83953         its complicated substitute.
83954         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
83955         and program_invocation_name.
83956         (__argp_basename) [!_LIBC]: Remove; the only use was
83957         replaced by its body.
83958         (__argp_short_program_name): Change condition from
83959         !defined __argp_short_program_name to
83960         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
83961         to match argp-namefrob.h.
83962         (__argp_failure): Don't assume strerror_r returns char *.
83963         * lib/argp-parse.c (N_): Define unconditionally.
83964         (argp_default_options): Fill out initializers with 0 to avoid
83965         gcc warnings.
83966
83967 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
83968
83969         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
83970         getopt1.c.
83971
83972 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83973
83974         Merge from coreutils.
83975
83976         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
83977
83978         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
83979         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
83980
83981 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
83982
83983         Merge from coreutils.
83984
83985         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
83986         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
83987         for Reliant Unix 5.43.
83988
83989         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
83990         (union fooround): Use uintmax_t, not long int.
83991         The rest is a merge from libc:
83992         [defined _LIBC]: Include <shlib-compat.h>.
83993         (_obstack) [defined _LIBC]: Remove after 2.3.4.
83994
83995         * lib/settime.c (settime): Recode to avoid warning with
83996         Sun Forte C 6U2.
83997
83998         * lib/strverscmp.c: Convert to UTF-8.
83999
84000 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84001
84002         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84003         m4/uintmax_t.m4.
84004
84005 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84006
84007         * modules/xalloc-die: New file.
84008         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84009
84010         * modules/md5 (Files): Add m4/uint32_t.m4.
84011         * modules/sha1: Renamed from modules/sha.
84012         (Files):
84013         Rename lib/sha.h to lib/sha1.h.
84014         Rename lib/sha.c to lib/sha1.c.
84015         Rename m4/sha.m4 to m4/sha1.m4.
84016         (lib_SOURCES): Likewise.
84017         (configure.ac): Rename gl_SHA to gl_SHA1.
84018         (Include): sha.h -> sha1.h.
84019
84020 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84021
84022         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84023         * m4/sha1.m4: Renamed from sha.m4.
84024         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84025
84026 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84027
84028         * lib/obstack.h (obstack_empty_p):
84029         Don't assume that chunk->contents is suitably aligned.
84030         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84031         Likewise. Problem reported by Benno in
84032         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84033
84034         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84035         readable.  This could be improved further but it'd take some work.
84036
84037 2004-08-08  Simon Josefsson  <jas@extundo.com>
84038
84039         * modules/xgethostname (Depends-on): Remove exit and error (not
84040         used).
84041
84042         * modules/getpass-gnu: Add getpass.h.
84043         (Depends-on): Add stdbool.
84044         * modules/getpass: Add getpass.h.
84045
84046 2004-08-08  Simon Josefsson  <jas@extundo.com>
84047
84048         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84049         Check getpass declaration.
84050
84051 2004-08-08  Simon Josefsson  <jas@extundo.com>
84052
84053         * lib/xgethostname.c: Don't include error.h (not used).
84054
84055         * lib/getpass.h: Add.
84056         * lib/getpass.c: Include getpass.h first.
84057
84058 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84059
84060         * lib/xalloc-die.c: New file.
84061         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84062         All uses removed.
84063         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84064         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84065         xalloc-die.c.
84066         (_, N_, xalloc_die): Move to xalloc-die.c.
84067         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84068         so that we needn't mess with xalloc_msg_memory_exhausted.
84069
84070         * lib/sha1.h: Renamed from sha.h.
84071         (SHA1_H): Renamed from _SHA_H.
84072         (sha1_ctx): Renamed from sha_ctx.
84073         (sha1_init_ctx): Renamed from sha_init_ctx.
84074         (sha1_process_block): Renamed from sha_process_block.
84075         (sha1_process_bytes): Renamed from sha_process_bytes.
84076         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84077         (sha1_read_ctx): Renamed from sha_read_ctx.
84078         (sha1_stream): Renamed from sha_stream.
84079         (sha1_buffer): Renamed from sha_buffer.
84080         * lib/sha1.c: Likewise; renamed from sha.c.
84081         Do not include <sys/types.h>.
84082         Include <stddef.h> rather than <stdlib.h>.
84083
84084 2004-08-08  Bruno Haible  <bruno@clisp.org>
84085
84086         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84087         FILESYSTEM_PREFIX_LEN.
84088         * lib/progreloc.c: Likewise.
84089         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84090
84091 2004-08-06  Simon Josefsson  <jas@extundo.com>
84092
84093         * modules/progname (Depends-on): Don't depend on stdbool.
84094
84095 2004-08-06  Simon Josefsson  <jas@extundo.com>
84096
84097         * modules/getsubopt: New file.
84098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84099         getsubopt.
84100
84101 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84102
84103         More merge from coreutils.
84104
84105         * m4/utimens.m4, m4/utimecmp.m4: New files.
84106         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84107         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84108         prereq.m4, sha.m4: Import changes from coreutils.
84109
84110 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84111
84112         More merge from coreutils.
84113         * modules/raise, modules/readtokens0, modules/utimens:
84114         * modules/utimecmp, module/xnanosleep: New files.
84115         * modules/strftime: Add lib/strftime.h.
84116         Change include from <time.h> to "strftime.h".
84117         * modules/yesno: Add lib/yesno.h.
84118         * modules/backupfile: Remove lib/addext.c.
84119         * modules/euidaccess: Add stat-macros.h.
84120         * modules/canonicalize, modules/euidaccess,
84121         modules/filemode, modules/lchown, modules/makepath,
84122         modules/rmdir, modules/stat: Likewise.
84123
84124 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84125
84126         Merge from tar.
84127         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84128         SIZE_MAX is a valid preprocessor constant.
84129         (__argp_basename): Change from "#ifndef _LIBC"
84130         to "#ifndef __argp_short_program_name", so that
84131         we don't compile these functions for tar.
84132
84133         More merges from coreutils.
84134         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84135         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84136         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84137         * lib/addext.c: Remove; no longer needed.
84138         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84139         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84140         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84141         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84142         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84143         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84144         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84145         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84146         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84147         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84148         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84149         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84150         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84151         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84152         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84153         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84154         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84155         Import changes from coreutils.
84156
84157 2004-08-05  Simon Josefsson  <jas@extundo.com>
84158
84159         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84160
84161 2004-08-05  Simon Josefsson  <jas@extundo.com>
84162
84163         * m4/getsubopt.m4: New file.
84164
84165 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84166
84167         Merge from coreutils.
84168
84169         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84170         * m4/getcwd-path-max.m4: New files.
84171
84172         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84173         FILESYSTEM_PREFIX_LEN ->
84174         FILE_SYSTEM_PREFIX_LEN.
84175         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84176         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84177         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84178         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84179
84180         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84181         prerequisite modules now handle the DOS stuff.
84182         Don't check for unistd.h.
84183
84184 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84185
84186         Merge from coreutils.
84187
84188         * lib/.gdb-history: Remove; this doesn't belong here.
84189
84190         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84191         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84192         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84193         * lib/getcwd.c: New files.
84194
84195         * lib/dirname.h: Include <stdbool.h>.
84196         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84197         for consistency with POSIX terminology.  All uses changed.
84198         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84199         (strip_trailing_slashes): Use bool for booleans.
84200         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84201
84202         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84203         sometimes returns a positive errno value even when it succeeds.
84204         (print_errno_message) [!LIBC]: Fall back on strerror if
84205         __strerror_r fails.
84206
84207         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84208         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84209         (longest_relative_suffix): New function.
84210         (path_concat): Use it.  Assume first argument is not NULL.
84211         Port to DOS.  Omit redundant separators.
84212         Report an error instead of returning NULL.
84213         Use mempcpy instead of memcpy.
84214         (xpath_concat): Remove: not declared or used.
84215
84216         * lib/same.h: Include <stdbool.h>
84217         (same_name): Return bool, not int.
84218         * lib/same.c (same_name): Likewise.
84219         (errno): Don't declare; we assume C89 or better now.
84220
84221         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84222         if not already defined.
84223
84224         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84225         * lib/dup-safer.c (errno): Likewise.
84226
84227 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84228
84229         Merge from coreutils.
84230         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84231         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84232         * modules/path-concat: Don't depend on strdup.
84233
84234 2004-08-03  Simon Josefsson  <jas@extundo.com>
84235
84236         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84237         * lib/progname.h: Don't include stdbool.h.
84238
84239 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84240
84241         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84242         * MODULES.html.sh (func_all_modules): Remove fatal.
84243
84244 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84245
84246         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84247
84248 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84249
84250         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84251         working.
84252
84253 2004-08-02  Simon Josefsson  <jas@extundo.com>
84254
84255         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84256         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84257         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84258
84259 2004-08-01  Simon Josefsson  <jas@extundo.com>
84260
84261         * lib/xgetdomainname.c: Include stdlib.h, for free().
84262
84263 2004-07-19  Bruno Haible  <bruno@clisp.org>
84264
84265         * MODULES.html.sh (func_all_modules): Add dummy.
84266
84267 2004-07-16  Simon Josefsson  <jas@extundo.com>
84268
84269         * modules/dummy: New file.
84270
84271 2004-07-16  Simon Josefsson  <jas@extundo.com>
84272
84273         * lib/dummy.c: New file.
84274
84275 2004-07-16  Bruno Haible  <bruno@clisp.org>
84276
84277         * lib/backupfile.h: Add extern "C" for C++.
84278         * lib/closeout.h: Likewise.
84279         * lib/copy-file.h: Likewise.
84280         * lib/findprog.h: Likewise.
84281         * lib/full-write.h: Likewise.
84282         * lib/pathname.h: Likewise.
84283         * lib/progname.h: Likewise.
84284         * lib/stpcpy.h: Likewise.
84285         * lib/stpncpy.h: Likewise.
84286         * lib/strcase.h: Likewise.
84287         * lib/strstr.h: Likewise.
84288         * lib/xalloc.h: Likewise.
84289
84290         * lib/mbswidth.h: Add extern "C" for C++.
84291         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84292
84293 2004-07-13  Robert Millan  <robertmh@gnu.org>
84294
84295         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84296
84297 2004-07-09  Simon Josefsson  <jas@extundo.com>
84298
84299         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84300         failed without this.)
84301
84302 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * modules/chown (Files): Add lib/fchown-stub.c, since
84305         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84306
84307 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84308
84309         * lib/fchown-stub.c: New file.
84310
84311 2004-06-24  Jim Meyering  <jim@meyering.net>
84312
84313         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84314
84315 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84316
84317         * modules/argz: Omit "#include".
84318
84319         * MODULES.html.sh (func_all_modules): Add calloc, to match
84320         2004-06-01 addition of calloc module.
84321
84322 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84323
84324         * m4/argz.m4: New file, which is autoupdated from libtool.
84325
84326 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84327
84328         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84329         libtool.
84330
84331 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84332
84333         * config/srclist-update: Don't insist on "USA." before the
84334         close-comment, as libtool omits the period and puts the */ on a
84335         separate line.
84336         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84337         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84338
84339 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84340
84341         * modules/argz: New file.
84342         * MODULES.html.sh (func_all_modules): Add argz.
84343
84344 2004-06-12  Jim Meyering  <jim@meyering.net>
84345         and  Paul Eggert  <eggert@cs.ucla.edu>
84346
84347         * modules/hash (Files): Add lib/xalloc.h.
84348         * modules/pipe (Depends-on): Add wait-process.
84349         * modules/stat (Depends-on): Add xalloc.
84350         * modules/userspec (Files): Add lib/userspec.h.
84351         * modules/xstrto
84352
84353         Upgrade from gettext-0.13.
84354         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84355         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84356         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84357
84358 2004-06-10  Jim Meyering  <jim@meyering.net>
84359
84360         * lib/calloc.c: New file.
84361
84362 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84363
84364         * lib/getdate.y (yylex): Allow space between sign and number.
84365         Problem reported by Dan Jacobson.
84366
84367 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         Merge from coreutils CVS.
84370
84371         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84372         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84373         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84374         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84375         xstrtol.m4: Fix copyright date and/or serial number.
84376
84377         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84378         See if we need an fchown replacement.
84379         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84380         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84381         and use the replacement function if we detect either defect.
84382
84383         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84384         gl_UTIMECMP.
84385
84386 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84387         and  Jim Meyering  <jim@meyering.net>
84388
84389         Merge from coreutils CVS.
84390
84391         * lib/stat-macros.h: New file, with contents from file-type.h
84392         and coreutils' system.h.
84393         * lib/file-type.c: Include "stat-macros.h".
84394         * lib/file-type.h (file_type): Move all macro definitions to new file,
84395         stat-macros.h.
84396
84397         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84398         Wrap old code with this conditional.
84399         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84400         function that does not dereference symlinks.
84401         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84402
84403         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84404         dependency problems.
84405         (xreadlink): Accept new arg SIZE, for efficiency.
84406         All decls and uses changed.
84407         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84408
84409         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84410         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84411
84412         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84413         sysexits.h.
84414
84415 2004-06-01  Jim Meyering  <jim@meyering.net>
84416
84417         * m4/calloc.m4: New file.
84418
84419 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84422         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84423         Also, fix a typo in a diagnostic.
84424
84425 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84426
84427         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84428         or AC_FUNC_REALLOC.
84429
84430 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84431
84432         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84433         macros to be defined.
84434         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84435         the allocator returns NULL because the requested size is zero.
84436
84437 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
84440         var.  Add comment explaining why libc still defines it.  This
84441         merges the following patch from glibc:
84442         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
84443
84444 2004-05-20  Andreas Schwab  <schwab@suse.de>
84445
84446         * m4/free.m4: Replace free if it not known to work, not the other
84447         way round.
84448
84449 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
84452         present in glibc since revision 1.1 of this file.
84453         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
84454         obstack_alignment_mask, obstack_alloc, obstack_base,
84455         obstack_blank, obstack_blank_fast, obstack_chunk_size,
84456         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
84457         obstack_grow0, obstack_init, obstack_int_grow,
84458         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
84459         obstack_next_free, obstack_object_size, obstack_ptr_grow,
84460         obstack_ptr_grow_fast, obstack_room): Remove declarations of
84461         nonexistent functions.
84462
84463 2004-05-18  Karl Berry  <karl@gnu.org>
84464
84465         * config/srclist.txt: break link for vasnprintf.c.
84466
84467 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84468
84469         Port obstack to the AS/400, where pointers are 16 bytes wide and
84470         you cannot cast an integer to a valid pointer.  This patch is
84471         currently waiting to be integrated into glibc; see
84472         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
84473
84474         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
84475         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
84476         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
84477         (struct obstack): temp member is now a union of a pointer and
84478         an integer, instead of an integer.  All integer uses changed.
84479         This does not affect the physical layout of struct obstack,
84480         except on hosts (like the AS/400) where the size or alignment of
84481         void * is greater than that of ptrdiff_t.
84482         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
84483         __STDC__)]: Store temporary in pointer member of union, not
84484         integer member.
84485         * lib/obstack.c: Include <stddef.h>, for offsetof.
84486         (struct fooalign): Remove; it doesn't need a name.
84487         (union fooround): Change double to long double, and add void *.
84488         (DEFAULT_ALIGNMENT): Use offsetof to compute.
84489         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
84490         not a macro.  Hence the values are always int; so remove all
84491         casts-to-int in uses.
84492
84493 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
84496         we can get this patch merged into glibc.
84497
84498 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84499             Paul Eggert  <eggert@cs.ucla.edu>
84500
84501         * m4/argp: Depend on alloca.
84502
84503 2004-05-17  Derek R. Price  <derek@ximbiot.com>
84504             Paul Eggert  <eggert@cs.ucla.edu>
84505
84506         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
84507         freecoding.
84508
84509 2004-05-17  Bruno Haible  <bruno@clisp.org>
84510
84511         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
84512         precision that consists of a '.' followed by an empty digit string.
84513         Patch by Tor Lillqvist <tml@iki.fi>.
84514
84515 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84516
84517         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
84518         for backward compatibility with older code.  We need our own
84519         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
84520         it under some other name, and our alloca.h will define it.
84521
84522 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
84523             Derek Price  <derek@ximbiot.com>
84524
84525         * lib/alloca.c: Include <alloca.h>, to get our interface.
84526         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
84527         include <alloca.h> first.  Use C89 prototype for alloca; this
84528         requires including <stddef.h> for size_t.  Use extern "C" if C++.
84529         Use #elif for simplicity, since we can assume C89 now.
84530         Don't try to source the system alloca.h since it will not be found
84531         and to prevent recursively including its replacement.
84532         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
84533         * lib/regex.c: Likewise.
84534
84535 2004-05-16  Derek Price  <derek@ximbiot.com>
84536             Paul Eggert  <eggert@cs.ucla.edu>
84537
84538         getline cleanup.  This changes the getndelim2 API: both order of
84539         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
84540         no delimiter).
84541
84542         * lib/getline.c: Don't include stddef.h or stdio.h, since our
84543         interface does that.
84544         (getline): Always use getdelim, so that we don't have two
84545         copies of this code.
84546         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
84547         if available.
84548         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
84549         (GETNDELIM2_MAXIMUM): New macro.
84550         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
84551         instead of the old practice of delim2==0.  All callers changed.
84552         Return -1 on overflow, instead of returning junk.
84553         Do not set *linesize unless allocation succeeds.
84554         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
84555         that we include sys/types.h.
84556         * lib/getnline.h: Likewise.
84557         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
84558         (getndelim2): Reorder arguments.
84559         * lib/getnline.c (getnline, getndelim):
84560         Don't discard the NMAX argument.
84561         (getnline): Invoke getndelim, to avoid code duplication.
84562         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
84563         of (size_t) -1 by callers of the getnline family.
84564
84565 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84566
84567         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
84568         Check for gettimeofday.
84569         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
84570         Check for settimeofday, stime.
84571
84572 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84573
84574         * lib/nanosleep.c (suspended): Change its type from int to
84575         sig_atomic_t volatile.
84576         (first_call): Make it private to rpl_nanosleep, and have it
84577         be zero initially as that's a bit faster.
84578         (my_usleep): Round up fractional times instead of truncating them,
84579         as this is the usual meaning for 'sleep'.
84580
84581         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
84582         doesn't work.
84583         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
84584         (ENOSYS): Define if not defined.
84585         (settime): Fall back on stime if it exists and settimeofday fails.
84586         But don't bother with fallbacks if a method fails with errno == EPERM.
84587
84588 2004-05-11  Jim Meyering  <jim@meyering.net>
84589
84590         Prior to this change, the save_cwd caller required read access to the
84591         current directory on most systems (ones with the fchdir function).
84592
84593         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
84594         fails, try write-only, and finally, resort to using xgetcwd.
84595
84596 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84597
84598         * lib/obstack.c, obstack.h: Import changes from libc.
84599
84600 2004-04-28  Bruno Haible  <bruno@clisp.org>
84601
84602         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
84603         also implicitly appends .exe to executables.
84604         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
84605         accepts Windows pathnames.
84606         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84607         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84608         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
84609         Treat Cygwin like Windows, since it now accepts Windows pathnames.
84610         Reported by Derek Robert Price <derek@ximbiot.com>.
84611
84612 2004-04-21  Karl Berry  <karl@gnu.org>
84613
84614         * config/srclist.txt (localcharset.c): break sync.
84615
84616 2004-04-20  Paul Eggert  <eggert@twinsun.com>
84617
84618         * m4/host-os.m4: Add a copyright notice.
84619
84620 2004-04-20  Jim Meyering  <jim@meyering.net>
84621
84622         Change UTILS_ to gl_ in AC_DEFINE'd names.
84623         Change utils_- and jm_-prefixed variables, too.
84624         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
84625         UTILS_FUNC_MKDIR_TRAILING_SLASH.
84626         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
84627
84628         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
84629         Don't emit trailing blanks.
84630         Also rename jm_-prefixed variables to have gl_ prefix.
84631
84632         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
84633         Also rename jm_-prefixed variables to have gl_ prefix.
84634
84635         * m4/jm-macros.m4: Reflect the renamings.
84636         * m4/prereq.m4: Likewise.
84637
84638 2004-04-20  Jim Meyering  <jim@meyering.net>
84639
84640         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
84641         memory.
84642
84643 2004-04-20  Jim Meyering  <jim@meyering.net>
84644             Bruno Haible  <bruno@clisp.org>
84645
84646         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
84647         memory when realloc fails.
84648
84649 2004-04-19  Jim Meyering  <jim@meyering.net>
84650
84651         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
84652         now that readutmp.c may call `free (0)'.
84653
84654 2004-04-19  Bruno Haible  <bruno@clisp.org>
84655
84656         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
84657         * m4/inttypes_h.m4: Likewise.
84658         * m4/stdint_h.m4: Likewise.
84659         * m4/intmax_t.m4: Likewise.
84660         * m4/uintmax_t.m4: Likewise.
84661
84662 2004-04-18  Jim Meyering  <jim@meyering.net>
84663
84664         * m4/prereq.m4: Don't forbid jm_ prefix.
84665
84666         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
84667         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
84668         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
84669         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
84670         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
84671         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
84672         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
84673         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
84674         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
84675         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
84676         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
84677         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
84678         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
84679         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
84680         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
84681         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
84682         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
84683         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
84684         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
84685
84686 2004-04-18  Jim Meyering  <jim@meyering.net>
84687
84688         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
84689         failure, don't leak memory and do call END_UTMP_ENT.
84690
84691 2004-04-16  Jim Meyering  <jim@meyering.net>
84692
84693         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
84694         coreutils' stat program.
84695         (gl_PREREQ): Don't require jm_PREREQ_STAT.
84696
84697 2004-04-11  Paul Eggert  <eggert@twinsun.com>
84698
84699         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
84700         C89.
84701         (CHAR_BIT): Remove, since we assume C89.
84702         Include <stdint.h> if available, as per current Autoconf CVS advice.
84703
84704 2004-03-31  Jim Meyering  <jim@meyering.net>
84705
84706         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
84707         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
84708         * m4/xalloc.m4: Likewise.
84709
84710 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84711
84712         Merge from coreutils.
84713
84714         * m4/inttostr.m4: New file.
84715         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
84716         Require AM_STDBOOL_H and gl_TIMESPEC instead.
84717         Require gl_CLOCK_TIME.
84718         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
84719
84720 2004-03-30  Paul Eggert  <eggert@twinsun.com>
84721
84722         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
84723         not bool, to be more consistent with Unix conventions.
84724         Suggested by Bruno Haible.
84725
84726         Merge from coreutils.
84727
84728         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
84729         * lib/umaxtostr.c: New files.
84730
84731         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
84732         the usual <time.h> dance.
84733         (get_date): Change signature to support fractional time stamps.
84734         All callers changed.
84735         * lib/getdate.y: Include "getdate.h" first, as we can now
84736         assume C89 and don't need to worry about 'const'.
84737         Similarly, include "unlocked-io.h" near start, not in middle.
84738         Include <limits.h>.
84739         (textint.value): Use long int rather than int.
84740         (textint.digits): Use size_t rather than int.
84741         (BILLION, LOG10_BILLION): New constants.
84742         (parser_control): New member rel_ns.  Members day_ordinal,
84743         time_zone, month, day, hour, minutes, rel_year, rel_month,
84744         rel_day, rel_hour, rel_minutes, rel_seconds
84745         are now long int, not int.  Member seconds is now struct timespec,
84746         not int.  New member timespec_seen.  Members dates_seen, days_seen,
84747         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
84748         not int.
84749         (%union.intval): Now long int, not int.
84750         New member timespec.
84751         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
84752         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
84753         (spec): Now is a timespec or an item list.
84754         (timespec, items): New nonterminals.
84755         (time, rel, relunit, number, get_date):
84756         Add support for fractional seconds.
84757         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
84758         (gmtime, localtime, mktime): Remove decls; not needed with C89.
84759         (to_hour): First arg is now long int, not int.
84760         (to_year): Returns long int, not int.
84761         Don't treat year -70 like 70.
84762         (tm_diff): Returns long int, not int.
84763         (lookup_word): Use bool instead of int when appropriate.
84764         (yylex): Use size_t for count, not int.
84765         Detect overflow when parsing large integer constants.
84766         Add support for fractions.
84767         (get_date): Make pointers 'const' if possible.
84768         Use more-portable code to detect integer overflow.
84769         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
84770         Don't use ctime; it's not reliable if the year has >4 digits.
84771
84772         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
84773         This is for compatibility with BSD.
84774
84775         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
84776         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
84777         From coreutils' system.h.
84778
84779         * lib/userspec.c: Don't include "posixver.h".
84780         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
84781         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
84782         compatible extension.  Simplify code by removing a boolean int
84783         that was always nonzero if a string was nonnull.
84784
84785 2004-03-30  Jim Meyering  <jim@meyering.net>
84786
84787         Merge from coreutils.
84788
84789         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
84790         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
84791         on some systems one must include <grp.h> before it.
84792         Reported by Christian Krackowizer.
84793
84794 2004-03-30  Jim Meyering  <jim@meyering.net>
84795
84796         Merge from coreutils.
84797
84798         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
84799
84800         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
84801         an empty input stream.
84802
84803         * lib/readtokens.c: Include <stdbool.h>.
84804         (readtoken): Use `size_t' rather than int/long.
84805         All callers adjusted.
84806         Use `bool' rather than `int' where appropriate.
84807         Use memset rather than an explicit loop.
84808         Use x2nrealloc rather than xrealloc.
84809         Allow the use of `\0' as a delimiter.
84810         (readtokens): Likewise.
84811         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
84812
84813 2004-03-30  Jim Meyering  <jim@meyering.net>
84814
84815         * m4/realloc.m4: Remove file, since now it does no more than
84816         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
84817         the `configure.ac' section of module/realloc.
84818         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
84819
84820 2004-03-30  Bruno Haible  <bruno@clisp.org>
84821
84822         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
84823         nonnull.
84824
84825 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84826
84827         Merge changes to getloadavg.c from coreutils and Emacs.
84828
84829         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
84830         Define to an expression, not to the empty string.
84831         Include cloexec.h and xalloc.h.
84832         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
84833         Use set_cloexec_flag rather than rolling our own.
84834         * lib/cloexec.c, lib/cloexec.h: New files.
84835
84836 2004-03-29  Paul Eggert  <eggert@twinsun.com>
84837
84838         * m4/cloexec.m4: New file.
84839
84840 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84841
84842         * lib/getopt.h: Sync with libc CVS.
84843
84844 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84845             Bruno Haible  <bruno@clisp.org>
84846
84847         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
84848         mbswidth.
84849
84850 2004-03-18  Paul Eggert  <eggert@twinsun.com>
84851             Bruno Haible  <bruno@clisp.org>
84852
84853         * lib/mbswidth.h: Include <wchar.h> only if
84854         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
84855         <wchar.h>.
84856         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
84857
84858 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84859
84860         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
84861         Sync with libc CVS.
84862         * lib/getopt_int.h: New file, also synced from libc.
84863
84864 2004-03-09  Paul Eggert  <eggert@twinsun.com>
84865
84866         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
84867         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
84868         Bring back getopt.c, getopt.h, getopt1.c.
84869
84870 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84871
84872         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
84873         All uses changed.  Check for sa_sigaction member; this fixes
84874         a bug first reported by Jason Andrade in
84875         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84876
84877 2004-03-07  Paul Eggert  <eggert@twinsun.com>
84878
84879         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
84880         '#if' expressions.  Unlike the code it replaces, it does not
84881         depend on (defined _SC_PAGESIZE).  However, it does depend on
84882         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
84883         first reported by Jason Andrade in
84884         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
84885
84886 2004-02-25  Simon Josefsson  <jas@extundo.com>
84887
84888         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
84889
84890 2004-02-25  Simon Josefsson  <jas@extundo.com>
84891
84892         * lib/strdup.h: New file.
84893         * lib/strdup.c: Include it.
84894         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
84895         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
84896
84897 2004-02-23  Karl Berry  <karl@gnu.org>
84898
84899         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
84900         (from fencepost.gnu.org:/gd/gnuorg).
84901
84902 2004-02-23  Karl Berry  <karl@gnu.org>
84903
84904         * config/srclistvars.sh (GNUORG) [karl]: redefine.
84905         * config/srclist.txt: add maintain/standards documents.
84906
84907 2004-02-18  Bruno Haible  <bruno@clisp.org>
84908
84909         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
84910         Reported by Derek Robert Price <derek@ximbiot.com>.
84911
84912 2004-02-16  Karl Berry  <karl@gnu.org>
84913
84914         * config/mkinstalldirs, install-sh: update from automake.
84915
84916 2004-02-06  Karl Berry  <karl@gnu.org>
84917
84918         * m4/po.m4: update from gettext 0.14.1.
84919
84920 2004-02-06  Karl Berry  <karl@gnu.org>
84921
84922         * lib/config.charset: update from gettext 0.14.1.
84923
84924 2004-02-05  Paul Eggert  <eggert@twinsun.com>
84925
84926         Add comments and code, prompted by suggestions from Bruno Haible
84927         for sh-quote.
84928         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
84929         describing the enum quoting_style values.
84930         * lib/quotearg.c (quotearg_alloc): New function.
84931         (quotearg_buffer_restyled): Treat lone { and } as special.
84932         Treat = as special.  Work around bug with older shells
84933         that "see" a '\' that is really the 2nd byte of a multibyte char.
84934         Quote empty string with shell_quoting_style.
84935
84936 2004-02-03  Bruno Haible  <bruno@clisp.org>
84937
84938         * m4/pipe.m4: New file, from GNU gettext.
84939
84940 2004-02-03  Bruno Haible  <bruno@clisp.org>
84941
84942         * lib/pipe.h: New file, from GNU gettext.
84943         * lib/pipe.c: New file, from GNU gettext.
84944
84945 2004-01-27  Bruno Haible  <bruno@clisp.org>
84946
84947         * m4/execute.m4: New file, from GNU gettext.
84948
84949 2004-01-27  Bruno Haible  <bruno@clisp.org>
84950
84951         * lib/execute.h: New file, from GNU gettext.
84952         * lib/execute.c: New file, from GNU gettext.
84953         * lib/w32spawn.h: New file, from GNU gettext.
84954
84955 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84956
84957         Merge from diffutils.
84958
84959         * lib/file-type.c (file_type): Add typed memory objects.
84960         * lib/file-type.h (S_TYPEISTMO): New macro.
84961
84962         * lib/c-stack.h (c_stack_action): Remove argv argument.
84963         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
84964         (die): Don't calculate message unless segv_action returns.
84965         (get_stack_location, min_address_from_argv, max_address_from_argv,
84966         volatile stack_base, volatile_stack_size): Remove.
84967         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
84968         that every segmentation violation is a stack overflow.  (Ouch!)
84969         See Debian bug 136249 (still outstanding) for more info about why
84970         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
84971
84972 2004-01-24  Paul Eggert  <eggert@twinsun.com>
84973
84974         Exit-status fix from coreutils.
84975
84976         Use exit_failure consistently in place of EXIT_FAILURE,
84977         so that program exit statuses are consistent on failure.
84978
84979         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
84980         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
84981         * lib/argmatch.h: Comment fix to match the above.
84982         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
84983         Now a macro referring to exit_failure, instead of a separate
84984         variable.  Include "exitfail.h" to get it.
84985         * lib/xstrtol.h: Include "exitfail.h".
84986         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
84987
84988         * lib/long-options.c (parse_long_options): Use prototype
84989         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
84990         for clarity.
84991
84992 2004-01-21  Jim Meyering  <jim@meyering.net>
84993
84994         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
84995         so as not to conflict with a different-sized __mktime_internal
84996         function in GNU libc.
84997         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
84998         Problem building statically-linked `ls' reported by Michael Brunnbauer.
84999
85000 2004-01-20  Karl Berry  <karl@gnu.org>
85001
85002         * config/config.guess: update from config.
85003
85004         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85005
85006 2004-01-20  Bruno Haible  <bruno@clisp.org>
85007
85008         Safer stack allocation.
85009         * lib/setenv.c: Include allocsa.h.
85010         (alloca): Remove fallback definition.
85011         (freea): Remove macro.
85012         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85013         instead of freea.
85014
85015 2004-01-20  Bruno Haible  <bruno@clisp.org>
85016
85017         * m4/eealloc.m4: New file, from GNU gettext.
85018
85019 2004-01-20  Bruno Haible  <bruno@clisp.org>
85020
85021         * m4/allocsa.m4: New file, from GNU gettext.
85022
85023 2004-01-20  Bruno Haible  <bruno@clisp.org>
85024
85025         * lib/xallocsa.h: New file, from GNU gettext.
85026         * lib/xallocsa.c: New file, from GNU gettext.
85027
85028 2004-01-20  Bruno Haible  <bruno@clisp.org>
85029
85030         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85031
85032 2004-01-20  Bruno Haible  <bruno@clisp.org>
85033
85034         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85035         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85036         specially.
85037
85038 2004-01-20  Bruno Haible  <bruno@clisp.org>
85039
85040         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85041         patch.
85042
85043 2004-01-20  Bruno Haible  <bruno@clisp.org>
85044
85045         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85046
85047 2004-01-20  Bruno Haible  <bruno@clisp.org>
85048
85049         * lib/eealloc.h: New file.
85050
85051 2004-01-20  Bruno Haible  <bruno@clisp.org>
85052
85053         * lib/binary-io.h: Avoid warnings on Cygwin.
85054
85055 2004-01-20  Bruno Haible  <bruno@clisp.org>
85056
85057         * lib/allocsa.h: New file, from GNU gettext.
85058         * lib/allocsa.c: New file, from GNU gettext.
85059
85060 2004-01-18  Karl Berry  <karl@gnu.org>
85061
85062         * doc/gpl.texi, doc/lgpl.texi: new files.
85063
85064 2004-01-18  Karl Berry  <karl@gnu.org>
85065
85066         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85067         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85068
85069 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85070
85071         Merge from coreutils.
85072
85073         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85074         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85075         (gl_DEFAULT_POSIX2_VERSION): Move
85076         the documentation from 'configure' into 'config.hin',
85077         so that 'configure --help' isn't burdened by it and
85078         we don't have to worry about its formatting there.
85079         Reword the documentation so that it's more succinct
85080         and can be run together into a single paragraph.
85081         * m4/same.m4 (gl_SAME): Check for pathconf.
85082
85083 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85084
85085         Merge from coreutils.
85086
85087         * lib/posixver.c: Include posixver.h.
85088
85089         * lib/same.c: Include <stdbool.h>, <limits.h>.
85090         (_POSIX_NAME_MAX): Define if not defined.
85091         (MIN): New macro.
85092         (same_name): If file names are silently truncated, report
85093         that the file names are the same if they are the same after
85094         the silent truncation.
85095
85096         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85097         conversion function.
85098         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85099         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85100         longer needed.
85101
85102 2004-01-15  Jim Meyering  <jim@meyering.net>
85103
85104         Merge from coreutils.
85105
85106         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85107         if no library is required.
85108         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85109         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85110         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85111         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85112         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85113         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85114         value, $ac_cv_search_crypt, if it's "none required".
85115         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85116         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85117         not gl_FUNC_GETLOADAVG.
85118         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85119         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85120
85121 2004-01-15  Jim Meyering  <jim@meyering.net>
85122
85123         Merge from coreutils.
85124
85125         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85126         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85127         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85128
85129         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85130         optional configure-time default.
85131
85132         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85133
85134         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85135
85136 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85137
85138         Merge from coreutils.
85139
85140         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85141         value, $ac_cv_search_nanosleep, if it's "none required".
85142
85143 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85144
85145         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85146         with like-named macro in fnmatch.c.
85147         (EXT): Use an internal constant instead.
85148
85149         Merge fnmatch patches from glibc.
85150         * lib/fnmatch.c (mbsinit): Remove define.
85151         Add libc_hidden_ver (__fnmatch, fnmatch).
85152         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85153         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85154
85155 2004-01-14  Karl Berry  <karl@gnu.org>
85156
85157         * config/install-sh: update from automake.
85158
85159 2004-01-13  Karl Berry  <karl@gnu.org>
85160
85161         * config/install-sh: update from automake.
85162
85163 2004-01-09  Karl Berry  <karl@gnu.org>
85164
85165         * config/install-sh: update from automake.
85166
85167 2004-01-05  Karl Berry  <karl@gnu.org>
85168
85169         * config/config.{sub,guess}: update from config.
85170
85171 2003-12-31  Karl Berry  <karl@gnu.org>
85172
85173         * config/depcomp: update from automake.
85174
85175 2003-12-14  Karl Berry  <karl@gnu.org>
85176
85177         * lib/config.charset: update from gettext-runtime.
85178
85179 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85180
85181         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85182         Bug reported by Alfred M. Szmidt.
85183
85184 2003-12-03  Bruno Haible  <bruno@clisp.org>
85185
85186         * m4/gettext.m4: Upgrade from gettext-0.13.
85187         * m4/po.m4: Upgrade from gettext-0.13.
85188         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85189         * m4/intmax.m4: New file, from gettext-0.13.
85190         * m4/printf-posix.m4: New file, from gettext-0.13.
85191
85192 2003-11-29  Karl Berry  <karl@gnu.org>
85193
85194         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85195
85196 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85197             Bruno Haible  <bruno@clisp.org>
85198
85199         * lib/printf-parse.h: Don't include sys/types.h.
85200         (ARG_NONE): New macro.
85201         (char_directive): Change type of *arg_index fields to size_t.
85202         * lib/printf-parse.c: Don't include sys/types.h.
85203         (SSIZE_MAX): Remove macro.
85204         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85205         Remove unnecessary overflow check.
85206         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85207         fields.
85208
85209 2003-11-25  Bruno Haible  <bruno@clisp.org>
85210
85211         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85212
85213 2003-11-25  Bruno Haible  <bruno@clisp.org>
85214
85215         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85216         gt_TYPE_SSIZE_T.
85217
85218 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85219
85220         * modules/alloca: Remove dependency on xalloc.
85221
85222 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85223
85224         * lib/alloca.c: Remove dependency on xalloc module.
85225         (xalloc_die): Remove.
85226         (memory_full) [!defined emacs]: New macro.
85227         [!defined emacs]: Don't include xalloc.h.
85228         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85229         address arithmetic overflows.  Change datatypes a bit to avoid
85230         unnecessary casts.
85231
85232 2003-11-22  Jim Meyering  <jim@meyering.net>
85233
85234         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85235         s/size/size_t/.
85236
85237 2003-11-21  Karl Berry  <karl@gnu.org>
85238
85239         * config/config.{sub,guess}: update from config.
85240
85241 2003-11-18  Karl Berry  <karl@gnu.org>
85242
85243         * config/config.{sub,guess}: update from config.
85244
85245         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85246
85247 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85248
85249         * README: Mention that S+T cannot overflow if S is the size of
85250         an existing object and T is sufficiently small.
85251
85252 2003-11-17  Jim Meyering  <jim@meyering.net>
85253
85254         On systems without utime and without a utimes function capable of
85255         dealing with a NULL struct utimbuf* argument, this utime replacement
85256         could -- in unusual circumstances -- leak a file descriptor.
85257         * lib/utime.c: Include <unistd.h> and <errno.h>.
85258         (utime_null): Be sure to close `fd' and to preserve errno.
85259         Reported by Geoff Collyer via Arnold Robbins.
85260
85261 2003-11-17  Bruno Haible  <bruno@clisp.org>
85262
85263         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85264         (Depends-on): Add xsize.
85265
85266 2003-11-17  Bruno Haible  <bruno@clisp.org>
85267
85268         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85269
85270 2003-11-17  Bruno Haible  <bruno@clisp.org>
85271
85272         * lib/vasnprintf.c (alloca): Remove fallback definition.
85273         (freea): Remove definition.
85274         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85275         Reported by Paul Eggert.
85276
85277 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85278             Bruno Haible  <bruno@clisp.org>
85279
85280         Protect against address arithmetic overflow.
85281         * lib/printf-args.h: Include stddef.h.
85282         (arguments): Change type of field 'count' to size_t.
85283         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85284         'unsigned int' where appropriate.
85285         * lib/printf-parse.h: Include sys/types.h.
85286         (char_directive): Change type of *arg_index fields to ssize_t.
85287         (char_directives): Change type of fields 'count', max_*_length to
85288         size_t.
85289         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85290         (SSIZE_MAX): Define fallback value.
85291         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85292         instead of 'int' where appropriate. Check a_allocated, d_allocated
85293         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85294         * lib/vasnprintf.c: Include xsize.h.
85295         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85296         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85297         overflow. Avoid wraparound when converting a width or precision from
85298         decimal to binary.
85299
85300 2003-11-16  Bruno Haible  <bruno@clisp.org>
85301
85302         Update from GNU gettext.
85303         * lib/printf-parse.c: Generalize to it can be compiled for wide
85304         strings.
85305         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85306         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85307         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85308         SNPRINTF): New macros.
85309         Don't include <alloca.h> if the file is used inside libintl.
85310         (local_wcslen): New function, for Solaris 2.5.1.
85311         (VASNPRINTF): Use it instead of wcslen.
85312
85313 2003-11-16  Bruno Haible  <bruno@clisp.org>
85314
85315         * lib/xsize.h (xmax): New function.
85316         (xsum, xsum3, xsum4): Declare as "pure" functions.
85317
85318 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85319
85320         * modules/xalloc (Files): Undo latest change, since xalloc.h
85321         no longer needs SIZE_MAX or PTRDIFF_MAX.
85322
85323 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85324
85325         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85326         gl_PTRDIFF_MAX.
85327
85328 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85329
85330         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85331         "return", to pacify some unknown compiler.  Problem reported
85332         by Joerg Schilling.
85333
85334 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85335
85336         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85337         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85338         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85339         heuristic is just as accurate as far as we know, and it removes a
85340         dependency on size_max.m4 and ptrdiff_max.m4.
85341
85342 2003-11-11  Bruno Haible  <bruno@clisp.org>
85343
85344         * modules/xsize (Files): Add m4/size_max.m4.
85345         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85346
85347 2003-11-11  Bruno Haible  <bruno@clisp.org>
85348
85349         * m4/size_max.m4: New file.
85350         * m4/ptrdiff_max.m4: New file.
85351         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85352         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85353         (gl_XALLOC): Invoke it.
85354
85355 2003-11-11  Bruno Haible  <bruno@clisp.org>
85356
85357         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85358         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85359         defined.
85360
85361 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85362
85363         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85364         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85365         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85366         From Bruno Haible.
85367         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85368         not (size_t) -1, since it's defined here.
85369
85370 2003-11-09  Karl Berry  <karl@gnu.org>
85371
85372         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85373
85374 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85375
85376         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85377         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85378         Reject sizes of exactly SIZE_MAX bytes.
85379         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85380         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85381
85382 2003-11-05  Bruno Haible  <bruno@clisp.org>
85383
85384         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85385         SIZE_MAX defined in <limits.h> on Solaris.
85386
85387 2003-11-04  Jim Meyering  <jim@meyering.net>
85388
85389         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85390         variable names, rather than @VAR@.
85391         * modules/poll: Likewise.
85392
85393 2003-11-04  Bruno Haible  <bruno@clisp.org>
85394
85395         * modules/xsize: New file.
85396         * modules/linebreak: Depend on xsize.
85397         * MODULES.html.sh (func_all_modules): Add xsize.
85398
85399 2003-11-04  Bruno Haible  <bruno@clisp.org>
85400
85401         * m4/xsize.m4: New file.
85402
85403 2003-11-04  Bruno Haible  <bruno@clisp.org>
85404
85405         * lib/xsize.h: New file.
85406         * lib/linebreak.c: Include xsize.h.
85407         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85408         argument for overflow.
85409         Suggested by Paul Eggert.
85410
85411 2003-11-03  Karl Berry  <karl@gnu.org>
85412
85413         * config/config.{guess,sub}: update from config.
85414
85415 2003-11-03  Jim Meyering  <jim@meyering.net>
85416
85417         * modules/userspec (lib_SOURCES): Add userspec.h.
85418         (Include): Add "userspec.h".
85419         Improve description.
85420
85421 2003-11-03  Jim Meyering  <jim@meyering.net>
85422
85423         * lib/userspec.c: Include "userspec.h".
85424         * lib/userspec.h: New file.
85425
85426 2003-11-03  Bruno Haible  <bruno@clisp.org>
85427
85428         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85429
85430 2003-11-03  Bruno Haible  <bruno@clisp.org>
85431
85432         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85433         available, to avoid (extremely rare) race condition.
85434         Suggested by Paul Eggert.
85435
85436 2003-11-02  Karl Berry  <karl@gnu.org>
85437
85438         * config/srclist.txt (vasprintf.c): sync broken, sigh.
85439
85440 2003-10-31  Paul Eggert  <eggert@twinsun.com>
85441
85442         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
85443         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
85444         (read_filesystem_list): Set and use me_type_malloced.
85445         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
85446         whatever the type happens to be), for brevity and consistency.
85447         Check for size calculation overflow on Alphas running OSF/1.
85448
85449 2003-10-31  Jim Meyering  <jim@meyering.net>
85450
85451         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
85452
85453         * lib/linebuffer.c: Include <string.h> for declaration of memset.
85454
85455 2003-10-30  Paul Eggert  <eggert@twinsun.com>
85456             Bruno Haible  <bruno@clisp.org>
85457
85458         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
85459         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
85460
85461 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
85462
85463         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
85464         netbsd*-gnu*.  Suggested by Robert Millan.
85465
85466 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85467
85468         * modules/group-member: Depend on stdbool.
85469
85470 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85471
85472         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
85473
85474 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85475
85476         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
85477         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
85478         after the 'gnu' in these cases.  This fixes some bugs in the
85479         previous change, and is based on suggestions by Robert Millan.
85480
85481 2003-10-29  Paul Eggert  <eggert@twinsun.com>
85482
85483         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
85484         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
85485         no longer needed.
85486         * lib/quotearg.c (quotearg_n_options): Use it.
85487         * lib/group-member.c: Include <stdbool.h>.
85488         (free_group_info): Arg is now const *; don't free arg.
85489         (get_group_info): Now returns bool and accepts struct group_info *,
85490         rather than returning a malloc'ed struct group_info *.
85491         All uses changed.  Check for overflow in internal size calculation.
85492
85493         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
85494         rather than xmalloc/xrealloc.
85495         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
85496         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
85497         conformance bug: the old code used a pointer after freeing the
85498         storage that it addressed.
85499         * lib/hash.c (hash_initialize): Simplify the code by using
85500         xalloc_oversized rather than doing it by hand.
85501         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
85502         the buffer preserved.  Use free and xmalloc instead.
85503         * lib/quotearg.c (quotearg_n_options): Likewise.
85504         Use a simpler test for size overflow.  Don't use xalloc_oversized
85505         because unsigned int might be wider than size_t (!); this suggests
85506         that we should switch from unsigned int to size_t for slot numbers.
85507
85508 2003-10-28  Paul Eggert  <eggert@twinsun.com>
85509
85510         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
85511         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
85512         NetBSD kernels.  Requested by Richard Stallman.
85513
85514 2003-10-27  Paul Eggert  <eggert@twinsun.com>
85515
85516         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
85517         to allocate the returned structure.  Do not allocate a subarray,
85518         as x2nrealloc will do that.
85519         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
85520         instead of xnrealloc.
85521         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
85522
85523 2003-10-27  Bruno Haible  <bruno@clisp.org>
85524
85525         * lib/stdbool_.h: Better support for BeOS.
85526
85527 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85528
85529         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
85530         now uses inline.
85531
85532 2003-10-26  Paul Eggert  <eggert@twinsun.com>
85533
85534         * lib/xalloc.h (xalloc_oversized): New static inline function, for
85535         callers that want to do their own size-overflow checking.  Include
85536         <stdbool.h>, since xalloc_oversized returns bool.
85537         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
85538         to use xalloc_oversized.
85539
85540         Add two functions x2realloc, x2nrealloc, for programs that grow
85541         arrays dynamically by doubling their sizes.
85542         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
85543         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
85544         New functions.
85545
85546         Port to C99 semantics for 'inline' of external functions.
85547         Bug reported by Bruno Haible.
85548         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
85549         with the old contents of xnmalloc.
85550         (xnmalloc, xmalloc): Use it.
85551         (xnrealloc_inline): New static inline function,
85552         with the old contents of xnrealloc.
85553         (xnrealloc, xrealloc): Use it.
85554
85555         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
85556         that.
85557
85558 2003-10-26  Karl Berry  <karl@gnu.org>
85559
85560         * config/srclist.txt (COPYING.DOC): no longer available from
85561         /gd/gnuorg; don't know where the ultimate source is.
85562
85563 2003-10-25  Paul Eggert  <eggert@twinsun.com>
85564
85565         Fix several address-calculation bugs in the hash modules,
85566         plus some minor code cleanup.
85567
85568         * lib/hash.h: Include <stdbool.h>, for bool.
85569         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
85570         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
85571         hash_get_n_entries, hash_get_max_bucket_length,
85572         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
85573         hash_rehash): Use size_t rather than unsigned.
85574         * lib/hash.c (struct hash_table, hash_get_n_buckets,
85575         hash_get_n_buckets_used, hash_get_n_entries,
85576         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
85577         hash_get_entries, hash_do_for_each, hash_string, is_prime,
85578         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
85579         Likewise.
85580         (SIZE_MAX): Define if not defined.
85581         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
85582         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
85583         hash_print):
85584         Use const * when possible.
85585         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
85586         (check_tuning): Fix bug: if tuning parameters were very close to
85587         0 or 1, rounding errors could have caused subscript violations.
85588         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
85589         (hash_initialize): Add 'fail:' label
85590         to free table and return NULL, and use it to simplify code.
85591         Use calloc rather than clearing the storage ourself.
85592         (hash_initialize, hash_rehash): Check for arithmetic overflow in
85593         buffer size calculations.
85594         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
85595         Include <stddef.h>, for size_t.
85596         * lib/hash-pjw.c (hash_pjw): Likewise.
85597         Switch to method described by Bruno Haible.
85598         Include <limits.h>, for CHAR_BIT.
85599         (SIZE_BITS): New macro.
85600
85601 2003-10-23  Paul Eggert  <eggert@twinsun.com>
85602
85603         * m4/getline.m4 (AM_FUNC_GETLINE):
85604         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
85605         hosts.  Problem reported by Derek Robert Price in
85606         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
85607         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
85608         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
85609
85610 2003-10-21  Paul Eggert  <eggert@twinsun.com>
85611
85612         * lib/getndelim2.c (getndelim2): When size calculation overflows,
85613         ceiling the allocation at NMAX bytes rather than silently
85614         discarding input bytes before NMAX is reached.  This makes
85615         a difference only if NMAX exceeds SIZE_MAX / 2.
85616
85617         * lib/obstack.c: Merge from glibc.
85618         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
85619         Add libc_hidden_def (_obstack_newchunk).
85620         (_obstack_free) [! defined _LIBC]: Remove.
85621         [defined _LIBC]: Make a strong alias from obstack_free, rather than
85622         a clone of the function body.
85623         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
85624         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
85625
85626         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
85627         glibc.
85628         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
85629         arg to memcpy.
85630
85631         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
85632         (obstack_ptr_grow_fast, obstack_int_grow_fast):
85633         Don't use lvalue casts, as GCC plans to remove support for them
85634         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
85635         was also present in the non-GCC version, indicating that this
85636         code had always been buggy and had never been widely used.
85637         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
85638         Use the fast variant of each macro, rather than copying the
85639         definiens of the fast variant; that way, we'll be more likely to
85640         catch future bugs in the fast variants.
85641
85642 2003-10-20  Bruno Haible  <bruno@clisp.org>
85643
85644         * modules/wait-process: New file.
85645         * MODULES.html.sh (func_all_modules): Add wait-process.
85646
85647 2003-10-20  Bruno Haible  <bruno@clisp.org>
85648
85649         * m4/wait-process.m4: New file.
85650
85651 2003-10-20  Bruno Haible  <bruno@clisp.org>
85652
85653         * lib/wait-process.h: New file, from GNU gettext.
85654         * lib/wait-process.c: New file, from GNU gettext.
85655
85656 2003-10-19  Jim Meyering  <jim@meyering.net>
85657
85658         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
85659         HPUX 10.20.
85660
85661 2003-10-18  Karl Berry  <karl@gnu.org>
85662
85663         * config/config.guess: update from config.
85664
85665 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85666
85667         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
85668         (getgroups): First arg is int, not size_t.
85669         Don't let 'free' mangle errno.
85670
85671 2003-10-16  Paul Eggert  <eggert@twinsun.com>
85672
85673         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
85674
85675 2003-10-16  Karl Berry  <karl@gnu.org>
85676
85677         * config/config.{guess,sub}: update from config.
85678
85679 2003-10-16  Jim Meyering  <jim@meyering.net>
85680
85681         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
85682         memcpy.
85683
85684 2003-10-15  Paul Eggert  <eggert@twinsun.com>
85685
85686         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
85687         (SIZE_MAX): Remove.
85688         (new_exclude, add_exclude_file): Initial size no longer needs to
85689         be a power of 2.
85690         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
85691         our own address arithmetic overflow checking.
85692
85693         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
85694         (fnmatch): Do not alloca more than 2000 wide characters;
85695         instead, use malloc for large buffers.
85696         Check for address arithmetic overflow, and return -1
85697         with errno set to ENOMEM in that case.
85698         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
85699         (NEW_PATTERN): Do not alloca more than 8000 bytes;
85700         instead, return -1.  Check for address arithmetic overflow.
85701
85702 2003-10-14  Paul Eggert  <eggert@twinsun.com>
85703
85704         Handle invalid suffixes and overflow independently, so that
85705         callers can treat them independently as needed.  Fix some bugs in
85706         suffix handling, e.g., "100k@" was not diagnosed as an invalid
85707         suffix for a human-readable blocksize.  The major caller-visible
85708         change is the addition of a new
85709         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
85710         that both overflow and suffix chars were found.
85711
85712         * lib/human.c (humblock): Don't check separately for invalid suffix
85713         char; that is xstrtoumax's job (now that its bug is fixed).
85714         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
85715         INTMAX_MAX]: New macros.
85716         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
85717         TYPE_MAXIMUM): New macros.
85718         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
85719         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
85720         if overflow occurs, as it's what __strtol does and it's more useful
85721         in practice.
85722         (__xstrtol): If __strtol reports some error other than ERANGE,
85723         reflect it to the caller as LONGINT_INVALID.  If it reports
85724         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
85725         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
85726         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
85727         value.
85728         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
85729         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
85730         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
85731         [defined UINTMAX_MAX]: New macros.
85732
85733 2003-10-14  Bruno Haible  <bruno@clisp.org>
85734
85735         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
85736
85737 2003-10-14  Bruno Haible  <bruno@clisp.org>
85738
85739         * m4/sig_atomic_t: New file, from GNU gettext.
85740         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
85741
85742 2003-10-14  Bruno Haible  <bruno@clisp.org>
85743
85744         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
85745         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
85746         Also use volatile where needed.
85747
85748 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85749
85750         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
85751         Change maintainer from Bruno Haible to 'all'.
85752
85753 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85754
85755         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
85756
85757 2003-10-12  Paul Eggert  <eggert@twinsun.com>
85758
85759         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
85760         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
85761         and define in terms of the other primitives.
85762         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
85763         (SIZE_MAX): Define if not already defined.
85764         (array_size_overflow): New function.
85765         (xalloc_die): Abort instead of exiting if 'error' returns.
85766         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
85767         (xmalloc, xrealloc): Use them.
85768         (xcalloc): Check for address arithmetic overflow.
85769         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
85770         a bit faster than strcpy.
85771
85772 2003-10-10  Simon Josefsson  <jas@extundo.com>
85773
85774         * modules/argp (Depends-on): Add restrict and strcase.
85775
85776 2003-10-10  Simon Josefsson  <jas@extundo.com>
85777
85778         * m4/argp.m4: Add AC_C_INLINE.
85779
85780 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85781
85782         Merge getpass from libc, plus a few fixes.
85783
85784         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
85785         Include <stdbool.h>.
85786         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
85787         __fsetlocking to empty.
85788         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
85789         do include <bits/libc-lock.h>.
85790         Do not include <fcntl.h>; not needed.
85791         [_LIBC]: Include <wchar.h>.
85792         (NOTCANCEL_MODE): New macro.
85793         (flockfile, funlockfile) [_LIBC]: New macros.
85794         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
85795         [!_LIBC]: New macros.
85796         (call_fclose): New function.
85797         (getpass): Use it.  Save tty stream separately; this simplifies the
85798         code and makes it more reliable if stdin happens to equal stdout.
85799         Invoke __fsetlocking on tty.
85800         Handle thread cancellation if needed.
85801         Namespace cleanup (use __tcgetattr, __getline).
85802         Use bool for Booleans.
85803         [USE_IN_LIBIO]: Handle wide streams.
85804         [!_LIBC]: Unconditionally do the fseek, since we don't know what
85805         stream might go where.
85806
85807         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
85808         doesn't have to include <stdio.h> before us.
85809         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
85810         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
85811         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
85812         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
85813         if not declared, so that we can use getpass.c code from libc without
85814         rewriting it.
85815         (flockfile, ftrylockfile, funlockfile): New macros.
85816
85817 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85818
85819         * modules/getpass: Depend on stdbool.
85820
85821 2003-10-08  Paul Eggert  <eggert@twinsun.com>
85822
85823         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
85824
85825 2003-10-07  Karl Berry  <karl@gnu.org>
85826
85827         * config/config.{guess,sub}: update from config.
85828
85829 2003-10-06  Jim Meyering  <jim@meyering.net>
85830             Bruno Haible  <bruno@clisp.org>
85831
85832         This lets translators provide better translations for the
85833         "Written by ..." part of --version output.
85834         * lib/version-etc.h: Include stdarg.h.
85835         (version_etc_copyright): Declare as readonly.
85836         (version_etc): Make this function variadic with a NULL-terminated list
85837         of author name strings.
85838         (version_etc_va): New declaration.
85839         * lib/version-etc.c: Include stdarg.h, stdlib.h.
85840         (version_etc_copyright): Declare as readonly.
85841         (version_etc_va): New function. Provide a different translatable string
85842         for each possible number of authors < 10. Abbreviate when there are 10
85843         authors or more.
85844         (version_etc): Make this function variadic. Call version_etc_va.
85845         Suggestion from Gary V. Vaughan.
85846
85847         * lib/long-options.h (parse_long_options): Change prototype: the
85848         authors string is moved to the end and becomes variadic.
85849         * lib/long-options.c: Include stdarg.h.
85850         (parse_long_options): Make this function variadic, too.
85851         Call version_etc_va, not version_etc.
85852
85853 2003-10-06  Bruno Haible  <bruno@clisp.org>
85854
85855         * modules/version-etc-2: Remove file.
85856         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
85857
85858 2003-10-06  Bruno Haible  <bruno@clisp.org>
85859
85860         * modules/fatal-signal: New file.
85861         * MODULES.html.sh (func_all_modules): Add fatal-signal.
85862
85863 2003-10-06  Bruno Haible  <bruno@clisp.org>
85864
85865         * m4/fatal-signal.m4: New file.
85866         * m4/signalblocking.m4: New file, from GNU gettext.
85867
85868 2003-10-06  Bruno Haible  <bruno@clisp.org>
85869
85870         * lib/version-etc-2.h: Remove file.
85871         * lib/version-etc-2.c: Remove file.
85872
85873 2003-10-06  Bruno Haible  <bruno@clisp.org>
85874
85875         * lib/fatal-signal.h: New file, from GNU gettext.
85876         * lib/fatal-signal.c: New file, from GNU gettext.
85877
85878 2003-10-05  Paul Eggert  <eggert@twinsun.com>
85879
85880         * README: Rework advice for preventing empty .o files.
85881         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
85882         not <sys/types.h>.
85883
85884 2003-10-04  Karl Berry  <karl@gnu.org>
85885
85886         * lib/argp*: update from libc.
85887
85888 2003-10-04  Karl Berry  <karl@gnu.org>
85889
85890         * config/config.{guess,sub}: update from config.
85891
85892 2003-10-02  Bruno Haible  <bruno@clisp.org>
85893
85894         * modules/lchown (Include): Add lchown.h.
85895         * modules/time_r (Include): Use "..." syntax.
85896         * modules/xgetdomainname (Include): Add xgetdomainname.h.
85897
85898 2003-10-01  Simon Josefsson  <jas@extundo.com>
85899
85900         * MODULES.html.sh (func_all_modules): Move gethostname from section
85901         'based on' to section 'lacking' POSIX:2001.
85902
85903 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
85904
85905         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
85906         to output mode on the same stream.
85907
85908 2003-09-29  Paul Eggert  <eggert@twinsun.com>
85909
85910         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
85911         Fix arg typo in previous patch.
85912
85913 2003-09-28  Jim Meyering  <jim@meyering.net>
85914
85915         * lib/error.c: Correct cpp indentation.
85916
85917 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85918
85919         * modules/free: New file.
85920
85921 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85922
85923         * m4/free.m4: New file.
85924
85925 2003-09-27  Paul Eggert  <eggert@twinsun.com>
85926
85927         * lib/minmax.h (MIN, MAX)
85928         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
85929         Omit the special code that used __typeof__, since we worry that
85930         it could be more trouble than it's worth.  See:
85931         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
85932         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
85933
85934         * lib/free.c: New file.
85935
85936 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
85937
85938         Trivial fixes to Makefile.am parts of module listings.
85939         * modules/strstr: Append strstr.h to lib_SOURCES.
85940         * modules/strcase: Likewise, for strcase.h.
85941
85942 2003-09-27  Karl Berry  <karl@gnu.org>
85943
85944         * config/mkinstalldirs: update from automake.
85945
85946 2003-09-26  Paul Eggert  <eggert@twinsun.com>
85947
85948         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
85949         (error_tail): Do not loop, reallocating temporary buffer, since
85950         the output cannot contain more wide characters than the input
85951         contains bytes, the size must be big enough already.  This avoids
85952         one potential size overflow calculation.  Check for size overflow
85953         when calculating temporary buffer size.  Free temporary buffer
85954         when done, if it was allocated with malloc; this plugs a memory
85955         leak.  Remove casts from void * to pointers, that are no longer
85956         needed now that we're assuming C89 or better.
85957
85958         Merge error changes from glibc.
85959
85960         * lib/error.c, error.h: Update copyright notice header to match glibc.
85961         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
85962         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
85963         Disable cancellation while printing error.
85964         * lib/error.h: Prepend __ to parameter names.
85965
85966 2003-09-26  Jim Meyering  <jim@meyering.net>
85967
85968         * lib/error.c (error_tail): Move some declarations
85969         into inner scope where the local variables are used.
85970
85971 2003-09-26  Bruno Haible  <bruno@clisp.org>
85972
85973         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
85974         stpncpy().
85975         Don't define stpncpy through config.h; it's now done through stpncpy.h.
85976
85977 2003-09-26  Bruno Haible  <bruno@clisp.org>
85978
85979         * lib/stpncpy.h (gnu_stpncpy): New declaration.
85980         (stpncpy): Define as alias for gnu_stpncpy.
85981         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
85982
85983 2003-09-25  Simon Josefsson  <jas@extundo.com>
85984
85985         * lib/xgetdomainname.h: New file.
85986         * lib/xgetdomainname.c: New file.
85987
85988 2003-09-25  Simon Josefsson  <jas@extundo.com>
85989             Bruno Haible  <bruno@clisp.org>
85990
85991         * modules/getdomainname: New file.
85992         * modules/xgetdomainname: New file.
85993         * MODULES.html.sh (func_all_modules): Add getdomainname,
85994         xgetdomainname.
85995
85996 2003-09-25  Simon Josefsson  <jas@extundo.com>
85997             Bruno Haible  <bruno@clisp.org>
85998
85999         * m4/getdomainname.m4: New file.
86000
86001 2003-09-25  Simon Josefsson  <jas@extundo.com>
86002             Bruno Haible  <bruno@clisp.org>
86003
86004         * lib/getdomainname.h: New file.
86005         * lib/getdomainname.c: New file.
86006
86007 2003-09-25  Karl Berry  <karl@gnu.org>
86008
86009         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86010
86011 2003-09-25  Karl Berry  <karl@gnu.org>
86012
86013         * config/install-sh: update from automake.
86014
86015 2003-09-25  Bruno Haible  <bruno@clisp.org>
86016
86017         * modules/version-etc-2: New file, from modules/version-etc with
86018         modifications.
86019         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86020
86021 2003-09-25  Bruno Haible  <bruno@clisp.org>
86022
86023         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86024         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86025
86026 2003-09-24  Simon Josefsson  <jas@extundo.com>
86027
86028         * modules/xgethostname: Add xgethostname.h.
86029
86030 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86031
86032         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86033         the buffer associated with the argument.  Bug reported by
86034         Simon Josefsson.
86035
86036 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86037
86038         * README: Document assumptions that 'int' is at least 32 bits
86039         wide, that integer arithmetic is 2's complement without overflow,
86040         that there are no holes in integer values, that adding sizes of
86041         two nonoverlapping objects can't overflow, and that all-bits-zero
86042         yields scalar zero.  Fix spelling and capitalization typos.
86043
86044 2003-09-19  Karl Berry  <karl@gnu.org>
86045
86046         * lib/argp.h: update from libc.
86047
86048 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86049
86050         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86051         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86052         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86053
86054 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86055
86056         * gnulib-tool: Use "test -h", not "test -L", for portability
86057         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86058         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86059         (sed_extract_prog): Issue s commands one-by-one, rather than
86060         using \| in one s command.
86061
86062 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86063
86064         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86065         input error, instead of returning NULL the next time we are called
86066         (and therefore losing track of errno).
86067
86068 2003-09-16  Bruno Haible  <bruno@clisp.org>
86069
86070         * gnulib-tool (func_create_testdir): Warn about duplicated
86071         dependencies.
86072
86073 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86074
86075         * modules/argmatch, modules/fatal, modules/obstack,
86076         modules/xalloc, modules/xgethostname: Sort dependencies by
86077         importance, not alphabetically.
86078
86079 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86080
86081         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86082         fails, so that the caller gets the proper errno.
86083
86084         * lib/readutmp.c (read_utmp): Likewise.
86085         Check for fstat error.  Close stream and free storage
86086         when failing.
86087
86088 2003-09-14  Karl Berry  <karl@gnu.org>
86089
86090         * config/srclist.txt (strdup.c): disable for c89 changes.
86091
86092 2003-09-14  Jim Meyering  <jim@meyering.net>
86093
86094         * lib/getloadavg.c: Correct cpp indentation.
86095         * lib/strdup.c: Likewise.
86096         * lib/vasnprintf.c: Likewise.
86097
86098 2003-09-14  Bruno Haible  <bruno@clisp.org>
86099
86100         * modules/fwriteerror: New file.
86101         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86102
86103 2003-09-14  Bruno Haible  <bruno@clisp.org>
86104
86105         * lib/fwriteerror.h: New file.
86106         * lib/fwriteerror.c: New file.
86107
86108 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86109
86110         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86111         modules/xgethostname, modules/xalloc: Depend on exit.
86112
86113 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86114
86115         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86116
86117         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86118         and AC_MINIX, too, so that their extensions are available.
86119
86120         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86121         This macro has been superseded by gl_BACKUPFILE.
86122
86123         More patches to assume C89 or better.
86124
86125         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86126
86127         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86128         unconditionally.
86129         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86130         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86131         Include <string.h>, <stdlib.h> unconditionally.
86132         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86133         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86134         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86135         headers or for string.h.
86136         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86137         or strtoul.
86138
86139         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86140         headers.
86141         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86142         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86143         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86144         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86145         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86146         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86147         memcpy, memset.
86148         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86149         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86150         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86151         strtol.
86152         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86153         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86154         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86155         strtoul.
86156
86157 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86158
86159         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86160         * lib/obstack.c [!defined _LIBC]: Likewise.
86161         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86162         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86163         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86164
86165         More changes to assume C89 or better.
86166
86167         * lib/error.c (error_tail): Assume vprintf.
86168
86169         * lib/argmatch.c (getenv): Remove decl.
86170         * lib/progreloc.c (get_full_program_name): Define via prototype.
86171         * lib/setenv.c (clearenv): Likewise.
86172         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86173         needed.
86174         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86175         (malloc, memcpy): Remove decls.
86176         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86177         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86178         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86179         (memcpy): Remove macro.
86180         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86181         (__P): Remove.  All uses removed.
86182         (PTR): Remove.  All uses changed to void *.
86183         (CHAR_BIT, NULL): Remove.
86184         (spaces, zeros, memset_space, memset_zero)
86185         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86186         Remove.
86187         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86188         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86189         Define with prototype.
86190         Remove now-unnecessary prototype decl.
86191         (extra_args_spec): Assume ANSI C.  All uses changed.
86192         (extra_args_spec_iso): Remove.
86193         (my_strftime, emacs_strftimeu): Define via prototype.
86194         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86195         unconditionally.
86196         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86197         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86198         (strtoul, strtol): Remove decls.
86199         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86200         LONG_MAX): Remove.
86201         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86202         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86203         (LOCALE_PARAM_PROTO): New macro.
86204         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86205         (INTERNAL (strtol), strtol): Define with a prototype.
86206         (PARAMS): Remove.  All uses removed.
86207         * lib/tempname.c: Include <string.h> unconditionally.
86208         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86209         * lib/xgethostname.c (main): Define with a prototype.
86210         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86211         Include <stdlib.h> unconditionally.
86212         (calloc, malloc, realloc, free): Remove decls.
86213         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86214         Include <stdlib.h> unconditionally.  Sort include file names.
86215         (strtod): Remove.
86216         (xstrtod): Define with a prototype.
86217         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86218         (strtol, strtoul): Remove decls.
86219
86220 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86221
86222         More patches to assume C89 or better.
86223         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86224         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86225         string.h, memchr, STDC_HEADERS.
86226
86227 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86228
86229         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86230         Include <stdlib.h>, <string.h> unconditionally.
86231         Remove now-unnecessary cast to char *.
86232         * lib/strnlen.c: Include <string.h> unconditionally.
86233         * lib/yesno.c (yesno): Define with a prototype.
86234
86235 2003-09-11  Bruno Haible  <bruno@clisp.org>
86236
86237         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86238
86239 2003-09-10  Jim Meyering  <jim@meyering.net>
86240
86241         * lib/error.c: Correct indentation of cpp directives.
86242
86243 2003-09-10  Bruno Haible  <bruno@clisp.org>
86244
86245         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86246         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86247         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86248         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86249         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86250         <stdlib.h> and <string.h> checks.
86251         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86252         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86253
86254 2003-09-10  Bruno Haible  <bruno@clisp.org>
86255
86256         * lib/strcspn.c: Include <string.h> unconditionally.
86257         * lib/strpbrk.c: Include <string.h> unconditionally.
86258         * lib/strstr.c: Include <string.h> unconditionally.
86259         * lib/unicodeio.c: Include <string.h> unconditionally.
86260         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86261         * lib/unsetenv.c: Likewise.
86262         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86263         * lib/yesno.c: Include <stdlib.h> unconditionally.
86264         (rpmatch): Add prototype.
86265
86266 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86267
86268         More patches to assume C89 or better.
86269         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86270         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86271         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86272         or for string.h.
86273         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86274         stdlib.h.
86275         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86276         C headers.
86277         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86278         string.h.
86279         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86280         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86281         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86282         or for string.h.
86283         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86284         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86285         C headers.
86286         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86287         memcpy.
86288         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86289         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86290         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86291         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86292         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86293         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86294         string.h, free.
86295         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86296         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86297         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86298         C headers, or for string.h.
86299         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86300         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86301         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86302         headers, memory.h, stdlib.h, string.h, strings.h.
86303         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86304         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86305         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86306         strchr.
86307         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86308         headers, memory.h, string.h.
86309         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86310         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86311         free.
86312         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86313         headers.
86314         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86315         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86316         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86317         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86318         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86319
86320 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86321
86322         More K&R removal.
86323
86324         * lib/acosl.c (main): Use a prototype.
86325         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86326         tanl.c: Likewise.
86327
86328         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86329
86330         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86331         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86332         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86333         with a prototype.
86334         * lib/getopt.c (const): Remove macro.
86335         Include <string.h> unconditionally.
86336         (my_index): Remove; all uses changed to strchr.
86337         (strlen): Remove decl.
86338         (exchange): Remove forward decl; no longer needed.
86339         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86340         Define with prototype.
86341         * lib/getopt1.c (const): Remove macro.
86342         (getopt_long, getopt_long_only, main): Define with prototype.
86343
86344         * lib/getugroups.c: Include <string.h> unconditionally.
86345
86346         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86347         (getusershell, setusershell, endusershell, readname, main):
86348         Define with prototypes.
86349
86350         * lib/group-member.c: Include group-member.h first.
86351         Include <stdlib.h> unconditionally.
86352
86353         * lib/hard-locale.c: Include hard-locale.h first.
86354         Include <stdlib.h>, <string.h> unconditionally.
86355
86356         * lib/hash.c (free, malloc): Remove decls.
86357         Include <stdlib.h> unconditionally.
86358
86359         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86360         (getenv): Do not declare.
86361
86362         * lib/idcache.c: Include <string.h> unconditionally.
86363
86364         * lib/long-options.c: Include long-options.h first, to test interface.
86365         Include <stdlib.h> unconditionally.
86366
86367         * lib/makepath.c: Include makepath.h first, to test interface.
86368         Include <stdlib.h> and <string.h> unconditionally.
86369
86370         * lib/linebuffer.c: Include <stdlib.h>.
86371         (free): Remove decl.
86372
86373         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86374         stddef.h. rpl_malloc returns void *, not char *.
86375         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86376         prototype.
86377
86378         * lib/md5.h: Include <limits.h> unconditionally.
86379         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86380         (__P): Remove; all uses removed.
86381         * lib/md5.c: Include "md5.h" first.
86382         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86383         md5_buffer, md5_process_bytes, md5_process_block):
86384         Define with prototypes.
86385         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86386         * lib/sha.c: Include "sha.h" first.
86387         Include <stdlib.h>, <string.h> unconditionally.
86388
86389         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86390         * lib/memcmp.c (__ptr_t): Likewise.
86391         * lib/memrchr.c (__ptr_t): Likewise.
86392         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86393         Include <string.h> unconditionally.
86394         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86395         * lib/memchr.c: Include <stdlib.h> unconditionally.
86396         * lib/memchr.c (LONG_MAX): Remove.
86397         * lib/memrchr.c (LONG_MAX): Likewise.
86398         * lib/memchr.c (__memchr): Define via a prototype.
86399         * lib/memrchr.c (__memrchr): Likewise.
86400         * lib/memcmp.c (__P): Remove, and remove all uses.
86401         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86402         Remove forward decls; no longer needed.
86403         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86404         Use types required by C89 in prototype.
86405
86406         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86407         * lib/savedir.c: Likewise.
86408         * lib/mkdir.c (free): Remove decl.
86409         * lib/rmdir.c (rmdir): Define with a prototype.
86410         * lib/savedir.c: Include savedir.h first, to test interface.
86411
86412         * lib/mktime.c (STDC_HEADERS): Remove.
86413         Include <stdlib.h>, <string.h> unconditionally.
86414
86415         * lib/modechange.c: Include <stdlib.h> unconditionally.
86416         (malloc): Remove decl.
86417
86418         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86419         (free): Remove decl.
86420
86421         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86422         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86423         (This type really should be intptr_t, but that's a C99ism.)
86424         (_obstack_memcpy): Remove: all uses changed to memcpy.
86425         Include <string.h> unconditionally.
86426         (struct obstack): Assume __STDC__ for types of members
86427         chunkfun, freefun, extra_arg.
86428         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86429         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86430         obstack_begin, obstack_specify_allocation,
86431         obstack_specify_allocation_with_arg, obstack_chunkfun,
86432         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86433         Remove unprototyped decls and the macros that use them.
86434         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86435         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86436         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
86437         (defined __STDC__ && __STDC__)]:
86438         Remove nonprototyped code.
86439         Include <stdlib.h> unconditionally.
86440         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
86441         _obstack_allocated_p, _obstack_free, obstack_free,
86442         _obstack_memory_used, print_and_abort):
86443         Define using prototypes.
86444         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
86445         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
86446         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
86447         obstack_next_free, obstack_object_size, obstack_room) [0]:
86448         Remove unused, unprototyped code.
86449
86450         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
86451
86452         * lib/physmem.c (physmem_total, physmem_available, main): Define
86453         with prototypes.
86454
86455         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
86456         (main): Define with a prototype.
86457
86458         * lib/posixver.c (getenv): Remove decl.
86459
86460         * lib/putenv.c (malloc): Returns void *, not char *.
86461         Include <string.h> unconditionally.
86462         (strchr, memcpy, NULL): Do not define.
86463
86464         * lib/readtokens.c: Include readtokens.h first, to test interface.
86465         Include <stdlib.h>, <string.h> unconditionally.
86466         (init_tokenbuffer): Define with a prototype.
86467
86468         * lib/regex.c (PARAMS): Remove.  All uses removed.
86469         All uses of _RE_ARGS removed, too.
86470         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86471         unconditionally.
86472         (bzero): Assume memset exists.
86473         (memcmp, memcpy, NULL): Remove.
86474         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
86475         char, or assignments to local vars of type signed char.
86476         (init_syntax_once, PREFIX(extract_number_and_incr),
86477         PREFIX(print_partial_compiled_pattern),
86478         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
86479         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
86480         PREFIX(regex_grow_registers), PREFIX(regex_compile),
86481         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
86482         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
86483         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
86484         wcs_compile_range, byte_compile_range, truncate_wchar,
86485         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
86486         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
86487         count_mbs_length, wcs_re_match_2_internal,
86488         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
86489         PREFIX(alt_match_null_string_p),
86490         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
86491         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
86492         regfree, PREFIX(extract_number)): Define with prototype.  Remove
86493         now-unnecessary declaration, if any.
86494         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
86495         regcomp, regexec):
86496         Remove now-unnecessary casts among pointer types.
86497         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
86498
86499         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
86500         (free): Remove decl.
86501
86502         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
86503
86504         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
86505         (free): Remove decl.
86506
86507         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
86508         * lib/xgetcwd.c: Likewise.
86509
86510         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
86511         (free): Remove decl.
86512
86513         * lib/strchrnul.c (strchrnul): Define with a prototype.
86514         Fix bug: c_in was not converted to char before searching.
86515
86516         The following changes are not K&R related:
86517
86518         * lib/group-member.h: Include <sys/types.h>, so that this file is
86519         self-contained.
86520         * lib/makepath.h: Likewise.
86521
86522         * lib/getusershell.c (readname, default_index, line_size, readname):
86523         Use size_t, not int, for sizes.
86524         (readname): If the size overflows, report an error instead of
86525         looping forever.
86526
86527 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86528
86529         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
86530         libc.
86531
86532 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86533
86534         * README: New section: portability guidelines.
86535
86536 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86537
86538         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
86539         C89 spec.
86540
86541 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
86542
86543         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
86544
86545 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86546
86547         Assume C89 or better; remove K&R cruft.
86548         A few of these changes were first proposed by Derek Robert Price
86549         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
86550
86551         * lib/addext.c: Include <string.h> unconditionally.
86552         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
86553         Don't declare getenv or malloc.
86554
86555         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
86556         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
86557         (NULL): Remove.
86558         (find_stack_direction, alloca): Use prototypes.
86559
86560         * lib/atexit.c (atexit): Define using a prototype.
86561
86562         * lib/basename.c, dirname.c, stripslash.c:
86563         Include <string.h> unconditionally.
86564
86565         * lib/bcopy.c: Include <stddef.h>.
86566         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
86567
86568         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
86569
86570         * lib/error.h (error, error_at_line, error_print_progname)
86571         [! (defined (__STDC__) && __STDC__)]: Remove decls.
86572         * lib/error.c: Include error.h first, to check interface.
86573         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86574         (VA_START): Remove; all uses changeed to va_start.
86575         (exit, strerror): Remove decls.
86576         (error_print_progname): Prototype uncondionally.
86577         Don't include <errno.h>; no longer needed.
86578         (private_strerror): Remove.
86579         (error_tail): Always define.
86580         (error, error_at_line): Assume C89 or better; always use prototypes.
86581         * lib/fatal.c: Include "fatal.h" first, to test interface.
86582         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
86583         (VA_START): Remove; all uses changed to va_start.
86584         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
86585         this case.
86586         (exit): Remove decl.
86587         (fatal): Prototype unconditionally.  Assume va_start works.
86588         Abort at end, to pacify gcc.
86589
86590         * lib/euidaccess.c (main): Define with a prototype.
86591
86592         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
86593
86594         * lib/exitfail.c: Include <stdlib.h> unconditionally.
86595
86596         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
86597         prototypes.
86598         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
86599         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
86600         (getenv): Remove decl.
86601         (fnmatch): Define using a prototype.
86602         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
86603         (FCT): Define using a prototype.
86604
86605         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
86606
86607         * lib/gethostname.c: Include <stddef.h>.
86608         (gethostname): Define with prototype.  Length is size_t, not int.
86609
86610 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86611
86612         Assume C89 or better; remove K&R cruft.
86613         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
86614         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
86615         string.h, getenv, malloc.
86616         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
86617         headers.
86618         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
86619         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
86620         do not check for strerror.
86621         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
86622         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
86623         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
86624         do not check for doprnt or vprintf.
86625         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
86626         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
86627
86628 2003-09-08  Paul Eggert  <eggert@twinsun.com>
86629
86630         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
86631         getversion.c should have been removed then, but was accidentally
86632         preserved.
86633
86634         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
86635         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
86636
86637 2003-09-08  Karl Berry  <karl@gnu.org>
86638
86639         * config/config.sub, config.guess, srclistvars.sh: update from savannah
86640                 config, forget about prep.
86641
86642         * config/depcomp, missing: update from automake.
86643
86644 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86645
86646         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
86647         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86648
86649 2003-09-07  Paul Eggert  <eggert@twinsun.com>
86650
86651         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
86652         copy_tm_result.  Bug reported by Simon Josefsson in
86653         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
86654
86655 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86656
86657         * m4/time_r.m4: New file.
86658         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
86659         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
86660         is. Check for timegm declaration.
86661         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
86662         Do not check for gmtime_r.
86663         Replace mktime if __mktime_internal does not exist and if mktime
86664         hasn't been replaced already.
86665
86666 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86667
86668         * lib/time_r.c, lib/time_r.h: New files.
86669
86670         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
86671         __localtime_r.
86672         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
86673         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
86674
86675         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
86676         __gmtime_r.
86677         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
86678         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
86679         Include <time_r.h>.
86680
86681         * lib/timegm.c: Switch to glibc implementation, with the following
86682         changes:
86683         [defined HAVE_CONFIG_H]: Include <config.h>.
86684         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
86685         (__mktime_internal) [!defined _LIBC]: New decl.
86686         (__gmtime_r) [!defined _LIBC]: New macro and function.
86687         (timegm): Use a prototype, since gnulib assumes C89.
86688         Do not bother declaring tmp to be const, as it's not really usefu.
86689         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
86690         (timegm): Declare only if HAVE_DECL_TIMEGM.
86691
86692 2003-09-06  Paul Eggert  <eggert@twinsun.com>
86693
86694         * MODULES.html.sh (func_all_modules): Add time_r.
86695         * modules/time_r: New file.
86696         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
86697         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
86698
86699 2003-09-03  Paul Eggert  <eggert@twinsun.com>
86700
86701         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
86702         Bug reported by Lute Kamstra in
86703         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
86704
86705         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
86706         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
86707         course with correspondingly smaller numbers for tomorrow and
86708         yesterday.  From Tadayoshi Funaba.  Originally installed into
86709         sh-utils on 1999-08-07, but the patch got lost (I guess during the
86710         coreutils merge?).
86711
86712 2003-08-31  Simon Josefsson  <jas@extundo.com>
86713
86714         * modules/timegm: New file.
86715         * MODULES.html.sh (func_all_modules): Add timegm.
86716
86717 2003-08-31  Simon Josefsson  <jas@extundo.com>
86718
86719         * m4/timegm.m4: New file.
86720
86721 2003-08-31  Simon Josefsson  <jas@extundo.com>
86722
86723         * lib/timegm.h: New file.
86724         * lib/timegm.c: New file.  Based on
86725         wget-1.8.2/src/http.c:mktime_from_utc.
86726
86727 2003-08-31  Karl Berry  <karl@gnu.org>
86728
86729         * lib/argp.h: update from libc.
86730
86731 2003-08-28  Bruno Haible  <bruno@clisp.org>
86732
86733         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
86734         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
86735         followed by '#define fnmatch fnmatch_posix' gives an error.
86736
86737 2003-08-28  Bruno Haible  <bruno@clisp.org>
86738
86739         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
86740         warning on QNX, which defines O_BINARY to 000000.
86741
86742 2003-08-27  Jim Meyering  <jim@meyering.net>
86743
86744         * m4/mkstemp.m4: Require that the system mkstemp be able to create
86745         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
86746         would fail after 32.  Reported by Danny Levinson.  Details here:
86747         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
86748
86749 2003-08-24  Bruno Haible  <bruno@clisp.org>
86750
86751         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
86752         MSVC7 <stdio.h> is included later.
86753
86754 2003-08-22  Simon Josefsson  <jas@extundo.com>
86755
86756         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
86757
86758 2003-08-20  Karl Berry  <karl@gnu.org>
86759
86760         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
86761
86762 2003-08-20  Bruno Haible  <bruno@clisp.org>
86763
86764         * modules/progname: New file.
86765         * MODULES.html.sh (func_all_modules): Add progname.
86766
86767 2003-08-20  Bruno Haible  <bruno@clisp.org>
86768
86769         * lib/progname.h: New file, from GNU gettext.
86770         * lib/progname.c: New file, from GNU gettext.
86771         * lib/progreloc.c: New file, from GNU gettext.
86772
86773 2003-08-19  Jim Meyering  <jim@meyering.net>
86774
86775         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
86776         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
86777
86778 2003-08-19  Bruno Haible  <bruno@clisp.org>
86779
86780         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
86781         more.
86782
86783 2003-08-19  Bruno Haible  <bruno@clisp.org>
86784
86785         * lib/xstrdup.c: Assume <string.h> exists.
86786
86787 2003-08-18  Paul Eggert  <eggert@twinsun.com>
86788
86789         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
86790         in makefile rules.
86791
86792 2003-08-18  Jim Meyering  <jim@meyering.net>
86793
86794         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
86795         * m4/lib-ld.m4: Likewise.
86796
86797 2003-08-18  Jim Meyering  <jim@meyering.net>
86798
86799         * lib/setenv.h: Indent nested cpp directive.
86800         * lib/vasnprintf.c: Remove trailing blanks.
86801
86802 2003-08-17  Simon Josefsson  <jas@extundo.com>
86803
86804         * modules/xstrndup: New file.
86805         * MODULES.html.sh (func_all_modules): Add xstrndup.
86806
86807 2003-08-17  Simon Josefsson  <jas@extundo.com>
86808
86809         * modules/argp: Fix autoconf macro name. Add more dependencies.
86810
86811 2003-08-17  Simon Josefsson  <jas@extundo.com>
86812
86813         * m4/xstrndup.m4: New file.
86814
86815 2003-08-17  Simon Josefsson  <jas@extundo.com>
86816
86817         * m4/argp.m4: New file.
86818
86819 2003-08-17  Simon Josefsson  <jas@extundo.com>
86820             Bruno Haible  <bruno@clisp.org>
86821
86822         * lib/xstrndup.h: New file.
86823         * lib/xstrndup.c: New file.
86824
86825 2003-08-17  Bruno Haible  <bruno@clisp.org>
86826
86827         * modules/strndup (Files, Include): Add lib/strndup.h.
86828
86829 2003-08-17  Bruno Haible  <bruno@clisp.org>
86830
86831         * modules/euidaccess (Files): Add lib/euidaccess.h.
86832
86833 2003-08-17  Bruno Haible  <bruno@clisp.org>
86834
86835         * lib/strndup.h: New file.
86836
86837 2003-08-17  Bruno Haible  <bruno@clisp.org>
86838
86839         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
86840         like AC_GNU_SOURCE.
86841         * modules/extensions (configure.ac): Comment out the invocation of
86842         gl_USE_SYSTEM_EXTENSIONS.
86843
86844 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86845
86846         Merges from coreutils, etc.
86847         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
86848         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
86849         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
86850         fixing a typo.
86851         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
86852         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
86853
86854 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86855
86856         Document merge from coreutils.
86857         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
86858         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
86859         * modules/utime: Add m4/utimes-null.m4.
86860
86861 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86862
86863         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
86864         space, undoing this 2003-08-12 change:
86865         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86866
86867 2003-08-16  Paul Eggert  <eggert@twinsun.com>
86868
86869         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
86870         strtoul.c from libc, undoing this 2003-08-12 change:
86871         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
86872
86873 2003-08-16  Jim Meyering  <jim@meyering.net>
86874
86875         Merges from coreutils.
86876         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
86877         prefix.  Adjust cache variables similarly.  Create 500 rather than
86878         just 300 files, to exercise bug on Darwin6.5, too.
86879         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
86880         $missing_dir.
86881         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
86882         AM_SYS_POSIX_TERMIOS.
86883         Reported by mkc@mathdogs.com.
86884         Also change use of $am_cv_sys_posix_termios
86885         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
86886         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
86887         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
86888         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
86889         in /proc/mounts until it finds one with matching device number.  This
86890         is unnecessary when the FILE argument *is* a mount point.  No stat call
86891         is necessary in that case.  So, disable the statvfs-testing code on
86892         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
86893         as RedHat bug# 84846.
86894         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86895         to 1MB, so as not to render systems with no stack size limit (e.g.,
86896         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86897         Include <unistd.h>.  On some systems,
86898         it is required for the definition of _SC_PAGESIZE.
86899
86900 2003-08-16  Jim Meyering  <jim@meyering.net>
86901
86902         Merge from coreutils.
86903         * lib/xstrtoimax.c: #else #if -> #elif.
86904         * lib/xstrtoumax.c: Likewise.
86905
86906 2003-08-16  Jim Meyering  <jim@meyering.net>
86907
86908         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
86909         * m4/utimes.m4: Removed.
86910         * m4/utimes-null.m4: Renamed from utimes.m4.
86911
86912         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
86913         to 1MB, so as not to render systems with no stack size limit (e.g.,
86914         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
86915         Include <unistd.h>.  On some systems,
86916         it is required for the definition of _SC_PAGESIZE.
86917
86918 2003-08-16  Jim Meyering  <jim@meyering.net>
86919         and Paul Eggert  <eggert@cs.ucla.edu>
86920
86921         Merges from coreutils, etc.
86922
86923         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
86924         using the latest version from cvs.  This avoids problems with #line
86925         directives using a vendor (Sun) compiler.
86926         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
86927         Don't set GETGROUPS_LIB here; now it's
86928         done via getgroups.m4's wrapper function.
86929         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
86930         rather than just in sh-util/configure.in, so that the
86931         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
86932         same.
86933         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
86934         AC_FUNC_GETLOADAVG where to find getloadavg.c.
86935         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
86936         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
86937         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
86938         Remove code that is now done by the newly-required macros.
86939         Append $(EXEEXT) to DF_PROG.
86940         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
86941         Do not invoke or require the following here,
86942         since prereq.m4 or some gnulib .m4 now does this for us:
86943         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
86944         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
86945         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
86946         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
86947         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
86948         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
86949         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
86950         AC_FUNC_OBSTACK.
86951         Do not replace the following functions, as this is now the job
86952         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
86953         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
86954         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
86955         atexit getpass, strdup, getpagesize.
86956         Replace 'raise'.
86957         Do not check for the following functions, as this is now the job
86958         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
86959         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
86960         setregid.
86961         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
86962         Check for sys/sysctl.h.
86963         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
86964         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
86965         of checking for ssize_t ourselves.
86966
86967         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
86968         Require every macro that gnulib/modules/* suggests for us.
86969         (jm_PREREQ_ADDEXT): New macro.
86970         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
86971         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
86972
86973         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
86974         (gl_PHYSMEM): Use it.
86975         Also check for `table' function.
86976         Check for new headers and functions.
86977         Add check for sys/sysmp.h.
86978         With suggestions from Kaveh Ghazi.
86979         Ignore headers that are present but cannot be compiled.  This
86980         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
86981         C 5.4.
86982
86983 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86984
86985         Document merge from coreutils.
86986         * modules/userspec: Depend on posixver.
86987         * modules/strftime: Depend on tzset.
86988
86989 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86990
86991         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
86992         rather than tab, after '#' in shell-script copyright notices.
86993         Suggested by Bruno Haible.
86994
86995 2003-08-15  Paul Eggert  <eggert@twinsun.com>
86996
86997         * config/srclist-update: Use three spaces, rather than tab, after '#'
86998         in shell-script copyright notices.  Suggested by Bruno Haible.
86999         Remove unnecessary parenthesization in regular expression.
87000
87001 2003-08-15  Jim Meyering  <jim@meyering.net>
87002
87003         Merge from coreutils.
87004         * lib/xgethostname.c: Include <stdlib.h>.
87005         (xghostname): Don't exit for anything other than memory-related
87006         failure; just return NULL.
87007         * lib/userspec.c: Include "posixver.h".
87008         (parse_user_spec): Accept `.' as a separator only
87009         in pre-POSIX-200112 mode.
87010         * lib/strtoimax.c: Use #elif rather than #else #if.
87011         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87012         Remove function, now that we can rely on a working tzset function.
87013         [!_LIBC]: Ensure that the required autoconf test has been run.
87014         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87015         Use underlying_strftime for %r.
87016         * lib/sha.c: Merge in some clean-up and optimization changes from
87017         glibc.
87018         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87019         Ensure that it is a multiple of 64.
87020         Rearrange loop exit tests so as to avoid performing an
87021         additional fread after encountering an error or EOF.
87022         * lib/realloc.c: Update copyright date.
87023
87024 2003-08-15  Jim Meyering  <jim@meyering.net>
87025         and Paul Eggert  <eggert@twinsun.com>
87026
87027         Merge from coreutils.
87028         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87029         member but strut utmpx does not.  Needed for AIX 4.3.3.
87030         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87031
87032 2003-08-15  Jim Meyering  <jim@meyering.net>
87033         and Paul Eggert  <eggert@cs.ucla.edu>
87034
87035         Merges from coreutils, etc.
87036         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87037         Require gl_FUNC_TZSET_CLOBBER.
87038         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87039         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87040         members.
87041
87042 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87043
87044         Help the merge from coreutils.
87045         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87046         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87047         * m4/tzset.m4: Use it too.
87048
87049 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87050
87051         * modules/tzset: New file.
87052
87053 2003-08-14  Jim Meyering  <jim@meyering.net>
87054
87055         Merges from coreutils.
87056         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87057         variable names, rather than @FNMATCH_H@.
87058         * modules/alloca: Likewise for $(ALLOCA_H).
87059
87060         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87061         the three copies of the literal target, `fnmatch.h'.
87062         * modules/alloca (alloca.h): Likewise.
87063
87064 2003-08-14  Jim Meyering  <jim@meyering.net>
87065
87066         Merge from coreutils.
87067         * m4/tzset.m4: New file.
87068         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87069         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87070         otherwise, AIX 5.1 systems would end up using the latter.
87071         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87072         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87073         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87074         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87075
87076 2003-08-14  Jim Meyering  <jim@meyering.net>
87077
87078         Merge from coreutils.
87079         * lib/obstack.h: Whitespace changes.
87080         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87081         and xcalloc return values.
87082         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87083         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87084         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87085         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87086         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87087         error from mntctl.
87088         Use mntctl's return value to drive the entry-processing loop, since
87089         we can't rely on the value of the vmt_length member in the last
87090         entry.  On some systems doing so could result in exhausting
87091         virtual memory.  Based in part on a patch from Mike Jetzer.
87092
87093 2003-08-14  Jim Meyering  <jim@meyering.net>
87094         and Paul Eggert  <eggert@twinsun.com>
87095
87096         Merges from coreutils, plus other fixes.
87097         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87098         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87099         for credits and details.  Thanks to Kaveh Ghazi for helping
87100         to keep these files in sync.
87101         (ARRAY_SIZE): Define it.
87102         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87103         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87104         (memcasecmp): Don't assume size_t fits in unsigned int.
87105         Remove casts and duplicate code.
87106         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87107         (memcpy): Remove definition.
87108         Merge in some clean-up and optimization changes from glibc.
87109         [BLOCKSIZE]: Move definition to top of file.
87110         Ensure that it is a multiple of 64.
87111         Rearrange loop exit tests so as to avoid performing an
87112         additional fread after encountering an error or EOF.
87113         * lib/md5.h (md5_uintptr): Define.
87114         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87115         return to the initial working directory.  Preserve errno
87116         for caller.
87117         * lib/idcache.c: Include "xalloc.h".
87118         (xmalloc, xrealloc): Remove decls.
87119         (getuser): Remove casts no longer required in C89.
87120         * lib/human.c: Include stdio.h, for sprintf.
87121         * lib/group-member.c: Include "xalloc.h".
87122         (xmalloc, xrealloc): Remove decls.
87123         (get_group_info): Remove casts no longer required in C89.
87124         * lib/getusershell.c (readname): Remove casts no longer required in
87125         C89.
87126         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87127         * lib/getline.c: Whitespace fix, from coreutils.
87128
87129 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87130
87131         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87132         Check for isascii.
87133
87134         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87135         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87136         Undo previous (whitespace-only) change.
87137
87138 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87139
87140         * lib/exclude.c: Include <ctype.h>
87141         (IN_CTYPE_DOMAIN): New macro.
87142         (is_space): New fn.
87143         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87144         and empty lines.
87145
87146         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87147         Undo previous (whitespace-only) change.
87148
87149 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87150
87151         * config/srclist-update: Change update back to the old behavior,
87152         leaving whitespace alone.  Use one 'sed' command rather than a
87153         pipeline.
87154         (fixlicense): Now a variable, not a function.
87155         (remove_trailing_blanks): Remove.
87156         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87157         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87158         Undo previous (whitespace-only) change.
87159
87160 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87161
87162         Merge from coreutils.
87163         * modules/euidaccess: Add lib_SOURCES, include for new
87164         file euidaccess.h
87165
87166 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87167
87168         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87169         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87170         Normalize leading white space and remove trailing white space.
87171
87172         Merge from coreutils
87173         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87174
87175         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87176         0.12.1.  These files are now being upgraded automatically by
87177         ../config/srclist-update.
87178
87179 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87180
87181         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87182         Normalize leading white space and remove trailing white space.
87183         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87184         notice, as per ../config/srclist-update.
87185
87186         Merge from coreutils.
87187         * lib/euidaccess.h: New file.
87188         * lib/euidaccess.c: Include it.
87189         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87190         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87191         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87192
87193 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87194
87195         * config/srclist-update: Add copyright notice.
87196         (remove_id_lines, remove_trailing_blanks): New constants.
87197         (fixfile): Use them to normalize spacing a bit in copied files.
87198         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87199         Normalize leading white space and remove trailing white space.
87200
87201         * config/texinfo.tex: Sync with texinfo.
87202
87203         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87204         strtoul.c from libc, to merge coreutils whitespace changes.
87205
87206         * config/srclist.txt: Get the following m4 files from gettext:
87207         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87208         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87209         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87210         wint_t.m4.
87211
87212 2003-08-12  Karl Berry  <karl@gnu.org>
87213
87214         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87215         been made.
87216
87217 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87218
87219         * modules/gnu-source, m4/gnu-source.m4:
87220         Remove; we're assuming Autoconf 2.54 or later now.
87221         Suggested by Bruno Haible.
87222         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87223
87224 2003-08-11  Bruno Haible  <bruno@clisp.org>
87225
87226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87227
87228 2003-08-11  Bruno Haible  <bruno@clisp.org>
87229
87230         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87231         (vasnprintf): Use it instead of wcslen.
87232
87233 2003-08-11  Bruno Haible  <bruno@clisp.org>
87234
87235         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87236         value to ensure that _Bool promotes to int. Use #define for _Bool when
87237         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87238
87239 2003-08-10  Karl Berry  <karl@gnu.org>
87240
87241         * lib/regex.h: update from libc (whitespace fix).
87242
87243 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87244
87245         Merge some files from coreutils.  These changes were
87246         originally made by Jim Meyering.
87247         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87248         many older Unixes require this.
87249         * lib/alloca.c (alloca): Remove cast to argument of free;
87250         no longer needed in C89.
87251         * lib/alloca_.h, regex.h: Fix white space to match
87252         what GNU indent does.
87253
87254 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87255
87256         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87257         apparently Emacs's Unicode mode got confused before my 2003-08-05
87258         checkin.
87259
87260 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87261
87262         * m4/extensions.m4: New file.
87263         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87264         Require gl_USE_SYSTEM_EXTENSIONS.
87265         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87266         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87267
87268 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87269
87270         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87271         * modules/extensions, modules/gnu-source: New files.
87272         * modules/timespec, modules/unlocked-io: Depend on extensions.
87273
87274 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87275
87276         * modules/restrict: New file.
87277         * MODULES.html.sh (func_all_modules): Add restrict.
87278         * modules/regex: Depend on restrict.
87279
87280 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87281
87282         * m4/restrict.m4: New file.
87283         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87284
87285 2003-08-07  Bruno Haible  <bruno@clisp.org>
87286
87287         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87288         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87289
87290 2003-08-07  Bruno Haible  <bruno@clisp.org>
87291
87292         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87293         makes the module 'getndelim2' compatible with the module 'getline'.
87294
87295 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87296
87297         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87298         byte with "\201" to avoid glitches when editing that source file
87299         with multi-gnome-terminal.
87300
87301 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87302
87303         * lib/bumpalloc.h: Remove.
87304
87305 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87306
87307         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87308         * modules/bumpalloc: Remove.
87309
87310 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87311
87312         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87313         GNU coding style.
87314
87315         Merge from coreutils.
87316         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87317         1. From glibc.
87318         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87319         from Karl Berry, implemented by Jim Meyering.
87320         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87321         from Dmitry V. Levin.
87322         Remove anachronistic cast of xrealloc.
87323         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87324         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87325         type. Otherwise, it wouldn't compile with at least /bin/cc on
87326         ymp-cray-unicos9.0.2.X.
87327         Combine two mostly-identical uses of alloca into one.
87328         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87329
87330 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87331
87332         [From Emacs.]
87333
87334         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87335         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87336         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87337         obsolete NLIST_NAME_UNION.
87338         [__GNU__]: Undef BSD and FSCALE.
87339         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87340
87341 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87342
87343         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87344         an enum type, so that it's guaranteed to promote to int.  See:
87345         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87346
87347 2003-08-03  Karl Berry  <karl@gnu.org>
87348
87349         * config/depcomp: update from automake.
87350
87351 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87352
87353         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87354         (strerror): Don't assume that a printable int fits in 14 bytes.
87355
87356 2003-07-31  Bruno Haible  <bruno@clisp.org>
87357
87358         * modules/getpass-gnu: New file.
87359         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87360
87361 2003-07-31  Bruno Haible  <bruno@clisp.org>
87362
87363         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87364
87365 2003-07-24  Karl Berry  <karl@gnu.org>
87366
87367         * config/missing: update from automake.
87368
87369 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87370             Bruno Haible  <bruno@clisp.org>
87371
87372         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87373         * lib/getline.c (getline, getdelim): Likewise.
87374         Remove _GNU_SOURCE define; now it's defined in config.h through
87375         m4/getline.m4.
87376
87377 2003-07-23  Karl Berry  <karl@gnu.org>
87378
87379         * config/config.sub: update from prep.
87380
87381 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87382
87383         * modules/xalloc (Depends-on): Add exitfail.
87384         * modules/xmemcoll: Likewise.
87385
87386 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87387
87388         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87389         over-parenthesization in macros.
87390
87391         Sync with coreutils.
87392
87393         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87394         required by C99.
87395
87396         Use `exit_failure' for xalloc and xmemcoll instead of their own
87397         private exit-failure variables.
87398         * lib/xalloc.h (xalloc_exit_failure): Remove.
87399         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87400         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87401         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87402         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87403         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87404
87405 2003-07-20  Jim Meyering  <jim@meyering.net>
87406
87407         * modules/closeout (Depends-on): Add exitfail.
87408         Suggestion from Bruno Haible.
87409
87410 2003-07-19  Karl Berry  <karl@gnu.org>
87411
87412         * config/config.sub: update from prep.
87413
87414 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87415
87416         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87417         Remove.
87418         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87419         to test that it can stand by itself.  Include "exitfail.h".
87420         Clients should set exit_failure instead.
87421         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87422
87423 2003-07-18  Bruno Haible  <bruno@clisp.org>
87424
87425         * modules/getndelim2: New file.
87426         * modules/getline: Share files with module getndelim2.
87427         * modules/getnline: Depend on getndelim2 instead of sharing files with
87428         it. Add getnline.c to lib_SOURCES.
87429         * MODULES.html.sh (func_all_modules): Add getndelim2.
87430
87431 2003-07-18  Bruno Haible  <bruno@clisp.org>
87432
87433         * m4/getndelim2.m4: New file.
87434         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87435         invoke gl_PREREQ_GETNDELIM2.
87436         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
87437         gl_PREREQ_GETNDELIM2.
87438         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
87439         gl_GETNDELIM2.
87440
87441 2003-07-18  Bruno Haible  <bruno@clisp.org>
87442
87443         * lib/getndelim2.h: New file.
87444         * lib/getndelim2.c: Make into a module of its own. Include config.h,
87445         getndelim2.h.
87446         (getndelim2): Make non-static. Change return type to ssize_t.
87447         * lib/getline.h: Change argument names.
87448         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
87449         * lib/getnline.c: Include getndelim2.h.
87450
87451 2003-07-18  Andreas Schwab  <schwab@suse.de>
87452
87453         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
87454
87455 2003-07-17  Karl Berry  <karl@gnu.org>
87456
87457         * config/config.sub: update from prep.
87458
87459 2003-07-17  Bruno Haible  <bruno@clisp.org>
87460
87461         * modules/getnline: New file.
87462         * modules/getline: Add lib/getndelim2.c to source file list.
87463         * MODULES.html.sh (func_all_modules): Add getnline.
87464
87465 2003-07-17  Bruno Haible  <bruno@clisp.org>
87466
87467         * m4/getnline.m4: New file.
87468
87469 2003-07-17  Bruno Haible  <bruno@clisp.org>
87470
87471         * m4/Makefile.am.in: Remove file.
87472         * m4/Makefile.am: Remove file.
87473         * m4/Makefile.in: Remove file.
87474
87475 2003-07-17  Bruno Haible  <bruno@clisp.org>
87476
87477         * lib/getnline.h: New file.
87478         * lib/getnline.c: New file.
87479         * lib/getndelim2.c: New file, extracted from getline.c.
87480         (getndelim2): Renamed from getdelim2, with added nmax argument.
87481         * lib/getline.c: Include getndelim2.c.
87482         (getdelim2): Moved out to getndelim2.c.
87483         (getline, getdelim): Update.
87484
87485 2003-07-17  Bruno Haible  <bruno@clisp.org>
87486
87487         * lib/Makefile.am: Remove file.
87488         * lib/Makefile.in: Remove file.
87489
87490 2003-07-17  Bruno Haible  <bruno@clisp.org>
87491
87492         * configure.in: Remove file.
87493         * Makefile.in: Remove file.
87494
87495 2003-07-17  Bruno Haible  <bruno@clisp.org>
87496
87497         * MODULES.html.sh: Put the </BODY> right before </HTML>.
87498
87499 2003-07-16  Karl Berry  <karl@gnu.org>
87500
87501         * config/srclist-update: was running fixlicense twice, which caused
87502                 texinfo.tex to be nullified for some reason.  Simplify,
87503                 $gplsrc is no longer needed as far as I can see?
87504
87505 2003-07-16  Jim Meyering  <jim@meyering.net>
87506
87507         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
87508
87509 2003-07-15  Paul Eggert  <eggert@twinsun.com>
87510
87511         * config/srclist.txt: Get the following files from gettext-runtime/intl
87512         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
87513         ref-del.sin.  From Bruno Haible.
87514         * config/srclist-update (fixfile): Change grep pattern again, since the
87515         previous fix didn't work (there was another trailing $).  Use
87516         '[$]' to escape the $s.
87517
87518 2003-07-15  Karl Berry  <karl@gnu.org>
87519
87520         * lib/vasnprintf.c: update from gettext.
87521
87522 2003-07-15  Karl Berry  <karl@gnu.org>
87523
87524         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
87525         gets expanded when surrounded by '$'.
87526
87527 2003-07-15  Jim Meyering  <jim@meyering.net>
87528
87529         * modules/save-cwd: Don't depend on error.  From Derek Price.
87530
87531 2003-07-15  Jim Meyering  <jim@meyering.net>
87532
87533         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
87534
87535 2003-07-14  Simon Josefsson  <jas@extundo.com>
87536
87537         * modules/mempcpy: New file.
87538         * MODULES.html.sh (func_all_modules): Add mempcpy.
87539
87540 2003-07-14  Simon Josefsson  <jas@extundo.com>
87541
87542         * m4/mempcpy.m4: New file.
87543
87544 2003-07-14  Simon Josefsson  <jas@extundo.com>
87545
87546         * lib/mempcpy.h: New file.
87547         * lib/mempcpy.c: New file.
87548
87549 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87550
87551         * modules/getdate, modules/posixtm: Depend on mktime.
87552
87553 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87554
87555         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
87556         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
87557         unicodeio.c, unicodeio.h, unlocked-io.h:
87558         Switch from LGPL to GPL.
87559
87560 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87561
87562         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
87563         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
87564         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
87565         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
87566         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
87567         updated automatically by ../config/srclist-update.  This changes
87568         their license from LPGL to GPL.
87569
87570 2003-07-14  Paul Eggert  <eggert@twinsun.com>
87571
87572         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
87573         assumed to refer to the root of the most recent stable gettext version.
87574         * config/srclistvars.sh: Add defaults for eggert.
87575         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
87576         Match "This program" as well as "The program".  This is needed
87577         for gettext.
87578
87579 2003-07-14  Jim Meyering  <jim@meyering.net>
87580
87581         Don't emit diagnostics.  Let callers do that.
87582         * lib/save-cwd.c: Don't include "error.h".
87583         (save_cwd): Don't call error.  Ensure that errno is valid
87584         when returning nonzero.
87585
87586         * lib/save-cwd.h (restore_cwd): Update prototype.
87587         * lib/save-cwd.c (restore_cwd): Remove two parameters.
87588         Simplify.  Don't call error upon failure.  Let callers do that.
87589         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
87590         when auditing is enabled.  But don't bother updating the #if.
87591
87592 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
87593
87594         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
87595         it breaks C++ compilation.
87596         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
87597
87598 2003-07-10  Simon Josefsson  <jas@extundo.com>
87599
87600         * modules/strchrnul (Makefile.am): Add strchrnul.h.
87601
87602 2003-07-10  Jim Meyering  <jim@meyering.net>
87603
87604         * m4/clock_time.m4: Remove trailing blank.
87605         * m4/intmax_t.m4: Likewise.
87606
87607 2003-07-10  Jim Meyering  <jim@meyering.net>
87608
87609         * lib/vasnprintf.c: Remove trailing blanks.
87610         Make cpp indentation consistent.
87611
87612 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87613
87614         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
87615         posixver.c, strftime.c, strnlen.c, strverscmp.c:
87616         Switch from LGPL to GPL.
87617
87618 2003-07-09  Paul Eggert  <eggert@twinsun.com>
87619
87620         * config/srclist.txt: Sort sublists.  Add
87621         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
87622         that differ from gnulib for one reason or another; we'd like this list
87623         to be smaller but for now let's document what we have.
87624
87625 2003-07-08  Paul Eggert  <eggert@twinsun.com>
87626
87627         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
87628         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
87629         and sweeter "eval x=$x".
87630         * config/srclist.txt: Get lib/argp* from glibc.
87631
87632 2003-07-07  Paul Eggert  <eggert@twinsun.com>
87633
87634         * lib/mktime.c: Fix some boundary cases and remove need for floating
87635         point.
87636
87637         Issue a compile-time diagnostic if time_t is floating point, or if
87638         two's complement arithmetic is not in effect, or if arithmetic
87639         right shift does not propagate the sign.  These assumptions were
87640         all in the original code but they weren't checked.
87641
87642         (TIME_T_MIDPOINT, verify): New macros.
87643         (__isleap): Remove; it has integer overflow problems.
87644         (leapyear): New function, without those problems.
87645         (ydhms_tm_diff): Remove; splitting into two parts.
87646         (ydhms_diff): New function, containing the arithmetic part of
87647         the old ydhms_tm_diff function.  Issue a compile-time
87648         diagnostic if we are not using C99 integer division.
87649         Avoid casts when possible.
87650         (guess_time_tm): New function, containing the checking part of
87651         the old ydhms_tm_diff function.  Return the new value, rather than
87652         the difference between it and the old.  Accept a new argument T
87653         so that *T specifies the old value.  Check for overflow in the result.
87654
87655         (__mktime_internal): Use a time_t offset, not a long int offset.
87656         This undoes the 2003-06-04 change, which is no longer needed now
87657         that we have better overflow checking.
87658         (localtime_offset): Likewise.
87659
87660         (__mktime_internal): Avoid harmful overflow on hosts where time_t
87661         and long are 64-bit but int is only 32-bit.
87662         (ydhms_diff): Use long int to store year1 and yday1.
87663         Issue a compile-time diagnostic if long int is not wide enough.
87664
87665         (__mktime_internal): Use long int to store adjusted year and yday.
87666         Use plain C rather than preprocessor commands, if that doesn't
87667         affect efficiency.
87668         Check for overflow (and try to repair) after each probe
87669         rather than checking only at the very end.  This avoids some bugs
87670         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
87671         does not equal GMT offset at maximum time).
87672         Use integer to check for overflow rather than floating point; this
87673         is more portable to non-IEEE hosts, and is a tad faster.
87674         When we detect that we are oscillating between two values,
87675         don't check whether tm_isdst has the requested value, since
87676         we already know the answer.  When tm_isdst has the wrong value,
87677         use a different heuristic to find the right one, based on the
87678         extreme values actually observed in practice in tz2003a,
87679         rather than the (overly optimistic) "previous 3 calendar quarters".
87680
87681         (not_equal_tm, print_tm, check_result): Use "const T" rather than
87682         "T const" to accommodate glibc style.
87683         (check_result): Use less-confusing report format.  "long" -> "long int.
87684         (main): Likewise.
87685         Don't loop if the iteration overflows time_t.
87686         Allow a negative step in the iteration.
87687
87688 2003-07-06  Karl Berry  <karl@gnu.org>
87689
87690         * config/depcomp: update from automake.
87691         * config/config.sub: update from prep.
87692
87693 2003-07-03  Karl Berry  <karl@gnu.org>
87694
87695         * config/config.guess: update from prep.
87696
87697 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87698
87699         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
87700         xreadlink.c now includes it unconditionally.
87701
87702 2003-07-01  Paul Eggert  <eggert@twinsun.com>
87703
87704         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
87705         having it depend on HAVE_SYS_TYPES_H.
87706
87707 2003-07-01  Bruno Haible  <bruno@clisp.org>
87708
87709         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
87710         <sys/types.h> should be sufficient.
87711         Reported by Paul Eggert.
87712
87713 2003-06-26  Karl Berry  <karl@gnu.org>
87714
87715         * config/depcomp: update from automake.
87716
87717 2003-06-26  Bruno Haible  <bruno@clisp.org>
87718
87719         * modules/human: Depend on module stdbool.
87720
87721 2003-06-25  Bruno Haible  <bruno@clisp.org>
87722
87723         * modules/readlink: New file.
87724         * modules/xreadlink: Depend on it.
87725         * MODULES.html.sh (func_all_modules): Add readlink.
87726
87727 2003-06-25  Bruno Haible  <bruno@clisp.org>
87728
87729         * m4/readlink.m4: New file.
87730
87731 2003-06-25  Bruno Haible  <bruno@clisp.org>
87732
87733         * lib/readlink.c: New file.
87734
87735 2003-06-22  Karl Berry  <karl@gnu.org>
87736
87737         * config/srclist.txt: update mkinstalldirs from automake.
87738         * config/mkinstalldirs: update.
87739
87740 2003-06-22  Bruno Haible  <bruno@clisp.org>
87741
87742         Portability to mingw32.
87743         * m4/ssize_t.m4: New file, from GNU gettext.
87744         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
87745         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
87746
87747 2003-06-22  Bruno Haible  <bruno@clisp.org>
87748
87749         * modules/safe-read: Add m4/ssize_t.m4.
87750         * modules/xreadlink: Add m4/ssize_t.m4.
87751
87752 2003-06-20  Bruno Haible  <bruno@clisp.org>
87753
87754         Assume C89, so PARAMS isn't needed.
87755         * lib/unicodeio.h (PARAMS): Remove.
87756         * lib/unicodeio.c: Don't use PARAMS.
87757
87758 2003-06-18  Karl Berry  <karl@gnu.org>
87759
87760         * config/config.{guess,sub}: update from prep.
87761
87762 2003-06-18  Jim Meyering  <jim@meyering.net>
87763
87764         Merge changes from coreutils.
87765         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
87766         Remove explicit declarations of xmalloc and realloc.
87767         Include xalloc.h.
87768         (read_utmp): Remove anachronistic cast of xmalloc.
87769
87770 2003-06-17  Paul Eggert  <eggert@twinsun.com>
87771
87772         Assume C89, so PARAMS isn't needed.
87773         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
87774         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
87775         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
87776         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
87777         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
87778         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
87779         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
87780         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
87781         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
87782         lib/xstrtod.h, lib/xstrtol.h: Likewise.
87783         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
87784         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
87785         no longer needed. Anyway, config.h should always be included before any
87786         other file.
87787
87788 2003-06-11  Simon Josefsson  <jas@extundo.com>
87789
87790         * modules/sysexits: New file.
87791         * MODULES.html.sh (func_all_modules): Add sysexits.
87792
87793 2003-06-11  Simon Josefsson  <jas@extundo.com>
87794
87795         * lib/sysexit_.h: New file.
87796
87797 2003-06-11  Derek Price  <derek@ximbiot.com>
87798
87799         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
87800         necessary.
87801
87802 2003-06-11  Bruno Haible  <bruno@clisp.org>
87803
87804         * m4/sysexits.m4: New file.
87805
87806 2003-06-10  Simon Josefsson  <jas@extundo.com>
87807
87808         * lib/argp.h: New file, from glibc.
87809         * lib/argp-ba.c: New file, from glibc.
87810         * lib/argp-eexst.c: New file, from glibc.
87811         * lib/argp-fmtstream.c: New file, from glibc.
87812         * lib/argp-fmtstream.h: New file, from glibc.
87813         * lib/argp-fs-xinl.c: New file, from glibc.
87814         * lib/argp-help.c: New file, from glibc.
87815         * lib/argp-namefrob.h: New file, from glibc.
87816         * lib/argp-parse.c: New file, from glibc.
87817         * lib/argp-pv.c: New file, from glibc.
87818         * lib/argp-pvh.c: New file, from glibc.
87819         * lib/argp-xinl.c: New file, from glibc.
87820
87821 2003-06-10  Simon Josefsson  <jas@extundo.com>
87822
87823         * modules/strchrnul: New file.
87824
87825 2003-06-10  Simon Josefsson  <jas@extundo.com>
87826
87827         * modules/argp: New file.
87828
87829 2003-06-10  Simon Josefsson  <jas@extundo.com>
87830
87831         * m4/strchrnul.m4: New file.
87832
87833 2003-06-10  Simon Josefsson  <jas@extundo.com>
87834
87835         * lib/strchrnul.h: New file.
87836         * lib/strchrnul.c: New file.
87837
87838 2003-06-10  Bruno Haible  <bruno@clisp.org>
87839
87840         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
87841
87842 2003-06-07  Karl Berry  <karl@gnu.org>
87843
87844         * config/config.{guess,sub}: update from prep.
87845
87846 2003-06-07  Jim Meyering  <jim@meyering.net>
87847
87848         * modules/strtod: Use $(...) notation, not @...@ for
87849         AC_REPLACE'd variables.
87850         * modules/localcharset: Likewise.
87851
87852 2003-06-07  Jim Meyering  <jim@meyering.net>
87853
87854         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
87855         in place of my name in the copyright comment.
87856         Remove definition and uses of __P.
87857
87858         From coreutils.
87859         * lib/stat.c: Don't declare xmalloc explicitly.
87860         Instead, include "xalloc.h".
87861         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
87862         xrealloc, and xcalloc return values.
87863         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
87864         Improve comment.
87865         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
87866
87867 2003-06-07  Bruno Haible  <bruno@clisp.org>
87868
87869         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
87870         avoid AC_CONFIG_LINKS.
87871         * modules/fnmatch (Makefile.am): Use explicit creation rule for
87872         fnmatch.h, to avoid AC_CONFIG_LINKS.
87873         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
87874
87875 2003-06-07  Bruno Haible  <bruno@clisp.org>
87876
87877         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
87878         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
87879         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87880         directory.
87881         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
87882         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
87883         directory.
87884
87885 2003-06-06  Jim Meyering  <jim@meyering.net>
87886
87887         Merge from coreutils.
87888         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
87889         Consolidate declarations and initializations of *_base* locals.
87890
87891         Merge from coreutils.
87892         This avoids a core dump on systems without GNU putenv,
87893         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
87894         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
87895         (unsetenv): New static function, from GNU libc.
87896         (rpl_putenv): Use it.
87897
87898         * lib/modechange.c: Remove trailing blanks.
87899
87900         Merge from coreutils.
87901         * lib/fsusage.c: Remove declaration of statfs.
87902         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
87903
87904         * lib/posixtm.c: Include <stdbool.h> unconditionally.
87905
87906 2003-06-06  Jim Meyering  <jim@meyering.net>
87907
87908         * lib/stdbool_.h: Renamed from stdbool.h.in.
87909
87910 2003-06-06  Jim Meyering  <jim@meyering.net>
87911             Bruno Haible  <bruno@clisp.org>
87912
87913         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
87914         Adjust Makefile.am snippet not to redirect directly to target.
87915         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
87916
87917 2003-06-05  Paul Eggert  <eggert@twinsun.com>
87918
87919         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
87920         mismatch, look in future quarters as well as past.  This fixes a
87921         bug when processing fall-backwards gaps immediately after a long
87922         period of daylight-saving time.
87923
87924         * lib/mktime.c: Assume freestanding C89 or better.
87925         (HAVE_LIMITS_H): Remove.  Assume it's 1.
87926         (__P): Remove; not used.
87927         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
87928         (mktime, not_equal_tm, print_tm, check_result,
87929         main): Use prototypes.  Use const * where appropriate.
87930         (main): Fix typo in testing code that uncovered by above changes.
87931         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
87932
87933 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87934
87935         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
87936         locale.h, localeconv.  This merges changes from coreutils.
87937
87938         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
87939         It can be removed after the next Autoconf is released.
87940         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
87941         needed.
87942
87943 2003-06-04  Paul Eggert  <eggert@twinsun.com>
87944
87945         * lib/mktime.c: Fix Debian bug 177940
87946         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
87947         (localtime_offset): Now long int, not time_t, because we want it
87948         to be guaranteed to be signed.  All uses changed.
87949         (__mktime_internal): If overflow would occur when adding offset,
87950         don't add it.
87951
87952         Merge 'human' changes from coreutils.  Rewrite to support
87953         locale-specific notations like thousands separators.
87954         * lib/human.c: Simplify authorship notice.
87955         Include human.h immediately after config.h.
87956         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
87957         <limits.h>: Do not include, since human.h does.
87958         (SIZE_MAX, UINTMAX_MAX): New macros.
87959         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
87960         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
87961         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
87962         (power_letter): Renamed from suffixes.
87963         (generate_suffix_backwards): Remove.
87964         (adjust_value): Now takes int style (because of human.h changes)
87965         and long double value (for greater precision on some platforms).
87966         (group_number): New function.
87967         (human_readable): Use it.  Use integer options, not enum.
87968         Put the options before the sizes in the arg list.
87969         Support all the new options.
87970         The old human_readable function has been removed;
87971         use inttostr.h instead.
87972         (human_readable, default_block_size, humblock):
87973         Use uintmax_t, not int, for block sizes.
87974         (human_readable_inexact, block_size_types): Remove.
87975         (block_size_opts): New constant.
87976         (human_options): Renamed from human_block_size, with new signature
87977         that allows block sizes up to UINTMAX_MAX.  All callers changed.
87978         * lib/human.h: Add copyright and authorship notice.
87979         Include <limits.h> and <stdbool.h> unconditionally.
87980         (PARAMS): Remove.  All uses removed.
87981         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
87982         (enum human_inexact_style): Remove tag; now a nameless enum.
87983         (human_floor, human_ceiling, human_round_to_even): Now have
87984         values 2, 0, 1 rather than -1, 1, 0.
87985         (human_group_digits, human_suppress_point_zero, human_autoscale,
87986         human_base_1024, human_SI, human_B): New constants.
87987         (human_readable_inexact, human_block_size): Remove.
87988         (human_readable): Size args are now uintmax_t, not int.
87989         (human_options): New decl.
87990
87991         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
87992         unnecessary now that we assume C89 or better.  This change
87993         imported from coreutils.
87994
87995         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
87996         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
87997         in the 2003-05-30 sync from glibc.
87998
87999         .h files should stand alone, but we shouldn't include <sys/types.h>
88000         if we can get away with just <stddef.h>.
88001
88002         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88003         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88004         rather than <sys/types.h>, as we merely need size_t.
88005         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88006         to get size_t.
88007         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88008         Include <stdio.h>, to get FILE.
88009         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88010         memcasecmp.h has included <stddef.h> and all we need is size_t.
88011         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88012         our interface, instead of including <sys/types.h>
88013
88014 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88015
88016         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88017         now, as glibc mktime is buggy on non-glibc systems.
88018
88019 2003-06-03  Karl Berry  <karl@gnu.org>
88020
88021         * config/config.sub: update from prep.
88022
88023 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88024
88025         [from coreutils]
88026         Fix some minor time-related bugs with POSIX time arguments.
88027         Some valid time stamps were being rejected (notably -1, and
88028         time stamps before 1900 on 64-bit hosts).  And some invalid
88029         time stamps were being accepted, e.g. September 31.
88030
88031         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88032         that we can return (time_t) -1 successfully.
88033         * lib/posixtm.c: Likewise.
88034         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88035         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88036         (t): Remove static var.
88037         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88038         of static var.  All uses changed.
88039         (year): Do not reject years before 1900; they can occur with
88040         64-bit time_t.
88041         (posix_time_parse): Do not check for out-of-range components;
88042         that is now the caller's responsibility, since our checks were
88043         only approximations.
88044         (posixtime): Use mktime to check for out-of-range components,
88045         since it knows them exactly.
88046         If mktime returns (time_t) -1, check whether an error actually occurred
88047         by invoking localtime on -1.
88048         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88049         posixtime failures better.
88050         Improve the test data (in comments only).
88051
88052 2003-06-02  Karl Berry  <karl@gnu.org>
88053
88054         * config/mkinstalldirs (version): new variable.
88055         (--version): new option.
88056         (usage): improve message.
88057
88058 2003-05-30  Karl Berry  <karl@gnu.org>
88059
88060         * lib/mktime.c: update from libc.
88061
88062 2003-05-30  Bruno Haible  <bruno@clisp.org>
88063
88064         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88065         * config/config.rpath: Upgrade to gettext-0.12.1.
88066
88067 2003-05-30  Bruno Haible  <bruno@clisp.org>
88068
88069         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88070         * m4/nls.m4: New file, from gettext-0.12.1.
88071         * m4/po.m4: New file, from gettext-0.12.1.
88072         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88073
88074 2003-05-30  Bruno Haible  <bruno@clisp.org>
88075
88076         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88077         * lib/localcharset.h: Likewise.
88078         * lib/localcharset.c: Likewise.
88079
88080 2003-05-29  Karl Berry  <karl@gnu.org>
88081
88082         * config/config.rpath: update from gettext.
88083
88084 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88085
88086         Assume the headers required for C89 freestanding compilers.
88087         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88088         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88089         * m4/human.m4 (gl_HUMAN): Likewise.
88090         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88091         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88092         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88093         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88094         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88095         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88096
88097 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88098
88099         Assume the headers required for C89 freestanding compilers.
88100         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88101         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88102         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88103         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88104         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88105         define, since <limits.h> is guaranteed to do that.
88106         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88107         * lib/exclude.c: Include <stdbool.h> unconditionally.
88108         * lib/tempname.c: Include <stddef.h> unconditionally.
88109         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88110         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88111         <stddef.h> does that.
88112         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88113         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88114         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88115         needed.
88116         * lib/xstrtol.c: Likewise.
88117         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88118         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88119
88120         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88121         warnings on some platforms.
88122
88123         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88124         arbitrarily.
88125
88126 2003-05-26  Jim Meyering  <jim@meyering.net>
88127
88128         Merge in a change from coreutils:
88129         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88130         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88131         that condition, rather than `-1' which is slightly misleading.
88132         Change the name of the cache variable to have the gl_ prefix.
88133         Prompted by a patch from Richard Dawe for DJGPP.
88134
88135 2003-05-24  Karl Berry  <karl@gnu.org>
88136
88137         * config/config.guess: update from prep.
88138
88139 2003-05-22  Karl Berry  <karl@gnu.org>
88140
88141         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88142
88143 2003-05-20  Karl Berry  <karl@gnu.org>
88144
88145         * config/config.guess: update from prep.
88146
88147 2003-05-18  Karl Berry  <karl@gnu.org>
88148
88149         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88150         might actually be set by the user.
88151
88152         * config/depcomp, install-sh, mdate-sh: update from automake.
88153
88154 2003-05-17  Bruno Haible  <bruno@clisp.org>
88155
88156         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88157         invalid expansion for AC_EGREP_CPP.
88158         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88159         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88160         Suggested by Akim Demaille <akim@epita.fr> in
88161         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88162
88163 2003-05-12  Jim Meyering  <jim@meyering.net>
88164
88165         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88166         the space-padded-by-default conversion specifiers, %e, %k, %l.
88167
88168 2003-05-12  Bruno Haible  <bruno@clisp.org>
88169
88170         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88171         the string is longer than 4 KB.
88172
88173 2003-05-11  Karl Berry  <karl@gnu.org>
88174
88175         * config/config.{guess,sub}: update from prep.
88176
88177 2003-05-09  Bruno Haible  <bruno@clisp.org>
88178
88179         * modules/error: Add m4/strerror_r.m4 to file list.
88180
88181 2003-05-03  Bruno Haible  <bruno@clisp.org>
88182
88183         Upgrade to Unicode-4.0.
88184         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88185         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88186         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88187         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88188         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88189         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88190         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88191         Change width of U+E0100..U+E01EF from 1 to 0.
88192
88193 2003-04-25  Jim Meyering  <jim@meyering.net>
88194
88195         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88196         of type size_t, not int.
88197
88198 2003-04-25  Bruno Haible  <bruno@clisp.org>
88199
88200         * lib/copy-file.c: Include <stddef.h>, for size_t.
88201
88202 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88203
88204         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88205         code which expansion is under static control.  Patch imported from
88206         Akim Demaille's patch to Bison; see
88207         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88208
88209 2003-04-14  Bruno Haible  <bruno@clisp.org>
88210
88211         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88212
88213 2003-04-11  Jim Meyering  <jim@meyering.net>
88214
88215         Merge changes from Coreutils.
88216
88217         2003-03-22  Jim Meyering  <jim@meyering.net>
88218
88219         * lib/strftime.c (widen): Cast alloca return value to proper type.
88220
88221         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88222
88223         From GNU libc.
88224         * lib/strftime.c (my_strftime): Handle very large width
88225         specifications for numeric values correctly.  Improve checks for
88226         overflow.
88227
88228         2003-01-19  Jim Meyering  <jim@meyering.net>
88229
88230         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88231         definitions.
88232         (nl_get_alt_digit) [! defined my_strftime]: Define.
88233         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88234         _nl_get_alt_digit and _nl_get_walt_digit.
88235
88236         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88237         libc. These changes have no effect outside of _LIBC.
88238
88239 2003-04-10  Bruno Haible  <bruno@clisp.org>
88240
88241         * modules/findprog: New file.
88242         * MODULES.html.sh (func_all_modules): Add it.
88243
88244 2003-04-10  Bruno Haible  <bruno@clisp.org>
88245
88246         * m4/findprog.m4: New file.
88247         * m4/eaccess.m4: New file.
88248
88249 2003-04-10  Bruno Haible  <bruno@clisp.org>
88250
88251         * lib/findprog.h: New file, from GNU gettext.
88252         * lib/findprog.c: New file, from GNU gettext.
88253
88254 2003-04-05  Jim Meyering  <jim@meyering.net>
88255
88256         Merge changes from Coreutils.
88257
88258         * lib/exclude.h (PARAMS): Remove definition and uses.
88259         * lib/exclude.c: Remove uses of `PARAMS'.
88260
88261         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88262         Add test-cases for DOS filenames. Declare program_name.
88263         (main): Set up program_name.  Patch by Rich Dawe.
88264
88265         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88266         error from mntctl.
88267         Use mntctl's return value to drive the entry-processing loop, since
88268         we can't rely on the value of the vmt_length member in the last
88269         entry.  On some systems doing so could result in exhausting
88270         virtual memory.  Based in part on a patch from Mike Jetzer.
88271
88272 2003-04-04  Bruno Haible  <bruno@clisp.org>
88273
88274         * modules/linebreak: New file.
88275         * MODULES.html.sh (func_all_modules): Add it.
88276
88277 2003-04-04  Bruno Haible  <bruno@clisp.org>
88278
88279         * m4/linebreak.m4: New file.
88280
88281 2003-04-04  Bruno Haible  <bruno@clisp.org>
88282
88283         * lib/linebreak.h: New file, from GNU gettext.
88284         * lib/linebreak.c: New file, from GNU gettext with slight
88285         modifications.
88286         * lib/lbrkprop.h: New file, from GNU gettext.
88287
88288 2003-04-03  Bruno Haible  <bruno@clisp.org>
88289
88290         * modules/utf8-ucs4: New file.
88291         * modules/utf16-ucs4: New file.
88292         * modules/ucs4-utf8: New file.
88293         * modules/ucs4-utf16: New file.
88294         * MODULES.html.sh (func_all_modules): Add them.
88295
88296 2003-04-03  Bruno Haible  <bruno@clisp.org>
88297
88298         * m4/utf-ucs4.m4: New file.
88299         * m4/ucs4-utf.m4: New file.
88300
88301 2003-04-03  Bruno Haible  <bruno@clisp.org>
88302
88303         * lib/utf8-ucs4.h: New file, from GNU gettext.
88304         * lib/utf16-ucs4.h: New file, from GNU gettext.
88305         * lib/ucs4-utf8.h: New file, from GNU gettext.
88306         * lib/ucs4-utf16.h: New file, from GNU gettext.
88307
88308 2003-04-02  Bruno Haible  <bruno@clisp.org>
88309
88310         * modules/binary-io: New file.
88311         * MODULES.html.sh (func_all_modules): Add it.
88312
88313 2003-04-02  Bruno Haible  <bruno@clisp.org>
88314
88315         * lib/binary-io.h: New file, from GNU gettext.
88316
88317 2003-04-01  Bruno Haible  <bruno@clisp.org>
88318
88319         * modules/pathname: New file.
88320         * MODULES.html.sh (func_all_modules): Add it.
88321
88322 2003-04-01  Bruno Haible  <bruno@clisp.org>
88323
88324         * lib/pathname.h: New file, from GNU gettext.
88325         * lib/concatpath.c: New file, from GNU gettext.
88326
88327 2003-03-30  Bruno Haible  <bruno@clisp.org>
88328
88329         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88330
88331 2003-03-30  Bruno Haible  <bruno@clisp.org>
88332
88333         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88334         function chown() doesn't exist.
88335
88336 2003-03-28  Bruno Haible  <bruno@clisp.org>
88337
88338         * modules/copy-file: New file.
88339         * MODULES.html.sh (func_all_modules): Add it.
88340
88341 2003-03-28  Bruno Haible  <bruno@clisp.org>
88342
88343         * m4/copy-file.m4: New file.
88344
88345 2003-03-28  Bruno Haible  <bruno@clisp.org>
88346
88347         * lib/copy-file.h: New file, from GNU gettext.
88348         * lib/copy-file.c: New file, from GNU gettext.
88349
88350 2003-03-18  Jim Meyering  <jim@meyering.net>
88351
88352         * lib/quote.c (quote_n): Fix typo in comment.
88353
88354 2003-03-18  Bruno Haible  <bruno@clisp.org>
88355
88356         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88357         checking.
88358         * m4/onceonly_2_57.m4: Likewise.
88359
88360 2003-03-17  Bruno Haible  <bruno@clisp.org>
88361
88362         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88363         (m4_quote): Remove macro.
88364         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88365
88366 2003-03-14  Jim Meyering  <jim@meyering.net>
88367
88368         Merge changes from Coreutils.
88369         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88370         to be const, in order to avoid warnings.
88371         (obstack_room): Likewise.
88372         (obstack_empty_p): Likewise.
88373
88374 2003-03-14  Bruno Haible  <bruno@clisp.org>
88375
88376         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88377         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88378
88379 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88380
88381         Merge changes from Bison.
88382         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88383         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88384         when compiling Bison 1.875's `bitset bset = obstack_alloc
88385         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88386         * lib/hash.c: Include <stdbool.h> unconditionally.
88387
88388 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88389
88390         * m4/onceonly.m4 (m4_quote): New macro.
88391         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88392         Quote AC_FOREACH variable-expansions properly.
88393
88394 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88395
88396         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88397
88398 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88399
88400         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88401         Reported by Bruce Becker; see:
88402         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88403
88404 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88405             Bruno Haible  <bruno@clisp.org>
88406
88407         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88408         Reported by John Hughes, see
88409         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88410
88411 2003-02-20  Bruno Haible  <bruno@clisp.org>
88412
88413         * MODULES.html.sh (func_all_modules): Add poll.
88414
88415 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88416
88417         * modules/poll: New file.
88418
88419 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88420
88421         * lib/poll_.h: New file.
88422         * lib/poll.c: New file.
88423
88424 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88425
88426         * m4/poll.m4: New file.
88427
88428 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88429
88430         * modules/mathl: New file.
88431
88432 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88433
88434         * lib/mathl.h: New file.
88435         * lib/acosl.c: New file.
88436         * lib/asinl.c: New file.
88437         * lib/atanl.c: New file.
88438         * lib/ceill.c: New file.
88439         * lib/cosl.c: New file.
88440         * lib/expl.c: New file.
88441         * lib/floorl.c: New file.
88442         * lib/frexpl.c: New file.
88443         * lib/ldexpl.c: New file.
88444         * lib/logl.c: New file.
88445         * lib/sincosl.c: New file.
88446         * lib/sinl.c: New file.
88447         * lib/sqrtl.c: New file.
88448         * lib/tanl.c: New file.
88449         * lib/trigl.c: New file.
88450         * lib/trigl.h: New file.
88451
88452 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88453
88454         * m4/mathl.m4: New file.
88455
88456 2003-02-18  Bruno Haible  <bruno@clisp.org>
88457
88458         * MODULES.html.sh (func_all_modules): Add mathl.
88459
88460 2003-02-17  Bruno Haible  <bruno@clisp.org>
88461
88462         * modules/mkdtemp: New module.
88463         * MODULES.html.sh (func_all_modules): Add it.
88464
88465 2003-02-17  Bruno Haible  <bruno@clisp.org>
88466
88467         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
88468
88469 2003-02-17  Bruno Haible  <bruno@clisp.org>
88470
88471         * lib/mkdtemp.h: New file, from GNU gettext.
88472         * lib/mkdtemp.c: New file, from GNU gettext.
88473
88474 2003-02-02  Jim Meyering  <jim@meyering.net>
88475
88476         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
88477         e.g. glibc-2.2.93.
88478
88479 2003-01-31  Bruno Haible  <bruno@clisp.org>
88480
88481         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
88482         'rpl_rename'.
88483         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
88484         'rpl_strnlen'.
88485         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
88486         'rpl_strtod'.
88487         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
88488         'rpl_utime'.
88489
88490 2003-01-31  Bruno Haible  <bruno@clisp.org>
88491
88492         * lib/rename.c: #undef rename before defining rpl_rename.
88493         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
88494
88495 2003-01-30  Bruno Haible  <bruno@clisp.org>
88496
88497         * modules/vasnprintf, modules/vasprintf: New modules.
88498         * MODULES.html.sh (func_all_modules): Add them.
88499
88500 2003-01-30  Bruno Haible  <bruno@clisp.org>
88501
88502         * m4/signed.m4: New file, from GNU gettext.
88503         * m4/longdouble.m4: New file, from GNU gettext.
88504         * m4/wchar_t.m4: New file, from GNU gettext.
88505         * m4/wint_t.m4: New file, from GNU gettext.
88506         * m4/vasnprintf.m4: New file.
88507         * m4/vasprintf.m4: New file.
88508
88509 2003-01-30  Bruno Haible  <bruno@clisp.org>
88510
88511         * lib/printf-args.h: New file, from GNU gettext.
88512         * lib/printf-args.c: New file, from GNU gettext.
88513         * lib/printf-parse.h: New file, from GNU gettext.
88514         * lib/printf-parse.c: New file, from GNU gettext.
88515         * lib/vasnprintf.h: New file, from GNU gettext.
88516         * lib/vasnprintf.c: New file, from GNU gettext.
88517         * lib/asnprintf.c: New file, from GNU gettext.
88518         * lib/vasprintf.h: New file, from GNU gettext with modifications.
88519         * lib/vasprintf.c: New file, from GNU gettext.
88520         * lib/asprintf.c: New file, from GNU gettext.
88521
88522 2003-01-29  Bruno Haible  <bruno@clisp.org>
88523
88524         * modules/stpncpy: New module.
88525         * MODULES.html.sh (func_all_modules): Add it.
88526
88527 2003-01-29  Bruno Haible  <bruno@clisp.org>
88528
88529         * m4/stpncpy.m4: New file.
88530
88531 2003-01-29  Bruno Haible  <bruno@clisp.org>
88532
88533         * lib/stpncpy.h: New file, from GNU gettext with modifications.
88534         * lib/stpncpy.c: New file, from GNU gettext with modifications.
88535
88536 2003-01-28  Bruno Haible  <bruno@clisp.org>
88537
88538         * modules/c-ctype: New module.
88539         * MODULES.html.sh (func_all_modules): Add it.
88540
88541 2003-01-28  Bruno Haible  <bruno@clisp.org>
88542
88543         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
88544         Paul Eggert.
88545         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
88546         Paul Eggert.
88547
88548 2003-01-27  Bruno Haible  <bruno@clisp.org>
88549
88550         * modules/xsetenv: New module.
88551         * MODULES.html.sh (func_all_modules): Add it.
88552
88553 2003-01-27  Bruno Haible  <bruno@clisp.org>
88554
88555         * lib/xsetenv.h: New file, from GNU gettext.
88556         * lib/xsetenv.c: New file, from GNU gettext.
88557
88558 2003-01-23  Jim Meyering  <jim@meyering.net>
88559
88560         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
88561         from working on systems without dirfd (at least Irix and OSF1/Tru64).
88562
88563 2003-01-23  Bruno Haible  <bruno@clisp.org>
88564
88565         * modules/minmax: New module.
88566         * MODULES.html.sh (func_all_modules): Add it.
88567
88568 2003-01-23  Bruno Haible  <bruno@clisp.org>
88569
88570         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
88571         Eggert.
88572
88573 2003-01-22  Bruno Haible  <bruno@clisp.org>
88574
88575         * modules/exit: New module.
88576         * MODULES.html.sh (func_all_modules): Add it.
88577
88578 2003-01-22  Bruno Haible  <bruno@clisp.org>
88579
88580         * lib/exit.h: New file, from GNU gettext.
88581
88582 2003-01-19  Bruno Haible  <bruno@clisp.org>
88583
88584         * gnulib-tool: Recognize option --extract-maintainer.
88585         (func_get_maintainer): New function.
88586         * modules/*: Add Maintainer entry.
88587
88588 2003-01-16  Jim Meyering  <jim@meyering.net>
88589
88590         * m4/regex.m4: The `regex' struct is both input and output.
88591         Initialize it before each use.  Patch by Tim Waugh.
88592
88593 2003-01-16  Bruno Haible  <bruno@clisp.org>
88594
88595         * MODULES.html.sh: Add a table of contents. Add the module name as
88596         leftmost column. Add hyperlinks.
88597
88598 2003-01-15  Bruno Haible  <bruno@clisp.org>
88599
88600         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
88601
88602 2003-01-15  Bruno Haible  <bruno@clisp.org>
88603
88604         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
88605         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
88606         suffix.
88607
88608 2003-01-15  Bruno Haible  <bruno@clisp.org>
88609
88610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
88611
88612 2003-01-15  Bruno Haible  <bruno@clisp.org>
88613
88614         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
88615         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
88616
88617 2003-01-14  Jim Meyering  <jim@meyering.net>
88618
88619         * lib/same.c (same_name): Tweak a comment.
88620
88621 2003-01-14  Bruno Haible  <bruno@clisp.org>
88622
88623         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
88624         when a string comparison is sufficient.
88625
88626 2003-01-14  Bruno Haible  <bruno@clisp.org>
88627
88628         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
88629         'unsigned int'.
88630
88631 2003-01-14  Bruno Haible  <bruno@clisp.org>
88632
88633         * lib/hash-pjw.c: Add comment about low quality of this function.
88634
88635 2003-01-13  Bruno Haible  <bruno@clisp.org>
88636
88637         * modules/stpcpy: Distribute lib/stpcpy.h.
88638         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
88639
88640 2003-01-13  Bruno Haible  <bruno@clisp.org>
88641
88642         * modules/*: Add a description.
88643         * modules/strpbrk: Fix Makefile.am snippet.
88644         * modules/strtoimax: Fix dependencies.
88645         * modules/strtoumax: Likewise.
88646
88647 2003-01-13  Bruno Haible  <bruno@clisp.org>
88648
88649         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
88650         * modules/alloca (Makefile.am): All object files depend on alloca.h.
88651         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
88652
88653 2003-01-13  Bruno Haible  <bruno@clisp.org>
88654
88655         * gnulib-tool (func_create_testdir): Store config/* files in the main
88656         directory.
88657         * config.rpath: Move to ...
88658         * config/config.rpath: ... here.
88659         * modules/gettext: Contains config/config.rpath, not config.rpath.
88660         * modules/iconv: Likewise.
88661
88662 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88663
88664         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88665         to avoid collisions with libcurses and libreadline.
88666
88667         * m4/getstr.m4: Remove.
88668         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
88669
88670 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88671
88672         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88673         to avoid collisions with libcurses and libreadline.
88674
88675         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
88676         * lib/getstr.h, getstr.c: Remove.
88677         * lib/getline.c: Include "getline.h", to check interface.
88678         Move body of old getstr.c here: this defines MIN_CHUNK and
88679         declares getdelim2, which is renamed from getstr.
88680         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
88681
88682         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
88683         All uses changed.
88684         * lib/linebuffer.h: Likewise.
88685         (readline): Remove backward-compatibility macro.
88686
88687 2003-01-12  Paul Eggert  <eggert@twinsun.com>
88688
88689         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
88690         to avoid collisions with libcurses and libreadline.
88691         * getstr: Remove.
88692         * MODULES.html.sh: Remove getstr.
88693         * modules/getline: Depend on unlocked-io, not getstr.
88694
88695 2003-01-12  Jim Meyering  <jim@meyering.net>
88696
88697         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
88698
88699 2003-01-10  Bruno Haible  <bruno@clisp.org>
88700
88701         * modules/alloca: Change Makefile.am requirements. Simplify Include
88702         requirements. Add lib/alloca_.h to file list.
88703
88704 2003-01-10  Bruno Haible  <bruno@clisp.org>
88705
88706         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
88707
88708 2003-01-10  Bruno Haible  <bruno@clisp.org>
88709
88710         * lib/alloca_.h: New file.
88711         * lib/getdate.y: Unconditionally include alloca.h.
88712         * lib/makepath.c: Likewise.
88713         * lib/setenv.c: Likewise.
88714         * lib/userspec.c: Likewise.
88715
88716 2003-01-09  Karl Berry  <karl@gnu.org>
88717
88718         * MODULES.html.sh: include `dirname $0` in PATH, to find
88719         gnulib-tool.
88720
88721 2003-01-09  Bruno Haible  <bruno@clisp.org>
88722
88723         * modules/stdbool: Change configure.ac, Makefile.am requirements.
88724         Simplify Include requirements. Add lib/stdbool.h.in to file list.
88725
88726 2003-01-09  Bruno Haible  <bruno@clisp.org>
88727
88728         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
88729
88730 2003-01-09  Bruno Haible  <bruno@clisp.org>
88731
88732         * lib/stdbool.h.in: New file.
88733
88734 2003-01-09  Bruno Haible  <bruno@clisp.org>
88735
88736         * gnulib-tool (func_all_modules): Ignore files ending in ~.
88737         * MODULES.html.sh: Likewise.
88738
88739 2003-01-08  Jim Meyering  <jim@meyering.net>
88740
88741         * lib/full-write.c: Undefine and define-away `const' after inclusion
88742         of errno.h, not before.  Suggestion from Bruno Haible.
88743
88744 2003-01-08  Bruno Haible  <bruno@clisp.org>
88745
88746         * modules/full-read: Depend on full-write.
88747
88748 2003-01-08  Bruno Haible  <bruno@clisp.org>
88749
88750         * lib/safe-read.c: Include specification header first, to ensure its
88751         selfcontainedness.
88752         * lib/full-write.c: Likewise.
88753
88754 2003-01-07  Jim Meyering  <jim@meyering.net>
88755
88756         * lib/full-write.c: Rework so that it may serve to define full_read,
88757         too.
88758         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
88759
88760 2003-01-07  Bruno Haible  <bruno@clisp.org>
88761
88762         * lib/strtoimax.c: Include <stdint.h> as an alternative to
88763         <inttypes.h>.
88764         * lib/xstrtol.h: Likewise.
88765         * lib/xstrtoimax.c: Likewise.
88766         * lib/xstrtoumax.c: Likewise.
88767         * lib/human.h: Likewise.
88768
88769         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
88770         on systems that have <inttypes.h> but not <stdint.h>.
88771
88772 2003-01-07  Bruno Haible  <bruno@clisp.org>
88773
88774         * MODULES.html.sh: Add copyright notice.
88775         (missed_files): Omit CVS directory entries.
88776         (func_module): Make it work with sed-3.02.
88777         * MODULES.txt: Remove file.
88778
88779 2003-01-06  Jim Meyering  <jim@meyering.net>
88780
88781         * lib/version-etc.c: Update year in translatable copyright string.
88782
88783 2003-01-03  Karl Berry  <karl@gnu.org>
88784
88785         * config/config.{guess,sub}: update from prep.
88786
88787 2003-01-02  Karl Berry  <karl@gnu.org>
88788
88789         * doc/COPYING.DOC: belatedly updated to 1.2.
88790
88791 2003-01-01  Karl Berry  <karl@gnu.org>
88792
88793         * gnulib-tool (func_verify_module): report module name $module in
88794         error message, not $1.
88795         * gnulib-tool (create-testdir): don't complain if destdir couldn't
88796         be created, only if it doesn't exist.
88797         * gnulib-tool (last_checkin_date): don't expand the $Date here.
88798
88799 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88800
88801         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
88802
88803 2002-12-31  Paul Eggert  <eggert@twinsun.com>
88804
88805         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
88806         memcmp if strcoll doesn't work.
88807
88808 2002-12-31  Bruno Haible  <bruno@clisp.org>
88809
88810         * lib/utime.c (utime_null): No need to call ftruncate if the file was
88811         nonempty.
88812
88813 2002-12-31  Bruno Haible  <bruno@clisp.org>
88814
88815         * lib/memcoll.c (STRCOLL): New macro.
88816         (memcoll): Use it.
88817
88818 2002-12-31  Bruno Haible  <bruno@clisp.org>
88819
88820         * lib/localcharset.h: New file.
88821         * lib/localcharset.c: Include it.
88822         * lib/unicodeio.c: Likewise.
88823
88824 2002-12-31  Bruno Haible  <bruno@clisp.org>
88825
88826         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
88827         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
88828
88829 2002-12-31  Bruno Haible  <bruno@clisp.org>
88830
88831         * lib/getline.h: Include <stddef.h>, for size_t.
88832
88833         * lib/unicodeio.h: Include <stddef.h>, for size_t.
88834         * lib/unicodeio.c: Don't include <stddef.h>.
88835
88836 2002-12-31  Bruno Haible  <bruno@clisp.org>
88837
88838         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
88839         HAVE_TM_ZONE.
88840
88841 2002-12-24  Karl Berry  <karl@gnu.org>
88842
88843         * config/config.guess: update from prep.
88844
88845 2002-12-24  Bruno Haible  <bruno@clisp.org>
88846
88847         General infrasructure.
88848         * m4/README: Rewritten.
88849         * m4/onceonly.m4: New file.
88850         * m4/onceonly_2_57.m4: New file.
88851
88852         Module atexit.
88853         * m4/atexit.m4: New file.
88854
88855         Module strtod.
88856         * m4/strtod.m4: New file.
88857
88858         Module strtol.
88859         * m4/strtol.m4: New file.
88860
88861         Module strtoul.
88862         * m4/strtoul.m4: New file.
88863
88864         Module memchr.
88865         * m4/memchr.m4: New file.
88866
88867         Module memcmp.
88868         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
88869         (jm_FUNC_MEMCMP): Invoke it.
88870
88871         Module memcpy.
88872         * m4/memcpy.m4: New file.
88873
88874         Module memmove.
88875         * m4/memmove.m4: New file.
88876
88877         Module memset.
88878         * m4/memset.m4: New file.
88879
88880         Module strcspn.
88881         * m4/strcspn.m4: New file.
88882
88883         Module strpbrk.
88884         * m4/strpbrk.m4: New file.
88885
88886         Module strstr.
88887         * m4/strstr.m4: New file.
88888
88889         Module strerror.
88890         * m4/strerror.m4: New file.
88891
88892         Module mktime.
88893         * m4/mktime.m4: Renamed from jm-mktime.m4.
88894         (gl_PREREQ_MKTIME): New macro.
88895         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
88896
88897         Module malloc.
88898         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
88899         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
88900         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
88901
88902         Module realloc.
88903         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
88904         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
88905         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
88906
88907         Module strftime.
88908         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
88909         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
88910         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
88911         gl_TM_GMTOFF.
88912         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
88913
88914         Module xalloc.
88915         * m4/xalloc.m4: New file.
88916
88917         Module alloca.
88918         * m4/alloca.m4: New file.
88919
88920         Module putenv.
88921         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
88922         (jm_FUNC_PUTENV): Invoke it.
88923
88924         Module setenv.
88925         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
88926         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
88927         when invoked twice.
88928         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
88929         gt_FUNC_SETENV.
88930
88931         Module memrchr.
88932         * m4/memrchr.m4: New file.
88933
88934         Module stpcpy.
88935         * m4/stpcpy.m4: New file.
88936
88937         Module strcase.
88938         * m4/strcase.m4: New file.
88939
88940         Module strdup.
88941         * m4/strdup.m4: New file.
88942
88943         Module strnlen.
88944         * m4/strnlen.m4: New file.
88945
88946         Module strndup.
88947         * m4/strndup.m4: New file.
88948
88949         Module xstrtod.
88950         * m4/xstrtod.m4: New file.
88951
88952         Module xstrtol.
88953         * m4/xstrtol.m4: New file.
88954
88955         Module getdate.
88956         * m4/getdate.m4: New file.
88957
88958         Module unlocked-io.
88959         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
88960         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
88961         * m4/jm-glibc-io.m4n: Remove file.
88962
88963         Module long-options.
88964         * m4/long-options.m4: New file.
88965
88966         Module md5.
88967         * m4/md5.m4: New file.
88968
88969         Module sha.
88970         * m4/sha.m4: New file.
88971
88972         Module getstr.
88973         * m4/getstr.m4: New file.
88974
88975         Module getline.
88976         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
88977         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
88978         <sys/types.h>, for size_t. Use the function name gnu_getline, not
88979         simply getline. Infoke gl_PREREQ_GETLINE.
88980
88981         Module obstack.
88982         * m4/obstack.m4: New file.
88983
88984         Module hash.
88985         * m4/hash.m4: New file.
88986
88987         Module readtokens.
88988         * m4/readtokens.m4: New file.
88989
88990         Module strverscmp.
88991         * m4/strverscmp.m4: New file.
88992
88993         Module stdbool.
88994         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
88995         OSF/1.
88996
88997         Module strtoll.
88998         * m4/strtoll.m4: New file.
88999
89000         Module strtoull.
89001         * m4/strtoull.m4: New file.
89002
89003         Module strtoimax.
89004         * m4/strtoimax.m4: New file.
89005
89006         Module strtoumax.
89007         * m4/strtoumax.m4: New file.
89008
89009         Module xstrtoimax.
89010         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89011         jm_AC_PREREQ_XSTRTOIMAX.
89012         Moved the strtol prerequisites to strtol.m4.
89013         Moved the strtoll prerequisites to strtoll.m4.
89014         Moved the strtoimax prerequisites to strtoimax.m4.
89015
89016         Module xstrtoumax.
89017         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89018         jm_AC_PREREQ_XSTRTOUMAX.
89019         Moved the strtoul prerequisites to strtoul.m4.
89020         Moved the strtoull prerequisites to strtoull.m4.
89021         Moved the strtoumax prerequisites to strtoumax.m4.
89022
89023         Module chown.
89024         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89025         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89026
89027         Module dup2.
89028         * m4/dup2.m4: New file.
89029
89030         Module ftruncate.
89031         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89032         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89033
89034         Module getgroups.
89035         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89036         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89037
89038         Module gettimeofday.
89039         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89040         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89041         gl_PREREQ_GETTIMEOFDAY.
89042
89043         Module mkdir.
89044         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89045         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89046
89047         Module mkstemp.
89048         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89049         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89050         jm_AC_TYPE_UINTMAX_T.
89051         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89052
89053         Module stat.
89054         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89055         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89056
89057         Module lstat.
89058         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89059         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89060
89061         Module timespec.
89062         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89063         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89064         * m4/st_mtim.m4: Indentation.
89065
89066         Module nanosleep.
89067         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89068         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89069         gl_PREREQ_NANOSLEEP.
89070
89071         Module regex.
89072         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89073         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89074         (gl_REGEX): New macro.
89075
89076         Module rename.
89077         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89078         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89079
89080         Module rmdir.
89081         * m4/rmdir.m4: New file.
89082
89083         Module utime.
89084         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89085         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89086         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89087
89088         Module dirname.
89089         * m4/dirname.m4: New file.
89090
89091         Module getopt.
89092         * m4/getopt.m4: New file.
89093
89094         Module unistd-safer.
89095         * m4/unistd-safer.m4: New file.
89096
89097         Module fnmatch.
89098         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89099         declaration.
89100         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89101         (gl_FUNC_FNMATCH_POSIX): New macro.
89102         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89103         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89104         simply fnmatch.
89105
89106         Module exclude.
89107         * m4/exclude.m4: New file.
89108
89109         Module human.
89110         * m4/human.m4: New file.
89111
89112         Module acl.
89113         * m4/acl.m4: Nop.
89114
89115         Module backupfile.
89116         * m4/backupfile.m4: New file.
89117         * m4/d-ino.m4: Indentation.
89118
89119         Module fsusage.
89120         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89121         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89122         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89123
89124         Module dirfd.
89125         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89126         requirements.
89127
89128         Module euidaccess.
89129         * m4/euidaccess.m4: New file.
89130
89131         Module file-type.
89132         * m4/file-type.m4: New file.
89133
89134         Module fileblocks.
89135         * m4/fileblocks.m4: New file.
89136
89137         Module filemode.
89138         * m4/filemode.m4: New file.
89139
89140         Module isdir.
89141         * m4/isdir.m4: New file.
89142
89143         Module lchown.
89144         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89145         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89146
89147         Module makepath.
89148         * m4/makepath.m4: New file.
89149
89150         Module modechange.
89151         * m4/modechange.m4: New file.
89152
89153         Module mountlist.
89154         * m4/mountlist.m4: New file.
89155         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89156         Indentation.
89157
89158         Module path-concat.
89159         * m4/path-concat.m4: New file.
89160
89161         Module pathmax.
89162         * m4/pathmax.m4: New file.
89163
89164         Module same.
89165         * m4/same.m4: New file.
89166
89167         Module save-cwd.
89168         * m4/save-cwd.m4: New file.
89169
89170         Module savedir.
89171         * m4/savedir.m4: New file.
89172
89173         Module xgetcwd.
89174         * m4/xgetcwd.m4: New file.
89175         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89176
89177         Module xreadlink.
89178         * m4/xreadlink.m4: New file.
89179
89180         Module safe-read.
89181         * m4/safe-read.m4: New file.
89182
89183         Module safe-write.
89184         * m4/safe-write.m4: New file.
89185
89186         Module closeout.
89187         * m4/closeout.m4: New file.
89188
89189         Module stdio-safer.
89190         * m4/stdio-safer.m4: New file.
89191
89192         Module getpass.
89193         * m4/getpass.m4: New file.
89194
89195         Module getugroups.
89196         * m4/getugroups.m4: New file.
89197
89198         Module group-member.
89199         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89200         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89201
89202         Module idcache.
89203         * m4/idcache.m4: New file.
89204
89205         Module userspec.
89206         * m4/userspec.m4: New file.
89207
89208         Module gettime.
89209         * m4/clock_time.m4: New file.
89210         * m4/gettime.m4: New file.
89211
89212         Module settime.
89213         * m4/settime.m4: New file.
89214
89215         Module posixtm.
89216         * m4/posixtm.m4: New file.
89217
89218         Module gethostname.
89219         * m4/gethostname.m4: New file.
89220
89221         Module canon-host.
89222         * m4/canon-host.m4: New file.
89223
89224         Module gettext.
89225         * m4/codeset.m4: New file, from gettext-0.11.5.
89226         * m4/gettext.m4: New file, from gettext-0.11.5.
89227         * m4/glibc21.m4: New file, from gettext-0.11.5.
89228         * m4/iconv.m4: New file, from gettext-0.11.5.
89229         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89230         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89231         * m4/inttypes.m4: New file, from gettext-0.11.5.
89232         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89233         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89234         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89235         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89236         * m4/lib-link.m4: New file, from gettext-0.11.5.
89237         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89238         * m4/progtest.m4: New file, from gettext-0.11.5.
89239         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89240         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89241         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89242
89243         Module localcharset.
89244         * m4/localcharset.m4: New file.
89245
89246         Module hard-locale.
89247         * m4/hard-locale.m4: New file.
89248
89249         Module mbswidth.
89250         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89251         onceonly macros.
89252         * m4/mbrtowc.m4: Add comment.
89253
89254         Module memcasecmp.
89255         * m4/memcasecmp.m4: New file.
89256
89257         Module memcoll.
89258         * m4/memcoll.m4: New file.
89259
89260         Module unicodeio.
89261         * m4/unicodeio.m4: New file.
89262
89263         Module rpmatch.
89264         * m4/rpmatch.m4: New file.
89265
89266         Module yesno.
89267         * m4/yesno.m4: New file.
89268
89269         Module exitfail.
89270         * m4/exitfail.m4: New file.
89271
89272         Module c-stack.
89273         * m4/c-stack.m4 (gl_C_STACK): New macro.
89274         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89275
89276         Module error.
89277         * m4/error.m4 (gl_ERROR): New macro.
89278         (jm_PREREQ_ERROR): Use onceonly macros.
89279
89280         Module fatal.
89281         * m4/fatal.m4: New file.
89282
89283         Module getloadavg.
89284         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89285         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89286
89287         Module getpagesize.
89288         * m4/getpagesize.m4: New file.
89289
89290         Module getusershell.
89291         * m4/getusershell.m4: New file.
89292
89293         Module physmem.
89294         * m4/physmem.m4: New file.
89295
89296         Module posixver.
89297         * m4/posixver.m4: New file.
89298
89299         Module quotearg.
89300         * m4/quotearg.m4: New file.
89301
89302         Module quote.
89303         * m4/quote.m4: New file.
89304
89305         Module readutmp.
89306         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89307
89308         Module sig2str.
89309         * m4/sig2str.m4: New file.
89310
89311         Other.
89312         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89313         ulonglong.m4.
89314         * m4/intmax_t.m4: New file.
89315         * m4/d-type.m4: Indentation.
89316         * m4/jm-macros.m4: Update.
89317         * m4/prereq.m4 (jm_PREREQ): Update.
89318         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89319         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89320         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89321         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89322         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89323         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89324         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89325         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89326         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89327         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89328         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89329         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89330         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89331         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89332         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89333         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89334         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89335         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89336         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89337
89338 2002-12-24  Bruno Haible  <bruno@clisp.org>
89339
89340         * MODULES.txt: Update according to m4/ changes.
89341
89342         Module gettext.
89343         * config.rpath: New file, from gettext-0.11.5.
89344
89345         * modules/*: New module descriptions.
89346         * gnulib-tool: New file.
89347         * MODULES.html.sh: New file.
89348
89349 2002-12-21  Karl Berry  <karl@gnu.org>
89350
89351         * doc/fdl.texi: update to version 1.2.
89352
89353 2002-12-19  Karl Berry  <karl@gnu.org>
89354
89355         * config/config.guess: update from prep.
89356
89357 2002-12-18  Bruno Haible  <bruno@clisp.org>
89358
89359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89360         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89361
89362 2002-12-17  Bruno Haible  <bruno@clisp.org>
89363
89364         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89365         stdlib.h, string.h.
89366
89367 2002-12-17  Bruno Haible  <bruno@clisp.org>
89368
89369         * lib/canon-host.c (strdup): Remove unused declaration.
89370
89371         * lib/fsusage.c: Include full_read.h.
89372         (get_fs_usage): Use full_read instead of safe_read.
89373
89374         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89375
89376 2002-12-12  Karl Berry  <karl@gnu.org>
89377
89378         * config/config.guess: update from prep.
89379
89380 2002-12-11  Bruno Haible  <bruno@clisp.org>
89381
89382         * m4/setenv.m4: New file, from gettext-0.11.5.
89383
89384 2002-12-11  Bruno Haible  <bruno@clisp.org>
89385
89386         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89387         not unsetenv().
89388         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89389         modifications:
89390
89391         2002-12-11  Bruno Haible  <bruno@clisp.org>
89392
89393                 * setenv.c (alloca): Fall back to malloc.
89394                 (freea): New macro.
89395                 (setenv): Use freea() to free memory allocated with alloca().
89396
89397         2002-11-13  Bruno Haible  <bruno@clisp.org>
89398
89399                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89400                 function declarations.
89401                 * unsetenv.c (unsetenv): Likewise.
89402
89403         2002-03-04  Bruno Haible  <bruno@clisp.org>
89404
89405                 Portability to AIX 4.3.3.
89406                 * unsetenv.c: New file, extracted from setenv.c.
89407                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89408
89409         2001-12-20  Bruno Haible  <bruno@clisp.org>
89410
89411                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89412                 use malloc instead. For SunOS 4.
89413
89414         2001-12-11  Bruno Haible  <bruno@clisp.org>
89415
89416                 * setenv.c: Declare alloca.
89417                 (compar_fn_t): New typedef.
89418                 (KNOWN_VALUE, STORE_VALUE): Use it.
89419
89420         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89421         setenv.h.
89422
89423 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89424
89425         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89426         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89427         Choose values that are less likely to collide with system fnmatch
89428         options.
89429         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89430         defined (e.g., a pure POSIX system).
89431         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89432         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89433
89434 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89435
89436         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
89437         a pain in practice to deal with generated m4 files.  This change
89438         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
89439
89440         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
89441         and jm-glibc-io.m4, as they are no longer a special case.
89442         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
89443         kludge and the auto-generation stuff.  Check only whether the
89444         functions are declared, not whether they exist, since older hosts
89445         that don't declare the functions can't use the optimization anyway.
89446
89447 2002-12-06  Jim Meyering  <jim@meyering.net>
89448
89449         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
89450
89451         Merge in changes from libc's misc/error.c, in preparation
89452         for the merge of gnulib's changes back into libc.
89453
89454         * lib/error.c (_): Define only if not already defined.
89455         Move definition to follow all #include directives.
89456         Include unlocked-io.h only if !_LIBC.
89457         [_LIBC]: Include <libio/libioP.h>.
89458         [USE_IN_LIBIO]: Include <libio/iolibio.h>
89459         (fflush): Tweak definition to use INTUSE.
89460         (putc): Define.
89461
89462 2002-12-05  Paul Eggert  <eggert@twinsun.com>
89463
89464         * lib/alloca.c [defined emacs]: Include "lisp.h".
89465         (xalloc_die) [defined emacs]: New macro.
89466         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
89467         [! defined emacs]: Include <xalloc.h>.
89468         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
89469         (pointer): Typedef to POINTER_TYPE *.
89470         (malloc): Remove decl; we now always use xmalloc.
89471         (alloca): Use old-style definition, since Emacs needs this.
89472         Check for arithmetic overflow when computing combined size.
89473
89474 2002-12-04  Paul Eggert  <eggert@twinsun.com>
89475
89476         Do not generate unlocked-io.h automatically, since it's easier to
89477         maintain it by hand.
89478
89479         * lib/unlocked-io.h: New file, from GNU diffutils,
89480         but with proper copyright notice and attribution.
89481         * lib/gen-uio: Remove.
89482         * lib/Makefile.am: Add copyright notice.
89483         (libfetish_a_SOURCES): Add unlocked-io.h.
89484         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
89485         (DISTCLEANFILES, io_functions): Remove macros.
89486         (EXTRA_DIST): Remove gen_uio.
89487         (unlocked-io.h): Remove rule.
89488
89489 2002-12-04  Jim Meyering  <jim@meyering.net>
89490
89491         Reflect the fact that stat.c and lstat.c are no longer generated.
89492         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
89493         (DISTCLEANFILES): Likewise.
89494         (EXTRA_DIST): Likewise.
89495         (all_local): Don't depend on stat.c or lstat.c.
89496         (stat.c, lstat.c): Remove rules.
89497         (EXTRA_DIST): Remove xstat.in.
89498
89499         * lib/xstat.in: Remove file.  Contents moved into stat.c.
89500         * lib/stat.c: New file.  Contents mostly from xstat.in.
89501         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
89502         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
89503
89504         * lib/safe-read.c: Rework so that it may serve to define safe_write,
89505         too.
89506         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
89507
89508 2002-12-03  Jim Meyering  <jim@meyering.net>
89509
89510         * lib/safe-read.c, safe-write.c: Change variable names and comments,
89511         but not semantics, to minimize the differences between these two files.
89512         (safe_read): Change comment to mention SAFE_READ_ERROR.
89513
89514         * lib/safe-read.c (IS_EINTR): Define.
89515         (safe_read): Use IS_EINTR in place of in-function cpp directives.
89516
89517 2002-12-02  Jim Meyering  <jim@meyering.net>
89518
89519         * lib/safe-read.c (EINTR): Define.
89520         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89521         (INT_MAX): Provide fallback.
89522         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
89523
89524         * lib/safe-read.h (SAFE_READ_ERROR): Define.
89525
89526 2002-12-02  Bruno Haible  <bruno@clisp.org>
89527
89528         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
89529         Define, taken from safe-read.c.
89530         (INT_MAX): Provide fallback.
89531         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
89532         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
89533
89534         * lib/safe-read.c (EINTR): Remove definition.
89535         (safe_read): Don't use EINTR if it is absent.
89536
89537 2002-12-01  Jim Meyering  <jim@meyering.net>
89538
89539         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
89540         zero.
89541         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
89542
89543 2002-11-27  Paul Eggert  <eggert@twinsun.com>
89544
89545         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
89546         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
89547         with `if (! (value < limit)) abort ();', for readability.
89548
89549 2002-11-26  Karl Berry  <karl@gnu.org>
89550
89551         * lib/strdup.c: copy from libc again, with jim's ok.
89552         * lib/.cppi-disable: re-add strdup.c
89553
89554 2002-11-25  Karl Berry  <karl@gnu.org>
89555
89556         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
89557         instead of "strtol.c".
89558
89559 2002-11-25  Karl Berry  <karl@gnu.org>
89560
89561         * config/install-sh: update from automake for variable quoting, $0 in
89562         error msgs, etc.
89563
89564         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
89565         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
89566         entry.
89567
89568 2002-11-25  Jim Meyering  <jim@meyering.net>
89569
89570         * lib/mktime.c: Sync from libc, now that it has the latest fix.
89571
89572 2002-11-24  Karl Berry  <karl@gnu.org>
89573
89574         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
89575         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
89576
89577 2002-11-24  Jim Meyering  <jim@meyering.net>
89578
89579         Update from coreutils:
89580
89581         * lib/mktime.c: Merge in changes from libc.
89582
89583         Avoid a link-time failure on some Linux systems.
89584         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
89585         (otherwise).
89586         (__mon_yday): Declare with the STATIC attribute.
89587         (__mktime_internal): Likewise.
89588         Based on a report from Greg Schafer.
89589
89590 2002-11-23  Jim Meyering  <jim@meyering.net>
89591
89592         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
89593         Use `unsigned', not `int', as type of index.
89594
89595         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
89596
89597         * lib/fsusage.c: Remove unneeded parentheses around operands of
89598         `defined'.
89599
89600 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89601
89602         * lib/quotearg.h: Allow multiple inclusion by surrounding with
89603         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
89604         so that we can be included first.
89605         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
89606         * lib/quotearg.c: Include quotearg.h immediately after config.h.
89607         No need to include stddef.h or sys/types.h any more.
89608         Surround local include files with "", not "<>".
89609         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
89610         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
89611         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
89612         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
89613         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
89614         (ISPRINT): Remove; no longer needed now that we assume C89.
89615
89616         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
89617         Preserve errno.
89618
89619         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
89620         quotearg_char): Use SIZE_MAX rather than
89621         (size_t) -1 when we are talking about "infinity".
89622
89623         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
89624
89625 2002-11-22  Paul Eggert  <eggert@twinsun.com>
89626
89627         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
89628         hint that one should use `if (! x) abort ();' rather than `assert
89629         (x);', and anyway it's one less thing to worry about configuring.
89630         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
89631         hash_rehash, hash_insert): Use abort rather than assert.
89632
89633 2002-11-22  Bruno Haible  <bruno@clisp.org>
89634
89635         * lib/safe-read.h: Assume C89. Add comments.
89636         (safe_read): Change return type to size_t.
89637         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
89638         byte counts > SSIZE_MAX correctly.
89639         * lib/safe-write.h: New file.
89640         * lib/safe-write.c: New file.
89641         * lib/full-read.h: New file.
89642         * lib/full-read.c: New file.
89643         * lib/full-write.h: Assume C89. Add comments.
89644         * lib/full-write.c: Include safe-write.h.
89645         (full_write): Rewritten to use safe_write.
89646         Suggested by Jim Meyering and Paul Eggert.
89647
89648 2002-11-21  Jim Meyering  <jim@meyering.net>
89649
89650         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
89651
89652         Merge in changes from the coreutils.
89653
89654         2002-09-25  Paul Eggert  <eggert@twinsun.com>
89655         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
89656         <stdint.h>.
89657         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
89658         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
89659         int.  Work more efficiently if X is the same width as uintmax_t.
89660         Do not compare X to -1, to avoid bogus compiler warning.
89661         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
89662         Don't assume that f_frsize and f_bsize are the same type.
89663
89664         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
89665         warning on FreeBSD.
89666
89667         * lib/makepath.c (make_path): Restore umask *before* creating the final
89668         component.
89669         (make_path): Minor reformatting.
89670
89671         * lib/xmalloc.c: Adjust to work with new autoconf macros,
89672         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
89673         HAVE_MALLOC/HAVE_REALLOC.
89674
89675         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
89676         dummy ones.  At least on GNU/Linux systems, `auto' means something
89677         else.
89678         From Michael Stone.
89679
89680 2002-11-21  Bruno Haible  <bruno@clisp.org>
89681
89682         Remove case insensitive option matching.
89683         * lib/argmatch.h (argcasematch): Remove declaration.
89684         (ARGCASEMATCH): Remove macro.
89685         (__xargmatch_internal): Remove case_sensitive argument.
89686         (XARGMATCH): Update.
89687         (XARGCASEMATCH): Remove macro.
89688         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
89689         case_sensitive argument.
89690         (argcasematch): Remove function.
89691         (__xargmatch_internal): Remove case_sensitive argument.
89692         (main): Use XARGMATCH instead of XARGCASEMATCH.
89693
89694         * lib/xmalloc.c: Change compile-time error message. Add comment about
89695         required autoconf version.
89696
89697 2002-11-20  Paul Eggert  <eggert@twinsun.com>
89698
89699         Merge argmatch cleanups from Bison.  Assume C89.
89700
89701         * lib/argmatch.c: Include config.h here, not in argmatch.h.
89702         Include stdlib.h, for EXIT_FAILURE.
89703         Always include <string.h>, since we assume C89.
89704         (EXIT_FAILURE): Remove pre-C89 bug workaround.
89705         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
89706         Include <stddef.h> instead, since it's all we need for size_t.
89707         (PARAMS): Remove.  All uses removed.
89708         (ARRAY_CARDINALITY): Do not bother to #undef.
89709         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
89710         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89711         Remove unnecessary parentheses.
89712         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
89713         Insert necessary parentheses.
89714         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
89715         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
89716
89717 2002-11-19  Bruno Haible  <bruno@clisp.org>
89718
89719         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
89720         * lib/mbswidth.h: Include <stddef.h>, for size_t.
89721
89722         * lib/mbswidth.h (PARAMS): Remove macro.
89723         (mbswidth, mbsnwidth): Use ANSI C function declarations.
89724         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
89725
89726         * lib/gcd.h (PARAMS): Remove macro.
89727         (gcd): Use ANSI C function declarations.
89728         * lib/gcd.c (gcd): Likewise.
89729
89730 2002-11-15  Bruno Haible  <bruno@clisp.org>
89731
89732         * lib/strcspn.c: Include <stddef.h>.
89733         (strcspn): Use ANSI C function declaration. Change return type to
89734         size_t. Use NULL.
89735         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
89736         (strpbrk): Use NULL.
89737         * lib/strpbrk.h (PARAMS): Remove macro.
89738         (strpbrk): Use ANSI C function declaration.
89739         * lib/strstr.c: Don't include <sys/types.h>.
89740         * lib/strstr.h (PARAMS): Remove macro.
89741         (strstr): Use ANSI C function declarations.
89742
89743 2002-11-14  Karl Berry  <karl@gnu.org>
89744
89745         * config/mkinstalldirs: `do' on separate line, instead of
89746         `for var; do'.
89747
89748 2002-11-06  Bruno Haible  <bruno@clisp.org>
89749
89750         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
89751         * lib/gcd.c (gcd): Likewise.
89752
89753 2002-11-05  Bruno Haible  <bruno@clisp.org>
89754
89755         * lib/gcd.h: New file, from gettext-0.11.5.
89756         * lib/gcd.c: New file, from gettext-0.11.5.
89757
89758 2002-11-05  Bruno Haible  <bruno@clisp.org>
89759
89760         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89761         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89762         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89763         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
89764
89765         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
89766         <libintl.h>.
89767         * lib/makepath.c: Include gettext.h instead of <locale.h> and
89768         <libintl.h>.
89769
89770         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
89771         * lib/human.c: Include gettext.h instead of <libintl.h>.
89772         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
89773         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
89774         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
89775         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
89776         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
89777         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
89778         (textdomain): Remove definition.
89779         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
89780
89781         * lib/long-options.c: Remove include of <libintl.h> and definition of
89782         _.
89783         * lib/same.c: Remove include of <libintl.h> and definition of _.
89784
89785 2002-11-04  Owen Taylor  <otaylor@redhat.com>
89786
89787         * lib/config.charset: A few additions for Solaris.
89788
89789 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89790
89791         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
89792         * lib/localcharset.c (locale_charset): Declare as extern "C".
89793
89794 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
89795
89796         * lib/config.charset: msdos in uk_UA uses CP1125.
89797
89798 2002-11-04  Bruno Haible  <bruno@clisp.org>
89799
89800         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
89801         * lib/strcase.h: New file, from GNU gettext-0.11.5.
89802         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
89803         * lib/strstr.h: New file, from GNU gettext-0.11.5.
89804         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
89805
89806 2002-11-04  Bruno Haible  <bruno@clisp.org>
89807
89808         * lib/localcharset.c (locale_charset): Don't return an empty string.
89809
89810 2002-11-04  Bruno Haible  <bruno@clisp.org>
89811
89812         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
89813         aliases.
89814
89815 2002-11-04  Bruno Haible  <bruno@clisp.org>
89816
89817         * lib/config.charset: Update for newest glibc. Add canonical names
89818         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
89819
89820 2002-11-04  Bruno Haible  <bruno@clisp.org>
89821
89822         * lib/config.charset: Add support for NetBSD.
89823
89824 2002-11-04  Bruno Haible  <bruno@clisp.org>
89825
89826         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
89827
89828 2002-11-01  Bruno Haible  <bruno@clisp.org>
89829
89830         * configure.in: Add AC_CONFIG_AUX_DIR call.
89831         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
89832         test/Makefile.
89833         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
89834
89835 2002-09-28  Karl Berry  <karl@gnu.org>
89836
89837         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
89838         installed automake until the next release, since changes have been
89839         made.
89840
89841 2002-09-25  Karl Berry  <karl@gnu.org>
89842
89843         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
89844         * lib/getopt*: copy from libc/posix.
89845         * lib/gettext.h: copy from gettext.
89846         * lib/.cppi-disable: add strdup.c, gettext.h.
89847
89848 2002-09-25  Karl Berry  <karl@gnu.org>
89849
89850         * config/srclist.txt: enable gettext.h check.
89851         * config/config.{guess,sub}: update from prep.
89852         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
89853                 from automake 1.6.3.
89854         See srclist*.
89855
89856 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
89857
89858         * regex.c (PATFETCH): Remove the translating fetch.
89859         (PATFETCH_RAW): Rename to PATFETCH.
89860         (set_image_of_range): New fun.
89861         (SET_RANGE_TABLE_WORK_AREA): Use it.
89862         (regex_compile): Don't translate the pattern chars so eagerly.
89863         Only do it when inserting an `exactn' bytecode or when handling
89864         a char-range.
89865         (mutually_exclusive_p): Avoid empty statement.
89866
89867 2002-07-06  Jim Meyering  <meyering@lucent.com>
89868
89869         * m4/README: Don't mention Makefile.am.in.
89870         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
89871
89872 2002-07-01  Jim Meyering  <meyering@lucent.com>
89873
89874         * lib/c-stack.c: Include sys/time.h.
89875         From Volker Borchert.
89876
89877 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89878
89879         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
89880
89881 2002-06-26  Paul Eggert  <eggert@twinsun.com>
89882
89883         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
89884         New macro.  Use it uniformly instead of
89885         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
89886         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
89887         reported by Vin Shelton.
89888
89889 2002-06-22  Paul Eggert  <eggert@twinsun.com>
89890
89891         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
89892         Do not assume SA_SIGINFO behavior.
89893         Bug reported by Jim Meyering on NetBSD 1.5.2.
89894
89895 2002-06-22  Jim Meyering  <meyering@lucent.com>
89896
89897         * m4/c-stack.m4: New file, from diffutils-2.8.2.
89898         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
89899
89900         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
89901         now that configure.ac uses AC_GNU_SOURCE.
89902         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
89903         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
89904
89905         Update to latest tools.  Suggestions from Paul Eggert.
89906         * m4/stdbool.m4: New file, from diffutils-2.8.2.
89907         * m4/gnu-source.m4: Update from diffutils-2.8.2.
89908         * m4/fnmatch.m4: Likewise.
89909         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
89910         to AC_HEADER_STDBOOL
89911
89912 2002-06-22  Jim Meyering  <meyering@lucent.com>
89913
89914         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
89915         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
89916
89917 2002-06-22  Jim Meyering  <meyering@lucent.com>
89918
89919         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
89920
89921         * lib/exitfail.c, exitfail.h: Likewise.
89922         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
89923
89924         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
89925         of fnmatch.h.
89926         (EXTRA_DIST): Add fnmatch_loop.c.
89927         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
89928
89929         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
89930         * lib/fnmatch.c: Update from diffutils-2.8.2.
89931         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
89932         * lib/fnmatch.h: Remove file.
89933
89934 2002-06-21  Jim Meyering  <meyering@lucent.com>
89935
89936         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
89937         * m4/mbrtowc.m4: Likewise.
89938
89939         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
89940         * m4/mbswidth.m4: Reflect name change:
89941         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
89942         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89943
89944         * m4/lib-link.m4: Update from gettext-0.11.2.
89945         * m4/gettext.m4: Likewise.
89946
89947         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
89948         From Alfred M. Szmidt.
89949
89950 2002-06-18  Paul Eggert  <eggert@twinsun.com>
89951
89952         * lib/file-type.h: Report an error if neither S_ISREG nor
89953         S_IFREG is defined, instead of using a test specific to glibc
89954         2.2.  This should be safe, since POSIX requires S_ISREG and
89955         Unix Version 7 had S_IFREG.  We don't need to check for
89956         <sys/types.h> since we don't use any symbols that it defines.
89957
89958 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
89959
89960         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
89961         $@-t, so that each temporary file name is unique and valid in the first
89962         8 characters, for operation under DOS.
89963
89964 2002-06-15  Paul Eggert  <eggert@twinsun.com>
89965
89966         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
89967
89968 2002-06-15  Jim Meyering  <meyering@lucent.com>
89969
89970         Work even with DJGPP 2.03, which lacks support for symlinks.
89971         From Richard Dawe.
89972         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
89973         is defined.
89974         * lib/lchown.c (S_ISLNK): Likewise.
89975
89976 2002-06-15  Jim Meyering  <meyering@lucent.com>
89977
89978         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
89979         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
89980         have been included before this file.
89981
89982 2002-06-14  Jim Meyering  <meyering@lucent.com>
89983
89984         * lib/file-type.h: Use the version from diffutils-2.8.2.
89985         * lib/file-type.c: Likewise.
89986
89987 2002-06-07  Jim Meyering  <meyering@lucent.com>
89988
89989         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
89990         They're needed at least for NetBSD 1.5.2.
89991         ($statxfs_includes): Include those same headers.
89992         ($statxfs_includes): Include sys/vfs.h if available.
89993         ($statxfs_includes): Likewise for sys/statvfs.h.
89994         Check for the following members in both structs statfs and statvfs:
89995         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
89996
89997 2002-06-01  Jim Meyering  <meyering@lucent.com>
89998
89999         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90000         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90001
90002 2002-05-28  Jim Meyering  <meyering@lucent.com>
90003
90004         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90005         Reported by Volker Borchert.
90006
90007 2002-05-27  Jim Meyering  <meyering@lucent.com>
90008
90009         Fix a problem seen only on nonconforming systems whereby ls.c's
90010         use of localtime, and then of gettimeofday would cause trouble:
90011         the localtime call used to initialize rpl_gettimeofday's save
90012         mechanism would clobber ls's current local time information so
90013         that in any long listing the first file would always be listed
90014         with date 1970-01-01.  Analysis by Volker Borchert.
90015
90016         * lib/gettimeofday.c (localtime): Undefine.
90017         (rpl_localtime): New function.
90018
90019 2002-05-27  Jim Meyering  <meyering@lucent.com>
90020
90021         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90022         localtime.
90023
90024         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90025         use the replacement function; it wouldn't resolve at link time.
90026         Reported by Volker Borchert.
90027
90028 2002-05-22  Jim Meyering  <meyering@lucent.com>
90029
90030         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90031         file-type.h.
90032         * lib/file-type.h: New file.
90033         * lib/file-type.c (file_type): New file/function.  Extracted from
90034         diffutils.
90035
90036 2002-04-30  Jim Meyering  <meyering@lucent.com>
90037
90038         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90039
90040 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90041
90042         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90043
90044 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90045
90046         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90047         Do not check for alloca.h (no longer used) or stdbool.h (was never
90048         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90049
90050 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90051
90052         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90053
90054 2002-04-29  Jim Meyering  <meyering@lucent.com>
90055
90056         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90057         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90058         Use AC_FUNC_STRNLEN here instead.
90059
90060         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90061         With autoconf-2.53a, it's part of AC_PROG_CC.
90062
90063 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90064
90065         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90066         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90067
90068 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90069
90070         * lib/sig2str.h, lib/sig2str.c: New files.
90071         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90072
90073 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90074
90075         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90076         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90077         of 127, since 64 is the largest conceivable number for ancient
90078         nonstandard hosts.
90079         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90080
90081 2002-04-28  Jim Meyering  <meyering@lucent.com>
90082
90083         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90084
90085 2002-04-24  Jim Meyering  <meyering@lucent.com>
90086
90087         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90088         (jm_PREREQ): Use it.
90089
90090         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90091         mach/mach.h fcntl.h.
90092         Check for this function: setlocale.
90093
90094 2002-04-24  Jim Meyering  <meyering@lucent.com>
90095
90096         * lib/gettext.h: New file, from Gettext.
90097         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90098         (libfetish_a_SOURCES): Add gettext.h.
90099
90100 2002-04-16  Jim Meyering  <meyering@lucent.com>
90101
90102         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90103         ut_pid, ut_id, ut_exit.
90104
90105 2002-04-16  Jim Meyering  <meyering@lucent.com>
90106
90107         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90108         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90109         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90110
90111 2002-04-12  Jim Meyering  <meyering@lucent.com>
90112
90113         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90114         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90115         existence of the getmntinfo function.  Needed for Darwin 5.3.
90116
90117         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90118         This is necessary at least on Darwin 5.3.
90119
90120         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90121         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90122         strnlen.o in the library, and that makes some versions of ranlib
90123         object.
90124
90125 2002-04-12  Jim Meyering  <meyering@lucent.com>
90126
90127         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90128
90129 2002-04-09  Jim Meyering  <meyering@lucent.com>
90130
90131         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90132         to be more precise.  Rather than saying we're checking whether the
90133         function `works', say what we're testing.
90134         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90135         Reported by Bruno Haible.
90136
90137 2002-03-10  Jim Meyering  <meyering@lucent.com>
90138
90139         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90140         Suggestion from Santiago Vila.
90141
90142 2002-03-08  Jim Meyering  <meyering@lucent.com>
90143
90144         * lib/rename.c: Mention that this wrapper is needed also on
90145         mips-dec-ultrix4.4 systems.
90146
90147 2002-03-02  Jim Meyering  <meyering@lucent.com>
90148
90149         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90150         not HAVE_CLOCK_SETTIME.
90151
90152 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90153
90154         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90155         Check for clock_settime.
90156
90157 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90158
90159         * lib/nanosleep.h: Rename to....
90160         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90161
90162         * lib/gettime.c: New file.
90163         * lib/settime.c: New file.
90164         * lib/stime.c: Remove.
90165
90166         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90167         timespec.h.  Remove nanosleep.h.
90168
90169 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90170
90171         * m4/acl.m4: New file.
90172         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90173         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90174
90175 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90176
90177         * lib/acl.c, lib/acl.h: New files.
90178         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90179
90180 2002-02-24  Jim Meyering  <meyering@lucent.com>
90181
90182         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90183         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90184         cause trouble.  Reported by Nelson Beebe.
90185
90186 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90187
90188         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90189         compilers that don't know that xalloc_die never returns.
90190
90191 2002-02-20  Jim Meyering  <meyering@lucent.com>
90192
90193         * lib/getdate.c: Regenerate using bison-1.33.
90194
90195 2002-02-17  Jim Meyering  <meyering@lucent.com>
90196
90197         * config/config.guess (main): Don't use `head -1'; it's no longer
90198         portable. Use `sed 1q' instead.
90199
90200 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90201
90202         * m4/codeset.m4: Upgrade to gettext-0.11.
90203         * m4/gettext.m4: Upgrade to gettext-0.11.
90204         * m4/glibc21.m4: Upgrade to gettext-0.11.
90205         * m4/iconv.m4: Upgrade to gettext-0.11.
90206         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90207         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90208         * m4/lib-ld.m4: New file, from gettext-0.11.
90209         * m4/lib-link.m4: New file, from gettext-0.11.
90210         * m4/lib-prefix.m4: New file, from gettext-0.11.
90211         * m4/progtest.m4: Upgrade to gettext-0.11.
90212
90213 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90214
90215         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90216         (jm_PREREQ): Use it.
90217
90218 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90219
90220         * lib/posixver.c, lib/posixver.h: New files.
90221         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90222
90223 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90224             Bruno Haible  <bruno@clisp.org>
90225
90226         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90227         (fwrite_success_callback): New declaration.
90228         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90229         print_unicode_char. Call failure callback instead of error.
90230         (fwrite_success_callback): New function.
90231         (exit_failure_callback): New function.
90232         (fallback_failure_callback): New function.
90233         (print_unicode_char): Call unicode_to_mb.
90234
90235 2002-01-26  Jim Meyering  <meyering@lucent.com>
90236
90237         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90238         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90239
90240 2002-01-26  Jim Meyering  <meyering@lucent.com>
90241
90242         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90243
90244 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90245
90246         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90247
90248 2002-01-22  Jim Meyering  <meyering@lucent.com>
90249
90250         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90251         Otherwise, some versions of automake would omit the rule that makes
90252         Makefile from Makefile.in.
90253
90254 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90255
90256         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90257         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90258         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90259         (memcoll): Set errno to zero if there is no error.
90260
90261         * lib/quotearg.c (quotearg_buffer_restyled):
90262         Fix bug with quoting buffers containing NUL when backslashing escapes.
90263         This bug was exposed by the other changes in this patch.
90264         (quotearg_n_options): New arg ARGSIZE.
90265         All callers changed.
90266         (quoting_options_from_style): New function.
90267         (quotearg_n_style): Use it.
90268         (quotearg_n_style_mem): New function.
90269
90270         * lib/quotearg.h (quotearg_n_style_mem): New function.
90271
90272 2002-01-19  Jim Meyering  <meyering@lucent.com>
90273
90274         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90275         Remove useless quotes: DF_PROG="df".
90276         * m4/strnlen.m4: New file.
90277
90278 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90279
90280         * lib/backupfile.c (ISDIGIT): Comment fix.
90281         * lib/getdate.y (ISDIGIT): Likewise.
90282         * lib/posixtm.c (ISDIGIT, year): Likewise.
90283         * lib/strverscmp.c (ISDIGIT): Likewise.
90284         * lib/userspec.c (ISDIGIT): Likewise.
90285
90286 2002-01-16  Jim Meyering  <meyering@lucent.com>
90287
90288         * lib/getdate.y: Add three semicolons, each just before a closing
90289         brace. Bison (as of version 1.31) no longer papers over that mistake.
90290
90291 2002-01-05  Jim Meyering  <meyering@lucent.com>
90292
90293         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90294
90295 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90296
90297         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90298         not silently exit merely because the output buffer happens to
90299         have nothing pending.
90300
90301 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90302
90303         See the big note in ../ChangeLog.
90304         * lib/human.c (suffixes): Prefer K to k for 1024.
90305         (generate_suffix_backwards): New function.
90306         (human_readable_inexact): Use it.
90307         * lib/xstrtol.c (__xstrtol): If there is no number but there
90308         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90309         Accept 'K' as well as 'k'.
90310
90311 2001-12-15  Jim Meyering  <meyering@lucent.com>
90312
90313         * lib/regex.h (__restrict_arr): Update from libc.
90314
90315         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90316         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90317         (STREQ): Define.
90318
90319 2001-12-14  Jim Meyering  <meyering@lucent.com>
90320
90321         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90322         Suggestion from Bruno Haible.
90323
90324 2001-12-10  Jim Meyering  <meyering@lucent.com>
90325
90326         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90327         xrealloc, Instead, include "xalloc.h".
90328         (initbuffer): Don't cast xmalloc return value to char*.
90329         (readline): Reword comment.
90330         Don't cast xrealloc return value to char*
90331         Return NULL, not 0.
90332
90333 2001-12-09  Jim Meyering  <meyering@lucent.com>
90334
90335         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90336         about `signed and unsigned type in conditional expression'.
90337         * lib/posixtm.c (posix_time_parse): Likewise.
90338
90339         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90340
90341         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90342         to avoid a pedantic warning.
90343
90344         * lib/getstr.c: Don't include assert.h.
90345         (getstr): Remove warning-evoking assertions.
90346         Return -1 if offset parameter is out of bounds.
90347         Change the type of a local from int to size_t.
90348
90349         * lib/strftime.c (my_strftime_localtime_r): Include this function
90350         definition in the `#if ! HAVE_TM_GMTOFF' block.
90351
90352         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90353         Include xalloc.h instead.
90354
90355 2001-12-02  Jim Meyering  <meyering@lucent.com>
90356
90357         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90358         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90359         included.
90360
90361         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90362         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90363
90364 2001-11-30  Akim Demaille  <akim@epita.fr>
90365
90366         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90367         before being defined.
90368
90369 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90370
90371         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90372         First arg is int, not unsigned.
90373         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90374         (SIZE_MAX, UINT_MAX): New macros.
90375         (quotearg_n_options): Abort if N is negative.
90376         Avoid overflow check on hosts where size_t is 64 bits and int
90377         is 32 bits, as overflow is impossible there.
90378         Fix off-by-one typo that caused unnecessary reallocation.
90379
90380 2001-11-27  Jim Meyering  <meyering@lucent.com>
90381
90382         * lib/tempname.c: Merge with version from libc.
90383         * lib/regex.c: Likewise.
90384
90385         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90386         systems for which STDC_HEADERS is 0, it was not included, resulting in
90387         a warning about an integer-to-pointer conversion problem with getenv.
90388         Reported by Volker Borchert.
90389
90390 2001-11-26  Jim Meyering  <meyering@lucent.com>
90391
90392         * lib/gtod.h: Remove file.
90393         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90394         * lib/gettimeofday.c: Don't include gtod.h.
90395         (GTOD_init): Remove function.
90396         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90397         Suggestion from Volker Borchert.
90398
90399 2001-11-23  Jim Meyering  <meyering@lucent.com>
90400
90401         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90402         it.
90403         * lib/hash.c (struct hash_table): Define it here instead.
90404
90405 2001-11-22  Jim Meyering  <meyering@lucent.com>
90406
90407         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90408
90409 2001-11-20  Jim Meyering  <meyering@lucent.com>
90410
90411         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90412         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90413
90414 2001-11-19  Jim Meyering  <meyering@lucent.com>
90415
90416         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90417         directory.  Use "conftestXXXXXX" as the template.
90418         Suggestion from Paul Eggert.
90419
90420         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90421         immediately, so the test doesn't mistakenly hit the max-open-files
90422         limit.
90423
90424 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90425
90426         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90427         (TEMPORARIES): New macro.
90428         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90429         removes an artificial limitation (e.g. HP-UX 10.20, where
90430         TMP_MAX is 17576).
90431
90432 2001-11-18  Jim Meyering  <meyering@lucent.com>
90433
90434         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90435
90436 2001-11-18  Jim Meyering  <meyering@lucent.com>
90437
90438         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
90439         on SunOS 4.
90440
90441         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
90442         files will be created before anything else.
90443
90444 2001-11-17  Paul Eggert  <eggert@twinsun.com>
90445
90446         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
90447         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
90448
90449 2001-11-17  Jim Meyering  <meyering@lucent.com>
90450
90451         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
90452         Prompted by a report from Bob Proulx.
90453
90454         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
90455         Instead, require UTILS_FUNC_MKSTEMP.
90456
90457 2001-11-17  Jim Meyering  <meyering@lucent.com>
90458
90459         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
90460         Now, that's done as part of AC_FUNC_STRTOD.
90461
90462 2001-11-17  Jim Meyering  <meyering@lucent.com>
90463
90464         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
90465         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
90466         rather than group writable.  Patch by Juan F. Codagnone.
90467
90468         * lib/readtokens.c: Remove explicit declarations of xmalloc and
90469         xrealloc, Instead, include "xalloc.h".
90470
90471         * lib/mountlist.c: Include unlocked-io.h after all system headers.
90472         Remove explicit declarations of xmalloc, xrealloc,
90473         and xstrdup.  Instead, include "xalloc.h".
90474
90475         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
90476         unlocked-io.h.
90477         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
90478         Likewise.
90479         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
90480
90481         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
90482         Reported by Padraig Brady.
90483
90484         * lib/mkstemp.c: #undef mkstemp.
90485         Include config.h.
90486         (rpl_mkstemp): Rename from mkstemp.
90487         Protoize.
90488
90489 2001-11-16  Jim Meyering  <meyering@lucent.com>
90490
90491         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
90492         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
90493         determine the amount of total physical memory, use pstat_getstatic.
90494         HPUX-11 doesn't define _SC_PHYS_PAGES.
90495         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
90496         If sysconf couldn't be used to determine the amount of available
90497         physical memory, use both pstat_getstatic and pstat_getdynamic.
90498         Based on a patch from Bob Proulx.
90499
90500 2001-11-10  Jim Meyering  <meyering@lucent.com>
90501
90502         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
90503         (jm_PREREQ): Use it.
90504
90505 2001-11-09  Jim Meyering  <meyering@lucent.com>
90506
90507         * m4/jm-macros.m4: Require autoconf-2.52f.
90508         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
90509         Use these AC_-prefixed names, not the AM_-prefixed ones.
90510
90511         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
90512
90513 2001-11-05  Jim Meyering  <meyering@lucent.com>
90514
90515         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
90516
90517 2001-11-04  Jim Meyering  <meyering@lucent.com>
90518
90519         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
90520         $DEFS.
90521
90522 2001-11-03  Jim Meyering  <meyering@lucent.com>
90523
90524         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
90525         of AC_DEFUN.
90526
90527         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
90528         know the name of the variable in the macro definition.
90529
90530 2001-11-03  Jim Meyering  <meyering@lucent.com>
90531
90532         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
90533         in argmatch_to_argument call.
90534
90535         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
90536         argument.
90537
90538         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
90539         e.g., a fault due to an attempt to free a NULL pointer.
90540
90541 2001-11-01  Jim Meyering  <meyering@lucent.com>
90542
90543         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
90544         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
90545
90546 2001-11-01  Jim Meyering  <meyering@lucent.com>
90547
90548         * lib/dirfd.c, lib/dirfd.h: New files.
90549         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
90550
90551         * lib/hash.c (hash_print) [TESTING]: Clean up.
90552
90553 2001-10-22  Paul Eggert  <eggert@twinsun.com>
90554
90555         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
90556         to avoid a warning if -Wall.
90557
90558 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
90559
90560         * README: New file
90561         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
90562         (per RMS's instructions, this is now the canonical source)
90563         * lgpl/, gpl/: New directories.
90564
90565 2001-10-21  Paul Eggert  <eggert@twinsun.com>
90566
90567         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
90568
90569 2001-10-21  Jim Meyering  <meyering@lucent.com>
90570
90571         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
90572         this code would end up calling gettext even in packages built
90573         with --disable-nls.
90574         * lib/getopt.c (_): Likewise.
90575         * lib/regex.c (_): Likewise.
90576
90577 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90578
90579         * m4/error.m4 (jm_PREREQ_ERROR):
90580         Do not invoke AC_CHECK_FUNCS with strerror_r, as
90581         AC_FUNC_STRERROR_R does that.
90582         Check for strerror declaration.
90583
90584         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
90585         are supposed to have them these days.
90586         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
90587         Merge changes from latest Autoconf CVS.
90588         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
90589         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
90590         POSIX decided to standardize on the int flavor of strerror_r.
90591
90592 2001-10-20  Paul Eggert  <eggert@twinsun.com>
90593
90594         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
90595         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
90596         Use strerror_r that is only a macro, even if it is not a function.
90597         (strerror): Check for HAVE_DECL_STRERROR before declaring.
90598         (private_strerror): Use prototypes, not old-style function definition.
90599         (print_errno_message): New function.
90600         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
90601         char*-flavored one.
90602         (error_tail, error, error_at_line): Use it.
90603
90604 2001-10-11  Jim Meyering  <meyering@lucent.com>
90605
90606         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
90607         and quote_n (1, ... to avoid clobbering a buffer.
90608
90609 2001-10-05  Jim Meyering  <meyering@lucent.com>
90610
90611         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
90612         hash-pjw.h.
90613         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
90614         * lib/hash-pjw.h: New file.
90615
90616 2001-09-30  Jim Meyering  <meyering@lucent.com>
90617
90618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
90619         `struct fsstat' has the `f_fstypename' member.
90620         Use that to define FS_TYPE, which is now used to make
90621         the getfsstat link test tighter.
90622
90623 2001-09-30  Jim Meyering  <meyering@lucent.com>
90624
90625         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
90626         Include <sys/ucred.h>, for Apple Darwin.
90627         Include sys/mount.h and sys/fs_types.h only if available.
90628         (FS_TYPE): Define.
90629         (read_filesystem_list): Use FS_TYPE.
90630
90631 2001-09-29  Paul Eggert  <eggert@twinsun.com>
90632
90633         * lib/exclude.c (excluded_filename): 0 -> false, since it's
90634         a boolean context.
90635
90636 2001-09-29  Jim Meyering  <meyering@lucent.com>
90637
90638         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90639         [one-argument getmntent function]): Include stdio.h before mntent.h.
90640         SunOS 4.1.x needs it for the declaration of `FILE'.
90641         Patch by Volker Borchert.
90642
90643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
90644         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
90645         sys/fs_types.h, and make the link-test for getfsstat guard #include
90646         directives with appropriate #if HAVE_*_H tests so that we can
90647         detect getfsstat on Apple Darwin1.3.7 systems.
90648         Reported by Nelson Beebe.
90649         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
90650
90651 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90652
90653         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90654         #defines strtoimax.  Also treat the other strto* functions
90655         like strtoimax.
90656
90657         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90658         Check for strtoul and strtoumax,
90659         as those declarations are made even in the signed case.
90660         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
90661         Likewise, for strtol and strtoimax.
90662
90663 2001-09-28  Paul Eggert  <eggert@twinsun.com>
90664
90665         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
90666         #defines strtoimax.  Also treat the other strto* functions
90667         like strtoimax.
90668
90669         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
90670         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
90671         (strtoimax, strtoumax): Do not declare if already defined as a macro.
90672
90673 2001-09-26  Jim Meyering  <meyering@lucent.com>
90674
90675         Most macros in unlocked-io.h had the wrong number of arguments.
90676         * lib/gen-uio: New script.
90677         (USE_UNLOCKED_IO): Define to 1 if not already defined.
90678         * lib/unlocked-io.hin: Remove file.
90679         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
90680         rather than trying to embed it here.
90681         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
90682         Reported by Padraig Brady.
90683
90684 2001-09-25  Volker Borchert  <bt@teknon.de>
90685
90686         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
90687         `result'.
90688
90689 2001-09-24  Jim Meyering  <meyering@lucent.com>
90690
90691         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
90692
90693 2001-09-23  Jim Meyering  <meyering@lucent.com>
90694
90695         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
90696         instead of the mere test for existence of mntent.h.  The latter
90697         would get a false-positive on AIX 3.4 systems.
90698         In the outer getmntent if-block, don't die if neither of the getmntent
90699         tests succeeds.  Instead, just fall through and continue with the
90700         remaining tests.
90701
90702 2001-09-23  Jim Meyering  <meyering@lucent.com>
90703
90704         * lib/mountlist.c: Remove useless parentheses in #if directives.
90705         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
90706         the deprecated MOUNTED symbol is no longer defined in mntent.h.
90707
90708 2001-09-22  Jim Meyering  <meyering@lucent.com>
90709
90710         * m4/gettext.m4: New file.  From gettext.
90711         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
90712         * m4/progtest.m4: Likewise
90713         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
90714         * m4/glibc21.m4: Likewise.
90715
90716         * m4/libintl.m4: Remove.  No longer used.
90717
90718 2001-09-22  Jim Meyering  <meyering@lucent.com>
90719
90720         * lib/localcharset.c: Update from latest gettext.
90721         * lib/config.charset: Likewise.
90722
90723 2001-09-20  Jim Meyering  <meyering@lucent.com>
90724
90725         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
90726         strtoimax.
90727         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
90728         strtoumax.
90729
90730 2001-09-20  Jim Meyering  <meyering@lucent.com>
90731
90732         * lib/xstrtol.c (strtoimax): Guard declaration with
90733         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
90734         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
90735         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
90736         (strtoumax): Likewise, for completeness (it wasn't necessary).
90737
90738 2001-09-17  Paul Eggert  <eggert@twinsun.com>
90739
90740         * lib/strtoimax.c (HAVE_LONG_LONG):
90741         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
90742         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
90743         to work around bug in IBM C compiler.
90744
90745 2001-09-17  Jim Meyering  <meyering@lucent.com>
90746
90747         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
90748         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
90749         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
90750         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
90751         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
90752         whenever the right hand side need not be expanded by the shell.
90753
90754 2001-09-16  Paul Eggert  <eggert@twinsun.com>
90755
90756         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
90757         library.  It's not correct, as some older glibcs are buggy.
90758         fnmatch wasn't fixed until glibc 2.2.
90759
90760         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
90761         special shell magic here.
90762
90763 2001-09-16  Jim Meyering  <meyering@lucent.com>
90764
90765         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
90766         * m4/jm-macros.m4: Require it.
90767
90768 2001-09-16  Jim Meyering  <meyering@lucent.com>
90769
90770         * lib/mkdir.c: New file.
90771
90772 2001-09-15  Jim Meyering  <meyering@lucent.com>
90773
90774         * m4/jm-macros.m4: Check for help2man.
90775
90776 2001-09-11  Jim Meyering  <meyering@lucent.com>
90777
90778         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
90779         The body, by Paul Eggert, was moved here from configure.in.
90780         * m4/jm-macros.m4: Require UTILS_HOST_OS.
90781
90782 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90783
90784         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
90785         (jm_PREREQ): Use it.
90786
90787 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90788
90789         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
90790         Use ssize_t, not int, to store result of readlink.
90791         Check for ssize_t overflow as well as size_t overflow,
90792         as POSIX says the result of readlink is implementation-defined
90793         when ssize_t overflows.
90794         Remove unnecessary cast to char*.
90795         Use free+malloc instead of realloc, as the storage doesn't need
90796         to be preserved and it's clearer and can be more efficient that way.
90797         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
90798         * lib/xreadlink.h (xreadlink): Update prototype.
90799
90800 2001-09-04  Paul Eggert  <eggert@twinsun.com>
90801
90802         * lib/xgetcwd.c: Revert some of the previous change; intead,
90803         fix the HAVE_GETCWD_NULL code to behave more like the
90804         !HAVE_GETCWD_NULL code used to.
90805
90806         Include "xalloc.h".
90807         (xgetcwd): Do not return NULL when memory is exhausted; instead,
90808         invoke xalloc_die.
90809
90810 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90811
90812         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
90813         sys/param.h, as pathmax.h includes them.
90814
90815 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90816
90817         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
90818         (jm_PREREQ_XGETCWD): New macro.
90819
90820         * m4/getcwd.m4: New file.
90821
90822 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90823
90824         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
90825         like the HAVE_GETCWD_NULL code.
90826         Include pathmax.h if not HAVE_GETCWD.
90827         Do not include xalloc.h.
90828         (INITIAL_BUFFER_SIZE): New symbol.
90829         Do not use xmalloc / xrealloc, since the caller is responsible for
90830         handling errors.  Preserve errno around `free' during failure.
90831         Do not overrun buffer when using getwd.
90832
90833 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90834
90835         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
90836         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
90837         getcwd (NULL, 0).
90838
90839 2001-09-03  Paul Eggert  <eggert@twinsun.com>
90840
90841         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
90842         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
90843         spotted by Jim Meyering.
90844
90845 2001-09-03  Jim Meyering  <meyering@lucent.com>
90846
90847         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
90848         failure.
90849
90850 2001-09-02  Jim Meyering  <meyering@lucent.com>
90851
90852         * lib/error.c: Update from GNU libc.
90853
90854 2001-09-01  Jim Meyering  <meyering@lucent.com>
90855
90856         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
90857         Used by df.
90858
90859 2001-09-01  Jim Meyering  <meyering@lucent.com>
90860
90861         * lib/xreadlink.c: New file.
90862         * lib/xreadlink.h: New file.
90863         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
90864         xreadlink.h.
90865
90866         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
90867         doesn't conflict with sparc Solaris 7's definition in
90868         /usr/include/sys/int_types.h.
90869
90870         * lib/exclude.c: Use `""', not `<>' to #include non-system header
90871         files.
90872         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
90873         and strncasecmp as r-values.  Unixware didn't have declarations.
90874
90875 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90876
90877         * lib/xstrtol.h: Add copyright notice.
90878         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
90879         LONGINT_INVALID_SUFFIX_CHAR.
90880
90881 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90882
90883         * lib/xstrtol.c (strtoimax): New decl.
90884
90885 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90886
90887         * lib/xgetcwd.c: Don't include pathmax.h.
90888         Include stdlib.h and unistd.h if available.
90889         Include xalloc.h.
90890         (xmalloc, xstrdup, free): Remove decls.
90891         (xgetcwd): Don't assume sizes fit in unsigned.
90892         Check for overflow when computing sizes.
90893         Simplify reallocation code.
90894
90895 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90896
90897         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
90898         a directory's st_size can have an arbitrary value, so the old
90899         usage could waste an arbitrary amount of memory.  All uses
90900         changed.
90901         * lib/savedir.h: Update prototype.
90902
90903 2001-08-31  Paul Eggert  <eggert@twinsun.com>
90904
90905         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
90906
90907         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
90908         old strtoimax.c.
90909
90910         Also, make the following further changes to make this file's
90911         configuration more similar to that of strtol.c:
90912         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
90913         (strtoumax, uintmax_t, strtoull, strtol): Remove.
90914         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
90915         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
90916         changed to signed values.
90917
90918         And make the following changes as well:
90919         Fix copyright notice, as 1999 was missing.
90920         (verify): New macro.
90921         (strtoimax): Check sizes at compile-time, not run-time.
90922         Prefer strtol to strtoll if both work.
90923         (main): Remove; it was not that useful and was a pain to maintain.
90924
90925         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
90926
90927 2001-08-31  Jim Meyering  <meyering@lucent.com>
90928
90929         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
90930         Use an initial, malloc'd, buffer of length 128 rather than
90931         a statically allocated one of length 1024.
90932
90933 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90934
90935         Simplify code, partly by assuming autoconf 2.52 semantics.
90936
90937         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
90938
90939         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
90940         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
90941         All uses removed.
90942         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
90943         Move AC_REQUIRE to next-to-top level, to avoid confusion.
90944         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
90945         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
90946         jm_AC_HEADER_INTTYPES_H.
90947         * m4/jm-macros.m4 (jm_MACROS): Likewise.
90948
90949         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
90950
90951         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
90952         Quote first arg of AC_DEFUN.
90953         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
90954         since they are needed to parse the include file even if we need
90955         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
90956         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
90957         but with opposite signedness.
90958
90959 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90960
90961         Merge 'exclude' changes from tar 1.13.22.
90962         This fixes one or two unlikely storage allocation overflow bugs,
90963         but doesn't change user-visible behavior otherwise.
90964
90965 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90966
90967         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
90968         (jm_PREREQ_EXCLUDE): New macro.
90969
90970 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90971
90972         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
90973         tm to be declared.
90974
90975 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90976
90977         * lib/hash.c: Remove '2001' from copyright notice.
90978
90979 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90980
90981         * lib/full-write.h: New file.
90982         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
90983         * lib/full-write.c: Correct credits, as cccp.c no longer
90984         exists and anyway it was so heavily changed from the old cccp
90985         code as to be unrecognizable.  Include full-write.h.
90986         (full_write): Return size_t, with short writes meaning failure.
90987         All callers changed.  This fixes a bug with large buffers
90988         on 64-bit hosts.
90989         * lib/utime.c: Include full-write.h.
90990
90991 2001-08-30  Paul Eggert  <eggert@twinsun.com>
90992
90993         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
90994         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
90995         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
90996         Include if available.
90997         (<xalloc.h>): Include
90998         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
90999         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91000         collide with FNM macros.
91001         (struct patopts): New struct.
91002         (struct exclude): Use it, as exclude patterns now come with options.
91003         (new_exclude): Support above changes.
91004         (new_exclude, add_exclude_file):
91005         Initial size must now be a power of two to simplify overflow checking.
91006         (free_exclude, fnmatch_no_wildcards): New function.
91007         (excluded_filename): No longer requires options arg, as the options
91008         are determined by add_exclude.  Now returns bool, not int.
91009         (excluded_filename, add_exclude):
91010         Add support for the fancy new exclusion options.
91011         (add_exclude, add_exclude_file): Now takes int options arg.
91012         Check for arithmetic overflow when computing sizes.
91013         (add_exclude_file): xrealloc might modify errno, so don't
91014         realloc until after errno might be used.
91015
91016         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91017         New macros.
91018         (free_exclude): New decl.
91019         (add_exclude, add_exclude_file): Now takes int options arg.
91020         (excluded_filename): No longer requires options arg, as the options
91021         are determined by add_exclude.  Now returns bool, not int.
91022
91023 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91024
91025         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91026
91027 2001-08-27  Jim Meyering  <meyering@lucent.com>
91028
91029         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91030
91031         * lib/version-etc.c (N_): Remove definition.
91032         Revert most of last change.
91033         Instead, simply don't mark the `Copyright...' string for translation.
91034         Based on advice from Paul Eggert.
91035
91036         * lib/strtoxmax.c: Tweak comment.
91037
91038 2001-08-26  Jim Meyering  <meyering@lucent.com>
91039
91040         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91041
91042         * m4/xstrtoimax.m4: New file.
91043         * m4/xstrtoumax.m4: Add comments explaining why we
91044         AC_REPLACE_FUNCS(strtol).
91045
91046 2001-08-26  Jim Meyering  <meyering@lucent.com>
91047
91048         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91049         of copyright with `%s' so translators don't get an untranslated
91050         message in 2002.
91051         (COPYRIGHT_YEAR): Define.
91052         (version_etc): Use fprintf rather than fputs.
91053         Suggestion from Ulrich Drepper.
91054
91055         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91056
91057         * lib/strtoll.c: New file, from GNU libc.
91058         * lib/xstrtoimax.c: New file.
91059
91060         * lib/xstrtol.h: Add xstrtoimax.
91061         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91062         * lib/strtoimax.c: New file.  Likewise, but first define
91063         STRTOUXMAX_SIGNED.
91064
91065         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91066         ...
91067         * lib/strtoxmax.c: ... then renamed to this.
91068
91069 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91070
91071         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91072         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91073         (jm_AC_TYPE_INTMAX_T): New macro.
91074         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91075
91076         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91077
91078         * m4/longlong.m4: Renamed from ulonglong.m4.
91079         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91080         * m4/uintmax_t.m4: Removed.
91081
91082 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91083
91084         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91085         Port to Solaris 8, where 'sed' requires a space after the 'r'
91086         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91087         Redirect output to $tmp just once.
91088
91089 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91090
91091         * lib/addext.c (<errno.h>): Include.
91092         (errno): Declare if not defined.
91093         (addext): Work correctly when pathconf returns -1 and leaves
91094         errno alone because there is no limit.  Also, work even if
91095         pathconf returns a value greater than SIZE_MAX.
91096
91097 2001-08-12  Jim Meyering  <meyering@lucent.com>
91098
91099         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91100         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91101         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91102         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91103         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91104         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91105         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91106         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91107         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91108         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91109         utime.m4, utimes.m4, xstrtoumax.m4:
91110         Quote the first argument in each use of AC_DEFUN.
91111
91112 2001-08-12  Jim Meyering  <meyering@lucent.com>
91113
91114         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91115         Simply `return getcwd (NULL, 0);'.
91116         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91117         Use 1300 as initial value for length, not PATH_MAX.
91118
91119         * lib/pathmax.h: Clean up cpp syntax.
91120
91121 2001-08-12  Jim Meyering  <meyering@lucent.com>
91122
91123         * lib/gettimeofday.c: New file.
91124         * lib/gtod.h: New file.
91125         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91126
91127 2001-08-05  Jim Meyering  <meyering@lucent.com>
91128
91129         * m4/jm-macros.m4: Require autoconf-2.52.
91130
91131 2001-08-04  Jim Meyering  <meyering@lucent.com>
91132
91133         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91134         stmt, to get in sync with glibc.
91135
91136 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91137
91138         The following changes are from gettext 0.10.39 as maintained by
91139         Bruno Haible.
91140
91141         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91142         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91143         with inverted sense.  All uses changed.
91144
91145         * lib/mbswidth.c: Don't include <limits.h>.
91146         Include <stdlib.h> and <string.h> unconditionally.
91147         (iswcntrl, mbsinit, ISCNTRL): New macros.
91148         (mbsnwidth): Use K&R style function declarations.
91149         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91150         can optimize it when MB_CUR_MAX == 1.
91151         The width of control characters is zero, not 1.
91152
91153 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91154
91155         The following changes are from gettext 0.10.39 as maintained by
91156         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91157
91158         * m4/codeset.m4: Upgrade to serial AM1.
91159         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91160         all uses changed.  Quote first arg of AC_DEFUN.
91161         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91162
91163         * m4/iconv.m4: Upgrade to serial AM2.
91164         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91165         Add --with-libconv-prefix.
91166         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91167         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91168         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91169         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91170         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91171
91172         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91173         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91174         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91175         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91176         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91177         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91178         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91179         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91180         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91181
91182         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91183         string.h any more.
91184
91185         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91186         not the default value.
91187
91188         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91189         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91190         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91191         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91192         Also check for iswcntrl, used for wcwidth fallback.
91193         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91194         to Autoconf 2.13.
91195
91196 2001-08-03  Jim Meyering  <meyering@lucent.com>
91197
91198         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91199         as it was in the original.  Reported by Paul Eggert.
91200
91201 2001-07-16  Jim Meyering  <meyering@lucent.com>
91202
91203         * m4/gettimeofday.m4: New file.
91204         Prompted by a report from Bernhard Baehr.
91205
91206 2001-07-15  Jim Meyering  <meyering@lucent.com>
91207
91208         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91209         stuff. Now it's in ../Makefile.cfg.
91210
91211 2001-07-15  Jim Meyering  <meyering@lucent.com>
91212
91213         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91214         (BUILT_SOURCES): Add unlocked-io.h.
91215         (io_functions): Define.
91216         (unlocked-io.h): New rule.
91217         (DISTCLEANFILES): Add unlocked-io.h.
91218         (all-local): Depend on unlocked-io.h, to ensure it is created.
91219
91220         * lib/unlocked-io.hin: New file
91221
91222         * lib/regex.c: Update from glibc.
91223
91224 2001-07-05  Jim Meyering  <meyering@lucent.com>
91225
91226         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91227         recommendation.
91228         (libfetish_a_SOURCES): Put all .h files here instead.
91229         Remove a thus-exposed (better checks in automake) duplicate and
91230         two unnecessary .h files.
91231
91232 2001-07-04  Jim Meyering  <meyering@lucent.com>
91233
91234         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91235         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91236         distcheck failure.
91237
91238 2001-07-02  Jim Meyering  <meyering@lucent.com>
91239
91240         The following changes were prompted by suggestions from Bruno Haible.
91241
91242         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91243         is now generated.
91244         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91245         definition of EXTRA_DIST.
91246         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91247         ensure that the generated file is created/updated whenever the list
91248         of $(unlocked_functions) is changed.
91249         (jm-glibc-io.m4): New rule.
91250         (unlocked-io.h): New rule -- currently unused.
91251
91252 2001-06-24  Jim Meyering  <meyering@lucent.com>
91253
91254         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91255         unmatched right bracket, rather than kludging it with an extra,
91256         falsely-matching quote in a comment.  Patch by Akim Demaille.
91257
91258 2001-06-11  Jim Meyering  <meyering@lucent.com>
91259
91260         * lib/regex.c: Update from GNU libc.
91261
91262 2001-05-27  Jim Meyering  <meyering@lucent.com>
91263
91264         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91265         Check for ut_type in struct utmp.
91266
91267 2001-05-27  Jim Meyering  <meyering@lucent.com>
91268
91269         * lib/readutmp.h (UT_TYPE): Define.
91270
91271 2001-05-24  Jim Meyering  <meyering@lucent.com>
91272
91273         * lib/argmatch.c: Include "quote.h".
91274         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91275         quote function.  Reported by Göran Uddeborg.
91276
91277 2001-05-22  Jim Meyering  <meyering@lucent.com>
91278
91279         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91280         now that we use the package-supplied version unconditionally.
91281         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91282
91283 2001-05-21  Jim Meyering  <meyering@lucent.com>
91284
91285         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91286         shell syntax errors.
91287
91288 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91289
91290         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91291
91292 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91293
91294         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91295         Don't bother to check library strftime, since
91296         we'll be using our own my_strftime function anyway.
91297         Define my_strftime instead of strftime.
91298
91299 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91300
91301         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91302         which is not yet declared.
91303
91304 2001-05-15  Jim Meyering  <meyering@lucent.com>
91305
91306         * m4/regex.m4: Use proper quoting so brackets appear in the test
91307         program.
91308         Reported by, and with help from, Bruno Haible.
91309
91310 2001-05-13  Jim Meyering  <meyering@lucent.com>
91311
91312         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91313         undefined.
91314
91315 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91316
91317         dirname code cleanup.  base_name now behaves more compatibly
91318         with POSIX basename when given file names that have trailing
91319         slashes, and similarly for dir_name.  Add new primitives
91320         base_len and dir_len.  Put the directory-name-related decls
91321         into dirname.h.
91322
91323         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91324         * lib/backupfile.c (base_name): Likewise.
91325         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91326         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91327         * lib/makepath.c (strip_trailing_slashes): Likewise.
91328         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91329         ISSLASH): Likewise.
91330         * lib/rename.c (strip_trailing_slashes): Likewise.
91331         * lib/same.c (base_name): Likewise.
91332         * lib/stripslash.c (ISSLASH): Likewise.
91333
91334         * lib/addext.c: Include <dirname.h> after size_t is defined.
91335         * lib/backupfile.c: Likewise.
91336
91337         * lib/addext.c (addext): Use base_len to trim redundant
91338         trailing slashes instead of doing it ourselves.
91339         But do not trim the last slash if it is not redundant.
91340
91341         * lib/backupfile.c (find_backup_file_name,
91342         max_backup_version): Use base_len instead of rolling it ourselves.
91343         Handle the case of "" and (on DOS) "C:" correctly.
91344
91345         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91346         needed. Include <string.h>, <dirname.h>.
91347         (base_name): Allow file names ending in slashes, other than names
91348         that are all slashes.  In this case, return the basename followed
91349         by the slashes.  This is more general, and can be used in places
91350         where the original base_name purposely had an assertion failure.
91351         (base_len): New function.
91352
91353         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91354         Do not include <assert.h>; no longer needed.
91355         Include xalloc.h.
91356         (memrchr): Remove decl.
91357         (dir_name_r): Remove.
91358         (dir_len): Renamed from dirlen.  All callers changed.
91359         Rewrite in terms of base_name, for simplicity and consistency.
91360         (dir_name): Never return NULL.  All callers changed.
91361         Do not include <stdlib.h> in test program; no longer needed.
91362         return 0; is fine for test program.
91363
91364         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91365         New macros.
91366         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91367
91368         * lib/path-concat.c (path_concat): Use base_len to compute
91369         base length, not strlen; this means we cannot rely on memcpy
91370         to null-terminate.
91371
91372         * lib/same.c (STREQ): Remove.
91373         (same_name): Handle the case where the basename ends in trailing '/'.
91374
91375         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91376         a slash was stripped.  Do not strip the last slash after a
91377         file system prefix.
91378
91379 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91380
91381         * lib/Makefile.am (libfetish_a_SOURCES):
91382         Add strftime.c, since we now compile it on all hosts.
91383
91384         * lib/strftime.c (my_strftime):
91385         Define to nstrftime if emacs, but only if my_strftime is not defined.
91386         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91387         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91388         Add one more extra argument: a nanoseconds value.
91389         All uses changed.
91390         (ns): New macro.
91391         (my_strftime function): Add %N format.
91392         (emacs_strftimeu): Renamed from emacs_strftime,
91393         with extra ut argument.
91394
91395 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91396
91397         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91398
91399 2001-04-21  Jim Meyering  <meyering@lucent.com>
91400
91401         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91402         doesn't interfere.
91403
91404 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91405
91406         * m4/ftruncate.m4: Check for chsize.
91407         Link with ftruncate.o unconditionally if ftruncate is missing.
91408         This was required when cross-compiling to i586-mingw32msvc.
91409
91410 2001-04-08  Jim Meyering  <meyering@lucent.com>
91411
91412         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91413         recomputed; that's necessary when the offset spans a DST transition.
91414         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91415
91416 2001-04-02  Jim Meyering  <meyering@lucent.com>
91417
91418         * lib/regex.h, regex.c: Update from GNU libc.
91419
91420 2001-03-24  Jim Meyering  <meyering@lucent.com>
91421
91422         * m4/jm-macros.m4: Require autoconf-2.49d.
91423
91424 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91425
91426         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91427
91428 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91429
91430         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91431
91432 2001-03-17  Jim Meyering  <meyering@lucent.com>
91433
91434         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91435         now that the version in autoconf is equivalent.
91436         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
91437
91438         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
91439         Suggestion from Akim Demaille.
91440
91441         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
91442         (jm_PREREQ_TEMPNAME): New function.
91443
91444 2001-03-16  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/tempname.c (uint64_t): Define to uintmax_t if
91447         not defined, and if UINT64_MAX is not defined.
91448         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
91449         Reported by John David Anglin.
91450
91451 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
91452
91453         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
91454         resolve alias if codeset is empty.
91455         * lib/config.charset (BeOS): Use wildcard syntax.
91456
91457 2001-03-13  Jim Meyering  <meyering@lucent.com>
91458
91459         * lib/path-concat.c (path_concat)
91460         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
91461         concatenating e.g., `C:' and `foo'.
91462         From Bruno Haible.
91463
91464 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91465
91466         * lib/localcharset.c (locale_charset): Don't use
91467         setlocale(LC_CTYPE,NULL). Don't return NULL.
91468         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
91469
91470 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
91471
91472         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
91473         support for DOS/DJGPP.
91474
91475 2001-03-01  Paul Eggert  <eggert@twinsun.com>
91476
91477         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
91478         lacks mkstemp.  Compile our own tempname.c if we compile our own
91479         mkstemp.c, as mkstemp relies on tempname.
91480
91481 2001-03-01  Jim Meyering  <meyering@lucent.com>
91482
91483         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
91484         AH_VERBATIM really does output its argument verbatim.
91485
91486 2001-02-28  Paul Eggert  <eggert@twinsun.com>
91487
91488         * lib/Makefile.am (libfetish_a_SOURCES):
91489         Add dup-safer.c, fopen-safer.c.
91490         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
91491
91492         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
91493         * lib/unistd-safer.h: New files.
91494
91495 2001-02-25  Paul Eggert  <eggert@twinsun.com>
91496
91497         The mkstemp replacement is taken from glibc 2.2.2, with some
91498         portability fixes for use outside glibc, as follows:
91499
91500         * lib/tempname.c (struct_stat64): New macro.
91501         (direxists, __gen_tempname): Use it.
91502         This avoids a portability problem with Solaris 8.
91503
91504         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
91505         (<stddef.h>, <stdint.h>, <string.h>):
91506         Include only if STDC_HEADERS || _LIBC.
91507         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
91508         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
91509         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
91510         (__set_errno): Define this macro if <errno.h> doesn't.
91511         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
91512         Define these macros if <stdio.h> doesn't.
91513         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
91514         Define these macros if <sys/stat.h>
91515         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
91516         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
91517         __xstat64): Define if not _LIBC.
91518         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
91519         (__gen_tempname): Invoke gettimeofday only if
91520         HAVE_GETTIMEOFDAY || _LIBC;
91521         otherwise, fall back on plain "time".
91522         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
91523
91524         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
91525
91526         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
91527
91528 2001-02-18  Paul Eggert  <eggert@twinsun.com>
91529
91530         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
91531
91532 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91533
91534         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
91535         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
91536         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
91537         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
91538
91539 2001-02-17  Paul Eggert  <eggert@twinsun.com>
91540
91541         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
91542         Remove workaround macros for hosts that have mbrtowc but not
91543         mbstate_t, as we now insist on proper declarations for both
91544         before using mbrtowc.
91545
91546 2001-02-17  Jim Meyering  <meyering@lucent.com>
91547
91548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
91549         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
91550         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
91551         UnixWare 7.1.1.
91552
91553         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
91554         rather than AC_CACHE_VAL.
91555
91556 2001-02-17  Jim Meyering  <meyering@lucent.com>
91557
91558         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
91559         around included file name.
91560
91561         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
91562
91563         * lib/strftime.c: Update from GNU libc (the only changes were to
91564         comments).
91565
91566 2001-02-17  Jim Meyering  <meyering@lucent.com>
91567
91568         * lib/regex.c: Update from libc.
91569
91570 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
91571
91572         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
91573         clash.
91574
91575 2001-02-16  Paul Eggert  <eggert@twinsun.com>
91576
91577         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
91578         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
91579         Reported by Mark Hounschell via Paul Eggert.
91580
91581 2001-02-07  Jim Meyering  <meyering@lucent.com>
91582
91583         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
91584
91585 2001-02-05  Jim Meyering  <meyering@lucent.com>
91586
91587         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
91588         it includes the patch required for `large file' support with at least
91589         HP-UX's 10.20 /bin/cc.
91590
91591 2001-02-03  Jim Meyering  <meyering@lucent.com>
91592
91593         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
91594         AS_IF, now that it works once again (mysteriously).
91595         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91596
91597 2001-01-30  Jim Meyering  <meyering@lucent.com>
91598
91599         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
91600         * m4/chown.m4: Rename conftestchown to conftest.chown.
91601         * m4/rename.m4: s/conftestdir/conftest.d1/ and
91602         s/conftestdir2/conftest.d2/.
91603         * m4/utimes.m4: s/conftestdata/conftest.data/
91604         Inspired by Pavel Roskin's change in autoconf.
91605
91606 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
91607
91608         * lib/config.charset: Update for FreeBSD 4.2.
91609
91610 2001-01-27  Jim Meyering  <meyering@lucent.com>
91611
91612         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
91613         a use of AS_IF.
91614         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
91615
91616 2001-01-26  Jim Meyering  <meyering@lucent.com>
91617
91618         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
91619         quotearg.c includes it.
91620
91621 2001-01-26  Jim Meyering  <meyering@lucent.com>
91622
91623         * lib/quotearg.c: Include stddef.h.
91624         * lib/quote.c: Include stddef.h.
91625         Reported by Axel Kittenberger.
91626
91627         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
91628         line in double quotes so that it evokes a better diagnostic.
91629         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
91630         Reported by Axel Kittenberger.
91631
91632 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
91633
91634         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
91635         as if it was a `charset'.
91636
91637 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91638
91639         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
91640         has const.
91641
91642 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
91643
91644         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
91645         to avoid a warning.  Add back 'const' to inptr.
91646
91647 2001-01-20  Jim Meyering  <meyering@lucent.com>
91648
91649         Be sure that headers are checked before used in code compiled
91650         for the type checks.
91651         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
91652         In place of that, invoke jm_CHECK_ALL_TYPES.
91653         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
91654         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
91655         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
91656         The check for ssize_t was mistakenly run before the test for unistd.h.
91657
91658         The configure-time check for stdbool.h was missing.
91659         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
91660         (jm_PREREQ_HASH): New function.
91661
91662 2001-01-17  Jim Meyering  <meyering@lucent.com>
91663
91664         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
91665         for autoconf-2.49c.
91666         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
91667
91668 2001-01-16  Jim Meyering  <meyering@lucent.com>
91669
91670         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
91671         From Bruno Haible.
91672
91673 2001-01-14  Jim Meyering  <meyering@lucent.com>
91674
91675         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
91676         foo and bar.  Create conftestdir/ in the script, not in the C code.
91677         Remove directories in the script, not in the C code.
91678         Remove conftestdir{,2} before trying to create the directory.
91679         Make the entire configure script fail if the mkdir fails.
91680
91681 2001-01-14  Jim Meyering  <meyering@lucent.com>
91682
91683         * lib/rename.c: New file.  From Volker Borchert.
91684         Include stdlib.h, string.h or strings.h, and xalloc.h.
91685         Use strip_trailing_slashes rather than open-coding it.
91686
91687 2001-01-03  Paul Eggert  <eggert@twinsun.com>
91688
91689         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
91690
91691 2001-01-03  Jim Meyering  <meyering@lucent.com>
91692
91693         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
91694         of local `inptr' to avoid warning with some system declarations of
91695         iconv.
91696
91697 2001-01-02  Volker Borchert  <bt@teknon.de>
91698
91699         * m4/rename.m4: New file.
91700         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
91701
91702 2001-01-01  Jim Meyering  <meyering@lucent.com>
91703
91704         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
91705         even on systems with utmpx.h.  It's necessary for the declaration of
91706         utmp's ut_user member.  Reported by Andreas Jaeger.
91707
91708         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
91709         available. They are required for the declarations of getgrgid and
91710         getpwuid resp.
91711         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
91712         Reported by Andreas Jaeger.
91713
91714 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
91715
91716         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
91717         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
91718         so `make install' also works in VPATH builds.
91719
91720 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
91721
91722         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
91723         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
91724         can be used in subdirectories.
91725
91726 2000-12-29  Paul Eggert  <eggert@twinsun.com>
91727
91728         * lib/modechange.c: Do not assume that mode_t uses the
91729         traditional octal encoding.  E.g. "chmod 1 FOO" should set
91730         the other-execute bit of FOO even if S_IXOTH != 1.
91731
91732         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
91733         WOTH, XOTH, ALLM): New macros.
91734         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
91735          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
91736         Use them.
91737         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
91738         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
91739         (mode_compile):
91740         No need to use uintmax_t; unsigned long is long enough.
91741         Don't bother to get suffix since we don't use it.
91742
91743 2000-12-26  Jim Meyering  <meyering@lucent.com>
91744
91745         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
91746         better with autoheader.
91747
91748 2000-12-24  Jim Meyering  <meyering@lucent.com>
91749
91750         * lib/hash.c (is_prime): Return explicit boolean values.
91751         (hash_get_first): Return NULL to appease Irix5.6's 89.
91752         Reported by Nelson Beebe.
91753
91754 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
91755
91756         * lib/localcharset.c (locale_charset): Add support for Win32.
91757
91758 2000-12-18  Paul Eggert  <eggert@twinsun.com>
91759
91760         * lib/physmem.h, lib/physmem.c: New files.
91761
91762         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
91763         (noinst_HEADERS): Add physmem.h.
91764
91765         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
91766         't' for compatibility with Solaris 8 sort.
91767
91768 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
91769
91770         * lib/config.charset: Add support for BeOS.
91771
91772 2000-12-17  Jim Meyering  <meyering@lucent.com>
91773
91774         * m4/dos.m4 (jm_AC_DOS): New file and macro.
91775         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
91776
91777 2000-12-16  Jim Meyering  <meyering@lucent.com>
91778
91779         This bug had a serious impact on chown: `chown N:M FILE' (for integer
91780         N and M) would have treated it like `chown N:N FILE'.
91781
91782         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
91783
91784 2000-12-16  Jim Meyering  <meyering@lucent.com>
91785
91786         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
91787         SHELLS_FILE to a file name that's useful on djgpp systems.
91788         Include stdlib.h.
91789         (ADDITIONAL_DEFAULT_SHELLS): Define.
91790         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
91791         Based mostly on a patch from Prashant TR.
91792
91793 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
91794
91795         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
91796         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
91797         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
91798
91799 2000-12-08  Andreas Schwab  <schwab@suse.de>
91800
91801         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
91802         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
91803
91804 2000-12-07  Jim Meyering  <meyering@lucent.com>
91805
91806         * lib/stripslash.c (ISSLASH): Define.
91807         (strip_trailing_slashes): Use ISSLASH rather than comparing against
91808         `/'.
91809         From Prashant TR.
91810
91811         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
91812         (dir_name_r): Declare this function as static.
91813         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
91814         manifest itself on a name containing a mix of slashes and
91815         backslashes.
91816         Make this function work with names starting with a DOS-style
91817         drive letter and colon prefix.
91818         (dir_name): Append `.' if necessary.
91819         Based mostly on patches from Prashant TR and Eli Zaretskii.
91820
91821         * lib/dirname.h (dir_name_r): Remove prototype.
91822
91823 2000-12-06  Paul Eggert  <eggert@twinsun.com>
91824
91825         * m4/off_t-format.m4: Remove this file.
91826         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
91827
91828 2000-12-06  Jim Meyering  <meyering@lucent.com>
91829
91830         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
91831         replacement strtoull, we may well need the replacement strtoul, too.
91832         Check for declarations of strtoul and strtoull.
91833         Check for strtol.  Mainly as a cue to cause automake to include
91834         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
91835         Check for limits.h -- strtol.c needs it.
91836
91837 2000-12-05  Jim Meyering  <meyering@lucent.com>
91838
91839         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
91840
91841 2000-12-04  Jim Meyering  <meyering@lucent.com>
91842
91843         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
91844         Also include memory.h, stdlib.h, unistd.h if appropriate.
91845         Reported by Andreas Jaeger (conflicting declaration of malloc).
91846
91847 2000-12-02  Jim Meyering  <meyering@lucent.com>
91848
91849         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
91850         * m4/jm-macros.m4 (jm_MACROS): require it.
91851
91852 2000-12-02  Jim Meyering  <meyering@lucent.com>
91853
91854         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
91855
91856 2000-12-01  Paul Eggert  <eggert@twinsun.com>
91857
91858         * lib/memrchr.c: Include <config.h> before any system include file.
91859
91860 2000-11-30  Jim Meyering  <meyering@lucent.com>
91861
91862         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
91863
91864 2000-11-30  Jim Meyering  <meyering@lucent.com>
91865
91866         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
91867
91868 2000-11-29  Paul Eggert  <eggert@twinsun.com>
91869
91870         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
91871
91872 2000-11-26  Jim Meyering  <meyering@lucent.com>
91873
91874         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
91875
91876 2000-11-22  Paul Eggert  <eggert@twinsun.com>
91877
91878         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
91879         size of (size_t) -1; it's not portable.
91880
91881 2000-11-17  Jim Meyering  <meyering@lucent.com>
91882
91883         * lib/strstr.c: Update from GNU libc.
91884
91885 2000-11-17  Akim Demaille  <akim@epita.fr>
91886
91887         * lib/obstack.h: Formatting changes.
91888         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
91889         prevent type checking.
91890         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
91891         cast the value to (void *): assigning a `foo *' to a `void *'
91892         variable is valid.
91893         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
91894
91895 2000-11-16  Jim Meyering  <meyering@lucent.com>
91896
91897         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
91898
91899 2000-11-11  Jim Meyering  <meyering@lucent.com>
91900
91901         * lib/error.c: Add a couple #includes, merging from GNU libc version.
91902
91903 2000-11-10  Jim Meyering  <meyering@lucent.com>
91904
91905         * lib/obstack.h: Update from GNU libc.
91906         * lib/obstack.c: Likewise.
91907
91908 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
91909
91910         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
91911
91912 2000-11-06  Paul Eggert  <eggert@twinsun.com>
91913
91914         * lib/getusershell.c (setusershell): Use rewind rather than
91915         fseek/fseeko, to avoid configuration hassles with fseeko.
91916         Don't bother opening SHELLS_FILE if shellstream is NULL;
91917         it's not necessary.
91918
91919 2000-11-05  Jim Meyering  <meyering@lucent.com>
91920
91921         * lib/makepath.h (make_dir): Declare.
91922         * lib/makepath.c (make_dir): Remove `static' attribute.
91923         Tweak a comment.
91924
91925 2000-11-04  Jim Meyering  <meyering@lucent.com>
91926
91927         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
91928
91929 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
91930
91931         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
91932         last one in a bucket, advance to the next bucket.
91933
91934 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
91935
91936         * lib/fnmatch.c: Do not comment out all the code if we are using
91937         the GNU C library, because in some cases we are replacing buggy
91938         code in the GNU C library itself.
91939
91940 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
91941
91942         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
91943         (regex_compile): Catch bogus \(\1\).
91944
91945 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91946
91947         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
91948         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
91949         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
91950
91951 2000-10-30  Paul Eggert  <eggert@twinsun.com>
91952
91953         * lib/error.h, getline.h, modechange.h:
91954         Remove "2000" from Copyright line, as the file hasn't been
91955         changed this year other than in the copyright notice.
91956
91957         * lib/xalloc.h: Add "2000" to Copyright line, as this file
91958         was changed this year.
91959
91960 2000-10-29  Jim Meyering  <meyering@lucent.com>
91961
91962         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
91963         renaming.
91964         * m4/ls-mntd-fs.m4: Likewise
91965
91966 2000-10-29  Jim Meyering  <meyering@lucent.com>
91967
91968         * lib/xstat.in: Fix grammar in comment.
91969
91970 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
91971
91972         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
91973         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
91974         doesn't define __restrict_arr.
91975
91976 2000-10-28  Jim Meyering  <meyering@lucent.com>
91977
91978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
91979         (jm_PREREQ_MEMCHR): New function.
91980
91981 2000-10-28  Jim Meyering  <meyering@lucent.com>
91982
91983         * lib/memchr.c: Update from libc.
91984         Adjust for portability:
91985         [HAVE_STDLIB_H]: Include stdlib.h.
91986         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
91987         Undef __memchr, too.
91988         [!weak_alias]: Define __memchr to memchr.
91989
91990         * lib/regex.c: Update from libc.
91991         * lib/regex.h: Likewise.
91992         * lib/getopt1.c: Likewise.
91993         * lib/memcmp.c: Likewise.
91994
91995         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
91996         Avoid using fseek, when possible -- it's broken by design.
91997         Patch by Ulrich Drepper.
91998
91999 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92000
92001         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92002         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92003         Giving in to popular pressure to shut up the compiler with casts.
92004
92005 2000-10-26  Jim Meyering  <meyering@lucent.com>
92006
92007         * lib/strftime.c: Update from libc.
92008
92009 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92010
92011         * regex.c: More `unsigned char' -> `re_char' changes.
92012         Also change several `int' into `re_wchar_t'.
92013         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92014         (PUSH_FAILURE_POINTER): Don't cast any more.
92015         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92016         We want GCC to complain, since this piece of code makes
92017         re_match non-reentrant, which *should* be fixed.
92018         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92019         (EXTEND_BUFFER): Use RETALLOC.
92020         (SET_LIST_BIT): Don't cast.
92021         (re_wchar_t): New type.
92022         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92023         that those two functions will always properly return.
92024         (IMMEDIATE_QUIT_CHECK): Cast to void.
92025         (analyse_first): Use recursion rather than an explicit stack.
92026         (re_compile_fastmap): Can't fail anymore.
92027         (re_search_2): Don't check re_compile_fastmap for failure.
92028         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92029         Now also sets the new value (passed in a new argument).
92030         (re_match_2_internal): Use it.
92031         Also, use a new var `reg' of type size_t when looping through regs
92032         rather than reuse the inappropriate `mcnt'.
92033
92034 2000-10-25  Jim Meyering  <meyering@lucent.com>
92035
92036         * lib/obstack.c: Update from libc.
92037
92038 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92039
92040         * regex.c (regex_compile): Change the way of handling a range from
92041         a char less than 256 to a char not less than 256.
92042
92043 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92044
92045         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92046         NT-Emacs only.
92047         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92048         so that re_search functions only quit when callers expect them to.
92049
92050 2000-10-23  Jim Meyering  <meyering@lucent.com>
92051
92052         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92053         wrong.  That set_locale call must not have any side effects.
92054         From Paul Eggert.
92055
92056 2000-10-22  Jim Meyering  <meyering@lucent.com>
92057
92058         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92059         [CYCLIC]: Remove now-unused definition.
92060
92061         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92062         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92063         Suggestion from Ulrich Drepper.
92064
92065 2000-10-21  Jim Meyering  <meyering@lucent.com>
92066
92067         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92068         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92069         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92070
92071 2000-10-21  Jim Meyering  <meyering@lucent.com>
92072
92073         * lib/dirname.c (memrchr): Declare if necessary.
92074         (dir_name): Remove the restriction that there be no
92075         trailing slashes.  Now, this code skips past them, effectively
92076         ignoring them.
92077         [TEST_DIRNAME] (main): New unit tests.
92078
92079         * lib/memrchr.c: New file from GNU libc.
92080         Undef __memrchr, too.
92081         [!weak_alias]: Define __memrchr to memrchr.
92082         Guard weak_alias use with `#ifdef weak_alias'.
92083
92084 2000-10-21  Jim Meyering  <meyering@lucent.com>
92085
92086         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92087         (dir_name): Use dir_name_r.
92088         * lib/dirname.h (dir_name_r): Declare it.
92089
92090 2000-10-17  Jim Meyering  <meyering@lucent.com>
92091
92092         * lib/quote.h (PARAMS): Define and use.
92093         Reported by Akim Demaille.
92094
92095         * lib/getopt.c: Update from libc.
92096
92097 2000-10-16  Jim Meyering  <meyering@lucent.com>
92098
92099         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92100         setlocale.
92101         From Jan Fedak.
92102
92103 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92104
92105         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92106
92107 2000-09-25  Jim Meyering  <meyering@lucent.com>
92108
92109         * lib/md5.h (rol): Define (from GnuPG).
92110
92111         * lib/sha.c: Give credit (GnuPG) where due.
92112         (M): Use rol rather than open-coding it.
92113         Add a FIXME comment.
92114
92115 2000-09-21  Jim Meyering  <meyering@lucent.com>
92116
92117         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92118         Reported by Michael Stone.
92119
92120 2000-09-20  Jim Meyering  <meyering@lucent.com>
92121
92122         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92123         (noinst_HEADERS): Add sha.h.
92124         Based on code from Scott G. Miller and from GnuPG.
92125
92126 2000-09-18  Jim Meyering  <meyering@lucent.com>
92127
92128         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92129         LIBS. Otherwise, everyone ends up linking with -lelf for some
92130         configurations.
92131         Reported by Mike Stone.
92132
92133 2000-09-15  Jim Meyering  <meyering@lucent.com>
92134
92135         * lib/regex.c: Update from libc.
92136
92137 2000-09-10  Jim Meyering  <meyering@lucent.com>
92138
92139         * lib/getopt.c (_getopt_internal): Update from glibc.
92140
92141 2000-09-09  Jim Meyering  <meyering@lucent.com>
92142
92143         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92144         think it should be used as a general replacement for isascii.
92145         * lib/fnmatch.c: Likewise.
92146         * lib/mbswidth.c: Likewise
92147         * lib/regex.c: Likewise.
92148
92149         Don't use atoi.
92150         * lib/userspec.c: Include sys/param.h and limits.h.
92151         Include xstrtol.h.
92152         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92153         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92154         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92155         UID, GID.  Check range.
92156
92157 2000-09-06  Jim Meyering  <meyering@lucent.com>
92158
92159         * lib/getopt.c (_getopt_internal): Update from glibc.
92160
92161 2000-08-30  Jim Meyering  <meyering@lucent.com>
92162
92163         * lib/strftime.c: Merge in changes from GNU libc.
92164
92165 2000-08-26  Jim Meyering  <meyering@lucent.com>
92166
92167         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92168         * m4/fpending.m4: New file.
92169
92170 2000-08-26  Jim Meyering  <meyering@lucent.com>
92171
92172         * lib/closeout.c: Include "__fpending.h".
92173         (close_stdout_status): Return right away if there's nothing to flush.
92174
92175         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92176         * lib/__fpending.c: New file.
92177         * lib/__fpending.h: New file.
92178
92179 2000-08-20  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92182         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92183         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92184
92185 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92186
92187         Improve fileutils installation on systems where running
92188         programs (like install) can't be unlinked.
92189         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92190         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92191
92192 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92193
92194         Standardize on "memory exhausted" instead of "Memory exhausted"
92195         or "virtual memory exhausted".
92196         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92197         "virtual memory exhausted".
92198         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92199         our own message.
92200         * lib/userspec.c (parse_user_spec): Likewise.
92201         * lib/bumpalloc.h: comment fix
92202         * lib/same.c, userspec.c: Include xalloc.h.
92203
92204         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92205         not char *const and pointing to a constant array.
92206         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92207         (xrealloc): Comment fix.
92208
92209         * lib/userspec.c (parse_user_spec):
92210         Don't translate a message until just before returning,
92211         to avoid unnecessary translation.
92212
92213 2000-08-07  Jim Meyering  <meyering@lucent.com>
92214
92215         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92216         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92217         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92218         getgroups.c, gethostname.c, getopt.h, group-member.c,
92219         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92220         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92221         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92222         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92223         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92224         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92225         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92226         yesno.c: Back out Copyright date changes for each file with no change
92227         this year.  This eases coordination with other programs using the same
92228         source code modules.  From Paul Eggert.
92229
92230 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92231
92232         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92233         not char, for compatibility with glibc 2.1.3 strftime.c.
92234
92235 2000-08-03  Greg McGary  <greg@mcgary.org>
92236
92237         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92238         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92239         (EXTEND_BUFFER): Use them.
92240
92241 2000-08-01  Jim Meyering  <meyering@lucent.com>
92242
92243         * lib/dirname.c (ISSLASH): Define.
92244         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92245         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92246         both `\' and `/' may be use as path separators.
92247         Based on a patch from Prashant TR.
92248
92249 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92250
92251         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92252         slot vector a constant, since it might get modified.
92253
92254 2000-07-31  Jim Meyering  <meyering@lucent.com>
92255
92256         * lib/xmalloc.c: Use `virtual memory exhausted', not
92257         `Memory exhausted'.
92258         * lib/obstack.c (print_and_abort): Likewise.
92259
92260 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92261
92262         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92263         buffer, so that the caller can always quote one small
92264         component of a "memory exhausted" message in slot 0.
92265         From a suggestion by Jim Meyering.
92266
92267 2000-07-30  Jim Meyering  <meyering@lucent.com>
92268
92269         * lib/makepath.c (make_path): Quote the other instance, too.
92270
92271         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92272         (STATIC_BUF_SIZE): Define.
92273         (quotearg_n_options): Use only statically allocated storage when
92274         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92275         than STATIC_BUF_SIZE.
92276
92277 2000-07-29  Jim Meyering  <meyering@lucent.com>
92278
92279         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92280         * lib/dirname.c (dir_name): Likewise.
92281
92282         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92283         `/'.
92284
92285         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92286         (dir_name): Assert that there are no trailing slashes.
92287
92288 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92289
92290         * lib/mbswidth.h (mbswidth): Add a flags argument.
92291         (mbswidth): New declaration.
92292         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92293         * lib/mbswidth.c (mbswidth): Add a flags argument.
92294         (mbsnwidth): New function.
92295
92296 2000-07-24  Jim Meyering  <meyering@lucent.com>
92297
92298         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92299
92300 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92301
92302         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92303
92304 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92305
92306         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92307         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92308         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92309         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92310         invoke multibyte primitives.
92311
92312 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92313
92314         * lib/quotearg.c:
92315         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92316         so that mbstate_t is always defined.
92317
92318         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92319         be 1 in at least one GCC installation, and this configuration
92320         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92321         performance on hosts that have mbrtowc but have only unibyte
92322         locales, but I assume these hosts are rare.
92323
92324 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92325
92326         * lib/mbswidth.c (_XOPEN_SOURCE):
92327         Don't define; this causes problems on Solaris 7.
92328         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92329
92330 2000-07-23  Jim Meyering  <meyering@lucent.com>
92331
92332         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92333         too: getgrgid, getpwuid, getuid.
92334
92335 2000-07-23  Jim Meyering  <meyering@lucent.com>
92336
92337         * lib/basename.c (base_name): Add an assertion.
92338
92339 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92340
92341         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92342         shadow its mbsinit function.
92343
92344 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92345
92346         * lib/mbswidth.h: New file.
92347         * lib/mbswidth.c: New file.
92348         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92349         (noinst_HEADERS): Add mbswidth.h.
92350
92351 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92352
92353         * lib/config.charset: Add support for FreeBSD. Improve support for
92354         HP-UX and IRIX 6.
92355
92356 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92357
92358         * m4/mbswidth.m4: New file.
92359         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92360
92361 2000-07-15  Jim Meyering  <meyering@lucent.com>
92362
92363         * lib/makepath.c: Include quote.h.
92364         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92365         corresponding argument in a `quote (...)' call.
92366         Give better diagnostics.
92367
92368         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92369         (noinst_HEADERS): Add quote.h.
92370
92371         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92372         from tar's src/misc.c.
92373         * lib/quote.h: New file.  Prototypes for same.
92374
92375 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92376
92377         From a suggestion by Bruno Haible.
92378         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92379         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92380         to decide whether to define the BeOS workaround macro;
92381         this adjusts to the change to AC_MBSTATE_T.
92382
92383 2000-07-14  Jim Meyering  <meyering@lucent.com>
92384
92385         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92386         jm_AC_TYPE_UINTMAX_T.
92387
92388 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92389
92390         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92391
92392         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92393         quotearg_buffer_restyled): Add support for
92394         clocale_quoting_style.  Undo previous change to
92395         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92396         and "{RIGHT QUOTATION MARK}" msgids.
92397
92398 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92399
92400         From a suggestion by Bruno Haible.
92401         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92402         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92403         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92404         and mbstate_t, to a single-part test that simply defines mbstate_t.
92405         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92406         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92407
92408 2000-07-10  Jim Meyering  <meyering@lucent.com>
92409
92410         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92411
92412         * m4/gnu-source.m4: Output to confdefs.h directly.
92413         Suggestion from Akim Demaille.
92414
92415 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92416
92417         The old behavior of quoting `like this' doesn't look good with
92418         newer, ISO-style fonts.  See:
92419         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92420
92421         Instead, quote "like this" by default.  Let the translator
92422         tailor the locale-specific quoting behavior by providing
92423         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92424
92425         * lib/quotearg.c (N_): New macro.
92426         (gettext_default): New function.
92427         (quotearg_buffer_restyled): Use
92428         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92429         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92430
92431 2000-07-09  Jim Meyering  <meyering@lucent.com>
92432
92433         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92434         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92435
92436         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
92437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
92438
92439 2000-07-09  Jim Meyering  <meyering@lucent.com>
92440
92441         * lib/Most files: Update copyright dates to include 2000.
92442
92443 2000-07-08  Jim Meyering  <meyering@lucent.com>
92444
92445         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
92446         if not defined.
92447         (xgethostname): Remove now-unnecessary #ifdef.
92448         Move declaration of `err' into loop where it's used.
92449
92450 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92451         and Bruno Haible  <haible@clisp.cons.org>
92452
92453         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
92454         only if the test for an object-type mbstate_t fails.  This
92455         prevents us from mistakenly reporting that mbstate_t is a
92456         system object type after we "#define mbstate_t int" to work
92457         around its lack.
92458
92459 2000-07-05  Paul Eggert  <eggert@twinsun.com>
92460         and Bruno Haible  <haible@clisp.cons.org>
92461
92462         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
92463
92464 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92465
92466         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
92467         to strerror_r.
92468         Include <ctype.h> for use of isalpha.
92469
92470 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92471
92472         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
92473         by allocating a larger buffer. Test the gethostname return value for
92474         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
92475         returns an error and ENAMETOOLONG isn't defined.
92476
92477 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
92478
92479         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
92480         dimension.
92481
92482 2000-07-04  Jim Meyering  <meyering@lucent.com>
92483
92484         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
92485         of the deprecated AC_CHECKING.
92486
92487 2000-07-04  Jim Meyering  <meyering@lucent.com>
92488
92489         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
92490         Reported by Bruno Haible.
92491
92492 2000-07-04  Jim Meyering  <meyering@lucent.com>
92493
92494         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
92495         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
92496         lacks mbrtowc.
92497
92498 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92499
92500         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
92501         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
92502
92503 2000-07-03  Paul Eggert  <eggert@twinsun.com>
92504         and Bruno Haible  <haible@clisp.cons.org>
92505
92506         * lib/quotearg.c (mbrtowc):
92507         Assign to *pwc, and return 1 only if result is nonzero.
92508         (iswprint): Use ISPRINT when substituting our own mbrtowc.
92509
92510 2000-07-03  Jim Meyering  <meyering@lucent.com>
92511
92512         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
92513
92514 2000-07-03  Jim Meyering  <meyering@lucent.com>
92515
92516         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
92517         This is necessary to get a definition of e.g., UTMP_FILE on
92518         HP-UX 10.20.
92519         From Bob Proulx.
92520
92521 2000-07-02  Jim Meyering  <meyering@lucent.com>
92522
92523         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
92524
92525         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
92526         AC_LIBOBJ(function_name).
92527         * m4/chown.m4: Likewise.
92528         * m4/fnmatch.m4: Likewise.
92529         * m4/ftruncate.m4: Likewise.
92530         * m4/getgroups.m4: Likewise.
92531         * m4/getline.m4: Likewise.
92532         * m4/group-member.m4: Likewise.
92533         * m4/jm-macros.m4: Likewise.
92534         * m4/lstat.m4: Likewise.
92535         * m4/malloc.m4: Likewise.
92536         * m4/memcmp.m4: Likewise.
92537         * m4/nanosleep.m4: Likewise.
92538         * m4/putenv.m4: Likewise.
92539         * m4/realloc.m4: Likewise.
92540         * m4/regex.m4: Likewise.
92541         * m4/stat.m4: Likewise.
92542         * m4/strftime.m4: Likewise.
92543
92544 2000-07-02  Jim Meyering  <meyering@lucent.com>
92545
92546         * lib/quotearg.c (mbstate_t): Don't define here.
92547
92548 2000-07-02  Jim Meyering  <meyering@lucent.com>
92549
92550         * lib/nanosleep.c (SIGCONT): Define if not already defined.
92551
92552 2000-07-01  Jim Meyering  <meyering@lucent.com>
92553
92554         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
92555
92556 2000-07-01  Jim Meyering  <meyering@lucent.com>
92557
92558         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
92559         problem.
92560
92561 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92562
92563         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
92564         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
92565
92566 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
92567
92568         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
92569         per change in ../m4/ls-mntd-fs.m4.
92570         (read_filesystem_list): Ignore symbolic links.
92571
92572 2000-06-29  Jim Meyering  <meyering@lucent.com>
92573
92574         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
92575         for declaration of strcmp.
92576
92577         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
92578
92579         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
92580         Avoid warning by casting result to `char *' to remove `const'.
92581
92582 2000-06-28  Jim Meyering  <meyering@lucent.com>
92583
92584         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
92585         included by quotearg.c, for which we perform this test.  From
92586         Bruno Haible.
92587
92588 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92589
92590         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
92591         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
92592         <utmpx.h> exists, put readutmp.o into LIBOBJS.
92593
92594 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
92595
92596         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
92597
92598 2000-06-26  Paul Eggert  <eggert@twinsun.com>
92599
92600         savedir now sets errno on failure and invokes xmalloc to get memory.
92601         Fix a couple of other minor bugs while we're at it.
92602
92603         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
92604         (NAMLEN): Remove macro.
92605         (malloc, realloc): Remove decls.
92606         (stpcpy): Likewise.
92607         ("xalloc.h"): Include.
92608         (NAME_SIZE_DEFAULT): New macro.
92609         (savedir): Use xmalloc / xrealloc to allocate memory.
92610         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
92611         Skip "" directory entries.
92612         Use strlen to calculate directory entry length, since the old method
92613         is rarely used these days and isn't worth supporting.
92614         Don't use a pointer after freeing it.
92615         Check for integer overflow when calculating allocation size.
92616         Use memcpy to copy entries, instead of stpcpy.
92617         Set errno properly when returning NULL.
92618         Check for readdir error.
92619
92620 2000-06-26  Jim Meyering  <meyering@lucent.com>
92621
92622         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
92623
92624 2000-06-25  Jim Meyering  <meyering@lucent.com>
92625
92626         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
92627         Linux header bug when _XOPEN_SOURCE is defined to 500.
92628
92629 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92630
92631         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
92632         deficiency.
92633
92634 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
92635
92636         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
92637         Include xalloc.h.
92638         Don't include <stdlib.h>.  Don't declare malloc, realloc.
92639
92640 2000-06-24  Jim Meyering  <meyering@lucent.com>
92641
92642         * m4/strerror_r.m4: Revive this file -- to try out an experimental
92643         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
92644         for which strerror does return char*, but which lacks a conveniently
92645         accessible declaration of the function.  If the compile-test says
92646         strerror_r doesn't work, then resort to a `run'-test that works on
92647         BeOS and segfaults on DEC Unix.
92648
92649 2000-06-24  Jim Meyering  <meyering@lucent.com>
92650
92651         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
92652
92653 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92654
92655         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
92656         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
92657
92658 2000-06-23  Paul Eggert  <eggert@twinsun.com>
92659
92660         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
92661         (mbrtowc, mbstate_t): Define substitutes if
92662         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
92663         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
92664         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
92665
92666 2000-06-23  Jim Meyering  <meyering@lucent.com>
92667
92668         * m4/afs.m4: Add missing AC_MSG_RESULT.
92669         Reported by Bruno Haible.
92670
92671         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
92672         Suggestion from Bruno Haible.
92673
92674 2000-06-23  Jim Meyering  <meyering@lucent.com>
92675
92676         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
92677
92678 2000-06-21  Jim Meyering  <meyering@lucent.com>
92679
92680         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
92681
92682 2000-06-21  Jim Meyering  <meyering@lucent.com>
92683
92684         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
92685         (noinst_HEADERS): Add getstr.h.
92686
92687         * lib/getline.c (getstr): Move into a separate file.
92688         * lib/getstr.c (getstr): New file, extracted from getline.c, with
92689         the following changes: new parameter, delim2; both delim[12]
92690         parameters have type `int', not `char'.  The latter would lose
92691         with 8-bit delimiters.
92692         * lib/getstr.h: New file.
92693
92694 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92695
92696         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
92697         than 1024, return a memory chunk of least possible size, instead
92698         of size PATH_MAX + 2. In the loop, increment the size proportionally.
92699         Use free/xmalloc instead of xrealloc to avoid copying for very long
92700         paths.
92701
92702 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92703
92704         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
92705         the empty string.
92706
92707 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
92708
92709         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
92710         address, not strdup.  Include <stdlib.h> and don't declare free().
92711
92712 2000-06-19  Jim Meyering  <meyering@lucent.com>
92713
92714         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
92715
92716 2000-06-18  Jim Meyering  <meyering@lucent.com>
92717
92718         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
92719
92720         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
92721         `checking whether...' message to be consistent with that of the
92722         lstat test.
92723
92724 2000-06-18  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
92727         Besides, these days every porting target provides a mkdir function.
92728
92729         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
92730         needed. (this snippet comes from src/system.h).
92731
92732 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
92733
92734         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
92735
92736 2000-06-15  Paul Eggert  <eggert@twinsun.com>
92737
92738         * lib/human.c (adjust_value): New function.
92739         (human_readable_inexact): Apply rounding style even when
92740         printing approximate values.
92741
92742 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92743
92744         * lib/human.c (human_readable_inexact): Allow an input block
92745         size that is not a multiple of the output block size, and vice versa.
92746         Reported by Piergiorgio Sartor.
92747
92748 2000-06-14  Paul Eggert  <eggert@twinsun.com>
92749
92750         * lib/getdate.y (get_date): Apply relative times after time
92751         zone indicator, not before.  Reported by Todd A. Jacobs.
92752
92753 2000-06-13  Jim Meyering  <meyering@lucent.com>
92754
92755         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
92756
92757         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
92758
92759 2000-06-12  Paul Eggert  <eggert@twinsun.com>
92760
92761         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
92762
92763 2000-06-12  Jim Meyering  <meyering@lucent.com>
92764
92765         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
92766         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
92767         optional argument.
92768         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
92769         the optional argument, `lib'.
92770
92771 2000-06-08  Jim Meyering  <meyering@lucent.com>
92772
92773         * m4/largefile.m4: Remove file (now that it's part of autoconf).
92774
92775 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92776
92777         Rewrite largefile configuration so that we don't need to run
92778         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
92779         AC_CANONICAL_HOST in configure.in -- jmm]
92780
92781         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
92782         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
92783         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
92784         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
92785         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
92786         All uses changed.
92787         Instead of inspecting the output of getconf, try to compile the
92788         test program without and with the macro definition.
92789         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
92790         for getconf.  Instead, check for the needed flags by compiling
92791         test programs.
92792
92793 2000-06-04  Paul Eggert  <eggert@twinsun.com>
92794
92795         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
92796
92797 2000-06-04  Jim Meyering  <meyering@lucent.com>
92798
92799         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
92800         SunOS 4.1.4 for which gid_t is an unsigned type.
92801
92802 2000-06-03  Jim Meyering  <meyering@lucent.com>
92803
92804         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
92805         now that autoconf requires that.
92806
92807         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
92808         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
92809         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
92810
92811 2000-06-03  Jim Meyering  <meyering@lucent.com>
92812
92813         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
92814
92815 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92816
92817         * m4/glibc21.m4: New file.
92818         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
92819
92820 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
92821
92822         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
92823         newer, don't install charset.alias.
92824         * lib/config.charset: Change the Linux/glibc rules so they become empty
92825         on glibc-2.1 or newer.
92826
92827 2000-06-02  Jim Meyering  <meyering@lucent.com>
92828
92829         * lib/mountlist.c: Back out last change.  Instead, do this...
92830         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
92831         me_dummy member using the same `ignore'-testing code.
92832         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
92833         fs_type strings.
92834         From Mark D. Roth.
92835
92836 2000-05-29  Jim Meyering  <meyering@lucent.com>
92837
92838         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
92839         mounts with the `ignore' attribute.  Based on a patch from
92840         Mark D. Roth.
92841
92842 2000-05-28  Jim Meyering  <meyering@lucent.com>
92843
92844         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
92845         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92846         * m4/stat.m4: Likewise.
92847         * m4/lstat.m4: Likewise.
92848         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
92849
92850         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
92851         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
92852
92853 2000-05-26  Jim Meyering  <meyering@lucent.com>
92854
92855         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
92856
92857 2000-05-24  Jim Meyering  <meyering@lucent.com>
92858
92859         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
92860         autoconf requires that.
92861         * m4/lib-check.m4: Likewise.
92862         * m4/jm-macros.m4: Likewise.
92863         * m4/strftime.m4: Likewise.
92864
92865         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
92866         AC_CHECK_DECLS, now that autoconf requires that.
92867
92868 2000-05-22  Jim Meyering  <meyering@lucent.com>
92869
92870         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
92871         * m4/lstat.m4: Likewise.
92872
92873 2000-05-22  Jim Meyering  <meyering@lucent.com>
92874
92875         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
92876
92877 2000-05-20  Jim Meyering  <meyering@lucent.com>
92878
92879         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
92880         (jm_PREREQ): Use it.
92881
92882 2000-05-18  Jim Meyering  <meyering@lucent.com>
92883
92884         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
92885         back, too, since it may have been modified by allocate_entry.
92886         (hash_delete): Rewrite to use neither the assignment operator
92887         nor the comma operator in an if-expression.
92888
92889 2000-05-15  Paul Eggert  <eggert@twinsun.com>
92890
92891         * lib/closeout.c:
92892         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
92893         Remove; no longer needed.
92894         "quotearg.h": Add include.
92895         (file_name): Do not bother to explicitly initialize to NULL; it's less
92896         efficient on some hosts.
92897         (close_stdout_status): Remove test as to whether stdout was already
92898         closed; it breaks for the case "echo x | sort >&-".
92899         Quote file name colons.
92900         Do not assume that _("write error") lacks format strings.
92901
92902 2000-05-15  Jim Meyering  <meyering@lucent.com>
92903
92904         * lib/version-etc.c (version_etc_copyright): Update the copyright
92905         string used in all --version output.
92906
92907 2000-05-14  Jim Meyering  <meyering@lucent.com>
92908
92909         * lib/closeout.c (close_stdout_set_file_name): New function.
92910         (close_stdout_status): Use new file-scoped global.
92911         Return right away if fstat says the stdout file descriptor is invalid.
92912         * lib/closeout.h (close_stdout_set_file_name): Declare.
92913
92914 2000-05-10  Jim Meyering  <meyering@lucent.com>
92915
92916         * lib/closeout.c [default_exit_status]: New file-scoped variable.
92917         (close_stdout_set_status): New function.
92918         * lib/closeout.h (close_stdout_set_status): Declare.
92919
92920 2000-05-09  Jim Meyering  <meyering@lucent.com>
92921
92922         * m4/gettext.m4: Rename this...
92923         * m4/libintl.m4: ...to this.
92924
92925 2000-05-08  Jim Meyering  <meyering@lucent.com>
92926
92927         * lib/long-options.c: Don't include closeout.h.
92928         (parse_long_options): Don't call close_stdout for --version.
92929
92930 2000-05-06  Paul Eggert  <eggert@twinsun.com>
92931
92932         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
92933         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
92934         2.1.3 bug.  This avoids a clash when files like regex.c define
92935         _GNU_SOURCE.
92936
92937 2000-05-06  Jim Meyering  <meyering@lucent.com>
92938
92939         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
92940         (AC_REPLACE_FUNCS): Add strnlen.
92941
92942         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
92943         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
92944
92945         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
92946         AC_SEARCH_LIBS call for nanosleep.
92947         (LIB_NANOSLEEP): Set and AC_SUBST.
92948
92949 2000-05-06  Jim Meyering  <meyering@lucent.com>
92950
92951         * lib/strnlen.c: Undefine __strnlen and strnlen.
92952         [!weak_alias]: Define __strnlen to strnlen.
92953
92954         * lib/atexit.c: New file, from libiberty.
92955
92956 2000-05-06  Jim Meyering  <meyering@lucent.com>
92957
92958         * lib/closeout.c (close_stdout_status): Also check for errors on the
92959         stderr stream.
92960
92961 2000-05-05  Jim Meyering  <meyering@lucent.com>
92962
92963         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
92964         AC_SEARCH_LIBS call for clock_gettime.
92965         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
92966
92967         * m4/search-libs.m4: Update from autoconf.
92968
92969         su doesn't work on Solaris 2.6.
92970         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
92971         <shadow.h>.  Reported by Dragos Harabor.
92972
92973 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
92974
92975         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
92976         memcpy instead of xmalloc, xrealloc, path_concat.
92977         (locale_charset): Treat empty environment variables as absent.
92978         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
92979
92980 2000-05-04  Jim Meyering  <meyering@lucent.com>
92981
92982         * lib/getopt.c: Update from glibc.
92983         * lib/obstack.c: Likewise.
92984         * lib/obstack.h: Likewise.
92985         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
92986         file
92987
92988         * lib/regex.h: Likewise.
92989         * lib/strndup.c: Likewise.
92990         * lib/strnlen.c: New file, from glibc.
92991
92992 2000-05-03  Jim Meyering  <meyering@lucent.com>
92993
92994         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
92995
92996 2000-05-02  Paul Eggert  <eggert@twinsun.com>
92997
92998         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
92999         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93000         compile-time test, rather than inspecting host and OS, to
93001         decide whether to define _LARGEFILE_SOURCE.
93002
93003 2000-05-01  Jim Meyering  <meyering@lucent.com>
93004
93005         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93006
93007         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93008         Based on a patch from Bruno Haible.
93009
93010 2000-05-01  Jim Meyering  <meyering@lucent.com>
93011
93012         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93013
93014 2000-04-29  Jim Meyering  <meyering@lucent.com>
93015
93016         * lib/path-concat.c: Declare strdup only if it's not defined.
93017         * lib/canon-host.c: Likewise.
93018
93019 2000-04-28  Jim Meyering  <meyering@lucent.com>
93020
93021         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93022         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93023         is included first, then limits.h is included by locale.h by libintl.h.
93024         From John David Anglin.
93025
93026 2000-04-25  Jim Meyering  <meyering@lucent.com>
93027
93028         * lib/makepath.c (S_IRWXUGO): Define.
93029         (make_path): Always perform explicit chmod if MODE specifies any
93030         of the `special' permission bits.  Prompted by a bug report against
93031         install from Mate Wierdl and Joost van Baal.
93032
93033 2000-04-18  Jim Meyering  <meyering@lucent.com>
93034
93035         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93036         (jm_PREREQ): Use it.
93037
93038 2000-04-18  Jim Meyering  <meyering@lucent.com>
93039
93040         * lib/README: New file.
93041
93042         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93043         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93044
93045 2000-04-17  Jim Meyering  <meyering@lucent.com>
93046
93047         Get it right :-)
93048         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93049         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93050         Suggestion from Akim Demaille.
93051
93052 2000-04-17  Jim Meyering  <meyering@lucent.com>
93053
93054         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93055         the definition of it to rpl_strftime also defined-away the system's
93056         declaration.
93057
93058 2000-04-15  Jim Meyering  <meyering@lucent.com>
93059
93060         Use `C' to denote so-called `contiguous' files, the same way
93061         that tar does.
93062         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93063         (ftypelet): Use S_ISCTG.
93064         From Michael Deutschmann.
93065
93066 2000-04-14  Jim Meyering  <meyering@lucent.com>
93067
93068         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93069         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93070         clobbered.
93071
93072 2000-04-14  Jim Meyering  <meyering@lucent.com>
93073
93074         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93075
93076 2000-04-13  Jim Meyering  <meyering@lucent.com>
93077
93078         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93079         AH_VERBATIM to insert required #ifndef into config.h.in.
93080         Suggestion from Akim Demaille.
93081
93082 2000-04-12  Jim Meyering  <meyering@lucent.com>
93083
93084         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93085         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93086         Christian Krackowizer.
93087
93088         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93089         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93090         (AC_SYS_LARGEFILE): Require.
93091         (AM_C_PROTOTYPES): Require.
93092
93093 2000-04-08  Jim Meyering  <meyering@lucent.com>
93094
93095         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93096         names don't conflict.  Reported by Eli Zaretskii.
93097
93098 2000-04-07  Jim Meyering  <meyering@lucent.com>
93099
93100         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93101         sys/types.h, to work around system header problems on AIX 3.2.5.
93102         From Bruno Haible.
93103
93104 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93105
93106         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93107         bug.  Deal with the different error behavior of Irix iconv.
93108
93109 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93110
93111         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93112         IRIX if the installer said otherwise.
93113
93114 2000-04-05  Jim Meyering  <meyering@lucent.com>
93115
93116         Portability tweaks required for ultrix4.3.
93117         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93118         (jm_CHECK_DECLS): Add getutent to the list of functions.
93119         (_jm_DECL_HEADERS): Add utmpx.h.
93120         From John David Anglin.
93121
93122         * m4/strftime.m4: Back out the 2000-04-02 change.
93123         Instead of that change, simply undefine putenv in the test program.
93124
93125 2000-04-05  Jim Meyering  <meyering@lucent.com>
93126
93127         Portability tweaks required for ultrix4.3.
93128         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93129         getutent.
93130         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93131         * lib/canon-host.c: Declare strdup.
93132         * lib/path-concat.c: Likewise.
93133         From John David Anglin.
93134
93135 2000-04-04  Jim Meyering  <meyering@lucent.com>
93136
93137         Be more DOS 8.3-friendly.
93138         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93139         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93140         * lib/Makefile.am: Reflect renaming.
93141         Reported by Eli Zaretskii.
93142
93143         Use a temporary file name that won't clash with `charset.alias'
93144         in the DOS 8.3 name space.
93145         * lib/Makefile.am (charset_tmp): Define.
93146         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93147         (uninstall-local): Likewise.
93148         Reported by Eli Zaretskii.
93149
93150 2000-04-03  Jim Meyering  <meyering@lucent.com>
93151
93152         * m4/gettext.m4: Fix typo in comment.
93153
93154         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93155         textutils/configure.in).  Suggestion from Paul Eggert.
93156         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93157
93158 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93159
93160         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93161         variable in the shell rather than using putenv, which isn't
93162         portable.  This avoids the configure-time inter-test dependency
93163         on the potentially-renamed putenv function.
93164
93165 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93166
93167         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93168         before checking struct stat.st_blksize, so that
93169         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93170
93171 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93172
93173         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93174         since strftime.c uses HAVE_STRFTIME to decide whether to use
93175         the underlying strftime.
93176
93177 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93178
93179         * lib/time/strftime.c (my_strftime): Make sure we call the system
93180         strftime, not ourselves, when invoking the underlying strftime.
93181
93182 2000-03-24  Jim Meyering  <meyering@lucent.com>
93183
93184         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93185         (charset_alias): Define.
93186         (install-exec-local): Factor out common code.
93187         (uninstall-local): Split lines longer than 80.
93188         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93189         (SUFFIXES): Define.
93190         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93191         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93192
93193 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93194
93195         * lib/config.charset: Output a line containing "Packages using this
93196         file".
93197         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93198         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93199         ref-del.sed): New rules.
93200
93201 2000-03-17  Jim Meyering  <meyering@lucent.com>
93202
93203         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93204         Otherwise, include <strings.h>
93205
93206 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93207
93208         * lib/unicodeio.c (utf8_wctomb): New function.
93209         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93210         format instead of in UCS-4 with platform dependent endianness.
93211
93212 2000-03-10  Jim Meyering  <meyering@lucent.com>
93213
93214         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93215         From Marco Franzen.
93216
93217 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93218
93219         * lib/savedir.c (savedir): Work even if directory size is
93220         negative; this can happen with some screwy NFS configurations.
93221
93222 2000-03-06  Jim Meyering  <meyering@lucent.com>
93223
93224         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93225         if it's NULL (because we ran out of memory).  From Bruno Haible.
93226
93227 2000-03-05  Jim Meyering  <meyering@lucent.com>
93228
93229         * lib/localcharset.c ("path-concat.h"): Include.
93230         (get_charset_aliases): Use path_concat instead of ANSI string
93231         concatenation.
93232
93233         * lib/unicodeio.h (PARAMS): Define.
93234         Use it to guard prototype.
93235
93236 2000-03-04  Jim Meyering  <meyering@lucent.com>
93237
93238         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93239         for lib/localcharset.c.
93240
93241 2000-03-04  Jim Meyering  <meyering@lucent.com>
93242
93243         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93244         installing into it.
93245         (uninstall-local): Uncomment this rule so `make distcheck' works
93246         once again.
93247
93248         * lib/unicodeio.c (<errno.h>): Include it.
93249         (errno): Declare if not defined.
93250
93251         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93252
93253         * lib/config.charset: New version, incorporating remarks from a linux
93254         i18n mailing list.  From Bruno Haible.
93255
93256 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93257
93258         * m4/codeset.m4: New file.
93259         * m4/iconv.m4: New file.
93260         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93261
93262 2000-03-03  Jim Meyering  <meyering@lucent.com>
93263
93264         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93265
93266 2000-03-02  Jim Meyering  <meyering@lucent.com>
93267
93268         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93269         the messages come out on separate lines.
93270
93271         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93272         rather than jm_CHECK_DECLARATIONS.
93273         * m4/decl.m4: Remove now-unused file.
93274
93275         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93276         geteuid.
93277
93278 2000-03-02  Jim Meyering  <meyering@lucent.com>
93279
93280         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93281
93282 2000-03-01  Jim Meyering  <meyering@lucent.com>
93283
93284         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93285         * lib/unicodeio.c: Likewise.
93286
93287 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93288
93289         * lib/config.charset: New file.
93290         * lib/localcharset.c: New file.
93291         * lib/unicodeio.h, lib/unicodeio.c: New files.
93292         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93293         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93294         (noinst_HEADERS): Add unicodeio.h.
93295         (all-local, install-exec-local, charset.alias): New targets.
93296
93297 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93298
93299         * lib/quotearg.c (ALERT_CHAR): New macro.
93300         (quotearg_buffer_restyled): Use it.
93301
93302 2000-02-27  Jim Meyering  <meyering@lucent.com>
93303
93304         * m4/check-decl.m4: Add getenv to the list.
93305
93306 2000-02-27  Jim Meyering  <meyering@lucent.com>
93307
93308         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93309         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93310
93311         * lib/backupfile.c: Guard inclusion of stdlib.h with
93312         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93313         Declare malloc if needed.
93314
93315         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93316         `#ifndef HAVE_DECL..'
93317         now that autoconf always defines the HAVE_DECL_ symbols.
93318         * lib/human.c: Likewise.
93319         * lib/same.c: Likewise.
93320         * lib/strtoumax.c: Likewise.
93321
93322         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93323         declaration check was not run.
93324         * lib/hash.c: Likewise.
93325         * lib/human.c: Likewise.
93326         * lib/same.c: Likewise.
93327         * lib/strtoumax.c: Likewise.
93328
93329         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93330         `.', then first look up the entire `.'-containing string as a login
93331         name.
93332
93333 2000-02-23  Jim Meyering  <meyering@lucent.com>
93334
93335         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93336         in place of my hack.
93337
93338 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93339
93340         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93341         (textint): New typedef.
93342         (parser_control): Member year changed from int to textint.
93343         All uses changed.
93344         (YYSTYPE): Removed; replaced by %union with int and textint members.
93345         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93346         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93347         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93348         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93349         (date, number, to_year): Use width of number in digits, not its value,
93350         to determine whether it's a 2-digit year, or a 2-digit time.
93351         (yylex): Store number of digits of numeric tokens.
93352         Reported by John Kendall.
93353
93354         (parser_control): Changed from struct parser_control to typedef (for
93355         consistency).  All uses changed.
93356
93357         (tID): Removed; not used.
93358         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93359
93360 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93361
93362         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93363         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93364
93365 2000-02-12  Jim Meyering  <meyering@lucent.com>
93366
93367         * lib/userspec.c (ISDIGIT): Define it.
93368         (isdigit): Remove definition.
93369         (is_number): Use ISDIGIT, not isdigit.
93370         <libintl.h>: Include.
93371         (_ and N_): Define.
93372         (parse_user_spec): Mark translatable strings.
93373
93374 2000-02-10  Jim Meyering  <meyering@lucent.com>
93375
93376         With these changes, nanosleep.[ch] are finally enough like the other
93377         lib/* replacement files to compile on a few more losing systems.
93378
93379         * lib/nanosleep.h: Don't include config.h.
93380         Remove prototype from declaration of nanosleep.
93381         (PARAMS): Remove now-unneeded definition.
93382         * lib/nanosleep.c: #undef nanosleep.
93383         (rpl_nanosleep): Rename from nanosleep.
93384
93385 2000-02-10  Jim Meyering  <meyering@lucent.com>
93386
93387         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93388         gnu_nanosleep to rpl_nanosleep.
93389
93390 2000-02-09  Jim Meyering  <meyering@lucent.com>
93391
93392         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93393         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93394
93395 2000-02-08  Akim Demaille  <akim@epita.fr>
93396
93397         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93398         `[' and `]' and remove uses of `changequote'.
93399         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93400         (AC_SYS_LARGEFILE): Likewise.
93401         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93402         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93403         of changequote.
93404         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93405         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93406         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93407         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93408
93409 2000-02-05  Jim Meyering  <meyering@lucent.com>
93410
93411         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93412         Remove explicit use of AC_HEADER_TIME.  It is required by
93413         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93414         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93415         in autoconf whereby the expansion of the latter ended up preceding
93416         the expansion of its prerequisite, AC_HEADER_TIME.
93417         Reported by Volker Borchert.
93418
93419 2000-02-03  Jim Meyering  <meyering@lucent.com>
93420
93421         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93422
93423 2000-02-03  Jim Meyering  <meyering@lucent.com>
93424
93425         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93426         rather than with `#if HAVE_UTMPNAME'.
93427
93428 2000-02-02  Jim Meyering  <meyering@lucent.com>
93429
93430         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93431         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93432         Reported by Eli Zaretskii.
93433
93434 2000-02-01  Jim Meyering  <meyering@lucent.com>
93435
93436         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
93437
93438 2000-01-31  Jim Meyering  <meyering@lucent.com>
93439
93440         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
93441         functions.  Add the time.h and sys/time.h headers along with the
93442         AC_REQUIRE'ment of AC_HEADER_TIME.
93443
93444 2000-01-31  Jim Meyering  <meyering@lucent.com>
93445
93446         * lib/nanosleep.h (nanosleep): Guard declaration with
93447         `#if ! HAVE_DECL_NANOSLEEP'.
93448         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
93449         the declaration in that vendor's sys/timers.h.
93450         Reported by Christian Krackowizer.
93451
93452         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
93453         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
93454         (ISPRINT): Likewise.
93455         Reported by Tom Tromey.
93456
93457 2000-01-30  Jim Meyering  <meyering@lucent.com>
93458
93459         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
93460
93461         * m4/prereq.m4 (utmp_includes): Define.
93462         Check for ut_user and ut_name members in both struct utmpx
93463         and struct utmp.
93464
93465 2000-01-30  Jim Meyering  <meyering@lucent.com>
93466
93467         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
93468         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
93469         header files where only utmpx.ut_user is declared.
93470
93471         * lib/readutmp.h (UT_USER): Define.
93472
93473 2000-01-29  Jim Meyering  <meyering@lucent.com>
93474
93475         * m4/lib-check.m4: New file containing library-related checks from
93476         fileutils and sh-utils (textutils had none).
93477
93478 2000-01-28  Jim Meyering  <meyering@lucent.com>
93479
93480         * m4/perl.m4: Change format of warning message to look more like that
93481         from the missing script.  Suggestion from François Pinard.
93482
93483 2000-01-25  Jim Meyering  <meyering@lucent.com>
93484
93485         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
93486         well as time.h in the compile check.
93487         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
93488         Fix typo in cross-compiling case: s/yes/no/.
93489
93490 2000-01-23  Jim Meyering  <meyering@lucent.com>
93491
93492         * m4/jm-macros.m4: Move df-related tests here from
93493         fileutils/configure.in
93494
93495         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
93496         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
93497
93498         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
93499         s/space/ac_fsusage_space/.
93500         (jm_FILE_SYSTEM_USAGE): Take two parameters.
93501
93502         * m4/ftruncate.m4: New file (derived from part of
93503         fileutils/configure.in).
93504         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
93505         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
93506
93507         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
93508         AC_SUBST these here, rather than just in sh-util/configure.in, so
93509         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
93510         all the same.
93511         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
93512         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
93513         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
93514         (AC_SUBST(POW_LIBM)): Likewise.
93515         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
93516
93517 2000-01-23  Jim Meyering  <meyering@lucent.com>
93518
93519         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
93520         obstack.c.
93521
93522 2000-01-22  Jim Meyering  <meyering@lucent.com>
93523
93524         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
93525
93526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
93527
93528         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
93529         configure.in
93530         (AC_CHECK_HEADERS): Likewise for sh-utils.
93531         (AC_CHECK_HEADERS): Likewise for textutils.
93532         Merge the three lists of headers.
93533
93534         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
93535         from fileutils' configure.in.
93536
93537         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
93538         code. Moved tests into their own function (_jm_DECL_HEADERS) in
93539         check-decl.m4.
93540
93541         * m4/check-decl.m4: Use #if rather than #ifdef.
93542         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
93543         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
93544         (_jm_DECL_HEADERS): Define new function.
93545         (jm_CHECK_DECLARATIONS): Require it.
93546
93547 2000-01-22  Jim Meyering  <meyering@lucent.com>
93548
93549         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
93550         [! HAVE_DECL_STRTOULL]: Declare strtoull.
93551         Required for some AIX systems.  Reported by Christian Krackowizer.
93552         [TESTING] (main): New function.
93553
93554         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
93555         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
93556         letters.
93557
93558         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
93559         iswprint.
93560
93561         * lib/strverscmp.c (ISDIGIT): Define.
93562         (strverscmp): Use ISDIGIT, not isdigit.
93563
93564 2000-01-19  Jim Meyering  <meyering@lucent.com>
93565
93566         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
93567         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
93568         defines `struct timespec' in <sys/time.h>
93569
93570         * m4/c-bs-a.m4: Remove uses of changequote altogether.
93571         Thanks to Akim for explaining.
93572
93573 2000-01-17  Paul Eggert  <eggert@twinsun.com>
93574
93575         * lib/nanosleep.c (nanosleep):
93576         Don't use SA_INTERRUPT to decide whether to call sigaction, as
93577         POSIX.1 doesn't require SA_INTERRUPT and some systems
93578         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
93579         it's been part of POSIX.1 since day 1 (in 1988).
93580
93581 2000-01-17  Jim Meyering  <meyering@lucent.com>
93582
93583         * lib/interlock: Remove unused file.  Reported by François Pinard.
93584
93585 2000-01-16  Paul Eggert  <eggert@twinsun.com>
93586
93587         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
93588         alert, backslash, formfeed, and vertical tab unnecessarily in
93589         shell quoting style.
93590
93591 2000-01-16  Jim Meyering  <meyering@lucent.com>
93592
93593         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
93594         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
93595         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
93596         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
93597
93598 2000-01-16  Jim Meyering  <meyering@lucent.com>
93599
93600         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
93601         because the latter didn't work.
93602
93603 2000-01-15  Jim Meyering  <meyering@lucent.com>
93604
93605         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
93606         (AC_REPLACE_FUNCS): Add memcpy and memset.
93607         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
93608         Add strpbrk.
93609         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
93610
93611 2000-01-12  Jim Meyering  <meyering@lucent.com>
93612
93613         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
93614         (jm_PREREQ): Use it.
93615         (jm_PREREQ_READUTMP): New macro.
93616         (jm_PREREQ): Use it.
93617
93618 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93619
93620         Quote multibyte characters correctly.
93621         * m4/c-bs-a.m4: New file.
93622         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
93623         (jm_PREREQ): Use it.
93624
93625 2000-01-11  Paul Eggert  <eggert@twinsun.com>
93626
93627         * m4/uintmax_t.m4: Port to autoconf 2.13.
93628
93629 2000-01-08  Jim Meyering  <meyering@ascend.com>
93630
93631         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
93632         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
93633
93634 2000-01-04  Jim Meyering  <meyering@ascend.com>
93635
93636         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
93637         jm_STRUCT_DIRENT_D_TYPE.
93638         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
93639         jm_STRUCT_DIRENT_D_INO.
93640         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
93641         jm_STRUCT_UTIMBUF.
93642         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
93643         renamings.
93644         * m4/utime.m4: Likewise.
93645
93646         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
93647         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
93648
93649 2000-01-03  Paul Eggert  <eggert@twinsun.com>
93650
93651         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
93652         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
93653
93654 2000-01-02  Jim Meyering  <meyering@ascend.com>
93655
93656         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
93657         remember if this is necessary.
93658
93659 1999-12-26  Jim Meyering  <meyering@ascend.com>
93660
93661         * m4/jm-macros.m4: Use it here.
93662         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
93663
93664 1999-12-23  Jim Meyering  <meyering@ascend.com>
93665
93666         * m4/jm-macros.m4: Check for clock_gettime (moved from
93667         fileutils/configure.in)
93668         Check for gettimeofday.
93669
93670 1999-12-20  Jim Meyering  <meyering@ascend.com>
93671
93672         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
93673         autoconf-2.14a-1999-12-20.
93674
93675 1999-12-19  Jim Meyering  <meyering@ascend.com>
93676
93677         * m4/lstat-slash.m4: New file.
93678         * m4/jm-macros.m4: Use the new macro:
93679         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93680
93681 1999-12-07  Jim Meyering  <meyering@ascend.com>
93682
93683         * m4/perl.m4: Require that File::Compare be available, too.
93684         Too many systems seem to lack it.
93685
93686         * m4/strftime.m4: Add checks for most of the cpp macros tested in
93687         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
93688
93689 1999-11-18  Paul Eggert  <eggert@twinsun.com>
93690
93691         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
93692         problem with the QNX 4.25 shell, which doesn't propagate exit
93693         status of failed commands inside shell assignments.
93694
93695 1999-11-17  Jim Meyering  <meyering@ascend.com>
93696
93697         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
93698
93699 1999-11-07  Jim Meyering  <meyering@ascend.com>
93700
93701         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
93702
93703 1999-11-06  Jim Meyering  <meyering@ascend.com>
93704
93705         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
93706         * m4/jm-macros.m4 (jm_MACROS): Use it here.
93707
93708 1999-11-05  Jim Meyering  <meyering@ascend.com>
93709
93710         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
93711         configure.in of textutils, fileutils, and sh-utils into this one
93712         (shared between those packages) file.
93713         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
93714         AC_STRUCT_ST_BLKSIZE.
93715
93716 1999-11-03  Jim Meyering  <meyering@ascend.com>
93717
93718         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
93719         of AC_CHECK_TYPE checks includes unistd.h.
93720         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
93721         Suggestion from Akim Demaille.
93722
93723 1999-10-30  Jim Meyering  <meyering@ascend.com>
93724
93725         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
93726         m4-quoted string.
93727         * m4/ls-mntd-fs.m4: Likewise.
93728         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
93729         * m4/jm-winsz1.m4: Likewise.
93730
93731         * m4/const.m4: Remove file, since the fix made it into the experimental
93732         version of autoconf.
93733         * m4/mktime.m4: Likewise.
93734
93735         * m4/check-type.m4: Remove file, now that the latest version of
93736         AC_CHECK_TYPE takes a third arg to specify additional #includes.
93737
93738         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
93739         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
93740         AC_CHECK_TYPE.
93741
93742 1999-10-04  Jim Meyering  <meyering@ascend.com>
93743
93744         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
93745
93746 1999-09-22  Paul Eggert  <eggert@twinsun.com>
93747
93748         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
93749         2.95.1 bug with HP-UX 10.20.
93750
93751 1999-09-17  Jim Meyering  <meyering@ascend.com>
93752
93753         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
93754         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
93755         due to missing strdup (against sh-utils-2.0).
93756
93757 1999-08-29  Jim Meyering  <meyering@ascend.com>
93758
93759         * m4/jm-macros.m4: Require jm_BISON.
93760         * m4/bison.m4: New file.
93761
93762 1999-08-17  Paul Eggert  <eggert@twinsun.com>
93763
93764         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
93765         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
93766
93767 1999-08-05  Jim Meyering  <meyering@ascend.com>
93768
93769         * m4/getline.m4: Rename test file from conftestdata to conftest.data
93770         to avoid conflicts with `conftest' on 8+3 filesystems.
93771         Suggestion from Eli Zaretskii.
93772
93773 1999-08-04  Jim Meyering  <meyering@ascend.com>
93774
93775         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
93776         fileutils and sh-utils (textutils's getline test was inadequate).
93777         (AM_FUNC_GETLINE): Run this test.
93778         (AC_CHECK_FUNCS): Check for getdelim.
93779         Reported by Bob Proulx.
93780
93781 1999-08-02  Jim Meyering  <meyering@ascend.com>
93782
93783         * m4/jm-macros.m4: Add a comment.
93784
93785 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93786
93787         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
93788         <inttypes.h> defines strtoumax as a macro (and not as a
93789         function).
93790
93791 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93792
93793         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
93794         that we can shift, multiply and divide unsigned long long
93795         values; Ultrix cc can't do it.
93796
93797 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93798
93799         * m4/mktime.m4: New file, which is a preview of what should appear
93800         in the next public autoconf release.
93801
93802 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93803
93804         * m4/lfs.m4: Remove this file.
93805         * m4/largefile.m4: New file.  It contains the old contents of
93806         lfs.m4, except that all names with prefix AC_LFS have been
93807         changed to use the prefix AC_SYS_LARGEFILE instead, to be
93808         compatible with future autoconf versions.  Also, some minor m4
93809         quoting problems have been fixed.
93810
93811 1999-08-01  Paul Eggert  <eggert@twinsun.com>
93812
93813         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
93814         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
93815         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
93816         and simplify the shell code.
93817
93818 1999-08-01  Jim Meyering  <meyering@ascend.com>
93819
93820         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
93821         m4.
93822
93823 1999-07-20  Jim Meyering  <meyering@ascend.com>
93824
93825         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
93826
93827 1999-07-15  Jim Meyering  <meyering@ascend.com>
93828
93829         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
93830
93831 1999-05-22  Jim Meyering  <meyering@ascend.com>
93832
93833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
93834
93835 1999-05-20  Jim Meyering  <meyering@ascend.com>
93836
93837         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
93838         Add a colon after each `then' in case $4 is empty.
93839
93840 1999-05-16  Jim Meyering  <meyering@ascend.com>
93841
93842         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
93843
93844 1999-05-10  Jim Meyering  <meyering@ascend.com>
93845
93846         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
93847
93848         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
93849         AC_FUNC_MKTIME.
93850
93851 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
93852
93853         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
93854
93855 1999-05-04  Paul Eggert  <eggert@twinsun.com>
93856
93857         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
93858         not CPPFLAGS, so that linking works correctly in IRIX.
93859
93860 1999-04-30  Paul Eggert  <eggert@twinsun.com>
93861
93862         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
93863
93864 1999-04-20  Paul Eggert  <eggert@twinsun.com>
93865
93866         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
93867         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
93868         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
93869         jm_AC_TYPE_UNSIGNED_LONG_LONG.
93870         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
93871
93872         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
93873
93874 1999-04-20  Jim Meyering  <meyering@ascend.com>
93875
93876         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
93877         AC_REPLACE xstroull if necessary.  From Paul Eggert.
93878         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
93879
93880 1999-04-18  Jim Meyering  <meyering@ascend.com>
93881
93882         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
93883         * m4/jm-macros.m4: Use it.
93884
93885 1999-04-06  Jim Meyering  <meyering@ascend.com>
93886
93887         * m4/strftime.m4: Remove test for %f.
93888
93889 1999-03-29  Jim Meyering  <meyering@ascend.com>
93890
93891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
93892         superset of the AC_TYPE_* checks in the textutils, fileutils,
93893         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
93894         AC_TYPE_PID_T.
93895
93896 1999-03-28  Jim Meyering  <meyering@ascend.com>
93897
93898         * m4/jm-macros.m4: Define GNU_PACKAGE here.
93899         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
93900         replaced e.g., in the *.sh files of the sh-utils.
93901
93902 1999-03-20  Jim Meyering  <meyering@ascend.com>
93903
93904         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
93905         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
93906         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
93907
93908 1999-03-19  Jim Meyering  <meyering@ascend.com>
93909
93910         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
93911
93912 1999-03-12  Jim Meyering  <meyering@ascend.com>
93913
93914         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
93915
93916 1999-03-07  Jim Meyering  <meyering@ascend.com>
93917
93918         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
93919         declared.
93920
93921 1999-02-17  Jim Meyering  <meyering@ascend.com>
93922
93923         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
93924         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
93925
93926 1999-02-07  Jim Meyering  <meyering@ascend.com>
93927
93928         * m4/group-member.m4: New file -- extracted from sh-utils'
93929         configure.in.
93930
93931         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
93932         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
93933
93934 1999-02-06  Jim Meyering  <meyering@ascend.com>
93935
93936         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
93937         * m4/fnmatch.m4: Likewise.
93938         * m4/getgroups.m4: Likewise.
93939         * m4/lstat.m4: Likewise.
93940         * m4/malloc.m4: Likewise.
93941         * m4/putenv.m4: Likewise.
93942         * m4/realloc.m4: Likewise.
93943         * m4/regex.m4: Likewise.
93944         * m4/stat.m4: Likewise.
93945         * m4/strftime.m4: Likewise.
93946         Suggestion from Alain Magloire.
93947
93948         * m4/chown.m4: Use `.$ac_objext', not `.o'.
93949         * m4/fnmatch.m4: Likewise.
93950         * m4/getgroups.m4: Likewise.
93951         * m4/getline.m4: Likewise.
93952         * m4/lstat.m4: Likewise.
93953         * m4/malloc.m4: Likewise.
93954         * m4/memcmp.m4: Likewise.
93955         * m4/putenv.m4: Likewise.
93956         * m4/realloc.m4: Likewise.
93957         * m4/regex.m4: Likewise.
93958         * m4/stat.m4: Likewise.
93959         * m4/strftime.m4: Likewise.
93960         Suggestion from Alain Magloire.
93961
93962         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
93963         an argument.
93964
93965         * m4/regex.m4: Add a run-time Test for proper operation of
93966         re_compile_pattern.
93967
93968 1999-01-31  Jim Meyering  <meyering@ascend.com>
93969
93970         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
93971
93972 1999-01-30  Jim Meyering  <meyering@ascend.com>
93973
93974         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
93975
93976         * m4/jm-mktime.m4: Make this a wrapper around the official
93977         AM_FUNC_MKTIME rather than my private copy, now that the official one
93978         is up to date.
93979         * m4/mktime.m4: Remove file.
93980
93981         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
93982         * m4/uptime.m4: Likewise.
93983         * m4/uintmax_t.m4: Likewise.
93984
93985 1999-01-28  Jim Meyering  <meyering@ascend.com>
93986
93987         * m4/jm-macros.m4: Use jm_AFS.
93988         * m4/afs.m4: New file (from fileutils' configure.in).
93989
93990         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
93991         * m4/chown.m4: Likewise.
93992         * m4/d-ino.m4: Likewise.
93993         * m4/d-type.m4: Likewise.
93994         * m4/fnmatch.m4: Likewise.
93995         * m4/getgroups.m4: Likewise.
93996         * m4/gettext.m4: Likewise.
93997         * m4/jm-mktime.m4: Likewise.
93998         * m4/jm-winsz2.m4: Likewise.
93999         * m4/lcmessage.m4: Likewise.
94000         * m4/ls-mntd-fs.m4: Likewise.
94001         * m4/malloc.m4: Likewise.
94002         * m4/memcmp.m4: Likewise.
94003         * m4/putenv.m4: Likewise.
94004         * m4/realloc.m4: Likewise.
94005         * m4/st_mtim.m4: Likewise.
94006         * m4/strftime.m4: Likewise.
94007
94008 1999-01-16  Jim Meyering  <meyering@ascend.com>
94009
94010         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94011         (ARGMATCH_DIE_DECL): Define.
94012
94013 1999-01-12  Jim Meyering  <meyering@ascend.com>
94014
94015         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94016         Reported by Lars Hecking.
94017
94018 1999-01-10  Jim Meyering  <meyering@ascend.com>
94019
94020         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94021         gross kludge.
94022         * m4/inttypes_h.m4: Likewise.
94023         * m4/lstat.m4: Likewise.
94024         * m4/malloc.m4: Likewise.
94025         * m4/readdir.m4: Likewise.
94026         * m4/realloc.m4: Likewise.
94027         * m4/st_dm_mode.m4: Likewise.
94028         * m4/stat.m4: Likewise.
94029         * m4/utimbuf.m4: Likewise.
94030         * m4/utimes.m4: Likewise.
94031
94032         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94033         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94034         comments in config.h.in are meaningful.
94035
94036         * m4/jm-macros.m4: Require autoconf-2.13 here.
94037
94038         * m4/regex.m4: By default, don't use the included regex.c on systems
94039         with glibc 2.  Suggestion from Uli Drepper.
94040
94041 1999-01-02  Jim Meyering  <meyering@ascend.com>
94042
94043         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94044
94045 1998-12-18  Jim Meyering  <meyering@ascend.com>
94046
94047         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94048         Based on a suggestion from Lars Hecking.
94049
94050 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94051
94052         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94053
94054 1998-11-16  Jim Meyering  <meyering@ascend.com>
94055
94056         * m4/lfs.m4: Double-quote the `uname...` expression.
94057
94058 1998-11-14  Jim Meyering  <meyering@ascend.com>
94059
94060         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94061         * m4/stat.m4: Likewise.
94062
94063 1998-11-03  Jim Meyering  <meyering@ascend.com>
94064
94065         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94066         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94067
94068 1998-10-18  Jim Meyering  <meyering@ascend.com>
94069
94070         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94071
94072 1998-10-17  Jim Meyering  <meyering@ascend.com>
94073
94074         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94075         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94076         calls for those previously hard-coded headers.  Instead, take a new
94077         parameter.
94078         (jm_CHECK_DECLARATIONS): Reflect interface change.
94079         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94080         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94081
94082         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94083
94084 1998-10-14  Jim Meyering  <meyering@ascend.com>
94085
94086         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94087         instead of "TZ=America/Vancouver".  From Paul Eggert.
94088
94089 1998-10-11  Jim Meyering  <meyering@ascend.com>
94090
94091         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94092         This adds a test for a recently added compatibility fix for mktime.c.
94093         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94094
94095 1998-09-27  Jim Meyering  <meyering@ascend.com>
94096
94097         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94098
94099         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94100         ../configure.in, including a change from Gordon Matzigkeit to allow
94101         cross-compiling for the Hurd.
94102
94103         * m4/glibc.m4: New file/macro to test for the GNU C Library
94104         versions 1 and 2.  From Gordon Matzigkeit.
94105         Indent.
94106
94107 1998-09-21  Jim Meyering  <meyering@ascend.com>
94108
94109         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94110
94111 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94112
94113         Port nanosecond-resolution times to UnixWare 2.1.2 and
94114         pedantic Solaris 2.6.
94115
94116         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94117         AC_STRUCT_ST_MTIM.
94118         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94119         Generate name of ns member, instead of just 1 or undef.
94120         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94121
94122 1998-08-15  Jim Meyering  <meyering@ascend.com>
94123
94124         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94125         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94126         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94127         instead of jm_TYPE_SSIZE_T.
94128
94129 1998-08-12  Jim Meyering  <meyering@ascend.com>
94130
94131         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94132
94133 1998-08-02  Jim Meyering  <meyering@ascend.com>
94134
94135         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94136         in acconfig.h manually.
94137
94138 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94139
94140         * m4/st_mtim.m4: New file.
94141
94142 1998-07-28  Jim Meyering  <meyering@ascend.com>
94143
94144         * m4/utimes.m4: Undef stat.
94145
94146 1998-07-25  Jim Meyering  <meyering@ascend.com>
94147
94148         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94149         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94150
94151 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94152
94153         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94154         uid and gid actually remain unchanged.
94155
94156 1998-07-07  Jim Meyering  <meyering@ascend.com>
94157
94158         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94159
94160 1998-07-04  Jim Meyering  <meyering@ascend.com>
94161
94162         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94163         to prove that this macro can be used in packages without regex.c.
94164
94165 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94166
94167         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94168         is to be used.
94169
94170 1998-07-03  Jim Meyering  <meyering@ascend.com>
94171
94172         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94173
94174         * m4/gettext.m4: New file -- from gettext-0.10.35.
94175         * m4/lcmessage.m4: Likewise.
94176         * m4/progtest.m4: Likewise.
94177
94178         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94179         * m4/jm-macros.m4: Require the new macro.
94180
94181 1998-06-29  Jim Meyering  <meyering@ascend.com>
94182
94183         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94184         for the definition of NGROUPS (used in a system header included
94185         by sys/mount.h).
94186
94187 1998-06-28  Jim Meyering  <meyering@ascend.com>
94188
94189         * m4/ls-mntd-fs.m4: New file.
94190         * m4/fstypename.m4: New file.
94191
94192         * m4/jm-macros.m4: Require the new macro.
94193         * m4/jm-glibc-io.m4: New file.
94194
94195 1998-05-19  Jim Meyering  <meyering@ascend.com>
94196
94197         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94198         * m4/lchown.m4: New file.
94199
94200         * m4/Makefile.am.in: New file.
94201         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94202
94203 1998-05-14  Jim Meyering  <meyering@ascend.com>
94204
94205         * m4/Makefile.am (EXTRA_DIST): Add them.
94206         * m4/jm-macros.m4: New file.
94207         * m4/utimbuf.m4: New file.
94208
94209 1998-05-12  Jim Meyering  <meyering@ascend.com>
94210
94211         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94212
94213 1998-05-11  Jim Meyering  <meyering@ascend.com>
94214
94215         * m4/isc-posix.m4: New file.
94216
94217 1998-05-10  Jim Meyering  <meyering@ascend.com>
94218
94219         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94220
94221 1998-05-09  Jim Meyering  <meyering@ascend.com>
94222
94223         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94224         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94225         with automake.
94226
94227         * m4/ssize_t.m4: New file.
94228         * m4/mktime.m4: Remove file -- the new automake has this now.
94229
94230 1998-04-26  Jim Meyering  <meyering@ascend.com>
94231
94232         * m4/assert.m4: New file.
94233         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94234
94235 1998-04-05  Jim Meyering  <meyering@ascend.com>
94236
94237         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94238         (jm_PREREQ): Use it here.
94239
94240 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94241
94242         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94243         in acconfig.h.
94244
94245 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94246
94247         * m4/prereq.m4: New file.
94248         * m4/error.m4: New file.
94249         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94250
94251 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94252
94253         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94254         cache-check for the same variable -- that defeated the purpose of
94255         the test; the test program was never run.  This was a problem only
94256         on systems with losing getline functions -- HP-UX 10.20 is one.
94257         Reported by Bjorn Helgaas.
94258
94259 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94260
94261         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94262
94263 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94264
94265         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94266
94267         * m4/const.m4: New file.  Use an initializer in this declaration
94268         typedef int charset[2]; const charset x;
94269         Reported by Bob Glickstein.
94270
94271 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94272
94273         * m4/chown.m4: Fix reversed types on -1 args to chown.
94274         From Kaveh Ghazi.
94275
94276 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94277
94278         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94279         Add lseek and memchr.
94280
94281         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94282         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94283         have a 20-character limit on names.
94284
94285 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94286
94287         * m4/inttypes_h.m4: New file.
94288         * m4/uintmax_t.m4: New file.
94289         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94290
94291
94292         -----
94293
94294         Local Variables:
94295         coding: utf-8
94296         End:
94297
94298         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94299
94300         Copying and distribution of this file, with or without
94301         modification, are permitted provided the copyright notice
94302         and this notice are preserved.